@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/pages.mjs CHANGED
@@ -1,6 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  HomePage,
4
+ LEADERBOARD_DEFAULT_METRIC,
5
+ LEADERBOARD_DEFAULT_PERIOD,
6
+ LEADERBOARD_METRICS,
7
+ LeaderboardPage,
4
8
  ManageBalancesModal,
5
9
  USER_PROFILE_TAB_ACTIVITY,
6
10
  USER_PROFILE_TAB_OPEN_ORDERS,
@@ -9,31 +13,35 @@ import {
9
13
  buildAggTxExplorerHref,
10
14
  formatShareAmount,
11
15
  useHomePageModals
12
- } from "./chunk-YXMDEUHP.mjs";
13
- import "./chunk-VUZ72Q7H.mjs";
16
+ } from "./chunk-GT3DCFIT.mjs";
17
+ import "./chunk-DXASFSVL.mjs";
14
18
  import {
15
19
  EventMarketPage,
16
20
  EventOpenOrders,
17
21
  EventOpenOrdersCard,
18
22
  formatRecurringCountdown,
19
23
  useEventOpenOrders
20
- } from "./chunk-HFL3CEWG.mjs";
21
- import "./chunk-2UPO6G3S.mjs";
24
+ } from "./chunk-NSQQ62QK.mjs";
25
+ import "./chunk-DWPBGMVJ.mjs";
22
26
  import {
23
27
  DEPOSIT_MODAL_OPEN_EVENT,
24
28
  WITHDRAW_MODAL_OPEN_EVENT,
25
29
  requestAggDepositModalOpen,
26
30
  requestAggWithdrawModalOpen
27
- } from "./chunk-2OBJ7DYT.mjs";
28
- import "./chunk-JJ3VVCEP.mjs";
29
- import "./chunk-NRPS2D3Q.mjs";
30
- import "./chunk-WIGSRHUG.mjs";
31
+ } from "./chunk-5YHKIJ23.mjs";
32
+ import "./chunk-WOCZ4TVT.mjs";
33
+ import "./chunk-ROA5K67W.mjs";
34
+ import "./chunk-XZVGHKMW.mjs";
31
35
  export {
32
36
  DEPOSIT_MODAL_OPEN_EVENT,
33
37
  EventMarketPage,
34
38
  EventOpenOrders,
35
39
  EventOpenOrdersCard,
36
40
  HomePage,
41
+ LEADERBOARD_DEFAULT_METRIC,
42
+ LEADERBOARD_DEFAULT_PERIOD,
43
+ LEADERBOARD_METRICS,
44
+ LeaderboardPage,
37
45
  ManageBalancesModal,
38
46
  USER_PROFILE_TAB_ACTIVITY,
39
47
  USER_PROFILE_TAB_OPEN_ORDERS,
@@ -6056,7 +6056,8 @@ var RemoteImage = ({
6056
6056
  width,
6057
6057
  height,
6058
6058
  onClick,
6059
- ariaLabel
6059
+ ariaLabel,
6060
+ fallback
6060
6061
  }) => {
6061
6062
  const {
6062
6063
  general: { theme }
@@ -6113,7 +6114,7 @@ var RemoteImage = ({
6113
6114
  className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
6114
6115
  "aria-hidden": true,
6115
6116
  "aria-errormessage": "Image failed to load",
6116
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6117
+ children: fallback != null ? fallback : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6117
6118
  Icon,
6118
6119
  {
6119
6120
  name: "image",
@@ -100,7 +100,7 @@ import {
100
100
  useOptionalToast,
101
101
  useToast,
102
102
  venueLogoNames
103
- } from "./chunk-WIGSRHUG.mjs";
103
+ } from "./chunk-XZVGHKMW.mjs";
104
104
  export {
105
105
  ActivityChartIcon,
106
106
  AggErrorBoundary,