@simple-parlay/components 2.2.1 → 2.3.1
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 +507 -507
- package/dist/react/components/GameSelector.d.ts +1 -1
- package/dist/react/components/PlaceEntryProvider.d.ts +4 -2
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.mjs +507 -507
- package/dist/react/types/index.d.ts +1 -1
- package/dist/react-native/components/GameSelector.d.ts +1 -1
- package/dist/react-native/components/PlaceEntryProvider.d.ts +4 -2
- package/dist/react-native/index.cjs +1 -1
- package/dist/react-native/index.d.ts +1 -1
- package/dist/react-native/index.mjs +545 -545
- package/dist/react-native/types/index.d.ts +1 -1
- package/dist/shared/api-client.d.ts +3 -1
- package/dist/shared/dense-ui.d.ts +1 -1
- package/dist/shared/game-artwork.d.ts +10 -0
- package/dist/shared/game-icons.d.ts +1 -1
- package/dist/shared/hooks.d.ts +2 -1
- package/dist/shared/shelf-covers.d.ts +1 -1
- package/dist/shared/types.d.ts +11 -0
- package/package.json +2 -2
|
@@ -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;
|