@simple-parlay/components 1.30.6-pre.7 → 1.30.6-pre.8
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 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +485 -429
- package/dist/react/components/GamePage.d.ts +3 -1
- package/dist/react/components/GameSelector.d.ts +9 -1
- package/dist/react/components/GameShelfCatalogue.d.ts +8 -0
- package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
- package/dist/react/components/PlaceEntryProvider.d.ts +9 -4
- package/dist/react/components/PlaybookChooser.d.ts +7 -0
- package/dist/react/components/SafetyNetPage.d.ts +4 -1
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.ts +19 -0
- package/dist/react/index.mjs +485 -429
- package/dist/react-native/components/GamePage.d.ts +4 -1
- package/dist/react-native/components/GameSelector.d.ts +9 -1
- package/dist/react-native/components/GameShelfCatalogue.d.ts +7 -0
- package/dist/react-native/components/PlaceEntryProvider.d.ts +9 -4
- package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
- package/dist/react-native/components/SafetyNetPage.d.ts +4 -1
- package/dist/react-native/index.cjs +1 -0
- package/dist/react-native/index.d.ts +19 -0
- package/dist/react-native/index.mjs +474 -438
- package/dist/shared/api-client.d.ts +3 -3
- package/dist/shared/dense-ui.d.ts +2 -0
- package/dist/shared/game-artwork.d.ts +41 -0
- package/dist/shared/game-icons.d.ts +6 -3
- package/dist/shared/game-library.d.ts +9 -3
- package/dist/shared/game-shelf-artwork.d.ts +3 -0
- package/dist/shared/game-shelf-presentation.d.ts +42 -0
- package/dist/shared/game-variants.d.ts +5 -0
- package/dist/shared/hooks.d.ts +3 -3
- package/dist/shared/how-to-play-html.d.ts +1 -1
- package/dist/shared/how-to-play-logo.d.ts +1 -1
- package/dist/shared/playbook.d.ts +29 -0
- package/dist/shared/selection-variants.d.ts +1 -1
- package/dist/shared/themes.d.ts +20 -0
- package/dist/shared/types.d.ts +9 -2
- package/dist/shared/ui-variant.d.ts +4 -2
- package/dist/shared/utils.d.ts +4 -4
- package/package.json +6 -12
- package/dist/index.js +0 -1
- package/dist/react/components/GameSetBetPage.d.ts +0 -21
- package/dist/react/components/LadderPage.d.ts +0 -21
- package/dist/react/components/MirrorPage.d.ts +0 -21
- package/dist/react/components/PickYourDividendPage.d.ts +0 -21
- package/dist/react/components/SixAgainPage.d.ts +0 -16
- package/dist/react/game-library.d.ts +0 -21
- package/dist/react/index.js +0 -1
- package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
- package/dist/react-native/components/LadderPage.d.ts +0 -19
- package/dist/react-native/components/MirrorPage.d.ts +0 -19
- package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
- package/dist/react-native/components/SixAgainPage.d.ts +0 -14
- package/dist/react-native/game-library.d.ts +0 -21
- package/dist/react-native/index.js +0 -1
- package/dist/shared/call-artwork.d.ts +0 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
1
2
|
import { GameFlow } from '../../shared/game-flow';
|
|
2
3
|
export interface GamePageProps {
|
|
4
|
+
gameVariant?: GameVariant;
|
|
3
5
|
/** Called after a game is selected (e.g. navigate to selections page) */
|
|
4
6
|
onSelectGame?: () => void;
|
|
5
7
|
onGameSetup?: (flow: GameFlow) => void;
|
|
@@ -37,4 +39,4 @@ export declare function GamePageActions({ onCancel, className }: {
|
|
|
37
39
|
onSelectGame?: () => void;
|
|
38
40
|
className?: string;
|
|
39
41
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
-
export declare function GamePage({ onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function GamePage({ gameVariant, onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,12 @@ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount,
|
|
|
17
17
|
bodyFont: string | undefined;
|
|
18
18
|
headingFont: string | undefined;
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
-
|
|
20
|
+
/** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
|
|
21
|
+
export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
|
|
22
|
+
iconUrl: string;
|
|
23
|
+
size: number;
|
|
24
|
+
brandColor: string;
|
|
25
|
+
iconColor: string;
|
|
26
|
+
accentColor?: string;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, onBack, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
/**
|
|
3
|
+
* Filterable cover grid. Mobile details open in a bottom sheet; wide layouts
|
|
4
|
+
* keep a side preview. Browsing never commits a game until Choose is pressed.
|
|
5
|
+
*/
|
|
6
|
+
export declare function GameShelfCatalogue({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading, onBack }: CallGameCatalogueProps & {
|
|
7
|
+
onBack?: () => void;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
2
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
3
|
+
/** Browsing is local; only Continue commits a game to the host flow. */
|
|
4
|
+
export declare function GameVariantCatalogue({ variant, games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading, tierFilter, showTier, showCategory }: CallGameCatalogueProps & {
|
|
5
|
+
variant: GameVariant;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
1
2
|
import { GameLibrary } from '../../shared/game-library';
|
|
2
3
|
import { GameFlow } from '../../shared/game-flow';
|
|
3
4
|
import { PreviewCallPayouts } from '../../shared/use-call-payouts';
|
|
@@ -8,7 +9,7 @@ import { YesNoLabels } from '../../shared/utils';
|
|
|
8
9
|
import { Game, Proposition, SportSummary, GameEntry, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
|
|
9
10
|
import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
|
|
10
11
|
import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
|
|
11
|
-
import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule } from '../../shared/types';
|
|
12
|
+
import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
|
|
12
13
|
import { SelectionVariant } from '../../shared/selection-variants';
|
|
13
14
|
import { useCorrelationSteering } from '../../shared/correlation-steering';
|
|
14
15
|
import { SameGameMultiEvent } from '../../shared/same-game-multi';
|
|
@@ -98,6 +99,8 @@ export interface PlaceEntryContextValue {
|
|
|
98
99
|
uiVariant?: UiVariant;
|
|
99
100
|
/** Proposition layout override; undefined follows the UI variant. */
|
|
100
101
|
selectionVariant?: SelectionVariant;
|
|
102
|
+
/** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
|
|
103
|
+
gameVariant?: GameVariant;
|
|
101
104
|
/** Drop the per-fixture swipe deck the variant layouts offer. */
|
|
102
105
|
disableEventSwipe?: boolean;
|
|
103
106
|
enableSportFavourites?: boolean;
|
|
@@ -106,7 +109,7 @@ export interface PlaceEntryContextValue {
|
|
|
106
109
|
initialEventId?: string;
|
|
107
110
|
initialEventLabel?: string;
|
|
108
111
|
sportBaseKey?: string;
|
|
109
|
-
gameCategory?:
|
|
112
|
+
gameCategory?: GameCategory;
|
|
110
113
|
screenSize: ScreenSize;
|
|
111
114
|
eventFilterActive: boolean;
|
|
112
115
|
eventFilterLabel?: string;
|
|
@@ -155,7 +158,7 @@ export interface PlaceEntryProviderProps {
|
|
|
155
158
|
demoEntries?: GameEntry[];
|
|
156
159
|
/** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
|
|
157
160
|
demoMaxPayouts?: Record<number, TopPayoutsResponse>;
|
|
158
|
-
gameCategory?:
|
|
161
|
+
gameCategory?: GameCategory;
|
|
159
162
|
jurisdiction?: string;
|
|
160
163
|
initialGameId?: number;
|
|
161
164
|
filterSport?: string;
|
|
@@ -169,6 +172,8 @@ export interface PlaceEntryProviderProps {
|
|
|
169
172
|
/** Optional presentation. Existing UI remains the default. */
|
|
170
173
|
uiVariant?: UiVariant;
|
|
171
174
|
selectionVariant?: SelectionVariant;
|
|
175
|
+
/** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
|
|
176
|
+
gameVariant?: GameVariant;
|
|
172
177
|
disableEventSwipe?: boolean;
|
|
173
178
|
yesNoLabels?: YesNoLabels;
|
|
174
179
|
enableSportFavourites?: boolean;
|
|
@@ -185,4 +190,4 @@ export interface PlaceEntryProviderProps {
|
|
|
185
190
|
/** Map entry categories to UI labels. */
|
|
186
191
|
categoryDisplayNames?: CategoryDisplayNameOverrides;
|
|
187
192
|
}
|
|
188
|
-
export declare function PlaceEntryProvider({ gameLibrary, apiClient: suppliedApiClient, scopePropositionsToSport, showCorrelationDebug, apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, uiVariant, selectionVariant, disableEventSwipe, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
193
|
+
export declare function PlaceEntryProvider({ gameLibrary, apiClient: suppliedApiClient, scopePropositionsToSport, showCorrelationDebug, apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, uiVariant, selectionVariant, gameVariant, disableEventSwipe, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
/**
|
|
3
|
+
* Playbook chooser: one featured hero (press-to-play tile, name, tagline,
|
|
4
|
+
* payout hook) above a comparison grid of every game. Tapping a card previews
|
|
5
|
+
* it in the hero; the tile plays it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PlaybookChooser({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SafetyNetConfig } from '../../shared/safety-net';
|
|
2
3
|
export interface SafetyNetPageProps {
|
|
3
4
|
onQuickPick?: () => void;
|
|
@@ -7,10 +8,12 @@ export interface SafetyNetPageProps {
|
|
|
7
8
|
config?: SafetyNetConfig | null;
|
|
8
9
|
backLabel?: string;
|
|
9
10
|
className?: string;
|
|
11
|
+
/** Replace the default game heading; pass null when the host supplies a header. */
|
|
12
|
+
header?: React.ReactNode;
|
|
10
13
|
}
|
|
11
14
|
export declare function SafetyNetPageTitle({ className, onBack, hideActions, }: {
|
|
12
15
|
className?: string;
|
|
13
16
|
onBack?: () => void;
|
|
14
17
|
hideActions?: boolean;
|
|
15
18
|
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, className, }: SafetyNetPageProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, header, config: configOverride, backLabel, className, }: SafetyNetPageProps): import("react/jsx-runtime").JSX.Element;
|