@agg-build/ui 2.1.0 → 2.1.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-Y6PVXAUQ.mjs → chunk-IQT4I5B4.mjs} +387 -250
- package/dist/{chunk-R6FBYAY5.mjs → chunk-NK57KMYN.mjs} +2 -2
- package/dist/{chunk-YMVD6Q2A.mjs → chunk-RPXRTXCY.mjs} +1 -1
- package/dist/{chunk-C5M2OOM3.mjs → chunk-TERG43WW.mjs} +1 -1
- package/dist/{chunk-3OI2ZLLT.mjs → chunk-WU2C3C6K.mjs} +1 -1
- package/dist/{chunk-YAEA6EDG.mjs → chunk-XHDGSRG7.mjs} +8 -6
- package/dist/{chunk-DXF2LMNN.mjs → chunk-YJO6LMRT.mjs} +781 -753
- package/dist/events.js +941 -914
- package/dist/events.mjs +3 -3
- package/dist/index.js +2788 -2621
- package/dist/index.mjs +11 -7
- package/dist/modals.js +851 -824
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +1968 -1803
- package/dist/pages.mjs +8 -6
- package/dist/primitives.js +782 -753
- package/dist/primitives.mjs +3 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +532 -501
- package/dist/trading.mjs +4 -4
- package/dist/types/pages/user-profile/index.d.mts +1 -0
- package/dist/types/pages/user-profile/index.d.ts +1 -0
- package/dist/types/pages/user-profile/transaction-explorer.d.mts +1 -0
- package/dist/types/pages/user-profile/transaction-explorer.d.ts +1 -0
- package/dist/types/pages/user-profile/user-profile.types.d.mts +8 -2
- package/dist/types/pages/user-profile/user-profile.types.d.ts +8 -2
- package/dist/types/primitives/icon/index.d.mts +2 -1
- package/dist/types/primitives/icon/index.d.ts +2 -1
- package/dist/types/primitives/icon/registry.d.mts +4 -0
- package/dist/types/primitives/icon/registry.d.ts +4 -0
- package/dist/types/primitives/icon/svg/paper-mode.d.mts +5 -0
- package/dist/types/primitives/icon/svg/paper-mode.d.ts +5 -0
- package/package.json +2 -2
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveUnifiedOrderBookEntries,
|
|
23
23
|
sortOutcomeSelectorOutcomes,
|
|
24
24
|
useEventTradingContext
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TERG43WW.mjs";
|
|
26
26
|
import {
|
|
27
27
|
AutocompleteSelect,
|
|
28
28
|
Badge,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
sortCategoriesForNavigation,
|
|
73
73
|
sortOutcomes,
|
|
74
74
|
splitEventsByLifecycle
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-YJO6LMRT.mjs";
|
|
76
76
|
|
|
77
77
|
// src/events/item/index.tsx
|
|
78
78
|
import {
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
shortenAddress,
|
|
39
39
|
useOptionalToast,
|
|
40
40
|
venueLogoLabels
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YJO6LMRT.mjs";
|
|
42
42
|
|
|
43
43
|
// src/deposit/index.tsx
|
|
44
44
|
import { useAggAuthState, useAggUiConfig, useDepositAddresses, useLabels as useLabels11 } from "@agg-build/hooks";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getTradingValueLabel,
|
|
9
9
|
getTradingVenueLabel,
|
|
10
10
|
resolveOrderEligibilityMessage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TERG43WW.mjs";
|
|
12
12
|
import {
|
|
13
13
|
GeoBlockBanner
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RPXRTXCY.mjs";
|
|
15
15
|
import {
|
|
16
16
|
AGG_TERMS_OF_SERVICE_URL,
|
|
17
17
|
Button,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
formatUsd,
|
|
39
39
|
getMotionClassName,
|
|
40
40
|
skeletonViews
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YJO6LMRT.mjs";
|
|
42
42
|
|
|
43
43
|
// src/trading/types.ts
|
|
44
44
|
import { Venue, enumGuard, isFiniteNonNeg, safeParse } from "@agg-build/sdk";
|
|
@@ -2798,7 +2798,7 @@ var PlaceOrder = ({
|
|
|
2798
2798
|
className,
|
|
2799
2799
|
classNames,
|
|
2800
2800
|
eventTradingState,
|
|
2801
|
-
executionMode
|
|
2801
|
+
executionMode,
|
|
2802
2802
|
isLoading = false,
|
|
2803
2803
|
isPrimaryActionDisabled = false,
|
|
2804
2804
|
isPrimaryActionLoading = false,
|
|
@@ -2818,7 +2818,8 @@ var PlaceOrder = ({
|
|
|
2818
2818
|
const {
|
|
2819
2819
|
enableDebug: isExecutionDebugEnabled,
|
|
2820
2820
|
features: { enableAnimations, showFeesBreakdown },
|
|
2821
|
-
general: { locale }
|
|
2821
|
+
general: { locale },
|
|
2822
|
+
trading: { executionMode: configuredExecutionMode = "live" } = { executionMode: "live" }
|
|
2822
2823
|
} = useSdkUiConfig();
|
|
2823
2824
|
const labels = useLabels();
|
|
2824
2825
|
const tradingLabels = labels.trading;
|
|
@@ -2883,7 +2884,8 @@ var PlaceOrder = ({
|
|
|
2883
2884
|
);
|
|
2884
2885
|
const isResolvedOutcomeCtaLocked = resolvedEventTradingState.kind === "resolved" || resolvedTradingState.kind === "resolved";
|
|
2885
2886
|
const { isAuthenticated, user } = useAggAuthContext();
|
|
2886
|
-
const
|
|
2887
|
+
const resolvedExecutionMode = executionMode != null ? executionMode : configuredExecutionMode;
|
|
2888
|
+
const isPaperMode = resolvedExecutionMode === "paper";
|
|
2887
2889
|
const liveBalanceState = useAggBalanceState();
|
|
2888
2890
|
const paperBalancesQuery = useManagedBalances({
|
|
2889
2891
|
enabled: Boolean(isAuthenticated && isPaperMode),
|