@everymatrix/nuts-inbox-widget 1.45.9 → 1.45.11

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/package.json +1 -1
  2. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  3. package/dist/cjs/index-ae4a5047.js +0 -1329
  4. package/dist/cjs/index.cjs.js +0 -2
  5. package/dist/cjs/loader.cjs.js +0 -15
  6. package/dist/cjs/nuts-inbox-widget.cjs.js +0 -25
  7. package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +0 -36931
  8. package/dist/collection/api/methods/index.js +0 -135
  9. package/dist/collection/api/methods/types.js +0 -1
  10. package/dist/collection/collection-manifest.json +0 -14
  11. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.css +0 -21
  12. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +0 -524
  13. package/dist/collection/components/nuts-notification/constants.js +0 -1
  14. package/dist/collection/components/nuts-notification/nuts-notification.css +0 -168
  15. package/dist/collection/components/nuts-notification/nuts-notification.js +0 -597
  16. package/dist/collection/components/nuts-popover/nuts-popover.css +0 -129
  17. package/dist/collection/components/nuts-popover/nuts-popover.js +0 -400
  18. package/dist/collection/index.js +0 -1
  19. package/dist/collection/types/nuts-inbox-widget.types.js +0 -39
  20. package/dist/collection/utils/locale.utils.js +0 -52
  21. package/dist/collection/utils/utils.js +0 -16
  22. package/dist/esm/app-globals-0f993ce5.js +0 -3
  23. package/dist/esm/index-64960aae.js +0 -1301
  24. package/dist/esm/index.js +0 -1
  25. package/dist/esm/loader.js +0 -11
  26. package/dist/esm/nuts-inbox-widget.js +0 -20
  27. package/dist/esm/nuts-inbox-widget_3.entry.js +0 -36925
  28. package/dist/index.cjs.js +0 -1
  29. package/dist/index.js +0 -1
  30. package/dist/nuts-inbox-widget/index.esm.js +0 -0
  31. package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +0 -1
  32. package/dist/nuts-inbox-widget/p-80fb2012.js +0 -2
  33. package/dist/nuts-inbox-widget/p-e1255160.js +0 -1
  34. package/dist/nuts-inbox-widget/p-e8e83a5a.entry.js +0 -1
  35. package/dist/stencil.config.dev.js +0 -14
  36. package/dist/stencil.config.js +0 -17
  37. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +0 -2
  38. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +0 -2
  39. package/dist/types/api/methods/index.d.ts +0 -7
  40. package/dist/types/api/methods/types.d.ts +0 -65
  41. package/dist/types/components/nuts-inbox-widget/nuts-inbox-widget.d.ts +0 -96
  42. package/dist/types/components/nuts-notification/constants.d.ts +0 -1
  43. package/dist/types/components/nuts-notification/nuts-notification.d.ts +0 -103
  44. package/dist/types/components/nuts-popover/nuts-popover.d.ts +0 -74
  45. package/dist/types/components.d.ts +0 -493
  46. package/dist/types/index.d.ts +0 -1
  47. package/dist/types/stencil-public-runtime.d.ts +0 -1674
  48. package/dist/types/types/nuts-inbox-widget.types.d.ts +0 -95
  49. package/dist/types/utils/locale.utils.d.ts +0 -2
  50. package/dist/types/utils/utils.d.ts +0 -2
  51. package/loader/cdn.js +0 -1
  52. package/loader/index.cjs.js +0 -1
  53. package/loader/index.d.ts +0 -24
  54. package/loader/index.es2017.js +0 -1
  55. package/loader/index.js +0 -2
  56. package/loader/package.json +0 -11
