@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.
Files changed (34) hide show
  1. package/dist/{chunk-Y6PVXAUQ.mjs → chunk-IQT4I5B4.mjs} +387 -250
  2. package/dist/{chunk-R6FBYAY5.mjs → chunk-NK57KMYN.mjs} +2 -2
  3. package/dist/{chunk-YMVD6Q2A.mjs → chunk-RPXRTXCY.mjs} +1 -1
  4. package/dist/{chunk-C5M2OOM3.mjs → chunk-TERG43WW.mjs} +1 -1
  5. package/dist/{chunk-3OI2ZLLT.mjs → chunk-WU2C3C6K.mjs} +1 -1
  6. package/dist/{chunk-YAEA6EDG.mjs → chunk-XHDGSRG7.mjs} +8 -6
  7. package/dist/{chunk-DXF2LMNN.mjs → chunk-YJO6LMRT.mjs} +781 -753
  8. package/dist/events.js +941 -914
  9. package/dist/events.mjs +3 -3
  10. package/dist/index.js +2788 -2621
  11. package/dist/index.mjs +11 -7
  12. package/dist/modals.js +851 -824
  13. package/dist/modals.mjs +3 -3
  14. package/dist/pages.js +1968 -1803
  15. package/dist/pages.mjs +8 -6
  16. package/dist/primitives.js +782 -753
  17. package/dist/primitives.mjs +3 -1
  18. package/dist/styles.css +1 -1
  19. package/dist/tailwind.css +1 -1
  20. package/dist/trading.js +532 -501
  21. package/dist/trading.mjs +4 -4
  22. package/dist/types/pages/user-profile/index.d.mts +1 -0
  23. package/dist/types/pages/user-profile/index.d.ts +1 -0
  24. package/dist/types/pages/user-profile/transaction-explorer.d.mts +1 -0
  25. package/dist/types/pages/user-profile/transaction-explorer.d.ts +1 -0
  26. package/dist/types/pages/user-profile/user-profile.types.d.mts +8 -2
  27. package/dist/types/pages/user-profile/user-profile.types.d.ts +8 -2
  28. package/dist/types/primitives/icon/index.d.mts +2 -1
  29. package/dist/types/primitives/icon/index.d.ts +2 -1
  30. package/dist/types/primitives/icon/registry.d.mts +4 -0
  31. package/dist/types/primitives/icon/registry.d.ts +4 -0
  32. package/dist/types/primitives/icon/svg/paper-mode.d.mts +5 -0
  33. package/dist/types/primitives/icon/svg/paper-mode.d.ts +5 -0
  34. package/package.json +2 -2
@@ -22,7 +22,7 @@ import {
22
22
  resolveUnifiedOrderBookEntries,
23
23
  sortOutcomeSelectorOutcomes,
24
24
  useEventTradingContext
25
- } from "./chunk-C5M2OOM3.mjs";
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-DXF2LMNN.mjs";
75
+ } from "./chunk-YJO6LMRT.mjs";
76
76
 
77
77
  // src/events/item/index.tsx
78
78
  import {
@@ -3,7 +3,7 @@ import {
3
3
  AGG_TERMS_OF_SERVICE_URL,
4
4
  Icon,
5
5
  cn
6
- } from "./chunk-DXF2LMNN.mjs";
6
+ } from "./chunk-YJO6LMRT.mjs";
7
7
 
8
8
  // src/geo-block-banner/index.tsx
9
9
  import { useLabels } from "@agg-build/hooks";
@@ -17,7 +17,7 @@ import {
17
17
  selectPrimaryVenueMarket,
18
18
  skeletonViews,
19
19
  sortOutcomes
20
- } from "./chunk-DXF2LMNN.mjs";
20
+ } from "./chunk-YJO6LMRT.mjs";
21
21
 
22
22
  // src/trading/trading-context/index.tsx
23
23
  import { useEventTradingContext } from "@agg-build/hooks";
@@ -38,7 +38,7 @@ import {
38
38
  shortenAddress,
39
39
  useOptionalToast,
40
40
  venueLogoLabels
41
- } from "./chunk-DXF2LMNN.mjs";
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-C5M2OOM3.mjs";
11
+ } from "./chunk-TERG43WW.mjs";
12
12
  import {
13
13
  GeoBlockBanner
14
- } from "./chunk-YMVD6Q2A.mjs";
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-DXF2LMNN.mjs";
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 = "live",
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 isPaperMode = executionMode === "paper";
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),