@betorigami/games 0.7.4 → 0.7.6

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 (123) hide show
  1. package/dist/index.d.ts +740 -6
  2. package/dist/index.mjs +3579 -6434
  3. package/package.json +11 -7
  4. package/dist/components/dice/DiceContent/DiceContent.d.ts +0 -14
  5. package/dist/components/dice/DiceContent/DiceContent.styles.d.ts +0 -1
  6. package/dist/components/dice/DiceContentBottom/DiceContentBottom.d.ts +0 -15
  7. package/dist/components/dice/DiceContentBottom/DiceContentBottom.styles.d.ts +0 -1
  8. package/dist/components/dice/DiceControls/DiceAuto.d.ts +0 -9
  9. package/dist/components/dice/DiceControls/DiceControls.styles.d.ts +0 -1
  10. package/dist/components/dice/DiceControls/DiceManual.d.ts +0 -10
  11. package/dist/components/dice/DiceGame.d.ts +0 -45
  12. package/dist/components/dice/DiceSlider/DiceSlider.d.ts +0 -16
  13. package/dist/components/dice/DiceSlider/DiceSlider.styles.d.ts +0 -1
  14. package/dist/components/dice/dice.api.d.ts +0 -71
  15. package/dist/components/dice/dice.mock.api.d.ts +0 -13
  16. package/dist/components/keno/KenoContent/KenoContent.d.ts +0 -17
  17. package/dist/components/keno/KenoContent/KenoContent.styles.d.ts +0 -1
  18. package/dist/components/keno/KenoContent/KenoContentBottom.d.ts +0 -15
  19. package/dist/components/keno/KenoContent/KenoContentBottom.styles.d.ts +0 -1
  20. package/dist/components/keno/KenoControls/KenoAuto.d.ts +0 -11
  21. package/dist/components/keno/KenoControls/KenoControls.styles.d.ts +0 -1
  22. package/dist/components/keno/KenoControls/KenoManual.d.ts +0 -11
  23. package/dist/components/keno/KenoGame.d.ts +0 -31
  24. package/dist/components/keno/KenoGrid/KenoGrid.d.ts +0 -15
  25. package/dist/components/keno/KenoGrid/KenoGrid.styles.d.ts +0 -1
  26. package/dist/components/keno/KenoTile/KenoTile.d.ts +0 -16
  27. package/dist/components/keno/KenoTile/KenoTile.styles.d.ts +0 -1
  28. package/dist/components/keno/keno.api.d.ts +0 -67
  29. package/dist/components/keno/keno.mock.api.d.ts +0 -15
  30. package/dist/components/limbo/LimboContent/LimboContent.d.ts +0 -13
  31. package/dist/components/limbo/LimboContent/LimboContent.styles.d.ts +0 -1
  32. package/dist/components/limbo/LimboContentBottom/LimboContentBottom.d.ts +0 -14
  33. package/dist/components/limbo/LimboContentBottom/LimboContentBottom.styles.d.ts +0 -1
  34. package/dist/components/limbo/LimboControls/LimboAuto.d.ts +0 -9
  35. package/dist/components/limbo/LimboControls/LimboControls.styles.d.ts +0 -1
  36. package/dist/components/limbo/LimboControls/LimboManual.d.ts +0 -11
  37. package/dist/components/limbo/LimboGame.d.ts +0 -27
  38. package/dist/components/limbo/Multiplier/LimboMultiplier.d.ts +0 -17
  39. package/dist/components/limbo/Multiplier/LimboMultiplier.styles.d.ts +0 -1
  40. package/dist/components/limbo/limbo.api.d.ts +0 -62
  41. package/dist/components/limbo/limbo.mock.api.d.ts +0 -13
  42. package/dist/components/mines/Controls/MinesAuto.d.ts +0 -14
  43. package/dist/components/mines/Controls/MinesControls.styles.d.ts +0 -1
  44. package/dist/components/mines/Controls/MinesManual.d.ts +0 -10
  45. package/dist/components/mines/MinesContent/MinesContent.d.ts +0 -16
  46. package/dist/components/mines/MinesContent/MinesContent.styles.d.ts +0 -1
  47. package/dist/components/mines/MinesGame.d.ts +0 -36
  48. package/dist/components/mines/MinesGrid/MinesGrid.d.ts +0 -31
  49. package/dist/components/mines/MinesGrid/MinesGrid.styles.d.ts +0 -1
  50. package/dist/components/mines/MinesTile/MinesTile.d.ts +0 -23
  51. package/dist/components/mines/MinesTile/MinesTile.styles.d.ts +0 -1
  52. package/dist/components/mines/mines.api.d.ts +0 -122
  53. package/dist/components/mines/mines.constants.d.ts +0 -23
  54. package/dist/components/mines/mines.mock.api.d.ts +0 -50
  55. package/dist/components/shared/BetResultModal/BetResultModal.d.ts +0 -48
  56. package/dist/components/shared/BetResultModal/BetResultModal.styles.d.ts +0 -1
  57. package/dist/components/shared/Button/Button.d.ts +0 -25
  58. package/dist/components/shared/Button/Button.styles.d.ts +0 -1
  59. package/dist/components/shared/Button/ButtonGroup.d.ts +0 -6
  60. package/dist/components/shared/Button/ButtonGroup.styles.d.ts +0 -1
  61. package/dist/components/shared/Drawer/Drawer.d.ts +0 -122
  62. package/dist/components/shared/Drawer/Drawer.styles.d.ts +0 -2
  63. package/dist/components/shared/FairnessDetails/FairnessDetails.d.ts +0 -24
  64. package/dist/components/shared/FairnessDetails/FairnessDetails.styles.d.ts +0 -1
  65. package/dist/components/shared/Footer/Footer.d.ts +0 -48
  66. package/dist/components/shared/Footer/Footer.styles.d.ts +0 -1
  67. package/dist/components/shared/GameComponent.d.ts +0 -35
  68. package/dist/components/shared/GameLayout/GameLayout.d.ts +0 -36
  69. package/dist/components/shared/GameLayout/GameLayout.styles.d.ts +0 -1
  70. package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.d.ts +0 -39
  71. package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.styles.d.ts +0 -1
  72. package/dist/components/shared/GameProviderWrapper.d.ts +0 -26
  73. package/dist/components/shared/GameSidebar/GameSidebar.d.ts +0 -14
  74. package/dist/components/shared/GameSidebar/GameSidebar.styles.d.ts +0 -1
  75. package/dist/components/shared/GameWinPopup/GameWinPopup.d.ts +0 -14
  76. package/dist/components/shared/GameWinPopup/GameWinPopup.styles.d.ts +0 -1
  77. package/dist/components/shared/GenericAutobet/BetCountInput.d.ts +0 -11
  78. package/dist/components/shared/GenericAutobet/GenericAutobet.d.ts +0 -41
  79. package/dist/components/shared/GenericAutobet/GenericAutobet.styles.d.ts +0 -1
  80. package/dist/components/shared/GenericAutobet/context/autobet.context.d.ts +0 -11
  81. package/dist/components/shared/HistoryPills/HistoryPills.d.ts +0 -20
  82. package/dist/components/shared/HistoryPills/HistoryPills.styles.d.ts +0 -1
  83. package/dist/components/shared/Inputs/BetAmountInput/BetAmountInput.d.ts +0 -20
  84. package/dist/components/shared/Inputs/CurrencyInput/RawCurrencyInput.d.ts +0 -46
  85. package/dist/components/shared/Inputs/Input/Input.d.ts +0 -73
  86. package/dist/components/shared/Inputs/Input/Input.styles.d.ts +0 -1
  87. package/dist/components/shared/LottieIcon/LottieIcon.d.ts +0 -22
  88. package/dist/components/shared/Modal/Modal.d.ts +0 -91
  89. package/dist/components/shared/Modal/Modal.styles.d.ts +0 -2
  90. package/dist/components/shared/Modal/Portal.d.ts +0 -13
  91. package/dist/components/shared/Select/Select.d.ts +0 -48
  92. package/dist/components/shared/Select/Select.styles.d.ts +0 -1
  93. package/dist/components/shared/Statistics/Statistics.d.ts +0 -43
  94. package/dist/components/shared/Statistics/Statistics.styles.d.ts +0 -1
  95. package/dist/components/shared/Toggle/Toggle.d.ts +0 -13
  96. package/dist/components/shared/Toggle/Toggle.styles.d.ts +0 -1
  97. package/dist/components/shared/Tooltip/Tooltip.d.ts +0 -55
  98. package/dist/components/shared/Tooltip/Tooltip.styles.d.ts +0 -1
  99. package/dist/components/shared/context/game.context.d.ts +0 -19
  100. package/dist/lottie-CF6R56sF.js +0 -5443
  101. package/dist/shared/component.styles.d.ts +0 -2
  102. package/dist/shared/constants.d.ts +0 -8
  103. package/dist/shared/event-map.d.ts +0 -132
  104. package/dist/shared/get-game-outcome.d.ts +0 -1
  105. package/dist/shared/icons/currencies/btcIcon.d.ts +0 -1
  106. package/dist/shared/icons/currencies/ethIcon.d.ts +0 -1
  107. package/dist/shared/icons/currencies/usdcIcon.d.ts +0 -1
  108. package/dist/shared/icons/diceCubeIcon.d.ts +0 -1
  109. package/dist/shared/icons/minesBombIcon.d.ts +0 -1
  110. package/dist/shared/icons/minesGemIcon.d.ts +0 -1
  111. package/dist/shared/origami-action.type.d.ts +0 -7
  112. package/dist/shared/origami-element.d.ts +0 -21
  113. package/dist/shared/sleep.d.ts +0 -1
  114. package/dist/shared/watch.d.ts +0 -26
  115. package/dist/utils/active-elements.d.ts +0 -15
  116. package/dist/utils/animate.d.ts +0 -22
  117. package/dist/utils/animation-registry.d.ts +0 -24
  118. package/dist/utils/blur-active-element.d.ts +0 -7
  119. package/dist/utils/event.d.ts +0 -2
  120. package/dist/utils/focus-trap.d.ts +0 -24
  121. package/dist/utils/scroll.d.ts +0 -22
  122. package/dist/utils/slot.controller.d.ts +0 -23
  123. package/dist/utils/tabbable.d.ts +0 -9
