@betorigami/game-ui-shared 4.1.1 → 5.0.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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const boltIcon: import('lit').TemplateResult<2>;
|
|
2
|
+
export declare const hotkeysIcon: import('lit').TemplateResult<2>;
|
|
3
|
+
export declare const infoBookIcon: import('lit').TemplateResult<2>;
|
|
4
|
+
export declare const lobbyIcon: import('lit').TemplateResult<2>;
|
|
5
|
+
export declare const volumeIcon: import('lit').TemplateResult<2>;
|
|
6
|
+
export declare const percentageIcon: import('lit').TemplateResult<2>;
|
|
7
|
+
export declare const targetIcon: import('lit').TemplateResult<2>;
|
|
8
|
+
export declare const fairIcon: import('lit').TemplateResult<2>;
|
|
9
|
+
export declare const chevronDownIcon: import('lit').TemplateResult<2>;
|
|
10
|
+
export declare const infoIcon: import('lit').TemplateResult<2>;
|
|
11
|
+
export declare const checkIcon: import('lit').TemplateResult<2>;
|
|
12
|
+
export declare const clipboardIcon: import('lit').TemplateResult<2>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type Fetch = typeof globalThis.fetch;
|
|
2
|
+
export declare const createTestProviderApiClient: (fetch: Fetch) => import('./provider-api-client').Client;
|
|
3
|
+
export declare const respondWith: (body: unknown, init?: ResponseInit) => {
|
|
4
|
+
fetch: typeof fetch;
|
|
5
|
+
sentRequest: () => Request;
|
|
6
|
+
};
|
|
7
|
+
export declare const respondWithInsufficientBalance: () => {
|
|
8
|
+
fetch: typeof fetch;
|
|
9
|
+
sentRequest: () => Request;
|
|
10
|
+
};
|
|
11
|
+
export declare const rejectWith: (error: unknown) => Fetch;
|
|
12
|
+
export declare const hangUntilAborted: () => Fetch;
|
|
13
|
+
export declare const createBetResponse: (endBetData: Record<string, unknown>) => {
|
|
14
|
+
id: string;
|
|
15
|
+
nonce: number;
|
|
16
|
+
amount: string;
|
|
17
|
+
payout: string;
|
|
18
|
+
userId: string;
|
|
19
|
+
gameId: string;
|
|
20
|
+
multiplier: string;
|
|
21
|
+
tenantId: string;
|
|
22
|
+
clientSeed: string;
|
|
23
|
+
randomValue: null;
|
|
24
|
+
proof: null;
|
|
25
|
+
afterBalance: string;
|
|
26
|
+
tenantUserId: string;
|
|
27
|
+
betActions: {
|
|
28
|
+
type: string;
|
|
29
|
+
data: Record<string, unknown>;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
export {};
|
package/dist/utils/animate.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.
|
|
3
3
|
*/
|
|
4
4
|
export declare function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: KeyframeAnimationOptions): Promise<unknown>;
|
|
5
|
-
/** Parses a CSS duration
|
|
6
|
-
export declare function parseDuration(
|
|
5
|
+
/** Parses a CSS duration into milliseconds, or null when it is empty, unparseable or negative. */
|
|
6
|
+
export declare function parseDuration(duration: string): number | null;
|
|
7
7
|
/** Tells if the user has enabled the "reduced motion" setting in their browser or OS. */
|
|
8
8
|
export declare function prefersReducedMotion(): boolean;
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betorigami/game-ui-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "The Lit components, controllers, translations and wire types shared by every Origami game UI",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@betorigami/game-calculations": "11.0.1",
|
|
29
29
|
"@betorigami/guard": "^2.0.7",
|
|
30
|
-
"lottie-web": "^5.13.0",
|
|
31
30
|
"web-haptics": "^0.0.6",
|
|
32
31
|
"zod": "4.3.6"
|
|
33
32
|
},
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
export declare class LottieIcon extends OrigamiElement {
|
|
3
|
-
static styles: import('lit').CSSResult;
|
|
4
|
-
src: string;
|
|
5
|
-
size: string;
|
|
6
|
-
triggerSelector: string;
|
|
7
|
-
active: boolean;
|
|
8
|
-
autoplay: boolean;
|
|
9
|
-
tone: 'default' | 'success' | 'error';
|
|
10
|
-
private animation;
|
|
11
|
-
private containerRef;
|
|
12
|
-
private abortController;
|
|
13
|
-
private lottieModule;
|
|
14
|
-
connectedCallback(): Promise<void>;
|
|
15
|
-
disconnectedCallback(): void;
|
|
16
|
-
private initialize;
|
|
17
|
-
private loadLottieModule;
|
|
18
|
-
private loadAnimationData;
|
|
19
|
-
private setupAnimation;
|
|
20
|
-
private setupTriggers;
|
|
21
|
-
private playAnimation;
|
|
22
|
-
private cleanup;
|
|
23
|
-
render(): import('lit').TemplateResult<1>;
|
|
24
|
-
}
|