@everymatrix/casino-challenges-overlay 0.3.3 → 0.3.5
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-challenges-overlay/casino-challenges-overlay-e43b403e.js +1 -0
- package/dist/casino-challenges-overlay/casino-challenges-overlay.esm.js +1 -1
- package/dist/casino-challenges-overlay/casino-challenges-overlay_2.entry.js +1 -0
- package/dist/casino-challenges-overlay/index-7fdd1cbf.js +2 -0
- package/dist/casino-challenges-overlay/index.esm.js +1 -1
- package/dist/cjs/{casino-challenges-overlay-e96b8732.js → casino-challenges-overlay-a75f839f.js} +206 -9
- package/dist/cjs/casino-challenges-overlay.cjs.js +2 -2
- package/dist/cjs/casino-challenges-overlay_2.cjs.entry.js +121 -0
- package/dist/cjs/{index-87f5caf5.js → index-11e96899.js} +107 -6
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/casino-challenges-overlay/casino-challenges-overlay.css +3 -0
- package/dist/collection/components/casino-challenges-overlay/casino-challenges-overlay.js +204 -6
- package/dist/collection/utils/locale.utils.js +9 -1
- package/dist/collection/utils/types.js +32 -0
- package/dist/esm/{casino-challenges-overlay-127cb2bd.js → casino-challenges-overlay-e43b403e.js} +204 -10
- package/dist/esm/casino-challenges-overlay.js +3 -3
- package/dist/esm/casino-challenges-overlay_2.entry.js +117 -0
- package/dist/esm/{index-23ccb586.js → index-7fdd1cbf.js} +107 -6
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/casino-challenges-overlay/casino-challenges-overlay.d.ts +21 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/types/utils/types.d.ts +97 -0
- package/package.json +1 -1
- package/dist/casino-challenges-overlay/casino-challenges-overlay-127cb2bd.js +0 -1
- package/dist/casino-challenges-overlay/casino-challenges-overlay.entry.js +0 -1
- package/dist/casino-challenges-overlay/index-23ccb586.js +0 -2
- package/dist/cjs/casino-challenges-overlay.cjs.entry.js +0 -10
- package/dist/esm/casino-challenges-overlay.entry.js +0 -2
package/dist/esm/loader.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { b as bootstrapLazy } from './index-7fdd1cbf.js';
|
2
|
+
export { s as setNonce } from './index-7fdd1cbf.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
7
7
|
await globalScripts();
|
8
|
-
return bootstrapLazy([["casino-challenges-
|
8
|
+
return bootstrapLazy([["casino-challenges-overlay_2",[[1,"casino-challenges-overlay",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"challenges":[16],"progress":[32],"isGrayed":[32],"isNew":[32],"isGift":[32],"isNotification":[32],"inProgressCount":[32],"activeChallenge":[32],"showModal":[32],"modalTitle":[32],"modalSubTitle":[32],"modalBtnText":[32],"modalShowIcon":[32],"modalReward":[32],"modalAddition":[32],"modalAdditionLink":[32],"modalAdditionText":[32]},[[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"challenges":["handleChallengesChange"]}],[1,"casino-challenges-overlay-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"isOpen":[4,"is-open"],"showIcon":[4,"show-icon"],"showButton":[4,"show-button"],"header":[1],"subtitle":[1],"reward":[1],"addition":[1],"additionLinkUrl":[1,"addition-link-url"],"additionLinkText":[1,"addition-link-text"],"actionText":[1,"action-text"],"translationUrl":[513,"translation-url"],"handleClick":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
9
9
|
};
|
10
10
|
|
11
11
|
export { defineCustomElements };
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { IChallenge, IStatusEvent } from '../../utils/types';
|
2
|
+
import "../../../../../../dist/packages/stencil/casino-challenges-overlay-modal/dist/types/index";
|
1
3
|
export declare class CasinoChallengesOverlay {
|
2
4
|
/**
|
3
5
|
* Client custom styling via message bus
|
@@ -19,16 +21,34 @@ export declare class CasinoChallengesOverlay {
|
|
19
21
|
* Client custom language for translation
|
20
22
|
*/
|
21
23
|
language: string;
|
24
|
+
/**
|
25
|
+
* User challenges list
|
26
|
+
*/
|
27
|
+
challenges: IChallenge[];
|
22
28
|
progress: number;
|
23
29
|
isGrayed: boolean;
|
24
30
|
isNew: boolean;
|
25
31
|
isGift: boolean;
|
26
32
|
isNotification: boolean;
|
33
|
+
inProgressCount: number;
|
34
|
+
activeChallenge: string;
|
35
|
+
showModal: boolean;
|
36
|
+
modalTitle: string;
|
37
|
+
modalSubTitle: string;
|
38
|
+
modalBtnText: string;
|
39
|
+
modalShowIcon: boolean;
|
40
|
+
modalReward: string;
|
41
|
+
modalAddition: string;
|
42
|
+
modalAdditionLink: string;
|
43
|
+
modalAdditionText: string;
|
27
44
|
private stylingContainer;
|
28
45
|
private stylingSubscription;
|
29
46
|
handleClientStylingChange(newValue: any, oldValue: any): void;
|
30
47
|
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
31
48
|
handleMbSourceChange(newValue: any, oldValue: any): void;
|
49
|
+
handleChallengesChange(newValue: IChallenge[]): void;
|
50
|
+
handleEvent(e: any): void;
|
51
|
+
handleStatusEvent(data: IStatusEvent): void;
|
32
52
|
componentWillLoad(): void;
|
33
53
|
componentDidLoad(): void;
|
34
54
|
disconnectedCallback(): void;
|
@@ -37,5 +57,6 @@ export declare class CasinoChallengesOverlay {
|
|
37
57
|
y: number;
|
38
58
|
};
|
39
59
|
renderBadgeContent(): any;
|
60
|
+
closeModal(): void;
|
40
61
|
render(): any;
|
41
62
|
}
|
@@ -5,8 +5,14 @@
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
6
6
|
*/
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
8
|
+
import { IChallenge } from "./utils/types";
|
9
|
+
export { IChallenge } from "./utils/types";
|
8
10
|
export namespace Components {
|
9
11
|
interface CasinoChallengesOverlay {
|
12
|
+
/**
|
13
|
+
* User challenges list
|
14
|
+
*/
|
15
|
+
"challenges": IChallenge[];
|
10
16
|
/**
|
11
17
|
* Client custom styling via string
|
12
18
|
*/
|
@@ -42,6 +48,10 @@ declare global {
|
|
42
48
|
}
|
43
49
|
declare namespace LocalJSX {
|
44
50
|
interface CasinoChallengesOverlay {
|
51
|
+
/**
|
52
|
+
* User challenges list
|
53
|
+
*/
|
54
|
+
"challenges"?: IChallenge[];
|
45
55
|
/**
|
46
56
|
* Client custom styling via string
|
47
57
|
*/
|
@@ -0,0 +1,97 @@
|
|
1
|
+
export declare enum EChallengeRewardType {
|
2
|
+
FreeSpins = 0,
|
3
|
+
LuckyWheel = 1,
|
4
|
+
Leaderboard = 2,
|
5
|
+
Challenge = 3,
|
6
|
+
Custom = 4
|
7
|
+
}
|
8
|
+
export declare enum EChallengeProgressStatus {
|
9
|
+
Closed = 0,
|
10
|
+
InProgress = 1,
|
11
|
+
Fillup = 2,
|
12
|
+
Completed = 3
|
13
|
+
}
|
14
|
+
export declare enum EChallengeStatus {
|
15
|
+
Started = 0,
|
16
|
+
InProgress = 1,
|
17
|
+
PendingLevelReward = 2,
|
18
|
+
Completed = 3,
|
19
|
+
Expired = 4,
|
20
|
+
Forfeited = 5,
|
21
|
+
Awaiting = 6,
|
22
|
+
Paused = 7
|
23
|
+
}
|
24
|
+
export interface IChallengeLevelReward {
|
25
|
+
Type: EChallengeRewardType;
|
26
|
+
RewardId: number;
|
27
|
+
RewardDescription?: string;
|
28
|
+
BonusCode?: string | null;
|
29
|
+
LoyaltyEngineRewardType: number;
|
30
|
+
RewardAmount: number;
|
31
|
+
}
|
32
|
+
export interface IChallengePresentation {
|
33
|
+
TriggerPopupMessage: string;
|
34
|
+
TooltipMessage: string;
|
35
|
+
BannerUrl: string;
|
36
|
+
PresentationName: string;
|
37
|
+
Description: string;
|
38
|
+
Url: string;
|
39
|
+
}
|
40
|
+
export interface ITriggerPeriods {
|
41
|
+
DayOfWeek: number;
|
42
|
+
StartTime: string;
|
43
|
+
EndTime: string;
|
44
|
+
}
|
45
|
+
export interface IChallengeBetRange {
|
46
|
+
MinBet: number;
|
47
|
+
MaxBet: number;
|
48
|
+
MaxContributionAmount: number;
|
49
|
+
}
|
50
|
+
export declare enum EChallengeLevelTargetType {
|
51
|
+
Accumulative = 0,
|
52
|
+
SingleBet = 1,
|
53
|
+
MultipleOneBetSize = 2
|
54
|
+
}
|
55
|
+
export interface IGame {
|
56
|
+
GameId: string;
|
57
|
+
GameName: string;
|
58
|
+
GameIcon: string;
|
59
|
+
GameSlug: string;
|
60
|
+
CasinoGameId: number;
|
61
|
+
}
|
62
|
+
export interface ILevelProgress {
|
63
|
+
DisplayCurrencyCurrentTurnover: number;
|
64
|
+
DisplayCurrencyTargetTurnover: number;
|
65
|
+
CustomRewardMessage: string;
|
66
|
+
LevelId: string;
|
67
|
+
OrderNumber: number;
|
68
|
+
LevelTargetType: EChallengeLevelTargetType;
|
69
|
+
CurrentTurnover: number;
|
70
|
+
TargetTurnover: number;
|
71
|
+
LevelContributionPercent: number;
|
72
|
+
CurrentBetCount: number;
|
73
|
+
TargetBetCount: number;
|
74
|
+
Rewards: IChallengeLevelReward[];
|
75
|
+
ProgressPercentage: number;
|
76
|
+
ProgressStatus: EChallengeProgressStatus;
|
77
|
+
CompleteTime: string;
|
78
|
+
BetRange: IChallengeBetRange;
|
79
|
+
}
|
80
|
+
export interface IChallenge {
|
81
|
+
Status: EChallengeStatus;
|
82
|
+
ChallengePresentation: IChallengePresentation;
|
83
|
+
DomainId: number;
|
84
|
+
Id: string;
|
85
|
+
ChallengeId: string;
|
86
|
+
CurrencySymbol: string;
|
87
|
+
ExpirationTime: string;
|
88
|
+
IsNew: boolean;
|
89
|
+
TotalGamesCount: number;
|
90
|
+
IncludeAllGames: boolean;
|
91
|
+
Games: IGame[];
|
92
|
+
LevelProgresses: ILevelProgress[];
|
93
|
+
}
|
94
|
+
export interface IStatusEvent {
|
95
|
+
ChallengeId: string;
|
96
|
+
IsEnabled?: boolean;
|
97
|
+
}
|