@agg-build/ui 1.2.6 → 1.2.8

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 (32) hide show
  1. package/dist/{chunk-2HI6K7JF.mjs → chunk-2YVW6J5N.mjs} +12 -6
  2. package/dist/{chunk-5FXMHTVR.mjs → chunk-BW4DQYWM.mjs} +1 -1
  3. package/dist/{chunk-34L7ZKJW.mjs → chunk-HQRT3B3L.mjs} +3 -2
  4. package/dist/{chunk-WPF47BQQ.mjs → chunk-IIEE4FVO.mjs} +9 -2
  5. package/dist/{chunk-TBKDLNOE.mjs → chunk-RPIYL7EA.mjs} +29 -8
  6. package/dist/{chunk-E45WOOMN.mjs → chunk-SMGKYWEP.mjs} +22 -8
  7. package/dist/{chunk-FS3FGVAG.mjs → chunk-U6YU5OE7.mjs} +671 -152
  8. package/dist/events.js +51 -15
  9. package/dist/events.mjs +3 -3
  10. package/dist/index.js +771 -196
  11. package/dist/index.mjs +27 -20
  12. package/dist/modals.js +8 -1
  13. package/dist/modals.mjs +3 -3
  14. package/dist/pages.js +735 -174
  15. package/dist/pages.mjs +6 -6
  16. package/dist/primitives.js +3 -2
  17. package/dist/primitives.mjs +1 -1
  18. package/dist/styles.css +1 -1
  19. package/dist/tailwind.css +1 -1
  20. package/dist/trading.js +670 -150
  21. package/dist/trading.mjs +4 -4
  22. package/dist/types/primitives/switch-button/switch-button.constants.d.mts +1 -1
  23. package/dist/types/primitives/switch-button/switch-button.constants.d.ts +1 -1
  24. package/dist/types/primitives/tooltip/index.d.mts +1 -1
  25. package/dist/types/primitives/tooltip/index.d.ts +1 -1
  26. package/dist/types/primitives/tooltip/tooltip.types.d.mts +2 -0
  27. package/dist/types/primitives/tooltip/tooltip.types.d.ts +2 -0
  28. package/dist/types/trading/place-order/index.place-order.execution-debug.d.mts +183 -0
  29. package/dist/types/trading/place-order/index.place-order.execution-debug.d.ts +183 -0
  30. package/dist/types/trading/place-order/index.place-order.execution-steps.d.mts +72 -0
  31. package/dist/types/trading/place-order/index.place-order.execution-steps.d.ts +72 -0
  32. package/package.json +1 -1
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-2HI6K7JF.mjs";
13
+ } from "./chunk-2YVW6J5N.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-E45WOOMN.mjs";
28
+ } from "./chunk-SMGKYWEP.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-WPF47BQQ.mjs";
43
+ } from "./chunk-IIEE4FVO.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-FS3FGVAG.mjs";
55
+ } from "./chunk-U6YU5OE7.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-TBKDLNOE.mjs";
73
+ } from "./chunk-RPIYL7EA.mjs";
74
74
  import {
75
75
  GeoBlockBanner
76
- } from "./chunk-5FXMHTVR.mjs";
76
+ } from "./chunk-BW4DQYWM.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-34L7ZKJW.mjs";
190
+ } from "./chunk-HQRT3B3L.mjs";
191
191
 
192
192
  // src/auth/connect-button-view/index.tsx
193
193
  import { optimizedImageUrl, useAggAuthContext, useLabels, useSdkUiConfig } from "@agg-build/hooks";
@@ -603,7 +603,14 @@ var AuthConnectButtonView = ({
603
603
  ConditionalWrapper,
604
604
  {
605
605
  condition: isDepositBlocked,
606
- wrapper: (children) => /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }), children }),
606
+ wrapper: (children) => /* @__PURE__ */ jsx(
607
+ Tooltip,
608
+ {
609
+ content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }),
610
+ sideOffset: 4,
611
+ children
612
+ }
613
+ ),
607
614
  children: /* @__PURE__ */ jsx(
608
615
  Button,
609
616
  __spreadProps(__spreadValues({
@@ -819,23 +826,23 @@ var AuthConnectButtonView = ({
819
826
  }
820
827
  ),
821
828
  isDepositBlocked ? /* @__PURE__ */ jsx(
822
- Tooltip,
829
+ DropdownMenu.Item,
823
830
  {
824
- content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }),
825
- children: /* @__PURE__ */ jsx("span", { className: "w-full", children: /* @__PURE__ */ jsxs(
826
- DropdownMenu.Item,
831
+ className: cn(dropdownMenuItemClassName, "opacity-50 cursor-not-allowed!"),
832
+ onSelect: (e) => e.preventDefault(),
833
+ "aria-disabled": "true",
834
+ children: /* @__PURE__ */ jsx(
835
+ Tooltip,
827
836
  {
828
- className: cn(
829
- dropdownMenuItemClassName,
830
- "opacity-50 pointer-events-none"
831
- ),
832
- disabled: true,
833
- children: [
837
+ content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }),
838
+ side: "bottom",
839
+ sideOffset: 4,
840
+ children: /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-3", children: [
834
841
  /* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
835
842
  /* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
836
- ]
843
+ ] })
837
844
  }
838
- ) })
845
+ )
839
846
  }
840
847
  ) : /* @__PURE__ */ jsxs(
841
848
  DropdownMenu.Item,
package/dist/modals.js CHANGED
@@ -8066,7 +8066,14 @@ var GeoBlockModal = ({
8066
8066
  maxWidth: "480px",
8067
8067
  classNames: { container: cn("!rounded-agg-2xl", classNames == null ? void 0 : classNames.container) },
8068
8068
  children: [
8069
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Modal.Header, { title: "", hideBorder: true, classNames: { container: "px-8 pt-8 pb-0" } }),
8069
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8070
+ Modal.Header,
8071
+ {
8072
+ title: "",
8073
+ hideBorder: true,
8074
+ classNames: { root: "min-h-0", container: "px-8 pt-6! pb-0!" }
8075
+ }
8076
+ ),
8070
8077
  /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Modal.Body, { classNames: { root: cn("!px-10 !pb-12 !pt-0", classNames == null ? void 0 : classNames.body) }, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
8071
8078
  /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8072
8079
  Icon,
package/dist/modals.mjs CHANGED
@@ -13,11 +13,11 @@ import {
13
13
  WithdrawModal,
14
14
  clearPendingCardSession,
15
15
  getPendingCardSession
16
- } from "./chunk-WPF47BQQ.mjs";
16
+ } from "./chunk-IIEE4FVO.mjs";
17
17
  import {
18
18
  GeoBlockBanner
19
- } from "./chunk-5FXMHTVR.mjs";
20
- import "./chunk-34L7ZKJW.mjs";
19
+ } from "./chunk-BW4DQYWM.mjs";
20
+ import "./chunk-HQRT3B3L.mjs";
21
21
  export {
22
22
  CARD_NETWORK_OPTIONS,
23
23
  ConnectAccountsStep,