@agg-build/ui 1.2.7 → 1.2.9

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-5FXMHTVR.mjs → chunk-5MDFM2MX.mjs} +1 -1
  2. package/dist/{chunk-TBKDLNOE.mjs → chunk-5PSAIGOT.mjs} +29 -8
  3. package/dist/{chunk-WPF47BQQ.mjs → chunk-7JKGAWU5.mjs} +9 -2
  4. package/dist/{chunk-3RG2K7MV.mjs → chunk-K23CJ5UP.mjs} +666 -148
  5. package/dist/{chunk-E45WOOMN.mjs → chunk-PFOSEY46.mjs} +22 -8
  6. package/dist/{chunk-QMWKXDVZ.mjs → chunk-PYKD4W4T.mjs} +18 -12
  7. package/dist/{chunk-34L7ZKJW.mjs → chunk-QFW5NDJ6.mjs} +7 -10
  8. package/dist/events.js +55 -23
  9. package/dist/events.mjs +3 -3
  10. package/dist/index.js +777 -207
  11. package/dist/index.mjs +28 -21
  12. package/dist/modals.js +12 -9
  13. package/dist/modals.mjs +3 -3
  14. package/dist/pages.js +740 -184
  15. package/dist/pages.mjs +6 -6
  16. package/dist/primitives.js +7 -10
  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 +669 -154
  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-QMWKXDVZ.mjs";
13
+ } from "./chunk-PYKD4W4T.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-PFOSEY46.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-7JKGAWU5.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-3RG2K7MV.mjs";
55
+ } from "./chunk-K23CJ5UP.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-5PSAIGOT.mjs";
74
74
  import {
75
75
  GeoBlockBanner
76
- } from "./chunk-5FXMHTVR.mjs";
76
+ } from "./chunk-5MDFM2MX.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-QFW5NDJ6.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({
@@ -657,7 +664,7 @@ var AuthConnectButtonView = ({
657
664
  claimReadyCount > 0 ? /* @__PURE__ */ jsx(
658
665
  "span",
659
666
  {
660
- className: "inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-linear-to-r from-agg-primary to-agg-primary-hover text-[10px] leading-[14px] font-agg-bold text-white uppercase",
667
+ className: "inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-linear-to-r from-agg-primary to-agg-primary-hover text-2.5 leading-3.5 font-agg-bold text-agg-foreground uppercase",
661
668
  "aria-label": resolveClaimBadgeAriaLabel(claimReadyCount),
662
669
  children: claimReadyCount
663
670
  }
@@ -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
@@ -2136,7 +2136,7 @@ var HourglassStartIcon = (_a) => {
2136
2136
  __spreadProps(__spreadValues(__spreadValues({
2137
2137
  width: "16",
2138
2138
  height: "16",
2139
- viewBox: "0 0 16 16",
2139
+ viewBox: "0 0 10 10",
2140
2140
  fill: "none",
2141
2141
  xmlns: "http://www.w3.org/2000/svg",
2142
2142
  className
@@ -2146,14 +2146,10 @@ var HourglassStartIcon = (_a) => {
2146
2146
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2147
2147
  "path",
2148
2148
  {
2149
- d: "M4.25 1.5H11.75M4.25 14.5H11.75M5 1.5V4.6C5 5.2 5.27 5.76 5.73 6.14L8 8L5.73 9.86C5.27 10.24 5 10.8 5 11.4V14.5M11 1.5V4.6C11 5.2 10.73 5.76 10.27 6.14L8 8L10.27 9.86C10.73 10.24 11 10.8 11 11.4V14.5",
2150
- stroke: "currentColor",
2151
- strokeWidth: "1.4",
2152
- strokeLinecap: "round",
2153
- strokeLinejoin: "round"
2149
+ d: "M8.7324 1.90708C8.80282 1.43542 8.66324 0.95625 8.3499 0.5925C8.03115 0.2225 7.56907 0.0108337 7.08157 0.0108337H2.91907C2.43157 0.0108337 1.96949 0.223334 1.65115 0.593334C1.3374 0.9575 1.19824 1.43667 1.26907 1.90875C1.43824 3.03333 2.05449 4.07458 3.10282 5.01042C2.05407 5.94625 1.43782 6.9875 1.26907 8.11208C1.19824 8.58417 1.33782 9.06333 1.65115 9.4275C1.96949 9.79792 2.43199 10.0096 2.91907 10.0096H7.08157C7.56907 10.0096 8.03115 9.79792 8.3499 9.42792C8.66324 9.06417 8.80282 8.585 8.7324 8.11375C8.56449 6.99292 7.9474 5.95083 6.89657 5.01C7.9474 4.06917 8.56449 3.0275 8.7324 1.90708ZM7.46949 1.83333C7.05949 2.84667 6.19824 3.67583 5.54907 4.1925L5.26157 4.42208C5.10949 4.54292 4.8949 4.54292 4.74282 4.42292L4.44949 4.19C3.80074 3.67708 2.94157 2.85167 2.53074 1.83333C2.47865 1.70458 2.49449 1.55917 2.57157 1.44417C2.64907 1.32958 2.77865 1.26083 2.91699 1.26083H7.08365C7.2224 1.26083 7.35199 1.32917 7.42907 1.44417C7.50657 1.55875 7.52157 1.705 7.46949 1.83333ZM5.0299 3.54083L5.00074 3.56417L4.96657 3.53708C4.53032 3.19208 3.9874 2.69167 3.60365 2.09458H6.39615C6.01115 2.69 5.4674 3.19292 5.03032 3.54125L5.0299 3.54083Z",
2150
+ fill: "currentColor"
2154
2151
  }
2155
- ),
2156
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "M6.75 4.25H9.25L8 5.25L6.75 4.25Z", fill: "currentColor" })
2152
+ )
2157
2153
  ]
2158
2154
  })
2159
2155
  );
@@ -8066,7 +8062,14 @@ var GeoBlockModal = ({
8066
8062
  maxWidth: "480px",
8067
8063
  classNames: { container: cn("!rounded-agg-2xl", classNames == null ? void 0 : classNames.container) },
8068
8064
  children: [
8069
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Modal.Header, { title: "", hideBorder: true, classNames: { container: "px-8 pt-8 pb-0" } }),
8065
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8066
+ Modal.Header,
8067
+ {
8068
+ title: "",
8069
+ hideBorder: true,
8070
+ classNames: { root: "min-h-0", container: "px-8 pt-6! pb-0!" }
8071
+ }
8072
+ ),
8070
8073
  /* @__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
8074
  /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8072
8075
  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-7JKGAWU5.mjs";
17
17
  import {
18
18
  GeoBlockBanner
19
- } from "./chunk-5FXMHTVR.mjs";
20
- import "./chunk-34L7ZKJW.mjs";
19
+ } from "./chunk-5MDFM2MX.mjs";
20
+ import "./chunk-QFW5NDJ6.mjs";
21
21
  export {
22
22
  CARD_NETWORK_OPTIONS,
23
23
  ConnectAccountsStep,