@agg-build/ui 4.2.0 → 4.7.1

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 (74) hide show
  1. package/README.md +25 -16
  2. package/dist/{chunk-DNPDXL2D.mjs → chunk-3RQCBGIK.mjs} +341 -105
  3. package/dist/{chunk-GNEFI4SO.mjs → chunk-C4GFVJ62.mjs} +725 -400
  4. package/dist/{chunk-UDBHAZJJ.mjs → chunk-EOLR7DHL.mjs} +568 -145
  5. package/dist/{chunk-6X6Y4INU.mjs → chunk-LXQ3U4X2.mjs} +2 -2
  6. package/dist/{chunk-QW7VFURU.mjs → chunk-RDBMHBR2.mjs} +67 -3
  7. package/dist/{chunk-WDCH4RRS.mjs → chunk-WYCSTAN7.mjs} +1 -1
  8. package/dist/{chunk-FTL25XKE.mjs → chunk-XN2NB2NP.mjs} +1 -1
  9. package/dist/events.js +1149 -661
  10. package/dist/events.mjs +6 -4
  11. package/dist/index.js +3320 -2291
  12. package/dist/index.mjs +12 -8
  13. package/dist/modals.js +9 -2
  14. package/dist/modals.mjs +3 -3
  15. package/dist/pages.js +2789 -1762
  16. package/dist/pages.mjs +8 -6
  17. package/dist/primitives.js +30 -3
  18. package/dist/primitives.mjs +1 -1
  19. package/dist/styles.css +1 -1
  20. package/dist/tailwind.css +1 -1
  21. package/dist/trading.js +338 -102
  22. package/dist/trading.mjs +4 -4
  23. package/dist/types/events/index.d.mts +1 -0
  24. package/dist/types/events/index.d.ts +1 -0
  25. package/dist/types/events/item-details/event-list-item-details-market-selector.d.mts +4 -1
  26. package/dist/types/events/item-details/event-list-item-details-market-selector.d.ts +4 -1
  27. package/dist/types/events/item-details/event-list-item-details.types.d.mts +25 -1
  28. package/dist/types/events/item-details/event-list-item-details.types.d.ts +25 -1
  29. package/dist/types/events/item-details/index.d.mts +1 -1
  30. package/dist/types/events/item-details/index.d.ts +1 -1
  31. package/dist/types/events/list/event-list.constants.d.mts +3 -1
  32. package/dist/types/events/list/event-list.constants.d.ts +3 -1
  33. package/dist/types/events/list/event-list.types.d.mts +17 -0
  34. package/dist/types/events/list/event-list.types.d.ts +17 -0
  35. package/dist/types/events/list/event-list.utils.d.mts +4 -0
  36. package/dist/types/events/list/event-list.utils.d.ts +4 -0
  37. package/dist/types/events/list/index.d.mts +2 -2
  38. package/dist/types/events/list/index.d.ts +2 -2
  39. package/dist/types/events/market-details/index.d.mts +1 -1
  40. package/dist/types/events/market-details/index.d.ts +1 -1
  41. package/dist/types/events/market-details/market-details.types.d.mts +4 -0
  42. package/dist/types/events/market-details/market-details.types.d.ts +4 -0
  43. package/dist/types/events/shared/format-event-title.d.mts +9 -1
  44. package/dist/types/events/shared/format-event-title.d.ts +9 -1
  45. package/dist/types/events/shared/format-sports-event-time.d.mts +2 -0
  46. package/dist/types/events/shared/format-sports-event-time.d.ts +2 -0
  47. package/dist/types/events/shared/sports-live-score.d.mts +10 -0
  48. package/dist/types/events/shared/sports-live-score.d.ts +10 -0
  49. package/dist/types/pages/event-market/event-market.types.d.mts +4 -0
  50. package/dist/types/pages/event-market/event-market.types.d.ts +4 -0
  51. package/dist/types/pages/event-market/index.d.mts +1 -0
  52. package/dist/types/pages/event-market/index.d.ts +1 -0
  53. package/dist/types/pages/home/event-discovery-url-state.d.mts +35 -0
  54. package/dist/types/pages/home/event-discovery-url-state.d.ts +35 -0
  55. package/dist/types/pages/user-profile/components/available-balance-card.d.mts +5 -0
  56. package/dist/types/pages/user-profile/components/available-balance-card.d.ts +5 -0
  57. package/dist/types/pages/user-profile/components/open-order-row.d.mts +1 -0
  58. package/dist/types/pages/user-profile/components/open-order-row.d.ts +1 -0
  59. package/dist/types/pages/user-profile/components/positions-activity.d.mts +1 -1
  60. package/dist/types/pages/user-profile/components/positions-activity.d.ts +1 -1
  61. package/dist/types/pages/user-profile/user-profile.types.d.mts +1 -1
  62. package/dist/types/pages/user-profile/user-profile.types.d.ts +1 -1
  63. package/dist/types/trading/place-order/index.d.mts +1 -1
  64. package/dist/types/trading/place-order/index.d.ts +1 -1
  65. package/dist/types/trading/place-order/index.place-order.execution-steps.d.mts +13 -1
  66. package/dist/types/trading/place-order/index.place-order.execution-steps.d.ts +13 -1
  67. package/dist/types/trading/place-order/index.place-order.execution-view.d.mts +2 -1
  68. package/dist/types/trading/place-order/index.place-order.execution-view.d.ts +2 -1
  69. package/dist/types/trading/place-order/index.place-order.types.d.mts +9 -0
  70. package/dist/types/trading/place-order/index.place-order.types.d.ts +9 -0
  71. package/dist/types/trading/place-order/index.place-order.utils.d.mts +6 -0
  72. package/dist/types/trading/place-order/index.place-order.utils.d.ts +6 -0
  73. package/package.json +3 -3
  74. /package/dist/{chunk-KHHFHXXD.mjs → chunk-JH4B3ZHQ.mjs} +0 -0
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import "./chunk-KHHFHXXD.mjs";
2
+ import "./chunk-JH4B3ZHQ.mjs";
3
3
  import {
4
4
  ConditionalWrapper,
5
5
  DefaultAvatar,
@@ -11,9 +11,10 @@ import {
11
11
  USER_PROFILE_TAB_POSITIONS,
12
12
  UserProfilePage,
13
13
  buildAggTxExplorerHref,
14
+ formatRecurringCountdown,
14
15
  formatShareAmount,
15
16
  useHomePageModals
16
- } from "./chunk-UDBHAZJJ.mjs";
17
+ } from "./chunk-EOLR7DHL.mjs";
17
18
  import {
18
19
  EventList,
19
20
  EventListItem,
@@ -24,13 +25,14 @@ import {
24
25
  Orderbook,
25
26
  OrderbookWithStates,
26
27
  SettlementSummary,
28
+ SportsLiveScore,
27
29
  collectEligibleVenueOutcomeIds,
28
30
  collectEligibleVenueOutcomes,
29
31
  mergeVenueOutcomeOrderbooks,
30
32
  orderbookRowLimitDefault,
31
33
  resolveEventDetailsSyncKey,
32
34
  useCenterOrderbookSpread
33
- } from "./chunk-GNEFI4SO.mjs";
35
+ } from "./chunk-C4GFVJ62.mjs";
34
36
  import {
35
37
  CARD_NETWORK_OPTIONS,
36
38
  DepositModal,
@@ -40,7 +42,7 @@ import {
40
42
  buildTerminalSummary,
41
43
  clearPendingCardSession,
42
44
  getPendingCardSession
43
- } from "./chunk-6X6Y4INU.mjs";
45
+ } from "./chunk-LXQ3U4X2.mjs";
44
46
  import {
45
47
  AggNotificationEventsProvider,
46
48
  DEPOSIT_MODAL_OPEN_EVENT,
@@ -59,7 +61,7 @@ import {
59
61
  requestAggWithdrawModalOpen,
60
62
  useClaimWinnings,
61
63
  useResolvedMarketClaim
62
- } from "./chunk-DNPDXL2D.mjs";
64
+ } from "./chunk-3RQCBGIK.mjs";
63
65
  import {
64
66
  SETTLEMENT_SECTION_ID,
65
67
  Settlement,
@@ -80,7 +82,7 @@ import {
80
82
  resolveOrderBookRows,
81
83
  resolveUnifiedOrderBookEntries,
82
84
  useEventTradingContext
83
- } from "./chunk-WDCH4RRS.mjs";
85
+ } from "./chunk-WYCSTAN7.mjs";
84
86
  import {
85
87
  ConnectAccountsStep,
86
88
  ConnectKalshiModal,
@@ -89,7 +91,7 @@ import {
89
91
  HowItWorksStep,
90
92
  OnboardingModal,
91
93
  ProfileSetupStep
92
- } from "./chunk-FTL25XKE.mjs";
94
+ } from "./chunk-XN2NB2NP.mjs";
93
95
  import {
94
96
  AGG_DEFAULT_URL,
95
97
  AGG_DOCS_URL,
@@ -211,7 +213,7 @@ import {
211
213
  useOptionalToast,
212
214
  useToast,
213
215
  venueLogoNames
214
- } from "./chunk-QW7VFURU.mjs";
216
+ } from "./chunk-RDBMHBR2.mjs";
215
217
 
