@everymatrix/casino-challenges-overlay-drawer 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/casino-challenges-overlay-drawer/app-globals-0f993ce5.js +1 -0
- package/dist/casino-challenges-overlay-drawer/casino-challenge-details-events_21.entry.js +1 -0
- package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer-b6d3a238.js +1 -0
- package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.esm.js +1 -0
- package/dist/casino-challenges-overlay-drawer/index-25fd45d2.js +2 -0
- package/dist/casino-challenges-overlay-drawer/index.esm.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-challenge-details-events_21.cjs.entry.js +4459 -0
- package/dist/cjs/casino-challenges-overlay-drawer-ee68086b.js +1002 -0
- package/dist/cjs/casino-challenges-overlay-drawer.cjs.js +25 -0
- package/dist/cjs/index-d2288c94.js +1592 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/assets/arrow-down.svg +3 -0
- package/dist/collection/assets/arrow-up.svg +3 -0
- package/dist/collection/assets/check.svg +3 -0
- package/dist/collection/assets/chevron-up.svg +3 -0
- package/dist/collection/assets/chevron.svg +4 -0
- package/dist/collection/assets/cross.svg +4 -0
- package/dist/collection/assets/crown.svg +12 -0
- package/dist/collection/assets/error.svg +3 -0
- package/dist/collection/assets/gift.svg +24 -0
- package/dist/collection/assets/link.svg +3 -0
- package/dist/collection/assets/lock.svg +3 -0
- package/dist/collection/assets/notification.svg +20 -0
- package/dist/collection/assets/opt-out.svg +3 -0
- package/dist/collection/assets/revert-icon.svg +4 -0
- package/dist/collection/assets/reward-gift.svg +123 -0
- package/dist/collection/assets/slot.svg +59 -0
- package/dist/collection/assets/sport.svg +34 -0
- package/dist/collection/assets/swipe.svg +3 -0
- package/dist/collection/assets/target.svg +16 -0
- package/dist/collection/assets/term-and-condition.svg +3 -0
- package/dist/collection/collection-manifest.json +48 -0
- package/dist/collection/components/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.css +260 -0
- package/dist/collection/components/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.js +793 -0
- package/dist/collection/components/casino-challenges-overlay-drawer/index.js +1 -0
- package/dist/collection/components/components/casino-challenge-opt-out-modal/casino-challenge-opt-out-modal.css +141 -0
- package/dist/collection/components/components/casino-challenge-opt-out-modal/casino-challenge-opt-out-modal.js +124 -0
- package/dist/collection/components/components/casino-challenge-overlay-background/casino-challenge-overlay-background.css +89 -0
- package/dist/collection/components/components/casino-challenge-overlay-background/casino-challenge-overlay-background.js +44 -0
- package/dist/collection/components/components/casino-challenges-claim-code/casino-challenges-claim-code.css +143 -0
- package/dist/collection/components/components/casino-challenges-claim-code/casino-challenges-claim-code.js +260 -0
- package/dist/collection/components/components/casino-challenges-empty-state/casino-challenges-empty-state.css +35 -0
- package/dist/collection/components/components/casino-challenges-empty-state/casino-challenges-empty-state.js +80 -0
- package/dist/collection/components/components/casino-challenges-overlay-drawer-history/casino-challenges-overlay-drawer-history.css +37 -0
- package/dist/collection/components/components/casino-challenges-overlay-drawer-history/casino-challenges-overlay-drawer-history.js +335 -0
- package/dist/collection/components/components/casino-challenges-overlay-drawer-history/components/casino-challenge-drawer-history-item/casino-challenge-drawer-history-item.css +170 -0
- package/dist/collection/components/components/casino-challenges-overlay-drawer-history/components/casino-challenge-drawer-history-item/casino-challenge-drawer-history-item.js +173 -0
- package/dist/collection/components/components/casino-challenges-overlay-loader/casino-challenges-overlay-loader.css +83 -0
- package/dist/collection/components/components/casino-challenges-overlay-loader/casino-challenges-overlay-loader.js +63 -0
- package/dist/collection/components/components/casino-challenges-overlay-tabs/casino-challenges-overlay-tabs.css +116 -0
- package/dist/collection/components/components/casino-challenges-overlay-tabs/casino-challenges-overlay-tabs.js +171 -0
- package/dist/collection/components/components/swipe-up/swipe-up.css +61 -0
- package/dist/collection/components/components/swipe-up/swipe-up.js +155 -0
- package/dist/collection/consts.js +3829 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/general-info-utils.js +105 -0
- package/dist/collection/utils/levels-utils.js +55 -0
- package/dist/collection/utils/locale.utils.js +146 -0
- package/dist/collection/utils/types.js +160 -0
- package/dist/collection/utils/utils.js +54 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-challenge-details-events_21.entry.js +4436 -0
- package/dist/esm/casino-challenges-overlay-drawer-b6d3a238.js +994 -0
- package/dist/esm/casino-challenges-overlay-drawer.js +20 -0
- package/dist/esm/index-25fd45d2.js +1563 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/packages/stencil/casino-challenges-overlay-drawer/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/packages/stencil/casino-challenges-overlay-drawer/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/packages/stencil/casino-challenges-overlay-drawer/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/packages/stencil/casino-challenges-overlay-drawer/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-drawer/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.d.ts +77 -0
- package/dist/types/components/casino-challenges-overlay-drawer/index.d.ts +1 -0
- package/dist/types/components/components/casino-challenge-opt-out-modal/casino-challenge-opt-out-modal.d.ts +12 -0
- package/dist/types/components/components/casino-challenge-overlay-background/casino-challenge-overlay-background.d.ts +6 -0
- package/dist/types/components/components/casino-challenges-claim-code/casino-challenges-claim-code.d.ts +49 -0
- package/dist/types/components/components/casino-challenges-empty-state/casino-challenges-empty-state.d.ts +6 -0
- package/dist/types/components/components/casino-challenges-overlay-drawer-history/casino-challenges-overlay-drawer-history.d.ts +33 -0
- package/dist/types/components/components/casino-challenges-overlay-drawer-history/components/casino-challenge-drawer-history-item/casino-challenge-drawer-history-item.d.ts +12 -0
- package/dist/types/components/components/casino-challenges-overlay-loader/casino-challenges-overlay-loader.d.ts +5 -0
- package/dist/types/components/components/casino-challenges-overlay-tabs/casino-challenges-overlay-tabs.d.ts +16 -0
- package/dist/types/components/components/swipe-up/swipe-up.d.ts +20 -0
- package/dist/types/components.d.ts +362 -0
- package/dist/types/consts.d.ts +585 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/general-info-utils.d.ts +10 -0
- package/dist/types/utils/levels-utils.d.ts +5 -0
- package/dist/types/utils/locale.utils.d.ts +12 -0
- package/dist/types/utils/types.d.ts +327 -0
- package/dist/types/utils/utils.d.ts +7 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-25fd45d2.js';
|
|
2
|
+
export { s as setNonce } from './index-25fd45d2.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-events_21",[[1,"casino-challenges-overlay-drawer",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"handleClose":[16],"challenges":[16],"initialProgressId":[513,"initial-progress-id"],"activeChallenge":[32],"activeProgressId":[32],"activeTabIndex":[32],"error":[32],"hasError":[32],"swipped":[32],"detailsSubPageInfo":[32],"progress":[32],"loading":[32],"notification":[32],"optOutModaIsOpen":[32],"isOptedOut":[32],"prevUpdateEvent":[32],"challengeGames":[32],"activeChallenges":[32],"pendingChallenges":[32],"promoChallenges":[32],"playerHistory":[32],"hasMorePlayerHistory":[32],"emptyState":[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isOpen":["handleIsOpenChange"],"activeChallenge":["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[16],"language":[513],"isMobile":[516,"is-mobile"],"isUnique":[516,"is-unique"],"swipped":[516],"progress":[514],"activeChallengesTabIndex":[513,"active-challenges-tab-index"],"detailsSubPageInfo":[16],"isOptedOut":[516,"is-opted-out"],"challengeGames":[16],"swipping":[32],"actionLoading":[32],"error":[32],"isChallengePaused":[32],"timeLeft":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"progress":["onSwipeChange"],"challenge":["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[1,"casino-challenges-overlay-drawer-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"loading":[516],"hasMore":[516,"has-more"],"historyItems":[16],"openItems":[32],"pageSize":[32],"pageNumber":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"historyItems":["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"challenges":[16],"initialProgressId":[1,"initial-progress-id"],"activeTabIndex":[1,"active-tab-index"],"currentIndex":[32],"slideWidth":[32],"slideHeight":[32],"isOneSlide":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"currentIndex":["onCurrentIndexChange"],"challenges":["onChallengesChange"],"initialProgressId":["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{"empty":[4]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"isMobile":[516,"is-mobile"],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{"header":[1],"description":[1],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{"fullSize":[4,"full-size"],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{"language":[513],"isMobile":[516,"is-mobile"],"activeTabIndex":[514,"active-tab-index"],"activeTabHasNotification":[516,"active-tab-has-notification"],"pendingTabHasNotification":[516,"pending-tab-has-notification"]}],[4,"swipe-up",{"isMobile":[516,"is-mobile"],"isOneSlider":[516,"is-one-slider"],"progress":[32]},null,{"isOneSlider":["onIsOneSliderChange"],"progress":["onSwipeChange"]}],[0,"casino-challenge-details-levels",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isChallengePaused":[4,"is-challenge-paused"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-details-events",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[0,"casino-challenge-details-games",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"games":[16]}],[0,"casino-challenge-details-progress-bar",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-drawer-history-item",{"language":[513],"index":[514],"historyItem":[16],"itemRef":[16],"isOpen":[4,"is-open"],"isMobile":[4,"is-mobile"],"toggle":[16]}],[1,"casino-challenges-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[516,"is-open"],"showWinAnimation":[516,"show-win-animation"],"showBackdrop":[516,"show-backdrop"],"showCloseButton":[516,"show-close-button"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{"challenge":[16],"index":[2],"arrLength":[2,"arr-length"],"currentIndex":[2,"current-index"],"language":[1],"isOptedOut":[4,"is-opted-out"],"slideWidth":[2,"slide-width"],"slideHeight":[2,"slide-height"],"timeLeft":[32]}],[4,"casino-challenge-expandable-paragraph",{"maxHeight":[2,"max-height"],"active":[4],"expanded":[32],"needsTruncation":[32]}],[0,"casino-challenge-level-progress-bar",{"height":[1],"active":[4],"value":[2]}]]]], 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-challenges-overlay-drawer',
|
|
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-challenges-overlay-drawer',
|
|
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,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
|
+
};
|
package/dist/types/components/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { EChallengesTabs, IChallenge, IGameDetails, IHistoryItem, INotificationOptions, IUpdateChallengeProgressData } from '../../utils/types';
|
|
2
|
+
import "../../../../../../dist/packages/stencil/casino-challenges-overlay-slider/dist/types/index";
|
|
3
|
+
import "../../../../../../dist/packages/stencil/casino-challenges-overlay-drawer-details/dist/types/index";
|
|
4
|
+
import "../../../../../../dist/packages/stencil/casino-challenges-modal/dist/types/index";
|
|
5
|
+
export declare class CasinoChallengesOverlayDrawer {
|
|
6
|
+
mbSource?: string;
|
|
7
|
+
clientStyling?: string;
|
|
8
|
+
clientStylingUrl?: string;
|
|
9
|
+
translationUrl: string;
|
|
10
|
+
language: string;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
handleClose: () => void;
|
|
13
|
+
challenges: IChallenge[];
|
|
14
|
+
initialProgressId: string;
|
|
15
|
+
activeChallenge?: IChallenge | null;
|
|
16
|
+
activeProgressId: string;
|
|
17
|
+
activeTabIndex: EChallengesTabs;
|
|
18
|
+
error: string;
|
|
19
|
+
hasError: boolean;
|
|
20
|
+
swipped: boolean;
|
|
21
|
+
detailsSubPageInfo?: {
|
|
22
|
+
open: false;
|
|
23
|
+
tab: null;
|
|
24
|
+
};
|
|
25
|
+
progress: number;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
notification: INotificationOptions | null;
|
|
28
|
+
optOutModaIsOpen: boolean;
|
|
29
|
+
isOptedOut: boolean;
|
|
30
|
+
prevUpdateEvent: IUpdateChallengeProgressData;
|
|
31
|
+
challengeGames: IGameDetails[];
|
|
32
|
+
activeChallenges: IChallenge[];
|
|
33
|
+
pendingChallenges: IChallenge[];
|
|
34
|
+
promoChallenges: IChallenge[];
|
|
35
|
+
playerHistory: IHistoryItem[];
|
|
36
|
+
hasMorePlayerHistory: boolean;
|
|
37
|
+
emptyState: Record<string, string>;
|
|
38
|
+
private EMPTY_STATE_PAGE_DESCRIPTION_MAP;
|
|
39
|
+
private stylingContainer?;
|
|
40
|
+
private stylingSubscription;
|
|
41
|
+
handleClientStylingChange(newValue: string, oldValue: string): void;
|
|
42
|
+
handleClientStylingUrlChange(newValue: string, oldValue: string): void;
|
|
43
|
+
handleMbSourceChange(newValue: string, oldValue: string): void;
|
|
44
|
+
handleIsOpenChange(newValue: boolean): void;
|
|
45
|
+
onActiveChallengeChanged(): void;
|
|
46
|
+
onOpenOptOut(): void;
|
|
47
|
+
onCloseOptOut(): void;
|
|
48
|
+
onConfirmOptOut(): void;
|
|
49
|
+
onChallengeExpired(event: CustomEvent<string>): void;
|
|
50
|
+
handleEvent(e: any): void;
|
|
51
|
+
componentWillLoad(): void;
|
|
52
|
+
componentDidLoad(): void;
|
|
53
|
+
disconnectedCallback(): void;
|
|
54
|
+
onActiveChallengeChange: (e: CustomEvent) => void;
|
|
55
|
+
onSeeMoreClick: (e: CustomEvent) => void;
|
|
56
|
+
onLoadMorePlayerHistory: (e: CustomEvent) => void;
|
|
57
|
+
private isInactiveChallenge;
|
|
58
|
+
private updateActiveChallenge;
|
|
59
|
+
private updateChallenge;
|
|
60
|
+
private updateChallengeList;
|
|
61
|
+
private updateChallengeById;
|
|
62
|
+
private updateChallengeByProgressId;
|
|
63
|
+
removeOptedOutChallenge: () => void;
|
|
64
|
+
private handleTabClick;
|
|
65
|
+
private openNotification;
|
|
66
|
+
private renderNotification;
|
|
67
|
+
private renderHeader;
|
|
68
|
+
private isEmptyState;
|
|
69
|
+
private renderEmptyState;
|
|
70
|
+
private renderFinishedTab;
|
|
71
|
+
private renderCodeTab;
|
|
72
|
+
private renderChallengeDetails;
|
|
73
|
+
private renderChallengesTabs;
|
|
74
|
+
private renderContent;
|
|
75
|
+
private onCloseClick;
|
|
76
|
+
render(): any;
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoChallengesOverlayDrawer } from './casino-challenges-overlay-drawer';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import "../../../../../../../dist/packages/stencil/casino-challenges-modal/dist/types/index";
|
|
3
|
+
export declare class CasinoChallengeDetailsOptOut {
|
|
4
|
+
language: string;
|
|
5
|
+
isMobile: boolean;
|
|
6
|
+
open: boolean;
|
|
7
|
+
closeOptOutModal?: EventEmitter;
|
|
8
|
+
confirmOptOut?: EventEmitter;
|
|
9
|
+
handleCloseOptOut: () => void;
|
|
10
|
+
handleConfirmOptOut: () => void;
|
|
11
|
+
render(): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare class CasinoChallengesClaimCode {
|
|
2
|
+
/**
|
|
3
|
+
* Client custom styling via message bus
|
|
4
|
+
*/
|
|
5
|
+
mbSource: string;
|
|
6
|
+
/**
|
|
7
|
+
* Client custom styling via string
|
|
8
|
+
*/
|
|
9
|
+
clientStyling: string;
|
|
10
|
+
/**
|
|
11
|
+
* Client custom styling via css file url
|
|
12
|
+
*/
|
|
13
|
+
clientStylingUrl: string;
|
|
14
|
+
/**
|
|
15
|
+
* Client custom translation via json file url
|
|
16
|
+
*/
|
|
17
|
+
translationUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* Client custom language for translation
|
|
20
|
+
*/
|
|
21
|
+
language: string;
|
|
22
|
+
/**
|
|
23
|
+
* Client endpoint to fetch data
|
|
24
|
+
*/
|
|
25
|
+
endpoint: string;
|
|
26
|
+
/**
|
|
27
|
+
* Domain Id
|
|
28
|
+
*/
|
|
29
|
+
domain: string;
|
|
30
|
+
isMobile: boolean;
|
|
31
|
+
loading: boolean;
|
|
32
|
+
hasError: boolean;
|
|
33
|
+
code: string;
|
|
34
|
+
notificationMessage: string;
|
|
35
|
+
private stylingContainer;
|
|
36
|
+
private stylingSubscription;
|
|
37
|
+
private debounceTime;
|
|
38
|
+
private asciiPrintableRegex;
|
|
39
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
40
|
+
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
41
|
+
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
42
|
+
componentWillLoad(): void;
|
|
43
|
+
componentDidLoad(): void;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
private handleSubmit;
|
|
46
|
+
private validate;
|
|
47
|
+
private handleInput;
|
|
48
|
+
render(): any;
|
|
49
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { IHistoryItem, IPaginationOptions } from '../../../utils/types';
|
|
3
|
+
export declare class CasinoChallengesOverlayDrawerHistory {
|
|
4
|
+
mbSource: string;
|
|
5
|
+
clientStyling: string;
|
|
6
|
+
clientStylingUrl: string;
|
|
7
|
+
translationUrl: string;
|
|
8
|
+
language: string;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
hasMore: boolean;
|
|
12
|
+
historyItems: IHistoryItem[];
|
|
13
|
+
loadMore: EventEmitter<IPaginationOptions>;
|
|
14
|
+
openItems: boolean[];
|
|
15
|
+
pageSize: number;
|
|
16
|
+
pageNumber: number;
|
|
17
|
+
private observer;
|
|
18
|
+
private lastItemRef;
|
|
19
|
+
private stylingContainer;
|
|
20
|
+
private stylingSubscription;
|
|
21
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
22
|
+
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
23
|
+
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
24
|
+
handlePlayerHistoryChange(): void;
|
|
25
|
+
componentWillLoad(): void;
|
|
26
|
+
componentDidLoad(): void;
|
|
27
|
+
private setupObserver;
|
|
28
|
+
private setLastItemRef;
|
|
29
|
+
componentDidRender(): void;
|
|
30
|
+
disconnectedCallback(): void;
|
|
31
|
+
private toggle;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IHistoryItem } from '../../../../../utils/types';
|
|
2
|
+
export declare class CasinoChallengeDrawerHistoryItem {
|
|
3
|
+
language: string;
|
|
4
|
+
index: number;
|
|
5
|
+
historyItem: IHistoryItem;
|
|
6
|
+
itemRef: (el: HTMLDivElement) => void;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
isMobile: boolean;
|
|
9
|
+
toggle: (index: number) => void;
|
|
10
|
+
private renderLevel;
|
|
11
|
+
render(): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { EChallengesTabs } from '../../../utils/types';
|
|
3
|
+
export declare class CasinoChallengeOverlayTabs {
|
|
4
|
+
language: string;
|
|
5
|
+
isMobile: boolean;
|
|
6
|
+
activeTabIndex: EChallengesTabs;
|
|
7
|
+
activeTabHasNotification: boolean;
|
|
8
|
+
pendingTabHasNotification: boolean;
|
|
9
|
+
tabClick: EventEmitter;
|
|
10
|
+
get tabs(): {
|
|
11
|
+
label: string;
|
|
12
|
+
showNotification?: boolean;
|
|
13
|
+
}[];
|
|
14
|
+
private handleTabClick;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export declare class SwipeUp {
|
|
3
|
+
progress: number;
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
isOneSlider: boolean;
|
|
6
|
+
private startY;
|
|
7
|
+
private startProgress;
|
|
8
|
+
private dragging;
|
|
9
|
+
private isOpened;
|
|
10
|
+
private maxSwipe;
|
|
11
|
+
swippedUp: EventEmitter | undefined;
|
|
12
|
+
onIsOneSliderChange(newValue: boolean): void;
|
|
13
|
+
onSwipeChange(newValue: number): void;
|
|
14
|
+
private clamp;
|
|
15
|
+
private onPointerDown;
|
|
16
|
+
private onPointerMove;
|
|
17
|
+
private snap;
|
|
18
|
+
private onPointerUp;
|
|
19
|
+
render(): any;
|
|
20
|
+
}
|