@simple-parlay/components 2.0.0 → 2.0.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.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +7 -7
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.mjs +6 -6
- package/dist/react-native/components/HowToPlayButton.d.ts +11 -1
- package/dist/react-native/components/PlaceEntryProvider.d.ts +5 -1
- package/dist/react-native/index.cjs +1 -1
- package/dist/react-native/index.mjs +514 -514
- package/dist/shared/selection-actions.d.ts +3 -1
- package/package.json +3 -8
|
@@ -95,6 +95,8 @@ export interface LiveSlipInput {
|
|
|
95
95
|
stake: number;
|
|
96
96
|
/** Dividend for this many picks, normalised to a $20 bet. */
|
|
97
97
|
payout20?: number;
|
|
98
|
+
/** Game whose rounding rule (round_payouts / round_to) applies to the rescaled dividend. */
|
|
99
|
+
game?: Game | null;
|
|
98
100
|
}
|
|
99
101
|
export interface LiveSlip {
|
|
100
102
|
legs: LiveSlipLeg[];
|
|
@@ -109,7 +111,7 @@ export interface LiveSlip {
|
|
|
109
111
|
* The bottom slip: every pick becomes a numbered leg tile, and the stake drives
|
|
110
112
|
* a dividend that moves on each pick. Dead until the minimum is reached.
|
|
111
113
|
*/
|
|
112
|
-
export declare function buildLiveSlip({ selections, order, minReq, maxReq, stake, payout20, }: LiveSlipInput): LiveSlip;
|
|
114
|
+
export declare function buildLiveSlip({ selections, order, minReq, maxReq, stake, payout20, game, }: LiveSlipInput): LiveSlip;
|
|
113
115
|
/**
|
|
114
116
|
* Picks keep the order they were made in: existing legs hold their number, new
|
|
115
117
|
* ones land on the end. Returns `prev` untouched when nothing moved.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-parlay/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "UI components, hooks, and utilities for React and React Native",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"test:native": "vitest run --project react-native --reporter=verbose",
|
|
45
45
|
"test:parity": "vitest run --project parity --reporter=verbose",
|
|
46
46
|
"test:release": "vitest run --project release --reporter=verbose",
|
|
47
|
+
"test:bundle": "vitest run --project bundle --reporter=verbose",
|
|
47
48
|
"test:e2e": "playwright test",
|
|
48
49
|
"test:e2e:ui": "playwright test --ui",
|
|
49
50
|
"test:visual": "playwright test --config playwright.visual.config.ts",
|
|
@@ -68,13 +69,7 @@
|
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"react": ">=18.0.0",
|
|
70
71
|
"react-dom": ">=18.0.0",
|
|
71
|
-
"react-native-svg": ">=13.0.0"
|
|
72
|
-
"react-native-webview": ">=13.0.0"
|
|
73
|
-
},
|
|
74
|
-
"peerDependenciesMeta": {
|
|
75
|
-
"react-native-webview": {
|
|
76
|
-
"optional": true
|
|
77
|
-
}
|
|
72
|
+
"react-native-svg": ">=13.0.0"
|
|
78
73
|
},
|
|
79
74
|
"devDependencies": {
|
|
80
75
|
"@playwright/test": "^1.59.1",
|