@liberfi.io/ui-predict 0.1.138 → 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 +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- 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.
|
|
@@ -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;
|
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.
|
|
@@ -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;
|