@betorigami/games 0.7.0 → 0.7.2

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 (47) hide show
  1. package/dist/components/dice/DiceControls/DiceManual.d.ts +0 -1
  2. package/dist/components/dice/DiceGame.d.ts +2 -1
  3. package/dist/components/keno/KenoContent/KenoContent.d.ts +2 -2
  4. package/dist/components/keno/KenoContent/KenoContentBottom.d.ts +1 -0
  5. package/dist/components/keno/KenoControls/KenoAuto.d.ts +1 -0
  6. package/dist/components/keno/KenoControls/KenoManual.d.ts +1 -0
  7. package/dist/components/keno/KenoGame.d.ts +4 -2
  8. package/dist/components/keno/KenoGrid/KenoGrid.d.ts +0 -9
  9. package/dist/components/limbo/LimboGame.d.ts +2 -1
  10. package/dist/components/mines/Controls/MinesManual.d.ts +1 -0
  11. package/dist/components/mines/MinesContent/MinesContent.d.ts +16 -0
  12. package/dist/components/mines/MinesContent/MinesContent.styles.d.ts +1 -0
  13. package/dist/components/mines/MinesGame.d.ts +4 -1
  14. package/dist/components/mines/MinesTile/MinesTile.d.ts +2 -0
  15. package/dist/components/mines/mines.api.d.ts +4 -4
  16. package/dist/components/mines/mines.constants.d.ts +1 -0
  17. package/dist/components/shared/BetResultModal/BetResultModal.d.ts +4 -1
  18. package/dist/components/shared/Button/Button.d.ts +1 -1
  19. package/dist/components/shared/Drawer/Drawer.d.ts +122 -0
  20. package/dist/components/shared/Drawer/Drawer.styles.d.ts +2 -0
  21. package/dist/components/shared/FairnessDetails/FairnessDetails.d.ts +10 -0
  22. package/dist/components/shared/GameComponent.d.ts +6 -6
  23. package/dist/components/shared/GameLayout/GameLayout.d.ts +0 -4
  24. package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.d.ts +39 -0
  25. package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.styles.d.ts +1 -0
  26. package/dist/components/shared/GameProviderWrapper.d.ts +3 -0
  27. package/dist/components/shared/GameSidebar/GameSidebar.d.ts +0 -1
  28. package/dist/components/shared/GameWinPopup/GameWinPopup.d.ts +1 -5
  29. package/dist/components/shared/GenericAutobet/BetCountInput.d.ts +2 -2
  30. package/dist/components/shared/Inputs/BetAmountInput/BetAmountInput.d.ts +0 -4
  31. package/dist/components/shared/Inputs/CurrencyInput/RawCurrencyInput.d.ts +2 -2
  32. package/dist/components/shared/Inputs/Input/Input.d.ts +3 -1
  33. package/dist/components/shared/LottieIcon/LottieIcon.d.ts +22 -0
  34. package/dist/components/shared/Tooltip/Tooltip.d.ts +1 -0
  35. package/dist/components/shared/context/game.context.d.ts +2 -0
  36. package/dist/index.mjs +5157 -4188
  37. package/dist/lottie-CF6R56sF.js +5443 -0
  38. package/dist/shared/event-map.d.ts +6 -0
  39. package/dist/shared/icons/currencies/btcIcon.d.ts +1 -0
  40. package/dist/shared/icons/currencies/ethIcon.d.ts +1 -0
  41. package/dist/shared/icons/currencies/usdcIcon.d.ts +1 -0
  42. package/dist/utils/blur-active-element.d.ts +7 -0
  43. package/package.json +5 -4
  44. package/dist/shared/icons/multiplierIcon.d.ts +0 -1
  45. package/dist/shared/icons/profitIcon.d.ts +0 -1
  46. package/dist/shared/icons/rollDirectionIcon.d.ts +0 -1
  47. package/dist/shared/icons/winChanceIcon.d.ts +0 -1
@@ -1,6 +1,5 @@
1
1
  import { default as OrigamiElement } from '../../../shared/origami-element';
2
2
  import { Currency } from '../../../shared/constants';
