@simple-parlay/components 1.30.6-pre.7 → 1.30.6-pre.9

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.
Files changed (57) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +515 -429
  4. package/dist/react/components/GamePage.d.ts +3 -1
  5. package/dist/react/components/GameSelector.d.ts +9 -1
  6. package/dist/react/components/GameShelfCatalogue.d.ts +8 -0
  7. package/dist/react/components/GameShowcaseCatalogue.d.ts +8 -0
  8. package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
  9. package/dist/react/components/PlaceEntryProvider.d.ts +9 -4
  10. package/dist/react/components/PlaybookChooser.d.ts +7 -0
  11. package/dist/react/components/SafetyNetPage.d.ts +4 -1
  12. package/dist/react/index.cjs +1 -0
  13. package/dist/react/index.d.ts +19 -0
  14. package/dist/react/index.mjs +515 -429
  15. package/dist/react-native/components/GamePage.d.ts +4 -1
  16. package/dist/react-native/components/GameSelector.d.ts +9 -1
  17. package/dist/react-native/components/GameShelfCatalogue.d.ts +7 -0
  18. package/dist/react-native/components/PlaceEntryProvider.d.ts +9 -4
  19. package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
  20. package/dist/react-native/components/SafetyNetPage.d.ts +4 -1
  21. package/dist/react-native/index.cjs +1 -0
  22. package/dist/react-native/index.d.ts +19 -0
  23. package/dist/react-native/index.mjs +474 -438
  24. package/dist/shared/api-client.d.ts +3 -3
  25. package/dist/shared/dense-ui.d.ts +2 -0
  26. package/dist/shared/game-artwork.d.ts +61 -0
  27. package/dist/shared/game-icons.d.ts +6 -3
  28. package/dist/shared/game-library.d.ts +9 -3
  29. package/dist/shared/game-shelf-artwork.d.ts +3 -0
  30. package/dist/shared/game-shelf-presentation.d.ts +42 -0
  31. package/dist/shared/game-variants.d.ts +5 -0
  32. package/dist/shared/hooks.d.ts +3 -3
  33. package/dist/shared/how-to-play-html.d.ts +1 -1
  34. package/dist/shared/how-to-play-logo.d.ts +1 -1
  35. package/dist/shared/playbook.d.ts +29 -0
  36. package/dist/shared/selection-variants.d.ts +1 -1
  37. package/dist/shared/themes.d.ts +20 -0
  38. package/dist/shared/types.d.ts +11 -2
  39. package/dist/shared/ui-variant.d.ts +4 -2
  40. package/dist/shared/utils.d.ts +4 -4
  41. package/package.json +6 -12
  42. package/dist/index.js +0 -1
  43. package/dist/react/components/GameSetBetPage.d.ts +0 -21
  44. package/dist/react/components/LadderPage.d.ts +0 -21
  45. package/dist/react/components/MirrorPage.d.ts +0 -21
  46. package/dist/react/components/PickYourDividendPage.d.ts +0 -21
  47. package/dist/react/components/SixAgainPage.d.ts +0 -16
  48. package/dist/react/game-library.d.ts +0 -21
  49. package/dist/react/index.js +0 -1
  50. package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
  51. package/dist/react-native/components/LadderPage.d.ts +0 -19
  52. package/dist/react-native/components/MirrorPage.d.ts +0 -19
  53. package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
  54. package/dist/react-native/components/SixAgainPage.d.ts +0 -14
  55. package/dist/react-native/game-library.d.ts +0 -21
  56. package/dist/react-native/index.js +0 -1
  57. package/dist/shared/call-artwork.d.ts +0 -2
@@ -1,5 +1,8 @@
1
+ import { GameVariant } from '../../shared/game-variants';
1
2
  import { GameFlow } from '../../shared/game-flow';
