@everymatrix/casino-challenge-details 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.
Files changed (83) hide show
  1. package/dist/casino-challenge-details/app-globals-0f993ce5.js +1 -0
  2. package/dist/casino-challenge-details/casino-challenge-details-5a765f2c.js +1 -0
  3. package/dist/casino-challenge-details/casino-challenge-details.esm.js +1 -0
  4. package/dist/casino-challenge-details/casino-challenge-details_4.entry.js +1 -0
  5. package/dist/casino-challenge-details/index-30adf0cb.js +2 -0
  6. package/dist/casino-challenge-details/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/casino-challenge-details-ddf27d4e.js +761 -0
  9. package/dist/cjs/casino-challenge-details.cjs.js +25 -0
  10. package/dist/cjs/casino-challenge-details_4.cjs.entry.js +144 -0
  11. package/dist/cjs/index-2a30d71d.js +1250 -0
  12. package/dist/cjs/index.cjs.js +10 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/assets/active-chevron.svg +3 -0
  15. package/dist/collection/assets/alert.svg +3 -0
  16. package/dist/collection/assets/back-arrow.svg +9 -0
  17. package/dist/collection/assets/check.svg +10 -0
  18. package/dist/collection/assets/finish.svg +7 -0
  19. package/dist/collection/assets/gift.svg +14 -0
  20. package/dist/collection/assets/inactive-chevron.svg +3 -0
  21. package/dist/collection/assets/info-circle.svg +3 -0
  22. package/dist/collection/assets/lock.svg +3 -0
  23. package/dist/collection/assets/notification.svg +20 -0
  24. package/dist/collection/assets/target.svg +9 -0
  25. package/dist/collection/assets/title-icon.svg +1 -0
  26. package/dist/collection/assets/trophy.svg +14 -0
  27. package/dist/collection/collection-manifest.json +15 -0
  28. package/dist/collection/components/casino-challenge-details/casino-challenge-details.css +592 -0
  29. package/dist/collection/components/casino-challenge-details/casino-challenge-details.js +684 -0
  30. package/dist/collection/components/casino-challenge-details/index.js +1 -0
  31. package/dist/collection/components/components/casino-challenge-expandable-paragraph.css +76 -0
  32. package/dist/collection/components/components/casino-challenge-expandable-paragraph.js +116 -0
  33. package/dist/collection/components/components/casino-challenge-level-progress-bar.css +33 -0
  34. package/dist/collection/components/components/casino-challenge-level-progress-bar.js +81 -0
  35. package/dist/collection/components/components/casino-challenge-progress-bar.css +66 -0
  36. package/dist/collection/components/components/casino-challenge-progress-bar.js +120 -0
  37. package/dist/collection/index.js +1 -0
  38. package/dist/collection/utils/locale.utils.js +166 -0
  39. package/dist/collection/utils/mock.js +238 -0
  40. package/dist/collection/utils/types.js +60 -0
  41. package/dist/collection/utils/utils.js +29 -0
  42. package/dist/esm/app-globals-0f993ce5.js +3 -0
  43. package/dist/esm/casino-challenge-details-5a765f2c.js +758 -0
  44. package/dist/esm/casino-challenge-details.js +20 -0
  45. package/dist/esm/casino-challenge-details_4.entry.js +138 -0
  46. package/dist/esm/index-30adf0cb.js +1221 -0
  47. package/dist/esm/index.js +2 -0
  48. package/dist/esm/loader.js +11 -0
  49. package/dist/index.cjs.js +1 -0
  50. package/dist/index.js +1 -0
  51. package/dist/stencil.config.dev.js +19 -0
  52. package/dist/stencil.config.js +19 -0
  53. package/dist/storybook/main.js +43 -0
  54. package/dist/storybook/preview.js +9 -0
  55. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  56. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/packages/stencil/casino-challenge-details/stencil.config.d.ts +2 -0
  57. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/packages/stencil/casino-challenge-details/stencil.config.dev.d.ts +2 -0
  58. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/packages/stencil/casino-challenge-details/storybook/main.d.ts +3 -0
  59. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/packages/stencil/casino-challenge-details/storybook/preview.d.ts +70 -0
  60. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/tools/plugins/index.d.ts +4 -0
  61. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  62. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  63. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  64. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenge-details/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  65. package/dist/types/components/casino-challenge-details/casino-challenge-details.d.ts +105 -0
  66. package/dist/types/components/casino-challenge-details/index.d.ts +1 -0
  67. package/dist/types/components/components/casino-challenge-expandable-paragraph.d.ts +16 -0
  68. package/dist/types/components/components/casino-challenge-level-progress-bar.d.ts +6 -0
  69. package/dist/types/components/components/casino-challenge-progress-bar.d.ts +8 -0
  70. package/dist/types/components.d.ts +198 -0
  71. package/dist/types/index.d.ts +1 -0
  72. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  73. package/dist/types/utils/locale.utils.d.ts +3 -0
  74. package/dist/types/utils/mock.d.ts +76 -0
  75. package/dist/types/utils/types.d.ts +127 -0
  76. package/dist/types/utils/utils.d.ts +3 -0
  77. package/loader/cdn.js +1 -0
  78. package/loader/index.cjs.js +1 -0
  79. package/loader/index.d.ts +24 -0
  80. package/loader/index.es2017.js +1 -0
  81. package/loader/index.js +2 -0
  82. package/loader/package.json +11 -0
  83. package/package.json +27 -0
