@betorigami/games 3.7.0 → 3.8.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.
@@ -1,4 +1,5 @@
1
1
  import { ProviderApi, BetResult, ErrorBetResult } from '@betorigami/game-ui-shared';
2
+ import { CurrencyCode } from '@betorigami/money';
2
3
  export type BlackjackStartArgs = {
3
4
  mainBetAmount: string;
4
5
  pairBonusAmount?: string;
@@ -13,9 +14,12 @@ export type BlackjackNextResult = {
13
14
  success: true;
14
15
  data: BetResult;
15
16
  } | ErrorBetResult;
17
+ export type BlackjackActiveBet = BetResult & {
18
+ mainBetAmount: string | null;
19
+ };
16
20
  export type BlackjackGetActiveBetResult = {
17
21
  success: true;
18
- data: BetResult | null;
22
+ data: BlackjackActiveBet | null;
19
23
  } | ErrorBetResult;
20
24
  export interface IBlackjackApi {
21
25
  startBet(data: BlackjackStartArgs): Promise<BlackjackStartResult>;
@@ -24,8 +28,10 @@ export interface IBlackjackApi {
24
28
  }
25
29
  export declare class BlackjackApi implements IBlackjackApi {
26
30
  private readonly client;
27
- constructor(client: ProviderApi.Client);
31
+ private readonly getCurrency;
32
+ constructor(client: ProviderApi.Client, getCurrency: () => CurrencyCode);
28
33
  startBet(data: BlackjackStartArgs): Promise<BlackjackStartResult>;
29
34
  next(data: BlackjackNextArgs): Promise<BlackjackNextResult>;
30
35
  getActiveBet(): Promise<BlackjackGetActiveBetResult>;
36
+ private readMainBetAmount;
31
37
  }
@@ -1,7 +1,6 @@
1
1
  import { OrigamiElement } from '@betorigami/game-ui-shared';
2
2
  import { LimboHistory } from '../LimboGame';
3
3
  export declare class LimboContent extends OrigamiElement {
4
- private readonly skin;
5
4
  private readonly layout;
6
5
  static styles: import('lit').CSSResult[];
7
6
  targetMultiplier: number;
@@ -11,6 +10,5 @@ export declare class LimboContent extends OrigamiElement {
11
10
  betId: string;
12
11
  isPlaying: boolean;
13
12
  disableSound: boolean;
14
- private get _multiplierBgStyle();
15
13
  render(): import('lit').TemplateResult<1>;
16
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betorigami/games",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",
@@ -29,8 +29,9 @@
29
29
  "matter-js": "^0.18.0",
30
30
  "web-haptics": "^0.0.6",
31
31
  "@betorigami/game-calculations": "13.0.0",
32
- "@betorigami/game-ui-shared": "8.0.0",
33
- "@betorigami/game-ui-wheel": "1.2.6"
32
+ "@betorigami/game-ui-shared": "8.1.0",
33
+ "@betorigami/game-ui-wheel": "1.3.0",
34
+ "@betorigami/money": "0.5.1"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@playwright/test": "^1.53.0",