@trycourier/courier-ui-inbox 1.0.7-beta → 1.0.8-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.
@@ -1,31 +1,31 @@
1
1
  import { SystemThemeMode } from '@trycourier/courier-ui-core';
2
- export type CourierInboxFont = {
2
+ export type CourierInboxFontTheme = {
3
3
  family?: string;
4
4
  weight?: string;
5
5
  size?: string;
6
6
  color?: string;
7
7
  };
8
- export type CourierInboxIcon = {
8
+ export type CourierInboxIconTheme = {
9
9
  color?: string;
10
10
  svg?: string;
11
11
  };
12
- export type CourierInboxFilterItem = {
13
- icon?: CourierInboxIcon;
12
+ export type CourierInboxFilterItemTheme = {
13
+ icon?: CourierInboxIconTheme;
14
14
  text?: string;
15
15
  };
16
- export type CourierInboxUnreadIndicator = {
17
- font?: CourierInboxFont;
16
+ export type CourierInboxUnreadIndicatorTheme = {
17
+ font?: CourierInboxFontTheme;
18
18
  backgroundColor?: string;
19
19
  borderRadius?: string;
20
20
  };
21
- export type CourierInboxIconButton = {
22
- icon?: CourierInboxIcon;
21
+ export type CourierInboxIconButtonTheme = {
22
+ icon?: CourierInboxIconTheme;
23
23
  backgroundColor?: string;
24
24
  hoverBackgroundColor?: string;
25
25
  activeBackgroundColor?: string;
26
26
  };
27
- export type CourierInboxButton = {
28
- font?: CourierInboxFont;
27
+ export type CourierInboxButtonTheme = {
28
+ font?: CourierInboxFontTheme;
29
29
  text?: string;
30
30
  shadow?: string;
31
31
  border?: string;
@@ -34,31 +34,31 @@ export type CourierInboxButton = {
34
34
  hoverBackgroundColor?: string;
35
35
  activeBackgroundColor?: string;
36
36
  };
37
- export type CourierInboxMenuButton = CourierInboxIconButton & {
38
- unreadIndicator?: CourierInboxUnreadIndicator;
37
+ export type CourierInboxMenuButtonTheme = CourierInboxIconButtonTheme & {
38
+ unreadIndicator?: CourierInboxUnreadIndicatorTheme;
39
39
  };
40
- export type CourierInboxPopup = {
40
+ export type CourierInboxPopupTheme = {
41
41
  backgroundColor?: string;
42
42
  border?: string;
43
43
  borderRadius?: string;
44
44
  shadow?: string;
45
45
  list?: {
46
- font?: CourierInboxFont;
47
- selectionIcon?: CourierInboxIcon;
46
+ font?: CourierInboxFontTheme;
47
+ selectionIcon?: CourierInboxIconTheme;
48
48
  hoverBackgroundColor?: string;
49
49
  activeBackgroundColor?: string;
50
50
  divider?: string;
51
51
  };
52
52
  };
53
- export type CourierInboxListItem = {
53
+ export type CourierInboxListItemTheme = {
54
54
  unreadIndicatorColor?: string;
55
55
  backgroundColor?: string;
56
56
  hoverBackgroundColor?: string;
57
57
  activeBackgroundColor?: string;
58
- title?: CourierInboxFont;
59
- subtitle?: CourierInboxFont;
60
- time?: CourierInboxFont;
61
- archiveIcon?: CourierInboxIcon;
58
+ title?: CourierInboxFontTheme;
59
+ subtitle?: CourierInboxFontTheme;
60
+ time?: CourierInboxFontTheme;
61
+ archiveIcon?: CourierInboxIconTheme;
62
62
  divider?: string;
63
63
  actions?: {
64
64
  backgroundColor?: string;
@@ -67,7 +67,7 @@ export type CourierInboxListItem = {
67
67
  border?: string;
68
68
  borderRadius?: string;
69
69
  shadow?: string;
70
- font?: CourierInboxFont;
70
+ font?: CourierInboxFontTheme;
71
71
  };
72
72
  menu?: {
73
73
  enabled?: boolean;
@@ -83,14 +83,14 @@ export type CourierInboxListItem = {
83
83
  hoverBackgroundColor?: string;
84
84
  activeBackgroundColor?: string;
85
85
  borderRadius?: string;
86
- read?: CourierInboxIcon;
87
- unread?: CourierInboxIcon;
88
- archive?: CourierInboxIcon;
89
- unarchive?: CourierInboxIcon;
86
+ read?: CourierInboxIconTheme;
87
+ unread?: CourierInboxIconTheme;
88
+ archive?: CourierInboxIconTheme;
89
+ unarchive?: CourierInboxIconTheme;
90
90
  };
91
91
  };
92
92
  };
93
- export type CourierInboxSkeletonLoadingState = {
93
+ export type CourierInboxSkeletonLoadingStateTheme = {
94
94
  animation?: {
95
95
  barColor?: string;
96
96
  barHeight?: string;
@@ -99,31 +99,31 @@ export type CourierInboxSkeletonLoadingState = {
99
99
  };
100
100
  divider?: string;
101
101
  };
102
- export type CourierInboxInfoState = {
102
+ export type CourierInboxInfoStateTheme = {
103
103
  title?: {
104
- font?: CourierInboxFont;
104
+ font?: CourierInboxFontTheme;
105
105
  text?: string;
106
106
  };
107
- button?: CourierInboxButton;
107
+ button?: CourierInboxButtonTheme;
108
108
  };
109
- export type CourierMenuItem = {
110
- icon?: CourierInboxIcon;
109
+ export type CourierMenuItemTheme = {
110
+ icon?: CourierInboxIconTheme;
111
111
  text?: string;
112
112
  };
113
- export type CourierFilterMenu = {
114
- button?: CourierInboxIconButton;
115
- inbox?: CourierMenuItem;
116
- archive?: CourierMenuItem;
113
+ export type CourierFilterMenuTheme = {
114
+ button?: CourierInboxIconButtonTheme;
115
+ inbox?: CourierMenuItemTheme;
116
+ archive?: CourierMenuItemTheme;
117
117
  };
118
- export type CourierActionMenu = {
119
- button?: CourierInboxIconButton;
120
- markAllRead?: CourierMenuItem;
121
- archiveAll?: CourierMenuItem;
122
- archiveRead?: CourierMenuItem;
118
+ export type CourierActionMenuTheme = {
119
+ button?: CourierInboxIconButtonTheme;
120
+ markAllRead?: CourierMenuItemTheme;
121
+ archiveAll?: CourierMenuItemTheme;
122
+ archiveRead?: CourierMenuItemTheme;
123
123
  };
124
124
  export type CourierInboxTheme = {
125
125
  popup?: {
126
- button?: CourierInboxMenuButton;
126
+ button?: CourierInboxMenuButtonTheme;
127
127
  window?: {
128
128
  backgroundColor?: string;
129
129
  borderRadius?: string;
@@ -136,24 +136,24 @@ export type CourierInboxTheme = {
136
136
  backgroundColor?: string;
137
137
  shadow?: string;
138
138
  filters?: {
139
- font?: CourierInboxFont;
140
- inbox?: CourierInboxFilterItem;
141
- archive?: CourierInboxFilterItem;
142
- unreadIndicator?: CourierInboxUnreadIndicator;
139
+ font?: CourierInboxFontTheme;
140
+ inbox?: CourierInboxFilterItemTheme;
141
+ archive?: CourierInboxFilterItemTheme;
142
+ unreadIndicator?: CourierInboxUnreadIndicatorTheme;
143
143
  };
144
144
  menus?: {
145
- popup?: CourierInboxPopup;
146
- filters?: CourierFilterMenu;
147
- actions?: CourierActionMenu;
145
+ popup?: CourierInboxPopupTheme;
146
+ filters?: CourierFilterMenuTheme;
147
+ actions?: CourierActionMenuTheme;
148
148
  };
149
149
  };
150
150
  list?: {
151
151
  backgroundColor?: string;
152
- item?: CourierInboxListItem;
152
+ item?: CourierInboxListItemTheme;
153
153
  };
154
- loading?: CourierInboxSkeletonLoadingState;
155
- empty?: CourierInboxInfoState;
156
- error?: CourierInboxInfoState;
154
+ loading?: CourierInboxSkeletonLoadingStateTheme;
155
+ empty?: CourierInboxInfoStateTheme;
156
+ error?: CourierInboxInfoStateTheme;
157
157
  };
158
158
  };
159
159
  export declare const defaultLightTheme: CourierInboxTheme;
@@ -7,6 +7,6 @@ export type MessageSnapshot = {
7
7
  };
8
8
  export type DataSetSnapshot = {
9
9
  unreadCount: number;
10
- inbox: InboxDataSet;
11
- archive: InboxDataSet;
10
+ inbox?: InboxDataSet;
11
+ archive?: InboxDataSet;
12
12
  };
@@ -17,5 +17,5 @@ export declare function copyInboxAction(action: InboxAction): InboxAction;
17
17
  * @param dataSet - The inbox data set to copy
18
18
  * @returns A copy of the inbox data set
19
19
  */
20
- export declare function copyInboxDataSet(dataSet: InboxDataSet): InboxDataSet;
20
+ export declare function copyInboxDataSet(dataSet?: InboxDataSet): InboxDataSet | undefined;
21
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.7-beta",
3
+ "version": "1.0.8-beta",
4
4
  "description": "Inbox components for the Courier web UI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,8 +26,8 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@trycourier/courier-js": "2.0.3-beta",
30
- "@trycourier/courier-ui-core": "1.0.5-beta"
29
+ "@trycourier/courier-js": "2.0.4-beta",
30
+ "@trycourier/courier-ui-core": "1.0.7-beta"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@trycourier/courier-js": "file:../@trycourier/courier-js",