@everymatrix/casino-engagement-suite-modal-container 1.44.0 → 1.45.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/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.esm.js +1 -1
- package/dist/casino-engagement-suite-modal-container/p-ac43a734.js +2 -0
- package/dist/casino-engagement-suite-modal-container/p-e1255160.js +1 -0
- package/dist/casino-engagement-suite-modal-container/p-f56ae83a.entry.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +16 -10
- package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +173 -183
- package/dist/cjs/index-00ddb955.js +1279 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.css +15 -15
- package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +234 -259
- package/dist/collection/components/casino-engagement-suite-modal-container/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +26 -26
- package/dist/collection/utils/utils.js +2 -2
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-modal-container.js +13 -10
- package/dist/esm/casino-engagement-suite-modal_2.entry.js +173 -183
- package/dist/esm/index-896654aa.js +1251 -0
- package/dist/esm/loader.js +6 -12
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.d.ts +40 -40
- package/dist/types/components/casino-engagement-suite-modal-container/index.d.ts +1 -0
- package/dist/types/components.d.ts +16 -1
- package/dist/types/models/index.d.ts +8 -8
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +12 -2
- package/dist/casino-engagement-suite-modal-container/p-b206f149.entry.js +0 -1
- package/dist/casino-engagement-suite-modal-container/p-b944b831.js +0 -1
- package/dist/cjs/index-2394967b.js +0 -1253
- package/dist/components/casino-engagement-suite-modal-container.d.ts +0 -11
- package/dist/components/casino-engagement-suite-modal-container.js +0 -181
- package/dist/components/casino-engagement-suite-modal.js +0 -6
- package/dist/components/casino-engagement-suite-modal2.js +0 -91
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-89c6c4a4.js +0 -1226
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-modal-container/.stencil/packages/casino-engagement-suite-modal-container/stencil.config.d.ts +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as bootstrapLazy } from './index-896654aa.js';
|
|
2
|
+
export { s as setNonce } from './index-896654aa.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const patchEsm = () => {
|
|
7
|
-
return promiseResolve();
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const defineCustomElements = (win, options) => {
|
|
11
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
|
-
return patchEsm().then(() => {
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
13
8
|
return bootstrapLazy([["casino-engagement-suite-modal_2",[[1,"casino-engagement-suite-modal-container",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"device":[1],"limitStylingAppends":[32],"openModals":[32],"rewardMessage":[32],"hasError":[32],"confirmationData":[32],"winAmount":[32]},[[16,"openModal","openModalHandler"],[16,"closeModal","closeModalHandler"]]],[1,"casino-engagement-suite-modal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[4,"is-open"],"isLoading":[1028,"is-loading"],"header":[1],"contentIcon":[1,"content-icon"],"modalType":[1,"modal-type"],"device":[1],"showAnimation":[4,"show-animation"],"limitStylingAppends":[32]}]]]], options);
|
|
14
|
-
});
|
|
15
9
|
};
|
|
16
10
|
|
|
17
11
|
export { defineCustomElements };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'casino-engagement-suite-modal-container',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: true,
|
|
6
|
+
minifyJs: false,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www',
|
|
14
|
+
serviceWorker: null // disable service workers
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
package/dist/stencil.config.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { sass } from
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
2
|
export const config = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
esmLoaderPath: '../loader',
|
|
3
|
+
namespace: 'casino-engagement-suite-modal-container',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
10
9
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: 'www',
|
|
19
|
-
serviceWorker: null, // disable service workers
|
|
20
|
-
},
|
|
21
|
-
],
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
22
17
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import
|
|
2
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-modal/dist/types/index";
|
|
3
3
|
import { OpenModalEvent } from '../../models';
|
|
4
4
|
export declare class CasinoEngagementSuiteModalContainer {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Client custom styling via string
|
|
7
|
+
*/
|
|
8
|
+
clientStyling: string;
|
|
9
|
+
/**
|
|
10
|
+
* Client custom styling via url
|
|
11
|
+
*/
|
|
12
|
+
clientStylingUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* Language of the widget
|
|
15
|
+
*/
|
|
16
|
+
language: string;
|
|
17
|
+
/**
|
|
18
|
+
*Is joining to challenge
|
|
19
|
+
*/
|
|
20
|
+
isJoiningToChallenge: boolean;
|
|
21
|
+
device: "Mobile" | "Tablet" | "Desktop";
|
|
22
|
+
private limitStylingAppends;
|
|
23
|
+
openModals: Array<string>;
|
|
24
|
+
rewardMessage: string;
|
|
25
|
+
hasError: boolean;
|
|
26
|
+
confirmationData: Record<string, number> | null;
|
|
27
|
+
winAmount: {
|
|
28
|
+
amount: number;
|
|
29
|
+
currency: string;
|
|
30
|
+
};
|
|
31
|
+
host: HTMLElement;
|
|
32
|
+
openModalHandler(event: {
|
|
33
|
+
detail: OpenModalEvent;
|
|
34
|
+
}): void;
|
|
35
|
+
closeModalHandler(event: CustomEvent<any>): void;
|
|
36
|
+
closeModal: EventEmitter<any>;
|
|
37
|
+
handleCloseClick: (e: any) => void;
|
|
38
|
+
handleChallengeAttendance: () => void;
|
|
39
|
+
componentDidRender(): void;
|
|
40
|
+
setClientStyling: () => void;
|
|
41
|
+
setClientStylingURL: () => void;
|
|
42
|
+
isModalOpen: (type: string) => boolean;
|
|
43
|
+
render(): any;
|
|
44
44
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteModalContainer } from './casino-engagement-suite-modal-container';
|
|
@@ -26,8 +26,23 @@ export namespace Components {
|
|
|
26
26
|
"language": string;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
export interface CasinoEngagementSuiteModalContainerCustomEvent<T> extends CustomEvent<T> {
|
|
30
|
+
detail: T;
|
|
31
|
+
target: HTMLCasinoEngagementSuiteModalContainerElement;
|
|
32
|
+
}
|
|
29
33
|
declare global {
|
|
34
|
+
interface HTMLCasinoEngagementSuiteModalContainerElementEventMap {
|
|
35
|
+
"closeModal": any;
|
|
36
|
+
}
|
|
30
37
|
interface HTMLCasinoEngagementSuiteModalContainerElement extends Components.CasinoEngagementSuiteModalContainer, HTMLStencilElement {
|
|
38
|
+
addEventListener<K extends keyof HTMLCasinoEngagementSuiteModalContainerElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteModalContainerElement, ev: CasinoEngagementSuiteModalContainerCustomEvent<HTMLCasinoEngagementSuiteModalContainerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
39
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
40
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
41
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
42
|
+
removeEventListener<K extends keyof HTMLCasinoEngagementSuiteModalContainerElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteModalContainerElement, ev: CasinoEngagementSuiteModalContainerCustomEvent<HTMLCasinoEngagementSuiteModalContainerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
43
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
44
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
45
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
31
46
|
}
|
|
32
47
|
var HTMLCasinoEngagementSuiteModalContainerElement: {
|
|
33
48
|
prototype: HTMLCasinoEngagementSuiteModalContainerElement;
|
|
@@ -56,7 +71,7 @@ declare namespace LocalJSX {
|
|
|
56
71
|
* Language of the widget
|
|
57
72
|
*/
|
|
58
73
|
"language"?: string;
|
|
59
|
-
"onCloseModal"?: (event:
|
|
74
|
+
"onCloseModal"?: (event: CasinoEngagementSuiteModalContainerCustomEvent<any>) => void;
|
|
60
75
|
}
|
|
61
76
|
interface IntrinsicElements {
|
|
62
77
|
"casino-engagement-suite-modal-container": CasinoEngagementSuiteModalContainer;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface OpenModalEvent {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
modalType: string;
|
|
3
|
+
rewardMessage?: string;
|
|
4
|
+
hasError?: boolean;
|
|
5
|
+
confirmationData?: Record<string, number>;
|
|
6
|
+
winAmount?: {
|
|
7
|
+
amount: number;
|
|
8
|
+
currency: string;
|
|
9
|
+
};
|
|
10
10
|
}
|