@everymatrix/nuts-inbox-widget 1.45.10 → 1.45.13

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 (56) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-ae4a5047.js +1329 -0
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/nuts-inbox-widget.cjs.js +25 -0
  6. package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +40953 -0
  7. package/dist/collection/api/methods/index.js +144 -0
  8. package/dist/collection/api/methods/types.js +1 -0
  9. package/dist/collection/collection-manifest.json +14 -0
  10. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.css +21 -0
  11. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +505 -0
  12. package/dist/collection/components/nuts-notification/constants.js +1 -0
  13. package/dist/collection/components/nuts-notification/nuts-notification.css +167 -0
  14. package/dist/collection/components/nuts-notification/nuts-notification.js +596 -0
  15. package/dist/collection/components/nuts-popover/nuts-popover.css +129 -0
  16. package/dist/collection/components/nuts-popover/nuts-popover.js +383 -0
  17. package/dist/collection/index.js +1 -0
  18. package/dist/collection/types/nuts-inbox-widget.types.js +39 -0
  19. package/dist/collection/utils/locale.utils.js +52 -0
  20. package/dist/collection/utils/utils.js +6 -0
  21. package/dist/esm/app-globals-0f993ce5.js +3 -0
  22. package/dist/esm/index-64960aae.js +1301 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/loader.js +11 -0
  25. package/dist/esm/nuts-inbox-widget.js +20 -0
  26. package/dist/esm/nuts-inbox-widget_3.entry.js +40947 -0
  27. package/dist/index.cjs.js +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/nuts-inbox-widget/index.esm.js +0 -0
  30. package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -0
  31. package/dist/nuts-inbox-widget/p-80fb2012.js +2 -0
  32. package/dist/nuts-inbox-widget/p-a97eb392.entry.js +1 -0
  33. package/dist/nuts-inbox-widget/p-e1255160.js +1 -0
  34. package/dist/stencil.config.dev.js +15 -0
  35. package/dist/stencil.config.js +17 -0
  36. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +2 -0
  37. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +2 -0
  38. package/dist/types/api/methods/index.d.ts +7 -0
  39. package/dist/types/api/methods/types.d.ts +66 -0
  40. package/dist/types/components/nuts-inbox-widget/nuts-inbox-widget.d.ts +91 -0
  41. package/dist/types/components/nuts-notification/constants.d.ts +1 -0
  42. package/dist/types/components/nuts-notification/nuts-notification.d.ts +102 -0
  43. package/dist/types/components/nuts-popover/nuts-popover.d.ts +69 -0
  44. package/dist/types/components.d.ts +477 -0
  45. package/dist/types/index.d.ts +1 -0
  46. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  47. package/dist/types/types/nuts-inbox-widget.types.d.ts +97 -0
  48. package/dist/types/utils/locale.utils.d.ts +2 -0
  49. package/dist/types/utils/utils.d.ts +1 -0
  50. package/loader/cdn.js +1 -0
  51. package/loader/index.cjs.js +1 -0
  52. package/loader/index.d.ts +24 -0
  53. package/loader/index.es2017.js +1 -0
  54. package/loader/index.js +2 -0
  55. package/loader/package.json +11 -0
  56. package/package.json +4 -1
