@agg-market/ui 6.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 (89) hide show
  1. package/README.md +17 -2
  2. package/dist/{chunk-G6YKGVQR.mjs → chunk-JE4MV5RL.mjs} +18 -60
  3. package/dist/{chunk-2ICOSP7N.mjs → chunk-KRCRD4AJ.mjs} +11 -14
  4. package/dist/{chunk-5ZKPBMRK.mjs → chunk-SBLIHCN2.mjs} +21 -24
  5. package/dist/{chunk-LMOJKJOY.mjs → chunk-TLFRGJ5B.mjs} +334 -217
  6. package/dist/chunk-WKY3IN52.mjs +4907 -0
  7. package/dist/events.js +3364 -2660
  8. package/dist/events.mjs +2 -5
  9. package/dist/index.js +2693 -1764
  10. package/dist/index.mjs +610 -38
  11. package/dist/modals.js +1356 -815
  12. package/dist/modals.mjs +2 -4
  13. package/dist/pages.js +3023 -2248
  14. package/dist/pages.mjs +4 -7
  15. package/dist/primitives.js +1072 -355
  16. package/dist/primitives.mjs +38 -30
  17. package/dist/styles.css +1 -1
  18. package/dist/tailwind.css +1 -1
  19. package/dist/trading.js +1153 -558
  20. package/dist/trading.mjs +2 -4
  21. package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +31 -0
  22. package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +31 -0
  23. package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +83 -0
  24. package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +83 -0
  25. package/dist/types/auth/connect-button-view/index.d.mts +7 -0
  26. package/dist/types/auth/connect-button-view/index.d.ts +7 -0
  27. package/dist/types/auth/index.d.mts +1 -1
  28. package/dist/types/auth/index.d.ts +1 -1
  29. package/dist/types/index.d.mts +1 -1
  30. package/dist/types/index.d.ts +1 -1
  31. package/dist/types/primitives/chart/chart-type-switch.d.mts +10 -0
  32. package/dist/types/primitives/chart/chart-type-switch.d.ts +10 -0
  33. package/dist/types/primitives/chart/index.d.mts +7 -1
  34. package/dist/types/primitives/chart/index.d.ts +7 -1
  35. package/dist/types/primitives/icon/index.d.mts +9 -1
  36. package/dist/types/primitives/icon/index.d.ts +9 -1
  37. package/dist/types/primitives/icon/registry.d.mts +32 -0
  38. package/dist/types/primitives/icon/registry.d.ts +32 -0
  39. package/dist/types/primitives/icon/svg/apple.d.mts +5 -0
  40. package/dist/types/primitives/icon/svg/apple.d.ts +5 -0
  41. package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +5 -0
  42. package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +5 -0
  43. package/dist/types/primitives/icon/svg/chart-line.d.mts +5 -0
  44. package/dist/types/primitives/icon/svg/chart-line.d.ts +5 -0
  45. package/dist/types/primitives/icon/svg/error-filled.d.mts +5 -0
  46. package/dist/types/primitives/icon/svg/error-filled.d.ts +5 -0
  47. package/dist/types/primitives/icon/svg/ethereum.d.mts +5 -0
  48. package/dist/types/primitives/icon/svg/ethereum.d.ts +5 -0
  49. package/dist/types/primitives/icon/svg/google.d.mts +5 -0
  50. package/dist/types/primitives/icon/svg/google.d.ts +5 -0
  51. package/dist/types/primitives/icon/svg/image.d.mts +5 -0
  52. package/dist/types/primitives/icon/svg/image.d.ts +5 -0
  53. package/dist/types/primitives/icon/svg/solana.d.mts +5 -0
  54. package/dist/types/primitives/icon/svg/solana.d.ts +5 -0
  55. package/dist/types/primitives/index.d.mts +2 -0
  56. package/dist/types/primitives/index.d.ts +2 -0
  57. package/dist/types/primitives/inline-alert/index.d.mts +16 -0
  58. package/dist/types/primitives/inline-alert/index.d.ts +16 -0
  59. package/dist/types/primitives/remote-image/index.d.mts +6 -0
  60. package/dist/types/primitives/remote-image/index.d.ts +6 -0
  61. package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
  62. package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
  63. package/dist/types/primitives/remote-image/remote-image.types.d.mts +16 -0
  64. package/dist/types/primitives/remote-image/remote-image.types.d.ts +16 -0
  65. package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +5 -0
  66. package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +5 -0
  67. package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +1 -1
  68. package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +1 -1
  69. package/dist/types/trading/types.d.mts +26 -26
  70. package/dist/types/trading/types.d.ts +26 -26
  71. package/package.json +3 -15
  72. package/dist/auth.d.mts +0 -1
  73. package/dist/auth.d.ts +0 -1
  74. package/dist/auth.js +0 -2290
  75. package/dist/auth.mjs +0 -8
  76. package/dist/chunk-ADGL6RFX.mjs +0 -214
  77. package/dist/chunk-CN7GI2RJ.mjs +0 -585
  78. package/dist/chunk-HI4EEDN5.mjs +0 -1880
  79. package/dist/chunk-INRG3D4M.mjs +0 -450
  80. package/dist/chunk-JE3Z52FD.mjs +0 -345
  81. package/dist/chunk-MHCHR65A.mjs +0 -165
  82. package/dist/chunk-PASXFYKQ.mjs +0 -81
  83. package/dist/chunk-UBBOLLOS.mjs +0 -999
  84. package/dist/types/auth/connect-button/connect-button.constants.d.mts +0 -10
  85. package/dist/types/auth/connect-button/connect-button.constants.d.ts +0 -10
  86. package/dist/types/auth/connect-button/connect-button.types.d.mts +0 -33
  87. package/dist/types/auth/connect-button/connect-button.types.d.ts +0 -33
  88. package/dist/types/auth/connect-button/index.d.mts +0 -7
  89. package/dist/types/auth/connect-button/index.d.ts +0 -7
