@novu/js 3.11.0 → 3.12.0-rc.2
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-VWSQDNZX.js → chunk-OZV3TKWX.js} +6 -0
- package/dist/cjs/{chunk-QQNKEWGC.js → chunk-SZEUW4CB.js} +1070 -309
- package/dist/cjs/index.d.ts +5 -4
- package/dist/cjs/index.js +26 -14
- package/dist/cjs/internal/index.d.ts +8 -2
- package/dist/cjs/internal/index.js +8 -4
- package/dist/{esm/novu-DY-mm8Og.d.mts → cjs/novu-BVtCFUxa.d.ts} +398 -203
- package/dist/cjs/themes/index.d.ts +11 -5
- package/dist/cjs/themes/index.js +17 -1
- package/dist/{esm/types-BM_9Xx5Z.d.mts → cjs/types-D-9ozWeQ.d.ts} +20 -1
- package/dist/cjs/types-Rjzg7eo3.d.ts +836 -0
- package/dist/cjs/ui/index.d.ts +74 -7
- package/dist/cjs/ui/index.js +1785 -260
- package/dist/esm/{chunk-UM35OVAD.mjs → chunk-IA6ISHOP.mjs} +1068 -310
- package/dist/esm/{chunk-RZWQYM3H.mjs → chunk-RO3GDYAG.mjs} +6 -1
- package/dist/esm/index.d.mts +5 -4
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/internal/index.d.mts +8 -2
- package/dist/esm/internal/index.mjs +1 -1
- package/dist/{cjs/novu-ThMWeiRt.d.ts → esm/novu-YP3PwsQR.d.mts} +398 -203
- package/dist/esm/themes/index.d.mts +11 -5
- package/dist/esm/themes/index.mjs +16 -2
- package/dist/{cjs/types-BM_9Xx5Z.d.ts → esm/types-D-9ozWeQ.d.mts} +20 -1
- package/dist/esm/types-DmMJ1GiR.d.mts +836 -0
- package/dist/esm/ui/index.d.mts +74 -7
- package/dist/esm/ui/index.mjs +1782 -256
- package/dist/index.css +1 -1
- package/dist/novu.min.js +12 -12
- package/dist/novu.min.js.gz +0 -0
- package/package.json +18 -17
- package/dist/cjs/types-BjANCN3c.d.ts +0 -537
- package/dist/esm/types-C5eX1GmB.d.mts +0 -537
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
4
|
-
require('./chunk-
|
|
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
|
|
11
|
+
get: function () { return chunkSZEUW4CB_js.ChannelType; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "NotificationStatus", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkSZEUW4CB_js.NotificationStatus; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "Novu", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
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
|
|
27
|
+
get: function () { return chunkSZEUW4CB_js.PreferenceLevel; }
|
|
24
28
|
});
|
|
25
29
|
Object.defineProperty(exports, "SeverityLevelEnum", {
|
|
26
30
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
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
|
|
43
|
+
get: function () { return chunkSZEUW4CB_js.WebSocketEvent; }
|
|
32
44
|
});
|
|
33
45
|
Object.defineProperty(exports, "WorkflowCriticalityEnum", {
|
|
34
46
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkSZEUW4CB_js.WorkflowCriticalityEnum; }
|
|
36
48
|
});
|
|
37
49
|
Object.defineProperty(exports, "areSeveritiesEqual", {
|
|
38
50
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkSZEUW4CB_js.areSeveritiesEqual; }
|
|
40
52
|
});
|
|
41
53
|
Object.defineProperty(exports, "areTagsEqual", {
|
|
42
54
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkSZEUW4CB_js.areTagsEqual; }
|
|
44
56
|
});
|
|
45
57
|
Object.defineProperty(exports, "checkNotificationDataFilter", {
|
|
46
58
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkSZEUW4CB_js.checkNotificationDataFilter; }
|
|
48
60
|
});
|
|
49
61
|
Object.defineProperty(exports, "checkNotificationMatchesFilter", {
|
|
50
62
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkSZEUW4CB_js.checkNotificationMatchesFilter; }
|
|
52
64
|
});
|
|
53
65
|
Object.defineProperty(exports, "isSameFilter", {
|
|
54
66
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkSZEUW4CB_js.isSameFilter; }
|
|
56
68
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { b as Context,
|
|
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
|
|
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
|
|
10
|
+
get: function () { return chunkOZV3TKWX_js.buildContextKey; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "buildSubscriber", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
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
|
|
22
|
+
get: function () { return chunkOZV3TKWX_js.parseMarkdownIntoTokens; }
|
|
19
23
|
});
|