@novu/js 3.0.3 → 3.1.0
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/cjs/{chunk-47NZ3DJQ.js → chunk-WONVNOTK.js} +4 -41
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +8 -32
- package/dist/{esm/novu-BXVPjTIj.d.mts → cjs/novu-DDPQzl99.d.ts} +14 -51
- package/dist/cjs/themes/index.d.ts +2 -2
- package/dist/cjs/{types-BOvaROWQ.d.ts → types-CVvP6EyP.d.ts} +2 -2
- package/dist/cjs/ui/index.d.ts +5 -5
- package/dist/cjs/ui/index.js +84 -84
- package/dist/esm/{chunk-GCPLP2EW.mjs → chunk-WQDFFXIB.mjs} +5 -36
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/{cjs/novu-BXVPjTIj.d.ts → esm/novu-DDPQzl99.d.mts} +14 -51
- package/dist/esm/themes/index.d.mts +2 -2
- package/dist/esm/{types-Du_GH8TU.d.mts → types-DFXwHejb.d.mts} +2 -2
- package/dist/esm/ui/index.d.mts +5 -5
- package/dist/esm/ui/index.mjs +81 -81
- package/dist/novu.min.js +1 -1
- package/dist/novu.min.js.gz +0 -0
- package/package.json +3 -2
|
@@ -17,20 +17,6 @@ var NotificationStatus = /* @__PURE__ */ ((NotificationStatus2) => {
|
|
|
17
17
|
NotificationStatus2["UNSEEN"] = "unseen";
|
|
18
18
|
return NotificationStatus2;
|
|
19
19
|
})(NotificationStatus || {});
|
|
20
|
-
var NotificationButton = /* @__PURE__ */ ((NotificationButton2) => {
|
|
21
|
-
NotificationButton2["PRIMARY"] = "primary";
|
|
22
|
-
NotificationButton2["SECONDARY"] = "secondary";
|
|
23
|
-
return NotificationButton2;
|
|
24
|
-
})(NotificationButton || {});
|
|
25
|
-
var NotificationActionStatus = /* @__PURE__ */ ((NotificationActionStatus2) => {
|
|
26
|
-
NotificationActionStatus2["PENDING"] = "pending";
|
|
27
|
-
NotificationActionStatus2["DONE"] = "done";
|
|
28
|
-
return NotificationActionStatus2;
|
|
29
|
-
})(NotificationActionStatus || {});
|
|
30
|
-
var CtaType = /* @__PURE__ */ ((CtaType2) => {
|
|
31
|
-
CtaType2["REDIRECT"] = "redirect";
|
|
32
|
-
return CtaType2;
|
|
33
|
-
})(CtaType || {});
|
|
34
20
|
var PreferenceLevel = /* @__PURE__ */ ((PreferenceLevel2) => {
|
|
35
21
|
PreferenceLevel2["GLOBAL"] = "global";
|
|
36
22
|
PreferenceLevel2["TEMPLATE"] = "template";
|
|
@@ -44,29 +30,12 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
44
30
|
ChannelType2["PUSH"] = "push";
|
|
45
31
|
return ChannelType2;
|
|
46
32
|
})(ChannelType || {});
|
|
47
|
-
var PreferenceOverrideSource = /* @__PURE__ */ ((PreferenceOverrideSource2) => {
|
|
48
|
-
PreferenceOverrideSource2["SUBSCRIBER"] = "subscriber";
|
|
49
|
-
PreferenceOverrideSource2["TEMPLATE"] = "template";
|
|
50
|
-
PreferenceOverrideSource2["WORKFLOW_OVERRIDE"] = "workflowOverride";
|
|
51
|
-
return PreferenceOverrideSource2;
|
|
52
|
-
})(PreferenceOverrideSource || {});
|
|
53
33
|
var WebSocketEvent = /* @__PURE__ */ ((WebSocketEvent2) => {
|
|
54
34
|
WebSocketEvent2["RECEIVED"] = "notification_received";
|
|
55
35
|
WebSocketEvent2["UNREAD"] = "unread_count_changed";
|
|
56
36
|
WebSocketEvent2["UNSEEN"] = "unseen_count_changed";
|
|
57
37
|
return WebSocketEvent2;
|
|
58
38
|
})(WebSocketEvent || {});
|
|
59
|
-
var ActionTypeEnum = /* @__PURE__ */ ((ActionTypeEnum2) => {
|
|
60
|
-
ActionTypeEnum2["PRIMARY"] = "primary";
|
|
61
|
-
ActionTypeEnum2["SECONDARY"] = "secondary";
|
|
62
|
-
return ActionTypeEnum2;
|
|
63
|
-
})(ActionTypeEnum || {});
|
|
64
|
-
var PreferenceOverrideSourceEnum = /* @__PURE__ */ ((PreferenceOverrideSourceEnum2) => {
|
|
65
|
-
PreferenceOverrideSourceEnum2["SUBSCRIBER"] = "subscriber";
|
|
66
|
-
PreferenceOverrideSourceEnum2["TEMPLATE"] = "template";
|
|
67
|
-
PreferenceOverrideSourceEnum2["WORKFLOW_OVERRIDE"] = "workflowOverride";
|
|
68
|
-
return PreferenceOverrideSourceEnum2;
|
|
69
|
-
})(PreferenceOverrideSourceEnum || {});
|
|
70
39
|
|
|
71
40
|
// src/utils/arrays.ts
|
|
72
41
|
var arrayValuesEqual = (arr1, arr2) => {
|
|
@@ -91,7 +60,7 @@ var isSameFilter = (filter1, filter2) => {
|
|
|
91
60
|
// src/api/http-client.ts
|
|
92
61
|
var DEFAULT_API_VERSION = "v1";
|
|
93
62
|
var DEFAULT_BACKEND_URL = "https://api.novu.co";
|
|
94
|
-
var DEFAULT_USER_AGENT = `${"@novu/js"}@${"3.0
|
|
63
|
+
var DEFAULT_USER_AGENT = `${"@novu/js"}@${"3.1.0"}`;
|
|
95
64
|
var HttpClient = class {
|
|
96
65
|
constructor(options = {}) {
|
|
97
66
|
const {
|
|
@@ -414,7 +383,7 @@ var Notification = class {
|
|
|
414
383
|
this.tags = notification.tags;
|
|
415
384
|
this.redirect = notification.redirect;
|
|
416
385
|
this.data = notification.data;
|
|
417
|
-
this.
|
|
386
|
+
this.workflow = notification.workflow;
|
|
418
387
|
}
|
|
419
388
|
read() {
|
|
420
389
|
return read({
|
|
@@ -1568,7 +1537,7 @@ var mapToNotification = ({
|
|
|
1568
1537
|
cta,
|
|
1569
1538
|
tags,
|
|
1570
1539
|
data,
|
|
1571
|
-
|
|
1540
|
+
workflow
|
|
1572
1541
|
}) => {
|
|
1573
1542
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
1574
1543
|
const to = {
|
|
@@ -1616,7 +1585,7 @@ var mapToNotification = ({
|
|
|
1616
1585
|
target: cta.data.target
|
|
1617
1586
|
} : void 0,
|
|
1618
1587
|
data,
|
|
1619
|
-
|
|
1588
|
+
workflow
|
|
1620
1589
|
};
|
|
1621
1590
|
};
|
|
1622
1591
|
var _token, _emitter6, _socketIo, _socketUrl, _notificationReceived, _unseenCountChanged, _unreadCountChanged, _Socket_instances, initializeSocket_fn, handleConnectSocket_fn, handleDisconnectSocket_fn;
|
|
@@ -1795,16 +1764,10 @@ _emitter7 = new WeakMap();
|
|
|
1795
1764
|
_session = new WeakMap();
|
|
1796
1765
|
_inboxService3 = new WeakMap();
|
|
1797
1766
|
|
|
1798
|
-
exports.ActionTypeEnum = ActionTypeEnum;
|
|
1799
1767
|
exports.ChannelType = ChannelType;
|
|
1800
|
-
exports.CtaType = CtaType;
|
|
1801
|
-
exports.NotificationActionStatus = NotificationActionStatus;
|
|
1802
|
-
exports.NotificationButton = NotificationButton;
|
|
1803
1768
|
exports.NotificationStatus = NotificationStatus;
|
|
1804
1769
|
exports.Novu = Novu;
|
|
1805
1770
|
exports.PreferenceLevel = PreferenceLevel;
|
|
1806
|
-
exports.PreferenceOverrideSource = PreferenceOverrideSource;
|
|
1807
|
-
exports.PreferenceOverrideSourceEnum = PreferenceOverrideSourceEnum;
|
|
1808
1771
|
exports.WebSocketEvent = WebSocketEvent;
|
|
1809
1772
|
exports.areTagsEqual = areTagsEqual;
|
|
1810
1773
|
exports.isSameFilter = isSameFilter;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NotificationFilter } from './novu-
|
|
2
|
-
export {
|
|
1
|
+
import { N as NotificationFilter } from './novu-DDPQzl99.js';
|
|
2
|
+
export { C as ChannelPreference, c as ChannelType, E as EventHandler, a as Events, F as FiltersCountResponse, I as InboxNotification, L as ListNotificationsResponse, d as Notification, e as NotificationStatus, b as Novu, f as NovuError, g as NovuOptions, P as Preference, h as PreferenceLevel, i as PreferencesResponse, S as SocketEventNames, W as WebSocketEvent } from './novu-DDPQzl99.js';
|
|
3
3
|
|
|
4
4
|
declare const areTagsEqual: (tags1?: string[], tags2?: string[]) => boolean;
|
|
5
5
|
declare const isSameFilter: (filter1: NotificationFilter, filter2: NotificationFilter) => boolean;
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,59 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWONVNOTK_js = require('./chunk-WONVNOTK.js');
|
|
4
4
|
require('./chunk-7B52C2XE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
Object.defineProperty(exports, "ActionTypeEnum", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk47NZ3DJQ_js.ActionTypeEnum; }
|
|
11
|
-
});
|
|
12
8
|
Object.defineProperty(exports, "ChannelType", {
|
|
13
9
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "CtaType", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunk47NZ3DJQ_js.CtaType; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "NotificationActionStatus", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunk47NZ3DJQ_js.NotificationActionStatus; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "NotificationButton", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunk47NZ3DJQ_js.NotificationButton; }
|
|
10
|
+
get: function () { return chunkWONVNOTK_js.ChannelType; }
|
|
27
11
|
});
|
|
28
12
|
Object.defineProperty(exports, "NotificationStatus", {
|
|
29
13
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkWONVNOTK_js.NotificationStatus; }
|
|
31
15
|
});
|
|
32
16
|
Object.defineProperty(exports, "Novu", {
|
|
33
17
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkWONVNOTK_js.Novu; }
|
|
35
19
|
});
|
|
36
20
|
Object.defineProperty(exports, "PreferenceLevel", {
|
|
37
21
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "PreferenceOverrideSource", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return chunk47NZ3DJQ_js.PreferenceOverrideSource; }
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, "PreferenceOverrideSourceEnum", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () { return chunk47NZ3DJQ_js.PreferenceOverrideSourceEnum; }
|
|
22
|
+
get: function () { return chunkWONVNOTK_js.PreferenceLevel; }
|
|
47
23
|
});
|
|
48
24
|
Object.defineProperty(exports, "WebSocketEvent", {
|
|
49
25
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkWONVNOTK_js.WebSocketEvent; }
|
|
51
27
|
});
|
|
52
28
|
Object.defineProperty(exports, "areTagsEqual", {
|
|
53
29
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkWONVNOTK_js.areTagsEqual; }
|
|
55
31
|
});
|
|
56
32
|
Object.defineProperty(exports, "isSameFilter", {
|
|
57
33
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkWONVNOTK_js.isSameFilter; }
|
|
59
35
|
});
|
|
@@ -66,17 +66,6 @@ declare enum NotificationStatus {
|
|
|
66
66
|
UNREAD = "unread",
|
|
67
67
|
UNSEEN = "unseen"
|
|
68
68
|
}
|
|
69
|
-
declare enum NotificationButton {
|
|
70
|
-
PRIMARY = "primary",
|
|
71
|
-
SECONDARY = "secondary"
|
|
72
|
-
}
|
|
73
|
-
declare enum NotificationActionStatus {
|
|
74
|
-
PENDING = "pending",
|
|
75
|
-
DONE = "done"
|
|
76
|
-
}
|
|
77
|
-
declare enum CtaType {
|
|
78
|
-
REDIRECT = "redirect"
|
|
79
|
-
}
|
|
80
69
|
declare enum PreferenceLevel {
|
|
81
70
|
GLOBAL = "global",
|
|
82
71
|
TEMPLATE = "template"
|
|
@@ -88,39 +77,17 @@ declare enum ChannelType {
|
|
|
88
77
|
CHAT = "chat",
|
|
89
78
|
PUSH = "push"
|
|
90
79
|
}
|
|
91
|
-
declare enum PreferenceOverrideSource {
|
|
92
|
-
SUBSCRIBER = "subscriber",
|
|
93
|
-
TEMPLATE = "template",
|
|
94
|
-
WORKFLOW_OVERRIDE = "workflowOverride"
|
|
95
|
-
}
|
|
96
80
|
declare enum WebSocketEvent {
|
|
97
81
|
RECEIVED = "notification_received",
|
|
98
82
|
UNREAD = "unread_count_changed",
|
|
99
83
|
UNSEEN = "unseen_count_changed"
|
|
100
84
|
}
|
|
101
|
-
declare enum ActionTypeEnum {
|
|
102
|
-
PRIMARY = "primary",
|
|
103
|
-
SECONDARY = "secondary"
|
|
104
|
-
}
|
|
105
85
|
type Session = {
|
|
106
86
|
token: string;
|
|
107
87
|
totalUnreadCount: number;
|
|
108
88
|
removeNovuBranding: boolean;
|
|
109
89
|
isDevelopmentMode: boolean;
|
|
110
90
|
};
|
|
111
|
-
type MessageButton = {
|
|
112
|
-
type: NotificationButton;
|
|
113
|
-
content: string;
|
|
114
|
-
resultContent?: string;
|
|
115
|
-
};
|
|
116
|
-
type MessageAction = {
|
|
117
|
-
status?: NotificationActionStatus;
|
|
118
|
-
buttons?: MessageButton[];
|
|
119
|
-
result: {
|
|
120
|
-
payload?: Record<string, unknown>;
|
|
121
|
-
type?: NotificationButton;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
91
|
type Subscriber = {
|
|
125
92
|
id: string;
|
|
126
93
|
firstName?: string;
|
|
@@ -132,11 +99,22 @@ type Redirect = {
|
|
|
132
99
|
url: string;
|
|
133
100
|
target?: '_self' | '_blank' | '_parent' | '_top' | '_unfencedTop';
|
|
134
101
|
};
|
|
102
|
+
declare enum ActionTypeEnum {
|
|
103
|
+
PRIMARY = "primary",
|
|
104
|
+
SECONDARY = "secondary"
|
|
105
|
+
}
|
|
135
106
|
type Action = {
|
|
136
107
|
label: string;
|
|
137
108
|
isCompleted: boolean;
|
|
138
109
|
redirect?: Redirect;
|
|
139
110
|
};
|
|
111
|
+
type Workflow = {
|
|
112
|
+
id: string;
|
|
113
|
+
identifier: string;
|
|
114
|
+
name: string;
|
|
115
|
+
critical: boolean;
|
|
116
|
+
tags?: string[];
|
|
117
|
+
};
|
|
140
118
|
type InboxNotification = {
|
|
141
119
|
id: string;
|
|
142
120
|
subject?: string;
|
|
@@ -154,20 +132,13 @@ type InboxNotification = {
|
|
|
154
132
|
tags?: string[];
|
|
155
133
|
data?: NotificationData;
|
|
156
134
|
redirect?: Redirect;
|
|
157
|
-
|
|
135
|
+
workflow?: Workflow;
|
|
158
136
|
};
|
|
159
137
|
type NotificationFilter = {
|
|
160
138
|
tags?: string[];
|
|
161
139
|
read?: boolean;
|
|
162
140
|
archived?: boolean;
|
|
163
141
|
};
|
|
164
|
-
type Workflow = {
|
|
165
|
-
id: string;
|
|
166
|
-
identifier: string;
|
|
167
|
-
name: string;
|
|
168
|
-
critical: boolean;
|
|
169
|
-
tags?: string[];
|
|
170
|
-
};
|
|
171
142
|
type ChannelPreference = {
|
|
172
143
|
email?: boolean;
|
|
173
144
|
sms?: boolean;
|
|
@@ -175,13 +146,6 @@ type ChannelPreference = {
|
|
|
175
146
|
chat?: boolean;
|
|
176
147
|
push?: boolean;
|
|
177
148
|
};
|
|
178
|
-
type PaginatedResponse<T = unknown> = {
|
|
179
|
-
data: T[];
|
|
180
|
-
hasMore: boolean;
|
|
181
|
-
totalCount: number;
|
|
182
|
-
pageSize: number;
|
|
183
|
-
page: number;
|
|
184
|
-
};
|
|
185
149
|
type PreferencesResponse = {
|
|
186
150
|
level: PreferenceLevel;
|
|
187
151
|
enabled: boolean;
|
|
@@ -198,7 +162,6 @@ type IPreferenceOverride = {
|
|
|
198
162
|
channel: ChannelType;
|
|
199
163
|
source: PreferenceOverrideSourceEnum;
|
|
200
164
|
};
|
|
201
|
-
type TODO = any;
|
|
202
165
|
type Result<D = undefined, E = NovuError> = Promise<{
|
|
203
166
|
data?: D;
|
|
204
167
|
error?: E;
|
|
@@ -319,7 +282,7 @@ declare class Notification implements Pick<NovuEventEmitter, 'on'>, InboxNotific
|
|
|
319
282
|
readonly tags: InboxNotification['tags'];
|
|
320
283
|
readonly redirect: InboxNotification['redirect'];
|
|
321
284
|
readonly data?: InboxNotification['data'];
|
|
322
|
-
readonly
|
|
285
|
+
readonly workflow?: InboxNotification['workflow'];
|
|
323
286
|
constructor(notification: InboxNotification, emitter: NovuEventEmitter, inboxService: InboxService);
|
|
324
287
|
read(): Result<Notification>;
|
|
325
288
|
unread(): Result<Notification>;
|
|
@@ -582,4 +545,4 @@ declare class Novu implements Pick<NovuEventEmitter, 'on'> {
|
|
|
582
545
|
constructor(options: NovuOptions);
|
|
583
546
|
}
|
|
584
547
|
|
|
585
|
-
export {
|
|
548
|
+
export { type ChannelPreference as C, type EventHandler as E, type FiltersCountResponse as F, type InboxNotification as I, type ListNotificationsResponse as L, type NotificationFilter as N, Preference as P, type SocketEventNames as S, WebSocketEvent as W, type Events as a, Novu as b, ChannelType as c, Notification as d, NotificationStatus as e, NovuError as f, type NovuOptions as g, PreferenceLevel as h, type PreferencesResponse as i };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as Notification, N as NotificationFilter, g as NovuOptions, b as Novu } from './novu-DDPQzl99.js';
|
|
2
2
|
|
|
3
3
|
declare const appearanceKeys: readonly ["button", "icon", "popoverContent", "popoverTrigger", "dropdownContent", "dropdownTrigger", "dropdownItem", "dropdownItemLabel", "dropdownItemLabelContainer", "dropdownItemLeft__icon", "dropdownItemRight__icon", "dropdownItem__icon", "collapsible", "tooltipContent", "tooltipTrigger", "back__button", "skeletonText", "skeletonAvatar", "skeletonSwitch", "skeletonSwitchThumb", "tabsRoot", "tabsList", "tabsContent", "tabsTrigger", "dots", "root", "bellIcon", "bellContainer", "bellDot", "preferences__button", "preferencesContainer", "inboxHeader", "loading", "inboxContent", "inbox__popoverTrigger", "inbox__popoverContent", "notificationListContainer", "notificationList", "notificationListEmptyNoticeContainer", "notificationListEmptyNoticeOverlay", "notificationListEmptyNoticeIcon", "notificationListEmptyNotice", "notificationList__skeleton", "notificationList__skeletonContent", "notificationList__skeletonItem", "notificationList__skeletonAvatar", "notificationList__skeletonText", "notificationListNewNotificationsNotice__button", "notification", "notificationContent", "notificationTextContainer", "notificationDot", "notificationSubject", "notificationSubject__strong", "notificationBody", "notificationBody__strong", "notificationBodyContainer", "notificationImage", "notificationImageLoadingFallback", "notificationDate", "notificationDateActionsContainer", "notificationDefaultActions", "notificationCustomActions", "notificationPrimaryAction__button", "notificationSecondaryAction__button", "notificationRead__button", "notificationUnread__button", "notificationArchive__button", "notificationUnarchive__button", "notificationRead__icon", "notificationUnread__icon", "notificationArchive__icon", "notificationUnarchive__icon", "notificationsTabs__tabsRoot", "notificationsTabs__tabsList", "notificationsTabs__tabsContent", "notificationsTabs__tabsTrigger", "notificationsTabsTriggerLabel", "notificationsTabsTriggerCount", "inboxStatus__title", "inboxStatus__dropdownTrigger", "inboxStatus__dropdownContent", "inboxStatus__dropdownItem", "inboxStatus__dropdownItemLabel", "inboxStatus__dropdownItemLabelContainer", "inboxStatus__dropdownItemLeft__icon", "inboxStatus__dropdownItemRight__icon", "inboxStatus__dropdownItem__icon", "inboxStatus__dropdownItemCheck__icon", "moreActionsContainer", "moreActions__dropdownTrigger", "moreActions__dropdownContent", "moreActions__dropdownItem", "moreActions__dropdownItemLabel", "moreActions__dropdownItemLeft__icon", "moreActions__dots", "moreTabs__button", "moreTabs__icon", "moreTabs__dropdownTrigger", "moreTabs__dropdownContent", "moreTabs__dropdownItem", "moreTabs__dropdownItemLabel", "moreTabs__dropdownItemRight__icon", "workflowContainer", "workflowLabel", "workflowLabelHeader", "workflowLabelContainer", "workflowContainerDisabledNotice", "workflowLabelDisabled__icon", "workflowContainerRight__icon", "workflowArrow__icon", "workflowDescription", "channelContainer", "channelIconContainer", "channel__icon", "channelsContainerCollapsible", "channelsContainer", "channelLabel", "channelLabelContainer", "channelName", "channelSwitchContainer", "channelSwitch", "channelSwitchThumb", "preferencesHeader", "preferencesHeader__back__button", "preferencesHeader__back__button__icon", "preferencesHeader__title", "preferencesHeader__icon", "preferencesListEmptyNoticeContainer", "preferencesListEmptyNotice", "preferencesList__skeleton", "preferencesList__skeletonContent", "preferencesList__skeletonItem", "preferencesList__skeletonIcon", "preferencesList__skeletonSwitch", "preferencesList__skeletonSwitchThumb", "preferencesList__skeletonText", "strong"];
|
|
4
4
|
|
|
@@ -100,4 +100,4 @@ declare enum NotificationStatus {
|
|
|
100
100
|
}
|
|
101
101
|
type PreferencesFilter = Pick<NotificationFilter, 'tags'>;
|
|
102
102
|
|
|
103
|
-
export { type Appearance as A, type BellRenderer as B, type
|
|
103
|
+
export { type Appearance as A, type BellRenderer as B, type Elements as E, type Localization as L, type NotificationClickHandler as N, type PreferencesFilter as P, type RouterPush as R, type SubjectRenderer as S, type Tab as T, type Variables as V, type NotificationActionClickHandler as a, type NotificationRenderer as b, type BodyRenderer as c, type NovuProviderProps as d, type BaseNovuProviderProps as e, type AppearanceKey as f, type ElementStyles as g, type LocalizationKey as h, NotificationStatus as i, type Theme as j };
|
package/dist/cjs/ui/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, S as SubjectRenderer, c as BodyRenderer, d as NovuProviderProps, e as BaseNovuProviderProps, A as Appearance, L as Localization, T as Tab, P as PreferencesFilter, R as RouterPush } from '../types-
|
|
4
|
-
export { f as AppearanceKey,
|
|
1
|
+
import { g as NovuOptions } from '../novu-DDPQzl99.js';
|
|
2
|
+
export { d as Notification } from '../novu-DDPQzl99.js';
|
|
3
|
+
import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, S as SubjectRenderer, c as BodyRenderer, d as NovuProviderProps, e as BaseNovuProviderProps, A as Appearance, L as Localization, T as Tab, P as PreferencesFilter, R as RouterPush } from '../types-CVvP6EyP.js';
|
|
4
|
+
export { f as AppearanceKey, g as ElementStyles, E as Elements, h as LocalizationKey, i as NotificationStatus, V as Variables } from '../types-CVvP6EyP.js';
|
|
5
5
|
import { Placement, OffsetOptions } from '@floating-ui/dom';
|
|
6
6
|
import * as solid_js from 'solid-js';
|
|
7
7
|
import { ComponentProps } from 'solid-js';
|
|
@@ -75,4 +75,4 @@ declare class NovuUI {
|
|
|
75
75
|
unmount(): void;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export { Appearance,
|
|
78
|
+
export { Appearance, type BaseNovuUIOptions, BellRenderer, BodyRenderer, InboxPage, type InboxProps, Localization, NotificationActionClickHandler, NotificationClickHandler, NotificationRenderer, NovuProviderProps, NovuUI, type NovuUIOptions, PreferencesFilter, RouterPush, SubjectRenderer, Tab };
|