@betorigami/games 2.5.2 → 2.6.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 (3) hide show
  1. package/dist/index.d.ts +64 -3
  2. package/dist/index.mjs +1595 -1045
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- import { BaccaratGameInputs, BaccaratGameOutputs, BlackjackActionType, BlackjackOutcome, BlackjackState, Card, Color, Column, Dozen, Half, InsuranceOutcome, Parity, PlayResult, RouletteType, SideBetResults } from '@betorigami/game-calculations';
3
+ import { BaccaratGameInputs, BaccaratGameOutputs, BlackjackActionType, BlackjackOutcome, BlackjackState, Card, CardDto, Color, Column, Dozen, Half, InsuranceOutcome, Parity, PlayResult, RouletteType, SideBetResults } from '@betorigami/game-calculations';
4
4
  import { ContextProvider } from '@lit/context';
5
5
  import Big$1 from 'big.js';
6
6
  import { CSSResult, LitElement, PropertyValues, TemplateResult } from 'lit';
@@ -54,7 +54,8 @@ declare enum OrigamiGame {
54
54
  ADVANCED_DICE = "ADVANCED_DICE",
55
55
  ROULETTE = "ROULETTE",
56
56
  BACCARAT = "BACCARAT",
57
- BLACKJACK = "BLACKJACK"
57
+ BLACKJACK = "BLACKJACK",
58
+ BLITZ = "BLITZ"
58
59
  }
59
60
  export type SeasonTheme = "DEFAULT" | "HORRORGAMI" | "JOLLYGAMI";
60
61
  declare const SUPPORTED_EDGE_PERCENTAGES: readonly [
@@ -1121,6 +1122,16 @@ export declare const translations: {
1121
1122
  provablyFair: string;
1122
1123
  strategyTip: string;
1123
1124
  };
1125
+ blitz: {
1126
+ how1: string;
1127
+ how2: string;
1128
+ how3: string;
1129
+ how4: string;
1130
+ how5: string;
1131
+ overview: string;
1132
+ provablyFair: string;
1133
+ strategyTip: string;
1134
+ };
1124
1135
  };
1125
1136
  games: {
1126
1137
  advancedDice: {
@@ -1183,6 +1194,12 @@ export declare const translations: {
1183
1194
  buyInsurance: string;
1184
1195
  noInsurance: string;
1185
1196
  };
1197
+ blitz: {
1198
+ cardsRemaining: string;
1199
+ decreasePicks: string;
1200
+ increasePicks: string;
1201
+ uniqueCards: string;
1202
+ };
1186
1203
  dice: {
1187
1204
  rollOver: string;
1188
1205
  rollUnder: string;
@@ -7111,6 +7128,13 @@ export type MinesStartAction = {
7111
7128
  selectedTiles: number[];
7112
7129
  hasCashedOut: boolean;
7113
7130
  };
7131
+ export type BlitzStartAction = {
7132
+ pickCount: number;
7133
+ };
7134
+ export type BlitzEndAction = EndAction & {
7135
+ cards: CardDto[];
7136
+ payoutMultiplier: string;
7137
+ };
7114
7138
  export interface DiamondsStartAction {
7115
7139
  }
7116
7140
  export interface WheelStartAction {
@@ -7225,6 +7249,7 @@ export interface Action {
7225
7249
  KENO?: KenoStartAction | EndAction;
7226
7250
  LIMBO?: LimboStartAction | LimboEndAction;
7227
7251
  MINES?: MinesStartAction | EndAction;
7252
+ BLITZ?: BlitzStartAction | BlitzEndAction;
7228
7253
  DIAMONDS?: DiamondsStartAction | EndAction;
7229
7254
  WHEEL?: WheelStartAction | EndAction;
7230
7255
  PLINKO?: PlinkoStartAction | EndAction;
@@ -7783,7 +7808,11 @@ declare abstract class ChipTableGameComponent extends GameComponent {
7783
7808
  protected handleUndo: () => void;
7784
7809
  protected handleClear: () => void;
7785
7810
  protected handleAdjustTotalBet: (action: "half" | "double") => void;
7786
- protected getChipTableHotkeys(manualEl?: HTMLElement, autoEl?: HTMLElement): HotkeyDefinition[];
7811
+ /**
7812
+ * Return the set of hotkey definitions used for chip-table controls. Callbacks are used for manual & auto bet button elements, as `@query`
7813
+ * elements are undefined within component constructors.
7814
+ */
7815
+ protected getChipTableHotkeys(getManualEl: () => HTMLElement | undefined, getAutoEl: () => HTMLElement | undefined): HotkeyDefinition[];
7787
7816
  }
7788
7817
  export declare class RouletteGame extends ChipTableGameComponent {
7789
7818
  static styles: import("lit").CSSResult[];
@@ -7991,5 +8020,37 @@ export declare class BlackjackGame extends GameComponent {
7991
8020
  private onCardFlip;
7992
8021
  render(): import("lit-html").TemplateResult<1>;
7993
8022
  }
8023
+ export declare class BlitzGame extends GameComponent {
8024
+ static styles: import("lit").CSSResult[];
8025
+ private picks;
8026
+ private isManualPlaying;
8027
+ private cardDetails;
8028
+ private revealCardIndex;
8029
+ private gameOutcome;
8030
+ private winPopupBet;
8031
+ private _blitzManualEl?;
8032
+ private _blitzAutoEl?;
8033
+ private readonly getBlitzApi;
8034
+ get isToggleDisabled(): boolean;
8035
+ get areInputsDisabled(): boolean;
8036
+ private get minPicks();
8037
+ private get maxPicks();
8038
+ constructor();
8039
+ private isSpacebarDisabled;
8040
+ private arePicksHotkeysDisabled;
8041
+ private handleSpacebar;
8042
+ private changePicks;
8043
+ private handlePicksChange;
8044
+ private get multiplier();
8045
+ private get profitOnWin();
8046
+ private get cardsRemaining();
8047
+ private get showCardsRemaining();
8048
+ private get progressDurationMs();
8049
+ blitzPlay(): Promise<void>;
8050
+ private handleBetExecution;
8051
+ private revealCards;
8052
+ protected executeAutobet(autobetSettings: AutobetSettingsWithId, currentBetAmount: string): Promise<GameBetResult>;
8053
+ render(): import("lit-html").TemplateResult<1>;
8054
+ }
7994
8055
 
7995
8056
  export {};