@novu/js 3.11.0-rc.1 → 3.12.0-rc.1

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.
Files changed (32) hide show
  1. package/dist/cjs/{chunk-VWSQDNZX.js → chunk-OZV3TKWX.js} +6 -0
  2. package/dist/cjs/{chunk-TROJWAJA.js → chunk-SZEUW4CB.js} +1070 -309
  3. package/dist/cjs/index.d.ts +5 -4
  4. package/dist/cjs/index.js +26 -14
  5. package/dist/cjs/internal/index.d.ts +8 -2
  6. package/dist/cjs/internal/index.js +8 -4
  7. package/dist/{esm/novu-DY-mm8Og.d.mts → cjs/novu-BVtCFUxa.d.ts} +398 -203
  8. package/dist/cjs/themes/index.d.ts +11 -5
  9. package/dist/cjs/themes/index.js +17 -1
  10. package/dist/{esm/types-BM_9Xx5Z.d.mts → cjs/types-D-9ozWeQ.d.ts} +20 -1
  11. package/dist/cjs/types-Rjzg7eo3.d.ts +836 -0
  12. package/dist/cjs/ui/index.d.ts +74 -7
  13. package/dist/cjs/ui/index.js +1786 -261
  14. package/dist/esm/{chunk-D4W52D4A.mjs → chunk-IA6ISHOP.mjs} +1068 -310
  15. package/dist/esm/{chunk-RZWQYM3H.mjs → chunk-RO3GDYAG.mjs} +6 -1
  16. package/dist/esm/index.d.mts +5 -4
  17. package/dist/esm/index.mjs +2 -2
  18. package/dist/esm/internal/index.d.mts +8 -2
  19. package/dist/esm/internal/index.mjs +1 -1
  20. package/dist/{cjs/novu-ThMWeiRt.d.ts → esm/novu-YP3PwsQR.d.mts} +398 -203
  21. package/dist/esm/themes/index.d.mts +11 -5
  22. package/dist/esm/themes/index.mjs +16 -2
  23. package/dist/{cjs/types-BM_9Xx5Z.d.ts → esm/types-D-9ozWeQ.d.mts} +20 -1
  24. package/dist/esm/types-DmMJ1GiR.d.mts +836 -0
  25. package/dist/esm/ui/index.d.mts +74 -7
  26. package/dist/esm/ui/index.mjs +1783 -257
  27. package/dist/index.css +1 -1
  28. package/dist/novu.min.js +12 -12
  29. package/dist/novu.min.js.gz +0 -0
  30. package/package.json +18 -17
  31. package/dist/cjs/types-BjANCN3c.d.ts +0 -537
  32. package/dist/esm/types-C5eX1GmB.d.mts +0 -537
@@ -1,7 +1,8 @@
1
- import { N as Notification } from './novu-ThMWeiRt.js';
2
- export { E as EventHandler, a as Events, F as FiltersCountResponse, L as ListNotificationsResponse, b as Novu, P as Preference, c as Schedule, S as SocketEventNames } from './novu-ThMWeiRt.js';
3
- import { S as SeverityLevelEnum, N as NotificationFilter } from './types-BM_9Xx5Z.js';
4
- export { C as ChannelPreference, a as ChannelType, b as Context, D as DaySchedule, c as DefaultSchedule, I as InboxNotification, d as NotificationStatus, e as NovuError, f as NovuOptions, P as PreferenceLevel, g as PreferencesResponse, h as StandardNovuOptions, i as Subscriber, T as TimeRange, U as UnreadCount, W as WebSocketEvent, j as WeeklySchedule, k as WorkflowCriticalityEnum } from './types-BM_9Xx5Z.js';
1
+ export * from 'json-logic-js';
2
+ import { N as Notification } from './novu-BVtCFUxa.js';
3
+ export { B as BaseDeleteSubscriptionArgs, e as BaseUpdateSubscriptionArgs, C as CreateSubscriptionArgs, D as DeleteSubscriptionArgs, E as EventHandler, a as Events, F as FiltersCountResponse, G as GetSubscriptionArgs, I as InstanceDeleteSubscriptionArgs, f as InstanceUpdateSubscriptionArgs, i as ListNotificationsResponse, L as ListSubscriptionsArgs, b as Novu, j as Preference, P as PreferenceFilter, k as Schedule, S as SocketEventNames, g as SubscriptionPreference, T as TopicSubscription, U as UpdateSubscriptionArgs, h as UpdateSubscriptionPreferenceArgs, W as WorkflowFilter, c as WorkflowGroupFilter, d as WorkflowIdentifierOrId } from './novu-BVtCFUxa.js';
4
+ import { S as SeverityLevelEnum, N as NotificationFilter } from './types-D-9ozWeQ.js';
5
+ export { C as ChannelPreference, a as ChannelType, b as Context, D as DaySchedule, c as DefaultSchedule, I as InboxNotification, d as NotificationStatus, k as NovuError, e as NovuOptions, P as PreferenceLevel, f as PreferencesResponse, g as StandardNovuOptions, h as Subscriber, T as TimeRange, U as UnreadCount, W as WebSocketEvent, i as WeeklySchedule, j as WorkflowCriticalityEnum } from './types-D-9ozWeQ.js';
5
6
 