package/README.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # @agg-market/ui
2
2
 
3
- Pre-built React components for the [AGG](https://agg.market) prediction market aggregator. Drop-in trading UI powered by [`@agg-market/hooks`](https://www.npmjs.com/package/@agg-market/hooks).
3
+ Pre-built React components for the [AGG](https://agg.market) prediction market aggregator.
4
+
5
+ `@agg-market/ui` now focuses on generic UI primitives, trading surfaces, and page-level components.
6
+ Auth adapters and the connect/sign-in UX live in
7
+ [`@agg-market/auth`](https://www.npmjs.com/package/@agg-market/auth).
8
+
9
+ ## Auth migration
10
+
11
+ If you previously imported `ConnectButton` from `@agg-market/ui`, move that integration to
12
+ `@agg-market/auth`:
13
+
14
+ ```tsx
15
+ import { AggAuthProvider, ConnectButton, createEmailAuthMethod } from "@agg-market/auth";
16
+ ```
17
+
18
+ `@agg-market/ui` no longer ships wallet-specific auth logic or wallet peer dependencies.
4
19
 
5
20
  ## Install
6
21
 
@@ -66,7 +81,6 @@ import { Button } from "@agg-market/ui";
66
81
  | Import path | Component | Description |
67
82
  | --------------------------- | ----------------- | ------------------------ |
68
83
  | `@agg-market/ui/primitives` | `Button` | Base button |
69
- | `@agg-market/ui/auth` | `ConnectButton` | Wallet connection |
70
84
  | `@agg-market/ui/primitives` | `Card` | Content card |
71
85
  | `@agg-market/ui/primitives` | `Chart` | Price chart |
72
86
  | `@agg-market/ui/primitives` | `Skeleton` | Loading placeholder |
@@ -97,6 +111,7 @@ import { Button } from "@agg-market/ui";
97
111
  | ---------------------------------------------------------------------- | -------------------------------------- |
98
112
  | [`@agg-market/sdk`](https://www.npmjs.com/package/@agg-market/sdk) | Vanilla TypeScript client |
99
113
  | [`@agg-market/hooks`](https://www.npmjs.com/package/@agg-market/hooks) | React hooks for auth and data fetching |
114
+ | [`@agg-market/auth`](https://www.npmjs.com/package/@agg-market/auth) | Auth adapters and connect/sign-in UI |
100
115
 
101
116
  ## License
102
117
 
@@ -1,19 +1,19 @@
1
1
  import {
2
+ Button,
2
3
  Card,
4
+ Icon,
5
+ InlineAlert,
6
+ RemoteImage,
3
7
  Skeleton,
4
8
  Tabs,
5
- skeletonViews
6
- } from "./chunk-UBBOLLOS.mjs";
7
- import {
8
- Button,
9
- Icon,
10
9
  VenueLogo,
11
10
  __spreadProps,
12
11
  __spreadValues,
13
12
  cn,
14
13
  formatUsd,
15
- getMotionClassName
16
- } from "./chunk-HI4EEDN5.mjs";
14
+ getMotionClassName,
15
+ skeletonViews
16
+ } from "./chunk-WKY3IN52.mjs";
17
17
 
18
18
  // src/trading/utils.ts
19
19
  import { resolveAggUiLabels } from "@agg-market/hooks";
@@ -66,38 +66,6 @@ var getTradingSlippageLabel = (value) => {
66
66
  import { useEffect, useMemo, useState } from "react";
67
67
  import { useLabels, useSdkUiConfig } from "@agg-market/hooks";
68
68
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
69
- var WarningFilledIcon = ({ className }) => {
70
- return /* @__PURE__ */ jsxs(
71
- "svg",
72
- {
73
- viewBox: "0 0 16 16",
74
- fill: "none",
75
- className: cn("text-agg-warning", className),
76
- "aria-hidden": "true",
77
- children: [
78
- /* @__PURE__ */ jsx("path", { d: "M8 1.33301L15.3333 14.6663H0.666656L8 1.33301Z", fill: "currentColor" }),
79
- /* @__PURE__ */ jsx("path", { d: "M8 5.33301V8.66634", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
80
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "11.1667", r: "0.833333", fill: "white" })
81
- ]
82
- }
83
- );
84
- };
85
- var ErrorFilledIcon = ({ className }) => {
86
- return /* @__PURE__ */ jsxs(
87
- "svg",
88
- {
89
- viewBox: "0 0 16 16",
90
- fill: "none",
91
- className: cn("text-agg-error", className),
92
- "aria-hidden": "true",
93
- children: [
94
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "8", fill: "currentColor" }),
95
- /* @__PURE__ */ jsx("path", { d: "M8 4.16699V8.50033", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
96
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "11.167", r: "0.833333", fill: "white" })
97
- ]
98
- }
99
- );
100
- };
101
69
  var getPlaceOrderContainerClassName = () => {
102
70
  return "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
103
71
  };
@@ -140,27 +108,17 @@ var getStatusContent = ({
140
108
  if (!status || status.placement !== placement)
141
109
  return null;
142
110
  if (status.tone === "warning") {
143
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2", children: [
144
- /* @__PURE__ */ jsx(WarningFilledIcon, { className: "h-4 w-4 shrink-0" }),
145
- /* @__PURE__ */ jsx("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
146
- ] });
111
+ return /* @__PURE__ */ jsx(InlineAlert, { tone: "warning", message: status.message });
147
112
  }
148
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 rounded-agg-lg bg-agg-status-error-surface px-3 py-2.5", children: [
149
- /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
150
- /* @__PURE__ */ jsx(ErrorFilledIcon, { className: "h-4 w-4 shrink-0" }),
151
- /* @__PURE__ */ jsx("p", { className: "min-w-0 flex-1 text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
152
- ] }),
153
- status.actionLabel ? /* @__PURE__ */ jsx(
154
- "button",
155
- {
156
- type: "button",
157
- className: "shrink-0 text-agg-sm font-agg-bold leading-agg-5 text-agg-primary",
158
- "aria-label": status.actionLabel,
159
- onClick: onStatusAction,
160
- children: status.actionLabel
161
- }
162
- ) : null
163
- ] });
113
+ return /* @__PURE__ */ jsx(
114
+ InlineAlert,
115
+ {
116
+ tone: "error",
117
+ message: status.message,
118
+ actionLabel: status.actionLabel,
119
+ onAction: status.actionLabel ? onStatusAction : void 0
120
+ }
121
+ );
164
122
  };
