@betorigami/game-ui-shared 9.0.0 → 9.1.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.
- package/dist/components/shared/BetResultModal/BetResultModal.d.ts +2 -4
- package/dist/components/shared/CurrencySymbol/CurrencySymbol.d.ts +11 -0
- package/dist/components/shared/CurrencySymbol/CurrencySymbol.styles.d.ts +1 -0
- package/dist/components/shared/FairnessDetails/HistoryTable.d.ts +0 -2
- package/dist/components/shared/GameWinPopup/GameWinPopup.d.ts +0 -1
- package/dist/components/shared/Inputs/Input/Input.d.ts +1 -0
- package/dist/controllers/bet-result-cache.controller.d.ts +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +3486 -3523
- package/dist/shared/bet.types.d.ts +3 -0
- package/package.json +2 -2
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BetInfo } from '../../../shared/bet.types';
|
|
2
2
|
import { OrigamiGame } from '../../../shared/constants';
|
|
3
3
|
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
4
4
|
export declare class BetResultModal extends OrigamiElement {
|
|
5
|
-
private readonly locale;
|
|
6
5
|
private readonly session;
|
|
7
6
|
static styles: import('lit').CSSResult[];
|
|
8
7
|
betId: string;
|
|
9
|
-
betData:
|
|
8
|
+
betData: BetInfo | null;
|
|
10
9
|
private _copiedId;
|
|
11
10
|
private _copyTimeout;
|
|
12
11
|
private betResultCache;
|
|
@@ -19,7 +18,6 @@ export declare class BetResultModal extends OrigamiElement {
|
|
|
19
18
|
private _formatMonetaryAmount;
|
|
20
19
|
private _calculateMultiplier;
|
|
21
20
|
private _calculatePayout;
|
|
22
|
-
private _getCurrencyDisplay;
|
|
23
21
|
private openVerifyOutcomeModal;
|
|
24
22
|
triggerVerify(): void;
|
|
25
23
|
get gameType(): OrigamiGame;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { nothing } from 'lit';
|
|
2
|
+
import { Currency } from '../../../shared/constants';
|
|
3
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
4
|
+
import { TooltipPosition } from '../Tooltip/Tooltip';
|
|
5
|
+
export declare class CurrencySymbol extends OrigamiElement {
|
|
6
|
+
static styles: import('lit').CSSResult[];
|
|
7
|
+
private readonly locale;
|
|
8
|
+
currency?: Currency;
|
|
9
|
+
tooltipPosition?: TooltipPosition;
|
|
10
|
+
render(): import('lit').TemplateResult<1> | typeof nothing;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const currencySymbolStyles: import('lit').CSSResult;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
2
|
export declare class HistoryTable extends OrigamiElement {
|
|
3
|
-
private readonly locale;
|
|
4
3
|
private readonly session;
|
|
5
4
|
private readonly services;
|
|
6
5
|
private readonly layout;
|
|
@@ -23,7 +22,6 @@ export declare class HistoryTable extends OrigamiElement {
|
|
|
23
22
|
private loadHistoryData;
|
|
24
23
|
private _handleRowHover;
|
|
25
24
|
private _formatMonetaryAmount;
|
|
26
|
-
private _getCurrencyDisplay;
|
|
27
25
|
private _formatTimestamp;
|
|
28
26
|
private _calculateMultiplier;
|
|
29
27
|
private _calculatePayout;
|
|
@@ -3,7 +3,6 @@ import { default as Big } from 'big.js';
|
|
|
3
3
|
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
4
4
|
type GameType = 'Keno' | 'Mines' | 'Roulette';
|
|
5
5
|
export declare class GameWinPopup extends OrigamiElement {
|
|
6
|
-
private readonly locale;
|
|
7
6
|
private readonly session;
|
|
8
7
|
private readonly skin;
|
|
9
8
|
static styles: import('lit').CSSResult[];
|
|
@@ -40,6 +40,7 @@ export declare class Input extends OrigamiElement {
|
|
|
40
40
|
validationPattern: string | null;
|
|
41
41
|
validationMessage: string | null;
|
|
42
42
|
hideRightLabel: boolean;
|
|
43
|
+
hideRightIcon: boolean;
|
|
43
44
|
clickable: boolean;
|
|
44
45
|
forceActiveBorder: boolean;
|
|
45
46
|
keepLabelEnabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BetInfo } from '../shared/bet.types';
|
|
2
2
|
export declare class BetResultCacheController {
|
|
3
3
|
private static instance;
|
|
4
4
|
private cache;
|
|
@@ -6,7 +6,7 @@ export declare class BetResultCacheController {
|
|
|
6
6
|
private readonly maxCacheSize;
|
|
7
7
|
private readonly cacheExpirationMs;
|
|
8
8
|
static getInstance(): BetResultCacheController;
|
|
9
|
-
fetchBetResult(betId: string, baseUrl: string): Promise<
|
|
9
|
+
fetchBetResult(betId: string, baseUrl: string): Promise<BetInfo | null>;
|
|
10
10
|
private performFetch;
|
|
11
11
|
private getFromCache;
|
|
12
12
|
private addToCache;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export * from './components/shared/Button/ButtonGroup.styles';
|
|
|
11
11
|
export * from './components/shared/Button/ButtonGroup';
|
|
12
12
|
export * from './components/shared/ChipStack/ChipStack.styles';
|
|
13
13
|
export * from './components/shared/ChipStack/ChipStack';
|
|
14
|
+
export * from './components/shared/CurrencySymbol/CurrencySymbol.styles';
|
|
15
|
+
export * from './components/shared/CurrencySymbol/CurrencySymbol';
|
|
14
16
|
export * from './components/shared/ChipTableGameComponent';
|
|
15
17
|
export * from './components/shared/DepositButton/DepositButton';
|
|
16
18
|
export * from './components/shared/Drawer/Drawer.styles';
|