@@ -0,0 +1,2 @@
1
+ export { C as CasinoChallengeDetails } from './casino-challenge-details-5a765f2c.js';
2
+ import './index-30adf0cb.js';
@@ -0,0 +1,11 @@
1
+ import { b as bootstrapLazy } from './index-30adf0cb.js';
2
+ export { s as setNonce } from './index-30adf0cb.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["casino-challenge-details_4",[[1,"casino-challenge-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"endpoint":[513],"domain":[513],"session":[513],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isUserAuthorized":[516,"is-user-authorized"],"challengeId":[513,"challenge-id"],"activeChallengeTabIndex":[513,"active-challenge-tab-index"],"timeLeft":[32],"activeTabIndex":[32],"actionLoading":[32],"isMobile":[32],"error":[32],"hasError":[32],"games":[32],"gamesAreLoading":[32],"challenge":[32],"loading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"challenge":["onEntityChange"]}],[1,"casino-challenge-expandable-paragraph",{"maxHeight":[2,"max-height"],"active":[4],"expanded":[32],"needsTruncation":[32],"isSmallScreen":[32]}],[1,"casino-challenge-level-progress-bar",{"height":[1],"active":[4],"value":[2]}],[1,"casino-challenge-progress-bar",{"challenge":[16],"isUserAuthorized":[4,"is-user-authorized"],"language":[1]}]]]], options);
9
+ };
10
+
11
+ export { defineCustomElements };
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,19 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'casino-challenge-details',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www'
14
+ },
15
+ {
16
+ type: 'docs-readme'
17
+ }
18
+ ]
19
+ };
@@ -0,0 +1,19 @@
1
+ import { cleanPackageJsonStencil } from "../../../tools/plugins";
2
+ import { sass } from "@stencil/sass";
3
+ export const config = {
4
+ namespace: 'casino-challenge-details',
5
+ taskQueue: 'async',
6
+ sourceMap: false,
7
+ minifyJs: true,
8
+ hashFileNames: false,
9
+ extras: {
10
+ experimentalImportInjection: true
11
+ },
12
+ plugins: [cleanPackageJsonStencil(), sass()],
13
+ outputTargets: [
14
+ {
15
+ type: 'dist',
16
+ esmLoaderPath: '../loader'
17
+ }
18
+ ]
19
+ };
@@ -0,0 +1,43 @@
1
+ import path from "path";
2
+ import { getStoryFiles, detectUsedPackages, parseTsConfig, exec, filterParsedPathsByUsedPackages } from "../../../../libs/common/src/storybook/storybook-utils";
3
+ const config = {
4
+ stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
5
+ addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
6
+ docs: {
7
+ defaultName: 'Documentation',
8
+ autodocs: 'tag'
9
+ },
10
+ framework: {
11
+ name: '@storybook/web-components-vite',
12
+ options: {}
13
+ },
14
+ // Async viteFinal to build dependent packages before finalizing configuration.
15
+ viteFinal: async (config) => {
16
+ const storyFiles = getStoryFiles(path.resolve(__dirname, '../'));
17
+ const usedPackages = detectUsedPackages(storyFiles);
18
+ const buildPromises = usedPackages.map(async (pkg) => {
19
+ try {
20
+ console.log(`Building package ${pkg}...`);
21
+ const { stdout, stderr } = await exec(`nx run ${pkg}:build`);
22
+ console.log(`Built package ${pkg}: ${stdout}`);
23
+ if (stderr) {
24
+ console.error(`Build warning/error for package ${pkg}: ${stderr}`);
25
+ }
26
+ }
27
+ catch (error) {
28
+ console.error(`Error building package ${pkg}:`, error);
29
+ }
30
+ });
31
+ await Promise.all(buildPromises);
32
+ const parsedPaths = parseTsConfig() || {};
33
+ const filteredParsedPaths = filterParsedPathsByUsedPackages(parsedPaths, usedPackages);
34
+ return Object.assign(Object.assign({}, config), { resolve: {
35
+ alias: Object.assign({}, filteredParsedPaths)
36
+ }, define: {
37
+ process: {
38
+ env: {}
39
+ }
40
+ } });
41
+ }
42
+ };
43
+ export default config;
@@ -0,0 +1,9 @@
1
+ import { themes } from "@storybook/theming";
2
+ export const parameters = {
3
+ darkMode: {
4
+ dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
5
+ light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
6
+ current: 'light',
7
+ stylePreview: true
8
+ }
9
+ };
@@ -0,0 +1,39 @@
1
+ /// <reference types="node" />
2
+ import { exec as execCallback } from 'child_process';
3
+ export declare const exec: typeof execCallback.__promisify__;
4
+ /**
5
+ * Recursively retrieves all story files (.stories.ts/.stories.tsx) in a directory.
6
+ * @param dir The directory to search.
7
+ * @returns Array of story file paths.
8
+ */
9
+ export declare const getStoryFiles: (dir: string) => string[];
10
+ /**
11
+ * Detects which internal packages are used in the provided story files.
12
+ * It looks at every import that starts with the given package alias prefix,
13
+ * then extracts the package name (the segment immediately following the prefix).
14
+ *
15
+ * @param stories Array of story file paths.
16
+ * @returns Array of unique package names (e.g. ['foo', 'bar']).
17
+ */
18
+ export declare const detectUsedPackages: (stories: string[]) => string[];
19
+ /**
20
+ * Extracts all import paths from a file using the TypeScript compiler API.
21
+ * @param filePath The file path to parse.
22
+ * @returns Array of import strings.
23
+ */
24
+ export declare const extractImports: (filePath: string) => string[];
25
+ /**
26
+ * Parses the tsconfig paths and resolves them to absolute paths.
27
+ * @param tsconfigPath The path to the tsconfig file.
28
+ * @returns An object mapping alias keys to absolute paths.
29
+ */
30
+ export declare const parseTsConfig: () => Record<string, string> | null;
31
+ /**
32
+ * Filters the parsed tsconfig alias mapping to only include keys that correspond
33
+ * to the used packages.
34
+ *
35
+ * @param parsedPaths The full alias mapping from tsconfig.
36
+ * @param usedPackages Array of package names that are used (e.g. ['foo', 'bar']).
37
+ * @returns Filtered alias mapping.
38
+ */
39
+ export declare const filterParsedPathsByUsedPackages: (parsedPaths: Record<string, string>, usedPackages: string[]) => Record<string, string>;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,3 @@
1
+ import type { StorybookConfig } from '@storybook/web-components-vite';
2
+ declare const config: StorybookConfig;
3
+ export default config;
@@ -0,0 +1,70 @@
1
+ export declare const parameters: {
2
+ darkMode: {
3
+ dark: {
4
+ appBg: string;
5
+ base: "light" | "dark";
6
+ colorPrimary: string;
7
+ colorSecondary: string;
8
+ appContentBg: string;
9
+ appPreviewBg: string;
10
+ appBorderColor: string;
11
+ appBorderRadius: number;
12
+ fontBase: string;
13
+ fontCode: string;
14
+ textColor: string;
15
+ textInverseColor: string;
16
+ textMutedColor: string;
17
+ barTextColor: string;
18
+ barHoverColor: string;
19
+ barSelectedColor: string;
20
+ barBg: string;
21
+ buttonBg: string;
22
+ buttonBorder: string;
23
+ booleanBg: string;
24
+ booleanSelectedBg: string;
25
+ inputBg: string;
26
+ inputBorder: string;
27
+ inputTextColor: string;
28
+ inputBorderRadius: number;
29
+ brandTitle?: string;
30
+ brandUrl?: string;
31
+ brandImage?: string;
32
+ brandTarget?: string;
33
+ gridCellSize?: number;
34
+ };
35
+ light: {
36
+ appBg: string;
37
+ base: "light" | "dark";
38
+ colorPrimary: string;
39
+ colorSecondary: string;
40
+ appContentBg: string;
41
+ appPreviewBg: string;
42
+ appBorderColor: string;
43
+ appBorderRadius: number;
44
+ fontBase: string;
45
+ fontCode: string;
46
+ textColor: string;
47
+ textInverseColor: string;
48
+ textMutedColor: string;
49
+ barTextColor: string;
50
+ barHoverColor: string;
51
+ barSelectedColor: string;
52
+ barBg: string;
53
+ buttonBg: string;
54
+ buttonBorder: string;
55
+ booleanBg: string;
56
+ booleanSelectedBg: string;
57
+ inputBg: string;
58
+ inputBorder: string;
59
+ inputTextColor: string;
60
+ inputBorderRadius: number;
61
+ brandTitle?: string;
62
+ brandUrl?: string;
63
+ brandImage?: string;
64
+ brandTarget?: string;
65
+ gridCellSize?: number;
66
+ };
67
+ current: string;
68
+ stylePreview: boolean;
69
+ };
70
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./vite-chunk-plugin";
2
+ export * from "./stencil-clean-deps-plugin";
3
+ export * from "./vite-clean-deps-plugin";
4
+ export * from "./lazy-load-chunk-plugin";
@@ -0,0 +1,12 @@
1
+ export declare const lazyLoadChunkPlugin: () => {
2
+ name: string;
3
+ config(config: any): {
4
+ build: {
5
+ rollupOptions: {
6
+ output: {
7
+ manualChunks(id: any): any;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
@@ -0,0 +1,5 @@
1
+ export declare function cleanPackageJsonStencil(): {
2
+ name: string;
3
+ apply: string;
4
+ buildEnd(): void;
5
+ };
@@ -0,0 +1,6 @@
1
+ export declare function viteChunkPlugin(): {
2
+ name: string;
3
+ config(config: any, { command }: {
4
+ command: any;
5
+ }): void;
6
+ };
@@ -0,0 +1,4 @@
1
+ export declare function cleanPackageJsonVite(widgetName: any): {
2
+ name: string;
3
+ closeBundle(): void;
4
+ };
@@ -0,0 +1,105 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { IChallenge, IGameDetails } from '../../utils/types';
3
+ export declare class CasinoChallengeDetails {
4
+ /**
5
+ * Client custom styling via message bus
6
+ */
7
+ mbSource: string;
8
+ /**
9
+ * Client custom styling via string
10
+ */
11
+ clientStyling: string;
12
+ /**
13
+ * Client endpoint to fetch data
14
+ */
15
+ endpoint: string;
16
+ /**
17
+ * Domain Id
18
+ */
19
+ domain: string;
20
+ /**
21
+ * User session Id
22
+ */
23
+ session: string;
24
+ /**
25
+ * Client custom styling via css file url
26
+ */
27
+ clientStylingUrl: string;
28
+ /**
29
+ * Client custom translation via json file url
30
+ */
31
+ translationUrl: string;
32
+ /**
33
+ * Client custom language for translation
34
+ */
35
+ language: string;
36
+ /**
37
+ * Is User authorized
38
+ */
39
+ isUserAuthorized: boolean;
40
+ /**
41
+ * Challenge id
42
+ */
43
+ challengeId: string;
44
+ /**
45
+ * Challenges active tab index
46
+ */
47
+ activeChallengeTabIndex: string;
48
+ private activeEntityRef;
49
+ private scrollContainerRef;
50
+ private readonly challengesTabs;
51
+ private readonly tabs;
52
+ private readonly showNotification;
53
+ timeLeft: string;
54
+ activeTabIndex: number;
55
+ actionLoading: boolean;
56
+ isMobile: boolean;
57
+ error: string;
58
+ hasError: boolean;
59
+ games: IGameDetails[];
60
+ gamesAreLoading: boolean;
61
+ challenge: IChallenge;
62
+ loading: boolean;
63
+ timerExpired: EventEmitter;
64
+ private stylingContainer;
65
+ private stylingSubscription;
66
+ private timerId;
67
+ handleClientStylingChange(newValue: any, oldValue: any): void;
68
+ handleClientStylingUrlChange(newValue: any, oldValue: any): void;
69
+ handleMbSourceChange(newValue: any, oldValue: any): void;
70
+ onEntityChange(newChallenge: IChallenge, previousChallenge: any): void;
71
+ private scrollToActiveLevel;
72
+ checkIsMobile: () => void;
73
+ connectedCallback(): void;
74
+ getChallenge(): Promise<void>;
75
+ componentWillLoad(): void;
76
+ componentDidLoad(): void;
77
+ disconnectedCallback(): void;
78
+ getReward(level: any): any;
79
+ getTarget(level: any): string;
80
+ private calculateTargetValue;
81
+ private updateTime;
82
+ private getBadgeContent;
83
+ private get getCardBadge();
84
+ private get actionButtonText();
85
+ checkAttrs: () => boolean;
86
+ openLoginRegisterModal(): void;
87
+ joinUnjoinProgress: () => Promise<any>;
88
+ fetchGames(): Promise<void>;
89
+ private handleTabClick;
90
+ private handleChallengesTabClick;
91
+ getBackButtonText: () => any;
92
+ private getLevelStatus;
93
+ private get pageHeader();
94
+ private get cardGeneralInfo();
95
+ private get challengeTabs();
96
+ private get levelsTab();
97
+ handleGameClick(game: IGameDetails): void;
98
+ private get gamesTab();
99
+ private get rulesTab();
100
+ private get footer();
101
+ private get forfeitedNofitication();
102
+ private get completedNotification();
103
+ private get expiredNotification();
104
+ render(): any;
105
+ }
@@ -0,0 +1 @@
1
+ export { CasinoChallengeDetails } from './casino-challenge-details';
@@ -0,0 +1,16 @@
1
+ export declare class CasinoChallengeExpandableParagraph {
2
+ el: HTMLElement;
3
+ expanded: boolean;
4
+ needsTruncation: boolean;
5
+ isSmallScreen: boolean;
6
+ maxHeight: number;
7
+ active: boolean;
8
+ contentEl: HTMLElement;
9
+ componentDidLoad(): void;
10
+ disconnectedCallback(): void;
11
+ handleResize: () => void;
12
+ evaluateLayout: () => void;
13
+ toggleExpand: () => void;
14
+ toggleCollapse: () => void;
15
+ render(): any;
16
+ }
@@ -0,0 +1,6 @@
1
+ export declare class CasinoChallengeLevelProgressBar {
2
+ height: string;
3
+ active: boolean;
4
+ value: number;
5
+ render(): any;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { IChallenge } from '../../utils/types';
2
+ export declare class CasinoChallengeProgressBar {
3
+ challenge: IChallenge;
4
+ isUserAuthorized: boolean;
5
+ language: string;
6
+ private get challengeProgress();
7
+ render(): any;
8
+ }
@@ -0,0 +1,198 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { IChallenge } from "./utils/types";
9
+ export { IChallenge } from "./utils/types";
10
+ export namespace Components {
11
+ interface CasinoChallengeDetails {
12
+ /**
13
+ * Challenges active tab index
14
+ */
15
+ "activeChallengeTabIndex": string;
16
+ /**
17
+ * Challenge id
18
+ */
19
+ "challengeId": string;
20
+ /**
21
+ * Client custom styling via string
22
+ */
23
+ "clientStyling": string;
24
+ /**
25
+ * Client custom styling via css file url
26
+ */
27
+ "clientStylingUrl": string;
28
+ /**
29
+ * Domain Id
30
+ */
31
+ "domain": string;
32
+ /**
33
+ * Client endpoint to fetch data
34
+ */
35
+ "endpoint": string;
36
+ /**
37
+ * Is User authorized
38
+ */
39
+ "isUserAuthorized": boolean;
40
+ /**
41
+ * Client custom language for translation
42
+ */
43
+ "language": string;
44
+ /**
45
+ * Client custom styling via message bus
46
+ */
47
+ "mbSource": string;
48
+ /**
49
+ * User session Id
50
+ */
51
+ "session": string;
52
+ /**
53
+ * Client custom translation via json file url
54
+ */
55
+ "translationUrl": string;
56
+ }
57
+ interface CasinoChallengeExpandableParagraph {
58
+ "active": boolean;
59
+ "maxHeight": number;
60
+ }
61
+ interface CasinoChallengeLevelProgressBar {
62
+ "active": boolean;
63
+ "height": string;
64
+ "value": number;
65
+ }
66
+ interface CasinoChallengeProgressBar {
67
+ "challenge": IChallenge;
68
+ "isUserAuthorized": boolean;
69
+ "language": string;
70
+ }
71
+ }
72
+ export interface CasinoChallengeDetailsCustomEvent<T> extends CustomEvent<T> {
73
+ detail: T;
74
+ target: HTMLCasinoChallengeDetailsElement;
75
+ }
76
+ declare global {
77
+ interface HTMLCasinoChallengeDetailsElementEventMap {
78
+ "timerExpired": any;
79
+ }
80
+ interface HTMLCasinoChallengeDetailsElement extends Components.CasinoChallengeDetails, HTMLStencilElement {
81
+ addEventListener<K extends keyof HTMLCasinoChallengeDetailsElementEventMap>(type: K, listener: (this: HTMLCasinoChallengeDetailsElement, ev: CasinoChallengeDetailsCustomEvent<HTMLCasinoChallengeDetailsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
82
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
83
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
84
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
85
+ removeEventListener<K extends keyof HTMLCasinoChallengeDetailsElementEventMap>(type: K, listener: (this: HTMLCasinoChallengeDetailsElement, ev: CasinoChallengeDetailsCustomEvent<HTMLCasinoChallengeDetailsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
86
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
87
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
88
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
89
+ }
90
+ var HTMLCasinoChallengeDetailsElement: {
91
+ prototype: HTMLCasinoChallengeDetailsElement;
92
+ new (): HTMLCasinoChallengeDetailsElement;
93
+ };
94
+ interface HTMLCasinoChallengeExpandableParagraphElement extends Components.CasinoChallengeExpandableParagraph, HTMLStencilElement {
95
+ }
96
+ var HTMLCasinoChallengeExpandableParagraphElement: {
97
+ prototype: HTMLCasinoChallengeExpandableParagraphElement;
98
+ new (): HTMLCasinoChallengeExpandableParagraphElement;
99
+ };
100
+ interface HTMLCasinoChallengeLevelProgressBarElement extends Components.CasinoChallengeLevelProgressBar, HTMLStencilElement {
101
+ }
102
+ var HTMLCasinoChallengeLevelProgressBarElement: {
103
+ prototype: HTMLCasinoChallengeLevelProgressBarElement;
104
+ new (): HTMLCasinoChallengeLevelProgressBarElement;
105
+ };
106
+ interface HTMLCasinoChallengeProgressBarElement extends Components.CasinoChallengeProgressBar, HTMLStencilElement {
107
+ }
108
+ var HTMLCasinoChallengeProgressBarElement: {
109
+ prototype: HTMLCasinoChallengeProgressBarElement;
110
+ new (): HTMLCasinoChallengeProgressBarElement;
111
+ };
112
+ interface HTMLElementTagNameMap {
113
+ "casino-challenge-details": HTMLCasinoChallengeDetailsElement;
114
+ "casino-challenge-expandable-paragraph": HTMLCasinoChallengeExpandableParagraphElement;
115
+ "casino-challenge-level-progress-bar": HTMLCasinoChallengeLevelProgressBarElement;
116
+ "casino-challenge-progress-bar": HTMLCasinoChallengeProgressBarElement;
117
+ }
118
+ }
119
+ declare namespace LocalJSX {
120
+ interface CasinoChallengeDetails {
121
+ /**
122
+ * Challenges active tab index
123
+ */
124
+ "activeChallengeTabIndex"?: string;
125
+ /**
126
+ * Challenge id
127
+ */
128
+ "challengeId"?: string;
129
+ /**
130
+ * Client custom styling via string
131
+ */
132
+ "clientStyling"?: string;
133
+ /**
134
+ * Client custom styling via css file url
135
+ */
136
+ "clientStylingUrl"?: string;
137
+ /**
138
+ * Domain Id
139
+ */
140
+ "domain"?: string;
141
+ /**
142
+ * Client endpoint to fetch data
143
+ */
144
+ "endpoint"?: string;
145
+ /**
146
+ * Is User authorized
147
+ */
148
+ "isUserAuthorized"?: boolean;
149
+ /**
150
+ * Client custom language for translation
151
+ */
152
+ "language"?: string;
153
+ /**
154
+ * Client custom styling via message bus
155
+ */
156
+ "mbSource"?: string;
157
+ "onTimerExpired"?: (event: CasinoChallengeDetailsCustomEvent<any>) => void;
158
+ /**
159
+ * User session Id
160
+ */
161
+ "session"?: string;
162
+ /**
163
+ * Client custom translation via json file url
164
+ */
165
+ "translationUrl"?: string;
166
+ }
167
+ interface CasinoChallengeExpandableParagraph {
168
+ "active"?: boolean;
169
+ "maxHeight"?: number;
170
+ }
171
+ interface CasinoChallengeLevelProgressBar {
172
+ "active"?: boolean;
173
+ "height"?: string;
174
+ "value"?: number;
175
+ }
176
+ interface CasinoChallengeProgressBar {
177
+ "challenge"?: IChallenge;
178
+ "isUserAuthorized"?: boolean;
179
+ "language"?: string;
180
+ }
181
+ interface IntrinsicElements {
182
+ "casino-challenge-details": CasinoChallengeDetails;
183
+ "casino-challenge-expandable-paragraph": CasinoChallengeExpandableParagraph;
184
+ "casino-challenge-level-progress-bar": CasinoChallengeLevelProgressBar;
185
+ "casino-challenge-progress-bar": CasinoChallengeProgressBar;
186
+ }
187
+ }
188
+ export { LocalJSX as JSX };
189
+ declare module "@stencil/core" {
190
+ export namespace JSX {
191
+ interface IntrinsicElements {
192
+ "casino-challenge-details": LocalJSX.CasinoChallengeDetails & JSXBase.HTMLAttributes<HTMLCasinoChallengeDetailsElement>;
193
+ "casino-challenge-expandable-paragraph": LocalJSX.CasinoChallengeExpandableParagraph & JSXBase.HTMLAttributes<HTMLCasinoChallengeExpandableParagraphElement>;
194
+ "casino-challenge-level-progress-bar": LocalJSX.CasinoChallengeLevelProgressBar & JSXBase.HTMLAttributes<HTMLCasinoChallengeLevelProgressBarElement>;
195
+ "casino-challenge-progress-bar": LocalJSX.CasinoChallengeProgressBar & JSXBase.HTMLAttributes<HTMLCasinoChallengeProgressBarElement>;
196
+ }
197
+ }
198
+ }
@@ -0,0 +1 @@
1
+ export * from './components/casino-challenge-details';