3
- export declare const currencyIcon: import('lit').TemplateResult<1>;
4
3
  export declare class DiceManual extends OrigamiElement {
5
4
  isPlaying: boolean;
6
5
  profitOnWin: string;
@@ -17,8 +17,9 @@ export declare class DiceGame extends GameComponent {
17
17
  private history;
18
18
  get diceApi(): DiceApi | MockDiceApi;
19
19
  dicePlay(): Promise<void>;
20
+ private handleBetExecution;
20
21
  addToHistory(multiplier: number, won: boolean): void;
21
- protected executeBet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
22
+ protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
22
23
  sliderInputChange: (e: SliderChangeEvent) => void;
23
24
  diceMultiplierChange: (e: DiceMultiplierChangeEvent) => void;
24
25
  diceWinChanceChange: (e: DiceWinChanceChangeEvent) => void;
@@ -7,9 +7,9 @@ export declare class KenoContent extends OrigamiElement {
7
7
  isPlaying: boolean;
8
8
  gameOver: boolean;
9
9
  multipliersForSelectedTiles: number;
10
- wonAmount: string | null;
10
+ payout: BigNumber | null;
11
11
  gameWinPopupShowing: boolean;
12
- multiplier: number | null;
12
+ multiplier: number;
13
13
  risk: KenoRiskLevel;
14
14
  betAmount: string;
15
15
  get hitCount(): number;
@@ -7,6 +7,7 @@ export declare class KenoContentBottom extends OrigamiElement {
7
7
  betAmount: string;
8
8
  hitCount: number;
9
9
  multipliersForSelectedTiles: number;
10
+ resultTiles: number[];
10
11
  private hoverItemIndex;
11
12
  handleMouseOver(index: number, event: MouseEvent): void;
12
13
  handleMouseLeave(): void;
@@ -4,6 +4,7 @@ export declare class KenoAuto extends OrigamiElement {
4
4
  autobetStopping: boolean;
5
5
  disableBet: boolean;
6
6
  readonly autobetInProgress = false;
7
+ autoselectRunning: boolean;
7
8
  static styles: import('lit').CSSResult[];
8
9
  private actionButtons;
9
10
  render(): import('lit').TemplateResult<1>;
@@ -5,6 +5,7 @@ export declare class KenoManual extends OrigamiElement {
5
5
  risk: KenoRiskLevel;
6
6
  isPlaying: boolean;
7
7
  disableBet: boolean;
8
+ autoselectRunning: boolean;
8
9
  static styles: import('lit').CSSResult[];
9
10
  render(): import('lit').TemplateResult<1>;
10
11
  }
@@ -13,13 +13,15 @@ export declare class KenoGame extends GameComponent {
13
13
  private resultTiles;
14
14
  gameWinPopupShowing: boolean;
15
15
  private gameOver;
16
- private wonAmount;
16
+ private payout;
17
17
  private kenoRisk;
18
18
  private autoselectRunning;
19
+ private multiplier;
19
20
  get kenoApi(): KenoApi | MockKenoApi;
20
21
  kenoPlay(): Promise<void>;
22
+ private handleBetExecution;
21
23
  addToHistory(multiplier: number, won: boolean): void;
22
- protected executeBet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
24
+ protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
23
25
  handleTileClick: (e: KenoTileClickEvent) => void;
24
26
  handleRiskChange: (e: KenoRiskChangeEvent) => void;
25
27
  autoPick: () => Promise<void>;
@@ -6,19 +6,10 @@ export declare class KenoGrid extends OrigamiElement {
6
6
  popupShowing: boolean;
7
7
  isPlaying: boolean;
8
8
  gameOver: boolean;
9
- wonAmount: string | null;
10
9
  enableSounds: boolean;
11
10
  ariaLabel: string;
12
- private audioRefs;
13
- private winAudioRef;
14
- connectedCallback(): void;
15
- disconnectedCallback(): void;
16
11
  get selectedCount(): number;
17
12
  get hitCount(): number;
18
- private initializeSounds;
19
- private cleanupSounds;
20
- updated(changedProps: Map<string, unknown>): void;
21
- private handleTileClick;
22
13
  private calculateTileState;
23
14
  render(): import('lit').TemplateResult<1>;
24
15
  }
@@ -17,7 +17,8 @@ export declare class LimboGame extends GameComponent {
17
17
  private betId;
18
18
  get limboApi(): LimboApi | MockLimboApi;
19
19
  limboPlay(): Promise<void>;
20
- protected executeBet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
20
+ private handleBetExecution;
21
+ protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
21
22
  multiplierChange: (e: LimboMultiplierChangeEvent) => void;
22
23
  calculateProfitOnWin(): string;
23
24
  winChanceChange: (e: LimboWinChanceChangeEvent) => void;
@@ -4,6 +4,7 @@ export declare class MinesManual extends OrigamiElement {
4
4
  inputsDisabled: boolean;
5
5
  minesState: MinesState | null;
6
6
  isGameActive: boolean;
7
+ isLoading: boolean;
7
8
  static styles: import('lit').CSSResult[];
8
9
  render(): import('lit').TemplateResult<1>;
9
10
  }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1 @@
1
+ export declare const minesContentStyles: import('lit').CSSResult;
@@ -7,12 +7,15 @@ export declare class MinesGame extends GameComponent {
7
7
  private minesCount;
8
8
  private autobetSelectedTiles;
9
9
  private minesData;
10
+ private isLoading;
11
+ private authTokenWatcher;
10
12
  get isGameActive(): boolean;
11
13
  get minesApi(): MinesApi | MockMinesApi;
12
14
  getMinesActiveBet(): Promise<void>;
13
15
  protected firstUpdated(): Promise<void>;
16
+ protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
14
17
  get getMinesState(): MinesState | null;
15
- protected executeBet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
18
+ protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
16
19
  toggleAutobet(event: AutobetToggleEvent): Promise<void>;
17
20
  private minesClickHandler;
18
21
  minesManualStart(): Promise<void>;
@@ -13,8 +13,10 @@ export declare class MinesTile extends OrigamiElement {
13
13
  static styles: import('lit').CSSResult[];
14
14
  tileId: number;
15
15
  delayReveal: boolean;
16
+ autobetInProgress: boolean;
16
17
  state: MinesTileState;
17
18
  ariaLabel: string;
19
+ disabled: boolean;
18
20
  private _handleClick;
19
21
  private get _isDisabled();
20
22
  render(): import('lit').TemplateResult<1>;
@@ -74,13 +74,13 @@ export declare class MinesApi {
74
74
  data?: undefined;
75
75
  }>;
76
76
  getActiveBet(): Promise<{
77
- success: true;
78
- data: BetResult;
79
- error?: undefined;
80
- } | {
81
77
  success: false;
82
78
  error: string;
83
79
  data?: undefined;
80
+ } | {
81
+ success: true;
82
+ data: BetResult;
83
+ error?: undefined;
84
84
  }>;
85
85
  selectTile(minesNextArgs: MinesNextArgs): Promise<{
86
86
  success: true;
@@ -16,6 +16,7 @@ export interface MinesState {
16
16
  outcome: MinesGameOutcome | null;
17
17
  minesCount: number;
18
18
  numMinesRemaining: number;
19
+ numGemsFound: number;
19
20
  numGemsRemaining: number;
20
21
  state: MinesFlowState;
21
22
  betAmount: BigNumber;
@@ -40,6 +40,9 @@ export declare class BetResultModal extends OrigamiElement {
40
40
  private _getMinesData;
41
41
  private _getKenoData;
42
42
  private _getLimboData;
43
- private _renderGameContent;
43
+ private _getMinesDisplayData;
44
+ private _getLimboDisplayData;
45
+ private _getDiceDisplayData;
46
+ private _getKenoDisplayData;
44
47
  render(): import('lit').TemplateResult<1>;
45
48
  }
@@ -1,5 +1,5 @@
1
1
  import { default as OrigamiElement } from '../../../shared/origami-element';
2
- export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost' | 'icon';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost' | 'icon' | 'success';
3
3
  export declare class Button extends OrigamiElement {
4
4
  static styles: import('lit').CSSResult[];
5
5
  static shadowRootOptions: {
@@ -0,0 +1,122 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -7,8 +7,18 @@ export declare class FairnessDetails extends LitElement {
7
7
  private _proof;
8
8
  private _randomness;
9
9
  private _clientSeed;
10
+ verifiedStatus: 'missing' | 'verified' | 'unverified' | 'viewing-outcome';
11
+ gameType: 'limbo' | 'mines' | 'dice' | 'keno';
10
12
  private _historyData;
13
+ private _showAllHistory;
11
14
  private _handleToggleChange;
12
15
  private _handleGenerateClientSeed;
16
+ private _handleShowMore;
17
+ private _getMinesDisplayData;
18
+ private _getLimboDisplayData;
19
+ private _getDiceDisplayData;
20
+ private _getKenoDisplayData;
21
+ private _renderStatusButton;
22
+ private _renderInputs;
13
23
  render(): import('lit').TemplateResult<1>;
14
24
  }
@@ -2,10 +2,10 @@ import { default as BigNumber } from 'bignumber.js';
2
2
  import { AutobetToggleEvent } from '../../shared/event-map';
3
3
  import { default as OrigamiElement } from '../../shared/origami-element';
4
4
  import { BetMode } from './GameSidebar/GameSidebar';
5
- import { gameContextType } from './context/game.context';
5
+ import { AfterBetEffect } from './GenericAutobet/GenericAutobet';
6
6
  export interface AutobetSettings {
7
- onWinStrategy: string;
8
- onLossStrategy: string;
7
+ onWinStrategy: AfterBetEffect;
8
+ onLossStrategy: AfterBetEffect;
9
9
  onWinPercentage: string | number;
10
10
  onLossPercentage: string | number;
11
11
  stopOnLoss: string;
@@ -24,12 +24,12 @@ export declare abstract class GameComponent extends OrigamiElement {
24
24
  protected hasPendingBet: boolean;
25
25
  protected autobetInProgress: boolean;
26
26
  protected autobetStopping: boolean;
27
- protected numberOfBets: number;
28
27
  protected betDelay: number;
29
28
  static styles: import('lit').CSSResult[];
30
- gameData?: gameContextType;
29
+ private gameConsumer;
30
+ get gameData(): import('./context/game.context').gameContextType | undefined;
31
31
  toggleAutobet(event: AutobetToggleEvent): Promise<void>;
32
- protected abstract executeBet(_autobetSettings: AutobetSettings, _currentBetAmount: string): Promise<GameBetResult>;
32
+ protected abstract executeAutobet(_autobetSettings: AutobetSettings, _currentBetAmount: string): Promise<GameBetResult>;
33
33
  protected adjustBetAmount(autobetSettings: AutobetSettings, gameOutcome: 'Win' | 'Loss' | 'Draw', originalBetAmount: string, currentBetAmount: string): string;
34
34
  protected isPnLWithinLimits(autobetSettings: AutobetSettings, totalPnL: BigNumber): boolean;
35
35
  }
@@ -31,10 +31,6 @@ export declare class GameLayout extends OrigamiElement {
31
31
  private _handleFairnessClick;
32
32
  private _handleGameResultModalClose;
33
33
  private _handleFairnessModalClose;
34
- private _handleSettingsClick;
35
- private _handleTheatreClick;
36
- private _handleStatsClick;
37
- private _handleFavoritesClick;
38
34
  private _handleOpenBetResultModal;
39
35
  render(): import('lit').TemplateResult<1>;
40
36
  }
@@ -0,0 +1,39 @@
1
+ import { LitElement } from 'lit';
2
+ export interface MinesData {
3
+ selectedTiles: number[];
4
+ mineLocations: number[];
5
+ }
6
+ export interface LimboData {
7
+ isWin: boolean;
8
+ betId: string;
9
+ resultMultiplier: number;
10
+ betTargetMultiplier: number;
11
+ }
12
+ export interface DiceData {
13
+ value: number;
14
+ min: number;
15
+ max: number;
16
+ step: number;
17
+ showDice: boolean;
18
+ disabled: boolean;
19
+ resultValue: number;
20
+ isWin: boolean;
21
+ isRollLower: boolean;
22
+ }
23
+ export interface KenoData {
24
+ selectedTiles: number[];
25
+ resultTiles: number[];
26
+ isPlaying: boolean;
27
+ gameOver: boolean;
28
+ popupShowing: boolean;
29
+ }
30
+ export type GameType = 'mines' | 'limbo' | 'dice' | 'keno';
31
+ export declare class GameOutcomeDisplay extends LitElement {
32
+ static styles: import('lit').CSSResult[];
33
+ gameType: GameType;
34
+ minesData?: MinesData;
35
+ limboData?: LimboData;
36
+ diceData?: DiceData;
37
+ kenoData?: KenoData;
38
+ render(): import('lit').TemplateResult<1>;
39
+ }
@@ -0,0 +1 @@
1
+ export declare const gameOutcomeDisplayStyles: import('lit').CSSResult;
@@ -1,4 +1,5 @@
1
1
  import { ContextProvider } from '@lit/context';
2
+ import { default as BigNumber } from 'bignumber.js';
2
3
  import { PropertyValues } from 'lit';
3
4
  import { Currency } from '../../shared/constants';
4
5
  import { default as OrigamiElement } from '../../shared/origami-element';
@@ -12,12 +13,14 @@ export declare class GameProviderWrapper extends OrigamiElement {
12
13
  isCryptoMode: boolean;
13
14
  gameStatsOpen: boolean;
14
15
  private betAmount;
16
+ private autobetNumberOfBets;
15
17
  protected _gameProvider: ContextProvider<{
16
18
  __context__: import('./context/game.context').gameContextType;
17
19
  }, this>;
18
20
  connectedCallback(): void;
19
21
  updated(changedProperties: PropertyValues): void;
20
22
  private updateProviderValue;
23
+ updateAutobetNumberOfBets(numberOfBets: number): void;
21
24
  updateBalance(newAmount: BigNumber): void;
22
25
  render(): import('lit').TemplateResult<1>;
23
26
  }
@@ -5,7 +5,6 @@ export declare class GameSidebar extends OrigamiElement {
5
5
  mode: BetMode;
6
6
  betAmount: string;
7
7
  currency: string;
8
- isPlaying: boolean;
9
8
  disabled: boolean;
10
9
  isLoading: boolean;
11
10
  enableHaptics: boolean;
@@ -2,17 +2,13 @@ import { LitElement, TemplateResult } from 'lit';
2
2
  type GameType = 'Keno' | 'Mines';
3
3
  export declare class GameWinPopup extends LitElement {
4
4
  static styles: import('lit').CSSResult[];
5
- winAmount: string;
5
+ payout: BigNumber | null;
6
6
  multiplier: number | undefined;
7
7
  currencySymbol: string;
8
8
  title: string;
9
9
  description: string;
10
10
  gemCount: number | undefined;
11
11
  gameType: GameType;
12
- /**
13
- * Format win amount to 2 decimal places
14
- */
15
- private _getFormattedWinAmount;
16
12
  render(): TemplateResult<1>;
17
13
  }
18
14
  export {};
@@ -1,7 +1,7 @@
1
1
  import { default as OrigamiElement } from '../../../shared/origami-element';
2
- import { AutobetContextType } from './context/autobet.context';
2
+ import { gameContextType } from '../context/game.context';
3
3
  export declare class BetCountInput extends OrigamiElement {
4
- _autobetContext?: AutobetContextType;
4
+ gameData?: gameContextType;
5
5
  disabled: boolean;
6
6
  static styles: import('lit').CSSResult[];
7
7
  private _handleAutobetGamesChange;
@@ -1,7 +1,6 @@
1
1
  import { default as BigNumber } from 'bignumber.js';
2
2
  import { default as OrigamiElement } from '../../../../shared/origami-element';
3
3
  import { gameContextType } from '../../context/game.context';
4
- import { Currency } from '../CurrencyInput/RawCurrencyInput';
5
4
  export declare class BetAmountInput extends OrigamiElement {
6
5
  static styles: import('lit').CSSResult[];
7
6
  gameData?: gameContextType;
@@ -9,16 +8,13 @@ export declare class BetAmountInput extends OrigamiElement {
9
8
  private _gameContext;
10
9
  firstUpdated(): void;
11
10
  private value;
12
- currency: Currency;
13
11
  disabled: boolean;
14
12
  label: string;
15
- displayInFiat: boolean;
16
13
  updateBalanceState(newAmount: BigNumber): void;
17
14
  private handleCurrencyInputChange;
18
15
  private updateAmount;
19
16
  private handleHalfBet;
20
17
  private handleDoubleBet;
21
- private getAddonButtons;
22
18
  handleDisplayInFiatChange(): void;
23
19
  render(): import('lit').TemplateResult<1>;
24
20
  }
@@ -1,15 +1,15 @@
1
1
  import { default as OrigamiElement } from '../../../../shared/origami-element';
2
2
  import { Input } from '../Input/Input';
3
- export type Currency = 'BTC' | 'ETH' | 'USDT' | 'SOL';
3
+ export type Currency = 'BTC' | 'ETH' | 'USDC';
4
4
  export type FiatCurrency = 'USD' | 'EUR' | 'GBP';
5
5
  export declare class RawCurrencyInput extends OrigamiElement {
6
6
  label: string;
7
7
  currency: Currency;
8
+ errorMessage: string;
8
9
  fiatCurrency: FiatCurrency;
9
10
  value: string;
10
11
  rightLabel: string;
11
12
  suffix: string;
12
- error: string;
13
13
  placeholder: string;
14
14
  disabled: boolean;
15
15
  readonly: boolean;
@@ -34,6 +34,7 @@ export declare class Input extends OrigamiElement {
34
34
  readonly: boolean;
35
35
  pattern: string | null;
36
36
  validateOnInput: boolean;
37
+ tooltipFullWidth: boolean;
37
38
  validationPattern: string | null;
38
39
  validationMessage: string | null;
39
40
  inputMode: 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | 'none' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | 'none';
@@ -43,7 +44,8 @@ export declare class Input extends OrigamiElement {
43
44
  handleBeforeInput: ((e: InputEvent & {
44
45
  dataTransfer?: DataTransfer | null;
45
46
  }) => void) | null;
46
- private _errorMessage;
47
+ tooltipOffset: number;
48
+ errorMessage: string | null;
47
49
  private _isIconRotating;
48
50
  errorTooltipMessage: string;
49
51
  private _iconRotationState;
@@ -0,0 +1,22 @@
1
+ import { default as OrigamiElement } from '../../../shared/origami-element';
2
+ export declare class LottieIcon extends OrigamiElement {
3
+ static styles: import('lit').CSSResult;
4
+ src: string;
5
+ size: string;
6
+ triggerSelector: string;
7
+ active: boolean;
8
+ private animation;
9
+ private containerRef;
10
+ private abortController;
11
+ private lottieModule;
12
+ connectedCallback(): Promise<void>;
13
+ disconnectedCallback(): void;
14
+ private initialize;
15
+ private loadLottieModule;
16
+ private loadAnimationData;
17
+ private setupAnimation;
18
+ private setupHoverTrigger;
19
+ private playAnimation;
20
+ private cleanup;
21
+ render(): import('lit').TemplateResult<1>;
22
+ }
@@ -19,6 +19,7 @@ export declare class Tooltip extends LitElement {
19
19
  theme: 'light' | 'dark';
20
20
  delay: number;
21
21
  hideDelay: number;
22
+ fullWidth: boolean;
22
23
  private tooltipRef;
23
24
  private triggerRef;
24
25
  private showTimeout;
@@ -11,6 +11,8 @@ export type gameContextType = {
11
11
  baseUrl: string;
12
12
  authToken: string;
13
13
  gameStatsOpen: boolean;
14
+ autobetNumberOfBets: number;
15
+ updateAutobetNumberOfBets: (numberOfBets: number) => void;
14
16
  };
15
17
  export declare const gameContext: {
16
18
  __context__: gameContextType;