@everymatrix/casino-engagement-suite-challenges-details 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-challenges-details/casino-engagement-suite-challenges-details.esm.js +1 -1
- package/dist/casino-engagement-suite-challenges-details/p-11d8b487.js +2 -0
- package/dist/casino-engagement-suite-challenges-details/p-8bbfff73.entry.js +1 -0
- package/dist/casino-engagement-suite-challenges-details/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-challenges-details.cjs.js +17 -11
- package/dist/cjs/casino-engagement-suite-challenges-details_2.cjs.entry.js +293 -323
- package/dist/cjs/index-a758ba24.js +1249 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.css +63 -61
- package/dist/collection/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.js +438 -493
- package/dist/collection/components/casino-engagement-suite-challenges-details/index.js +1 -0
- package/dist/collection/models/casino-challenges-details.js +10 -10
- package/dist/collection/utils/index.js +8 -2
- package/dist/collection/utils/locale.utils.js +18 -18
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-challenges-details.js +14 -11
- package/dist/esm/casino-engagement-suite-challenges-details_2.entry.js +293 -323
- package/dist/esm/index-c193b756.js +1221 -0
- package/dist/esm/loader.js +7 -13
- 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-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.d.ts +70 -70
- package/dist/types/components/casino-engagement-suite-challenges-details/index.d.ts +1 -0
- package/dist/types/components.d.ts +21 -3
- package/dist/types/models/casino-challenges-details.d.ts +46 -46
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- 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-challenges-details/p-80848cd8.entry.js +0 -1
- package/dist/casino-engagement-suite-challenges-details/p-808a7dc5.js +0 -1
- package/dist/cjs/index-a0eb9215.js +0 -1279
- package/dist/components/casino-engagement-suite-challenges-details.d.ts +0 -11
- package/dist/components/casino-engagement-suite-challenges-details.js +0 -318
- package/dist/components/casino-engagement-suite-progress-bar.js +0 -6
- package/dist/components/casino-engagement-suite-progress-bar2.js +0 -107
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-c5abae48.js +0 -1252
- 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-challenges-details/.stencil/packages/casino-engagement-suite-challenges-details/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-c193b756.js';
|
|
2
|
+
export { s as setNonce } from './index-c193b756.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return promiseResolve();
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const defineCustomElements = (win, options) => {
|
|
11
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
|
-
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["casino-engagement-suite-challenges-details_2",[[1,"casino-engagement-suite-challenges-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[1040],"inProgressChallenges":[1040],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"pausedChallengeIds":[1040],"limitStylingAppends":[32],"timer":[32],"showDetails":[32],"isExpiredChallenge":[32]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
14
|
-
});
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["casino-engagement-suite-challenges-details_2",[[1,"casino-engagement-suite-challenges-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[1040],"inProgressChallenges":[1040],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"pausedChallengeIds":[1040],"limitStylingAppends":[32],"timer":[32],"showDetails":[32],"isExpiredChallenge":[32]},null,{"challenge":["challengePropHandler"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
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-challenges-details',
|
|
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-challenges-details',
|
|
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,74 +1,74 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Challenge, LevelProgress } from '../../models/casino-challenges-details';
|
|
3
|
-
import
|
|
3
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-progress-bar/dist/types/index";
|
|
4
4
|
export declare class CasinoEngagementSuiteChallengesDetails {
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Client custom styling via string
|
|
7
|
+
*/
|
|
8
|
+
clientStyling: string;
|
|
9
|
+
/**
|
|
10
|
+
* Client custom styling via url
|
|
11
|
+
*/
|
|
12
|
+
clientStylingUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* Selected challenge
|
|
15
|
+
*/
|
|
16
|
+
challenge: Challenge;
|
|
17
|
+
/**
|
|
18
|
+
*Active challenges
|
|
19
|
+
*/
|
|
20
|
+
inProgressChallenges: Array<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Language of the widget
|
|
23
|
+
*/
|
|
24
|
+
language: string;
|
|
25
|
+
/**
|
|
26
|
+
* Current game slug
|
|
27
|
+
*/
|
|
28
|
+
gameSlug: string;
|
|
29
|
+
/**
|
|
30
|
+
* User's device type
|
|
31
|
+
*/
|
|
32
|
+
device: "Mobile" | "Tablet" | "Desktop";
|
|
33
|
+
/**
|
|
34
|
+
*Is joining to challenge
|
|
35
|
+
*/
|
|
36
|
+
isJoiningToChallenge: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*Paused Challenge Ids
|
|
39
|
+
*/
|
|
40
|
+
pausedChallengeIds: Array<string>;
|
|
41
|
+
close: EventEmitter<void>;
|
|
42
|
+
back: EventEmitter<void>;
|
|
43
|
+
resetNewChallengeLabel: EventEmitter<string>;
|
|
44
|
+
private limitStylingAppends;
|
|
45
|
+
timer: string;
|
|
46
|
+
showDetails: boolean;
|
|
47
|
+
isExpiredChallenge: boolean;
|
|
48
|
+
host: HTMLElement;
|
|
49
|
+
challengeDetails: HTMLElement;
|
|
50
|
+
challengePropHandler(value: Challenge): void;
|
|
51
|
+
interval: any;
|
|
52
|
+
componentWillLoad(): void;
|
|
53
|
+
componentDidRender(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
setClientStyling: () => void;
|
|
56
|
+
setClientStylingURL: () => void;
|
|
57
|
+
getActionsTemplate(): any;
|
|
58
|
+
getChallengeHeader(): any;
|
|
59
|
+
getChallengeCountdown(): any;
|
|
60
|
+
getChallengeDetails(): any;
|
|
61
|
+
handleCloseClick: () => void;
|
|
62
|
+
handleBackClick: () => void;
|
|
63
|
+
resetNewLabel(): void;
|
|
64
|
+
onGameClick: (ev: MouseEvent) => void;
|
|
65
|
+
changeChallengeStatus: (e: MouseEvent) => void;
|
|
66
|
+
startCountdown(): void;
|
|
67
|
+
updateTimer(): void;
|
|
68
|
+
getLevelTarget(level: LevelProgress): any;
|
|
69
|
+
getLevelBetRangesDetails(level: LevelProgress): any;
|
|
70
|
+
getChallengeLevels(): any;
|
|
71
|
+
getToggleButton(): any;
|
|
72
|
+
toggle: () => void;
|
|
73
|
+
render(): any;
|
|
74
74
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteChallengesDetails } from './casino-engagement-suite-challenges-details';
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Challenge } from "./models/casino-challenges-details";
|
|
9
|
+
export { Challenge } from "./models/casino-challenges-details";
|
|
9
10
|
export namespace Components {
|
|
10
11
|
interface CasinoEngagementSuiteChallengesDetails {
|
|
11
12
|
/**
|
|
@@ -46,8 +47,25 @@ export namespace Components {
|
|
|
46
47
|
"pausedChallengeIds": string[];
|
|
47
48
|
}
|
|
48
49
|
}
|
|
50
|
+
export interface CasinoEngagementSuiteChallengesDetailsCustomEvent<T> extends CustomEvent<T> {
|
|
51
|
+
detail: T;
|
|
52
|
+
target: HTMLCasinoEngagementSuiteChallengesDetailsElement;
|
|
53
|
+
}
|
|
49
54
|
declare global {
|
|
55
|
+
interface HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap {
|
|
56
|
+
"close": void;
|
|
57
|
+
"back": void;
|
|
58
|
+
"resetNewChallengeLabel": string;
|
|
59
|
+
}
|
|
50
60
|
interface HTMLCasinoEngagementSuiteChallengesDetailsElement extends Components.CasinoEngagementSuiteChallengesDetails, HTMLStencilElement {
|
|
61
|
+
addEventListener<K extends keyof HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteChallengesDetailsElement, ev: CasinoEngagementSuiteChallengesDetailsCustomEvent<HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
62
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
63
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
64
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
65
|
+
removeEventListener<K extends keyof HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteChallengesDetailsElement, ev: CasinoEngagementSuiteChallengesDetailsCustomEvent<HTMLCasinoEngagementSuiteChallengesDetailsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
66
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
67
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
68
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
51
69
|
}
|
|
52
70
|
var HTMLCasinoEngagementSuiteChallengesDetailsElement: {
|
|
53
71
|
prototype: HTMLCasinoEngagementSuiteChallengesDetailsElement;
|
|
@@ -91,9 +109,9 @@ declare namespace LocalJSX {
|
|
|
91
109
|
* Language of the widget
|
|
92
110
|
*/
|
|
93
111
|
"language"?: string;
|
|
94
|
-
"onBack"?: (event:
|
|
95
|
-
"onClose"?: (event:
|
|
96
|
-
"onResetNewChallengeLabel"?: (event:
|
|
112
|
+
"onBack"?: (event: CasinoEngagementSuiteChallengesDetailsCustomEvent<void>) => void;
|
|
113
|
+
"onClose"?: (event: CasinoEngagementSuiteChallengesDetailsCustomEvent<void>) => void;
|
|
114
|
+
"onResetNewChallengeLabel"?: (event: CasinoEngagementSuiteChallengesDetailsCustomEvent<string>) => void;
|
|
97
115
|
/**
|
|
98
116
|
* Paused Challenge Ids
|
|
99
117
|
*/
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
export interface ChallengePresentation {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Description: string;
|
|
3
|
+
PresentationName: string;
|
|
4
|
+
Url?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface Game {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
CasinoGameId: number;
|
|
8
|
+
GameIcon: string;
|
|
9
|
+
GameId: string;
|
|
10
|
+
GameName: string;
|
|
11
|
+
GameSlug: string;
|
|
12
12
|
}
|
|
13
13
|
export interface BetRange {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
MinBet: number;
|
|
15
|
+
MaxBet: number;
|
|
16
16
|
}
|
|
17
17
|
export interface Reward {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
RewardId: number;
|
|
19
|
+
Type: number;
|
|
20
20
|
}
|
|
21
21
|
export declare enum ChallengeLevelProgressStatus {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
Closed = 0,
|
|
23
|
+
InProgress = 1,
|
|
24
|
+
Fillup = 2,
|
|
25
|
+
Completed = 3
|
|
26
26
|
}
|
|
27
27
|
export interface LevelProgress {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
BetRange?: BetRange;
|
|
29
|
+
CurrentBetCount: number;
|
|
30
|
+
CurrentTurnover: number;
|
|
31
|
+
LevelContributionPercent: number;
|
|
32
|
+
LevelId: string;
|
|
33
|
+
LevelTargetType: number;
|
|
34
|
+
OrderNumber: number;
|
|
35
|
+
ProgressPercentage: number;
|
|
36
|
+
ProgressStatus: ChallengeLevelProgressStatus;
|
|
37
|
+
Rewards: Array<Reward>;
|
|
38
|
+
TargetBetCount: number;
|
|
39
|
+
TargetTurnover: number;
|
|
40
|
+
DisplayCurrencyTargetTurnover: number;
|
|
41
|
+
CustomRewardMessage: string;
|
|
42
42
|
}
|
|
43
43
|
export declare enum ChallengeProgressStatus {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
Started = 0,
|
|
45
|
+
InProgress = 1,
|
|
46
|
+
PendingLevelReward = 2,
|
|
47
|
+
Completed = 3,
|
|
48
|
+
Expired = 4,
|
|
49
|
+
Forfeited = 5
|
|
50
50
|
}
|
|
51
51
|
export interface Challenge {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
ChallengePresentation: ChallengePresentation;
|
|
53
|
+
CurrencySymbol: string;
|
|
54
|
+
DomainId: number;
|
|
55
|
+
ExpirationTime: string;
|
|
56
|
+
Games: Array<Game>;
|
|
57
|
+
Id: string;
|
|
58
|
+
ChallengeId: string;
|
|
59
|
+
LevelProgresses: Array<LevelProgress>;
|
|
60
|
+
Status: ChallengeProgressStatus;
|
|
61
|
+
IsNew: boolean;
|
|
62
62
|
}
|