@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,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;
|