@liberfi.io/ui-predict 0.1.84 → 0.1.85
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 +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
declare const _default: "0.1.
|
|
15
|
+
declare const _default: "0.1.85";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A single category entry in the static navigation model.
|
|
@@ -254,6 +254,7 @@ interface UseTradeFormResult {
|
|
|
254
254
|
orderType: OrderType;
|
|
255
255
|
quantity: number;
|
|
256
256
|
limitPrice: number;
|
|
257
|
+
shares: number;
|
|
257
258
|
estimatedCost: number;
|
|
258
259
|
potentialPayout: number;
|
|
259
260
|
potentialProfit: number;
|
|
@@ -406,6 +407,7 @@ interface StandardEvent {
|
|
|
406
407
|
imageUrl?: string;
|
|
407
408
|
}
|
|
408
409
|
interface StandardMarket {
|
|
410
|
+
question: string;
|
|
409
411
|
yesAsk?: number;
|
|
410
412
|
noAsk?: number;
|
|
411
413
|
yesBid?: number;
|
|
@@ -417,11 +419,14 @@ interface StandardMarket {
|
|
|
417
419
|
interface TradeFormUIProps {
|
|
418
420
|
event?: StandardEvent;
|
|
419
421
|
market: StandardMarket;
|
|
422
|
+
/** "bordered" (default) renders with border + rounded container; "flat" omits border (e.g. inside a modal). */
|
|
423
|
+
variant?: "bordered" | "flat";
|
|
420
424
|
outcome: TradeOutcome;
|
|
421
425
|
side: TradeSide;
|
|
422
426
|
orderType: OrderType;
|
|
423
427
|
quantity: number;
|
|
424
428
|
limitPrice: number;
|
|
429
|
+
shares: number;
|
|
425
430
|
estimatedCost: number;
|
|
426
431
|
potentialPayout: number;
|
|
427
432
|
potentialProfit: number;
|
|
@@ -442,16 +447,17 @@ interface TradeFormUIProps {
|
|
|
442
447
|
onLimitPriceChange: (price: number) => void;
|
|
443
448
|
onSubmit: () => void;
|
|
444
449
|
}
|
|
445
|
-
declare function TradeFormUI({ event, market, outcome, side, orderType, quantity, limitPrice, potentialProfit, estimatedCost, usdcBalance, yesTokenBalance, noTokenBalance, isBalanceLoading, isSubmitting, isValid, supportsLimitOrder, kycRequired, kycUrl, onOutcomeChange, onSideChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
450
|
+
declare function TradeFormUI({ event, market, variant, outcome, side, orderType, quantity, limitPrice, shares, potentialProfit, potentialPayout, estimatedCost, usdcBalance, yesTokenBalance, noTokenBalance, isBalanceLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, onOutcomeChange, onSideChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
446
451
|
|
|
447
452
|
interface TradeFormWidgetProps {
|
|
448
453
|
event?: PredictEvent;
|
|
449
454
|
market: PredictMarket;
|
|
455
|
+
variant?: "bordered" | "flat";
|
|
450
456
|
initialSide?: TradeSide;
|
|
451
457
|
initialOutcome?: TradeOutcome;
|
|
452
458
|
chain?: string;
|
|
453
459
|
}
|
|
454
|
-
declare function TradeFormWidget({ event, market, initialSide, initialOutcome, chain, }: TradeFormWidgetProps): react_jsx_runtime.JSX.Element;
|
|
460
|
+
declare function TradeFormWidget({ event, market, variant, initialSide, initialOutcome, chain, }: TradeFormWidgetProps): react_jsx_runtime.JSX.Element;
|
|
455
461
|
|
|
456
462
|
interface CategoryItem {
|
|
457
463
|
category: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
declare const _default: "0.1.
|
|
15
|
+
declare const _default: "0.1.85";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A single category entry in the static navigation model.
|
|
@@ -254,6 +254,7 @@ interface UseTradeFormResult {
|
|
|
254
254
|
orderType: OrderType;
|
|
255
255
|
quantity: number;
|
|
256
256
|
limitPrice: number;
|
|
257
|
+
shares: number;
|
|
257
258
|
estimatedCost: number;
|
|
258
259
|
potentialPayout: number;
|
|
259
260
|
potentialProfit: number;
|
|
@@ -406,6 +407,7 @@ interface StandardEvent {
|
|
|
406
407
|
imageUrl?: string;
|
|
407
408
|
}
|
|
408
409
|
interface StandardMarket {
|
|
410
|
+
question: string;
|
|
409
411
|
yesAsk?: number;
|
|
410
412
|
noAsk?: number;
|
|
411
413
|
yesBid?: number;
|
|
@@ -417,11 +419,14 @@ interface StandardMarket {
|
|
|
417
419
|
interface TradeFormUIProps {
|
|
418
420
|
event?: StandardEvent;
|
|
419
421
|
market: StandardMarket;
|
|
422
|
+
/** "bordered" (default) renders with border + rounded container; "flat" omits border (e.g. inside a modal). */
|
|
423
|
+
variant?: "bordered" | "flat";
|
|
420
424
|
outcome: TradeOutcome;
|
|
421
425
|
side: TradeSide;
|
|
422
426
|
orderType: OrderType;
|
|
423
427
|
quantity: number;
|
|
424
428
|
limitPrice: number;
|
|
429
|
+
shares: number;
|
|
425
430
|
estimatedCost: number;
|
|
426
431
|
potentialPayout: number;
|
|
427
432
|
potentialProfit: number;
|
|
@@ -442,16 +447,17 @@ interface TradeFormUIProps {
|
|
|
442
447
|
onLimitPriceChange: (price: number) => void;
|
|
443
448
|
onSubmit: () => void;
|
|
444
449
|
}
|
|
445
|
-
declare function TradeFormUI({ event, market, outcome, side, orderType, quantity, limitPrice, potentialProfit, estimatedCost, usdcBalance, yesTokenBalance, noTokenBalance, isBalanceLoading, isSubmitting, isValid, supportsLimitOrder, kycRequired, kycUrl, onOutcomeChange, onSideChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
450
|
+
declare function TradeFormUI({ event, market, variant, outcome, side, orderType, quantity, limitPrice, shares, potentialProfit, potentialPayout, estimatedCost, usdcBalance, yesTokenBalance, noTokenBalance, isBalanceLoading, isSubmitting, isValid, validationErrors, supportsLimitOrder, kycRequired, kycUrl, onOutcomeChange, onSideChange, onOrderTypeChange, onQuantityChange, onLimitPriceChange, onSubmit, }: TradeFormUIProps): react_jsx_runtime.JSX.Element;
|
|
446
451
|
|
|
447
452
|
interface TradeFormWidgetProps {
|
|
448
453
|
event?: PredictEvent;
|
|
449
454
|
market: PredictMarket;
|
|
455
|
+
variant?: "bordered" | "flat";
|
|
450
456
|
initialSide?: TradeSide;
|
|
451
457
|
initialOutcome?: TradeOutcome;
|
|
452
458
|
chain?: string;
|
|
453
459
|
}
|
|
454
|
-
declare function TradeFormWidget({ event, market, initialSide, initialOutcome, chain, }: TradeFormWidgetProps): react_jsx_runtime.JSX.Element;
|
|
460
|
+
declare function TradeFormWidget({ event, market, variant, initialSide, initialOutcome, chain, }: TradeFormWidgetProps): react_jsx_runtime.JSX.Element;
|
|
455
461
|
|
|
456
462
|
interface CategoryItem {
|
|
457
463
|
category: string;
|