@simple-parlay/components 2.2.0 → 2.3.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.
@@ -1,2 +1,2 @@
1
1
  import { GameSelectorProps } from '../types';
2
- export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, onlyListedGames, disableImage, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, onSelectSport, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, onlyListedGames, disableImage, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,7 @@ import { YesNoLabels, EntryCategory } from '../../shared/utils';
10
10
  import { Game, Proposition, SportSummary, GameEntry, GameEntriesProps, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
11
11
  import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
12
12
  import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
13
- import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
13
+ import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory, DeviceContextProp } from '../../shared/types';
14
14
  import { SelectionVariant } from '../../shared/selection-variants';
15
15
  import { SwipeVariant } from '../../shared/swipe-deck';
16
16
  import { useCorrelationSteering } from '../../shared/correlation-steering';
@@ -43,6 +43,7 @@ export interface PlaceEntryContextValue {
43
43
  error: string | null;
44
44
  step: 'game' | 'sport' | 'review' | 'confirm' | 'success';
45
45
  selectedGame: Game | null;
46
+ selectedGameName: string | undefined;
46
47
  selections: Record<number, 'yes' | 'no'>;
47
48
  placedEntry: GameEntry | null;
48
49
  selectedPropositionIds: number[];
@@ -221,6 +222,7 @@ export interface PlaceEntryProviderProps {
221
222
  enableSportFavourites?: boolean;
222
223
  onEntryPlaced?: (entry: GameEntry) => void;
223
224
  onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
225
+ deviceContext?: DeviceContextProp;
224
226
  /** Integrator's own entry id — shown where "Entry #id successfully submitted" names the entry. Set it from `onEntryPlaced`. */
225
227
  entryReference?: string;
226
228
  onCancel?: () => void;
@@ -234,4 +236,4 @@ export interface PlaceEntryProviderProps {
234
236
  /** Map entry categories to UI labels. */
235
237
  categoryDisplayNames?: CategoryDisplayNameOverrides;
236
238
  }
237
- 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, onEntryRule, entryFeatureClient, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, uiVariant, selectionVariant, gameVariant, disableEventSwipe, swipeVariant, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, entryReference, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
239
+ 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, onEntryRule, entryFeatureClient, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, uiVariant, selectionVariant, gameVariant, disableEventSwipe, swipeVariant, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, deviceContext, entryReference, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;