2
3
  export interface GamePageProps {
4
+ /** Overrides the provider game layout. Native supports `shelf`. */
5
+ gameVariant?: GameVariant;
3
6
  /** Called after a game is selected (e.g. navigate to selections screen) */
4
7
  onSelectGame?: () => void;
5
8
  /**
@@ -39,4 +42,4 @@ export declare function GamePageActions({ onCancel, onSelectGame }: {
39
42
  onCancel?: () => void;
40
43
  onSelectGame?: () => void;
41
44
  }): import("react/jsx-runtime").JSX.Element | null;
42
- export declare function GamePage({ onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter }: GamePageProps): import("react/jsx-runtime").JSX.Element;
45
+ export declare function GamePage({ gameVariant, onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter }: GamePageProps): import("react/jsx-runtime").JSX.Element;
@@ -18,4 +18,12 @@ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount,
18
18
  bodyFont: string | undefined;
19
19
  headingFont: string | undefined;
20
20
  }): import("react/jsx-runtime").JSX.Element | null;
21
- export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
21
+ /** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
22
+ export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
23
+ iconUrl: string;
24
+ size: number;
25
+ brandColor: string;
26
+ iconColor: string;
27
+ accentColor?: string;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ 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,7 @@
1
+ import { CallGameCatalogueProps } from '../../shared/dense-ui';
2
+ /**
3
+ * Filterable cover grid with a mobile details sheet and a wide side preview.
4
+ */
5
+ export declare function GameShelfCatalogue({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading, onBack }: CallGameCatalogueProps & {
6
+ onBack?: () => void;
7
+ }): 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';
@@ -7,7 +8,7 @@ import { YesNoLabels } from '../../shared/utils';
7
8
  import { Game, Proposition, SportSummary, GameEntry, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
8
9
  import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
9
10
  import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
10
- import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule } from '../../shared/types';
11
+ import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
11
12
  import { SelectionVariant } from '../../shared/selection-variants';
12
13
  import { useCorrelationSteering } from '../../shared/correlation-steering';
13
14
  import { SameGameMultiEvent } from '../../shared/same-game-multi';
@@ -95,6 +96,8 @@ export interface PlaceEntryContextValue {
95
96
  uiVariant?: UiVariant;
96
97
  /** Proposition layout override; undefined follows the UI variant. */
97
98
  selectionVariant?: SelectionVariant;
99
+ /** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
100
+ gameVariant?: GameVariant;
98
101
  /** Drop the per-fixture swipe deck the variant layouts offer. */
99
102
  disableEventSwipe?: boolean;
100
103
  /** Let players star a sport in the rail to pin it up front (per device). Off by default. */
@@ -104,7 +107,7 @@ export interface PlaceEntryContextValue {
104
107
  initialEventId?: string;
105
108
  initialEventLabel?: string;
106
109
  sportBaseKey?: string;
107
- gameCategory?: 'sports' | 'casino' | 'racing' | 'prediction';
110
+ gameCategory?: GameCategory;
108
111
  screenSize: ScreenSize;
109
112
  eventFilterActive: boolean;
110
113
  eventFilterLabel?: string;
@@ -143,7 +146,7 @@ export interface PlaceEntryProviderProps {
143
146
  demoEntries?: GameEntry[];
144
147
  /** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
145
148
  demoMaxPayouts?: Record<number, TopPayoutsResponse>;
146
- gameCategory?: 'sports' | 'casino' | 'racing' | 'prediction';
149
+ gameCategory?: GameCategory;
147
150
  jurisdiction?: string;
148
151
  initialGameId?: number;
149
152
  filterSport?: string;
@@ -157,6 +160,8 @@ export interface PlaceEntryProviderProps {
157
160
  /** Optional presentation. Existing UI remains the default. */
158
161
  uiVariant?: UiVariant;
159
162
  selectionVariant?: SelectionVariant;
163
+ /** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
164
+ gameVariant?: GameVariant;
160
165
  disableEventSwipe?: boolean;
161
166
  /** Let players star a sport in the rail to pin it up front (per device). Off by default. */
162
167
  yesNoLabels?: YesNoLabels;
@@ -172,4 +177,4 @@ export interface PlaceEntryProviderProps {
172
177
  sportDisplayNames?: SportDisplayNameOverrides;
173
178
  categoryDisplayNames?: CategoryDisplayNameOverrides;
174
179
  }
175
- export declare function PlaceEntryProvider({ gameLibrary, 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;
180
+ export declare function PlaceEntryProvider({ gameLibrary, 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. Twin of the web PlaybookChooser.
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;
@@ -6,9 +7,11 @@ export interface SafetyNetPageProps {
6
7
  hideTitle?: boolean;
7
8
  config?: SafetyNetConfig | null;
8
9
  backLabel?: string;
10
+ /** Replace the default game heading; pass null when the host supplies a header. */
11
+ header?: React.ReactNode;
9
12
  }
10
13
  export declare function SafetyNetPageTitle({ onBack, hideActions, }?: {
11
14
  onBack?: () => void;
12
15
  hideActions?: boolean;
13
16
  }): import("react/jsx-runtime").JSX.Element;
14
- export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, }: SafetyNetPageProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, header, config: configOverride, backLabel, }: SafetyNetPageProps): import("react/jsx-runtime").JSX.Element;