6
7
  declare const areTagsEqual: (tags1?: string[], tags2?: string[]) => boolean;
7
8
  declare const areSeveritiesEqual: (el1?: SeverityLevelEnum | SeverityLevelEnum[], el2?: SeverityLevelEnum | SeverityLevelEnum[]) => boolean;
package/dist/cjs/index.js CHANGED
@@ -1,56 +1,68 @@
1
1
  'use strict';
2
2
 
3
- var chunkTROJWAJA_js = require('./chunk-TROJWAJA.js');
4
- require('./chunk-VWSQDNZX.js');
3
+ var chunkSZEUW4CB_js = require('./chunk-SZEUW4CB.js');
4
+ require('./chunk-OZV3TKWX.js');
5
5
  require('./chunk-7B52C2XE.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "ChannelType", {
10
10
  enumerable: true,
11
- get: function () { return chunkTROJWAJA_js.ChannelType; }
11
+ get: function () { return chunkSZEUW4CB_js.ChannelType; }
12
12
  });
13
13
  Object.defineProperty(exports, "NotificationStatus", {
14
14
  enumerable: true,
15
- get: function () { return chunkTROJWAJA_js.NotificationStatus; }
15
+ get: function () { return chunkSZEUW4CB_js.NotificationStatus; }
16
16
  });
17
17
  Object.defineProperty(exports, "Novu", {
18
18
  enumerable: true,
19
- get: function () { return chunkTROJWAJA_js.Novu; }
19
+ get: function () { return chunkSZEUW4CB_js.Novu; }
20
+ });
21
+ Object.defineProperty(exports, "NovuError", {
22
+ enumerable: true,
23
+ get: function () { return chunkSZEUW4CB_js.NovuError; }
20
24
  });
21
25
  Object.defineProperty(exports, "PreferenceLevel", {
22
26
  enumerable: true,
23
- get: function () { return chunkTROJWAJA_js.PreferenceLevel; }
27
+ get: function () { return chunkSZEUW4CB_js.PreferenceLevel; }
24
28
  });
25
29
  Object.defineProperty(exports, "SeverityLevelEnum", {
26
30
  enumerable: true,
27
- get: function () { return chunkTROJWAJA_js.SeverityLevelEnum; }
31
+ get: function () { return chunkSZEUW4CB_js.SeverityLevelEnum; }
32
+ });
33
+ Object.defineProperty(exports, "SubscriptionPreference", {
34
+ enumerable: true,
35
+ get: function () { return chunkSZEUW4CB_js.SubscriptionPreference; }
36
+ });
37
+ Object.defineProperty(exports, "TopicSubscription", {
38
+ enumerable: true,
39
+ get: function () { return chunkSZEUW4CB_js.TopicSubscription; }
28
40
  });
29
41
  Object.defineProperty(exports, "WebSocketEvent", {
30
42
  enumerable: true,
31
- get: function () { return chunkTROJWAJA_js.WebSocketEvent; }
43
+ get: function () { return chunkSZEUW4CB_js.WebSocketEvent; }
32
44
  });
