@liberfi.io/ui-predict 0.1.93 → 0.1.94

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 CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, ChartRangeType as ChartRangeType$1, ListCandlesticksParams, Candlestick, PredictPage } from '@liberfi.io/react-predict';
3
- export { BalanceResponse, CancelOrderResult, Candlestick, CreateOrderInput, DFlowKYCStatus, DFlowOrderContext, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStatus, EventSummary, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, MarketOutcome, MarketResult, MarketStatus, MarketSummary, OrderSide, OrderStatus, Orderbook, OrderbookLevel, PolymarketOrderType, PositionsResponse, PredictClient, PredictContext, PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictPosition, PredictProvider, PredictProviderProps, PredictTag, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEvents, useInfiniteEvents, useMarket, useMarketHistory, useMarketTrades, useOrder, useOrderbook, useOrders, usePositions, usePredictClient, usePriceHistory, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
2
+ import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, ChartRangeType as ChartRangeType$1, ListCandlesticksParams, Candlestick, PredictPage, MatchSortField, MatchGroup, PredictPosition } from '@liberfi.io/react-predict';
3
+ export { BalanceResponse, CancelOrderResult, Candlestick, CreateOrderInput, DFlowKYCStatus, DFlowOrderContext, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStatus, EventSummary, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, MarketOutcome, MarketResult, MarketStatus, MarketSummary, MatchGroup, MatchGroupEntry, MatchGroupMarket, MatchGroupPage, MatchSortField, MatchStatus, MatchesParams, MatchesStats, OrderSide, OrderStatus, Orderbook, OrderbookLevel, PolymarketOrderType, PositionsResponse, PredictClient, PredictContext, PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictPosition, PredictProvider, PredictProviderProps, PredictTag, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, fetchMatchesPage, matchQueryKey, matchesQueryKey, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEvents, useInfiniteEvents, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrders, usePositions, usePredictClient, usePriceHistory, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
4
4
  import { LinkComponentType } from '@liberfi.io/ui';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
- import { PropsWithChildren } from 'react';
6
+ import * as react from 'react';
7
+ import { ReactNode, PropsWithChildren } from 'react';
7
8
 
8
9
  declare global {
9
10
  interface Window {
@@ -12,7 +13,7 @@ declare global {
12
13
  };
13
14
  }
14
15
  }
15
- declare const _default: "0.1.93";
16
+ declare const _default: "0.1.94";
16
17
 
17
18
  /**
18
19
  * A single category entry in the static navigation model.
@@ -650,6 +651,98 @@ type SearchWidgetProps = {
650
651
  };
651
652
  declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
652
653
 
654
+ interface MatchesPageProps {
655
+ onSelectEntry?: (event: PredictEvent) => void;
656
+ getEventHref?: (event: PredictEvent) => string;
657
+ LinkComponent?: LinkComponentType;
658
+ /** Path to the hero background image (e.g. "/matches-bg.webp") */
659
+ bgImageSrc?: string;
660
+ }
661
+ declare function MatchesPage({ onSelectEntry, getEventHref, LinkComponent, bgImageSrc, }: MatchesPageProps): react_jsx_runtime.JSX.Element;
662
+
663
+ interface MatchesHeroStats {
664
+ activePairs: number;
665
+ maxSpread: number;
666
+ highSpreadCount: number;
667
+ totalVolume: number;
668
+ }
669
+ interface MatchesHeroProps {
670
+ stats?: MatchesHeroStats;
671
+ }
672
+ declare function MatchesHero({ stats }: MatchesHeroProps): react_jsx_runtime.JSX.Element;
673
+
674
+ interface MatchesWidgetRef {
675
+ refetch: () => void;
676
+ }
677
+ interface MatchesWidgetProps {
678
+ sortBy: MatchSortField;
679
+ sortAsc: boolean;
680
+ minVolume?: number;
681
+ onSelectEntry?: (event: PredictEvent) => void;
682
+ getEventHref?: (event: PredictEvent) => string;
683
+ LinkComponent?: LinkComponentType;
684
+ onStatsChange?: (stats: MatchesHeroStats) => void;
685
+ }
686
+ declare const MatchesWidget: react.ForwardRefExoticComponent<MatchesWidgetProps & react.RefAttributes<MatchesWidgetRef>>;
687
+
688
+ interface MatchGroupCardProps {
689
+ group: MatchGroup;
690
+ onSelectEntry?: (event: PredictEvent) => void;
691
+ getEventHref?: (event: PredictEvent) => string;
692
+ LinkComponent?: LinkComponentType;
693
+ }
694
+ declare function MatchGroupCard({ group, onSelectEntry, getEventHref, LinkComponent, }: MatchGroupCardProps): react_jsx_runtime.JSX.Element;
695
+
696
+ interface MatchesStatsBarProps {
697
+ matches: MatchGroup[];
698
+ total?: number;
699
+ }
700
+ declare function MatchesStatsBar({ matches, total }: MatchesStatsBarProps): react_jsx_runtime.JSX.Element;
701
+
702
+ interface MatchesFilterBarProps {
703
+ sortBy: MatchSortField;
704
+ onSortChange: (sort: MatchSortField) => void;
705
+ sortAsc: boolean;
706
+ onSortAscChange: (asc: boolean) => void;
707
+ minVolume?: number;
708
+ onMinVolumeChange?: (vol: number | undefined) => void;
709
+ onRefresh?: () => void;
710
+ }
711
+ declare function MatchesFilterBar({ sortBy, onSortChange, sortAsc, onSortAscChange, minVolume, onMinVolumeChange, onRefresh, }: MatchesFilterBarProps): react_jsx_runtime.JSX.Element;
712
+
713
+ interface SpreadIndicatorProps {
714
+ spread: number | null | undefined;
715
+ spreadPercent?: number | null;
716
+ arbProfit?: number | null;
717
+ className?: string;
718
+ }
719
+ declare function SpreadIndicator({ spread, arbProfit, className, }: SpreadIndicatorProps): react_jsx_runtime.JSX.Element | null;
720
+
721
+ interface SourceMeta {
722
+ label: string;
723
+ color: string;
724
+ bgColor: string;
725
+ icon: ReactNode;
726
+ }
727
+ declare function getSourceMeta(source: ProviderSource | string): SourceMeta;
728
+ interface SourceBadgeProps {
729
+ source: ProviderSource | string;
730
+ className?: string;
731
+ }
732
+ declare function SourceBadge({ source, className }: SourceBadgeProps): react_jsx_runtime.JSX.Element;
733
+
734
+ interface ProfilePageProps {
735
+ /** Solana wallet address (for Kalshi/DFlow positions). */
736
+ solanaAddress?: string;
737
+ /** EVM wallet address (for Polymarket positions). */
738
+ evmAddress?: string;
739
+ /** Called when user clicks Close on a position. */
740
+ onClosePosition?: (position: PredictPosition) => void;
741
+ /** Called when user clicks an event name. */
742
+ onEventClick?: (event: PredictEvent) => void;
743
+ }
744
+ declare function ProfilePage({ solanaAddress, evmAddress, onClosePosition, onEventClick, }: ProfilePageProps): react_jsx_runtime.JSX.Element;
745
+
653
746
  /** Default page size for list queries */
