@agg-build/ui 4.18.1 → 4.19.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 (52) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-ZNOAKSPT.mjs → chunk-47CCGQH6.mjs} +2 -2
  3. package/dist/{chunk-2OBJ7DYT.mjs → chunk-5YHKIJ23.mjs} +21 -10
  4. package/dist/{chunk-2UPO6G3S.mjs → chunk-DWPBGMVJ.mjs} +50 -6
  5. package/dist/{chunk-VUZ72Q7H.mjs → chunk-DXASFSVL.mjs} +3 -2
  6. package/dist/{chunk-YXMDEUHP.mjs → chunk-GT3DCFIT.mjs} +494 -41
  7. package/dist/{chunk-HFL3CEWG.mjs → chunk-NSQQ62QK.mjs} +4 -4
  8. package/dist/{chunk-NRPS2D3Q.mjs → chunk-ROA5K67W.mjs} +1 -1
  9. package/dist/{chunk-JJ3VVCEP.mjs → chunk-WOCZ4TVT.mjs} +12 -8
  10. package/dist/{chunk-WIGSRHUG.mjs → chunk-XZVGHKMW.mjs} +3 -2
  11. package/dist/{event-market-GX24AP2H.mjs → event-market-2BAMDM5I.mjs} +6 -6
  12. package/dist/events.js +60 -11
  13. package/dist/events.mjs +4 -4
  14. package/dist/index.js +1148 -621
  15. package/dist/index.mjs +17 -9
  16. package/dist/modals.js +3 -2
  17. package/dist/modals.mjs +3 -3
  18. package/dist/pages.js +580 -53
  19. package/dist/pages.mjs +16 -8
  20. package/dist/primitives.js +3 -2
  21. package/dist/primitives.mjs +1 -1
  22. package/dist/styles.css +1 -1
  23. package/dist/tailwind.css +1 -1
  24. package/dist/trading.js +21 -9
  25. package/dist/trading.mjs +4 -4
  26. package/dist/types/pages/index.d.mts +1 -0
  27. package/dist/types/pages/index.d.ts +1 -0
  28. package/dist/types/pages/leaderboard/components/leaderboard-header-row.d.mts +7 -0
  29. package/dist/types/pages/leaderboard/components/leaderboard-header-row.d.ts +7 -0
  30. package/dist/types/pages/leaderboard/components/leaderboard-row.d.mts +7 -0
  31. package/dist/types/pages/leaderboard/components/leaderboard-row.d.ts +7 -0
  32. package/dist/types/pages/leaderboard/components/leaderboard-skeleton.d.mts +3 -0
  33. package/dist/types/pages/leaderboard/components/leaderboard-skeleton.d.ts +3 -0
  34. package/dist/types/pages/leaderboard/components/segmented-control.d.mts +18 -0
  35. package/dist/types/pages/leaderboard/components/segmented-control.d.ts +18 -0
  36. package/dist/types/pages/leaderboard/index.d.mts +28 -0
  37. package/dist/types/pages/leaderboard/index.d.ts +28 -0
  38. package/dist/types/pages/leaderboard/leaderboard.constants.d.mts +8 -0
  39. package/dist/types/pages/leaderboard/leaderboard.constants.d.ts +8 -0
  40. package/dist/types/pages/leaderboard/leaderboard.types.d.mts +11 -0
  41. package/dist/types/pages/leaderboard/leaderboard.types.d.ts +11 -0
  42. package/dist/types/pages/user-profile/position-view-model.d.mts +2 -4
  43. package/dist/types/pages/user-profile/position-view-model.d.ts +2 -4
  44. package/dist/types/primitives/remote-image/index.d.mts +1 -1
  45. package/dist/types/primitives/remote-image/index.d.ts +1 -1
  46. package/dist/types/primitives/remote-image/remote-image.types.d.mts +6 -0
  47. package/dist/types/primitives/remote-image/remote-image.types.d.ts +6 -0
  48. package/dist/types/shared/pnl-format.d.mts +20 -0
  49. package/dist/types/shared/pnl-format.d.ts +20 -0
  50. package/package.json +3 -3
  51. /package/dist/types/{pages/user-profile/components → shared}/default-avatar.d.mts +0 -0
  52. /package/dist/types/{pages/user-profile/components → shared}/default-avatar.d.ts +0 -0
