@agg-build/ui 4.2.0 → 4.7.1
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/README.md +25 -16
- package/dist/{chunk-DNPDXL2D.mjs → chunk-3RQCBGIK.mjs} +341 -105
- package/dist/{chunk-GNEFI4SO.mjs → chunk-C4GFVJ62.mjs} +725 -400
- package/dist/{chunk-UDBHAZJJ.mjs → chunk-EOLR7DHL.mjs} +568 -145
- package/dist/{chunk-6X6Y4INU.mjs → chunk-LXQ3U4X2.mjs} +2 -2
- package/dist/{chunk-QW7VFURU.mjs → chunk-RDBMHBR2.mjs} +67 -3
- package/dist/{chunk-WDCH4RRS.mjs → chunk-WYCSTAN7.mjs} +1 -1
- package/dist/{chunk-FTL25XKE.mjs → chunk-XN2NB2NP.mjs} +1 -1
- package/dist/events.js +1149 -661
- package/dist/events.mjs +6 -4
- package/dist/index.js +3320 -2291
- package/dist/index.mjs +12 -8
- package/dist/modals.js +9 -2
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +2789 -1762
- package/dist/pages.mjs +8 -6
- package/dist/primitives.js +30 -3
- package/dist/primitives.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +338 -102
- package/dist/trading.mjs +4 -4
- package/dist/types/events/index.d.mts +1 -0
- package/dist/types/events/index.d.ts +1 -0
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.mts +4 -1
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.ts +4 -1
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +25 -1
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +25 -1
- package/dist/types/events/item-details/index.d.mts +1 -1
- package/dist/types/events/item-details/index.d.ts +1 -1
- package/dist/types/events/list/event-list.constants.d.mts +3 -1
- package/dist/types/events/list/event-list.constants.d.ts +3 -1
- package/dist/types/events/list/event-list.types.d.mts +17 -0
- package/dist/types/events/list/event-list.types.d.ts +17 -0
- package/dist/types/events/list/event-list.utils.d.mts +4 -0
- package/dist/types/events/list/event-list.utils.d.ts +4 -0
- package/dist/types/events/list/index.d.mts +2 -2
- package/dist/types/events/list/index.d.ts +2 -2
- package/dist/types/events/market-details/index.d.mts +1 -1
- package/dist/types/events/market-details/index.d.ts +1 -1
- package/dist/types/events/market-details/market-details.types.d.mts +4 -0
- package/dist/types/events/market-details/market-details.types.d.ts +4 -0
- package/dist/types/events/shared/format-event-title.d.mts +9 -1
- package/dist/types/events/shared/format-event-title.d.ts +9 -1
- package/dist/types/events/shared/format-sports-event-time.d.mts +2 -0
- package/dist/types/events/shared/format-sports-event-time.d.ts +2 -0
- package/dist/types/events/shared/sports-live-score.d.mts +10 -0
- package/dist/types/events/shared/sports-live-score.d.ts +10 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +4 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +4 -0
- package/dist/types/pages/event-market/index.d.mts +1 -0
- package/dist/types/pages/event-market/index.d.ts +1 -0
- package/dist/types/pages/home/event-discovery-url-state.d.mts +35 -0
- package/dist/types/pages/home/event-discovery-url-state.d.ts +35 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +5 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +5 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.mts +1 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.ts +1 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +1 -1
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +1 -1
- package/dist/types/pages/user-profile/user-profile.types.d.mts +1 -1
- package/dist/types/pages/user-profile/user-profile.types.d.ts +1 -1
- package/dist/types/trading/place-order/index.d.mts +1 -1
- package/dist/types/trading/place-order/index.d.ts +1 -1
- package/dist/types/trading/place-order/index.place-order.execution-steps.d.mts +13 -1
- package/dist/types/trading/place-order/index.place-order.execution-steps.d.ts +13 -1
- package/dist/types/trading/place-order/index.place-order.execution-view.d.mts +2 -1
- package/dist/types/trading/place-order/index.place-order.execution-view.d.ts +2 -1
- package/dist/types/trading/place-order/index.place-order.types.d.mts +9 -0
- package/dist/types/trading/place-order/index.place-order.types.d.ts +9 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +6 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +6 -0
- package/package.json +3 -3
- /package/dist/{chunk-KHHFHXXD.mjs → chunk-JH4B3ZHQ.mjs} +0 -0
package/dist/trading.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseVenue,
|
|
13
13
|
useClaimWinnings,
|
|
14
14
|
useResolvedMarketClaim
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3RQCBGIK.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SETTLEMENT_SECTION_ID,
|
|
18
18
|
Settlement,
|
|
@@ -30,9 +30,9 @@ import {
|
|
|
30
30
|
prepareSettlementDifferences,
|
|
31
31
|
resolveDifferenceIconClassName,
|
|
32
32
|
useEventTradingContext
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-WYCSTAN7.mjs";
|
|
34
|
+
import "./chunk-XN2NB2NP.mjs";
|
|
35
|
+
import "./chunk-RDBMHBR2.mjs";
|
|
36
36
|
export {
|
|
37
37
|
FundKalshiModal,
|
|
38
38
|
PlaceOrder,
|
|
@@ -2,9 +2,12 @@ export type MarketPillOption = {
|
|
|
2
2
|
value: string;
|
|
3
3
|
label: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const EventListItemDetailsMarketSelector: ({ className, options, selectedValue, onChange, }: {
|
|
5
|
+
export declare const EventListItemDetailsMarketSelector: ({ className, options, browseOptions, selectedValue, liveValue, alwaysShowMore, onChange, }: {
|
|
6
6
|
className?: string;
|
|
7
7
|
options: MarketPillOption[];
|
|
8
|
+
browseOptions?: MarketPillOption[];
|
|
8
9
|
selectedValue: string;
|
|
10
|
+
liveValue?: string;
|
|
11
|
+
alwaysShowMore?: boolean;
|
|
9
12
|
onChange: (marketId: string) => void;
|
|
10
13
|
}) => JSX.Element;
|
|
@@ -2,9 +2,12 @@ export type MarketPillOption = {
|
|
|
2
2
|
value: string;
|
|
3
3
|
label: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const EventListItemDetailsMarketSelector: ({ className, options, selectedValue, onChange, }: {
|
|
5
|
+
export declare const EventListItemDetailsMarketSelector: ({ className, options, browseOptions, selectedValue, liveValue, alwaysShowMore, onChange, }: {
|
|
6
6
|
className?: string;
|
|
7
7
|
options: MarketPillOption[];
|
|
8
|
+
browseOptions?: MarketPillOption[];
|
|
8
9
|
selectedValue: string;
|
|
10
|
+
liveValue?: string;
|
|
11
|
+
alwaysShowMore?: boolean;
|
|
9
12
|
onChange: (marketId: string) => void;
|
|
10
13
|
}) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ChartTimeRange, EventTradingState, UseMidpointsResult } from "@agg-build/hooks";
|
|
1
|
+
import type { ChartTimeRange, EventTradingState, SportsLiveState, UseMidpointsResult } from "@agg-build/hooks";
|
|
2
|
+
import type { RecurringCryptoDuration } from "@agg-build/sdk";
|
|
2
3
|
import type { LineChartPoint, LineChartType } from "../../primitives/chart";
|
|
3
4
|
import type { EventListItemVenueInfoMap, VenueEventWithMarkets } from "../item/event-list-item.types";
|
|
4
5
|
import type { OutcomeByVenue } from "./event-list-item-details.utils";
|
|
@@ -11,12 +12,31 @@ export type EventListItemDetailsStat = {
|
|
|
11
12
|
delta?: string;
|
|
12
13
|
deltaTone?: "positive" | "negative" | "neutral";
|
|
13
14
|
};
|
|
15
|
+
export type EventListItemDetailsRecurringMarketOption = {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
export type EventListItemDetailsRecurringMarkets = {
|
|
20
|
+
visibleOptions: EventListItemDetailsRecurringMarketOption[];
|
|
21
|
+
browseOptions: EventListItemDetailsRecurringMarketOption[];
|
|
22
|
+
selectedValue: string;
|
|
23
|
+
liveValue?: string;
|
|
24
|
+
duration?: RecurringCryptoDuration;
|
|
25
|
+
windowLabel: string | null;
|
|
26
|
+
countdownLabel: string | null;
|
|
27
|
+
countdownAriaLabel: string | null;
|
|
28
|
+
isResolving: boolean;
|
|
29
|
+
canGoToLive: boolean;
|
|
30
|
+
onSelect: (eventId: string) => void;
|
|
31
|
+
onGoToLive: () => void;
|
|
32
|
+
};
|
|
14
33
|
export type EventListItemDetailsClassNames = Partial<{
|
|
15
34
|
root: string;
|
|
16
35
|
header: string;
|
|
17
36
|
title: string;
|
|
18
37
|
headerPills: string;
|
|
19
38
|
headerStats: string;
|
|
39
|
+
sportsLive: string;
|
|
20
40
|
summary: string;
|
|
21
41
|
outcomeBadges: string;
|
|
22
42
|
segmentedControl: string;
|
|
@@ -47,6 +67,10 @@ export type EventListItemDetailsBaseProps = {
|
|
|
47
67
|
onClick?: (event?: EventListItemDetailsEvent) => void;
|
|
48
68
|
/** Pre-fetched midpoint data (best price included) passed from parent. Optional for backward compatibility. */
|
|
49
69
|
midpointsResult?: UseMidpointsResult;
|
|
70
|
+
/** Recurring-market navigation and status presentation for the event header. */
|
|
71
|
+
recurringMarkets?: EventListItemDetailsRecurringMarkets;
|
|
72
|
+
/** Normalized live sports state supplied by the sports page query. */
|
|
73
|
+
sportsLiveState?: SportsLiveState | null;
|
|
50
74
|
};
|
|
51
75
|
export type EventListItemDetailsLoadingProps = EventListItemDetailsBaseProps & {
|
|
52
76
|
/** Forces the details component into its loading state. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ChartTimeRange, EventTradingState, UseMidpointsResult } from "@agg-build/hooks";
|
|
1
|
+
import type { ChartTimeRange, EventTradingState, SportsLiveState, UseMidpointsResult } from "@agg-build/hooks";
|
|
2
|
+
import type { RecurringCryptoDuration } from "@agg-build/sdk";
|
|
2
3
|
import type { LineChartPoint, LineChartType } from "../../primitives/chart";
|
|
3
4
|
import type { EventListItemVenueInfoMap, VenueEventWithMarkets } from "../item/event-list-item.types";
|
|
4
5
|
import type { OutcomeByVenue } from "./event-list-item-details.utils";
|
|
@@ -11,12 +12,31 @@ export type EventListItemDetailsStat = {
|
|
|
11
12
|
delta?: string;
|
|
12
13
|
deltaTone?: "positive" | "negative" | "neutral";
|
|
13
14
|
};
|
|
15
|
+
export type EventListItemDetailsRecurringMarketOption = {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
export type EventListItemDetailsRecurringMarkets = {
|
|
20
|
+
visibleOptions: EventListItemDetailsRecurringMarketOption[];
|
|
21
|
+
browseOptions: EventListItemDetailsRecurringMarketOption[];
|
|
22
|
+
selectedValue: string;
|
|
23
|
+
liveValue?: string;
|
|
24
|
+
duration?: RecurringCryptoDuration;
|
|
25
|
+
windowLabel: string | null;
|
|
26
|
+
countdownLabel: string | null;
|
|
27
|
+
countdownAriaLabel: string | null;
|
|
28
|
+
isResolving: boolean;
|
|
29
|
+
canGoToLive: boolean;
|
|
30
|
+
onSelect: (eventId: string) => void;
|
|
31
|
+
onGoToLive: () => void;
|
|
32
|
+
};
|
|
14
33
|
export type EventListItemDetailsClassNames = Partial<{
|
|
15
34
|
root: string;
|
|
16
35
|
header: string;
|
|
17
36
|
title: string;
|
|
18
37
|
headerPills: string;
|
|
19
38
|
headerStats: string;
|
|
39
|
+
sportsLive: string;
|
|
20
40
|
summary: string;
|
|
21
41
|
outcomeBadges: string;
|
|
22
42
|
segmentedControl: string;
|
|
@@ -47,6 +67,10 @@ export type EventListItemDetailsBaseProps = {
|
|
|
47
67
|
onClick?: (event?: EventListItemDetailsEvent) => void;
|
|
48
68
|
/** Pre-fetched midpoint data (best price included) passed from parent. Optional for backward compatibility. */
|
|
49
69
|
midpointsResult?: UseMidpointsResult;
|
|
70
|
+
/** Recurring-market navigation and status presentation for the event header. */
|
|
71
|
+
recurringMarkets?: EventListItemDetailsRecurringMarkets;
|
|
72
|
+
/** Normalized live sports state supplied by the sports page query. */
|
|
73
|
+
sportsLiveState?: SportsLiveState | null;
|
|
50
74
|
};
|
|
51
75
|
export type EventListItemDetailsLoadingProps = EventListItemDetailsBaseProps & {
|
|
52
76
|
/** Forces the details component into its loading state. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EventListItemDetailsContentProps, EventListItemDetailsProps } from "./event-list-item-details.types";
|
|
2
|
-
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
2
|
+
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsRecurringMarketOption, EventListItemDetailsRecurringMarkets, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
3
3
|
export { SettlementSummary } from "./settlement-summary";
|
|
4
4
|
export type { SettlementSummaryProps } from "./settlement-summary";
|
|
5
5
|
export declare const resolveEventDetailsSyncKey: (event: EventListItemDetailsContentProps["event"]) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EventListItemDetailsContentProps, EventListItemDetailsProps } from "./event-list-item-details.types";
|
|
2
|
-
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
2
|
+
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsRecurringMarketOption, EventListItemDetailsRecurringMarkets, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
3
3
|
export { SettlementSummary } from "./settlement-summary";
|
|
4
4
|
export type { SettlementSummaryProps } from "./settlement-summary";
|
|
5
5
|
export declare const resolveEventDetailsSyncKey: (event: EventListItemDetailsContentProps["event"]) => string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { AggUiLabels } from "@agg-build/hooks";
|
|
2
|
-
import type { EventListTab } from "./event-list.types";
|
|
2
|
+
import type { EventListSortValue, EventListTab } from "./event-list.types";
|
|
3
3
|
export declare const DEFAULT_EVENTS_LIMIT = 50;
|
|
4
|
+
export declare const DEFAULT_EVENT_LIST_SORT: EventListSortValue;
|
|
5
|
+
export declare const EVENT_LIST_SORT_VALUES: readonly ["volume24hr", "topArbitrage", "volume", "endDate"];
|
|
4
6
|
export declare const getDefaultEventListTabs: (labels: AggUiLabels) => EventListTab[];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { AggUiLabels } from "@agg-build/hooks";
|
|
2
|
-
import type { EventListTab } from "./event-list.types";
|
|
2
|
+
import type { EventListSortValue, EventListTab } from "./event-list.types";
|
|
3
3
|
export declare const DEFAULT_EVENTS_LIMIT = 50;
|
|
4
|
+
export declare const DEFAULT_EVENT_LIST_SORT: EventListSortValue;
|
|
5
|
+
export declare const EVENT_LIST_SORT_VALUES: readonly ["volume24hr", "topArbitrage", "volume", "endDate"];
|
|
4
6
|
export declare const getDefaultEventListTabs: (labels: AggUiLabels) => EventListTab[];
|
|
@@ -4,7 +4,12 @@ import type { MutableRefObject } from "react";
|
|
|
4
4
|
import type { IconName } from "../../primitives/icon";
|
|
5
5
|
import type { VenueLogoName } from "../../primitives/venue-logo";
|
|
6
6
|
import type { VenueEventWithMarkets, VenueMarket, VenueMarketOutcome } from "../item";
|
|
7
|
+
import type { SubcategoryPathEntry } from "./event-list.utils";
|
|
7
8
|
export type EventListTabValue = "matched" | "all" | `${Venue}` | (string & {});
|
|
9
|
+
export type EventListSortValue = "volume24hr" | "topArbitrage" | "volume" | "endDate";
|
|
10
|
+
export type EventListFilterChangeOptions = {
|
|
11
|
+
history: "push" | "replace";
|
|
12
|
+
};
|
|
8
13
|
/** Exposes EventList internal state for snapshot capture by parent components. */
|
|
9
14
|
export type EventListStateRef = {
|
|
10
15
|
venueTab: EventListTabValue;
|
|
@@ -43,6 +48,18 @@ export type EventListProps = {
|
|
|
43
48
|
getEventHref?: (event: VenueEventWithMarkets) => string;
|
|
44
49
|
/** Venue tab value to restore on mount (from navigation snapshot). */
|
|
45
50
|
initialVenueTab?: EventListTabValue;
|
|
51
|
+
/** Controlled venue tab value. Omit to retain EventList's local-state behavior. */
|
|
52
|
+
activeVenueTab?: EventListTabValue;
|
|
53
|
+
/** Called when the controlled venue tab changes. */
|
|
54
|
+
onActiveVenueTabChange?: (value: EventListTabValue, options: EventListFilterChangeOptions) => void;
|
|
55
|
+
/** Controlled sort value. Omit to retain EventList's local-state behavior. */
|
|
56
|
+
selectedSort?: EventListSortValue;
|
|
57
|
+
/** Called when the controlled sort changes. */
|
|
58
|
+
onSelectedSortChange?: (value: EventListSortValue, options: EventListFilterChangeOptions) => void;
|
|
59
|
+
/** Controlled ordered subcategory path. Omit to retain EventList's local-state behavior. */
|
|
60
|
+
categoryPath?: SubcategoryPathEntry[];
|
|
61
|
+
/** Called when the controlled subcategory path changes. */
|
|
62
|
+
onCategoryPathChange?: (value: SubcategoryPathEntry[], options: EventListFilterChangeOptions) => void;
|
|
46
63
|
/** Number of infinite query pages to eagerly prefetch on mount (from navigation snapshot). */
|
|
47
64
|
initialLoadedPageCount?: number;
|
|
48
65
|
/** Ref that EventList writes its internal state to, so parents can read it for snapshot capture. */
|
|
@@ -4,7 +4,12 @@ import type { MutableRefObject } from "react";
|
|
|
4
4
|
import type { IconName } from "../../primitives/icon";
|
|
5
5
|
import type { VenueLogoName } from "../../primitives/venue-logo";
|
|
6
6
|
import type { VenueEventWithMarkets, VenueMarket, VenueMarketOutcome } from "../item";
|
|
7
|
+
import type { SubcategoryPathEntry } from "./event-list.utils";
|
|
7
8
|
export type EventListTabValue = "matched" | "all" | `${Venue}` | (string & {});
|
|
9
|
+
export type EventListSortValue = "volume24hr" | "topArbitrage" | "volume" | "endDate";
|
|
10
|
+
export type EventListFilterChangeOptions = {
|
|
11
|
+
history: "push" | "replace";
|
|
12
|
+
};
|
|
8
13
|
/** Exposes EventList internal state for snapshot capture by parent components. */
|
|
9
14
|
export type EventListStateRef = {
|
|
10
15
|
venueTab: EventListTabValue;
|
|
@@ -43,6 +48,18 @@ export type EventListProps = {
|
|
|
43
48
|
getEventHref?: (event: VenueEventWithMarkets) => string;
|
|
44
49
|
/** Venue tab value to restore on mount (from navigation snapshot). */
|
|
45
50
|
initialVenueTab?: EventListTabValue;
|
|
51
|
+
/** Controlled venue tab value. Omit to retain EventList's local-state behavior. */
|
|
52
|
+
activeVenueTab?: EventListTabValue;
|
|
53
|
+
/** Called when the controlled venue tab changes. */
|
|
54
|
+
onActiveVenueTabChange?: (value: EventListTabValue, options: EventListFilterChangeOptions) => void;
|
|
55
|
+
/** Controlled sort value. Omit to retain EventList's local-state behavior. */
|
|
56
|
+
selectedSort?: EventListSortValue;
|
|
57
|
+
/** Called when the controlled sort changes. */
|
|
58
|
+
onSelectedSortChange?: (value: EventListSortValue, options: EventListFilterChangeOptions) => void;
|
|
59
|
+
/** Controlled ordered subcategory path. Omit to retain EventList's local-state behavior. */
|
|
60
|
+
categoryPath?: SubcategoryPathEntry[];
|
|
61
|
+
/** Called when the controlled subcategory path changes. */
|
|
62
|
+
onCategoryPathChange?: (value: SubcategoryPathEntry[], options: EventListFilterChangeOptions) => void;
|
|
46
63
|
/** Number of infinite query pages to eagerly prefetch on mount (from navigation snapshot). */
|
|
47
64
|
initialLoadedPageCount?: number;
|
|
48
65
|
/** Ref that EventList writes its internal state to, so parents can read it for snapshot capture. */
|
|
@@ -31,4 +31,8 @@ export declare const sortCategoriesForNavigation: <TCategory extends CategoryNav
|
|
|
31
31
|
* - With an empty path, use the provided fallback category ids.
|
|
32
32
|
*/
|
|
33
33
|
export declare const resolveCategoryIdsFromPath: (path: readonly SubcategoryPathEntry[], fallbackCategoryIds: string[] | undefined) => string[] | undefined;
|
|
34
|
+
export declare const validateSubcategoryPath: <TCategory extends {
|
|
35
|
+
id: string;
|
|
36
|
+
parentId: string | null;
|
|
37
|
+
}>(requestedPath: readonly string[], rootCategoryId: string | null, childrenByParentId: ReadonlyMap<string, readonly TCategory[]>) => string[];
|
|
34
38
|
export declare const resolveTabVenus: (tab: EventListTab | undefined, visibleVenues?: readonly string[]) => UseVenueEventsOptions["venues"] | undefined;
|
|
@@ -31,4 +31,8 @@ export declare const sortCategoriesForNavigation: <TCategory extends CategoryNav
|
|
|
31
31
|
* - With an empty path, use the provided fallback category ids.
|
|
32
32
|
*/
|
|
33
33
|
export declare const resolveCategoryIdsFromPath: (path: readonly SubcategoryPathEntry[], fallbackCategoryIds: string[] | undefined) => string[] | undefined;
|
|
34
|
+
export declare const validateSubcategoryPath: <TCategory extends {
|
|
35
|
+
id: string;
|
|
36
|
+
parentId: string | null;
|
|
37
|
+
}>(requestedPath: readonly string[], rootCategoryId: string | null, childrenByParentId: ReadonlyMap<string, readonly TCategory[]>) => string[];
|
|
34
38
|
export declare const resolveTabVenus: (tab: EventListTab | undefined, visibleVenues?: readonly string[]) => UseVenueEventsOptions["venues"] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventListProps } from "./event-list.types";
|
|
2
2
|
export type { CategorySidebarLabels, CategorySidebarProps } from "./category-sidebar";
|
|
3
|
-
export type { EventListProps, EventListStateRef } from "./event-list.types";
|
|
3
|
+
export type { EventListFilterChangeOptions, EventListProps, EventListSortValue, EventListStateRef, } from "./event-list.types";
|
|
4
4
|
export declare const EventList: {
|
|
5
|
-
({ title, limit, maxVisibleItems, search, categoryIds, onCategoryRootChange, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
|
5
|
+
({ title, limit, maxVisibleItems, search, categoryIds, onCategoryRootChange, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, activeVenueTab: controlledActiveVenueTab, onActiveVenueTabChange, selectedSort: controlledSelectedSort, onSelectedSortChange, categoryPath: controlledCategoryPath, onCategoryPathChange, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventListProps } from "./event-list.types";
|
|
2
2
|
export type { CategorySidebarLabels, CategorySidebarProps } from "./category-sidebar";
|
|
3
|
-
export type { EventListProps, EventListStateRef } from "./event-list.types";
|
|
3
|
+
export type { EventListFilterChangeOptions, EventListProps, EventListSortValue, EventListStateRef, } from "./event-list.types";
|
|
4
4
|
export declare const EventList: {
|
|
5
|
-
({ title, limit, maxVisibleItems, search, categoryIds, onCategoryRootChange, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
|
5
|
+
({ title, limit, maxVisibleItems, search, categoryIds, onCategoryRootChange, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, activeVenueTab: controlledActiveVenueTab, onActiveVenueTabChange, selectedSort: controlledSelectedSort, onSelectedSortChange, categoryPath: controlledCategoryPath, onCategoryPathChange, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
@@ -7,6 +7,6 @@ export declare const MarketDetails: {
|
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const MarketDetailsList: {
|
|
10
|
-
({ eventId, markets: providedMarkets, eventTradingState, onClick, onOutcomeSelect, onExpandedMarketChange, autoSelectFallbackMarket, defaultTab, classNames, live, midpointsResult, }: MarketDetailsListProps): JSX.Element;
|
|
10
|
+
({ eventId, markets: providedMarkets, eventTradingState, onClick, onOutcomeSelect, onExpandedMarketChange, autoSelectFallbackMarket, defaultTab, classNames, live, showResolvingState, midpointsResult, }: MarketDetailsListProps): JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
@@ -7,6 +7,6 @@ export declare const MarketDetails: {
|
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const MarketDetailsList: {
|
|
10
|
-
({ eventId, markets: providedMarkets, eventTradingState, onClick, onOutcomeSelect, onExpandedMarketChange, autoSelectFallbackMarket, defaultTab, classNames, live, midpointsResult, }: MarketDetailsListProps): JSX.Element;
|
|
10
|
+
({ eventId, markets: providedMarkets, eventTradingState, onClick, onOutcomeSelect, onExpandedMarketChange, autoSelectFallbackMarket, defaultTab, classNames, live, showResolvingState, midpointsResult, }: MarketDetailsListProps): JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
@@ -84,6 +84,8 @@ export type MarketDetailsBaseProps = {
|
|
|
84
84
|
* (e.g. useEventOrderbookData on the event page).
|
|
85
85
|
* Defaults to the global `enableLiveUpdates` feature flag. */
|
|
86
86
|
live?: boolean;
|
|
87
|
+
/** Replace closed-market actions with the recurring settlement-pending state. */
|
|
88
|
+
showResolvingState?: boolean;
|
|
87
89
|
};
|
|
88
90
|
export type MarketDetailsLoadingProps = MarketDetailsBaseProps & {
|
|
89
91
|
/** Forces the market details component into its loading state. */
|
|
@@ -167,6 +169,8 @@ export type MarketDetailsListProps = {
|
|
|
167
169
|
/** Override live WS subscriptions for child MarketDetails.
|
|
168
170
|
* Set to `false` when a parent manages subscriptions centrally. */
|
|
169
171
|
live?: boolean;
|
|
172
|
+
/** Include the closed recurring market and render it as settlement pending. */
|
|
173
|
+
showResolvingState?: boolean;
|
|
170
174
|
/**
|
|
171
175
|
* Pre-fetched midpoint data (best price included) passed from parent.
|
|
172
176
|
* Optional for backward compatibility. When provided, reduces unnecessary
|
|
@@ -84,6 +84,8 @@ export type MarketDetailsBaseProps = {
|
|
|
84
84
|
* (e.g. useEventOrderbookData on the event page).
|
|
85
85
|
* Defaults to the global `enableLiveUpdates` feature flag. */
|
|
86
86
|
live?: boolean;
|
|
87
|
+
/** Replace closed-market actions with the recurring settlement-pending state. */
|
|
88
|
+
showResolvingState?: boolean;
|
|
87
89
|
};
|
|
88
90
|
export type MarketDetailsLoadingProps = MarketDetailsBaseProps & {
|
|
89
91
|
/** Forces the market details component into its loading state. */
|
|
@@ -167,6 +169,8 @@ export type MarketDetailsListProps = {
|
|
|
167
169
|
/** Override live WS subscriptions for child MarketDetails.
|
|
168
170
|
* Set to `false` when a parent manages subscriptions centrally. */
|
|
169
171
|
live?: boolean;
|
|
172
|
+
/** Include the closed recurring market and render it as settlement pending. */
|
|
173
|
+
showResolvingState?: boolean;
|
|
170
174
|
/**
|
|
171
175
|
* Pre-fetched midpoint data (best price included) passed from parent.
|
|
172
176
|
* Optional for backward compatibility. When provided, reduces unnecessary
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RecurringCryptoDuration } from "@agg-build/sdk";
|
|
1
2
|
type EventCategoryLike = {
|
|
2
3
|
id?: string | null;
|
|
3
4
|
category?: {
|
|
@@ -18,6 +19,13 @@ type ResolveEventHeadingParams = {
|
|
|
18
19
|
gameStartTime?: string | null;
|
|
19
20
|
endDate?: string | null;
|
|
20
21
|
venueMarkets?: readonly EventMarketLike[] | null;
|
|
22
|
+
/**
|
|
23
|
+
* Explicit recurring crypto window start. Passing `null` still marks the
|
|
24
|
+
* heading as recurring (and strips its embedded date) when the timestamp is
|
|
25
|
+
* temporarily unavailable.
|
|
26
|
+
*/
|
|
27
|
+
recurringCryptoWindowStart?: number | null;
|
|
28
|
+
recurringCryptoDuration?: RecurringCryptoDuration;
|
|
21
29
|
};
|
|
22
30
|
type EventHeading = {
|
|
23
31
|
title: string;
|
|
@@ -35,5 +43,5 @@ export declare const isSportEvent: (categories: readonly EventCategoryLike[] | n
|
|
|
35
43
|
export declare const shouldDisplaySportsEventTimestamp: ({ categories, structureType, venueMarkets, }: Pick<ResolveEventHeadingParams, "categories" | "structureType" | "venueMarkets">) => boolean;
|
|
36
44
|
export declare const resolveSportsEventTimestamp: ({ gameStartTime, endDate, }: Pick<ResolveEventHeadingParams, "gameStartTime" | "endDate">) => string | null;
|
|
37
45
|
export declare const resolveEventTimestampLabel: ({ categories, structureType, gameStartTime, endDate, venueMarkets, }: ResolveEventHeadingParams) => string | null;
|
|
38
|
-
export declare const resolveEventHeading: ({ title, categories, structureType, gameStartTime, endDate, venueMarkets, }: ResolveEventHeadingParams) => EventHeading;
|
|
46
|
+
export declare const resolveEventHeading: ({ title, categories, structureType, gameStartTime, endDate, venueMarkets, recurringCryptoWindowStart, recurringCryptoDuration, }: ResolveEventHeadingParams) => EventHeading;
|
|
39
47
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RecurringCryptoDuration } from "@agg-build/sdk";
|
|
1
2
|
type EventCategoryLike = {
|
|
2
3
|
id?: string | null;
|
|
3
4
|
category?: {
|
|
@@ -18,6 +19,13 @@ type ResolveEventHeadingParams = {
|
|
|
18
19
|
gameStartTime?: string | null;
|
|
19
20
|
endDate?: string | null;
|
|
20
21
|
venueMarkets?: readonly EventMarketLike[] | null;
|
|
22
|
+
/**
|
|
23
|
+
* Explicit recurring crypto window start. Passing `null` still marks the
|
|
24
|
+
* heading as recurring (and strips its embedded date) when the timestamp is
|
|
25
|
+
* temporarily unavailable.
|
|
26
|
+
*/
|
|
27
|
+
recurringCryptoWindowStart?: number | null;
|
|
28
|
+
recurringCryptoDuration?: RecurringCryptoDuration;
|
|
21
29
|
};
|
|
22
30
|
type EventHeading = {
|
|
23
31
|
title: string;
|
|
@@ -35,5 +43,5 @@ export declare const isSportEvent: (categories: readonly EventCategoryLike[] | n
|
|
|
35
43
|
export declare const shouldDisplaySportsEventTimestamp: ({ categories, structureType, venueMarkets, }: Pick<ResolveEventHeadingParams, "categories" | "structureType" | "venueMarkets">) => boolean;
|
|
36
44
|
export declare const resolveSportsEventTimestamp: ({ gameStartTime, endDate, }: Pick<ResolveEventHeadingParams, "gameStartTime" | "endDate">) => string | null;
|
|
37
45
|
export declare const resolveEventTimestampLabel: ({ categories, structureType, gameStartTime, endDate, venueMarkets, }: ResolveEventHeadingParams) => string | null;
|
|
38
|
-
export declare const resolveEventHeading: ({ title, categories, structureType, gameStartTime, endDate, venueMarkets, }: ResolveEventHeadingParams) => EventHeading;
|
|
46
|
+
export declare const resolveEventHeading: ({ title, categories, structureType, gameStartTime, endDate, venueMarkets, recurringCryptoWindowStart, recurringCryptoDuration, }: ResolveEventHeadingParams) => EventHeading;
|
|
39
47
|
export {};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const SPORTS_EVENT_TIMEZONE = "America/New_York";
|
|
2
2
|
export declare const formatSportsEventTimeEt: (value: string) => string | null;
|
|
3
|
+
export declare const formatRecurringMarketPillTimeEt: (value: string) => string | null;
|
|
4
|
+
export declare const formatRecurringMarketWindowTimeEt: (windowStart: string, windowEnd: string) => string | null;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const SPORTS_EVENT_TIMEZONE = "America/New_York";
|
|
2
2
|
export declare const formatSportsEventTimeEt: (value: string) => string | null;
|
|
3
|
+
export declare const formatRecurringMarketPillTimeEt: (value: string) => string | null;
|
|
4
|
+
export declare const formatRecurringMarketWindowTimeEt: (windowStart: string, windowEnd: string) => string | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SportsLiveState } from "@agg-build/hooks";
|
|
2
|
+
export type SportsLiveScoreProps = {
|
|
3
|
+
state?: SportsLiveState | null;
|
|
4
|
+
variant?: "card" | "detail";
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const SportsLiveScore: {
|
|
8
|
+
({ state, variant, className, }: SportsLiveScoreProps): JSX.Element | null;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SportsLiveState } from "@agg-build/hooks";
|
|
2
|
+
export type SportsLiveScoreProps = {
|
|
3
|
+
state?: SportsLiveState | null;
|
|
4
|
+
variant?: "card" | "detail";
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const SportsLiveScore: {
|
|
8
|
+
({ state, variant, className, }: SportsLiveScoreProps): JSX.Element | null;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -62,6 +62,10 @@ export type EventMarketPageBaseProps = {
|
|
|
62
62
|
ariaLabel?: string;
|
|
63
63
|
/** Whether the page should render its loading state. */
|
|
64
64
|
isLoading?: boolean;
|
|
65
|
+
/** Navigate between recurring event instances. Automatic transitions replace history. */
|
|
66
|
+
onRecurringMarketNavigate?: (eventId: string, options: {
|
|
67
|
+
replace: boolean;
|
|
68
|
+
}) => void;
|
|
65
69
|
};
|
|
66
70
|
export type EventMarketPageLoadingProps = EventMarketPageBaseProps & {
|
|
67
71
|
/** Forces the page into its loading state. */
|
|
@@ -62,6 +62,10 @@ export type EventMarketPageBaseProps = {
|
|
|
62
62
|
ariaLabel?: string;
|
|
63
63
|
/** Whether the page should render its loading state. */
|
|
64
64
|
isLoading?: boolean;
|
|
65
|
+
/** Navigate between recurring event instances. Automatic transitions replace history. */
|
|
66
|
+
onRecurringMarketNavigate?: (eventId: string, options: {
|
|
67
|
+
replace: boolean;
|
|
68
|
+
}) => void;
|
|
65
69
|
};
|
|
66
70
|
export type EventMarketPageLoadingProps = EventMarketPageBaseProps & {
|
|
67
71
|
/** Forces the page into its loading state. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EventMarketPageProps } from "./event-market.types";
|
|
2
2
|
export type { EventMarketPageClassNames, EventMarketPageProps } from "./event-market.types";
|
|
3
|
+
export declare const formatRecurringCountdown: (remainingMs: number) => string | null;
|
|
3
4
|
export declare const EventMarketPage: {
|
|
4
5
|
(props: EventMarketPageProps & {
|
|
5
6
|
onError?: (error: Error) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EventMarketPageProps } from "./event-market.types";
|
|
2
2
|
export type { EventMarketPageClassNames, EventMarketPageProps } from "./event-market.types";
|
|
3
|
+
export declare const formatRecurringCountdown: (remainingMs: number) => string | null;
|
|
3
4
|
export declare const EventMarketPage: {
|
|
4
5
|
(props: EventMarketPageProps & {
|
|
5
6
|
onError?: (error: Error) => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DEFAULT_EVENT_LIST_SORT, EVENT_LIST_SORT_VALUES } from "../../events/list/event-list.constants";
|
|
2
|
+
import type { EventListSortValue } from "../../events/list/event-list.types";
|
|
3
|
+
export { DEFAULT_EVENT_LIST_SORT, EVENT_LIST_SORT_VALUES };
|
|
4
|
+
export type { EventListSortValue };
|
|
5
|
+
export type EventDiscoveryUrlState = {
|
|
6
|
+
category: string;
|
|
7
|
+
subcategoryPath: string[];
|
|
8
|
+
venue: string;
|
|
9
|
+
sort: EventListSortValue;
|
|
10
|
+
};
|
|
11
|
+
type ParsedEventDiscoveryUrlState = {
|
|
12
|
+
category?: string;
|
|
13
|
+
subcategoryPath: string[];
|
|
14
|
+
venue?: string;
|
|
15
|
+
sort?: EventListSortValue;
|
|
16
|
+
categoryIsInvalid: boolean;
|
|
17
|
+
shouldCanonicalize: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const readEventDiscoveryUrlState: (searchParams: URLSearchParams) => ParsedEventDiscoveryUrlState;
|
|
20
|
+
export declare const resolveEventDiscoveryUrlState: ({ parsedState, categoryValues, venueValues, defaultCategory, defaultVenue, }: {
|
|
21
|
+
parsedState: ParsedEventDiscoveryUrlState;
|
|
22
|
+
categoryValues: readonly string[];
|
|
23
|
+
venueValues: readonly string[];
|
|
24
|
+
defaultCategory: string;
|
|
25
|
+
defaultVenue: string;
|
|
26
|
+
}) => {
|
|
27
|
+
state: EventDiscoveryUrlState;
|
|
28
|
+
shouldCanonicalize: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare const buildEventDiscoveryUrl: ({ currentUrl, state, defaultCategory, defaultVenue, }: {
|
|
31
|
+
currentUrl: URL;
|
|
32
|
+
state: EventDiscoveryUrlState;
|
|
33
|
+
defaultCategory: string;
|
|
34
|
+
defaultVenue: string;
|
|
35
|
+
}) => string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DEFAULT_EVENT_LIST_SORT, EVENT_LIST_SORT_VALUES } from "../../events/list/event-list.constants";
|
|
2
|
+
import type { EventListSortValue } from "../../events/list/event-list.types";
|
|
3
|
+
export { DEFAULT_EVENT_LIST_SORT, EVENT_LIST_SORT_VALUES };
|
|
4
|
+
export type { EventListSortValue };
|
|
5
|
+
export type EventDiscoveryUrlState = {
|
|
6
|
+
category: string;
|
|
7
|
+
subcategoryPath: string[];
|
|
8
|
+
venue: string;
|
|
9
|
+
sort: EventListSortValue;
|
|
10
|
+
};
|
|
11
|
+
type ParsedEventDiscoveryUrlState = {
|
|
12
|
+
category?: string;
|
|
13
|
+
subcategoryPath: string[];
|
|
14
|
+
venue?: string;
|
|
15
|
+
sort?: EventListSortValue;
|
|
16
|
+
categoryIsInvalid: boolean;
|
|
17
|
+
shouldCanonicalize: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const readEventDiscoveryUrlState: (searchParams: URLSearchParams) => ParsedEventDiscoveryUrlState;
|
|
20
|
+
export declare const resolveEventDiscoveryUrlState: ({ parsedState, categoryValues, venueValues, defaultCategory, defaultVenue, }: {
|
|
21
|
+
parsedState: ParsedEventDiscoveryUrlState;
|
|
22
|
+
categoryValues: readonly string[];
|
|
23
|
+
venueValues: readonly string[];
|
|
24
|
+
defaultCategory: string;
|
|
25
|
+
defaultVenue: string;
|
|
26
|
+
}) => {
|
|
27
|
+
state: EventDiscoveryUrlState;
|
|
28
|
+
shouldCanonicalize: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare const buildEventDiscoveryUrl: ({ currentUrl, state, defaultCategory, defaultVenue, }: {
|
|
31
|
+
currentUrl: URL;
|
|
32
|
+
state: EventDiscoveryUrlState;
|
|
33
|
+
defaultCategory: string;
|
|
34
|
+
defaultVenue: string;
|
|
35
|
+
}) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Ref } from "react";
|
|
2
|
+
import type { VenueLogoName } from "../../../primitives/venue-logo/venue-logo.types";
|
|
2
3
|
type ChainRow = {
|
|
3
4
|
key: string;
|
|
4
5
|
label: string;
|
|
@@ -15,6 +16,10 @@ type AvailableBalanceCardProps = {
|
|
|
15
16
|
onManage?: () => void;
|
|
16
17
|
manageButtonRef?: Ref<HTMLButtonElement>;
|
|
17
18
|
};
|
|
19
|
+
/** Active managed-funding venues shown on a chain's balance row. */
|
|
20
|
+
export declare const venueLogosForChain: (chainId: string | number) => VenueLogoName[];
|
|
21
|
+
/** Whether the chain participates in venue funding or settlement, including historical support. */
|
|
22
|
+
export declare const isVenueBalanceChain: (chainId: string | number) => boolean;
|
|
18
23
|
export declare const chainIconUrl: (label: string, key?: string) => string | undefined;
|
|
19
24
|
export declare const AvailableBalanceCard: {
|
|
20
25
|
({ label, valueLabel, reservedValueLabel, chains, isLoading, className, onManage, manageButtonRef, }: AvailableBalanceCardProps): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Ref } from "react";
|
|
2
|
+
import type { VenueLogoName } from "../../../primitives/venue-logo/venue-logo.types";
|
|
2
3
|
type ChainRow = {
|
|
3
4
|
key: string;
|
|
4
5
|
label: string;
|
|
@@ -15,6 +16,10 @@ type AvailableBalanceCardProps = {
|
|
|
15
16
|
onManage?: () => void;
|
|
16
17
|
manageButtonRef?: Ref<HTMLButtonElement>;
|
|
17
18
|
};
|
|
19
|
+
/** Active managed-funding venues shown on a chain's balance row. */
|
|
20
|
+
export declare const venueLogosForChain: (chainId: string | number) => VenueLogoName[];
|
|
21
|
+
/** Whether the chain participates in venue funding or settlement, including historical support. */
|
|
22
|
+
export declare const isVenueBalanceChain: (chainId: string | number) => boolean;
|
|
18
23
|
export declare const chainIconUrl: (label: string, key?: string) => string | undefined;
|
|
19
24
|
export declare const AvailableBalanceCard: {
|
|
20
25
|
({ label, valueLabel, reservedValueLabel, chains, isLoading, className, onManage, manageButtonRef, }: AvailableBalanceCardProps): JSX.Element;
|
|
@@ -15,6 +15,7 @@ type OpenOrderRowProps = {
|
|
|
15
15
|
expirationHeader?: string;
|
|
16
16
|
};
|
|
17
17
|
export declare const canCancelOpenOrder: (order: UserProfileOpenOrder) => boolean;
|
|
18
|
+
export declare const isPendingOpenOrder: (order: UserProfileOpenOrder) => boolean;
|
|
18
19
|
export declare const OpenOrderRow: {
|
|
19
20
|
({ order, href, onClick, onCancel, isCancelling, cancelLabel, cancelAriaLabel, limitPriceHeader, filledHeader, totalHeader, expirationHeader, }: OpenOrderRowProps): JSX.Element;
|
|
20
21
|
displayName: string;
|
|
@@ -15,6 +15,7 @@ type OpenOrderRowProps = {
|
|
|
15
15
|
expirationHeader?: string;
|
|
16
16
|
};
|
|
17
17
|
export declare const canCancelOpenOrder: (order: UserProfileOpenOrder) => boolean;
|
|
18
|
+
export declare const isPendingOpenOrder: (order: UserProfileOpenOrder) => boolean;
|
|
18
19
|
export declare const OpenOrderRow: {
|
|
19
20
|
({ order, href, onClick, onCancel, isCancelling, cancelLabel, cancelAriaLabel, limitPriceHeader, filledHeader, totalHeader, expirationHeader, }: OpenOrderRowProps): JSX.Element;
|
|
20
21
|
displayName: string;
|