@agg-build/ui 1.2.4 → 1.2.6
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/{chunk-VH3DMH77.mjs → chunk-2HI6K7JF.mjs} +8 -5
- package/dist/{chunk-PALIVBG3.mjs → chunk-34L7ZKJW.mjs} +2 -1
- package/dist/{chunk-OFFJNHAG.mjs → chunk-5FXMHTVR.mjs} +1 -1
- package/dist/{chunk-P2OOA3U3.mjs → chunk-E45WOOMN.mjs} +2 -2
- package/dist/{chunk-6FVYER7E.mjs → chunk-FS3FGVAG.mjs} +58 -64
- package/dist/{chunk-ISAU6HX5.mjs → chunk-TBKDLNOE.mjs} +1 -1
- package/dist/{chunk-UCH7MMRN.mjs → chunk-WPF47BQQ.mjs} +7 -3
- package/dist/events.js +2 -1
- package/dist/events.mjs +3 -3
- package/dist/index.js +68 -66
- package/dist/index.mjs +7 -7
- package/dist/modals.js +6 -2
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +62 -64
- package/dist/pages.mjs +6 -6
- package/dist/primitives.mjs +1 -1
- package/dist/trading.js +55 -61
- package/dist/trading.mjs +4 -4
- package/package.json +1 -1
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
isErrorWithStatus,
|
|
10
10
|
useEventListTabs,
|
|
11
11
|
useEventListTabsHeaderOverflow
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E45WOOMN.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
15
15
|
PlaceOrder,
|
|
16
16
|
SettlementDetails,
|
|
17
17
|
WITHDRAW_MODAL_OPEN_EVENT
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FS3FGVAG.mjs";
|
|
19
19
|
import {
|
|
20
20
|
AggErrorBoundary,
|
|
21
21
|
Button,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
filterOpenEvents,
|
|
45
45
|
resolveTabVenus,
|
|
46
46
|
shortenAddress
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-34L7ZKJW.mjs";
|
|
48
48
|
|
|
49
49
|
// src/pages/home/index.tsx
|
|
50
50
|
import {
|
|
@@ -3009,8 +3009,11 @@ var hasActivityError = (item) => {
|
|
|
3009
3009
|
var isVisibleActivityItem = (item) => {
|
|
3010
3010
|
var _a;
|
|
3011
3011
|
if (item.type === "user_op" || item.type === "bridge") return false;
|
|
3012
|
-
if (item.type === "trade"
|
|
3013
|
-
return false;
|
|
3012
|
+
if (item.type === "trade") {
|
|
3013
|
+
if (isOpenOrderStatus(item.status)) return false;
|
|
3014
|
+
if (item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
|
|
3015
|
+
return false;
|
|
3016
|
+
}
|
|
3014
3017
|
return true;
|
|
3015
3018
|
};
|
|
3016
3019
|
var isVisibleUserProfileActivity = (activity) => activity.kind !== "bridge";
|
|
@@ -5488,7 +5488,8 @@ var getDefaultEventListTabs = (labels) => {
|
|
|
5488
5488
|
value: Venue.hyperliquid,
|
|
5489
5489
|
label: labels.venues.hyperliquid,
|
|
5490
5490
|
venueLogo: Venue.hyperliquid,
|
|
5491
|
-
venues: [Venue.hyperliquid]
|
|
5491
|
+
venues: [Venue.hyperliquid],
|
|
5492
|
+
isComingSoon: true
|
|
5492
5493
|
}
|
|
5493
5494
|
];
|
|
5494
5495
|
};
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
resolveUnifiedOrderBookEntries,
|
|
22
22
|
sortOutcomeSelectorOutcomes,
|
|
23
23
|
useEventTradingContext
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TBKDLNOE.mjs";
|
|
25
25
|
import {
|
|
26
26
|
AutocompleteSelect,
|
|
27
27
|
Badge,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
sortMarketsByYesOddsDesc,
|
|
74
74
|
sortOutcomes,
|
|
75
75
|
splitEventsByLifecycle
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-34L7ZKJW.mjs";
|
|
77
77
|
|
|
78
78
|
// src/events/item/index.tsx
|
|
79
79
|
import {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
getTradingValueLabel,
|
|
8
8
|
getTradingVenueLabel,
|
|
9
9
|
resolveOrderEligibilityMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TBKDLNOE.mjs";
|
|
11
11
|
import {
|
|
12
12
|
GeoBlockBanner
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5FXMHTVR.mjs";
|
|
14
14
|
import {
|
|
15
15
|
AGG_TERMS_OF_SERVICE_URL,
|
|
16
16
|
Button,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
getMotionClassName,
|
|
38
38
|
normalizeVenueMarketCluster,
|
|
39
39
|
skeletonViews
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-34L7ZKJW.mjs";
|
|
41
41
|
|
|
42
42
|
// src/trading/types.ts
|
|
43
43
|
import { Venue, enumGuard, isFiniteNonNeg, safeParse } from "@agg-build/sdk";
|
|
@@ -1765,70 +1765,64 @@ var PlaceOrderResolvedView = ({
|
|
|
1765
1765
|
classNames == null ? void 0 : classNames.root,
|
|
1766
1766
|
className
|
|
1767
1767
|
),
|
|
1768
|
-
children: /* @__PURE__ */ jsxs3(
|
|
1769
|
-
"div",
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1768
|
+
children: /* @__PURE__ */ jsxs3("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
|
|
1769
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-6 p-8", children: [
|
|
1770
|
+
/* @__PURE__ */ jsx4(
|
|
1771
|
+
"div",
|
|
1772
|
+
{
|
|
1773
|
+
className: cn(
|
|
1774
|
+
"flex h-15 w-15 items-center justify-center rounded-full",
|
|
1775
|
+
resolvedIconContainerClassName
|
|
1776
|
+
),
|
|
1777
|
+
children: /* @__PURE__ */ jsx4(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
|
|
1778
|
+
}
|
|
1774
1779
|
),
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1780
|
+
/* @__PURE__ */ jsxs3(
|
|
1781
|
+
"div",
|
|
1782
|
+
{
|
|
1783
|
+
className: cn(
|
|
1784
|
+
"agg-order-panel-content flex flex-col items-center gap-1",
|
|
1785
|
+
classNames == null ? void 0 : classNames.content
|
|
1786
|
+
),
|
|
1787
|
+
children: [
|
|
1788
|
+
tradingState.market ? /* @__PURE__ */ jsx4(Typography, { variant: "body", children: tradingState.market.question }) : null,
|
|
1789
|
+
tradingState.winningOutcome ? /* @__PURE__ */ jsx4(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
1790
|
+
]
|
|
1791
|
+
}
|
|
1792
|
+
)
|
|
1793
|
+
] }),
|
|
1794
|
+
resolvedClaim ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1795
|
+
/* @__PURE__ */ jsx4("div", { className: "h-px w-full bg-agg-separator" }),
|
|
1796
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex w-full flex-col gap-5 p-6", children: [
|
|
1797
|
+
/* @__PURE__ */ jsx4(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
1798
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
1799
|
+
resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
|
|
1800
|
+
/* @__PURE__ */ jsx4("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
1801
|
+
/* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
1802
|
+
] }) : null,
|
|
1803
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
|
|
1804
|
+
/* @__PURE__ */ jsx4("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
1805
|
+
/* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
1806
|
+
] }),
|
|
1807
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
|
|
1808
|
+
/* @__PURE__ */ jsx4("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
1809
|
+
/* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
1810
|
+
] })
|
|
1811
|
+
] }),
|
|
1812
|
+
resolvedClaim.onClaim ? /* @__PURE__ */ jsx4(
|
|
1813
|
+
Button,
|
|
1788
1814
|
{
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
tradingState.winningOutcome ? /* @__PURE__ */ jsx4(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
1796
|
-
]
|
|
1815
|
+
size: "large",
|
|
1816
|
+
className: "w-full",
|
|
1817
|
+
onClick: resolvedClaim.onClaim,
|
|
1818
|
+
isLoading: resolvedClaim.isClaiming,
|
|
1819
|
+
disabled: resolvedClaim.isClaiming,
|
|
1820
|
+
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
1797
1821
|
}
|
|
1798
|
-
)
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
/* @__PURE__ */ jsx4(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
1803
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
1804
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
|
|
1805
|
-
/* @__PURE__ */ jsx4("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
1806
|
-
/* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
1807
|
-
] }),
|
|
1808
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
|
|
1809
|
-
/* @__PURE__ */ jsx4("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
1810
|
-
/* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
1811
|
-
] }),
|
|
1812
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
|
|
1813
|
-
/* @__PURE__ */ jsx4("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
1814
|
-
/* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
1815
|
-
] })
|
|
1816
|
-
] }),
|
|
1817
|
-
resolvedClaim.onClaim ? /* @__PURE__ */ jsx4(
|
|
1818
|
-
Button,
|
|
1819
|
-
{
|
|
1820
|
-
size: "large",
|
|
1821
|
-
onClick: resolvedClaim.onClaim,
|
|
1822
|
-
isLoading: resolvedClaim.isClaiming,
|
|
1823
|
-
disabled: resolvedClaim.isClaiming,
|
|
1824
|
-
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
1825
|
-
}
|
|
1826
|
-
) : null
|
|
1827
|
-
] })
|
|
1828
|
-
] }) : null
|
|
1829
|
-
]
|
|
1830
|
-
}
|
|
1831
|
-
)
|
|
1822
|
+
) : null
|
|
1823
|
+
] })
|
|
1824
|
+
] }) : null
|
|
1825
|
+
] })
|
|
1832
1826
|
}
|
|
1833
1827
|
);
|
|
1834
1828
|
};
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
getMotionClassName,
|
|
35
35
|
shortenAddress,
|
|
36
36
|
venueLogoLabels
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-34L7ZKJW.mjs";
|
|
38
38
|
|
|
39
39
|
// src/deposit/index.tsx
|
|
40
40
|
import { useEffect as useEffect3, useMemo, useRef, useState as useState2 } from "react";
|
|
@@ -1748,7 +1748,11 @@ var WithdrawAmountStep = ({
|
|
|
1748
1748
|
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
|
|
1749
1749
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-between", children: [
|
|
1750
1750
|
/* @__PURE__ */ jsx13("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
|
|
1751
|
-
/* @__PURE__ */
|
|
1751
|
+
/* @__PURE__ */ jsxs13("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
1752
|
+
labels.withdraw.balancePrefix,
|
|
1753
|
+
" ",
|
|
1754
|
+
balanceDisplay
|
|
1755
|
+
] })
|
|
1752
1756
|
] }),
|
|
1753
1757
|
/* @__PURE__ */ jsxs13("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
|
|
1754
1758
|
/* @__PURE__ */ jsx13(
|
|
@@ -2191,7 +2195,7 @@ function WithdrawModalControlled({
|
|
|
2191
2195
|
});
|
|
2192
2196
|
const withdrawTokenOptions = withTokenIcons(withdrawFlow.tokenOptions);
|
|
2193
2197
|
const withdrawNetworkOptions = withNetworkIcons(withdrawFlow.networkOptions);
|
|
2194
|
-
return /* @__PURE__ */ jsx15(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs15(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
|
|
2198
|
+
return /* @__PURE__ */ jsx15(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs15(Modal.Container, { maxWidth: step === "method" ? "600px" : "480px", "aria-label": "Withdraw", children: [
|
|
2195
2199
|
step === "method" ? /* @__PURE__ */ jsx15(
|
|
2196
2200
|
WithdrawMethodStep,
|
|
2197
2201
|
{
|
package/dist/events.js
CHANGED
|
@@ -4343,7 +4343,8 @@ var getDefaultEventListTabs = (labels) => {
|
|
|
4343
4343
|
value: import_sdk2.Venue.hyperliquid,
|
|
4344
4344
|
label: labels.venues.hyperliquid,
|
|
4345
4345
|
venueLogo: import_sdk2.Venue.hyperliquid,
|
|
4346
|
-
venues: [import_sdk2.Venue.hyperliquid]
|
|
4346
|
+
venues: [import_sdk2.Venue.hyperliquid],
|
|
4347
|
+
isComingSoon: true
|
|
4347
4348
|
}
|
|
4348
4349
|
];
|
|
4349
4350
|
};
|
package/dist/events.mjs
CHANGED
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
mergeVenueOutcomeOrderbooks,
|
|
15
15
|
orderbookRowLimitDefault,
|
|
16
16
|
useCenterOrderbookSpread
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-E45WOOMN.mjs";
|
|
18
18
|
import {
|
|
19
19
|
formatProbabilityCents,
|
|
20
20
|
resolveOrderBookRows,
|
|
21
21
|
resolveUnifiedOrderBookEntries
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-TBKDLNOE.mjs";
|
|
23
|
+
import "./chunk-34L7ZKJW.mjs";
|
|
24
24
|
export {
|
|
25
25
|
EventList,
|
|
26
26
|
EventListItem,
|
package/dist/index.js
CHANGED
|
@@ -5686,7 +5686,8 @@ var getDefaultEventListTabs = (labels) => {
|
|
|
5686
5686
|
value: import_sdk2.Venue.hyperliquid,
|
|
5687
5687
|
label: labels.venues.hyperliquid,
|
|
5688
5688
|
venueLogo: import_sdk2.Venue.hyperliquid,
|
|
5689
|
-
venues: [import_sdk2.Venue.hyperliquid]
|
|
5689
|
+
venues: [import_sdk2.Venue.hyperliquid],
|
|
5690
|
+
isComingSoon: true
|
|
5690
5691
|
}
|
|
5691
5692
|
];
|
|
5692
5693
|
};
|
|
@@ -17184,70 +17185,64 @@ var PlaceOrderResolvedView = ({
|
|
|
17184
17185
|
classNames == null ? void 0 : classNames.root,
|
|
17185
17186
|
className
|
|
17186
17187
|
),
|
|
17187
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
|
|
17188
|
-
"div",
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17188
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
|
|
17189
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
|
|
17190
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
17191
|
+
"div",
|
|
17192
|
+
{
|
|
17193
|
+
className: cn(
|
|
17194
|
+
"flex h-15 w-15 items-center justify-center rounded-full",
|
|
17195
|
+
resolvedIconContainerClassName
|
|
17196
|
+
),
|
|
17197
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
|
|
17198
|
+
}
|
|
17193
17199
|
),
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17199
|
-
|
|
17200
|
-
|
|
17201
|
-
|
|
17202
|
-
|
|
17203
|
-
|
|
17204
|
-
|
|
17205
|
-
|
|
17206
|
-
|
|
17200
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
|
|
17201
|
+
"div",
|
|
17202
|
+
{
|
|
17203
|
+
className: cn(
|
|
17204
|
+
"agg-order-panel-content flex flex-col items-center gap-1",
|
|
17205
|
+
classNames == null ? void 0 : classNames.content
|
|
17206
|
+
),
|
|
17207
|
+
children: [
|
|
17208
|
+
tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
|
|
17209
|
+
tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
17210
|
+
]
|
|
17211
|
+
}
|
|
17212
|
+
)
|
|
17213
|
+
] }),
|
|
17214
|
+
resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
|
|
17215
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
17216
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
|
|
17217
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
17218
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
17219
|
+
resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
17220
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
17221
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
17222
|
+
] }) : null,
|
|
17223
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
17224
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
17225
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
17226
|
+
] }),
|
|
17227
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
17228
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
17229
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
17230
|
+
] })
|
|
17231
|
+
] }),
|
|
17232
|
+
resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
17233
|
+
Button,
|
|
17207
17234
|
{
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
17211
|
-
|
|
17212
|
-
|
|
17213
|
-
|
|
17214
|
-
tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
17215
|
-
]
|
|
17235
|
+
size: "large",
|
|
17236
|
+
className: "w-full",
|
|
17237
|
+
onClick: resolvedClaim.onClaim,
|
|
17238
|
+
isLoading: resolvedClaim.isClaiming,
|
|
17239
|
+
disabled: resolvedClaim.isClaiming,
|
|
17240
|
+
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
17216
17241
|
}
|
|
17217
|
-
)
|
|
17218
|
-
|
|
17219
|
-
|
|
17220
|
-
|
|
17221
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
17222
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
17223
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
17224
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
17225
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
17226
|
-
] }),
|
|
17227
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
17228
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
17229
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
17230
|
-
] }),
|
|
17231
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
17232
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
17233
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
17234
|
-
] })
|
|
17235
|
-
] }),
|
|
17236
|
-
resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
17237
|
-
Button,
|
|
17238
|
-
{
|
|
17239
|
-
size: "large",
|
|
17240
|
-
onClick: resolvedClaim.onClaim,
|
|
17241
|
-
isLoading: resolvedClaim.isClaiming,
|
|
17242
|
-
disabled: resolvedClaim.isClaiming,
|
|
17243
|
-
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
17244
|
-
}
|
|
17245
|
-
) : null
|
|
17246
|
-
] })
|
|
17247
|
-
] }) : null
|
|
17248
|
-
]
|
|
17249
|
-
}
|
|
17250
|
-
)
|
|
17242
|
+
) : null
|
|
17243
|
+
] })
|
|
17244
|
+
] }) : null
|
|
17245
|
+
] })
|
|
17251
17246
|
}
|
|
17252
17247
|
);
|
|
17253
17248
|
};
|
|
@@ -21799,8 +21794,11 @@ var hasActivityError = (item) => {
|
|
|
21799
21794
|
var isVisibleActivityItem = (item) => {
|
|
21800
21795
|
var _a;
|
|
21801
21796
|
if (item.type === "user_op" || item.type === "bridge") return false;
|
|
21802
|
-
if (item.type === "trade"
|
|
21803
|
-
return false;
|
|
21797
|
+
if (item.type === "trade") {
|
|
21798
|
+
if (isOpenOrderStatus(item.status)) return false;
|
|
21799
|
+
if (item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
|
|
21800
|
+
return false;
|
|
21801
|
+
}
|
|
21804
21802
|
return true;
|
|
21805
21803
|
};
|
|
21806
21804
|
var isVisibleUserProfileActivity = (activity) => activity.kind !== "bridge";
|
|
@@ -24193,7 +24191,11 @@ var WithdrawAmountStep = ({
|
|
|
24193
24191
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
24194
24192
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
24195
24193
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
|
|
24196
|
-
/* @__PURE__ */ (0, import_jsx_runtime165.
|
|
24194
|
+
/* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
24195
|
+
labels.withdraw.balancePrefix,
|
|
24196
|
+
" ",
|
|
24197
|
+
balanceDisplay
|
|
24198
|
+
] })
|
|
24197
24199
|
] }),
|
|
24198
24200
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
|
|
24199
24201
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
@@ -24636,7 +24638,7 @@ function WithdrawModalControlled({
|
|
|
24636
24638
|
});
|
|
24637
24639
|
const withdrawTokenOptions = withTokenIcons(withdrawFlow.tokenOptions);
|
|
24638
24640
|
const withdrawNetworkOptions = withNetworkIcons(withdrawFlow.networkOptions);
|
|
24639
|
-
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
|
|
24641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(Modal.Container, { maxWidth: step === "method" ? "600px" : "480px", "aria-label": "Withdraw", children: [
|
|
24640
24642
|
step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
24641
24643
|
WithdrawMethodStep,
|
|
24642
24644
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
USER_PROFILE_TAB_POSITIONS,
|
|
11
11
|
UserProfilePage,
|
|
12
12
|
useHomePageModals
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2HI6K7JF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
EventList,
|
|
16
16
|
EventListItem,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
mergeVenueOutcomeOrderbooks,
|
|
26
26
|
orderbookRowLimitDefault,
|
|
27
27
|
useCenterOrderbookSpread
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E45WOOMN.mjs";
|
|
29
29
|
import {
|
|
30
30
|
CARD_NETWORK_OPTIONS,
|
|
31
31
|
ConnectAccountsStep,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
WithdrawModal,
|
|
41
41
|
clearPendingCardSession,
|
|
42
42
|
getPendingCardSession
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WPF47BQQ.mjs";
|
|
44
44
|
import {
|
|
45
45
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
46
46
|
PlaceOrder,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
parseVenue,
|
|
53
53
|
requestAggDepositModalOpen,
|
|
54
54
|
requestAggWithdrawModalOpen
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-FS3FGVAG.mjs";
|
|
56
56
|
import {
|
|
57
57
|
SETTLEMENT_SECTION_ID,
|
|
58
58
|
Settlement,
|
|
@@ -70,10 +70,10 @@ import {
|
|
|
70
70
|
resolveOrderBookRows,
|
|
71
71
|
resolveUnifiedOrderBookEntries,
|
|
72
72
|
useEventTradingContext
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-TBKDLNOE.mjs";
|
|
74
74
|
import {
|
|
75
75
|
GeoBlockBanner
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-5FXMHTVR.mjs";
|
|
77
77
|
import {
|
|
78
78
|
AGG_DEFAULT_URL,
|
|
79
79
|
AGG_DOCS_URL,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
typographyVariants,
|
|
188
188
|
useToast,
|
|
189
189
|
venueLogoNames
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-34L7ZKJW.mjs";
|
|
191
191
|
|
|
192
192
|
// src/auth/connect-button-view/index.tsx
|
|
193
193
|
import { optimizedImageUrl, useAggAuthContext, useLabels, useSdkUiConfig } from "@agg-build/hooks";
|
package/dist/modals.js
CHANGED
|
@@ -5823,7 +5823,11 @@ var WithdrawAmountStep = ({
|
|
|
5823
5823
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
5824
5824
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
5825
5825
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
|
|
5826
|
-
/* @__PURE__ */ (0, import_jsx_runtime105.
|
|
5826
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
5827
|
+
labels.withdraw.balancePrefix,
|
|
5828
|
+
" ",
|
|
5829
|
+
balanceDisplay
|
|
5830
|
+
] })
|
|
5827
5831
|
] }),
|
|
5828
5832
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
|
|
5829
5833
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
@@ -6266,7 +6270,7 @@ function WithdrawModalControlled({
|
|
|
6266
6270
|
});
|
|
6267
6271
|
const withdrawTokenOptions = withTokenIcons(withdrawFlow.tokenOptions);
|
|
6268
6272
|
const withdrawNetworkOptions = withNetworkIcons(withdrawFlow.networkOptions);
|
|
6269
|
-
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
|
|
6273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(Modal.Container, { maxWidth: step === "method" ? "600px" : "480px", "aria-label": "Withdraw", children: [
|
|
6270
6274
|
step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6271
6275
|
WithdrawMethodStep,
|
|
6272
6276
|
{
|
package/dist/modals.mjs
CHANGED
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
WithdrawModal,
|
|
14
14
|
clearPendingCardSession,
|
|
15
15
|
getPendingCardSession
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WPF47BQQ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
GeoBlockBanner
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-5FXMHTVR.mjs";
|
|
20
|
+
import "./chunk-34L7ZKJW.mjs";
|
|
21
21
|
export {
|
|
22
22
|
CARD_NETWORK_OPTIONS,
|
|
23
23
|
ConnectAccountsStep,
|
package/dist/pages.js
CHANGED
|
@@ -4941,7 +4941,8 @@ var getDefaultEventListTabs = (labels) => {
|
|
|
4941
4941
|
value: import_sdk2.Venue.hyperliquid,
|
|
4942
4942
|
label: labels.venues.hyperliquid,
|
|
4943
4943
|
venueLogo: import_sdk2.Venue.hyperliquid,
|
|
4944
|
-
venues: [import_sdk2.Venue.hyperliquid]
|
|
4944
|
+
venues: [import_sdk2.Venue.hyperliquid],
|
|
4945
|
+
isComingSoon: true
|
|
4945
4946
|
}
|
|
4946
4947
|
];
|
|
4947
4948
|
};
|
|
@@ -15417,70 +15418,64 @@ var PlaceOrderResolvedView = ({
|
|
|
15417
15418
|
classNames == null ? void 0 : classNames.root,
|
|
15418
15419
|
className
|
|
15419
15420
|
),
|
|
15420
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
|
|
15421
|
-
"div",
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15421
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
|
|
15422
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
|
|
15423
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
15424
|
+
"div",
|
|
15425
|
+
{
|
|
15426
|
+
className: cn(
|
|
15427
|
+
"flex h-15 w-15 items-center justify-center rounded-full",
|
|
15428
|
+
resolvedIconContainerClassName
|
|
15429
|
+
),
|
|
15430
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
|
|
15431
|
+
}
|
|
15426
15432
|
),
|
|
15427
|
-
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
|
|
15431
|
-
|
|
15432
|
-
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
|
|
15439
|
-
|
|
15433
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
|
|
15434
|
+
"div",
|
|
15435
|
+
{
|
|
15436
|
+
className: cn(
|
|
15437
|
+
"agg-order-panel-content flex flex-col items-center gap-1",
|
|
15438
|
+
classNames == null ? void 0 : classNames.content
|
|
15439
|
+
),
|
|
15440
|
+
children: [
|
|
15441
|
+
tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
|
|
15442
|
+
tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
15443
|
+
]
|
|
15444
|
+
}
|
|
15445
|
+
)
|
|
15446
|
+
] }),
|
|
15447
|
+
resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
|
|
15448
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
15449
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
|
|
15450
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
15451
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
15452
|
+
resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15453
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
15454
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
15455
|
+
] }) : null,
|
|
15456
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15457
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
15458
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
15459
|
+
] }),
|
|
15460
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15461
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
15462
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
15463
|
+
] })
|
|
15464
|
+
] }),
|
|
15465
|
+
resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
15466
|
+
Button,
|
|
15440
15467
|
{
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
15448
|
-
]
|
|
15468
|
+
size: "large",
|
|
15469
|
+
className: "w-full",
|
|
15470
|
+
onClick: resolvedClaim.onClaim,
|
|
15471
|
+
isLoading: resolvedClaim.isClaiming,
|
|
15472
|
+
disabled: resolvedClaim.isClaiming,
|
|
15473
|
+
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
15449
15474
|
}
|
|
15450
|
-
)
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
|
|
15454
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
15455
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
15456
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15457
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
15458
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
15459
|
-
] }),
|
|
15460
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15461
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
15462
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
15463
|
-
] }),
|
|
15464
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15465
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
15466
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
15467
|
-
] })
|
|
15468
|
-
] }),
|
|
15469
|
-
resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
15470
|
-
Button,
|
|
15471
|
-
{
|
|
15472
|
-
size: "large",
|
|
15473
|
-
onClick: resolvedClaim.onClaim,
|
|
15474
|
-
isLoading: resolvedClaim.isClaiming,
|
|
15475
|
-
disabled: resolvedClaim.isClaiming,
|
|
15476
|
-
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
15477
|
-
}
|
|
15478
|
-
) : null
|
|
15479
|
-
] })
|
|
15480
|
-
] }) : null
|
|
15481
|
-
]
|
|
15482
|
-
}
|
|
15483
|
-
)
|
|
15475
|
+
) : null
|
|
15476
|
+
] })
|
|
15477
|
+
] }) : null
|
|
15478
|
+
] })
|
|
15484
15479
|
}
|
|
15485
15480
|
);
|
|
15486
15481
|
};
|
|
@@ -20088,8 +20083,11 @@ var hasActivityError = (item) => {
|
|
|
20088
20083
|
var isVisibleActivityItem = (item) => {
|
|
20089
20084
|
var _a;
|
|
20090
20085
|
if (item.type === "user_op" || item.type === "bridge") return false;
|
|
20091
|
-
if (item.type === "trade"
|
|
20092
|
-
return false;
|
|
20086
|
+
if (item.type === "trade") {
|
|
20087
|
+
if (isOpenOrderStatus(item.status)) return false;
|
|
20088
|
+
if (item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
|
|
20089
|
+
return false;
|
|
20090
|
+
}
|
|
20093
20091
|
return true;
|
|
20094
20092
|
};
|
|
20095
20093
|
var isVisibleUserProfileActivity = (activity) => activity.kind !== "bridge";
|
package/dist/pages.mjs
CHANGED
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
USER_PROFILE_TAB_POSITIONS,
|
|
8
8
|
UserProfilePage,
|
|
9
9
|
useHomePageModals
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-2HI6K7JF.mjs";
|
|
11
|
+
import "./chunk-E45WOOMN.mjs";
|
|
12
12
|
import {
|
|
13
13
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
14
14
|
WITHDRAW_MODAL_OPEN_EVENT,
|
|
15
15
|
requestAggDepositModalOpen,
|
|
16
16
|
requestAggWithdrawModalOpen
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-FS3FGVAG.mjs";
|
|
18
|
+
import "./chunk-TBKDLNOE.mjs";
|
|
19
|
+
import "./chunk-5FXMHTVR.mjs";
|
|
20
|
+
import "./chunk-34L7ZKJW.mjs";
|
|
21
21
|
export {
|
|
22
22
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
23
23
|
EventMarketPage,
|
package/dist/primitives.mjs
CHANGED
package/dist/trading.js
CHANGED
|
@@ -7353,70 +7353,64 @@ var PlaceOrderResolvedView = ({
|
|
|
7353
7353
|
classNames == null ? void 0 : classNames.root,
|
|
7354
7354
|
className
|
|
7355
7355
|
),
|
|
7356
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7357
|
-
"div",
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7356
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
|
|
7357
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
|
|
7358
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7359
|
+
"div",
|
|
7360
|
+
{
|
|
7361
|
+
className: cn(
|
|
7362
|
+
"flex h-15 w-15 items-center justify-center rounded-full",
|
|
7363
|
+
resolvedIconContainerClassName
|
|
7364
|
+
),
|
|
7365
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
|
|
7366
|
+
}
|
|
7362
7367
|
),
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7368
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7369
|
+
"div",
|
|
7370
|
+
{
|
|
7371
|
+
className: cn(
|
|
7372
|
+
"agg-order-panel-content flex flex-col items-center gap-1",
|
|
7373
|
+
classNames == null ? void 0 : classNames.content
|
|
7374
|
+
),
|
|
7375
|
+
children: [
|
|
7376
|
+
tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
|
|
7377
|
+
tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
7378
|
+
]
|
|
7379
|
+
}
|
|
7380
|
+
)
|
|
7381
|
+
] }),
|
|
7382
|
+
resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
7383
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
7384
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
|
|
7385
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
7386
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
7387
|
+
resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
7388
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
7389
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
7390
|
+
] }) : null,
|
|
7391
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
7392
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
7393
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
7394
|
+
] }),
|
|
7395
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
7396
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
7397
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
7398
|
+
] })
|
|
7399
|
+
] }),
|
|
7400
|
+
resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7401
|
+
Button,
|
|
7376
7402
|
{
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
7384
|
-
]
|
|
7403
|
+
size: "large",
|
|
7404
|
+
className: "w-full",
|
|
7405
|
+
onClick: resolvedClaim.onClaim,
|
|
7406
|
+
isLoading: resolvedClaim.isClaiming,
|
|
7407
|
+
disabled: resolvedClaim.isClaiming,
|
|
7408
|
+
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
7385
7409
|
}
|
|
7386
|
-
)
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
|
|
7391
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
7392
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
7393
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
|
|
7394
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
7395
|
-
] }),
|
|
7396
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
7397
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
|
|
7398
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
7399
|
-
] }),
|
|
7400
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
7401
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
|
|
7402
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
7403
|
-
] })
|
|
7404
|
-
] }),
|
|
7405
|
-
resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7406
|
-
Button,
|
|
7407
|
-
{
|
|
7408
|
-
size: "large",
|
|
7409
|
-
onClick: resolvedClaim.onClaim,
|
|
7410
|
-
isLoading: resolvedClaim.isClaiming,
|
|
7411
|
-
disabled: resolvedClaim.isClaiming,
|
|
7412
|
-
children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
|
|
7413
|
-
}
|
|
7414
|
-
) : null
|
|
7415
|
-
] })
|
|
7416
|
-
] }) : null
|
|
7417
|
-
]
|
|
7418
|
-
}
|
|
7419
|
-
)
|
|
7410
|
+
) : null
|
|
7411
|
+
] })
|
|
7412
|
+
] }) : null
|
|
7413
|
+
] })
|
|
7420
7414
|
}
|
|
7421
7415
|
);
|
|
7422
7416
|
};
|
package/dist/trading.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
SettlementDetails,
|
|
7
7
|
parseAmount,
|
|
8
8
|
parseVenue
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FS3FGVAG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
SETTLEMENT_SECTION_ID,
|
|
12
12
|
Settlement,
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
getTradingValueLabel,
|
|
22
22
|
getTradingVenueLabel,
|
|
23
23
|
useEventTradingContext
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-TBKDLNOE.mjs";
|
|
25
|
+
import "./chunk-5FXMHTVR.mjs";
|
|
26
|
+
import "./chunk-34L7ZKJW.mjs";
|
|
27
27
|
export {
|
|
28
28
|
PlaceOrder,
|
|
29
29
|
PlaceOrderFailureView,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|