33
45
  Object.defineProperty(exports, "WorkflowCriticalityEnum", {
34
46
  enumerable: true,
35
- get: function () { return chunkTROJWAJA_js.WorkflowCriticalityEnum; }
47
+ get: function () { return chunkSZEUW4CB_js.WorkflowCriticalityEnum; }
36
48
  });
37
49
  Object.defineProperty(exports, "areSeveritiesEqual", {
38
50
  enumerable: true,
39
- get: function () { return chunkTROJWAJA_js.areSeveritiesEqual; }
51
+ get: function () { return chunkSZEUW4CB_js.areSeveritiesEqual; }
40
52
  });
41
53
  Object.defineProperty(exports, "areTagsEqual", {
42
54
  enumerable: true,
43
- get: function () { return chunkTROJWAJA_js.areTagsEqual; }
55
+ get: function () { return chunkSZEUW4CB_js.areTagsEqual; }
44
56
  });
45
57
  Object.defineProperty(exports, "checkNotificationDataFilter", {
46
58
  enumerable: true,
47
- get: function () { return chunkTROJWAJA_js.checkNotificationDataFilter; }
59
+ get: function () { return chunkSZEUW4CB_js.checkNotificationDataFilter; }
48
60
  });
49
61
  Object.defineProperty(exports, "checkNotificationMatchesFilter", {
50
62
  enumerable: true,
51
- get: function () { return chunkTROJWAJA_js.checkNotificationMatchesFilter; }
63
+ get: function () { return chunkSZEUW4CB_js.checkNotificationMatchesFilter; }
52
64
  });
53
65
  Object.defineProperty(exports, "isSameFilter", {
54
66
  enumerable: true,
55
- get: function () { return chunkTROJWAJA_js.isSameFilter; }
67
+ get: function () { return chunkSZEUW4CB_js.isSameFilter; }
56
68
  });
@@ -1,4 +1,5 @@
1
- import { b as Context, i as Subscriber } from '../types-BM_9Xx5Z.js';
1
+ import { b as Context, h as Subscriber } from '../types-D-9ozWeQ.js';
2
+ import 'json-logic-js';
2
3
 
3
4
  /**
4
5
  * Builds a compact, stable string key from context objects by extracting only type:id pairs.
@@ -19,10 +20,15 @@ declare function buildSubscriber({ subscriberId, subscriber, }: {
19
20
  subscriber: Subscriber | string | undefined;
20
21
  }): Subscriber;
21
22
 
23
+ declare function buildSubscriptionIdentifier({ topicKey, subscriberId }: {
24
+ topicKey: string;
25
+ subscriberId?: string;
26
+ }): string;
27
+
22
28
  interface Token {
23
29
  type: 'bold' | 'text';
24
30
  content: string;
25
31
  }
26
32
  declare const parseMarkdownIntoTokens: (text: string) => Token[];
27
33
 
28
- export { type Token, buildContextKey, buildSubscriber, parseMarkdownIntoTokens };
34
+ export { type Token, buildContextKey, buildSubscriber, buildSubscriptionIdentifier, parseMarkdownIntoTokens };
@@ -1,19 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var chunkVWSQDNZX_js = require('../chunk-VWSQDNZX.js');
3
+ var chunkOZV3TKWX_js = require('../chunk-OZV3TKWX.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 chunkVWSQDNZX_js.buildContextKey; }
10
+ get: function () { return chunkOZV3TKWX_js.buildContextKey; }
11
11
  });
12
12
  Object.defineProperty(exports, "buildSubscriber", {
13
13
  enumerable: true,
14
- get: function () { return chunkVWSQDNZX_js.buildSubscriber; }
14
+ get: function () { return chunkOZV3TKWX_js.buildSubscriber; }
15
+ });
16
+ Object.defineProperty(exports, "buildSubscriptionIdentifier", {
17
+ enumerable: true,
18
+ get: function () { return chunkOZV3TKWX_js.buildSubscriptionIdentifier; }
15
19
  });
16
20
  Object.defineProperty(exports, "parseMarkdownIntoTokens", {
17
21
  enumerable: true,
18
- get: function () { return chunkVWSQDNZX_js.parseMarkdownIntoTokens; }
22
+ get: function () { return chunkOZV3TKWX_js.parseMarkdownIntoTokens; }
19
23
  });