@everymatrix/casino-engagement-suite-luckywheel 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 (59) hide show
  1. package/dist/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.esm.js +1 -0
  2. package/dist/casino-engagement-suite-luckywheel/index.esm.js +1 -0
  3. package/dist/casino-engagement-suite-luckywheel/p-31e6965f.js +1 -0
  4. package/dist/casino-engagement-suite-luckywheel/p-c99c6eaf.entry.js +1 -0
  5. package/dist/casino-engagement-suite-luckywheel/p-e1255160.js +1 -0
  6. package/dist/casino-engagement-suite-luckywheel/p-f5a837f6.js +2 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/casino-engagement-suite-luckywheel-d1e393bd.js +739 -0
  9. package/dist/cjs/casino-engagement-suite-luckywheel.cjs.entry.js +10 -0
  10. package/dist/cjs/casino-engagement-suite-luckywheel.cjs.js +25 -0
  11. package/dist/cjs/index-b3b5597c.js +1428 -0
  12. package/dist/cjs/index.cjs.js +10 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/collection-manifest.json +12 -0
  15. package/dist/collection/components/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.css +213 -0
  16. package/dist/collection/components/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.js +367 -0
  17. package/dist/collection/components/casino-engagement-suite-luckywheel/index.js +1 -0
  18. package/dist/collection/index.js +1 -0
  19. package/dist/collection/models/luckywheel.js +12 -0
  20. package/dist/collection/utils/class.spinable.js +38 -0
  21. package/dist/collection/utils/class.spinner.js +120 -0
  22. package/dist/collection/utils/class.svgcalc.js +175 -0
  23. package/dist/collection/utils/types.js +42 -0
  24. package/dist/collection/utils/utils.js +204 -0
  25. package/dist/esm/app-globals-0f993ce5.js +3 -0
  26. package/dist/esm/casino-engagement-suite-luckywheel-0aad8871.js +737 -0
  27. package/dist/esm/casino-engagement-suite-luckywheel.entry.js +2 -0
  28. package/dist/esm/casino-engagement-suite-luckywheel.js +20 -0
  29. package/dist/esm/index-27ac0c91.js +1401 -0
  30. package/dist/esm/index.js +2 -0
  31. package/dist/esm/loader.js +11 -0
  32. package/dist/index.cjs.js +1 -0
  33. package/dist/index.js +1 -0
  34. package/dist/stencil.config.dev.js +16 -0
  35. package/dist/stencil.config.js +17 -0
  36. package/dist/storybook/main.js +21 -0
  37. package/dist/storybook/preview.js +9 -0
  38. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.d.ts +2 -0
  39. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.dev.d.ts +2 -0
  40. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/main.d.ts +3 -0
  41. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/preview.d.ts +70 -0
  42. package/dist/types/components/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.d.ts +59 -0
  43. package/dist/types/components/casino-engagement-suite-luckywheel/index.d.ts +1 -0
  44. package/dist/types/components.d.ts +95 -0
  45. package/dist/types/index.d.ts +1 -0
  46. package/dist/types/models/luckywheel.d.ts +57 -0
  47. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  48. package/dist/types/utils/class.spinable.d.ts +14 -0
  49. package/dist/types/utils/class.spinner.d.ts +26 -0
  50. package/dist/types/utils/class.svgcalc.d.ts +109 -0
  51. package/dist/types/utils/types.d.ts +55 -0
  52. package/dist/types/utils/utils.d.ts +78 -0
  53. package/loader/cdn.js +1 -0
  54. package/loader/index.cjs.js +1 -0
  55. package/loader/index.d.ts +24 -0
  56. package/loader/index.es2017.js +1 -0
  57. package/loader/index.js +2 -0
  58. package/loader/package.json +11 -0
  59. package/package.json +26 -0
