@novu/js 3.14.1 → 3.15.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-LESVJBPO.js → chunk-C23LCEUU.js} +245 -69
- package/dist/cjs/{chunk-CCAUG7YI.js → chunk-YPTYVCVE.js} +15 -15
- package/dist/cjs/index.d.ts +10 -5
- package/dist/cjs/index.js +21 -17
- package/dist/cjs/internal/index.d.ts +1 -1
- package/dist/cjs/internal/index.js +6 -6
- package/dist/{esm/novu-C7T9MOUL.d.mts → cjs/novu-CI_mzxvm.d.ts} +3 -3
- package/dist/{esm/novu-event-emitter-DlsghVpg.d.mts → cjs/novu-event-emitter-D9AphR7g.d.ts} +39 -17
- package/dist/cjs/themes/index.d.ts +3 -3
- package/dist/cjs/{types-kZC7YyfT.d.ts → types-DXbz7pFA.d.ts} +7 -4
- package/dist/cjs/ui/index.d.ts +5 -5
- package/dist/cjs/ui/index.js +66 -54
- package/dist/esm/{chunk-W4JUMCRN.mjs → chunk-3WBJEI4O.mjs} +15 -15
- package/dist/esm/{chunk-JK4KFZIA.mjs → chunk-DXONCY42.mjs} +197 -22
- package/dist/esm/index.d.mts +10 -5
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/internal/index.d.mts +1 -1
- package/dist/esm/internal/index.mjs +1 -1
- package/dist/{cjs/novu-Dz_wNJko.d.ts → esm/novu-DTGsXJjv.d.mts} +3 -3
- package/dist/{cjs/novu-event-emitter-DlsghVpg.d.ts → esm/novu-event-emitter-D9AphR7g.d.mts} +39 -17
- package/dist/esm/themes/index.d.mts +3 -3
- package/dist/esm/{types-ChYSuHwX.d.mts → types-zMKIpsOL.d.mts} +7 -4
- package/dist/esm/ui/index.d.mts +5 -5
- package/dist/esm/ui/index.mjs +59 -47
- package/dist/novu.min.js +16 -12
- package/dist/novu.min.js.gz +0 -0
- package/package.json +3 -3
|
@@ -96,7 +96,7 @@ var NovuError = class extends Error {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
// src/notifications/helpers.ts
|
|
99
|
-
var read = (_0) => chunk7B52C2XE_js.__async(
|
|
99
|
+
var read = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
100
100
|
emitter,
|
|
101
101
|
apiService,
|
|
102
102
|
args
|
|
@@ -128,7 +128,7 @@ var read = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
128
128
|
return { error: new NovuError("Failed to read notification", error) };
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
|
-
var unread = (_0) => chunk7B52C2XE_js.__async(
|
|
131
|
+
var unread = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
132
132
|
emitter,
|
|
133
133
|
apiService,
|
|
134
134
|
args
|
|
@@ -160,7 +160,7 @@ var unread = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
160
160
|
return { error: new NovuError("Failed to unread notification", error) };
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
|
-
var seen = (_0) => chunk7B52C2XE_js.__async(
|
|
163
|
+
var seen = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
164
164
|
emitter,
|
|
165
165
|
apiService,
|
|
166
166
|
args
|
|
@@ -192,7 +192,7 @@ var seen = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
192
192
|
return { error: new NovuError("Failed to mark notification as seen", error) };
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
-
var archive = (_0) => chunk7B52C2XE_js.__async(
|
|
195
|
+
var archive = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
196
196
|
emitter,
|
|
197
197
|
apiService,
|
|
198
198
|
args
|
|
@@ -224,7 +224,7 @@ var archive = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
224
224
|
return { error: new NovuError("Failed to archive notification", error) };
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
|
-
var unarchive = (_0) => chunk7B52C2XE_js.__async(
|
|
227
|
+
var unarchive = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
228
228
|
emitter,
|
|
229
229
|
apiService,
|
|
230
230
|
args
|
|
@@ -256,7 +256,7 @@ var unarchive = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
256
256
|
return { error: new NovuError("Failed to unarchive notification", error) };
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
|
-
var snooze = (_0) => chunk7B52C2XE_js.__async(
|
|
259
|
+
var snooze = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
260
260
|
emitter,
|
|
261
261
|
apiService,
|
|
262
262
|
args
|
|
@@ -286,7 +286,7 @@ var snooze = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
286
286
|
return { error: new NovuError("Failed to snooze notification", error) };
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
var unsnooze = (_0) => chunk7B52C2XE_js.__async(
|
|
289
|
+
var unsnooze = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
290
290
|
emitter,
|
|
291
291
|
apiService,
|
|
292
292
|
args
|
|
@@ -316,7 +316,7 @@ var unsnooze = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
316
316
|
return { error: new NovuError("Failed to unsnooze notification", error) };
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
|
-
var completeAction = (_0) => chunk7B52C2XE_js.__async(
|
|
319
|
+
var completeAction = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
320
320
|
emitter,
|
|
321
321
|
apiService,
|
|
322
322
|
args,
|
|
@@ -349,7 +349,7 @@ var completeAction = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
349
349
|
return { error: new NovuError(`Failed to complete ${actionType} action on the notification`, error) };
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
|
-
var revertAction = (_0) => chunk7B52C2XE_js.__async(
|
|
352
|
+
var revertAction = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
353
353
|
emitter,
|
|
354
354
|
apiService,
|
|
355
355
|
args,
|
|
@@ -398,7 +398,7 @@ var getNotificationDetails = (args, update, dependencies) => {
|
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
|
-
var readAll = (_0) => chunk7B52C2XE_js.__async(
|
|
401
|
+
var readAll = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
402
402
|
emitter,
|
|
403
403
|
inboxService,
|
|
404
404
|
notificationsCache,
|
|
@@ -428,7 +428,7 @@ var readAll = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
428
428
|
return { error: new NovuError("Failed to read all notifications", error) };
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
|
-
var seenAll = (_0) => chunk7B52C2XE_js.__async(
|
|
431
|
+
var seenAll = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
432
432
|
emitter,
|
|
433
433
|
inboxService,
|
|
434
434
|
notificationsCache,
|
|
@@ -464,7 +464,7 @@ var seenAll = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
464
464
|
return { error: new NovuError("Failed to mark all notifications as seen", error) };
|
|
465
465
|
}
|
|
466
466
|
});
|
|
467
|
-
var archiveAll = (_0) => chunk7B52C2XE_js.__async(
|
|
467
|
+
var archiveAll = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
468
468
|
emitter,
|
|
469
469
|
inboxService,
|
|
470
470
|
notificationsCache,
|
|
@@ -494,7 +494,7 @@ var archiveAll = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
494
494
|
return { error: new NovuError("Failed to archive all notifications", error) };
|
|
495
495
|
}
|
|
496
496
|
});
|
|
497
|
-
var archiveAllRead = (_0) => chunk7B52C2XE_js.__async(
|
|
497
|
+
var archiveAllRead = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
498
498
|
emitter,
|
|
499
499
|
inboxService,
|
|
500
500
|
notificationsCache,
|
|
@@ -519,7 +519,7 @@ var archiveAllRead = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function* ({
|
|
|
519
519
|
return { error: new NovuError("Failed to archive all read notifications", error) };
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
|
-
var deleteNotification = (_0) => chunk7B52C2XE_js.__async(
|
|
522
|
+
var deleteNotification = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
523
523
|
emitter,
|
|
524
524
|
apiService,
|
|
525
525
|
args
|
|
@@ -544,7 +544,7 @@ var deleteNotification = (_0) => chunk7B52C2XE_js.__async(void 0, [_0], function
|
|
|
544
544
|
return { error: new NovuError("Failed to delete notification", error) };
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
|
-
var deleteAll = (_0) => chunk7B52C2XE_js.__async(
|
|
547
|
+
var deleteAll = (_0) => chunk7B52C2XE_js.__async(null, [_0], function* ({
|
|
548
548
|
emitter,
|
|
549
549
|
inboxService,
|
|
550
550
|
notificationsCache,
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
export * from 'json-logic-js';
|
|
2
|
-
import { S as SeverityLevelEnum, N as
|
|
3
|
-
export { B as BaseDeleteSubscriptionArgs,
|
|
4
|
-
export { N as Novu } from './novu-
|
|
2
|
+
import { S as SeverityLevelEnum, T as TagsFilter, N as Notification, a as NotificationFilter } from './novu-event-emitter-D9AphR7g.js';
|
|
3
|
+
export { B as BaseDeleteSubscriptionArgs, b as BaseUpdateSubscriptionArgs, C as ChannelPreference, c as ChannelType, d as Context, e as CreateSubscriptionArgs, D as DaySchedule, f as DefaultSchedule, g as DeleteSubscriptionArgs, E as EventHandler, h as Events, F as FiltersCountResponse, G as GetSubscriptionArgs, I as InboxNotification, i as InstanceDeleteSubscriptionArgs, j as InstanceUpdateSubscriptionArgs, L as ListNotificationsResponse, k as ListSubscriptionsArgs, l as NotificationStatus, m as NovuError, n as NovuOptions, o as NovuSocketOptions, P as Preference, p as PreferenceFilter, q as PreferenceLevel, r as PreferencesResponse, s as Schedule, t as SocketEventNames, u as SocketTypeOption, v as StandardNovuOptions, w as Subscriber, x as SubscriptionPreference, y as TagsFilterAndForm, z as TagsFilterOrGroup, A as TimeRange, H as TopicSubscription, U as UnreadCount, J as UpdateSubscriptionArgs, K as UpdateSubscriptionPreferenceArgs, W as WebSocketEvent, M as WeeklySchedule, O as WorkflowCriticalityEnum, Q as WorkflowFilter, R as WorkflowGroupFilter, V as WorkflowIdentifierOrId } from './novu-event-emitter-D9AphR7g.js';
|
|
4
|
+
export { N as Novu } from './novu-CI_mzxvm.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Normalizes inbox tag filters to CNF: `string[][]` where each inner array is one OR-group.
|
|
8
|
+
* A flat list `['a','b']` is normalized to one OR-group `[['a','b']]`. Empty input → `[]` (no tag filter).
|
|
9
|
+
*/
|
|
10
|
+
declare function normalizeTagGroups(tags: TagsFilter | undefined): string[][];
|
|
11
|
+
declare const areTagsEqual: (tags1?: TagsFilter, tags2?: TagsFilter) => boolean;
|
|
7
12
|
declare const areSeveritiesEqual: (el1?: SeverityLevelEnum | SeverityLevelEnum[], el2?: SeverityLevelEnum | SeverityLevelEnum[]) => boolean;
|
|
8
13
|
declare const isSameFilter: (filter1: NotificationFilter, filter2: NotificationFilter) => boolean;
|
|
9
14
|
declare function checkNotificationDataFilter(notificationData: Notification['data'], filterData: NotificationFilter['data']): boolean;
|
|
@@ -13,4 +18,4 @@ declare function checkNotificationDataFilter(notificationData: Notification['dat
|
|
|
13
18
|
*/
|
|
14
19
|
declare function checkNotificationMatchesFilter(notification: Notification, filter: NotificationFilter): boolean;
|
|
15
20
|
|
|
16
|
-
export { Notification, NotificationFilter, SeverityLevelEnum, areSeveritiesEqual, areTagsEqual, checkNotificationDataFilter, checkNotificationMatchesFilter, isSameFilter };
|
|
21
|
+
export { Notification, NotificationFilter, SeverityLevelEnum, TagsFilter, areSeveritiesEqual, areTagsEqual, checkNotificationDataFilter, checkNotificationMatchesFilter, isSameFilter, normalizeTagGroups };
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkC23LCEUU_js = require('./chunk-C23LCEUU.js');
|
|
4
|
+
var chunkYPTYVCVE_js = require('./chunk-YPTYVCVE.js');
|
|
5
5
|
require('./chunk-7B52C2XE.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "Novu", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkC23LCEUU_js.Novu; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "SubscriptionPreference", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkC23LCEUU_js.SubscriptionPreference; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "TopicSubscription", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkC23LCEUU_js.TopicSubscription; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "areSeveritiesEqual", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkC23LCEUU_js.areSeveritiesEqual; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "areTagsEqual", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkC23LCEUU_js.areTagsEqual; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "checkNotificationDataFilter", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkC23LCEUU_js.checkNotificationDataFilter; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "checkNotificationMatchesFilter", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkC23LCEUU_js.checkNotificationMatchesFilter; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "isSameFilter", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkC23LCEUU_js.isSameFilter; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "normalizeTagGroups", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkC23LCEUU_js.normalizeTagGroups; }
|
|
40
44
|
});
|
|
41
45
|
Object.defineProperty(exports, "ChannelType", {
|
|
42
46
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkYPTYVCVE_js.ChannelType; }
|
|
44
48
|
});
|
|
45
49
|
Object.defineProperty(exports, "NotificationStatus", {
|
|
46
50
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkYPTYVCVE_js.NotificationStatus; }
|
|
48
52
|
});
|
|
49
53
|
Object.defineProperty(exports, "NovuError", {
|
|
50
54
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkYPTYVCVE_js.NovuError; }
|
|
52
56
|
});
|
|
53
57
|
Object.defineProperty(exports, "PreferenceLevel", {
|
|
54
58
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkYPTYVCVE_js.PreferenceLevel; }
|
|
56
60
|
});
|
|
57
61
|
Object.defineProperty(exports, "SeverityLevelEnum", {
|
|
58
62
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkYPTYVCVE_js.SeverityLevelEnum; }
|
|
60
64
|
});
|
|
61
65
|
Object.defineProperty(exports, "WebSocketEvent", {
|
|
62
66
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkYPTYVCVE_js.WebSocketEvent; }
|
|
64
68
|
});
|
|
65
69
|
Object.defineProperty(exports, "WorkflowCriticalityEnum", {
|
|
66
70
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkYPTYVCVE_js.WorkflowCriticalityEnum; }
|
|
68
72
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as Context, w as Subscriber, Y as NovuEventEmitter, X as InboxService, I as InboxNotification, N as Notification } from '../novu-event-emitter-D9AphR7g.js';
|
|
2
2
|
import 'json-logic-js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYPTYVCVE_js = require('../chunk-YPTYVCVE.js');
|
|
4
4
|
require('../chunk-7B52C2XE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "buildContextKey", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkYPTYVCVE_js.buildContextKey; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "buildSubscriber", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkYPTYVCVE_js.buildSubscriber; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "buildSubscriptionIdentifier", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkYPTYVCVE_js.buildSubscriptionIdentifier; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "createNotification", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYPTYVCVE_js.createNotification; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "parseMarkdownIntoTokens", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYPTYVCVE_js.parseMarkdownIntoTokens; }
|
|
27
27
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as InboxService, Y as NovuEventEmitter, Z as Session, _ as Result, $ as ScheduleCache, s as Schedule, a0 as UpdateScheduleArgs, a1 as PreferencesCache, a2 as ListPreferencesArgs, P as Preference, a3 as BasePreferenceArgs, a4 as InstancePreferenceArgs, a5 as ListNotificationsArgs, L as ListNotificationsResponse, I as InboxNotification, N as Notification, a as NotificationFilter, a6 as FilterCountArgs, a7 as FilterCountResponse, a8 as FiltersCountArgs, F as FiltersCountResponse, a9 as BaseArgs, aa as InstanceArgs, ab as SnoozeArgs, ac as SubscriptionsCache, w as Subscriber, k as ListSubscriptionsArgs, ad as Options, H as TopicSubscription, G as GetSubscriptionArgs, e as CreateSubscriptionArgs, b as BaseUpdateSubscriptionArgs, j as InstanceUpdateSubscriptionArgs, B as BaseDeleteSubscriptionArgs, i as InstanceDeleteSubscriptionArgs, t as SocketEventNames, ae as EventNames, E as EventHandler, h as Events, af as ContextValue, n as NovuOptions, d as Context } from './novu-event-emitter-D9AphR7g.js';
|
|
2
2
|
|
|
3
3
|
declare class BaseModule {
|
|
4
4
|
#private;
|
|
@@ -116,8 +116,8 @@ declare class Notifications extends BaseModule {
|
|
|
116
116
|
tags?: NotificationFilter['tags'];
|
|
117
117
|
data?: Record<string, unknown>;
|
|
118
118
|
}): Result<void>;
|
|
119
|
-
archiveAllRead({ tags, data }?: {
|
|
120
|
-
tags?:
|
|
119
|
+
archiveAllRead({ tags, data, }?: {
|
|
120
|
+
tags?: NotificationFilter['tags'];
|
|
121
121
|
data?: Record<string, unknown>;
|
|
122
122
|
}): Result<void>;
|
|
123
123
|
deleteAll({ tags, data, }?: {
|
|
@@ -219,6 +219,28 @@ type Workflow = {
|
|
|
219
219
|
tags?: string[];
|
|
220
220
|
severity: SeverityLevelEnum;
|
|
221
221
|
};
|
|
222
|
+
type TagsFilterOrGroup = {
|
|
223
|
+
or: string[];
|
|
224
|
+
};
|
|
225
|
+
type TagsFilterAndForm = {
|
|
226
|
+
and: TagsFilterOrGroup[];
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Inbox tag filter: a **single** OR-group as `string[]` or `{ or: string[] }`, or **multiple** OR-groups (AND of OR) as `{ and: [{ or: string[] }, ...] }`.
|
|
230
|
+
*
|
|
231
|
+
* @example Single OR-group — match notifications tagged `promo` **or** `sale`
|
|
232
|
+
* ```ts
|
|
233
|
+
* const tags: TagsFilter = ['promo', 'sale'];
|
|
234
|
+
* ```
|
|
235
|
+
*
|
|
236
|
+
* @example AND of OR-groups — match (`urgent` **or** `critical`) **and** (`billing`)
|
|
237
|
+
* ```ts
|
|
238
|
+
* const tags: TagsFilter = {
|
|
239
|
+
* and: [{ or: ['urgent', 'critical'] }, { or: ['billing'] }],
|
|
240
|
+
* };
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
type TagsFilter = string[] | TagsFilterOrGroup | TagsFilterAndForm;
|
|
222
244
|
type InboxNotification = {
|
|
223
245
|
id: string;
|
|
224
246
|
transactionId: string;
|
|
@@ -246,7 +268,7 @@ type InboxNotification = {
|
|
|
246
268
|
severity: SeverityLevelEnum;
|
|
247
269
|
};
|
|
248
270
|
type NotificationFilter = {
|
|
249
|
-
tags?:
|
|
271
|
+
tags?: TagsFilter;
|
|
250
272
|
read?: boolean;
|
|
251
273
|
archived?: boolean;
|
|
252
274
|
snoozed?: boolean;
|
|
@@ -470,7 +492,7 @@ declare class InboxService {
|
|
|
470
492
|
context?: Context;
|
|
471
493
|
}): Promise<Session>;
|
|
472
494
|
fetchNotifications({ after, archived, limit, offset, read, tags, snoozed, seen, data, severity, createdGte, createdLte, }: {
|
|
473
|
-
tags?:
|
|
495
|
+
tags?: TagsFilter;
|
|
474
496
|
read?: boolean;
|
|
475
497
|
archived?: boolean;
|
|
476
498
|
snoozed?: boolean;
|
|
@@ -489,7 +511,7 @@ declare class InboxService {
|
|
|
489
511
|
}>;
|
|
490
512
|
count({ filters, }: {
|
|
491
513
|
filters: Array<{
|
|
492
|
-
tags?:
|
|
514
|
+
tags?: TagsFilter;
|
|
493
515
|
read?: boolean;
|
|
494
516
|
archived?: boolean;
|
|
495
517
|
snoozed?: boolean;
|
|
@@ -510,25 +532,25 @@ declare class InboxService {
|
|
|
510
532
|
snooze(notificationId: string, snoozeUntil: string): Promise<InboxNotification>;
|
|
511
533
|
unsnooze(notificationId: string): Promise<InboxNotification>;
|
|
512
534
|
readAll({ tags, data }: {
|
|
513
|
-
tags?:
|
|
535
|
+
tags?: TagsFilter;
|
|
514
536
|
data?: Record<string, unknown>;
|
|
515
537
|
}): Promise<void>;
|
|
516
538
|
archiveAll({ tags, data }: {
|
|
517
|
-
tags?:
|
|
539
|
+
tags?: TagsFilter;
|
|
518
540
|
data?: Record<string, unknown>;
|
|
519
541
|
}): Promise<void>;
|
|
520
542
|
archiveAllRead({ tags, data }: {
|
|
521
|
-
tags?:
|
|
543
|
+
tags?: TagsFilter;
|
|
522
544
|
data?: Record<string, unknown>;
|
|
523
545
|
}): Promise<void>;
|
|
524
546
|
delete(notificationId: string): Promise<void>;
|
|
525
547
|
deleteAll({ tags, data }: {
|
|
526
|
-
tags?:
|
|
548
|
+
tags?: TagsFilter;
|
|
527
549
|
data?: Record<string, unknown>;
|
|
528
550
|
}): Promise<void>;
|
|
529
551
|
markAsSeen({ notificationIds, tags, data, }: {
|
|
530
552
|
notificationIds?: string[];
|
|
531
|
-
tags?:
|
|
553
|
+
tags?: TagsFilter;
|
|
532
554
|
data?: Record<string, unknown>;
|
|
533
555
|
}): Promise<void>;
|
|
534
556
|
seen(notificationId: string): Promise<void>;
|
|
@@ -651,7 +673,7 @@ declare class Notification implements Pick<NovuEventEmitter, 'on'>, InboxNotific
|
|
|
651
673
|
}
|
|
652
674
|
|
|
653
675
|
type ListNotificationsArgs = {
|
|
654
|
-
tags?:
|
|
676
|
+
tags?: TagsFilter;
|
|
655
677
|
read?: boolean;
|
|
656
678
|
data?: Record<string, unknown>;
|
|
657
679
|
archived?: boolean;
|
|
@@ -671,7 +693,7 @@ type ListNotificationsResponse = {
|
|
|
671
693
|
filter: NotificationFilter;
|
|
672
694
|
};
|
|
673
695
|
type FilterCountArgs = {
|
|
674
|
-
tags?:
|
|
696
|
+
tags?: TagsFilter;
|
|
675
697
|
data?: Record<string, unknown>;
|
|
676
698
|
read?: boolean;
|
|
677
699
|
archived?: boolean;
|
|
@@ -683,7 +705,7 @@ type FilterCountArgs = {
|
|
|
683
705
|
};
|
|
684
706
|
type FiltersCountArgs = {
|
|
685
707
|
filters: Array<{
|
|
686
|
-
tags?:
|
|
708
|
+
tags?: TagsFilter;
|
|
687
709
|
read?: boolean;
|
|
688
710
|
archived?: boolean;
|
|
689
711
|
snoozed?: boolean;
|
|
@@ -764,25 +786,25 @@ type NotificationUnsnoozeEvents = BaseEvents<'notification.unsnooze', UnsnoozeAr
|
|
|
764
786
|
type NotificationCompleteActionEvents = BaseEvents<'notification.complete_action', CompleteArgs, Notification>;
|
|
765
787
|
type NotificationRevertActionEvents = BaseEvents<'notification.revert_action', RevertArgs, Notification>;
|
|
766
788
|
type NotificationsReadAllEvents = BaseEvents<'notifications.read_all', {
|
|
767
|
-
tags?:
|
|
789
|
+
tags?: TagsFilter;
|
|
768
790
|
data?: Record<string, unknown>;
|
|
769
791
|
}, Notification[]>;
|
|
770
792
|
type NotificationsSeenAllEvents = BaseEvents<'notifications.seen_all', {
|
|
771
793
|
notificationIds: string[];
|
|
772
794
|
} | {
|
|
773
|
-
tags?:
|
|
795
|
+
tags?: TagsFilter;
|
|
774
796
|
data?: Record<string, unknown>;
|
|
775
797
|
} | {}, Notification[]>;
|
|
776
798
|
type NotificationsArchivedAllEvents = BaseEvents<'notifications.archive_all', {
|
|
777
|
-
tags?:
|
|
799
|
+
tags?: TagsFilter;
|
|
778
800
|
data?: Record<string, unknown>;
|
|
779
801
|
}, Notification[]>;
|
|
780
802
|
type NotificationsReadArchivedAllEvents = BaseEvents<'notifications.archive_all_read', {
|
|
781
|
-
tags?:
|
|
803
|
+
tags?: TagsFilter;
|
|
782
804
|
data?: Record<string, unknown>;
|
|
783
805
|
}, Notification[]>;
|
|
784
806
|
type NotificationsDeletedAllEvents = BaseEvents<'notifications.delete_all', {
|
|
785
|
-
tags?:
|
|
807
|
+
tags?: TagsFilter;
|
|
786
808
|
data?: Record<string, unknown>;
|
|
787
809
|
}, Notification[]>;
|
|
788
810
|
type PreferencesFetchEvents = BaseEvents<'preferences.list', ListPreferencesArgs, Preference[]>;
|
|
@@ -865,4 +887,4 @@ declare class NovuEventEmitter {
|
|
|
865
887
|
emit<Key extends EventNames>(type: Key, event?: Events[Key]): void;
|
|
866
888
|
}
|
|
867
889
|
|
|
868
|
-
export {
|
|
890
|
+
export { ScheduleCache as $, type TimeRange as A, type BaseDeleteSubscriptionArgs as B, type ChannelPreference as C, type DaySchedule as D, type EventHandler as E, type FiltersCountResponse as F, type GetSubscriptionArgs as G, TopicSubscription as H, type InboxNotification as I, type UpdateSubscriptionArgs as J, type UpdateSubscriptionPreferenceArgs as K, type ListNotificationsResponse as L, type WeeklySchedule as M, Notification as N, WorkflowCriticalityEnum as O, Preference as P, type WorkflowFilter as Q, type WorkflowGroupFilter as R, SeverityLevelEnum as S, type TagsFilter as T, type UnreadCount as U, type WorkflowIdentifierOrId as V, WebSocketEvent as W, InboxService as X, NovuEventEmitter as Y, type Session as Z, type Result as _, type NotificationFilter as a, type UpdateScheduleArgs as a0, PreferencesCache as a1, type ListPreferencesArgs as a2, type BasePreferenceArgs as a3, type InstancePreferenceArgs as a4, type ListNotificationsArgs as a5, type FilterCountArgs as a6, type FilterCountResponse as a7, type FiltersCountArgs as a8, type BaseArgs as a9, type InstanceArgs as aa, type SnoozeArgs as ab, SubscriptionsCache as ac, type Options as ad, type EventNames as ae, type ContextValue as af, type BaseUpdateSubscriptionArgs as b, ChannelType as c, type Context as d, type CreateSubscriptionArgs as e, type DefaultSchedule as f, type DeleteSubscriptionArgs as g, type Events as h, type InstanceDeleteSubscriptionArgs as i, type InstanceUpdateSubscriptionArgs as j, type ListSubscriptionsArgs as k, NotificationStatus as l, NovuError as m, type NovuOptions as n, type NovuSocketOptions as o, type PreferenceFilter as p, PreferenceLevel as q, type PreferencesResponse as r, Schedule as s, type SocketEventNames as t, type SocketTypeOption as u, type StandardNovuOptions as v, type Subscriber as w, SubscriptionPreference as x, type TagsFilterAndForm as y, type TagsFilterOrGroup as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as InboxTheme, Y as SubscriptionTheme } from '../types-
|
|
2
|
-
import '../novu-event-emitter-
|
|
1
|
+
import { G as InboxTheme, Y as SubscriptionTheme } from '../types-DXbz7pFA.js';
|
|
2
|
+
import '../novu-event-emitter-D9AphR7g.js';
|
|
3
3
|
import 'json-logic-js';
|
|
4
|
-
import '../novu-
|
|
4
|
+
import '../novu-CI_mzxvm.js';
|
|
5
5
|
|
|
6
6
|
declare const inboxDarkTheme: InboxTheme;
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { N as Novu } from './novu-
|
|
1
|
+
import { P as Preference, s as Schedule, N as Notification, H as TopicSubscription, x as SubscriptionPreference, n as NovuOptions, a as NotificationFilter, O as WorkflowCriticalityEnum, U as UnreadCount } from './novu-event-emitter-D9AphR7g.js';
|
|
2
|
+
import { N as Novu } from './novu-CI_mzxvm.js';
|
|
3
3
|
|
|
4
4
|
declare const commonAppearanceKeys: readonly ["root", "button", "input", "icon", "badge", "popoverContent", "popoverTrigger", "popoverClose", "collapsible", "tooltipContent", "tooltipTrigger"];
|
|
5
5
|
declare const inboxAppearanceKeys: readonly ["bellIcon", "lockIcon", "bellContainer", "severityHigh__bellContainer", "severityMedium__bellContainer", "severityLow__bellContainer", "bellSeverityGlow", "severityGlowHigh__bellSeverityGlow", "severityGlowMedium__bellSeverityGlow", "severityGlowLow__bellSeverityGlow", "bellDot", "preferences__button", "preferencesContainer", "inboxHeader", "loading", "dropdownContent", "dropdownTrigger", "dropdownItem", "dropdownItemLabel", "dropdownItemLabelContainer", "dropdownItemLeft__icon", "dropdownItemRight__icon", "dropdownItem__icon", "datePicker", "datePickerGrid", "datePickerGridRow", "datePickerGridCell", "datePickerGridCellTrigger", "datePickerTrigger", "datePickerGridHeader", "datePickerControl", "datePickerControlPrevTrigger", "datePickerControlNextTrigger", "datePickerControlPrevTrigger__icon", "datePickerControlNextTrigger__icon", "datePickerCalendar", "datePickerHeaderMonth", "datePickerCalendarDay__button", "timePicker", "timePicker__hourSelect", "timePicker__minuteSelect", "timePicker__periodSelect", "timePicker__separator", "timePickerHour__input", "timePickerMinute__input", "snoozeDatePicker", "snoozeDatePicker__actions", "snoozeDatePickerCancel__button", "snoozeDatePickerApply__button", "snoozeDatePicker__timePickerContainer", "snoozeDatePicker__timePickerLabel", "back__button", "skeletonText", "skeletonAvatar", "skeletonSwitch", "skeletonSwitchThumb", "tabsRoot", "tabsList", "tabsContent", "tabsTrigger", "dots", "inboxContent", "inbox__popoverTrigger", "inbox__popoverContent", "notificationListContainer", "notificationList", "notificationListEmptyNoticeContainer", "notificationListEmptyNoticeOverlay", "notificationListEmptyNoticeIcon", "notificationListEmptyNotice", "notificationList__skeleton", "notificationList__skeletonContent", "notificationList__skeletonItem", "notificationList__skeletonAvatar", "notificationList__skeletonText", "notificationListNewNotificationsNotice__button", "notification", "severityHigh__notification", "severityMedium__notification", "severityLow__notification", "notificationBar", "severityHigh__notificationBar", "severityMedium__notificationBar", "severityLow__notificationBar", "notificationContent", "notificationTextContainer", "notificationDot", "notificationSubject", "notificationSubject__strong", "notificationSubject__em", "notificationBody", "notificationBody__strong", "notificationBody__em", "notificationBodyContainer", "notificationImage", "notificationImageLoadingFallback", "notificationDate", "notificationDateActionsContainer", "notificationDefaultActions", "notificationCustomActions", "notificationPrimaryAction__button", "notificationSecondaryAction__button", "notificationRead__button", "notificationUnread__button", "notificationArchive__button", "notificationUnarchive__button", "notificationSnooze__button", "notificationUnsnooze__button", "notificationRead__icon", "notificationUnread__icon", "notificationArchive__icon", "notificationUnarchive__icon", "notificationSnooze__icon", "notificationUnsnooze__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", "workflowLabelHeaderContainer", "workflowLabelIcon", "workflowLabelContainer", "workflowContainerDisabledNotice", "workflowLabelDisabled__icon", "workflowContainerRight__icon", "workflowArrow__icon", "workflowDescription", "preferencesGroupContainer", "preferencesGroupHeader", "preferencesGroupLabelContainer", "preferencesGroupLabelIcon", "preferencesGroupLabel", "preferencesGroupActionsContainer", "preferencesGroupActionsContainerRight__icon", "preferencesGroupBody", "preferencesGroupChannels", "preferencesGroupInfo", "preferencesGroupInfoIcon", "preferencesGroupWorkflows", "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", "scheduleContainer", "scheduleHeader", "scheduleLabelContainer", "scheduleLabelScheduleIcon", "scheduleLabelInfoIcon", "scheduleLabel", "scheduleActionsContainer", "scheduleActionsContainerRight", "scheduleBody", "scheduleDescription", "scheduleTable", "scheduleTableHeader", "scheduleHeaderColumn", "scheduleTableBody", "scheduleBodyRow", "scheduleBodyColumn", "scheduleInfoContainer", "scheduleInfoIcon", "scheduleInfo", "dayScheduleCopyTitle", "dayScheduleCopyIcon", "dayScheduleCopySelectAll", "dayScheduleCopyDay", "dayScheduleCopyFooterContainer", "dayScheduleCopy__dropdownTrigger", "dayScheduleCopy__dropdownContent", "timeSelect__dropdownTrigger", "timeSelect__time", "timeSelect__dropdownContent", "timeSelect__dropdownItem", "timeSelect__dropdownItemLabel", "timeSelect__dropdownItemLabelContainer", "timeSelect__dropdownItemCheck__icon", "notificationSnooze__dropdownContent", "notificationSnooze__dropdownItem", "notificationSnooze__dropdownItem__icon", "notificationSnoozeCustomTime_popoverContent", "notificationDeliveredAt__badge", "notificationDeliveredAt__icon", "notificationSnoozedUntil__icon", "strong", "em"];
|
|
@@ -818,7 +818,10 @@ declare enum NotificationStatus {
|
|
|
818
818
|
ARCHIVED = "archived",
|
|
819
819
|
SNOOZED = "snoozed"
|
|
820
820
|
}
|
|
821
|
-
|
|
821
|
+
/** Preferences list API accepts a flat OR tag list only (not CNF). */
|
|
822
|
+
type PreferencesFilter = {
|
|
823
|
+
tags?: string[];
|
|
824
|
+
severity?: NotificationFilter['severity'];
|
|
822
825
|
criticality?: WorkflowCriticalityEnum;
|
|
823
826
|
};
|
|
824
827
|
type PreferencesSort = (a: Preference, b: Preference) => number;
|
|
@@ -833,4 +836,4 @@ type PreferenceGroups = Array<{
|
|
|
833
836
|
filter: PreferenceGroupFilter;
|
|
834
837
|
}>;
|
|
835
838
|
|
|
836
|
-
export { type AvatarRenderer as A, type BellRenderer as B, type CustomActionsRenderer as C, type DefaultActionsRenderer as D, type ElementStyles as E, type InboxLocalizationKey as F, type InboxTheme as G, NotificationStatus as H, type IconRenderer as I, type SubscriptionAppearance as J, type SubscriptionAppearanceCallback as K, type SubscriptionAppearanceCallbackFunction as L, type SubscriptionAppearanceCallbackKeys as M, type NotificationClickHandler as N, type SubscriptionAppearanceKey as O, type PreferencesFilter as P, type SubscriptionElements as Q, type RouterPush as R, type SubjectRenderer as S, type Tab as T, type SubscriptionIconKey as U, type SubscriptionIconOverrides as V, type SubscriptionLocalization as W, type SubscriptionLocalizationKey as X, type SubscriptionTheme as Y, type Variables as Z, type NotificationActionClickHandler as a, type NotificationRenderer as b, type BodyRenderer as c, type
|
|
839
|
+
export { type AvatarRenderer as A, type BellRenderer as B, type CustomActionsRenderer as C, type DefaultActionsRenderer as D, type ElementStyles as E, type InboxLocalizationKey as F, type InboxTheme as G, NotificationStatus as H, type IconRenderer as I, type SubscriptionAppearance as J, type SubscriptionAppearanceCallback as K, type SubscriptionAppearanceCallbackFunction as L, type SubscriptionAppearanceCallbackKeys as M, type NotificationClickHandler as N, type SubscriptionAppearanceKey as O, type PreferencesFilter as P, type SubscriptionElements as Q, type RouterPush as R, type SubjectRenderer as S, type Tab as T, type SubscriptionIconKey as U, type SubscriptionIconOverrides as V, type SubscriptionLocalization as W, type SubscriptionLocalizationKey as X, type SubscriptionTheme as Y, type Variables as Z, type NotificationActionClickHandler as a, type NotificationRenderer as b, type BodyRenderer as c, type BaseNovuProviderProps as d, type NovuProviderProps as e, type AllAppearance as f, type AllLocalization as g, type PreferenceGroups as h, type PreferencesSort as i, type AllAppearanceCallbackFunction as j, type AllAppearanceCallbackKeys as k, type AllAppearanceKey as l, type AllElements as m, type AllIconKey as n, type AllIconOverrides as o, type AllLocalizationKey as p, type AllTheme as q, type InboxAppearance as r, type InboxAppearanceCallback as s, type InboxAppearanceCallbackFunction as t, type InboxAppearanceCallbackKeys as u, type InboxAppearanceKey as v, type InboxElements as w, type InboxIconKey as x, type InboxIconOverrides as y, type InboxLocalization as z };
|
package/dist/cjs/ui/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, A as AvatarRenderer, S as SubjectRenderer, c as BodyRenderer, D as DefaultActionsRenderer, C as CustomActionsRenderer, d as
|
|
4
|
-
export { j as AllAppearanceCallbackFunction, k as AllAppearanceCallbackKeys, l as AllAppearanceKey, m as AllElements, n as AllIconKey, o as AllIconOverrides, p as AllLocalizationKey, q as AllTheme, E as ElementStyles, I as IconRenderer, r as InboxAppearance, s as InboxAppearanceCallback, t as InboxAppearanceCallbackFunction, u as InboxAppearanceCallbackKeys, v as InboxAppearanceKey, w as InboxElements, x as InboxIconKey, y as InboxIconOverrides, z as InboxLocalization, F as InboxLocalizationKey, G as InboxTheme, H as NotificationStatus, J as SubscriptionAppearance, K as SubscriptionAppearanceCallback, L as SubscriptionAppearanceCallbackFunction, M as SubscriptionAppearanceCallbackKeys, O as SubscriptionAppearanceKey, Q as SubscriptionElements, U as SubscriptionIconKey, V as SubscriptionIconOverrides, W as SubscriptionLocalization, X as SubscriptionLocalizationKey, Y as SubscriptionTheme, Z as Variables } from '../types-
|
|
1
|
+
import { V as WorkflowIdentifierOrId, H as TopicSubscription, n as NovuOptions } from '../novu-event-emitter-D9AphR7g.js';
|
|
2
|
+
export { N as Notification } from '../novu-event-emitter-D9AphR7g.js';
|
|
3
|
+
import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, A as AvatarRenderer, S as SubjectRenderer, c as BodyRenderer, D as DefaultActionsRenderer, C as CustomActionsRenderer, d as BaseNovuProviderProps, e as NovuProviderProps, f as AllAppearance, g as AllLocalization, T as Tab, P as PreferencesFilter, h as PreferenceGroups, i as PreferencesSort, R as RouterPush } from '../types-DXbz7pFA.js';
|
|
4
|
+
export { j as AllAppearanceCallbackFunction, k as AllAppearanceCallbackKeys, l as AllAppearanceKey, m as AllElements, n as AllIconKey, o as AllIconOverrides, p as AllLocalizationKey, q as AllTheme, E as ElementStyles, I as IconRenderer, r as InboxAppearance, s as InboxAppearanceCallback, t as InboxAppearanceCallbackFunction, u as InboxAppearanceCallbackKeys, v as InboxAppearanceKey, w as InboxElements, x as InboxIconKey, y as InboxIconOverrides, z as InboxLocalization, F as InboxLocalizationKey, G as InboxTheme, H as NotificationStatus, J as SubscriptionAppearance, K as SubscriptionAppearanceCallback, L as SubscriptionAppearanceCallbackFunction, M as SubscriptionAppearanceCallbackKeys, O as SubscriptionAppearanceKey, Q as SubscriptionElements, U as SubscriptionIconKey, V as SubscriptionIconOverrides, W as SubscriptionLocalization, X as SubscriptionLocalizationKey, Y as SubscriptionTheme, Z as Variables } from '../types-DXbz7pFA.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';
|
|
8
8
|
import { MountableElement } from 'solid-js/web';
|
|
9
|
-
import { N as Novu } from '../novu-
|
|
9
|
+
import { N as Novu } from '../novu-CI_mzxvm.js';
|
|
10
10
|
import 'json-logic-js';
|
|
11
11
|
|
|
12
12
|
type NotificationRendererProps = {
|