package/dist/index.mjs CHANGED
@@ -4,6 +4,10 @@ import {
4
4
  ConditionalWrapper,
5
5
  DefaultAvatar,
6
6
  HomePage,
7
+ LEADERBOARD_DEFAULT_METRIC,
8
+ LEADERBOARD_DEFAULT_PERIOD,
9
+ LEADERBOARD_METRICS,
10
+ LeaderboardPage,
7
11
  ManageBalancesModal,
8
12
  USER_PROFILE_TAB_ACTIVITY,
9
13
  USER_PROFILE_TAB_OPEN_ORDERS,
@@ -12,12 +16,12 @@ import {
12
16
  buildAggTxExplorerHref,
13
17
  formatShareAmount,
14
18
  useHomePageModals
15
- } from "./chunk-YXMDEUHP.mjs";
19
+ } from "./chunk-GT3DCFIT.mjs";
16
20
  import {
17
21
  EventList,
18
22
  EventListItem,
19
23
  EventListItemV2
20
- } from "./chunk-VUZ72Q7H.mjs";
24
+ } from "./chunk-DXASFSVL.mjs";
21
25
  import {
22
26
  CARD_NETWORK_OPTIONS,
23
27
  DepositModal,
@@ -30,14 +34,14 @@ import {
30
34
  buildTerminalSummary,
31
35
  clearPendingCardSession,
32
36
  getPendingCardSession
33
- } from "./chunk-ZNOAKSPT.mjs";
37
+ } from "./chunk-47CCGQH6.mjs";
34
38
  import {
35
39
  EventMarketPage,
36
40
  EventOpenOrders,
37
41
  EventOpenOrdersCard,
38
42
  formatRecurringCountdown,
39
43
  useEventOpenOrders
40
- } from "./chunk-HFL3CEWG.mjs";
44
+ } from "./chunk-NSQQ62QK.mjs";
41
45
  import {
42
46
  EventListItemDetails,
43
47
  MarketDetails,
@@ -52,7 +56,7 @@ import {
52
56
  orderbookRowLimitDefault,
53
57
  resolveEventDetailsSyncKey,
54
58
  useCenterOrderbookSpread
55
- } from "./chunk-2UPO6G3S.mjs";
59
+ } from "./chunk-DWPBGMVJ.mjs";
56
60
  import {
57
61
  AggNotificationEventsProvider,
58
62
  DEPOSIT_MODAL_OPEN_EVENT,
@@ -74,7 +78,7 @@ import {
74
78
  useResolvedMarketClaim,
75
79
  useSharedKycFlow,
76
80
  venueRequiresSharedKyc
77
- } from "./chunk-2OBJ7DYT.mjs";
81
+ } from "./chunk-5YHKIJ23.mjs";
78
82
  import {
79
83
  SETTLEMENT_SECTION_ID,
80
84
  Settlement,
@@ -95,7 +99,7 @@ import {
95
99
  resolveOrderBookRows,
96
100
  resolveUnifiedOrderBookEntries,
97
101
  useEventTradingContext
98
- } from "./chunk-JJ3VVCEP.mjs";
102
+ } from "./chunk-WOCZ4TVT.mjs";
99
103
  import {
100
104
  ConnectAccountsStep,
101
105
  ConnectKalshiModal,
@@ -106,7 +110,7 @@ import {
106
110
  OnboardingModal,
107
111
  ProfileSetupStep,
108
112
  SharedKycModal
109
- } from "./chunk-NRPS2D3Q.mjs";
113
+ } from "./chunk-ROA5K67W.mjs";
110
114
  import {
111
115
  AGG_DEFAULT_URL,
112
116
  AGG_DOCS_URL,
@@ -228,7 +232,7 @@ import {
228
232
  useOptionalToast,
229
233
  useToast,
230
234
  venueLogoNames
231
- } from "./chunk-WIGSRHUG.mjs";
235
+ } from "./chunk-XZVGHKMW.mjs";
232
236
 
233
237
  // src/notifications/agg-toast-provider.tsx
234
238
  import { jsx } from "react/jsx-runtime";
@@ -1066,6 +1070,10 @@ export {
1066
1070
  ImageIcon,
1067
1071
  InfoIcon,
1068
1072
  InlineAlert,
1073
+ LEADERBOARD_DEFAULT_METRIC,
1074
+ LEADERBOARD_DEFAULT_PERIOD,
1075
+ LEADERBOARD_METRICS,
1076
+ LeaderboardPage,
1069
1077
  LineChart,
1070
1078
  LinkAccountsIcon,
1071
1079
  LoadingIcon,
package/dist/modals.js CHANGED
@@ -4807,7 +4807,8 @@ var RemoteImage = ({
4807
4807
  width,
4808
4808
  height,
4809
4809
  onClick,
4810
- ariaLabel
4810
+ ariaLabel,
4811
+ fallback
4811
4812
  }) => {
4812
4813
  const {
4813
4814
  general: { theme }
@@ -4864,7 +4865,7 @@ var RemoteImage = ({
4864
4865
  className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
4865
4866
  "aria-hidden": true,
4866
4867
  "aria-errormessage": "Image failed to load",
4867
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
4868
+ children: fallback != null ? fallback : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
4868
4869
  Icon,
4869
4870
  {
4870
4871
  name: "image",
package/dist/modals.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  buildTerminalSummary,
12
12
  clearPendingCardSession,
13
13
  getPendingCardSession
14
- } from "./chunk-ZNOAKSPT.mjs";
14
+ } from "./chunk-47CCGQH6.mjs";
15
15
  import {
16
16
  ConnectAccountsStep,
17
17
  ConnectKalshiModal,
@@ -22,8 +22,8 @@ import {
22
22
  OnboardingModal,
23
23
  ProfileSetupStep,
24
24
  SharedKycModal
25
- } from "./chunk-NRPS2D3Q.mjs";
26
- import "./chunk-WIGSRHUG.mjs";
25
+ } from "./chunk-ROA5K67W.mjs";
26
+ import "./chunk-XZVGHKMW.mjs";
27
27
  export {
28
28
  CARD_NETWORK_OPTIONS,
29
29
  ConnectAccountsStep,