165
123
  var PlaceOrder = ({
166
124
  title,
@@ -248,7 +206,7 @@ var PlaceOrder = ({
248
206
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-5", children: [
249
207
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
250
208
  marketImageUrl ? /* @__PURE__ */ jsx(
251
- "img",
209
+ RemoteImage,
252
210
  {
253
211
  src: marketImageUrl,
254
212
  alt: "",
@@ -3,27 +3,24 @@ import {
3
3
  EventListItemDetails,
4
4
  MarketDetails,
5
5
  isErrorWithStatus
6
- } from "./chunk-LMOJKJOY.mjs";
7
- import {
8
- StateMessage,
9
- Typography
10
- } from "./chunk-CN7GI2RJ.mjs";
6
+ } from "./chunk-TLFRGJ5B.mjs";
11
7
  import {
12
8
  PlaceOrder,
13
9
  Settlement
14
- } from "./chunk-G6YKGVQR.mjs";
15
- import {
16
- Card,
17
- Tabs
18
- } from "./chunk-UBBOLLOS.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-HI4EEDN5.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,9 +1,3 @@
1
- import {
2
- Modal
3
- } from "./chunk-ADGL6RFX.mjs";
4
- import {
5
- Select
6
- } from "./chunk-MHCHR65A.mjs";
7
1
  import {
8
2
  BankIcon,
9
3
  BestPricesIcon,
@@ -19,8 +13,11 @@ import {
19
13
  ExternalLinkIcon,
20
14
  Icon,
21
15
  LinkAccountsIcon,
16
+ Modal,
22
17
  PlaySquareIcon,
23
18
  ProfileIcon,
19
+ RemoteImage,
20
+ Select,
24
21
  StayInControlIcon,
25
22
  VenueLogo,
26
23
  WalletIcon,
@@ -31,7 +28,7 @@ import {
31
28
  formatAmountDisplay,
32
29
  formatCompactUsd,
33
30
  venueLogoLabels
34
- } from "./chunk-HI4EEDN5.mjs";
31
+ } from "./chunk-WKY3IN52.mjs";
35
32
 
36
33
  // src/deposit/index.tsx
37
34
  import { useState as useState3 } from "react";
@@ -51,9 +48,9 @@ var VenueRow = ({ venue, onSelect }) => {
51
48
  {
52
49
  className: cn(
53
50
  "flex items-center gap-3 sm:gap-4",
54
- "rounded-xl border border-separator",
51
+ "rounded-xl border border-agg-separator",
55
52
  "p-3 sm:p-4",
56
- "hover:bg-secondary-hover transition-colors cursor-pointer"
53
+ "hover:bg-agg-secondary-hover transition-colors cursor-pointer"
57
54
  ),
58
55
  role: "button",
59
56
  tabIndex: 0,
@@ -121,9 +118,9 @@ var DepositMethodCard = ({
121
118
  {
122
119
  className: cn(
123
120
  "flex items-center gap-3 sm:gap-4",
124
- "rounded-xl border border-separator",
121
+ "rounded-xl border border-agg-separator",
125
122
  "p-3 sm:p-4",
126
- "hover:bg-secondary-hover transition-colors cursor-pointer"
123
+ "hover:bg-agg-secondary-hover transition-colors cursor-pointer"
127
124
  ),
128
125
  role: "button",
129
126
  tabIndex: 0,
@@ -135,7 +132,7 @@ var DepositMethodCard = ({
135
132
  }
136
133
  },
137
134
  children: [
138
- /* @__PURE__ */ jsx2("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
135
+ /* @__PURE__ */ jsx2("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: icon }),
139
136
  /* @__PURE__ */ jsxs2("div", { className: "flex-1 min-w-0", children: [
140
137
  /* @__PURE__ */ jsx2("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
141
138
  /* @__PURE__ */ jsx2("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
@@ -296,9 +293,9 @@ var CardDepositStep = ({
296
293
  {
297
294
  className: cn(
298
295
  "flex items-center gap-3",
299
- "rounded-xl border border-separator",
296
+ "rounded-xl border border-agg-separator",
300
297
  "p-3 sm:p-4",
301
- "hover:bg-secondary-hover transition-colors cursor-pointer"
298
+ "hover:bg-agg-secondary-hover transition-colors cursor-pointer"
302
299
  ),
303
300
  role: "button",
304
301
  tabIndex: 0,
@@ -467,7 +464,7 @@ var CryptoTransferStep = ({
467
464
  {
468
465
  className: cn(
469
466
  "flex items-center gap-2",
470
- "rounded border border-separator bg-secondary",
467
+ "rounded border border-agg-separator bg-agg-secondary",
471
468
  "h-10 px-3"
472
469
  ),
473
470
  children: [
@@ -499,7 +496,7 @@ var KalshiStepCard = ({
499
496
  title,
500
497
  description,
501
498
  children
502
- }) => /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
499
+ }) => /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-2 rounded-xl bg-agg-secondary-hover p-4", children: [
503
500
  /* @__PURE__ */ jsxs5("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
504
501
  "Step ",
505
502
  step
@@ -689,10 +686,10 @@ var VenueRow2 = ({ venue, onSelect }) => {
689
686
  {
690
687
  className: cn(
691
688
  "flex items-center gap-3 sm:gap-4",
692
- "rounded-xl border border-separator",
689
+ "rounded-xl border border-agg-separator",
693
690
  "p-3 sm:p-4",
694
691
  "transition-colors",
695
- isDisabled ? "opacity-50 cursor-not-allowed" : "hover:bg-secondary-hover cursor-pointer"
692
+ isDisabled ? "opacity-50 cursor-not-allowed" : "hover:bg-agg-secondary-hover cursor-pointer"
696
693
  ),
697
694
  role: "button",
698
695
  tabIndex: isDisabled ? -1 : 0,
@@ -756,9 +753,9 @@ var WithdrawMethodCard = ({
756
753
  {
757
754
  className: cn(
758
755
  "flex items-center gap-3 sm:gap-4",
759
- "rounded-xl border border-separator",
756
+ "rounded-xl border border-agg-separator",
760
757
  "p-3 sm:p-4",
761
- "hover:bg-secondary-hover transition-colors cursor-pointer"
758
+ "hover:bg-agg-secondary-hover transition-colors cursor-pointer"
762
759
  ),
763
760
  role: "button",
764
761
  tabIndex: 0,
@@ -770,7 +767,7 @@ var WithdrawMethodCard = ({
770
767
  }
771
768
  },
772
769
  children: [
773
- /* @__PURE__ */ jsx8("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
770
+ /* @__PURE__ */ jsx8("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: icon }),
774
771
  /* @__PURE__ */ jsxs8("div", { className: "flex-1 min-w-0", children: [
775
772
  /* @__PURE__ */ jsx8("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
776
773
  /* @__PURE__ */ jsx8("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
@@ -955,7 +952,7 @@ var KalshiStepCard2 = ({
955
952
  title,
956
953
  description,
957
954
  children
958
- }) => /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
955
+ }) => /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2 rounded-xl bg-agg-secondary-hover p-4", children: [
959
956
  /* @__PURE__ */ jsxs10("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
960
957
  "Step ",
961
958
  step
@@ -1277,7 +1274,7 @@ var ProfileSetupStep = ({ onContinue }) => {
1277
1274
  ),
1278
1275
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
1279
1276
  children: avatarPreview ? /* @__PURE__ */ jsx13(
1280
- "img",
1277
+ RemoteImage,
1281
1278
  {
1282
1279
  src: avatarPreview,
1283
1280
  alt: labels.onboarding.profileSetup.profilePreviewAlt,
@@ -2002,7 +1999,7 @@ var AboutTab = ({
2002
1999
  ),
2003
2000
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
2004
2001
  children: resolvedPreview ? /* @__PURE__ */ jsx18(
2005
- "img",
2002
+ RemoteImage,
2006
2003
  {
2007
2004
  src: resolvedPreview,
2008
2005
  alt: labels.onboarding.profileSetup.profilePreviewAlt,