@agg-build/ui 4.19.0 → 4.19.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/dist/chunk-CKHECAKV.mjs +2724 -0
- package/dist/{chunk-NSQQ62QK.mjs → chunk-DONMO42Q.mjs} +1 -1
- package/dist/{chunk-GT3DCFIT.mjs → chunk-KRYMEFPL.mjs} +16 -8
- package/dist/{chunk-5YHKIJ23.mjs → chunk-NV6WT3TN.mjs} +481 -826
- package/dist/{chunk-47CCGQH6.mjs → chunk-UXLC3FFY.mjs} +451 -1349
- package/dist/{event-market-2BAMDM5I.mjs → event-market-UREM3ZE7.mjs} +3 -3
- package/dist/index.js +21902 -21626
- package/dist/index.mjs +8 -8
- package/dist/modals.js +898 -335
- package/dist/modals.mjs +5 -5
- package/dist/pages.js +2857 -1683
- package/dist/pages.mjs +4 -4
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +1746 -643
- package/dist/trading.mjs +2 -2
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +2 -1
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +2 -1
- package/dist/types/pages/user-profile/components/betdex-account-card.d.mts +3 -1
- package/dist/types/pages/user-profile/components/betdex-account-card.d.ts +3 -1
- package/dist/types/pages/user-profile/components/betdex-account-transfers.d.mts +2 -1
- package/dist/types/pages/user-profile/components/betdex-account-transfers.d.ts +2 -1
- package/dist/types/pages/user-profile/components/betdex-wallet-deposit.d.mts +6 -0
- package/dist/types/pages/user-profile/components/betdex-wallet-deposit.d.ts +6 -0
- package/dist/types/profile/tabs/trading-access-tab.d.mts +2 -1
- package/dist/types/profile/tabs/trading-access-tab.d.ts +2 -1
- package/dist/types/trading/manage-betdex-account-modal.d.mts +2 -1
- package/dist/types/trading/manage-betdex-account-modal.d.ts +2 -1
- package/dist/types/trading/place-order/index.place-order.types.d.mts +1 -0
- package/dist/types/trading/place-order/index.place-order.types.d.ts +1 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +2 -2
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +2 -2
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +3 -1
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +3 -1
- package/dist/types/withdraw/withdraw-modal.types.d.mts +8 -0
- package/dist/types/withdraw/withdraw-modal.types.d.ts +8 -0
- package/package.json +3 -3
- package/dist/chunk-ROA5K67W.mjs +0 -1237
|
@@ -21,14 +21,13 @@ import {
|
|
|
21
21
|
parseRawMicroValue,
|
|
22
22
|
selectOpenLimitOrders,
|
|
23
23
|
useOpenOrderCancellation
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DONMO42Q.mjs";
|
|
25
25
|
import {
|
|
26
|
-
BetdexAccountCard,
|
|
27
26
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
28
27
|
WITHDRAW_MODAL_OPEN_EVENT,
|
|
29
28
|
formatChainIdLabel,
|
|
30
29
|
useClaimWinnings
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NV6WT3TN.mjs";
|
|
32
31
|
import {
|
|
33
32
|
AggErrorBoundary,
|
|
34
33
|
Button,
|
|
@@ -267,7 +266,7 @@ var useHomePageModals = () => {
|
|
|
267
266
|
// src/pages/home/index.tsx
|
|
268
267
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
269
268
|
var DeferredEventMarketPage = lazy(
|
|
270
|
-
() => import("./event-market-
|
|
269
|
+
() => import("./event-market-UREM3ZE7.mjs").then((module) => ({ default: module.EventMarketPage }))
|
|
271
270
|
);
|
|
272
271
|
var MIN_SEARCH_LENGTH = 3;
|
|
273
272
|
var SEARCH_DEBOUNCE_MS = 300;
|
|
@@ -1071,6 +1070,7 @@ var AvailableBalanceCard = ({
|
|
|
1071
1070
|
valueLabel,
|
|
1072
1071
|
reservedValueLabel,
|
|
1073
1072
|
kalshiValueLabel,
|
|
1073
|
+
betdexValueLabel,
|
|
1074
1074
|
chains,
|
|
1075
1075
|
isLoading = false,
|
|
1076
1076
|
className,
|
|
@@ -1230,6 +1230,13 @@ var AvailableBalanceCard = ({
|
|
|
1230
1230
|
/* @__PURE__ */ jsx2("span", { className: "font-agg-sans text-agg-xs leading-agg-4 font-agg-normal text-agg-muted-foreground", children: labels.venues.kalshi })
|
|
1231
1231
|
] })
|
|
1232
1232
|
] }) : null,
|
|
1233
|
+
betdexValueLabel !== void 0 ? /* @__PURE__ */ jsxs2("div", { className: "agg-balance-betdex flex items-center justify-between gap-3", children: [
|
|
1234
|
+
/* @__PURE__ */ jsx2("div", { className: "font-agg-sans text-agg-base leading-6 font-agg-bold text-agg-foreground", children: isLoading ? /* @__PURE__ */ jsx2("div", { role: "status", "aria-label": `${labels.venues.betdex}: ${labels.common.loading}`, children: /* @__PURE__ */ jsx2(SkeletonBlock, { className: "h-6 w-16 rounded-agg-sm" }) }) : betdexValueLabel }),
|
|
1235
|
+
/* @__PURE__ */ jsxs2("span", { className: "flex h-5 shrink-0 items-center gap-1 rounded-[4px] bg-agg-secondary-hover px-1.5", children: [
|
|
1236
|
+
/* @__PURE__ */ jsx2(VenueLogo, { venue: "betdex", size: "small", className: "size-3" }),
|
|
1237
|
+
/* @__PURE__ */ jsx2("span", { className: "font-agg-sans text-agg-xs leading-agg-4 font-agg-normal text-agg-muted-foreground", children: labels.venues.betdex })
|
|
1238
|
+
] })
|
|
1239
|
+
] }) : null,
|
|
1233
1240
|
!isLoading && reservedValueLabel ? /* @__PURE__ */ jsx2("p", { className: "font-agg-sans text-agg-xs leading-agg-4 text-agg-muted-foreground", children: balanceLabels.reservedForOpenOrders(reservedValueLabel) }) : null
|
|
1234
1241
|
]
|
|
1235
1242
|
}
|
|
@@ -4832,7 +4839,6 @@ var UserProfilePage = ({
|
|
|
4832
4839
|
disabledVenues,
|
|
4833
4840
|
isConfigLoading: isAppConfigLoading
|
|
4834
4841
|
}) === "available";
|
|
4835
|
-
const showBetdexAccount = shouldUseHookData && isAuthenticated && !isPaperMode && !isAppConfigLoading && (getVenueAvailabilityState({ venueId: Venue3.betdex, disabledVenues }) === "available" || ((_b = currentUser == null ? void 0 : currentUser.venueAccounts) == null ? void 0 : _b.some((account) => account.venue === Venue3.betdex)));
|
|
4836
4842
|
const isPositionsValueLoading = !(balance == null ? void 0 : balance.totalLabel) && balanceState.isLoading;
|
|
4837
4843
|
const isAvailableBalanceLoading = balanceState.isLoading;
|
|
4838
4844
|
const resolvedActivities = useMemo4(() => {
|
|
@@ -5188,7 +5194,6 @@ var UserProfilePage = ({
|
|
|
5188
5194
|
compact: isPaperMode
|
|
5189
5195
|
}
|
|
5190
5196
|
),
|
|
5191
|
-
showBetdexAccount ? /* @__PURE__ */ jsx12(BetdexAccountCard, {}) : null,
|
|
5192
5197
|
isPaperMode ? (
|
|
5193
5198
|
// Paper apps have no withdrawable balance and no network
|
|
5194
5199
|
// breakdown — simulated cash lives nowhere. Swap the whole
|
|
@@ -5235,14 +5240,17 @@ var UserProfilePage = ({
|
|
|
5235
5240
|
{
|
|
5236
5241
|
valueLabel: availableBalanceLabel,
|
|
5237
5242
|
isLoading: isAvailableBalanceLoading,
|
|
5238
|
-
chains: ((
|
|
5243
|
+
chains: ((_b = balanceChainsOverride != null ? balanceChainsOverride : balanceState.availableBalanceBreakdown) != null ? _b : balanceState.balanceBreakdown).map((b) => ({
|
|
5239
5244
|
key: b.key,
|
|
5240
5245
|
label: b.label,
|
|
5241
5246
|
balance: b.balance,
|
|
5242
5247
|
accountCount: b.accountCount,
|
|
5243
5248
|
venues: b.venues
|
|
5244
5249
|
})),
|
|
5245
|
-
kalshiValueLabel: isKalshiAvailable ? formatUsd2((
|
|
5250
|
+
kalshiValueLabel: isKalshiAvailable ? formatUsd2((_c = balanceState.kalshiBalance) != null ? _c : 0) : void 0,
|
|
5251
|
+
betdexValueLabel: shouldUseHookData && isAuthenticated && (((_d = currentUser == null ? void 0 : currentUser.venueAccounts) == null ? void 0 : _d.some(
|
|
5252
|
+
(account) => account.venue === Venue3.betdex
|
|
5253
|
+
)) || balanceState.betdexAvailableBalance != null) ? balanceState.betdexAvailableBalance == null ? labels.userProfile.balance.balanceUnavailable : formatUsd2(balanceState.betdexAvailableBalance) : void 0,
|
|
5246
5254
|
manageButtonRef: manageBalancesButtonRef,
|
|
5247
5255
|
onManage: () => handleManageBalancesOpenChange(true)
|
|
5248
5256
|
}
|