Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7db31cc
Update .gitignore to include docs directory; add typedoc command to p…
lposen Nov 16, 2024
26afd81
Add typedoc as a dependency in package.json for improved documentatio…
lposen Nov 16, 2024
bce5257
Add eslint-plugin-tsdoc for improved TypeScript documentation linting…
lposen Nov 16, 2024
ffc4467
Update ESLint ignore file to exclude docs directory; add typedoc comm…
lposen Nov 16, 2024
9e9f171
Fixed issues identified by tsdoc/syntax
lposen Nov 16, 2024
7524885
Add typedoc-plugin-coverage for improved documentation coverage track…
lposen Nov 16, 2024
c7725b5
Refactor TypeDoc configuration: remove old typedoc.json, add typedoc.…
lposen Nov 16, 2024
07ffa32
Enhance Iterable class documentation with examples for key methods to…
lposen Nov 16, 2024
25915cf
Enhance documentation for Iterable inbox components: add detailed pro…
lposen Nov 16, 2024
17004be
Enhance documentation for useAppStateListener and useDeviceOrientatio…
lposen Nov 16, 2024
d4b68fb
Enhance documentation for Iterable inbox types: add detailed descript…
lposen Nov 16, 2024
e70277e
Enhance documentation for IterableAction and IterableAttributionInfo …
lposen Nov 16, 2024
de0e2b4
Enhance documentation for IterableCommerceItem, IterableConfig, Itera…
lposen Nov 16, 2024
4a07e91
Enhance documentation for IterableInApp enums and IterableInAppMessag…
lposen Nov 16, 2024
bbbf7f4
Add code block example to IterableInAppManager documentation for show…
lposen Nov 16, 2024
8dbad2c
Updated inbox documentation with info found in docs
lposen Nov 16, 2024
28e66de
Enhance documentation for handleAppLink method: clarify usage, add de…
lposen Nov 16, 2024
56f89b4
Add typedoc-plugin-mermaid for enhanced documentation capabilities an…
lposen Nov 17, 2024
630338a
Enhance documentation across multiple classes and enums: add detailed…
lposen Nov 17, 2024
cbd9583
Enhance documentation for Iterable SDK components: add descriptions f…
lposen Nov 17, 2024
a3e725b
Fix typo in IterableEventName enum: correct "failse" to "fails" in ha…
lposen Nov 21, 2024
5a29d1f
Enhance documentation across multiple files: clarify descriptions, im…
lposen Nov 21, 2024
d06c597
Update typedoc configuration to enforce documentation requirements: s…
lposen Nov 21, 2024
533df62
Merge branch '2.0.0-alpha/MOB-10141-make-lint-rules-stricter' into 2.…
lposen Nov 25, 2024
f6bff5a
Merge branch '2.0.0-alpha/MOB-10141-make-lint-rules-stricter' into 2.…
evantk91 Dec 7, 2024
7f3df5d
Merge branch '2.0.0-alpha/MOB-10141-make-lint-rules-stricter' into 2.…
lposen Dec 11, 2024
dc0f02a
Merge branch '2.0.0-alpha/master' into 2.0.0-alpha/MOB-9676-new-doc-g…
lposen Dec 13, 2024
fb179a5
refactor: named type as `IterableInAppMessageRaw`
lposen Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docs/
integration-testing/
lib/
node_modules/
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
overrides: [
{
files: ['*.ts', '*.tsx'],
plugins: ['@typescript-eslint/eslint-plugin'],
plugins: ['@typescript-eslint/eslint-plugin', 'eslint-plugin-tsdoc'],
extends: [
'plugin:@typescript-eslint/recommended',
// We need more verbose typing to enable the below rule, but we should
Expand All @@ -33,6 +33,7 @@ module.exports = {
'error',
{ allow: ['/package\\.json$'] },
],
'tsdoc/syntax': 'warn',
},
},
{
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ android/generated
# Iterable
.env
.xcode.env.local
coverage/
coverage/
docs/
6 changes: 3 additions & 3 deletions example/src/hooks/useIterableApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface IterableAppProps {
config: IterableConfig | null;
/**
* Call to initialize the Iterable SDK
* @param navigation The navigation prop from the screen
* @param navigation - The navigation prop from the screen
* @returns Promise<boolean> Whether the initialization was successful
*/
initialize: (navigation: Navigation) => void;
Expand All @@ -47,15 +47,15 @@ interface IterableAppProps {
loginInProgress?: boolean;
/** Logs the user out */
logout: () => void;
/** TODO: Ask @evantk91 or @Ayyanchira what this is for */
/** Should the iterable inbox return to the list of messages? */
returnToInboxTrigger: boolean;
/** Sets the API key for the user */
setApiKey: (value: string) => void;
/** Sets whether the tab in focus is the `Inbox` tab */
setIsInboxTab: (value: boolean) => void;
/** Sets whether the login is in progress */
setLoginInProgress: (value: boolean) => void;
/** TODO: Ask @evantk91 or @Ayyanchira what this is for */
/** Sets whether the iterable inbox should return to the list of messages */
setReturnToInboxTrigger: (value: boolean) => void;
/** Sets the user ID for the user */
setUserId: (value: string) => void;
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"test:coverage": "jest --coverage",
"typecheck": "tsc",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"docs": "typedoc",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
"prepare": "bob build",
"release": "release-it"
Expand Down Expand Up @@ -83,6 +84,7 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-tsdoc": "^0.3.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"react": "18.3.1",
Expand All @@ -93,6 +95,9 @@
"react-native-webview": "^13.12.3",
"release-it": "^15.0.0",
"turbo": "^1.10.7",
"typedoc": "^0.26.11",
"typedoc-plugin-coverage": "^3.3.0",
"typedoc-plugin-mermaid": "^1.12.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this plugin does.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mermaid is graphs
Coverage is documentation coverage

"typescript": "^5.2.2"
},
"resolutions": {
Expand Down
Loading