@simple-parlay/components 2.2.1 → 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,5 +1,5 @@
1
1
  import { PlaceEntryFlowProps as SharedPlaceEntryFlowProps, GameEntriesProps as SharedGameEntriesProps } from '../../shared/types';
2
- export type { GameFeatureId, EntryRuleAction, EntryFeatureClient, EntryFeatureOffer, EntryFeatureQuote, EntryFeatureQuoteInput, BladeTheme, BladeThemeSet, ColorScheme, ScreenSize, RuleExpressionObject, Game, GameAllocation, SportSummary, Proposition, GameEntry, GameSelectorProps, EntrySubmissionProps, SelectionReviewProps, EvaluateRuleRequest, EvaluateRuleResponse, CalculatePayoutRequest, CalculatePayoutResponse, EntryPreviewRequest, EntryPreviewResponse, TopPayoutEntry, TopPayoutsResponse, ResolvedEntryData, ShareData, PendingBet, QuickPickResult, } from '../../shared/types';
2
+ export type { GameFeatureId, EntryRuleAction, EntryFeatureClient, EntryFeatureOffer, EntryFeatureQuote, EntryFeatureQuoteInput, BladeTheme, BladeThemeSet, ColorScheme, ScreenSize, RuleExpressionObject, Game, GameAllocation, SportSummary, Proposition, GameEntry, DeviceContext, DeviceContextProp, GameSelectorProps, EntrySubmissionProps, SelectionReviewProps, EvaluateRuleRequest, EvaluateRuleResponse, CalculatePayoutRequest, CalculatePayoutResponse, EntryPreviewRequest, EntryPreviewResponse, TopPayoutEntry, TopPayoutsResponse, ResolvedEntryData, ShareData, PendingBet, QuickPickResult, } from '../../shared/types';
3
3
  export interface PlaceEntryFlowProps extends SharedPlaceEntryFlowProps {
4
4
  className?: string;
5
5
  }
@@ -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, }: 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, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -9,7 +9,7 @@ import { YesNoLabels, EntryCategory } from '../../shared/utils';
9
9
  import { Game, Proposition, SportSummary, GameEntry, GameEntriesProps, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
10
10
  import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
11
11
  import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
12
- import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
12
+ import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory, DeviceContextProp } from '../../shared/types';
13
13
  import { SelectionVariant } from '../../shared/selection-variants';
14
14
  import { SwipeVariant } from '../../shared/swipe-deck';
15
15
  import { useCorrelationSteering } from '../../shared/correlation-steering';
@@ -40,6 +40,7 @@ export interface PlaceEntryContextValue {
40
40
  error: string | null;
41
41
  step: 'game' | 'sport' | 'review' | 'confirm' | 'success';
42
42
  selectedGame: Game | null;
43
+ selectedGameName: string | undefined;
43
44
  selections: Record<number, 'yes' | 'no'>;
44
45
  placedEntry: GameEntry | null;
45
46
  selectedPropositionIds: number[];
@@ -210,6 +211,7 @@ export interface PlaceEntryProviderProps {
210
211
  enableSportFavourites?: boolean;
211
212
  onEntryPlaced?: (entry: GameEntry) => void;
212
213
  onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
214
+ deviceContext?: DeviceContextProp;
213
215
  /** Integrator's own entry id — shown where "Entry #id successfully submitted" names the entry. Set it from `onEntryPlaced`. */
214
216
  entryReference?: string;
215
217
  onCancel?: () => void;
@@ -221,4 +223,4 @@ export interface PlaceEntryProviderProps {
221
223
  sportDisplayNames?: SportDisplayNameOverrides;
222
224
  categoryDisplayNames?: CategoryDisplayNameOverrides;
223
225
  }
224
- export declare function PlaceEntryProvider({ gameLibrary, 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;
226
+ export declare function PlaceEntryProvider({ gameLibrary, 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;