@@ -0,0 +1,2 @@
1
+ export { C as CasinoEngagementSuiteLuckywheel } from './casino-engagement-suite-luckywheel-0aad8871.js';
2
+ import './index-27ac0c91.js';
@@ -0,0 +1,11 @@
1
+ import { b as bootstrapLazy } from './index-27ac0c91.js';
2
+ export { s as setNonce } from './index-27ac0c91.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-engagement-suite-luckywheel",[[1,"casino-engagement-suite-luckywheel",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"luckywheel":[16],"size":[1],"contentdirection":[1],"limitStylingAppends":[32],"isPartitionsCustomableReady":[32],"isSpinning":[32],"options":[32],"radius":[32],"speed":[32],"settings":[32],"svg":[32],"spinContainer":[32],"spinable":[32],"spinner":[32]},[[8,"message","handleEvent"]]]]]], 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,16 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'casino-engagement-suite-luckywheel',
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
+ };
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'casino-engagement-suite-luckywheel',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,21 @@
1
+ import * as path from "path";
2
+ const config = {
3
+ stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
4
+ addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
5
+ docs: {
6
+ defaultName: 'Documentation',
7
+ autodocs: 'tag'
8
+ },
9
+ framework: {
10
+ name: '@storybook/web-components-vite',
11
+ options: {}
12
+ },
13
+ viteFinal: async (config) => {
14
+ return Object.assign(Object.assign({}, config), { resolve: {
15
+ alias: {
16
+ 'casino-engagement-suite-luckywheel': path.resolve(__dirname, '../../../../dist/packages/stencil/casino-engagement-suite-luckywheel')
17
+ }
18
+ } });
19
+ }
20
+ };
21
+ 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,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,59 @@
1
+ import { ContentDirection, LuckyWheel } from '../../models/luckywheel';
2
+ export declare class CasinoEngagementSuiteLuckywheel {
3
+ /**
4
+ * Client custom styling via string
5
+ */
6
+ clientStyling: string;
7
+ /**
8
+ * Client custom styling via url
9
+ */
10
+ clientStylingUrl: string;
11
+ /**
12
+ * Language of the widget
13
+ */
14
+ language: string;
15
+ /**
16
+ * User's device type
17
+ */
18
+ device: "Mobile" | "Tablet" | "Desktop";
19
+ /**
20
+ * Active Luckywheel
21
+ */
22
+ luckywheel: LuckyWheel;
23
+ /**
24
+ * Wheel size
25
+ */
26
+ size: string;
27
+ /**
28
+ * Content Direction
29
+ */
30
+ contentdirection: keyof typeof ContentDirection;
31
+ host: HTMLElement;
32
+ private limitStylingAppends;
33
+ private isPartitionsCustomableReady;
34
+ private isSpinning;
35
+ private options;
36
+ private radius;
37
+ private speed;
38
+ private settings;
39
+ svg: SVGElement;
40
+ spinContainer: any;
41
+ spinable: boolean;
42
+ private spinner;
43
+ handleEvent(e: any): void;
44
+ componentDidRender(): void;
45
+ componentWillLoad(): Promise<void>;
46
+ setClientStyling: () => void;
47
+ setClientStylingURL: () => void;
48
+ defineGeneralVariables(): {
49
+ '--length': string;
50
+ '--radius': string;
51
+ '--ratio': string;
52
+ '--size': string;
53
+ };
54
+ renderImage: (node: SVGElement, index: any) => void;
55
+ updateSpinable: () => void;
56
+ eventSpin: () => void;
57
+ handleSpinClick: () => void;
58
+ render(): any;
59
+ }
@@ -0,0 +1 @@
1
+ export { CasinoEngagementSuiteLuckywheel } from './casino-engagement-suite-luckywheel';
@@ -0,0 +1,95 @@
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 { LuckyWheel } from "./models/luckywheel";
9
+ export { LuckyWheel } from "./models/luckywheel";
10
+ export namespace Components {
11
+ interface CasinoEngagementSuiteLuckywheel {
12
+ /**
13
+ * Client custom styling via string
14
+ */
15
+ "clientStyling": string;
16
+ /**
17
+ * Client custom styling via url
18
+ */
19
+ "clientStylingUrl": string;
20
+ /**
21
+ * Content Direction
22
+ */
23
+ "contentdirection": keyof typeof ContentDirection;
24
+ /**
25
+ * User's device type
26
+ */
27
+ "device": "Mobile" | "Tablet" | "Desktop";
28
+ /**
29
+ * Language of the widget
30
+ */
31
+ "language": string;
32
+ /**
33
+ * Active Luckywheel
34
+ */
35
+ "luckywheel": LuckyWheel;
36
+ /**
37
+ * Wheel size
38
+ */
39
+ "size": string;
40
+ }
41
+ }
42
+ declare global {
43
+ interface HTMLCasinoEngagementSuiteLuckywheelElement extends Components.CasinoEngagementSuiteLuckywheel, HTMLStencilElement {
44
+ }
45
+ var HTMLCasinoEngagementSuiteLuckywheelElement: {
46
+ prototype: HTMLCasinoEngagementSuiteLuckywheelElement;
47
+ new (): HTMLCasinoEngagementSuiteLuckywheelElement;
48
+ };
49
+ interface HTMLElementTagNameMap {
50
+ "casino-engagement-suite-luckywheel": HTMLCasinoEngagementSuiteLuckywheelElement;
51
+ }
52
+ }
53
+ declare namespace LocalJSX {
54
+ interface CasinoEngagementSuiteLuckywheel {
55
+ /**
56
+ * Client custom styling via string
57
+ */
58
+ "clientStyling"?: string;
59
+ /**
60
+ * Client custom styling via url
61
+ */
62
+ "clientStylingUrl"?: string;
63
+ /**
64
+ * Content Direction
65
+ */
66
+ "contentdirection"?: keyof typeof ContentDirection;
67
+ /**
68
+ * User's device type
69
+ */
70
+ "device"?: "Mobile" | "Tablet" | "Desktop";
71
+ /**
72
+ * Language of the widget
73
+ */
74
+ "language"?: string;
75
+ /**
76
+ * Active Luckywheel
77
+ */
78
+ "luckywheel"?: LuckyWheel;
79
+ /**
80
+ * Wheel size
81
+ */
82
+ "size"?: string;
83
+ }
84
+ interface IntrinsicElements {
85
+ "casino-engagement-suite-luckywheel": CasinoEngagementSuiteLuckywheel;
86
+ }
87
+ }
88
+ export { LocalJSX as JSX };
89
+ declare module "@stencil/core" {
90
+ export namespace JSX {
91
+ interface IntrinsicElements {
92
+ "casino-engagement-suite-luckywheel": LocalJSX.CasinoEngagementSuiteLuckywheel & JSXBase.HTMLAttributes<HTMLCasinoEngagementSuiteLuckywheelElement>;
93
+ }
94
+ }
95
+ }
@@ -0,0 +1 @@
1
+ export * from './components/casino-engagement-suite-luckywheel';
@@ -0,0 +1,57 @@
1
+ export interface LuckyWheel {
2
+ program: LuckyWheelProgram;
3
+ current?: Record<string, string | number>;
4
+ next?: Record<string, string | number>;
5
+ }
6
+ export interface LuckyWheelProgram {
7
+ baseCurrency: string;
8
+ editor: string;
9
+ id: string;
10
+ metadata: Record<string, string>;
11
+ name: Record<string, string>;
12
+ status: string;
13
+ time: string;
14
+ type: string;
15
+ version: string;
16
+ [key: string]: any;
17
+ }
18
+ export interface WheelOfFortune {
19
+ partitions?: Array<WheelOfFortunePartition>;
20
+ }
21
+ export interface WheelOfFortunePartition {
22
+ name?: {
23
+ [key: string]: string;
24
+ };
25
+ image1?: {
26
+ [key: string]: string;
27
+ };
28
+ image2?: {
29
+ [key: string]: string;
30
+ };
31
+ image3?: {
32
+ [key: string]: string;
33
+ };
34
+ probability?: number;
35
+ rules?: Array<WheelOfFortunePartitionRule>;
36
+ }
37
+ export interface WheelOfFortunePartitionRule {
38
+ when?: WhenConditionBase;
39
+ then?: ActionBase;
40
+ andThen?: ActionBase;
41
+ }
42
+ export interface WhenConditionBase {
43
+ evaluator?: string;
44
+ }
45
+ export interface ActionBase {
46
+ type?: string;
47
+ }
48
+ export declare enum CurrentInfo {
49
+ ActiveTickets = "ActiveTickets",
50
+ ImplicitTickets = "ImplicitTickets",
51
+ RemainingTimes = "RemainingTimes"
52
+ }
53
+ export declare enum ContentDirection {
54
+ clockwise = 1,
55
+ anticlockwise = -1,
56
+ outward = 0
57
+ }