@betorigami/games 2.10.2 → 2.11.0

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.
@@ -12,6 +12,8 @@ export declare class BlackjackManual extends OrigamiElement {
12
12
  canDouble: boolean;
13
13
  canBuyInsurance: boolean;
14
14
  showInsurance: boolean;
15
+ insuranceAmount: string;
16
+ insuranceUnavailable: boolean;
15
17
  showSideBets: boolean;
16
18
  loadingAction: string | null;
17
19
  pairBonusAmount: string;
@@ -22,5 +24,7 @@ export declare class BlackjackManual extends OrigamiElement {
22
24
  private actionButtonEl?;
23
25
  triggerPrimaryAction(): void;
24
26
  isPrimaryActionDisabled(): boolean;
27
+ private buyInsuranceLabel;
28
+ private renderBuyInsuranceButton;
25
29
  render(): import('lit').TemplateResult<1>;
26
30
  }
@@ -16,6 +16,7 @@ export declare class BlackjackGame extends GameComponent {
16
16
  threeCardBonusAmount: string;
17
17
  sideBetResults: SideBetResults | null;
18
18
  private showSideBetOnboarding;
19
+ insuranceAmount: string;
19
20
  currentBetId: string | null;
20
21
  currentMainBetAmount: string;
21
22
  private _blackjackManualEl?;
@@ -58,6 +59,7 @@ export declare class BlackjackGame extends GameComponent {
58
59
  triggerForceUIUpdate(): Promise<void>;
59
60
  triggerShowError(error: string): void;
60
61
  setHasPendingBet(value: boolean): void;
62
+ private get insuranceUnavailable();
61
63
  private canAffordAction;
62
64
  private canPerformAction;
63
65
  private onBuyInsurance;
@@ -41,4 +41,5 @@ export declare const deriveSideBetResults: (state: BlackjackState | null) => Sid
41
41
  export declare const deriveDealerCards: (state: BlackjackState) => UIDealerCard[];
42
42
  export declare const derivePlayerHands: (state: BlackjackState) => Card[][];
43
43
  export declare const deriveFullVisibleState: (state: BlackjackState) => BlackjackVisibleState;
44
+ export declare const isInsuranceUnavailable: (insuranceAmount: string, minBet: number | null) => boolean;
44
45
  export {};
@@ -9,10 +9,13 @@ export declare class MockBlackjackApi extends MockBridgedGameService implements
9
9
  protected readonly minRandomValue = 0;
10
10
  protected readonly maxRandomValue = 51;
11
11
  protected readonly edge = 1;
12
+ private mainBetAmount;
12
13
  static setCardSequence(cards: number[]): void;
13
14
  constructor(initialBalance: number);
14
15
  protected createGameEngine(edge: number): GameEngine;
15
16
  protected toActionData(playResult: PlayResult): Action['data'];
17
+ private get insuranceAmount();
18
+ private getBetWithInsuranceAmount;
16
19
  startBet(data: BlackjackStartArgs): Promise<BlackjackStartResult>;
17
20
  next(data: BlackjackNextArgs): Promise<BlackjackNextResult>;
18
21
  getActiveBet(): Promise<BlackjackGetActiveBetResult>;