@trycourier/courier-ui-inbox 1.0.5-beta → 1.0.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/courier-inbox-header-title.d.ts +2 -1
- package/dist/components/courier-inbox-list-item-menu.d.ts +4 -3
- package/dist/components/courier-inbox-list-item.d.ts +2 -1
- package/dist/components/courier-inbox-list.d.ts +2 -1
- package/dist/components/courier-inbox-option-menu-item.d.ts +2 -1
- package/dist/components/courier-inbox-option-menu.d.ts +2 -1
- package/dist/components/courier-inbox-pagination-list-item.d.ts +2 -1
- package/dist/components/{courier-inbox-menu.d.ts → courier-inbox-popup-menu.d.ts} +2 -1
- package/dist/components/courier-inbox-skeleton-list-item.d.ts +2 -1
- package/dist/components/courier-inbox.d.ts +2 -1
- package/dist/components/courier-unread-count-badge.d.ts +2 -1
- package/dist/datastore/__tests__/datastore.test.d.ts +1 -0
- package/dist/datastore/datastore.d.ts +56 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -632
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2593 -1598
- package/dist/index.mjs.map +1 -0
- package/dist/jest.setup.d.ts +0 -0
- package/dist/types/inbox-data-set.d.ts +2 -0
- package/dist/types/snapshots.d.ts +12 -0
- package/dist/utils/extensions.d.ts +0 -1
- package/dist/utils/utils.d.ts +21 -1
- package/package.json +8 -5
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InboxMessage } from '@trycourier/courier-js';
|
|
2
|
+
import { InboxDataSet } from './inbox-data-set';
|
|
3
|
+
export type MessageSnapshot = {
|
|
4
|
+
message: InboxMessage;
|
|
5
|
+
archiveIndex?: number;
|
|
6
|
+
inboxIndex?: number;
|
|
7
|
+
};
|
|
8
|
+
export type DataSetSnapshot = {
|
|
9
|
+
unreadCount: number;
|
|
10
|
+
inbox: InboxDataSet;
|
|
11
|
+
archive: InboxDataSet;
|
|
12
|
+
};
|
|
@@ -4,4 +4,3 @@ export declare function markAsUnread(message: InboxMessage): Promise<void>;
|
|
|
4
4
|
export declare function clickMessage(message: InboxMessage): Promise<void>;
|
|
5
5
|
export declare function archiveMessage(message: InboxMessage): Promise<void>;
|
|
6
6
|
export declare function openMessage(message: InboxMessage): Promise<void>;
|
|
7
|
-
export declare function getMessageTime(message: InboxMessage): string;
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { InboxMessage, InboxAction } from '@trycourier/courier-js';
|
|
2
|
+
import { InboxDataSet } from '../types/inbox-data-set';
|
|
3
|
+
/**
|
|
4
|
+
* Copy a message
|
|
5
|
+
* @param message - The message to copy
|
|
6
|
+
* @returns A copy of the message
|
|
7
|
+
*/
|
|
8
|
+
export declare function copyMessage(message: InboxMessage): InboxMessage;
|
|
9
|
+
/**
|
|
10
|
+
* Copy an inbox action
|
|
11
|
+
* @param action - The inbox action to copy
|
|
12
|
+
* @returns A copy of the inbox action
|
|
13
|
+
*/
|
|
14
|
+
export declare function copyInboxAction(action: InboxAction): InboxAction;
|
|
15
|
+
/**
|
|
16
|
+
* Copy an inbox data set
|
|
17
|
+
* @param dataSet - The inbox data set to copy
|
|
18
|
+
* @returns A copy of the inbox data set
|
|
19
|
+
*/
|
|
20
|
+
export declare function copyInboxDataSet(dataSet: InboxDataSet): InboxDataSet;
|
|
21
|
+
export declare function getMessageTime(message: InboxMessage): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycourier/courier-ui-inbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7-beta",
|
|
4
4
|
"description": "Inbox components for the Courier web UI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"watch": "vite build --watch",
|
|
12
12
|
"preview": "vite preview",
|
|
13
13
|
"prepare": "npm run build",
|
|
14
|
-
"test": "
|
|
14
|
+
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"courier",
|
|
@@ -26,11 +26,14 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@trycourier/courier-js": "2.0.
|
|
30
|
-
"@trycourier/courier-ui-core": "1.0.
|
|
29
|
+
"@trycourier/courier-js": "2.0.3-beta",
|
|
30
|
+
"@trycourier/courier-ui-core": "1.0.5-beta"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@trycourier/courier-js": "file:../@trycourier/courier-js",
|
|
34
|
-
"@trycourier/courier-ui-core": "file:../@trycourier/courier-ui-core"
|
|
34
|
+
"@trycourier/courier-ui-core": "file:../@trycourier/courier-ui-core",
|
|
35
|
+
"jest": "^29.7.0",
|
|
36
|
+
"vite": "6.2.6",
|
|
37
|
+
"vite-plugin-dts": "4.5.3"
|
|
35
38
|
}
|
|
36
39
|
}
|