@agg-market/ui 7.0.0 → 8.0.0

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 (37) hide show
  1. package/dist/{chunk-KQKLLL4D.mjs → chunk-JE4MV5RL.mjs} +8 -11
  2. package/dist/{chunk-L5U7RGJV.mjs → chunk-KRCRD4AJ.mjs} +11 -14
  3. package/dist/{chunk-AVHMI47G.mjs → chunk-SBLIHCN2.mjs} +5 -6
  4. package/dist/{chunk-6I474QXG.mjs → chunk-TLFRGJ5B.mjs} +18 -21
  5. package/dist/{chunk-MUB7NYWZ.mjs → chunk-WKY3IN52.mjs} +3446 -990
  6. package/dist/events.js +2825 -2714
  7. package/dist/events.mjs +2 -4
  8. package/dist/index.js +1506 -1389
  9. package/dist/index.mjs +26 -32
  10. package/dist/modals.js +821 -687
  11. package/dist/modals.mjs +2 -3
  12. package/dist/pages.js +2362 -2249
  13. package/dist/pages.mjs +4 -7
  14. package/dist/primitives.js +407 -290
  15. package/dist/primitives.mjs +22 -28
  16. package/dist/trading.js +564 -451
  17. package/dist/trading.mjs +2 -4
  18. package/dist/types/primitives/icon/index.d.mts +2 -1
  19. package/dist/types/primitives/icon/index.d.ts +2 -1
  20. package/dist/types/primitives/icon/registry.d.mts +4 -0
  21. package/dist/types/primitives/icon/registry.d.ts +4 -0
  22. package/dist/types/primitives/icon/svg/image.d.mts +5 -0
  23. package/dist/types/primitives/icon/svg/image.d.ts +5 -0
  24. package/dist/types/primitives/index.d.mts +1 -0
  25. package/dist/types/primitives/index.d.ts +1 -0
  26. package/dist/types/primitives/remote-image/index.d.mts +6 -0
  27. package/dist/types/primitives/remote-image/index.d.ts +6 -0
  28. package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
  29. package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
  30. package/dist/types/primitives/remote-image/remote-image.types.d.mts +16 -0
  31. package/dist/types/primitives/remote-image/remote-image.types.d.ts +16 -0
  32. package/package.json +1 -1
  33. package/dist/chunk-EEQPPN7N.mjs +0 -214
  34. package/dist/chunk-EERL6BZF.mjs +0 -997
  35. package/dist/chunk-OAJBTVZT.mjs +0 -119
  36. package/dist/chunk-OVQVAUAI.mjs +0 -420
  37. package/dist/chunk-ZYUJ7YEJ.mjs +0 -645
@@ -1,22 +1,19 @@
1
1
  import {
2
- InlineAlert
3
- } from "./chunk-OAJBTVZT.mjs";
4
- import {
2
+ Button,
5
3
  Card,
4
+ Icon,
5
+ InlineAlert,
6
+ RemoteImage,
6
7
  Skeleton,
7
8
  Tabs,
8
- skeletonViews
9
- } from "./chunk-EERL6BZF.mjs";
10
- import {
11
- Button,
12
- Icon,
13
9
  VenueLogo,
14
10
  __spreadProps,
15
11
  __spreadValues,
16
12
  cn,
17
13
  formatUsd,
18
- getMotionClassName
19
- } from "./chunk-MUB7NYWZ.mjs";
14
+ getMotionClassName,
15
+ skeletonViews
16
+ } from "./chunk-WKY3IN52.mjs";
20
17
 
21
18
  // src/trading/utils.ts
22
19
  import { resolveAggUiLabels } from "@agg-market/hooks";
