@simple-parlay/components 1.30.6-pre.2 → 1.30.6-pre.4
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +318 -317
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/GameSelector.d.ts +1 -1
- package/dist/react/components/MultiLegTable.d.ts +3 -1
- package/dist/react/components/PlaceEntryProvider.d.ts +3 -2
- package/dist/react/components/SelectionReview.d.ts +1 -1
- package/dist/react/components/SportSelector.d.ts +15 -2
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +318 -317
- package/dist/react-native/components/EntrySubmission.d.ts +1 -1
- package/dist/react-native/components/GameSelector.d.ts +1 -1
- package/dist/react-native/components/MultiLegTable.d.ts +3 -1
- package/dist/react-native/components/PlaceEntryProvider.d.ts +3 -2
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SportSelector.d.ts +7 -2
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +411 -407
- package/dist/shared/api-client.d.ts +2 -2
- package/dist/shared/game-flow.d.ts +12 -1
- package/dist/shared/game-icons.d.ts +1 -1
- package/dist/shared/game-set-bet.d.ts +0 -1
- package/dist/shared/hooks.d.ts +2 -2
- package/dist/shared/menu-placement.d.ts +26 -0
- package/dist/shared/mirror.d.ts +43 -3
- package/dist/shared/picker-brand.d.ts +0 -6
- package/dist/shared/selection-actions.d.ts +14 -4
- package/dist/shared/selection-caps.d.ts +51 -0
- package/dist/shared/swipe-deck.d.ts +1 -1
- package/dist/shared/types.d.ts +20 -2
- package/dist/shared/utils.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EntrySubmissionProps } from '../types';
|
|
2
|
-
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount,
|
|
|
17
17
|
bodyFont: string | undefined;
|
|
18
18
|
headingFont: string | undefined;
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
-
export declare function GameSelector({ games, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Game } from '../../shared/types';
|
|
1
2
|
export interface MultiLegTableTier {
|
|
2
3
|
count: number;
|
|
3
4
|
payout20: number;
|
|
4
5
|
}
|
|
5
6
|
export interface MultiLegTableProps {
|
|
6
7
|
tiers: MultiLegTableTier[];
|
|
8
|
+
game?: Game | null;
|
|
7
9
|
selectedCount?: number;
|
|
8
10
|
onSelect: (count: number) => void;
|
|
9
11
|
colors: {
|
|
@@ -37,4 +39,4 @@ export interface MultiLegTableProps {
|
|
|
37
39
|
* Renders a compact Legs / Dividend / $X returns table identical to the
|
|
38
40
|
* one on the Game Page. Used by both GameSelector and ConfirmPage.
|
|
39
41
|
*/
|
|
40
|
-
export declare function MultiLegTable({ tiers, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function MultiLegTable({ tiers, game, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -61,6 +61,7 @@ export interface PlaceEntryContextValue {
|
|
|
61
61
|
clearSelectedGame: () => void;
|
|
62
62
|
toggleSelection: (id: number, answer: 'yes' | 'no') => void;
|
|
63
63
|
quickPickGame: (game: Game, count: number, stake?: number) => void;
|
|
64
|
+
quickPickSelections: (count: number) => number;
|
|
64
65
|
selectedCategory: string | null;
|
|
65
66
|
setSelectedCategory: (category: string | null) => void;
|
|
66
67
|
selectedSport: string | null;
|
|
@@ -86,7 +87,7 @@ export interface PlaceEntryContextValue {
|
|
|
86
87
|
initialEventId?: string;
|
|
87
88
|
initialEventLabel?: string;
|
|
88
89
|
sportBaseKey?: string;
|
|
89
|
-
gameCategory?: 'sports' | 'casino' | 'racing';
|
|
90
|
+
gameCategory?: 'sports' | 'casino' | 'racing' | 'prediction';
|
|
90
91
|
screenSize: ScreenSize;
|
|
91
92
|
eventFilterActive: boolean;
|
|
92
93
|
eventFilterLabel?: string;
|
|
@@ -127,7 +128,7 @@ export interface PlaceEntryProviderProps {
|
|
|
127
128
|
demoEntries?: GameEntry[];
|
|
128
129
|
/** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
|
|
129
130
|
demoMaxPayouts?: Record<number, TopPayoutsResponse>;
|
|
130
|
-
gameCategory?: 'sports' | 'casino' | 'racing';
|
|
131
|
+
gameCategory?: 'sports' | 'casino' | 'racing' | 'prediction';
|
|
131
132
|
jurisdiction?: string;
|
|
132
133
|
initialGameId?: number;
|
|
133
134
|
filterSport?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SelectionReviewProps } from '../types';
|
|
2
|
-
export declare function SelectionReview({ propositions, selections, onToggleSelection, onNext, onBack, theme: themeProp, colorScheme, hideActions, renderTeamLogo, allowAnswerToggle, gameName, potentialPayout, defaultExpanded, addMorePicks, }: SelectionReviewProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SelectionReview({ propositions, selections, onToggleSelection, onNext, onBack, theme: themeProp, colorScheme, hideActions, renderTeamLogo, allowAnswerToggle, gameName, potentialPayout, defaultExpanded, componentById, addMorePicks, }: SelectionReviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SportSelectorProps, Proposition } from '../../shared/types';
|
|
2
|
+
import { SportSelectorProps, Proposition, RenderTeamLogo } from '../../shared/types';
|
|
3
3
|
/** A header key names two teams when it splits on " vs " — `MatchupTeams`' own test. */
|
|
4
4
|
export declare function isMatchupKey(key?: string | null): boolean;
|
|
5
5
|
/** The runner's silk, for single-event rows; under an "A vs B" header the logos are already up top. */
|
|
@@ -12,7 +12,7 @@ export declare function MatchupTeams({ matchup, renderTeamLogo, altText, mutedCo
|
|
|
12
12
|
mutedColor: string;
|
|
13
13
|
size?: 'sm' | 'md';
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function CompositePropositionText({ prop, colors: c, size, componentById, textClass: textClassOverride, textColor, }: {
|
|
15
|
+
export declare function CompositePropositionText({ prop, colors: c, size, componentById, textClass: textClassOverride, textColor, eventLabels, renderTeamLogo, }: {
|
|
16
16
|
prop: Proposition;
|
|
17
17
|
colors: {
|
|
18
18
|
primary: string;
|
|
@@ -28,5 +28,18 @@ export declare function CompositePropositionText({ prop, colors: c, size, compon
|
|
|
28
28
|
textClass?: string;
|
|
29
29
|
/** Replaces `colors.text` on the question itself, legs included. */
|
|
30
30
|
textColor?: string;
|
|
31
|
+
/**
|
|
32
|
+
* How a leg names its fixture. `show` stacks the label above each leg —
|
|
33
|
+
* right where rows have room. `hover` keeps the legs on one line and puts
|
|
34
|
+
* the fixture in the tooltip instead, for compact rows like the slip and
|
|
35
|
+
* the confirm list. Either way the title attribute carries it.
|
|
36
|
+
*/
|
|
37
|
+
eventLabels?: 'show' | 'hover';
|
|
38
|
+
/**
|
|
39
|
+
* Supplied, a leg names its fixture with the two club badges instead of a
|
|
40
|
+
* text chip — far lighter in a row, and the full matchup stays in the
|
|
41
|
+
* tooltip. Falls back to the text chip when the host renders no logos.
|
|
42
|
+
*/
|
|
43
|
+
renderTeamLogo?: RenderTeamLogo;
|
|
31
44
|
}): import("react/jsx-runtime").JSX.Element;
|
|
32
45
|
export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, gameCategory, headerExtra, variant, disableEventSwipe, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
|