@@ -0,0 +1,477 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { Notification } from "./types/nuts-inbox-widget.types";
9
+ export { Notification } from "./types/nuts-inbox-widget.types";
10
+ export namespace Components {
11
+ interface NutsInboxWidget {
12
+ /**
13
+ * Novu application identifier
14
+ */
15
+ "applicationIdentifier": string;
16
+ /**
17
+ * HTTP Endpoint URL for NuTS
18
+ */
19
+ "backendUrl": string;
20
+ /**
21
+ * Position of the widget (possible values: `left` and `right`) - this changes the `justify-content` property of the `.BellIconWrapper` class
22
+ */
23
+ "bellIconPosition": string;
24
+ /**
25
+ * Client custom styling via inline styles
26
+ */
27
+ "clientStyling": string;
28
+ /**
29
+ * Client styling url for a css file
30
+ */
31
+ "clientStylingUrl": string;
32
+ /**
33
+ * The deviceID from which the user access the website
34
+ */
35
+ "deviceId"?: string;
36
+ /**
37
+ * Environment on which the widget is used (possible values: `stage`, `prod`)
38
+ */
39
+ "environment": string;
40
+ /**
41
+ * Language of the widget
42
+ */
43
+ "language": string;
44
+ /**
45
+ * Clicking on the notification will automatically redirect you to the redirectURL attached to the notification (`default` behaviour). It can be changed to `postMessage` and instead of the redirect it will emit a postMessage with the redirectURL and the parent website can take actions
46
+ */
47
+ "notificationAction": string;
48
+ /**
49
+ * The operatorID on which we can find the user
50
+ */
51
+ "operatorId": string;
52
+ /**
53
+ * The sessionID of the user
54
+ */
55
+ "sessionId": string;
56
+ /**
57
+ * Socket Endpoint URL for NuTS
58
+ */
59
+ "socketUrl": string;
60
+ /**
61
+ * The subscriberID
62
+ */
63
+ "subscriberId"?: string;
64
+ /**
65
+ * Translations via URL
66
+ */
67
+ "translationUrl": string;
68
+ /**
69
+ * The ID of the user
70
+ */
71
+ "userId": string;
72
+ }
73
+ interface NutsNotification {
74
+ /**
75
+ * Endpoint for notification transactions
76
+ */
77
+ "backendUrl": string;
78
+ /**
79
+ * Src for badge / avatar
80
+ */
81
+ "badge": string;
82
+ /**
83
+ * Clienty styling passed as a string
84
+ */
85
+ "clientStyling": string;
86
+ /**
87
+ * Custom styling passed as a URL
88
+ */
89
+ "clientStylingUrl": string;
90
+ /**
91
+ * Text content of the notification
92
+ */
93
+ "content": string;
94
+ /**
95
+ * Date of the notification
96
+ */
97
+ "date": string;
98
+ /**
99
+ * Language code of the content
100
+ */
101
+ "language": string;
102
+ /**
103
+ * Unique ID of the notification content
104
+ */
105
+ "messageId": string;
106
+ /**
107
+ * Determines notification behaviour onClick
108
+ */
109
+ "notificationAction": string;
110
+ /**
111
+ * Unique ID of the operator domain
112
+ */
113
+ "operatorId": string;
114
+ /**
115
+ * Wether or not the item has been read
116
+ */
117
+ "read": boolean;
118
+ /**
119
+ * Redirect address in case of external url
120
+ */
121
+ "redirectUrl": string;
122
+ /**
123
+ * Wether or not the item has been seen
124
+ */
125
+ "seen": boolean;
126
+ /**
127
+ * The sessionID of the user
128
+ */
129
+ "sessionId": string;
130
+ /**
131
+ * Wether or not to show notification settings
132
+ */
133
+ "showSettings": boolean;
134
+ /**
135
+ * The subscriberID
136
+ */
137
+ "subscriberId"?: string;
138
+ /**
139
+ * Token used in authorization of notification transactions
140
+ */
141
+ "token": string;
142
+ /**
143
+ * Translations via URL
144
+ */
145
+ "translationUrl": string;
146
+ /**
147
+ * Unique ID of the user who receives the notification
148
+ */
149
+ "userId": string;
150
+ }
151
+ interface NutsPopover {
152
+ /**
153
+ * Endpoint used for notification transactions
154
+ */
155
+ "backendUrl": string;
156
+ /**
157
+ * Custom styling string
158
+ */
159
+ "clientStyling": string;
160
+ /**
161
+ * Custom styling URL
162
+ */
163
+ "clientStylingUrl": string;
164
+ /**
165
+ * Language code of the content
166
+ */
167
+ "language": string;
168
+ /**
169
+ * Decides the behaviour of the notification onClick
170
+ */
171
+ "notificationAction": string;
172
+ /**
173
+ * Unique ID of the operator domain
174
+ */
175
+ "operatorId": string;
176
+ /**
177
+ * The sessionID of the user
178
+ */
179
+ "sessionId": string;
180
+ /**
181
+ * Token used to authenticate notification transactions
182
+ */
183
+ "token": string;
184
+ /**
185
+ * Translations via URL
186
+ */
187
+ "translationUrl": string;
188
+ /**
189
+ * The count of unseen notifications
190
+ */
191
+ "unseenCount": number;
192
+ /**
193
+ * Unique ID of the user receiving notifications
194
+ */
195
+ "userId": string;
196
+ }
197
+ }
198
+ export interface NutsInboxWidgetCustomEvent<T> extends CustomEvent<T> {
199
+ detail: T;
200
+ target: HTMLNutsInboxWidgetElement;
201
+ }
202
+ export interface NutsNotificationCustomEvent<T> extends CustomEvent<T> {
203
+ detail: T;
204
+ target: HTMLNutsNotificationElement;
205
+ }
206
+ export interface NutsPopoverCustomEvent<T> extends CustomEvent<T> {
207
+ detail: T;
208
+ target: HTMLNutsPopoverElement;
209
+ }
210
+ declare global {
211
+ interface HTMLNutsInboxWidgetElementEventMap {
212
+ "notificationFeed": Notification[];
213
+ "newNotification": any;
214
+ }
215
+ interface HTMLNutsInboxWidgetElement extends Components.NutsInboxWidget, HTMLStencilElement {
216
+ addEventListener<K extends keyof HTMLNutsInboxWidgetElementEventMap>(type: K, listener: (this: HTMLNutsInboxWidgetElement, ev: NutsInboxWidgetCustomEvent<HTMLNutsInboxWidgetElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
217
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
218
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
219
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
220
+ removeEventListener<K extends keyof HTMLNutsInboxWidgetElementEventMap>(type: K, listener: (this: HTMLNutsInboxWidgetElement, ev: NutsInboxWidgetCustomEvent<HTMLNutsInboxWidgetElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
221
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
222
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
223
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
224
+ }
225
+ var HTMLNutsInboxWidgetElement: {
226
+ prototype: HTMLNutsInboxWidgetElement;
227
+ new (): HTMLNutsInboxWidgetElement;
228
+ };
229
+ interface HTMLNutsNotificationElementEventMap {
230
+ "messageDeleted": any;
231
+ "settingsOpened": any;
232
+ }
233
+ interface HTMLNutsNotificationElement extends Components.NutsNotification, HTMLStencilElement {
234
+ addEventListener<K extends keyof HTMLNutsNotificationElementEventMap>(type: K, listener: (this: HTMLNutsNotificationElement, ev: NutsNotificationCustomEvent<HTMLNutsNotificationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
235
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
236
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
237
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
238
+ removeEventListener<K extends keyof HTMLNutsNotificationElementEventMap>(type: K, listener: (this: HTMLNutsNotificationElement, ev: NutsNotificationCustomEvent<HTMLNutsNotificationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
239
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
240
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
241
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
242
+ }
243
+ var HTMLNutsNotificationElement: {
244
+ prototype: HTMLNutsNotificationElement;
245
+ new (): HTMLNutsNotificationElement;
246
+ };
247
+ interface HTMLNutsPopoverElementEventMap {
248
+ "allNotificationsRead": any;
249
+ }
250
+ interface HTMLNutsPopoverElement extends Components.NutsPopover, HTMLStencilElement {
251
+ addEventListener<K extends keyof HTMLNutsPopoverElementEventMap>(type: K, listener: (this: HTMLNutsPopoverElement, ev: NutsPopoverCustomEvent<HTMLNutsPopoverElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
252
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
253
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
254
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
255
+ removeEventListener<K extends keyof HTMLNutsPopoverElementEventMap>(type: K, listener: (this: HTMLNutsPopoverElement, ev: NutsPopoverCustomEvent<HTMLNutsPopoverElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
256
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
257
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
258
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
259
+ }
260
+ var HTMLNutsPopoverElement: {
261
+ prototype: HTMLNutsPopoverElement;
262
+ new (): HTMLNutsPopoverElement;
263
+ };
264
+ interface HTMLElementTagNameMap {
265
+ "nuts-inbox-widget": HTMLNutsInboxWidgetElement;
266
+ "nuts-notification": HTMLNutsNotificationElement;
267
+ "nuts-popover": HTMLNutsPopoverElement;
268
+ }
269
+ }
270
+ declare namespace LocalJSX {
271
+ interface NutsInboxWidget {
272
+ /**
273
+ * Novu application identifier
274
+ */
275
+ "applicationIdentifier": string;
276
+ /**
277
+ * HTTP Endpoint URL for NuTS
278
+ */
279
+ "backendUrl": string;
280
+ /**
281
+ * Position of the widget (possible values: `left` and `right`) - this changes the `justify-content` property of the `.BellIconWrapper` class
282
+ */
283
+ "bellIconPosition"?: string;
284
+ /**
285
+ * Client custom styling via inline styles
286
+ */
287
+ "clientStyling"?: string;
288
+ /**
289
+ * Client styling url for a css file
290
+ */
291
+ "clientStylingUrl"?: string;
292
+ /**
293
+ * The deviceID from which the user access the website
294
+ */
295
+ "deviceId"?: string;
296
+ /**
297
+ * Environment on which the widget is used (possible values: `stage`, `prod`)
298
+ */
299
+ "environment"?: string;
300
+ /**
301
+ * Language of the widget
302
+ */
303
+ "language"?: string;
304
+ /**
305
+ * Clicking on the notification will automatically redirect you to the redirectURL attached to the notification (`default` behaviour). It can be changed to `postMessage` and instead of the redirect it will emit a postMessage with the redirectURL and the parent website can take actions
306
+ */
307
+ "notificationAction"?: string;
308
+ "onNewNotification"?: (event: NutsInboxWidgetCustomEvent<any>) => void;
309
+ "onNotificationFeed"?: (event: NutsInboxWidgetCustomEvent<Notification[]>) => void;
310
+ /**
311
+ * The operatorID on which we can find the user
312
+ */
313
+ "operatorId": string;
314
+ /**
315
+ * The sessionID of the user
316
+ */
317
+ "sessionId": string;
318
+ /**
319
+ * Socket Endpoint URL for NuTS
320
+ */
321
+ "socketUrl": string;
322
+ /**
323
+ * The subscriberID
324
+ */
325
+ "subscriberId"?: string;
326
+ /**
327
+ * Translations via URL
328
+ */
329
+ "translationUrl"?: string;
330
+ /**
331
+ * The ID of the user
332
+ */
333
+ "userId": string;
334
+ }
335
+ interface NutsNotification {
336
+ /**
337
+ * Endpoint for notification transactions
338
+ */
339
+ "backendUrl"?: string;
340
+ /**
341
+ * Src for badge / avatar
342
+ */
343
+ "badge"?: string;
344
+ /**
345
+ * Clienty styling passed as a string
346
+ */
347
+ "clientStyling"?: string;
348
+ /**
349
+ * Custom styling passed as a URL
350
+ */
351
+ "clientStylingUrl"?: string;
352
+ /**
353
+ * Text content of the notification
354
+ */
355
+ "content"?: string;
356
+ /**
357
+ * Date of the notification
358
+ */
359
+ "date"?: string;
360
+ /**
361
+ * Language code of the content
362
+ */
363
+ "language"?: string;
364
+ /**
365
+ * Unique ID of the notification content
366
+ */
367
+ "messageId"?: string;
368
+ /**
369
+ * Determines notification behaviour onClick
370
+ */
371
+ "notificationAction"?: string;
372
+ "onMessageDeleted"?: (event: NutsNotificationCustomEvent<any>) => void;
373
+ "onSettingsOpened"?: (event: NutsNotificationCustomEvent<any>) => void;
374
+ /**
375
+ * Unique ID of the operator domain
376
+ */
377
+ "operatorId"?: string;
378
+ /**
379
+ * Wether or not the item has been read
380
+ */
381
+ "read"?: boolean;
382
+ /**
383
+ * Redirect address in case of external url
384
+ */
385
+ "redirectUrl"?: string;
386
+ /**
387
+ * Wether or not the item has been seen
388
+ */
389
+ "seen"?: boolean;
390
+ /**
391
+ * The sessionID of the user
392
+ */
393
+ "sessionId": string;
394
+ /**
395
+ * Wether or not to show notification settings
396
+ */
397
+ "showSettings"?: boolean;
398
+ /**
399
+ * The subscriberID
400
+ */
401
+ "subscriberId"?: string;
402
+ /**
403
+ * Token used in authorization of notification transactions
404
+ */
405
+ "token"?: string;
406
+ /**
407
+ * Translations via URL
408
+ */
409
+ "translationUrl"?: string;
410
+ /**
411
+ * Unique ID of the user who receives the notification
412
+ */
413
+ "userId"?: string;
414
+ }
415
+ interface NutsPopover {
416
+ /**
417
+ * Endpoint used for notification transactions
418
+ */
419
+ "backendUrl"?: string;
420
+ /**
421
+ * Custom styling string
422
+ */
423
+ "clientStyling"?: string;
424
+ /**
425
+ * Custom styling URL
426
+ */
427
+ "clientStylingUrl"?: string;
428
+ /**
429
+ * Language code of the content
430
+ */
431
+ "language"?: string;
432
+ /**
433
+ * Decides the behaviour of the notification onClick
434
+ */
435
+ "notificationAction"?: string;
436
+ "onAllNotificationsRead"?: (event: NutsPopoverCustomEvent<any>) => void;
437
+ /**
438
+ * Unique ID of the operator domain
439
+ */
440
+ "operatorId"?: string;
441
+ /**
442
+ * The sessionID of the user
443
+ */
444
+ "sessionId": string;
445
+ /**
446
+ * Token used to authenticate notification transactions
447
+ */
448
+ "token"?: string;
449
+ /**
450
+ * Translations via URL
451
+ */
452
+ "translationUrl"?: string;
453
+ /**
454
+ * The count of unseen notifications
455
+ */
456
+ "unseenCount"?: number;
457
+ /**
458
+ * Unique ID of the user receiving notifications
459
+ */
460
+ "userId"?: string;
461
+ }
462
+ interface IntrinsicElements {
463
+ "nuts-inbox-widget": NutsInboxWidget;
464
+ "nuts-notification": NutsNotification;
465
+ "nuts-popover": NutsPopover;
466
+ }
467
+ }
468
+ export { LocalJSX as JSX };
469
+ declare module "@stencil/core" {
470
+ export namespace JSX {
471
+ interface IntrinsicElements {
472
+ "nuts-inbox-widget": LocalJSX.NutsInboxWidget & JSXBase.HTMLAttributes<HTMLNutsInboxWidgetElement>;
473
+ "nuts-notification": LocalJSX.NutsNotification & JSXBase.HTMLAttributes<HTMLNutsNotificationElement>;
474
+ "nuts-popover": LocalJSX.NutsPopover & JSXBase.HTMLAttributes<HTMLNutsPopoverElement>;
475
+ }
476
+ }
477
+ }
@@ -0,0 +1 @@
1
+ export * from './components';