216
218
  // src/notifications/agg-toast-provider.tsx
217
219
  import { jsx } from "react/jsx-runtime";
@@ -1090,6 +1092,7 @@ export {
1090
1092
  Skeleton,
1091
1093
  SolanaIcon,
1092
1094
  SparklesFilledIcon,
1095
+ SportsLiveScore,
1093
1096
  StateMessage,
1094
1097
  StayInControlIcon,
1095
1098
  SuccessCheckIcon,
@@ -1129,6 +1132,7 @@ export {
1129
1132
  formatAmountDisplay,
1130
1133
  formatCompactUsd,
1131
1134
  formatProbabilityCents,
1135
+ formatRecurringCountdown,
1132
1136
  formatShareAmount,
1133
1137
  formatTokenAmount,
1134
1138
  formatUsd,
package/dist/modals.js CHANGED
@@ -7721,7 +7721,7 @@ var Tabs = ({
7721
7721
  width: activeButton.offsetWidth,
7722
7722
  opacity: 1
7723
7723
  });
7724
- }, [isBarVariant, renderedItems, value]);
7724
+ }, [isBarVariant, renderedItems, tabListRef, value]);
7725
7725
  (0, import_react11.useLayoutEffect)(() => {
7726
7726
  updateActiveUnderline();
7727
7727
  }, [updateActiveUnderline]);