@@ -1,14 +0,0 @@
1
- export const config = {
2
- namespace: 'nuts-inbox-widget',
3
- taskQueue: 'async',
4
- sourceMap: false,
5
- minifyJs: true,
6
- extras: {
7
- experimentalImportInjection: true
8
- },
9
- outputTargets: [
10
- {
11
- type: 'www'
12
- }
13
- ]
14
- };
@@ -1,17 +0,0 @@
1
- import { sass } from "@stencil/sass";
2
- export const config = {
3
- namespace: 'nuts-inbox-widget',
4
- taskQueue: 'async',
5
- sourceMap: false,
6
- minifyJs: true,
7
- extras: {
8
- experimentalImportInjection: true
9
- },
10
- plugins: [sass()],
11
- outputTargets: [
12
- {
13
- type: 'dist',
14
- esmLoaderPath: '../loader'
15
- }
16
- ]
17
- };
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;
@@ -1,7 +0,0 @@
1
- import { DeleteMessageParams, GetNotificationsParams, GetNotificationsReturnData, MarkAllMessagesParams, MarkMessageParams, MarkMessageReturnData, InitializeSessionParams, InitializeSessionReturnData, UnseenCountParams } from './types';
2
- export declare const initializeSession: ({ baseUrl, body, headers, }: InitializeSessionParams) => Promise<InitializeSessionReturnData>;
3
- export declare const getUnseenCount: ({ baseUrl, headers, }: UnseenCountParams) => Promise<number>;
4
- export declare const deleteMessage: ({ baseUrl, headers, messageId, }: DeleteMessageParams) => Promise<boolean>;
5
- export declare const markAsRead: ({ baseUrl, body, headers, unread, }: MarkMessageParams) => Promise<MarkMessageReturnData>;
6
- export declare const getNotifications: ({ baseUrl, headers, page, }: GetNotificationsParams) => Promise<GetNotificationsReturnData>;
7
- export declare const markAllAsRead: ({ baseUrl, headers, }: MarkAllMessagesParams) => Promise<boolean>;
@@ -1,65 +0,0 @@
1
- import { Notification, InitializeSessionBodyContent } from '../../types/nuts-inbox-widget.types';
2
- export interface BaseMethodParams {
3
- baseUrl: string;
4
- headers: Headers;
5
- }
6
- export interface InitializeSessionParams extends BaseMethodParams {
7
- body: InitializeSessionBodyContent;
8
- }
9
- export interface InitializeSessionResponseData {
10
- data: {
11
- profile: {
12
- firstName: string;
13
- lastName: string;
14
- _id: string;
15
- };
16
- token: string;
17
- };
18
- }
19
- export interface InitializeSessionReturnData {
20
- token: string;
21
- unseenCounter: number;
22
- }
23
- export interface UnseenCountParams extends BaseMethodParams {
24
- }
25
- export interface UnseenCountResponseData {
26
- data: {
27
- count: number;
28
- };
29
- }
30
- export interface DeleteMessageParams extends BaseMethodParams {
31
- messageId: string;
32
- }
33
- export interface MarkMessageBodyParams {
34
- messageId: string;
35
- mark: {
36
- seen: boolean;
37
- read: boolean;
38
- };
39
- }
40
- export interface MarkMessageParams extends BaseMethodParams {
41
- body: MarkMessageBodyParams;
42
- unread: boolean;
43
- }
44
- export interface MarkMessageResponseData {
45
- data: Notification[];
46
- }
47
- export interface MarkMessageReturnData {
48
- messageSeen: boolean;
49
- messageRead: boolean;
50
- showSettingsModal: boolean;
51
- }
52
- export interface GetNotificationsParams extends BaseMethodParams {
53
- page: number;
54
- }
55
- export interface GetNotificationsResponseData {
56
- totalCount: number;
57
- data: Notification[];
58
- }
59
- export interface GetNotificationsReturnData {
60
- isLoading: boolean;
61
- numberOfNotifications: number;
62
- notifications: Notification[];
63
- }
64
- export interface MarkAllMessagesParams extends BaseMethodParams {
65
- }
@@ -1,96 +0,0 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { Notification } from '../../types/nuts-inbox-widget.types';
3
- export declare class NutsInboxWidget {
4
- /**
5
- * HTTP Endpoint URL for NuTS
6
- */
7
- backendUrl: string;
8
- /**
9
- * Socket Endpoint URL for NuTS
10
- */
11
- socketUrl: string;
12
- /**
13
- * The ID of the user
14
- */
15
- userId: string;
16
- /**
17
- * The sessionID of the user
18
- */
19
- sessionId: string;
20
- /**
21
- * Indicates if the associated sessionId is an admin or a player sessionId
22
- */
23
- admin?: boolean;
24
- /**
25
- * The operatorID on which we can find the user
26
- */
27
- operatorId: string;
28
- /**
29
- * The subscriberID
30
- */
31
- subscriberId?: string;
32
- /**
33
- * The deviceID from which the user access the website
34
- */
35
- deviceId?: string;
36
- /**
37
- * Language of the widget
38
- */
39
- language: string;
40
- /**
41
- * Environment on which the widget is used (possible values: `stage`, `prod`)
42
- */
43
- environment: string;
44
- /**
45
- * Novu application identifier
46
- */
47
- applicationIdentifier: string;
48
- /**
49
- * Client custom styling via inline styles
50
- */
51
- clientStyling: string;
52
- /**
53
- * Client styling url for a css file
54
- */
55
- clientStylingUrl: string;
56
- /**
57
- * Position of the widget (possible values: `left` and `right`) - this changes the `justify-content` property of the `.BellIconWrapper` class
58
- */
59
- bellIconPosition: string;
60
- /**
61
- * 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
62
- */
63
- notificationAction: string;
64
- /**
65
- * Translations via URL
66
- */
67
- translationUrl: string;
68
- private stylingContainer;
69
- private isLoading;
70
- private popoverVisible;
71
- private unseenCount;
72
- private socketRef;
73
- private bellIconRef;
74
- private token;
75
- private baseUrl;
76
- private initializeSessionBody;
77
- private defaultHeaders;
78
- notificationFeed: EventEmitter<Notification[]>;
79
- newNotification: EventEmitter<any>;
80
- initializeHandler(newValue: string, oldValue: string): void;
81
- el: HTMLElement;
82
- clickOutsideHandle(ev: MouseEvent): void;
83
- positionIcon(): void;
84
- setupSocket(): void;
85
- togglePopover: () => void;
86
- setClientStyling: () => void;
87
- setClientStylingURL: () => void;
88
- connectedCallback(): Promise<void>;
89
- handleNewTranslations(): void;
90
- componentWillLoad(): Promise<void>;
91
- componentDidRender(): void;
92
- assignRefToStylingContainer: (ref: HTMLElement) => void;
93
- assignRefToBell: (ref: HTMLElement) => void;
94
- renderBellIcon(): HTMLElement;
95
- render(): any;
96
- }
@@ -1 +0,0 @@
1
- export declare const MAX_NOTIFICATION_TEXT_LENGTH = 150;
@@ -1,103 +0,0 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class NutsNotification {
3
- /**
4
- * Src for badge / avatar
5
- */
6
- badge: string;
7
- /**
8
- * Text content of the notification
9
- */
10
- content: string;
11
- /**
12
- * Date of the notification
13
- */
14
- date: string;
15
- /**
16
- * Wether or not to show notification settings
17
- */
18
- showSettings: boolean;
19
- /**
20
- * Wether or not the item has been read
21
- */
22
- read: boolean;
23
- /**
24
- * Wether or not the item has been seen
25
- */
26
- seen: boolean;
27
- /**
28
- * Language code of the content
29
- */
30
- language: string;
31
- /**
32
- * The sessionID of the user
33
- */
34
- sessionId: string;
35
- /**
36
- * Indicates if the associated sessionId is an admin or a player sessionId
37
- */
38
- admin?: boolean;
39
- /**
40
- * Unique ID of the user who receives the notification
41
- */
42
- userId: string;
43
- /**
44
- * Unique ID of the notification content
45
- */
46
- messageId: string;
47
- /**
48
- * Unique ID of the operator domain
49
- */
50
- operatorId: string;
51
- /**
52
- * Token used in authorization of notification transactions
53
- */
54
- token: string;
55
- /**
56
- * Endpoint for notification transactions
57
- */
58
- backendUrl: string;
59
- /**
60
- * Redirect address in case of external url
61
- */
62
- redirectUrl: string;
63
- /**
64
- * Determines notification behaviour onClick
65
- */
66
- notificationAction: string;
67
- /**
68
- * Custom styling passed as a URL
69
- */
70
- clientStylingUrl: string;
71
- /**
72
- * Translations via URL
73
- */
74
- translationUrl: string;
75
- /**
76
- * Clienty styling passed as a string
77
- */
78
- clientStyling: string;
79
- showSettingsModal: boolean;
80
- messageSeen: boolean;
81
- messageRead: boolean;
82
- displayedContent: string;
83
- private stylingContainer;
84
- private dropdownArrowRef;
85
- private defaultHeaders;
86
- private baseUrl;
87
- messageDeteled: EventEmitter<any>;
88
- settingsOpened: EventEmitter<any>;
89
- allNotificationsReadHandler(): void;
90
- settingsOpenedHandler(event: CustomEvent<any>): void;
91
- handleNewTranslations(): void;
92
- componentWillLoad(): Promise<void>;
93
- connectedCallback(): void;
94
- toggleSettingsModal: (e: MouseEvent) => void;
95
- toggleNotificationRead: (event?: MouseEvent) => Promise<void>;
96
- deleteNotification: () => Promise<void>;
97
- notificationActionHandler: () => void;
98
- setClientStyling: () => void;
99
- setClientStylingURL: () => void;
100
- assignRefToStylingContainer: (ref: HTMLElement) => void;
101
- assignRefToDropdownArrow: (ref: HTMLElement) => void;
102
- render(): any;
103
- }
@@ -1,74 +0,0 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { GetNotificationsReturnData } from '../../api/methods/types';
3
- export declare class NutsPopover {
4
- /**
5
- * Language code of the content
6
- */
7
- language: string;
8
- /**
9
- * Unique ID of the user receiving notifications
10
- */
11
- userId: string;
12
- /**
13
- * Unique ID of the operator domain
14
- */
15
- operatorId: string;
16
- /**
17
- * Token used to authenticate notification transactions
18
- */
19
- token: string;
20
- /**
21
- * The sessionID of the user
22
- */
23
- sessionId: string;
24
- /**
25
- * Indicates if the associated sessionId is an admin or a player sessionId
26
- */
27
- admin?: boolean;
28
- /**
29
- * Endpoint used for notification transactions
30
- */
31
- backendUrl: string;
32
- /**
33
- * The count of unseen notifications
34
- */
35
- unseenCount: number;
36
- /**
37
- * Custom styling URL
38
- */
39
- clientStylingUrl: string;
40
- /**
41
- * Decides the behaviour of the notification onClick
42
- */
43
- notificationAction: string;
44
- /**
45
- * Custom styling string
46
- */
47
- clientStyling: string;
48
- /**
49
- * Translations via URL
50
- */
51
- translationUrl: string;
52
- private notifications;
53
- private isLoading;
54
- private showMarkAll;
55
- private currentPage;
56
- private stylingContainer;
57
- private defaultHeaders;
58
- private baseUrl;
59
- allNotificationsRead: EventEmitter<any>;
60
- messageDeteledHandler(event: CustomEvent<any>): void;
61
- newNotificationHandler(event: CustomEvent<any>): void;
62
- unseenCountHandler(newValue: number): void;
63
- handleNewTranslations(): void;
64
- componentWillLoad(): Promise<void>;
65
- updateNotificationsDataAfterPageChange: (getNotificationsData: GetNotificationsReturnData) => void;
66
- nextPage: () => Promise<void>;
67
- prevPage: () => void;
68
- setClientStyling: () => void;
69
- setClientStylingURL: () => void;
70
- connectedCallback(): void;
71
- markAllNotificationsAsRead: () => Promise<void>;
72
- assignRefToStylingContainer: (ref: HTMLElement) => void;
73
- render(): any;
74
- }