@liberfi.io/ui-predict 0.1.78 → 0.1.80
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 +18 -4
- package/dist/index.d.ts +18 -4
- 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.80";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A single category entry in the static navigation model.
|
|
@@ -204,7 +204,7 @@ interface EventsPageSkeletonProps extends EventsSkeletonProps {
|
|
|
204
204
|
* Page-level loading skeleton for `EventsPage`.
|
|
205
205
|
* Includes placeholders for categories / toolbar, then the events grid skeleton.
|
|
206
206
|
*/
|
|
207
|
-
declare function EventsPageSkeleton({ count }: EventsPageSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
207
|
+
declare function EventsPageSkeleton({ count, }: EventsPageSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
208
208
|
|
|
209
209
|
type EventItemProps = {
|
|
210
210
|
event: PredictEvent;
|
|
@@ -312,9 +312,11 @@ declare function TradeFormSkeleton(): react_jsx_runtime.JSX.Element;
|
|
|
312
312
|
|
|
313
313
|
interface EventMarketDetailWidgetProps {
|
|
314
314
|
market: PredictMarket;
|
|
315
|
+
/** Which outcome's orderbook to display; defaults to "yes". */
|
|
316
|
+
outcome?: TradeOutcome;
|
|
315
317
|
onTradeAction?: (market: PredictMarket, outcome: TradeOutcome, side: TradeSide) => void;
|
|
316
318
|
}
|
|
317
|
-
declare function EventMarketDetailWidget({ market, onTradeAction, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
319
|
+
declare function EventMarketDetailWidget({ market, outcome, onTradeAction, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
318
320
|
|
|
319
321
|
interface EventPriceChartProps {
|
|
320
322
|
event: PredictEvent;
|
|
@@ -375,6 +377,18 @@ interface DepthSlot {
|
|
|
375
377
|
}
|
|
376
378
|
declare function EventMarketDepthChartUI({ bids, asks, }: EventMarketDepthChartUIProps): react_jsx_runtime.JSX.Element;
|
|
377
379
|
|
|
380
|
+
type PredictTradeModalParams = {
|
|
381
|
+
event: PredictEvent;
|
|
382
|
+
market: PredictMarket;
|
|
383
|
+
initialOutcome?: TradeOutcome;
|
|
384
|
+
chain?: string;
|
|
385
|
+
};
|
|
386
|
+
type PredictTradeModalResult = void;
|
|
387
|
+
declare const PREDICT_TRADE_MODAL_ID = "predict-trade";
|
|
388
|
+
declare function PredictTradeModal({ id, }: {
|
|
389
|
+
id?: string;
|
|
390
|
+
}): react_jsx_runtime.JSX.Element;
|
|
391
|
+
|
|
378
392
|
/**
|
|
379
393
|
* Presentation-layer shapes for trade-form and related UI (camelCase, binary fields).
|
|
380
394
|
*/
|
|
@@ -682,4 +696,4 @@ type UserPredictProviderProps = PropsWithChildren<{
|
|
|
682
696
|
}>;
|
|
683
697
|
declare function UserPredictProvider({ walletAddress, source, pollingInterval, enabled, children, }: UserPredictProviderProps): react_jsx_runtime.JSX.Element;
|
|
684
698
|
|
|
685
|
-
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, MAX_PRICE_HISTORY_MARKETS, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, PREDICT_SEARCH_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PriceHistoryInterval, type PriceHistoryIntervalType, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, countActiveFilters, formatWan, useEventDetail, useEventsInfinite, usePredictSearchHistory, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };
|
|
699
|
+
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, MAX_PRICE_HISTORY_MARKETS, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, PREDICT_SEARCH_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, PriceHistoryInterval, type PriceHistoryIntervalType, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, countActiveFilters, formatWan, useEventDetail, useEventsInfinite, usePredictSearchHistory, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };
|
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.80";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A single category entry in the static navigation model.
|
|
@@ -204,7 +204,7 @@ interface EventsPageSkeletonProps extends EventsSkeletonProps {
|
|
|
204
204
|
* Page-level loading skeleton for `EventsPage`.
|
|
205
205
|
* Includes placeholders for categories / toolbar, then the events grid skeleton.
|
|
206
206
|
*/
|
|
207
|
-
declare function EventsPageSkeleton({ count }: EventsPageSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
207
|
+
declare function EventsPageSkeleton({ count, }: EventsPageSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
208
208
|
|
|
209
209
|
type EventItemProps = {
|
|
210
210
|
event: PredictEvent;
|
|
@@ -312,9 +312,11 @@ declare function TradeFormSkeleton(): react_jsx_runtime.JSX.Element;
|
|
|
312
312
|
|
|
313
313
|
interface EventMarketDetailWidgetProps {
|
|
314
314
|
market: PredictMarket;
|
|
315
|
+
/** Which outcome's orderbook to display; defaults to "yes". */
|
|
316
|
+
outcome?: TradeOutcome;
|
|
315
317
|
onTradeAction?: (market: PredictMarket, outcome: TradeOutcome, side: TradeSide) => void;
|
|
316
318
|
}
|
|
317
|
-
declare function EventMarketDetailWidget({ market, onTradeAction, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
319
|
+
declare function EventMarketDetailWidget({ market, outcome, onTradeAction, }: EventMarketDetailWidgetProps): react_jsx_runtime.JSX.Element;
|
|
318
320
|
|
|
319
321
|
interface EventPriceChartProps {
|
|
320
322
|
event: PredictEvent;
|
|
@@ -375,6 +377,18 @@ interface DepthSlot {
|
|
|
375
377
|
}
|
|
376
378
|
declare function EventMarketDepthChartUI({ bids, asks, }: EventMarketDepthChartUIProps): react_jsx_runtime.JSX.Element;
|
|
377
379
|
|
|
380
|
+
type PredictTradeModalParams = {
|
|
381
|
+
event: PredictEvent;
|
|
382
|
+
market: PredictMarket;
|
|
383
|
+
initialOutcome?: TradeOutcome;
|
|
384
|
+
chain?: string;
|
|
385
|
+
};
|
|
386
|
+
type PredictTradeModalResult = void;
|
|
387
|
+
declare const PREDICT_TRADE_MODAL_ID = "predict-trade";
|
|
388
|
+
declare function PredictTradeModal({ id, }: {
|
|
389
|
+
id?: string;
|
|
390
|
+
}): react_jsx_runtime.JSX.Element;
|
|
391
|
+
|
|
378
392
|
/**
|
|
379
393
|
* Presentation-layer shapes for trade-form and related UI (camelCase, binary fields).
|
|
380
394
|
*/
|
|
@@ -682,4 +696,4 @@ type UserPredictProviderProps = PropsWithChildren<{
|
|
|
682
696
|
}>;
|
|
683
697
|
declare function UserPredictProvider({ walletAddress, source, pollingInterval, enabled, children, }: UserPredictProviderProps): react_jsx_runtime.JSX.Element;
|
|
684
698
|
|
|
685
|
-
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, MAX_PRICE_HISTORY_MARKETS, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, PREDICT_SEARCH_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PriceHistoryInterval, type PriceHistoryIntervalType, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, countActiveFilters, formatWan, useEventDetail, useEventsInfinite, usePredictSearchHistory, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };
|
|
699
|
+
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategoryItem, type CategoryListItem, type CategoryTagItem, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_FILTER_STATE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type DepthLevel, type DepthSlot, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItem, type EventItemProps, EventMarketDepthChartUI, type EventMarketDepthChartUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventPriceChart, type EventPriceChartProps, type EventsFilterState, EventsFilterUI, type EventsFilterUIProps, EventsPage, type EventsPageProps, EventsPageSkeleton, type EventsPageSkeletonProps, EventsSkeleton, type EventsSkeletonProps, EventsToolbarUI, type EventsToolbarUIProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, MAX_PRICE_HISTORY_MARKETS, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, PREDICT_SEARCH_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, PriceHistoryInterval, type PriceHistoryIntervalType, SORT_PRESETS, STATIC_CATEGORIES, SearchEventsButton, type SearchEventsButtonProps, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchWidget, type SearchWidgetProps, SimilarEventCard, type SimilarEventCardProps, SimilarEventsSection, type SimilarEventsSectionProps, type SortPreset, type TagItem, type TagSlugSelection, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, type TradeOutcome, type TradeSide, type UseEventDetailParams, type UseEventsInfiniteParams, type UseEventsInfiniteResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseTradeFormParams, type UseTradeFormResult, UserActivitySection, type UserActivitySectionProps, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, countActiveFilters, formatWan, useEventDetail, useEventsInfinite, usePredictSearchHistory, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };
|