@@ -209,7 +206,7 @@ var PlaceOrder = ({
209
206
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-5", children: [
210
207
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
211
208
  marketImageUrl ? /* @__PURE__ */ jsx(
212
- "img",
209
+ RemoteImage,
213
210
  {
214
211
  src: marketImageUrl,
215
212
  alt: "",
@@ -3,27 +3,24 @@ import {
3
3
  EventListItemDetails,
4
4
  MarketDetails,
5
5
  isErrorWithStatus
6
- } from "./chunk-6I474QXG.mjs";
7
- import {
8
- StateMessage,
9
- Typography
10
- } from "./chunk-ZYUJ7YEJ.mjs";
6
+ } from "./chunk-TLFRGJ5B.mjs";
11
7
  import {
12
8
  PlaceOrder,
13
9
  Settlement
14
- } from "./chunk-KQKLLL4D.mjs";
15
- import {
16
- Card,
17
- Tabs
18
- } from "./chunk-EERL6BZF.mjs";
10
+ } from "./chunk-JE4MV5RL.mjs";
19
11
  import {
20
12
  Button,
13
+ Card,
21
14
  Icon,
15
+ RemoteImage,
16
+ StateMessage,
17
+ Tabs,
18
+ Typography,
22
19
  VenueLogo,
23
20
  __spreadProps,
24
21
  __spreadValues,
25
22
  cn
26
- } from "./chunk-MUB7NYWZ.mjs";
23
+ } from "./chunk-WKY3IN52.mjs";
27
24
 
28
25
  // src/pages/home/index.tsx
29
26
  import { useEffect, useMemo, useState } from "react";
@@ -720,7 +717,7 @@ var ActivityRow = ({ activity, onClick }) => {
720
717
  /* @__PURE__ */ jsx5(VenueLogo, { venue: activity.venue, size: "small", className: "shrink-0" }),
721
718
  /* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
722
719
  /* @__PURE__ */ jsx5(
723
- "img",
720
+ RemoteImage,
724
721
  {
725
722
  src: activity.thumbnailSrc,
726
723
  alt: "",
@@ -832,7 +829,7 @@ var PositionRow = ({ position, onClick }) => {
832
829
  /* @__PURE__ */ jsx7(VenueLogo, { venue: position.venue, size: "small", className: "shrink-0" }),
833
830
  /* @__PURE__ */ jsxs7("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
834
831
  /* @__PURE__ */ jsx7(
835
- "img",
832
+ RemoteImage,
836
833
  {
837
834
  src: position.thumbnailSrc,
838
835
  alt: "",
@@ -1059,7 +1056,7 @@ var UserInfoCard = ({
1059
1056
  ),
1060
1057
  children: /* @__PURE__ */ jsxs10("div", { className: "flex w-full items-start gap-5", children: [
1061
1058
  /* @__PURE__ */ jsx10("div", { className: "shrink-0", children: user.avatarUrl ? /* @__PURE__ */ jsx10(
1062
- "img",
1059
+ RemoteImage,
1063
1060
  {
1064
1061
  src: user.avatarUrl,
1065
1062
  alt: user.username,
@@ -1,6 +1,3 @@
1
- import {
2
- Modal
3
- } from "./chunk-EEQPPN7N.mjs";
4
1
  import {
5
2
  BankIcon,
6
3
  BestPricesIcon,
@@ -16,8 +13,10 @@ import {
16
13
  ExternalLinkIcon,
17
14
  Icon,
18
15
  LinkAccountsIcon,
16
+ Modal,
19
17
  PlaySquareIcon,
20
18
  ProfileIcon,
19
+ RemoteImage,
21
20
  Select,
22
21
  StayInControlIcon,
23
22
  VenueLogo,
@@ -29,7 +28,7 @@ import {
29
28
  formatAmountDisplay,
30
29
  formatCompactUsd,
31
30
  venueLogoLabels
32
- } from "./chunk-MUB7NYWZ.mjs";
31
+ } from "./chunk-WKY3IN52.mjs";
33
32
 
34
33
  // src/deposit/index.tsx
35
34
  import { useState as useState3 } from "react";
@@ -1275,7 +1274,7 @@ var ProfileSetupStep = ({ onContinue }) => {
1275
1274
  ),
1276
1275
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
1277
1276
  children: avatarPreview ? /* @__PURE__ */ jsx13(
1278
- "img",
1277
+ RemoteImage,
1279
1278
  {
1280
1279
  src: avatarPreview,
1281
1280
  alt: labels.onboarding.profileSetup.profilePreviewAlt,
@@ -2000,7 +1999,7 @@ var AboutTab = ({
2000
1999
  ),
2001
2000
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
2002
2001
  children: resolvedPreview ? /* @__PURE__ */ jsx18(
2003
- "img",
2002
+ RemoteImage,
2004
2003
  {
2005
2004
  src: resolvedPreview,
2006
2005
  alt: labels.onboarding.profileSetup.profilePreviewAlt,
@@ -1,36 +1,33 @@
1
1
  import {
2
2
  Badge,
3
- LineChart,
4
- StateMessage,
5
- SwitchButton,
6
- Typography
7
- } from "./chunk-ZYUJ7YEJ.mjs";
8
- import {
3
+ Button,
9
4
  Card,
5
+ Icon,
6
+ LineChart,
10
7
  MarketDetailsOderbookSkeleton,
8
+ RemoteImage,
11
9
  Skeleton,
10
+ StateMessage,
11
+ SwitchButton,
12
12
  Tabs,
13
+ Typography,
14
+ VenueLogo,
15
+ __objRest,
16
+ __spreadProps,
17
+ __spreadValues,
13
18
  baseCardClassName,
19
+ cn,
14
20
  detailsBaseCardClassName,
15
21
  eventListItemDetailsTimeRanges,
16
22
  fallbackLineColors,
17
23
  getMarketDetailsTabs,
24
+ getMotionClassName,
18
25
  lineColorByVenue,
19
26
  marketDetailsBaseCardClassName,
20
27
  marketDetailsDefaultIsOpened,
21
- orderBookRowLimitDefault
22
- } from "./chunk-EERL6BZF.mjs";
23
- import {
24
- Button,
25
- Icon,
26
- VenueLogo,
27
- __objRest,
28
- __spreadProps,
29
- __spreadValues,
30
- cn,
31
- getMotionClassName,
28
+ orderBookRowLimitDefault,
32
29
  toDate
33
- } from "./chunk-MUB7NYWZ.mjs";
30
+ } from "./chunk-WKY3IN52.mjs";
34
31
 
35
32
  // src/events/item/index.tsx
36
33
  import dayjs from "dayjs";
@@ -313,7 +310,7 @@ var EventListItemContent = ({
313
310
  children: [
314
311
  /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-3", classNames == null ? void 0 : classNames.header), children: [
315
312
  resolvedImage ? /* @__PURE__ */ jsx(
316
- "img",
313
+ RemoteImage,
317
314
  {
318
315
  src: resolvedImage,
319
316
  alt: "",
@@ -1206,7 +1203,7 @@ var EventListItemDetailsContent = ({
1206
1203
  ),
1207
1204
  children: [
1208
1205
  resolvedImage ? /* @__PURE__ */ jsx3(
1209
- "img",
1206
+ RemoteImage,
1210
1207
  {
1211
1208
  src: resolvedImage,
1212
1209
  alt: "",
@@ -2076,7 +2073,7 @@ var MarketDetailsContent = ({
2076
2073
  children: [
2077
2074
  /* @__PURE__ */ jsxs3("div", { className: "flex min-w-52 items-center gap-3 md:gap-4", children: [
2078
2075
  model.image ? /* @__PURE__ */ jsx4(
2079
- "img",
2076
+ RemoteImage,
2080
2077
  {
2081
2078
  src: model.image,
2082
2079
  alt: "",