@betorigami/game-ui-shared 7.0.0 → 8.1.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.
- package/dist/components/shared/GameComponent.d.ts +17 -3
- package/dist/components/shared/GameLayout/GameLayout.d.ts +1 -1
- package/dist/components/shared/GameProviderWrapper.d.ts +1 -0
- package/dist/components/shared/context/slices/wallet.context.d.ts +1 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.mjs +2391 -2570
- package/dist/shared/event-map.d.ts +0 -5
- package/dist/shared/get-game-outcome.d.ts +2 -1
- package/dist/shared/provider-api/error-codes.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/shared/Inputs/ChipInput/ChipInput.d.ts +0 -19
- package/dist/components/shared/Inputs/ChipInput/ChipInput.styles.d.ts +0 -1
- package/dist/components/shared/Inputs/ChipInput/chip-input.constants.d.ts +0 -4
|
@@ -8,10 +8,6 @@ import { UiLockContent } from '../components/shared/UiLock/UiLockContent';
|
|
|
8
8
|
export type MinesCountChangeEvent = CustomEvent<{
|
|
9
9
|
count: number;
|
|
10
10
|
}>;
|
|
11
|
-
export type ChipInputChangeEvent = CustomEvent<{
|
|
12
|
-
index: number;
|
|
13
|
-
label: string;
|
|
14
|
-
}>;
|
|
15
11
|
export type RoulettePerClickChangeEvent = CustomEvent<{
|
|
16
12
|
amount: string;
|
|
17
13
|
}>;
|
|
@@ -218,7 +214,6 @@ declare global {
|
|
|
218
214
|
'bet-amount-change': BetAmountChangeEvent;
|
|
219
215
|
'select-change': SelectEvent;
|
|
220
216
|
'button-click': ButtonClickEvent;
|
|
221
|
-
'chip-input-change': ChipInputChangeEvent;
|
|
222
217
|
'baccarat-manual-play': CustomEvent;
|
|
223
218
|
'baccarat-per-click-change': BaccaratPerClickChangeEvent;
|
|
224
219
|
'baccarat-total-bet-half': CustomEvent;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as Big } from 'big.js';
|
|
2
|
+
export declare const getGameOutcome: (multiplier: Big) => "Win" | "Loss" | "Draw";
|
|
@@ -5,6 +5,7 @@ export declare enum ErrorCode {
|
|
|
5
5
|
LIMIT_REACHED = "LIMIT_REACHED",
|
|
6
6
|
BET_AMOUNT_TOO_LOW = "BET_AMOUNT_TOO_LOW",
|
|
7
7
|
WEBHOOK_ERROR = "WEBHOOK_ERROR",
|
|
8
|
+
WIN_REJECTED = "WIN_REJECTED",
|
|
8
9
|
REJECTED = "REJECTED",
|
|
9
10
|
TIMEOUT = "TIMEOUT",
|
|
10
11
|
UNKNOWN = "UNKNOWN"
|
|
@@ -20,4 +21,5 @@ export type ProviderApiResult<TData> = {
|
|
|
20
21
|
data: NonNullable<TData>;
|
|
21
22
|
} | ErrorBetResult;
|
|
22
23
|
export declare const resolveProviderApiResult: <TData>({ data, error, response }: ClientResult<TData>) => ProviderApiResult<TData>;
|
|
24
|
+
export declare const isUnknownOutcome: (errorCode: ErrorCode) => boolean;
|
|
23
25
|
export {};
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ChipConfig } from '../../types/chip.types';
|
|
2
|
-
import { default as OrigamiElement } from '../../../../shared/origami-element';
|
|
3
|
-
export declare class ChipInput extends OrigamiElement {
|
|
4
|
-
private readonly locale;
|
|
5
|
-
private readonly services;
|
|
6
|
-
static styles: import('lit').CSSResult[];
|
|
7
|
-
chips: ChipConfig[];
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
private selectedIndex;
|
|
10
|
-
/**
|
|
11
|
-
* Parse a chip label like "0.1", "10", "1K", "10K", "1M" into its numeric value.
|
|
12
|
-
* This is used only for display of the chip value hint in the UI.
|
|
13
|
-
*/
|
|
14
|
-
private parseChipLabelToUnits;
|
|
15
|
-
private handlePointerDown;
|
|
16
|
-
private handleSelect;
|
|
17
|
-
private renderChip;
|
|
18
|
-
render(): import('lit').TemplateResult<1>;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const chipInputStyles: import('lit').CSSResult;
|