@simple-parlay/components 1.30.6-pre → 1.30.6-pre.2
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +268 -261
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +268 -261
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +287 -280
- package/dist/shared/mirror.d.ts +12 -2
- package/dist/shared/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/shared/mirror.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface MirrorPrize {
|
|
|
34
34
|
oddsOneIn: number;
|
|
35
35
|
}
|
|
36
36
|
export interface MirrorConfig {
|
|
37
|
-
|
|
37
|
+
variant: MirrorVariant;
|
|
38
38
|
legOptions: number[];
|
|
39
39
|
/** Leg count preselected on entry. */
|
|
40
40
|
defaultLegs: number;
|
|
@@ -49,8 +49,16 @@ export interface MirrorConfig {
|
|
|
49
49
|
operatorMargin: number;
|
|
50
50
|
perLegProbability: number;
|
|
51
51
|
}
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* The server rule behind each mirror. They are separate games in the catalogue,
|
|
54
|
+
* not a switch inside one — each carries its own tier, pricing and settlement,
|
|
55
|
+
* so the rule on the game is what says which mirror the player opened.
|
|
56
|
+
*/
|
|
57
|
+
export declare const MIRROR_RULES: Record<MirrorVariantId, string>;
|
|
58
|
+
/** Whether a game is any of the mirrors (all route to the one-screen builder). */
|
|
53
59
|
export declare function isMirrorGame(game: Game | null | undefined): boolean;
|
|
60
|
+
/** Which mirror this game is. Unknown rules fall back to the straight one. */
|
|
61
|
+
export declare function resolveMirrorVariantId(game: Game | null | undefined): MirrorVariantId;
|
|
54
62
|
/**
|
|
55
63
|
* Price a Mirror ticket: what each winning side pays, exact to the cent.
|
|
56
64
|
*
|
|
@@ -72,6 +80,8 @@ export interface MirrorVariant {
|
|
|
72
80
|
minLegs: number;
|
|
73
81
|
waysToWin: string;
|
|
74
82
|
description: string;
|
|
83
|
+
/** One-line hook under the lockup on this mirror's setup page. */
|
|
84
|
+
tagline: string;
|
|
75
85
|
tierNames: string[];
|
|
76
86
|
}
|
|
77
87
|
export declare const MIRROR_VARIANTS: MirrorVariant[];
|
package/dist/shared/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Game, GamePermittedRule, Proposition, QuickPickResult } from './types';
|
|
2
|
-
export declare const DEFAULT_STAKE =
|
|
2
|
+
export declare const DEFAULT_STAKE = 20;
|
|
3
3
|
export declare function stripColumns(count: number, containerWidth: number): number;
|
|
4
4
|
export declare function resolvePrice(price: number | string | {
|
|
5
5
|
amount: number | string;
|