654
747
  declare const DEFAULT_PAGE_SIZE = 48;
655
748
  /** Maximum number of markets to display in price history chart */
@@ -730,4 +823,4 @@ type PredictWalletProviderProps = PropsWithChildren<{
730
823
  }>;
731
824
  declare function PredictWalletProvider({ pollingInterval, enabled, children, }: PredictWalletProviderProps): react_jsx_runtime.JSX.Element;
732
825
 
733
- 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, type DurationUnit, 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, type ExpirationPreset, MAX_PRICE_HISTORY_MARKETS, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, type OrderType, PREDICT_SEARCH_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, 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, countActiveFilters, formatKMB, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };
826
+ 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, type DurationUnit, 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, type ExpirationPreset, MAX_PRICE_HISTORY_MARKETS, MatchGroupCard, type MatchGroupCardProps, MatchesFilterBar, type MatchesFilterBarProps, MatchesHero, type MatchesHeroProps, type MatchesHeroStats, MatchesPage, type MatchesPageProps, MatchesStatsBar, type MatchesStatsBarProps, MatchesWidget, type MatchesWidgetProps, type MatchesWidgetRef, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, type OrderType, PREDICT_SEARCH_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, PriceHistoryInterval, type PriceHistoryIntervalType, ProfilePage, type ProfilePageProps, 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, SourceBadge, type SourceBadgeProps, SpreadIndicator, type SpreadIndicatorProps, 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, countActiveFilters, formatKMB, getSourceMeta, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, ChartRangeType as ChartRangeType$1, ListCandlesticksParams, Candlestick, PredictPage } from '@liberfi.io/react-predict';
3
- export { BalanceResponse, CancelOrderResult, Candlestick, CreateOrderInput, DFlowKYCStatus, DFlowOrderContext, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStatus, EventSummary, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, MarketOutcome, MarketResult, MarketStatus, MarketSummary, OrderSide, OrderStatus, Orderbook, OrderbookLevel, PolymarketOrderType, PositionsResponse, PredictClient, PredictContext, PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictPosition, PredictProvider, PredictProviderProps, PredictTag, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEvents, useInfiniteEvents, useMarket, useMarketHistory, useMarketTrades, useOrder, useOrderbook, useOrders, usePositions, usePredictClient, usePriceHistory, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
2
+ import { EventSortField, ProviderSource, PredictEvent, PredictMarket, TagSlugSelection as TagSlugSelection$1, EventStatus, ResolveEventsParamsInput, ChartRangeType as ChartRangeType$1, ListCandlesticksParams, Candlestick, PredictPage, MatchSortField, MatchGroup, PredictPosition } from '@liberfi.io/react-predict';
3
+ export { BalanceResponse, CancelOrderResult, Candlestick, CreateOrderInput, DFlowKYCStatus, DFlowOrderContext, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStatus, EventSummary, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, MarketOutcome, MarketResult, MarketStatus, MarketSummary, MatchGroup, MatchGroupEntry, MatchGroupMarket, MatchGroupPage, MatchSortField, MatchStatus, MatchesParams, MatchesStats, OrderSide, OrderStatus, Orderbook, OrderbookLevel, PolymarketOrderType, PositionsResponse, PredictClient, PredictContext, PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictPosition, PredictProvider, PredictProviderProps, PredictTag, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, PricePoint, ProviderMeta, ProviderSource, ResolveEventsParamsInput, SettlementSource, SimilarEventsParams, TradeType, createPredictClient, createPredictWsClient, fetchMatchesPage, matchQueryKey, matchesQueryKey, useBalance, useCancelOrder, useCandlesticks, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEvents, useInfiniteEvents, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrders, usePositions, usePredictClient, usePriceHistory, useSearchEvents, useSimilarEvents, useTrades } from '@liberfi.io/react-predict';
4
4
  import { LinkComponentType } from '@liberfi.io/ui';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
- import { PropsWithChildren } from 'react';
6
+ import * as react from 'react';
7
+ import { ReactNode, PropsWithChildren } from 'react';
7
8
 
8
9
  declare global {
9
10
  interface Window {
@@ -12,7 +13,7 @@ declare global {
12
13
  };
13
14
  }
14
15
  }
15
- declare const _default: "0.1.93";
16
+ declare const _default: "0.1.94";
16
17
 
17
18
  /**
18
19
  * A single category entry in the static navigation model.
@@ -650,6 +651,98 @@ type SearchWidgetProps = {
650
651
  };
651
652
  declare function SearchWidget({ onKeywordChange, onSelectEvent, getEventHref, LinkComponent, onHover, onEscape, source, }: SearchWidgetProps): react_jsx_runtime.JSX.Element;
652
653
 
654
+ interface MatchesPageProps {
655
+ onSelectEntry?: (event: PredictEvent) => void;
656
+ getEventHref?: (event: PredictEvent) => string;
657
+ LinkComponent?: LinkComponentType;
658
+ /** Path to the hero background image (e.g. "/matches-bg.webp") */
659
+ bgImageSrc?: string;
660
+ }
661
+ declare function MatchesPage({ onSelectEntry, getEventHref, LinkComponent, bgImageSrc, }: MatchesPageProps): react_jsx_runtime.JSX.Element;
662
+
663
+ interface MatchesHeroStats {
664
+ activePairs: number;
665
+ maxSpread: number;
666
+ highSpreadCount: number;
667
+ totalVolume: number;
668
+ }
669
+ interface MatchesHeroProps {
670
+ stats?: MatchesHeroStats;
671
+ }
672
+ declare function MatchesHero({ stats }: MatchesHeroProps): react_jsx_runtime.JSX.Element;
673
+
674
+ interface MatchesWidgetRef {
675
+ refetch: () => void;
676
+ }
677
+ interface MatchesWidgetProps {
678
+ sortBy: MatchSortField;
679
+ sortAsc: boolean;
680
+ minVolume?: number;
681
+ onSelectEntry?: (event: PredictEvent) => void;
682
+ getEventHref?: (event: PredictEvent) => string;
683
+ LinkComponent?: LinkComponentType;
684
+ onStatsChange?: (stats: MatchesHeroStats) => void;
685
+ }
686
+ declare const MatchesWidget: react.ForwardRefExoticComponent<MatchesWidgetProps & react.RefAttributes<MatchesWidgetRef>>;
687
+
688
+ interface MatchGroupCardProps {
689
+ group: MatchGroup;
690
+ onSelectEntry?: (event: PredictEvent) => void;
691
+ getEventHref?: (event: PredictEvent) => string;
692
+ LinkComponent?: LinkComponentType;
693
+ }
694
+ declare function MatchGroupCard({ group, onSelectEntry, getEventHref, LinkComponent, }: MatchGroupCardProps): react_jsx_runtime.JSX.Element;
695
+
696
+ interface MatchesStatsBarProps {
697
+ matches: MatchGroup[];
698
+ total?: number;
699
+ }
700
+ declare function MatchesStatsBar({ matches, total }: MatchesStatsBarProps): react_jsx_runtime.JSX.Element;
701
+
702
+ interface MatchesFilterBarProps {
703
+ sortBy: MatchSortField;
704
+ onSortChange: (sort: MatchSortField) => void;
705
+ sortAsc: boolean;
706
+ onSortAscChange: (asc: boolean) => void;
707
+ minVolume?: number;
708
+ onMinVolumeChange?: (vol: number | undefined) => void;
709
+ onRefresh?: () => void;
710
+ }
711
+ declare function MatchesFilterBar({ sortBy, onSortChange, sortAsc, onSortAscChange, minVolume, onMinVolumeChange, onRefresh, }: MatchesFilterBarProps): react_jsx_runtime.JSX.Element;
712
+
713
+ interface SpreadIndicatorProps {
714
+ spread: number | null | undefined;
715
+ spreadPercent?: number | null;
716
+ arbProfit?: number | null;
717
+ className?: string;
718
+ }
719
+ declare function SpreadIndicator({ spread, arbProfit, className, }: SpreadIndicatorProps): react_jsx_runtime.JSX.Element | null;
720
+
721
+ interface SourceMeta {
722
+ label: string;
723
+ color: string;
724
+ bgColor: string;
725
+ icon: ReactNode;
726
+ }
727
+ declare function getSourceMeta(source: ProviderSource | string): SourceMeta;
728
+ interface SourceBadgeProps {
729
+ source: ProviderSource | string;
730
+ className?: string;
731
+ }
732
+ declare function SourceBadge({ source, className }: SourceBadgeProps): react_jsx_runtime.JSX.Element;
733
+
734
+ interface ProfilePageProps {
735
+ /** Solana wallet address (for Kalshi/DFlow positions). */
736
+ solanaAddress?: string;
737
+ /** EVM wallet address (for Polymarket positions). */
738
+ evmAddress?: string;
739
+ /** Called when user clicks Close on a position. */
740
+ onClosePosition?: (position: PredictPosition) => void;
741
+ /** Called when user clicks an event name. */
742
+ onEventClick?: (event: PredictEvent) => void;
743
+ }
744
+ declare function ProfilePage({ solanaAddress, evmAddress, onClosePosition, onEventClick, }: ProfilePageProps): react_jsx_runtime.JSX.Element;
745
+
653
746
  /** Default page size for list queries */