@@ -7780,7 +7780,14 @@ var Tabs = ({
7780
7780
  requestAnimationFrame(() => {
7781
7781
  updateScrollState();
7782
7782
  });
7783
- }, [enableAnimations, renderedItems, shouldUseOverflowScroll, updateScrollState, value]);
7783
+ }, [
7784
+ enableAnimations,
7785
+ renderedItems,
7786
+ shouldUseOverflowScroll,
7787
+ tabListRef,
7788
+ updateScrollState,
7789
+ value
7790
+ ]);
7784
7791
  if (shouldUseOverflowSelect) {
7785
7792
  return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: cn("group/agg-tabs w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
7786
7793
  Select,
package/dist/modals.mjs CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  buildTerminalSummary,
9
9
  clearPendingCardSession,
10
10
  getPendingCardSession
11
- } from "./chunk-6X6Y4INU.mjs";
11
+ } from "./chunk-LXQ3U4X2.mjs";
12
12
  import {
13
13
  ConnectAccountsStep,
14
14
  ConnectKalshiModal,
@@ -17,8 +17,8 @@ import {
17
17
  HowItWorksStep,
18
18
  OnboardingModal,
19
19
  ProfileSetupStep
20
- } from "./chunk-FTL25XKE.mjs";
21
- import "./chunk-QW7VFURU.mjs";
20
+ } from "./chunk-XN2NB2NP.mjs";
21
+ import "./chunk-RDBMHBR2.mjs";
22
22
  export {
23
23
  CARD_NETWORK_OPTIONS,
24
24
  ConnectAccountsStep,