@@ -1,62 +0,0 @@
1
- import { Currency } from '../../shared/constants';
2
- import { OrigamiActionType } from '../../shared/origami-action.type';
3
- export interface LimboData {
4
- targetMultiplier: number;
5
- resultMultiplier: number;
6
- }
7
- interface Action {
8
- id: string;
9
- data: {
10
- limbo: LimboData;
11
- };
12
- type: OrigamiActionType;
13
- actionIndex: number;
14
- originalActionId: string | null;
15
- betAmount: string;
16
- payoutAmount: string;
17
- }
18
- export interface BetResult {
19
- id: string;
20
- tenantId: string;
21
- userId: string;
22
- usdRate: number;
23
- gameId: string;
24
- currency: Currency;
25
- edge: number;
26
- amount: string;
27
- payout: string;
28
- afterBalance: string;
29
- maxPayoutReached: boolean;
30
- multiplier: number;
31
- clientSeed: string;
32
- randomValue: string;
33
- proof: string | null;
34
- nonce: string | null;
35
- completedAt: string | null;
36
- actions: Action[];
37
- }
38
- export type LimboStartArgs = {
39
- currency: Currency;
40
- amount: string;
41
- windowId?: string;
42
- usdAmount?: number;
43
- targetMultiplier: number;
44
- };
45
- export declare class LimboApi {
46
- private authToken;
47
- private baseUrl;
48
- constructor(authToken: string, baseUrl: string);
49
- startBet: (data: LimboStartArgs) => Promise<{
50
- success: true;
51
- data: BetResult;
52
- error?: undefined;
53
- } | {
54
- success: false;
55
- error: string;
56
- data?: undefined;
57
- }>;
58
- static calculateMultiplier(winChance: number): string;
59
- static calculateWinChance(targetMultiplier: number): string;
60
- static calculateProfitOnWin(amount: string, targetMultiplier: number): string;
61
- }
62
- export {};
@@ -1,13 +0,0 @@
1
- import { BetResult, LimboApi, LimboStartArgs } from './limbo.api';
2
- export interface MockLimboSettings {
3
- shouldWin: boolean;
4
- resultMultiplier?: string;
5
- multiplier?: number;
6
- }
7
- export declare class MockLimboApi extends LimboApi {
8
- private static getRandomMultiplier;
9
- startBet: (data: LimboStartArgs) => Promise<{
10
- success: true;
11
- data: BetResult;
12
- }>;
13
- }
@@ -1,14 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- import { gameContextType } from '../../shared/context/game.context';
3
- export declare class MinesAuto extends OrigamiElement {
4
- inputsDisabled: boolean;
5
- autobetStopping: boolean;
6
- readonly autobetInProgress = false;
7
- profitOnWin: string;
8
- minesCount: number;
9
- disableBet: boolean;
10
- gameData?: gameContextType;
11
- static styles: import('lit').CSSResult[];
12
- private _handleMinesCountChange;
13
- render(): import('lit').TemplateResult<1>;
14
- }
@@ -1 +0,0 @@
1
- export declare const minesControlsStyles: import('lit').CSSResult;
@@ -1,10 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- import { MinesState } from '../mines.constants';
3
- export declare class MinesManual extends OrigamiElement {
4
- inputsDisabled: boolean;
5
- minesState: MinesState | null;
6
- isGameActive: boolean;
7
- isLoading: boolean;
8
- static styles: import('lit').CSSResult[];
9
- render(): import('lit').TemplateResult<1>;
10
- }
@@ -1,16 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- import { MinesFlowState } from '../mines.constants';
3
- export declare class MinesContent extends OrigamiElement {
4
- static styles: import('lit').CSSResult[];
5
- isAuto: boolean;
6
- autobetSelectedTiles: number[];
7
- autobetInProgress: boolean;
8
- minesState: {
9
- selectedTiles: number[];
10
- state: MinesFlowState;
11
- mineLocations: number[];
12
- } | null;
13
- showWinPopup: boolean;
14
- hitBomb: boolean;
15
- render(): import('lit').TemplateResult<1>;
16
- }
@@ -1 +0,0 @@
1
- export declare const minesContentStyles: import('lit').CSSResult;
@@ -1,36 +0,0 @@
1
- import { MinesApi } from './mines.api';
2
- import { MinesState } from './mines.constants';
3
- import { AutobetToggleEvent } from '../../shared/event-map';
4
- import { AutobetSettings, GameBetResult, GameComponent } from '../shared/GameComponent';
5
- import { MockMinesApi } from './mines.mock.api';
6
- export declare class MinesGame extends GameComponent {
7
- private minesCount;
8
- private autobetSelectedTiles;
9
- private minesData;
10
- private isLoading;
11
- private authTokenWatcher;
12
- get isGameActive(): boolean;
13
- get minesApi(): MinesApi | MockMinesApi;
14
- getMinesActiveBet(): Promise<void>;
15
- protected firstUpdated(): Promise<void>;
16
- protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
17
- get getMinesState(): MinesState | null;
18
- protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
19
- toggleAutobet(event: AutobetToggleEvent): Promise<void>;
20
- private minesClickHandler;
21
- minesManualStart(): Promise<void>;
22
- minesChooseRandomTile(): Promise<void>;
23
- minesNext(selectedTile: number): Promise<void>;
24
- minesCashout(): Promise<void>;
25
- onManualOrAutoChange(): void;
26
- onMinesCountChange(): void;
27
- render(): import('lit').TemplateResult<1>;
28
- }
29
- /**
30
- * Things to do
31
- * reset mines content between bets in autobet
32
- * scaling animation when the tiles disappear
33
- * animation for game win popup
34
- * scale icons for gems and bombs
35
- * autobet btn hover effect isn't aligned (need styles for active, hover states for each button)
36
- */
@@ -1,31 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- import { gameContextType } from '../../shared/context/game.context';
3
- import { MinesFlowState } from '../mines.constants';
4
- export interface Tile {
5
- id: number;
6
- isMine: boolean;
7
- isRevealed: boolean;
8
- wasAutoRevealed: boolean;
9
- }
10
- export declare class MinesGrid extends OrigamiElement {
11
- static styles: import('lit').CSSResult[];
12
- isAuto: boolean;
13
- autobetSelectedTiles: number[];
14
- autobetInProgress: boolean;
15
- minesState: {
16
- selectedTiles: number[];
17
- state: MinesFlowState;
18
- mineLocations: number[];
19
- } | null;
20
- hasWon: boolean;
21
- hitBomb: boolean;
22
- gameData?: gameContextType;
23
- get tiles(): {
24
- id: number;
25
- isMine: boolean;
26
- isRevealed: boolean;
27
- wasAutoRevealed: boolean | undefined;
28
- }[];
29
- private calculateTileState;
30
- render(): import('lit').TemplateResult<1>;
31
- }
@@ -1 +0,0 @@
1
- export declare const minesGridStyles: import('lit').CSSResult;
@@ -1,23 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- export declare enum MinesTileState {
3
- NORMAL = "NORMAL",
4
- AUTOBET_SELECTED = "AUTOBET_SELECTED",
5
- SELECTED_GEM = "SELECTED_GEM",
6
- UNSELECTED_GEM = "UNSELECTED_GEM",
7
- SELECTED_BOMB = "SELECTED_BOMB",
8
- UNSELECTED_BOMB = "UNSELECTED_BOMB",
9
- AUTOBET_SELECTED_GEM = "AUTOBET_SELECTED_GEM",
10
- AUTOBET_SELECTED_BOMB = "AUTOBET_SELECTED_BOMB"
11
- }
12
- export declare class MinesTile extends OrigamiElement {
13
- static styles: import('lit').CSSResult[];
14
- tileId: number;
15
- delayReveal: boolean;
16
- autobetInProgress: boolean;
17
- state: MinesTileState;
18
- ariaLabel: string;
19
- disabled: boolean;
20
- private _handleClick;
21
- private get _isDisabled();
22
- render(): import('lit').TemplateResult<1>;
23
- }
@@ -1 +0,0 @@
1
- export declare const minesTileStyles: import('lit').CSSResult;
@@ -1,122 +0,0 @@
1
- import { default as BigNumber } from 'bignumber.js';
2
- import { Currency } from '../../shared/constants';
3
- import { OrigamiActionType } from '../../shared/origami-action.type';
4
- import { MinesGameOutcome, MinesState } from './mines.constants';
5
- export interface MinesData {
6
- minesResult: number[];
7
- minesCount: number;
8
- winMultiplier: string;
9
- selected: number[];
10
- }
11
- export interface MinesAction {
12
- id: string;
13
- data: {
14
- mines: MinesData;
15
- };
16
- type: OrigamiActionType;
17
- actionIndex: number;
18
- originalActionId: string | null;
19
- betAmount: string;
20
- payoutAmount: string;
21
- }
22
- export interface BetResult {
23
- id: string;
24
- tenantId: string;
25
- userId: string;
26
- usdRate: number;
27
- gameId: string;
28
- currency: Currency;
29
- edge: number;
30
- amount: string;
31
- payout: string;
32
- afterBalance: string;
33
- maxPayoutReached: boolean;
34
- multiplier: number;
35
- clientSeed: string;
36
- randomValue: string;
37
- proof: string | null;
38
- nonce: string | null;
39
- completedAt: string | null;
40
- actions: MinesAction[];
41
- }
42
- export type MinesManualStartArgs = {
43
- currency: Currency;
44
- amount: string;
45
- windowId?: string;
46
- usdAmount?: number;
47
- minesCount: number;
48
- };
49
- export type MinesNextArgs = {
50
- betId: string;
51
- selected: number[];
52
- };
53
- export type MinesAutoArgs = {
54
- currency: Currency;
55
- amount: string;
56
- windowId?: string;
57
- usdAmount?: number;
58
- minesCount?: number;
59
- selected: number[];
60
- };
61
- export declare class MinesApi {
62
- private authToken;
63
- private baseUrl;
64
- constructor(authToken: string, baseUrl: string);
65
- static DEFAULT_MINES_QTY: number;
66
- static MINES_TILES_COUNT: number;
67
- startManualBet(data: MinesManualStartArgs): Promise<{
68
- success: true;
69
- data: BetResult;
70
- error?: undefined;
71
- } | {
72
- success: false;
73
- error: string;
74
- data?: undefined;
75
- }>;
76
- getActiveBet(): Promise<{
77
- success: false;
78
- error: string;
79
- data?: undefined;
80
- } | {
81
- success: true;
82
- data: BetResult;
83
- error?: undefined;
84
- }>;
85
- selectTile(minesNextArgs: MinesNextArgs): Promise<{
86
- success: true;
87
- data: BetResult;
88
- error?: undefined;
89
- } | {
90
- success: false;
91
- error: string;
92
- data?: undefined;
93
- }>;
94
- cashout(): Promise<{
95
- success: true;
96
- data: BetResult;
97
- error?: undefined;
98
- } | {
99
- success: false;
100
- error: string;
101
- data?: undefined;
102
- }>;
103
- autobetPlay(data: MinesAutoArgs): Promise<{
104
- success: true;
105
- data: BetResult;
106
- error?: undefined;
107
- } | {
108
- success: false;
109
- error: string;
110
- data?: undefined;
111
- }>;
112
- static deriveSelectedTiles: (actions?: Array<MinesAction> | null) => number[];
113
- static deriveMineLocations: (actions?: Array<MinesAction> | null) => number[];
114
- static getMinesBetInfo: (actions: MinesAction[]) => {
115
- selected: number[];
116
- mines: number[];
117
- };
118
- static deriveOutcome: (bet?: BetResult) => MinesGameOutcome | null;
119
- static deriveAutoOutcome: (bet?: BetResult | null) => MinesGameOutcome | null;
120
- static calculateMinesMultiplier: (gemsFound: number, mines: number) => BigNumber;
121
- static getState: (bet: BetResult) => MinesState;
122
- }
@@ -1,23 +0,0 @@
1
- import { default as BigNumber } from 'bignumber.js';
2
- import { Currency } from '../../shared/constants';
3
- export declare enum MinesGameOutcome {
4
- WIN = "WIN",
5
- LOSS = "LOSS"
6
- }
7
- export declare enum MinesFlowState {
8
- NO_GAME_ACTIVE = "NO_GAME_ACTIVE",
9
- GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
10
- VIEWING_RESULTS = "VIEWING_RESULTS"
11
- }
12
- export interface MinesState {
13
- currency?: Currency;
14
- selectedTiles: number[];
15
- mineLocations: number[];
16
- outcome: MinesGameOutcome | null;
17
- minesCount: number;
18
- numMinesRemaining: number;
19
- numGemsFound: number;
20
- numGemsRemaining: number;
21
- state: MinesFlowState;
22
- betAmount: BigNumber;
23
- }
@@ -1,50 +0,0 @@
1
- import { BetResult, MinesApi, MinesAutoArgs, MinesManualStartArgs, MinesNextArgs } from './mines.api';
2
- export interface MockMinesSettings {
3
- shouldWin: boolean;
4
- minePositions?: number[];
5
- }
6
- export declare class MockMinesApi extends MinesApi {
7
- private static mockSettings;
8
- private static activeBet;
9
- private static minePositions;
10
- static setMockSettings(settings: MockMinesSettings): void;
11
- private static getRandomValueInRange;
12
- private static generateMinePositions;
13
- private static addAction;
14
- private static updateBetResult;
15
- startManualBet(data: MinesManualStartArgs): Promise<{
16
- success: true;
17
- data: BetResult;
18
- }>;
19
- getActiveBet(): Promise<{
20
- success: false;
21
- error: string;
22
- data?: undefined;
23
- } | {
24
- success: true;
25
- data: BetResult;
26
- error?: undefined;
27
- }>;
28
- selectTile(data: MinesNextArgs): Promise<{
29
- success: false;
30
- error: string;
31
- data?: undefined;
32
- } | {
33
- success: true;
34
- data: BetResult;
35
- error?: undefined;
36
- }>;
37
- cashout(): Promise<{
38
- success: false;
39
- error: string;
40
- data?: undefined;
41
- } | {
42
- success: true;
43
- data: BetResult;
44
- error?: undefined;
45
- }>;
46
- autobetPlay(data: MinesAutoArgs): Promise<{
47
- success: true;
48
- data: BetResult;
49
- }>;
50
- }
@@ -1,48 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- import { DiceData } from '../../dice/dice.api';
3
- import { KenoData } from '../../keno/keno.api';
4
- import { LimboData } from '../../limbo/limbo.api';
5
- import { MinesData } from '../../mines/mines.api';
6
- export type GameType = 'mines' | 'dice' | 'keno' | 'limbo';
7
- export interface GameAction {
8
- id: string;
9
- data: {
10
- dice?: DiceData;
11
- mines?: MinesData;
12
- keno?: KenoData;
13
- limbo?: LimboData;
14
- };
15
- type: string;
16
- actionIndex: number;
17
- originalActionId: string | null;
18
- betAmount: string;
19
- payoutAmount: string;
20
- }
21
- export interface BetResult {
22
- id: string;
23
- amount: string;
24
- payout: string;
25
- multiplier: number;
26
- currency?: string;
27
- completedAt: string | null;
28
- actions: GameAction[];
29
- }
30
- export declare class BetResultModal extends OrigamiElement {
31
- static styles: import('lit').CSSResult[];
32
- gameType: GameType;
33
- betResult: BetResult | null;
34
- currencySymbol: string;
35
- visible: boolean;
36
- variant: string;
37
- private _getDummyBet;
38
- private _formatAmount;
39
- private _getDiceData;
40
- private _getMinesData;
41
- private _getKenoData;
42
- private _getLimboData;
43
- private _getMinesDisplayData;
44
- private _getLimboDisplayData;
45
- private _getDiceDisplayData;
46
- private _getKenoDisplayData;
47
- render(): import('lit').TemplateResult<1>;
48
- }
@@ -1 +0,0 @@
1
- export declare const betResultModalStyles: import('lit').CSSResult;
@@ -1,25 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost' | 'icon' | 'success';
3
- export declare class Button extends OrigamiElement {
4
- static styles: import('lit').CSSResult[];
5
- static shadowRootOptions: {
6
- delegatesFocus: boolean;
7
- mode: ShadowRootMode;
8
- serializable?: boolean;
9
- slotAssignment?: SlotAssignmentMode;
10
- };
11
- variant: ButtonVariant;
12
- disabled: boolean;
13
- ariaLabel: string | null;
14
- ariaDescribedby: string | null;
15
- type: string;
16
- isLoading: boolean;
17
- fullWidth: boolean;
18
- enableHaptics: boolean;
19
- /**
20
- * Trigger haptic feedback
21
- */
22
- private triggerHapticFeedback;
23
- private _handleClick;
24
- render(): import('lit').TemplateResult<1>;
25
- }
@@ -1 +0,0 @@
1
- export declare const buttonStyles: import('lit').CSSResult;
@@ -1,6 +0,0 @@
1
- import { default as OrigamiElement } from '../../../shared/origami-element';
2
- export declare class ButtonGroup extends OrigamiElement {
3
- static styles: import('lit').CSSResult[];
4
- position: 'left' | 'right';
5
- render(): import('lit').TemplateResult<1>;
6
- }
@@ -1 +0,0 @@
1
- export declare const buttonGroupStyles: import('lit').CSSResult;
@@ -1,122 +0,0 @@
1
- import { CSSResultGroup } from 'lit';
2
- import { default as ShoelaceElement } from '../../../shared/origami-element.js';
3
- import { default as FocusTrap } from '../../../utils/focus-trap.js';
4
- /**
5
- * @summary Drawers slide in from a container to expose additional options and information.
6
- * @documentation https://shoelace.style/components/drawer
7
- * @status stable
8
- * @since 2.0
9
- *
10
- * @dependency sl-icon-button
11
- *
12
- * @slot - The drawer's main content.
13
- * @slot label - The drawer's label. Alternatively, you can use the `label` attribute.
14
- * @slot header-actions - Optional actions to add to the header. Works best with `<sl-icon-button>`.
15
- * @slot footer - The drawer's footer, usually one or more buttons representing various options.
16
- *
17
- * @event sl-show - Emitted when the drawer opens.
18
- * @event sl-after-show - Emitted after the drawer opens and all animations are complete.
19
- * @event sl-hide - Emitted when the drawer closes.
20
- * @event sl-after-hide - Emitted after the drawer closes and all animations are complete.
21
- * @event sl-initial-focus - Emitted when the drawer opens and is ready to receive focus. Calling
22
- * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.
23
- * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} sl-request-close - Emitted when the user attempts to
24
- * close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling
25
- * `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in
26
- * destructive behavior such as data loss.
27
- *
28
- * @csspart base - The component's base wrapper.
29
- * @csspart overlay - The overlay that covers the screen behind the drawer.
30
- * @csspart panel - The drawer's panel (where the drawer and its content are rendered).
31
- * @csspart header - The drawer's header. This element wraps the title and header actions.
32
- * @csspart header-actions - Optional actions to add to the header. Works best with `<sl-icon-button>`.
33
- * @csspart title - The drawer's title.
34
- * @csspart close-button - The close button, an `<sl-icon-button>`.
35
- * @csspart close-button__base - The close button's exported `base` part.
36
- * @csspart body - The drawer's body.
37
- * @csspart footer - The drawer's footer.
38
- *
39
- * @cssproperty --size - The preferred size of the drawer. This will be applied to the drawer's width or height
40
- * depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens.
41
- * @cssproperty --header-spacing - The amount of padding to use for the header.
42
- * @cssproperty --body-spacing - The amount of padding to use for the body.
43
- * @cssproperty --footer-spacing - The amount of padding to use for the footer.
44
- *
45
- * @animation drawer.showTop - The animation to use when showing a drawer with `top` placement.
46
- * @animation drawer.showEnd - The animation to use when showing a drawer with `end` placement.
47
- * @animation drawer.showBottom - The animation to use when showing a drawer with `bottom` placement.
48
- * @animation drawer.showStart - The animation to use when showing a drawer with `start` placement.
49
- * @animation drawer.hideTop - The animation to use when hiding a drawer with `top` placement.
50
- * @animation drawer.hideEnd - The animation to use when hiding a drawer with `end` placement.
51
- * @animation drawer.hideBottom - The animation to use when hiding a drawer with `bottom` placement.
52
- * @animation drawer.hideStart - The animation to use when hiding a drawer with `start` placement.
53
- * @animation drawer.denyClose - The animation to use when a request to close the drawer is denied.
54
- * @animation drawer.overlay.show - The animation to use when showing the drawer's overlay.
55
- * @animation drawer.overlay.hide - The animation to use when hiding the drawer's overlay.
56
- *
57
- * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus
58
- * trapping and allow third-party modals spawned from an active Shoelace modal, call `modal.activateExternal()` when
59
- * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Shoelace's focus trapping.
60
- */
61
- export default class OrigamiDrawer extends ShoelaceElement {
62
- static styles: CSSResultGroup;
63
- private readonly hasSlotController;
64
- private originalTrigger;
65
- focusTrap: FocusTrap;
66
- private closeWatcher;
67
- private isDragging;
68
- private startY;
69
- private currentY;
70
- private isCustomClosing;
71
- private originalHeight;
72
- drawer: HTMLElement;
73
- panel: HTMLElement;
74
- overlay: HTMLElement;
75
- /**
76
- * Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can
77
- * use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.
78
- */
79
- open: boolean;
80
- /**
81
- * The drawer's label as displayed in the header. You should always include a relevant label even when using
82
- * `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
83
- */
84
- label: string;
85
- /** The direction from which the drawer will open. */
86
- placement: 'top' | 'end' | 'bottom' | 'start';
87
- /**
88
- * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of
89
- * its parent element, set this attribute and add `position: relative` to the parent.
90
- */
91
- contained: boolean;
92
- /**
93
- * Removes the header. This will also remove the default close button, so please ensure you provide an easy,
94
- * accessible way for users to dismiss the drawer.
95
- */
96
- noHeader: boolean;
97
- /**
98
- * Hides the close button in the header while keeping the header visible.
99
- */
100
- noCloseButton: boolean;
101
- firstUpdated(): void;
102
- disconnectedCallback(): void;
103
- private requestClose;
104
- private addOpenListeners;
105
- private removeOpenListeners;
106
- private handleDocumentKeyDown;
107
- private handleTouchStart;
108
- private handleTouchMove;
109
- private handleTouchEnd;
110
- private handleMouseDown;
111
- private handleMouseMove;
112
- private handleMouseUp;
113
- private closeFromCurrentPosition;
114
- private cleanupDragState;
115
- handleOpenChange(): Promise<void>;
116
- handleNoModalChange(): void;
117
- /** Shows the drawer. */
118
- show(): Promise<void>;
119
- /** Hides the drawer */
120
- hide(): Promise<void>;
121
- render(): import('lit').TemplateResult<1>;
122
- }
@@ -1,2 +0,0 @@
1
- declare const _default: import('lit').CSSResult;
2
- export default _default;
@@ -1,24 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class FairnessDetails extends LitElement {
3
- static styles: import('lit').CSSResult[];
4
- private _activeTab;
5
- private _publicKey;
6
- private _request;
7
- private _proof;
8
- private _randomness;
9
- private _clientSeed;
10
- verifiedStatus: 'missing' | 'verified' | 'unverified' | 'viewing-outcome';
11
- gameType: 'limbo' | 'mines' | 'dice' | 'keno';
12
- private _historyData;
13
- private _showAllHistory;
14
- private _handleToggleChange;
15
- private _handleGenerateClientSeed;
16
- private _handleShowMore;
17
- private _getMinesDisplayData;
18
- private _getLimboDisplayData;
19
- private _getDiceDisplayData;
20
- private _getKenoDisplayData;
21
- private _renderStatusButton;
22
- private _renderInputs;
23
- render(): import('lit').TemplateResult<1>;
24
- }
@@ -1 +0,0 @@
1
- export declare const fairnessDetailsStyles: import('lit').CSSResult;