654
747
  declare const DEFAULT_PAGE_SIZE = 48;
655
748
  /** Maximum number of markets to display in price history chart */
@@ -730,4 +823,4 @@ type PredictWalletProviderProps = PropsWithChildren<{
730
823
  }>;
731
824
  declare function PredictWalletProvider({ pollingInterval, enabled, children, }: PredictWalletProviderProps): react_jsx_runtime.JSX.Element;
732
825
 
733
- 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, type DurationUnit, 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, type ExpirationPreset, MAX_PRICE_HISTORY_MARKETS, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, type OrderType, PREDICT_SEARCH_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, 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, countActiveFilters, formatKMB, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };
826
+ 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, type DurationUnit, 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, type ExpirationPreset, MAX_PRICE_HISTORY_MARKETS, MatchGroupCard, type MatchGroupCardProps, MatchesFilterBar, type MatchesFilterBarProps, MatchesHero, type MatchesHeroProps, type MatchesHeroStats, MatchesPage, type MatchesPageProps, MatchesStatsBar, type MatchesStatsBarProps, MatchesWidget, type MatchesWidgetProps, type MatchesWidgetRef, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, type OrderType, PREDICT_SEARCH_MODAL_ID, PREDICT_TRADE_MODAL_ID, PRICE_HISTORY_SAMPLE_INTERVAL, PredictSearchModal, type PredictSearchModalParams, type PredictSearchModalResult, PredictTradeModal, type PredictTradeModalParams, type PredictTradeModalResult, type PredictWalletContextValue, PredictWalletProvider, type PredictWalletProviderProps, PriceHistoryInterval, type PriceHistoryIntervalType, ProfilePage, type ProfilePageProps, 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, SourceBadge, type SourceBadgeProps, SpreadIndicator, type SpreadIndicatorProps, 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, countActiveFilters, formatKMB, getSourceMeta, useEventDetail, useEventsInfinite, usePredictSearchHistory, usePredictWallet, useSearchResultListScript, useSearchScript, useTradeForm, _default as version };