@everymatrix/nuts-inbox-widget 0.0.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.
- package/dist/cjs/index-305bcf58.js +1349 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/nuts-inbox-widget.cjs.js +19 -0
- package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +39985 -0
- package/dist/collection/collection-manifest.json +14 -0
- package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.css +15 -0
- package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +450 -0
- package/dist/collection/components/nuts-notification/nuts-notification.css +147 -0
- package/dist/collection/components/nuts-notification/nuts-notification.js +426 -0
- package/dist/collection/components/nuts-popover/nuts-popover.css +75 -0
- package/dist/collection/components/nuts-popover/nuts-popover.js +265 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/types/nuts-inbox-widget.types.js +47 -0
- package/dist/collection/utils/utils.js +0 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/nuts-inbox-widget.d.ts +11 -0
- package/dist/components/nuts-inbox-widget.js +4216 -0
- package/dist/components/nuts-notification.d.ts +11 -0
- package/dist/components/nuts-notification.js +6 -0
- package/dist/components/nuts-notification2.js +35762 -0
- package/dist/components/nuts-popover.d.ts +11 -0
- package/dist/components/nuts-popover.js +6 -0
- package/dist/components/nuts-popover2.js +119 -0
- package/dist/esm/index-4e49d940.js +1322 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/nuts-inbox-widget.js +17 -0
- package/dist/esm/nuts-inbox-widget_3.entry.js +39979 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/nuts-inbox-widget/index.esm.js +0 -0
- package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -0
- package/dist/nuts-inbox-widget/p-2f19681b.entry.js +1 -0
- package/dist/nuts-inbox-widget/p-d5a07a94.js +1 -0
- package/dist/stencil.config.js +22 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-stencil/packages/nuts-inbox-widget/.stencil/packages/nuts-inbox-widget/stencil.config.d.ts +2 -0
- package/dist/types/components/nuts-inbox-widget/nuts-inbox-widget.d.ts +70 -0
- package/dist/types/components/nuts-notification/nuts-notification.d.ts +38 -0
- package/dist/types/components/nuts-popover/nuts-popover.d.ts +29 -0
- package/dist/types/components.d.ts +225 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/types/nuts-inbox-widget.types.d.ts +98 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +19 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare type Socket = {
|
|
2
|
+
on: (event: string, listener: (data?: unknown) => void) => void;
|
|
3
|
+
off: (event: string) => void;
|
|
4
|
+
disconnect: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare type BodyContent = {
|
|
7
|
+
applicationIdentifier: string;
|
|
8
|
+
subscriberId: string;
|
|
9
|
+
hmacHash: string | null;
|
|
10
|
+
};
|
|
11
|
+
export declare type OptionsContent = {
|
|
12
|
+
method: string;
|
|
13
|
+
body?: string;
|
|
14
|
+
headers: Headers;
|
|
15
|
+
};
|
|
16
|
+
export interface IJwtPayload {
|
|
17
|
+
_id: string;
|
|
18
|
+
firstName?: string;
|
|
19
|
+
lastName?: string;
|
|
20
|
+
email?: string;
|
|
21
|
+
profilePicture?: string;
|
|
22
|
+
organizationId: string;
|
|
23
|
+
environmentId: string;
|
|
24
|
+
roles: string[];
|
|
25
|
+
exp: number;
|
|
26
|
+
}
|
|
27
|
+
export declare enum StepTypeEnum {
|
|
28
|
+
IN_APP = "in_app",
|
|
29
|
+
EMAIL = "email",
|
|
30
|
+
SMS = "sms",
|
|
31
|
+
CHAT = "chat",
|
|
32
|
+
PUSH = "push",
|
|
33
|
+
DIGEST = "digest",
|
|
34
|
+
TRIGGER = "trigger",
|
|
35
|
+
DELAY = "delay"
|
|
36
|
+
}
|
|
37
|
+
export declare type MessageTemplateContentType = 'editor' | 'customHtml';
|
|
38
|
+
export declare enum EmailBlockTypeEnum {
|
|
39
|
+
BUTTON = "button",
|
|
40
|
+
TEXT = "text"
|
|
41
|
+
}
|
|
42
|
+
export declare enum TextAlignEnum {
|
|
43
|
+
CENTER = "center",
|
|
44
|
+
LEFT = "left",
|
|
45
|
+
RIGHT = "right"
|
|
46
|
+
}
|
|
47
|
+
export interface IEmailBlock {
|
|
48
|
+
type: EmailBlockTypeEnum;
|
|
49
|
+
content: string;
|
|
50
|
+
url?: string;
|
|
51
|
+
styles?: {
|
|
52
|
+
textAlign?: TextAlignEnum;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export declare enum TemplateVariableTypeEnum {
|
|
56
|
+
STRING = "String",
|
|
57
|
+
ARRAY = "Array",
|
|
58
|
+
BOOLEAN = "Boolean"
|
|
59
|
+
}
|
|
60
|
+
export interface ITemplateVariable {
|
|
61
|
+
type: TemplateVariableTypeEnum;
|
|
62
|
+
name: string;
|
|
63
|
+
required?: boolean;
|
|
64
|
+
defaultValue?: string | boolean;
|
|
65
|
+
}
|
|
66
|
+
export declare enum ChannelCTATypeEnum {
|
|
67
|
+
REDIRECT = "redirect"
|
|
68
|
+
}
|
|
69
|
+
export declare enum ActorTypeEnum {
|
|
70
|
+
NONE = "none",
|
|
71
|
+
USER = "user",
|
|
72
|
+
SYSTEM_ICON = "system_icon",
|
|
73
|
+
SYSTEM_CUSTOM = "system_custom"
|
|
74
|
+
}
|
|
75
|
+
export declare type Notifications = {
|
|
76
|
+
_id?: string;
|
|
77
|
+
subject?: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
title?: string;
|
|
80
|
+
type: StepTypeEnum;
|
|
81
|
+
contentType?: MessageTemplateContentType;
|
|
82
|
+
content: string | IEmailBlock[];
|
|
83
|
+
variables?: ITemplateVariable[];
|
|
84
|
+
cta?: {
|
|
85
|
+
type: ChannelCTATypeEnum;
|
|
86
|
+
data: any;
|
|
87
|
+
action?: any;
|
|
88
|
+
};
|
|
89
|
+
_feedId?: string;
|
|
90
|
+
_layoutId?: string;
|
|
91
|
+
active?: boolean;
|
|
92
|
+
preheader?: string;
|
|
93
|
+
senderName?: string;
|
|
94
|
+
actor?: {
|
|
95
|
+
type: ActorTypeEnum;
|
|
96
|
+
data: string | null;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
File without changes
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@everymatrix/nuts-inbox-widget",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "./dist/index.cjs.js",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"es2015": "./dist/esm/index.mjs",
|
|
7
|
+
"es2017": "./dist/esm/index.mjs",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"collection": "./dist/collection/collection-manifest.json",
|
|
10
|
+
"collection:main": "./dist/collection/index.js",
|
|
11
|
+
"unpkg": "./dist/nuts-inbox-widget/nuts-inbox-widget.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/",
|
|
14
|
+
"loader/"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
}
|
|
19
|
+
}
|