@liberfi.io/ui-predict 0.1.137 → 0.1.139
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.mts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +50 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare global {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
declare const _default: "0.1.
|
|
16
|
+
declare const _default: "0.1.139";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* A single category entry in the static navigation model.
|
|
@@ -133,7 +133,7 @@ interface EventsPageProps {
|
|
|
133
133
|
/** Optional background image for the Hero area. */
|
|
134
134
|
bgImageSrc?: string;
|
|
135
135
|
}
|
|
136
|
-
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc: _bgImageSrc, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
137
137
|
|
|
138
138
|
interface EventsWidgetProps {
|
|
139
139
|
/** Category / tag selection from the categories widget. */
|
|
@@ -299,6 +299,7 @@ interface UseTradeFormResult {
|
|
|
299
299
|
potentialProfit: number;
|
|
300
300
|
usdcBalance: number | null;
|
|
301
301
|
isBalanceLoading: boolean;
|
|
302
|
+
isMarketDataLoading: boolean;
|
|
302
303
|
isSubmitting: boolean;
|
|
303
304
|
validation: TradeFormValidation;
|
|
304
305
|
supportsLimitOrder: boolean;
|
|
@@ -477,6 +478,7 @@ interface TradeFormUIProps {
|
|
|
477
478
|
estimatedCost: number;
|
|
478
479
|
potentialPayout: number;
|
|
479
480
|
potentialProfit: number;
|
|
481
|
+
isMarketDataLoading: boolean;
|
|
480
482
|
isSubmitting: boolean;
|
|
481
483
|
usdcBalance: number | null;
|
|
482
484
|
isBalanceLoading: boolean;
|
|
@@ -499,7 +501,7 @@ interface TradeFormUIProps {
|
|
|
499
501
|
onCustomDurationUnitChange: (u: DurationUnit) => void;
|
|
500
502
|
onSubmit: () => void;
|
|
501
503
|
}
|
|
502
|
-
declare function TradeFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, shares, potentialProfit, potentialPayout, estimatedCost, usdcBalance, isBalanceLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
504
|
+
declare function TradeFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, shares, potentialProfit, potentialPayout, estimatedCost, usdcBalance, isBalanceLoading, isMarketDataLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
503
505
|
|
|
504
506
|
interface TradeFormWidgetProps {
|
|
505
507
|
event?: PredictEvent;
|
|
@@ -535,6 +537,7 @@ interface UseSellFormResult {
|
|
|
535
537
|
limitPrice: number;
|
|
536
538
|
shares: number;
|
|
537
539
|
estimatedReturn: number;
|
|
540
|
+
isMarketDataLoading: boolean;
|
|
538
541
|
isSubmitting: boolean;
|
|
539
542
|
validation: TradeFormValidation;
|
|
540
543
|
supportsLimitOrder: boolean;
|
|
@@ -573,6 +576,7 @@ interface SellFormUIProps {
|
|
|
573
576
|
quantity: number;
|
|
574
577
|
limitPrice: number;
|
|
575
578
|
estimatedReturn: number;
|
|
579
|
+
isMarketDataLoading: boolean;
|
|
576
580
|
isSubmitting: boolean;
|
|
577
581
|
isValid: boolean;
|
|
578
582
|
validationErrors: string[];
|
|
@@ -600,7 +604,7 @@ interface SellFormUIProps {
|
|
|
600
604
|
onCustomDurationUnitChange: (u: DurationUnit) => void;
|
|
601
605
|
onSubmit: () => void;
|
|
602
606
|
}
|
|
603
|
-
declare function SellFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, estimatedReturn, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, totalShares, activeOrderShares, availableShares, isAvailableLoading, precision, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSellAll, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: SellFormUIProps): react_jsx_runtime.JSX.Element;
|
|
607
|
+
declare function SellFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, estimatedReturn, isMarketDataLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, totalShares, activeOrderShares, availableShares, isAvailableLoading, precision, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSellAll, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: SellFormUIProps): react_jsx_runtime.JSX.Element;
|
|
604
608
|
|
|
605
609
|
interface SellFormWidgetProps {
|
|
606
610
|
event?: PredictEvent;
|
|
@@ -669,8 +673,14 @@ type SearchEventsButtonProps = {
|
|
|
669
673
|
/** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
|
|
670
674
|
modalParams?: Omit<PredictSearchModalParams, never>;
|
|
671
675
|
className?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Force a display mode instead of auto-detecting via useScreen().
|
|
678
|
+
* Use "desktop" on SSR-visible desktop containers to avoid hydration mismatch.
|
|
679
|
+
* @default "auto"
|
|
680
|
+
*/
|
|
681
|
+
displayMode?: "desktop" | "compact" | "auto";
|
|
672
682
|
};
|
|
673
|
-
declare function SearchEventsButton({ onSelectEvent, modalParams, className, }: SearchEventsButtonProps): react_jsx_runtime.JSX.Element;
|
|
683
|
+
declare function SearchEventsButton({ onSelectEvent, modalParams, className, displayMode, }: SearchEventsButtonProps): react_jsx_runtime.JSX.Element;
|
|
674
684
|
|
|
675
685
|
declare function usePredictSearchHistory(): {
|
|
676
686
|
histories: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare global {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
declare const _default: "0.1.
|
|
16
|
+
declare const _default: "0.1.139";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* A single category entry in the static navigation model.
|
|
@@ -133,7 +133,7 @@ interface EventsPageProps {
|
|
|
133
133
|
/** Optional background image for the Hero area. */
|
|
134
134
|
bgImageSrc?: string;
|
|
135
135
|
}
|
|
136
|
-
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
declare function EventsPage({ onSelect, onSelectOutcome, getEventHref, LinkComponent, onHover, bgImageSrc: _bgImageSrc, }: EventsPageProps): react_jsx_runtime.JSX.Element;
|
|
137
137
|
|
|
138
138
|
interface EventsWidgetProps {
|
|
139
139
|
/** Category / tag selection from the categories widget. */
|
|
@@ -299,6 +299,7 @@ interface UseTradeFormResult {
|
|
|
299
299
|
potentialProfit: number;
|
|
300
300
|
usdcBalance: number | null;
|
|
301
301
|
isBalanceLoading: boolean;
|
|
302
|
+
isMarketDataLoading: boolean;
|
|
302
303
|
isSubmitting: boolean;
|
|
303
304
|
validation: TradeFormValidation;
|
|
304
305
|
supportsLimitOrder: boolean;
|
|
@@ -477,6 +478,7 @@ interface TradeFormUIProps {
|
|
|
477
478
|
estimatedCost: number;
|
|
478
479
|
potentialPayout: number;
|
|
479
480
|
potentialProfit: number;
|
|
481
|
+
isMarketDataLoading: boolean;
|
|
480
482
|
isSubmitting: boolean;
|
|
481
483
|
usdcBalance: number | null;
|
|
482
484
|
isBalanceLoading: boolean;
|
|
@@ -499,7 +501,7 @@ interface TradeFormUIProps {
|
|
|
499
501
|
onCustomDurationUnitChange: (u: DurationUnit) => void;
|
|
500
502
|
onSubmit: () => void;
|
|
501
503
|
}
|
|
502
|
-
declare function TradeFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, shares, potentialProfit, potentialPayout, estimatedCost, usdcBalance, isBalanceLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
504
|
+
declare function TradeFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, shares, potentialProfit, potentialPayout, estimatedCost, usdcBalance, isBalanceLoading, isMarketDataLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
503
505
|
|
|
504
506
|
interface TradeFormWidgetProps {
|
|
505
507
|
event?: PredictEvent;
|
|
@@ -535,6 +537,7 @@ interface UseSellFormResult {
|
|
|
535
537
|
limitPrice: number;
|
|
536
538
|
shares: number;
|
|
537
539
|
estimatedReturn: number;
|
|
540
|
+
isMarketDataLoading: boolean;
|
|
538
541
|
isSubmitting: boolean;
|
|
539
542
|
validation: TradeFormValidation;
|
|
540
543
|
supportsLimitOrder: boolean;
|
|
@@ -573,6 +576,7 @@ interface SellFormUIProps {
|
|
|
573
576
|
quantity: number;
|
|
574
577
|
limitPrice: number;
|
|
575
578
|
estimatedReturn: number;
|
|
579
|
+
isMarketDataLoading: boolean;
|
|
576
580
|
isSubmitting: boolean;
|
|
577
581
|
isValid: boolean;
|
|
578
582
|
validationErrors: string[];
|
|
@@ -600,7 +604,7 @@ interface SellFormUIProps {
|
|
|
600
604
|
onCustomDurationUnitChange: (u: DurationUnit) => void;
|
|
601
605
|
onSubmit: () => void;
|
|
602
606
|
}
|
|
603
|
-
declare function SellFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, estimatedReturn, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, totalShares, activeOrderShares, availableShares, isAvailableLoading, precision, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSellAll, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: SellFormUIProps): react_jsx_runtime.JSX.Element;
|
|
607
|
+
declare function SellFormUI({ event, market, variant, outcome, orderType, quantity, limitPrice, estimatedReturn, isMarketDataLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, totalShares, activeOrderShares, availableShares, isAvailableLoading, precision, expirationEnabled, expirationPreset, customDuration, customDurationUnit, onOutcomeChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSellAll, onExpirationEnabledChange, onExpirationPresetChange, onCustomDurationChange, onCustomDurationUnitChange, onSubmit, }: SellFormUIProps): react_jsx_runtime.JSX.Element;
|
|
604
608
|
|
|
605
609
|
interface SellFormWidgetProps {
|
|
606
610
|
event?: PredictEvent;
|
|
@@ -669,8 +673,14 @@ type SearchEventsButtonProps = {
|
|
|
669
673
|
/** Params forwarded to the search modal (getEventHref, LinkComponent, onHover) */
|
|
670
674
|
modalParams?: Omit<PredictSearchModalParams, never>;
|
|
671
675
|
className?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Force a display mode instead of auto-detecting via useScreen().
|
|
678
|
+
* Use "desktop" on SSR-visible desktop containers to avoid hydration mismatch.
|
|
679
|
+
* @default "auto"
|
|
680
|
+
*/
|
|
681
|
+
displayMode?: "desktop" | "compact" | "auto";
|
|
672
682
|
};
|
|
673
|
-
declare function SearchEventsButton({ onSelectEvent, modalParams, className, }: SearchEventsButtonProps): react_jsx_runtime.JSX.Element;
|
|
683
|
+
declare function SearchEventsButton({ onSelectEvent, modalParams, className, displayMode, }: SearchEventsButtonProps): react_jsx_runtime.JSX.Element;
|
|
674
684
|
|
|
675
685
|
declare function usePredictSearchHistory(): {
|
|
676
686
|
histories: string[];
|