@agg-market/ui 0.0.1 → 0.0.3

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 (60) hide show
  1. package/dist/{chunk-CB2MLGCJ.mjs → chunk-2NCBX6XI.mjs} +5 -1
  2. package/dist/{chunk-7CD7GIZC.mjs → chunk-764YUN2J.mjs} +7 -1
  3. package/dist/{chunk-2PGUPOXY.mjs → chunk-A4QJAOZW.mjs} +9 -5
  4. package/dist/{chunk-765JPQDG.mjs → chunk-FYV3MDIL.mjs} +1 -1
  5. package/dist/{chunk-H7P6DIX4.mjs → chunk-JQ4FUHXE.mjs} +1 -1
  6. package/dist/event-list-item.mjs +1 -1
  7. package/dist/event-list.mjs +2 -2
  8. package/dist/event-market-page.d.mts +1 -1
  9. package/dist/event-market-page.d.ts +1 -1
  10. package/dist/event-market-page.js +8 -4
  11. package/dist/event-market-page.mjs +2 -2
  12. package/dist/home-page.mjs +3 -3
  13. package/dist/index.d.mts +3 -3
  14. package/dist/index.d.ts +3 -3
  15. package/dist/index.js +8 -4
  16. package/dist/index.mjs +5 -5
  17. package/dist/market-details.mjs +1 -1
  18. package/dist/place-order.d.mts +1 -1
  19. package/dist/place-order.d.ts +1 -1
  20. package/dist/search.d.mts +3 -21
  21. package/dist/search.d.ts +3 -21
  22. package/dist/settlement.d.mts +1 -1
  23. package/dist/settlement.d.ts +1 -1
  24. package/dist/{types-8VUuQVZq.d.ts → types-C5JigCSX.d.mts} +22 -22
  25. package/dist/{types-8VUuQVZq.d.mts → types-C5JigCSX.d.ts} +22 -22
  26. package/package.json +235 -101
  27. package/dist/chunk-3DV3D2LH.mjs +0 -155
  28. package/dist/chunk-44UEI6KD.mjs +0 -280
  29. package/dist/chunk-4ADCXJE6.mjs +0 -297
  30. package/dist/chunk-4GSXVVSA.mjs +0 -64
  31. package/dist/chunk-4XWCYUV3.mjs +0 -355
  32. package/dist/chunk-6RRBINER.mjs +0 -50
  33. package/dist/chunk-AOFP74IB.mjs +0 -850
  34. package/dist/chunk-DBD5GHHD.mjs +0 -147
  35. package/dist/chunk-FUJQIYOF.mjs +0 -37
  36. package/dist/chunk-GPBLZGJ2.mjs +0 -136
  37. package/dist/chunk-H4LELROL.mjs +0 -262
  38. package/dist/chunk-H7YEBGYY.mjs +0 -42
  39. package/dist/chunk-HJOBAMDU.mjs +0 -142
  40. package/dist/chunk-IJG5I642.mjs +0 -462
  41. package/dist/chunk-KBRLFTJT.mjs +0 -741
  42. package/dist/chunk-L6E6Q4C4.mjs +0 -217
  43. package/dist/chunk-M23S2DVV.mjs +0 -581
  44. package/dist/chunk-MRHSN2B7.mjs +0 -279
  45. package/dist/chunk-MXWRCVRJ.mjs +0 -285
  46. package/dist/chunk-NNSY462N.mjs +0 -212
  47. package/dist/chunk-P5PFQX75.mjs +0 -31
  48. package/dist/chunk-P674XRDY.mjs +0 -481
  49. package/dist/chunk-V5WIYMKS.mjs +0 -25
  50. package/dist/chunk-VAZE267Q.mjs +0 -82
  51. package/dist/chunk-VLIJ7PQK.mjs +0 -792
  52. package/dist/chunk-WIWJ6DIE.mjs +0 -323
  53. package/dist/event-list-item-details.types-CxWr4Qn1.d.ts +0 -53
  54. package/dist/event-list-item-details.types-DRi99PZq.d.mts +0 -53
  55. package/dist/event-list-item.types-B1490EQm.d.mts +0 -46
  56. package/dist/event-list-item.types-B1490EQm.d.ts +0 -46
  57. package/dist/event-list.types-Bpp6Vn-t.d.mts +0 -13
  58. package/dist/event-list.types-Bpp6Vn-t.d.ts +0 -13
  59. package/dist/venue-logo.types-4hmCg3D3.d.ts +0 -17
  60. package/dist/venue-logo.types-QNDwiQ77.d.mts +0 -17
@@ -38,7 +38,11 @@ import {
38
38
  // src/events/item/index.tsx
39
39
  import dayjs from "dayjs";
40
40
  import { useMemo } from "react";
41
- import { useEvent, useLabels, useSdkUiConfig } from "@agg-market/hooks";
41
+ import {
42
+ useEvent,
43
+ useLabels,
44
+ useSdkUiConfig
45
+ } from "@agg-market/hooks";
42
46
  import { jsx, jsxs } from "react/jsx-runtime";
43
47
  var EventListItemLoadingState = ({
44
48
  classNames,
@@ -50,7 +50,13 @@ import {
50
50
 
51
51
  // src/events/market-details/index.tsx
52
52
  import { useEffect, useId, useMemo, useState } from "react";
53
- import { useEvent, useLabels, useOrderBook, usePriceHistory, useSdkUiConfig } from "@agg-market/hooks";
53
+ import {
54
+ useEvent,
55
+ useLabels,
56
+ useOrderBook,
57
+ usePriceHistory,
58
+ useSdkUiConfig
59
+ } from "@agg-market/hooks";
54
60
 
55
61
  // src/events/market-details/market-details.utils.ts
56
62
  import dayjs from "dayjs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-4NK2FNAG.mjs";
10
10
  import {
11
11
  MarketDetails
12
- } from "./chunk-7CD7GIZC.mjs";
12
+ } from "./chunk-764YUN2J.mjs";
13
13
  import {
14
14
  Typography
15
15
  } from "./chunk-DQ6XFBYJ.mjs";
@@ -43,7 +43,9 @@ var resolveHeroMarketId = (event, heroMarketId) => {
43
43
  if (!((_a = event == null ? void 0 : event.markets) == null ? void 0 : _a.length))
44
44
  return void 0;
45
45
  if (heroMarketId) {
46
- const matchingHeroMarket = event.markets.find((market) => market.id === heroMarketId);
46
+ const matchingHeroMarket = event.markets.find(
47
+ (market) => market.id === heroMarketId
48
+ );
47
49
  if (matchingHeroMarket)
48
50
  return matchingHeroMarket.id;
49
51
  }
@@ -63,9 +65,11 @@ var resolveDetailedMarkets = (event, heroMarketId) => {
63
65
  return event.markets.filter((market) => market.id !== heroMarketId).map((market, index) => ({
64
66
  market,
65
67
  index
66
- })).sort((leftItem, rightItem) => {
67
- return getMarketDateValue(leftItem.market, leftItem.index) - getMarketDateValue(rightItem.market, rightItem.index);
68
- }).map((item) => item.market);
68
+ })).sort(
69
+ (leftItem, rightItem) => {
70
+ return getMarketDateValue(leftItem.market, leftItem.index) - getMarketDateValue(rightItem.market, rightItem.index);
71
+ }
72
+ ).map((item) => item.market);
69
73
  };
70
74
  var resolveInitialExpandedMarketId = (detailedMarkets, defaultExpandedMarketId) => {
71
75
  var _a, _b;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EventList
3
- } from "./chunk-H7P6DIX4.mjs";
3
+ } from "./chunk-JQ4FUHXE.mjs";
4
4
  import {
5
5
  Tabs
6
6
  } from "./chunk-QXFDXXDB.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EventListItem
3
- } from "./chunk-CB2MLGCJ.mjs";
3
+ } from "./chunk-2NCBX6XI.mjs";
4
4
  import {
5
5
  Tabs
6
6
  } from "./chunk-QXFDXXDB.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EventListItem
3
- } from "./chunk-CB2MLGCJ.mjs";
3
+ } from "./chunk-2NCBX6XI.mjs";
4
4
  import "./chunk-PAQ542ER.mjs";
5
5
  import "./chunk-MG243DSX.mjs";
6
6
  import "./chunk-NFYS557L.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EventList
3
- } from "./chunk-H7P6DIX4.mjs";
4
- import "./chunk-CB2MLGCJ.mjs";
3
+ } from "./chunk-JQ4FUHXE.mjs";
4
+ import "./chunk-2NCBX6XI.mjs";
5
5
  import "./chunk-QXFDXXDB.mjs";
6
6
  import "./chunk-PAQ542ER.mjs";
7
7
  import "./chunk-MG243DSX.mjs";
@@ -1,5 +1,5 @@
1
1
  import { Event } from '@agg-market/hooks';
2
- import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-8VUuQVZq.mjs';
2
+ import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-C5JigCSX.mjs';
3
3
  import { d as EventListItemDetailsTimeRange } from './event-list-item-details.types-DekJKeMD.mjs';
4
4
  import 'zod';
5
5
  import './event-list-item.types-Y6IeJ4e4.mjs';
@@ -1,5 +1,5 @@
1
1
  import { Event } from '@agg-market/hooks';
2
- import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-8VUuQVZq.js';
2
+ import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-C5JigCSX.js';
3
3
  import { d as EventListItemDetailsTimeRange } from './event-list-item-details.types-CMbXOrT-.js';
4
4
  import 'zod';
5
5
  import './event-list-item.types-Y6IeJ4e4.js';
@@ -5127,7 +5127,9 @@ var resolveHeroMarketId = (event, heroMarketId) => {
5127
5127
  if (!((_a = event == null ? void 0 : event.markets) == null ? void 0 : _a.length))
5128
5128
  return void 0;
5129
5129
  if (heroMarketId) {
5130
- const matchingHeroMarket = event.markets.find((market) => market.id === heroMarketId);
5130
+ const matchingHeroMarket = event.markets.find(
5131
+ (market) => market.id === heroMarketId
5132
+ );
5131
5133
  if (matchingHeroMarket)
5132
5134
  return matchingHeroMarket.id;
5133
5135
  }
@@ -5147,9 +5149,11 @@ var resolveDetailedMarkets = (event, heroMarketId) => {
5147
5149
  return event.markets.filter((market) => market.id !== heroMarketId).map((market, index) => ({
5148
5150
  market,
5149
5151
  index
5150
- })).sort((leftItem, rightItem) => {
5151
- return getMarketDateValue(leftItem.market, leftItem.index) - getMarketDateValue(rightItem.market, rightItem.index);
5152
- }).map((item) => item.market);
5152
+ })).sort(
5153
+ (leftItem, rightItem) => {
5154
+ return getMarketDateValue(leftItem.market, leftItem.index) - getMarketDateValue(rightItem.market, rightItem.index);
5155
+ }
5156
+ ).map((item) => item.market);
5153
5157
  };
5154
5158
  var resolveInitialExpandedMarketId = (detailedMarkets, defaultExpandedMarketId) => {
5155
5159
  var _a, _b;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  EventMarketPage
3
- } from "./chunk-2PGUPOXY.mjs";
3
+ } from "./chunk-A4QJAOZW.mjs";
4
4
  import "./chunk-J7OETCZ7.mjs";
5
5
  import "./chunk-5MN6ZNFA.mjs";
6
6
  import "./chunk-KDBYDMYV.mjs";
7
7
  import "./chunk-4NK2FNAG.mjs";
8
- import "./chunk-7CD7GIZC.mjs";
8
+ import "./chunk-764YUN2J.mjs";
9
9
  import "./chunk-XDAEEJYR.mjs";
10
10
  import "./chunk-QXFDXXDB.mjs";
11
11
  import "./chunk-PAQ542ER.mjs";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  HomePage
3
- } from "./chunk-765JPQDG.mjs";
4
- import "./chunk-H7P6DIX4.mjs";
5
- import "./chunk-CB2MLGCJ.mjs";
3
+ } from "./chunk-FYV3MDIL.mjs";
4
+ import "./chunk-JQ4FUHXE.mjs";
5
+ import "./chunk-2NCBX6XI.mjs";
6
6
  import "./chunk-QXFDXXDB.mjs";
7
7
  import "./chunk-PAQ542ER.mjs";
8
8
  import "./chunk-MG243DSX.mjs";
package/dist/index.d.mts CHANGED
@@ -22,8 +22,8 @@ export { EventList } from './event-list.mjs';
22
22
  export { HomePage, HomePageCategory, HomePageClassNames, HomePageEventSectionItem, HomePageProps, HomePageTab, HomePageTabValue } from './home-page.mjs';
23
23
  export { ConnectAccountsStep, ConnectAccountsStepProps, ConnectKalshiModal, ConnectKalshiModalProps, ConnectOnchainModal, ConnectOnchainModalProps, ConnectionState, HowItWorksIcons, HowItWorksStep, HowItWorksStepProps, KalshiCredentials, OnboardingModal, OnboardingModalProps, OnboardingProfileData, ProfileSetupStep, ProfileSetupStepProps } from './onboarding-modal.mjs';
24
24
  export { EventMarketPage, EventMarketPageClassNames, EventMarketPageProps } from './event-market-page.mjs';
25
- import { T as TradingVenue } from './types-8VUuQVZq.mjs';
26
- export { v as PlaceOrderMetric, u as PlaceOrderOutcome, y as PlaceOrderResult, r as PlaceOrderResultTone, x as PlaceOrderRouting, w as PlaceOrderRoutingRow, q as PlaceOrderRoutingTone, z as PlaceOrderStatus, o as PlaceOrderStatusPlacement, n as PlaceOrderStatusTone, P as PlaceOrderTab, A as PlaceOrderViewModel, b as SettlementVenueItem, S as SettlementViewModel, h as placeOrderMetricSchema, g as placeOrderOutcomeSchema, k as placeOrderResultSchema, f as placeOrderResultToneSchema, i as placeOrderRoutingRowSchema, j as placeOrderRoutingSchema, e as placeOrderRoutingToneSchema, d as placeOrderStatusPlacementSchema, l as placeOrderStatusSchema, c as placeOrderStatusToneSchema, p as placeOrderTabSchema, m as placeOrderViewModelSchema, s as settlementVenueSchema, a as settlementViewModelSchema, t as tradingVenueSchema } from './types-8VUuQVZq.mjs';
25
+ import { T as TradingVenue } from './types-C5JigCSX.mjs';
26
+ export { v as PlaceOrderMetric, u as PlaceOrderOutcome, y as PlaceOrderResult, r as PlaceOrderResultTone, x as PlaceOrderRouting, w as PlaceOrderRoutingRow, q as PlaceOrderRoutingTone, z as PlaceOrderStatus, o as PlaceOrderStatusPlacement, n as PlaceOrderStatusTone, P as PlaceOrderTab, A as PlaceOrderViewModel, b as SettlementVenueItem, S as SettlementViewModel, h as placeOrderMetricSchema, g as placeOrderOutcomeSchema, k as placeOrderResultSchema, f as placeOrderResultToneSchema, i as placeOrderRoutingRowSchema, j as placeOrderRoutingSchema, e as placeOrderRoutingToneSchema, d as placeOrderStatusPlacementSchema, l as placeOrderStatusSchema, c as placeOrderStatusToneSchema, p as placeOrderTabSchema, m as placeOrderViewModelSchema, s as settlementVenueSchema, a as settlementViewModelSchema, t as tradingVenueSchema } from './types-C5JigCSX.mjs';
27
27
  export { Settlement, SettlementProps } from './settlement.mjs';
28
28
  export { PlaceOrder, PlaceOrderProps } from './place-order.mjs';
29
29
  export { A as AvailableSizes } from './types-CayJ8tWA.mjs';
@@ -34,8 +34,8 @@ export { E as EventListItemDetailsClassNames, a as EventListItemDetailsEvent, b
34
34
  export { E as EventListProps } from './event-list.types-CkAAUqwW.mjs';
35
35
  import 'react';
36
36
  import 'react/jsx-runtime';
37
- import 'zod';
38
37
  import '@agg-market/hooks';
38
+ import 'zod';
39
39
 
40
40
  declare const defaultSettlementSectionLabel: string;
41
41
  declare const defaultSettlementDifferencesTitle: string;
package/dist/index.d.ts CHANGED
@@ -22,8 +22,8 @@ export { EventList } from './event-list.js';
22
22
  export { HomePage, HomePageCategory, HomePageClassNames, HomePageEventSectionItem, HomePageProps, HomePageTab, HomePageTabValue } from './home-page.js';
23
23
  export { ConnectAccountsStep, ConnectAccountsStepProps, ConnectKalshiModal, ConnectKalshiModalProps, ConnectOnchainModal, ConnectOnchainModalProps, ConnectionState, HowItWorksIcons, HowItWorksStep, HowItWorksStepProps, KalshiCredentials, OnboardingModal, OnboardingModalProps, OnboardingProfileData, ProfileSetupStep, ProfileSetupStepProps } from './onboarding-modal.js';
24
24
  export { EventMarketPage, EventMarketPageClassNames, EventMarketPageProps } from './event-market-page.js';
25
- import { T as TradingVenue } from './types-8VUuQVZq.js';
26
- export { v as PlaceOrderMetric, u as PlaceOrderOutcome, y as PlaceOrderResult, r as PlaceOrderResultTone, x as PlaceOrderRouting, w as PlaceOrderRoutingRow, q as PlaceOrderRoutingTone, z as PlaceOrderStatus, o as PlaceOrderStatusPlacement, n as PlaceOrderStatusTone, P as PlaceOrderTab, A as PlaceOrderViewModel, b as SettlementVenueItem, S as SettlementViewModel, h as placeOrderMetricSchema, g as placeOrderOutcomeSchema, k as placeOrderResultSchema, f as placeOrderResultToneSchema, i as placeOrderRoutingRowSchema, j as placeOrderRoutingSchema, e as placeOrderRoutingToneSchema, d as placeOrderStatusPlacementSchema, l as placeOrderStatusSchema, c as placeOrderStatusToneSchema, p as placeOrderTabSchema, m as placeOrderViewModelSchema, s as settlementVenueSchema, a as settlementViewModelSchema, t as tradingVenueSchema } from './types-8VUuQVZq.js';
25
+ import { T as TradingVenue } from './types-C5JigCSX.js';
26
+ export { v as PlaceOrderMetric, u as PlaceOrderOutcome, y as PlaceOrderResult, r as PlaceOrderResultTone, x as PlaceOrderRouting, w as PlaceOrderRoutingRow, q as PlaceOrderRoutingTone, z as PlaceOrderStatus, o as PlaceOrderStatusPlacement, n as PlaceOrderStatusTone, P as PlaceOrderTab, A as PlaceOrderViewModel, b as SettlementVenueItem, S as SettlementViewModel, h as placeOrderMetricSchema, g as placeOrderOutcomeSchema, k as placeOrderResultSchema, f as placeOrderResultToneSchema, i as placeOrderRoutingRowSchema, j as placeOrderRoutingSchema, e as placeOrderRoutingToneSchema, d as placeOrderStatusPlacementSchema, l as placeOrderStatusSchema, c as placeOrderStatusToneSchema, p as placeOrderTabSchema, m as placeOrderViewModelSchema, s as settlementVenueSchema, a as settlementViewModelSchema, t as tradingVenueSchema } from './types-C5JigCSX.js';
27
27
  export { Settlement, SettlementProps } from './settlement.js';
28
28
  export { PlaceOrder, PlaceOrderProps } from './place-order.js';
29
29
  export { A as AvailableSizes } from './types-CayJ8tWA.js';
@@ -34,8 +34,8 @@ export { E as EventListItemDetailsClassNames, a as EventListItemDetailsEvent, b
34
34
  export { E as EventListProps } from './event-list.types-CkAAUqwW.js';
35
35
  import 'react';
36
36
  import 'react/jsx-runtime';
37
- import 'zod';
38
37
  import '@agg-market/hooks';
38
+ import 'zod';
39
39
 
40
40
  declare const defaultSettlementSectionLabel: string;
41
41
  declare const defaultSettlementDifferencesTitle: string;
package/dist/index.js CHANGED
@@ -7777,7 +7777,9 @@ var resolveHeroMarketId = (event, heroMarketId) => {
7777
7777
  if (!((_a = event == null ? void 0 : event.markets) == null ? void 0 : _a.length))
7778
7778
  return void 0;
7779
7779
  if (heroMarketId) {
7780
- const matchingHeroMarket = event.markets.find((market) => market.id === heroMarketId);
7780
+ const matchingHeroMarket = event.markets.find(
7781
+ (market) => market.id === heroMarketId
7782
+ );
7781
7783
  if (matchingHeroMarket)
7782
7784
  return matchingHeroMarket.id;
7783
7785
  }
@@ -7797,9 +7799,11 @@ var resolveDetailedMarkets = (event, heroMarketId) => {
7797
7799
  return event.markets.filter((market) => market.id !== heroMarketId).map((market, index) => ({
7798
7800
  market,
7799
7801
  index
7800
- })).sort((leftItem, rightItem) => {
7801
- return getMarketDateValue(leftItem.market, leftItem.index) - getMarketDateValue(rightItem.market, rightItem.index);
7802
- }).map((item) => item.market);
7802
+ })).sort(
7803
+ (leftItem, rightItem) => {
7804
+ return getMarketDateValue(leftItem.market, leftItem.index) - getMarketDateValue(rightItem.market, rightItem.index);
7805
+ }
7806
+ ).map((item) => item.market);
7803
7807
  };
7804
7808
  var resolveInitialExpandedMarketId = (detailedMarkets, defaultExpandedMarketId) => {
7805
7809
  var _a, _b;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HomePage
3
- } from "./chunk-765JPQDG.mjs";
3
+ } from "./chunk-FYV3MDIL.mjs";
4
4
  import {
5
5
  ConnectAccountsStep,
6
6
  ConnectKalshiModal,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-R3DRVI4J.mjs";
12
12
  import {
13
13
  EventMarketPage
14
- } from "./chunk-2PGUPOXY.mjs";
14
+ } from "./chunk-A4QJAOZW.mjs";
15
15
  import {
16
16
  Modal
17
17
  } from "./chunk-CKTAVEW2.mjs";
@@ -39,14 +39,14 @@ import {
39
39
  } from "./chunk-4NK2FNAG.mjs";
40
40
  import {
41
41
  MarketDetails
42
- } from "./chunk-7CD7GIZC.mjs";
42
+ } from "./chunk-764YUN2J.mjs";
43
43
  import "./chunk-XDAEEJYR.mjs";
44
44
  import {
45
45
  EventList
46
- } from "./chunk-H7P6DIX4.mjs";
46
+ } from "./chunk-JQ4FUHXE.mjs";
47
47
  import {
48
48
  EventListItem
49
- } from "./chunk-CB2MLGCJ.mjs";
49
+ } from "./chunk-2NCBX6XI.mjs";
50
50
  import {
51
51
  Tabs
52
52
  } from "./chunk-QXFDXXDB.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MarketDetails
3
- } from "./chunk-7CD7GIZC.mjs";
3
+ } from "./chunk-764YUN2J.mjs";
4
4
  import "./chunk-XDAEEJYR.mjs";
5
5
  import "./chunk-QXFDXXDB.mjs";
6
6
  import "./chunk-PAQ542ER.mjs";
@@ -1,4 +1,4 @@
1
- import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-8VUuQVZq.mjs';
1
+ import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-C5JigCSX.mjs';
2
2
  import 'zod';
3
3
 
4
4
  type PlaceOrderProps = PlaceOrderViewModel & {
@@ -1,4 +1,4 @@
1
- import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-8VUuQVZq.js';
1
+ import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-C5JigCSX.js';
2
2
  import 'zod';
3
3
 
4
4
  type PlaceOrderProps = PlaceOrderViewModel & {
package/dist/search.d.mts CHANGED
@@ -1,35 +1,17 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- import { z } from 'zod';
3
2
  import { V as VenueLogoName } from './venue-logo.types-B1iPJgiD.mjs';
4
3
  import '@agg-market/hooks';
5
4
  import './types-CayJ8tWA.mjs';
6
5
 
7
- declare const searchResultItemSchema: z.ZodObject<{
8
- id: z.ZodString;
9
- title: z.ZodString;
10
- thumbnailSrc: z.ZodString;
11
- thumbnailAlt: z.ZodOptional<z.ZodString>;
12
- venue: z.ZodType<VenueLogoName, z.ZodTypeDef, VenueLogoName>;
13
- valueLabel: z.ZodString;
14
- contextLabel: z.ZodString;
15
- }, "strip", z.ZodTypeAny, {
6
+ type SearchResultItem = {
16
7
  id: string;
17
8
  title: string;
18
- venue: VenueLogoName;
19
9
  thumbnailSrc: string;
20
- valueLabel: string;
21
- contextLabel: string;
22
- thumbnailAlt?: string | undefined;
23
- }, {
24
- id: string;
25
- title: string;
10
+ thumbnailAlt?: string;
26
11
  venue: VenueLogoName;
27
- thumbnailSrc: string;
28
12
  valueLabel: string;
29
13
  contextLabel: string;
30
- thumbnailAlt?: string | undefined;
31
- }>;
32
- type SearchResultItem = z.infer<typeof searchResultItemSchema>;
14
+ };
33
15
  type SearchClassNames = {
34
16
  root?: string;
35
17
  inputContainer?: string;
package/dist/search.d.ts CHANGED
@@ -1,35 +1,17 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- import { z } from 'zod';
3
2
  import { V as VenueLogoName } from './venue-logo.types-Bg8eXtGp.js';
4
3
  import '@agg-market/hooks';
5
4
  import './types-CayJ8tWA.js';
6
5
 
7
- declare const searchResultItemSchema: z.ZodObject<{
8
- id: z.ZodString;
9
- title: z.ZodString;
10
- thumbnailSrc: z.ZodString;
11
- thumbnailAlt: z.ZodOptional<z.ZodString>;
12
- venue: z.ZodType<VenueLogoName, z.ZodTypeDef, VenueLogoName>;
13
- valueLabel: z.ZodString;
14
- contextLabel: z.ZodString;
15
- }, "strip", z.ZodTypeAny, {
6
+ type SearchResultItem = {
16
7
  id: string;
17
8
  title: string;
18
- venue: VenueLogoName;
19
9
  thumbnailSrc: string;
20
- valueLabel: string;
21
- contextLabel: string;
22
- thumbnailAlt?: string | undefined;
23
- }, {
24
- id: string;
25
- title: string;
10
+ thumbnailAlt?: string;
26
11
  venue: VenueLogoName;
27
- thumbnailSrc: string;
28
12
  valueLabel: string;
29
13
  contextLabel: string;
30
- thumbnailAlt?: string | undefined;
31
- }>;
32
- type SearchResultItem = z.infer<typeof searchResultItemSchema>;
14
+ };
33
15
  type SearchClassNames = {
34
16
  root?: string;
35
17
  inputContainer?: string;
@@ -1,4 +1,4 @@
1
- import { S as SettlementViewModel, T as TradingVenue } from './types-8VUuQVZq.mjs';
1
+ import { S as SettlementViewModel, T as TradingVenue } from './types-C5JigCSX.mjs';
2
2
  import 'zod';
3
3
 
4
4
  type SettlementProps = SettlementViewModel & {
@@ -1,4 +1,4 @@
1
- import { S as SettlementViewModel, T as TradingVenue } from './types-8VUuQVZq.js';
1
+ import { S as SettlementViewModel, T as TradingVenue } from './types-C5JigCSX.js';
2
2
  import 'zod';
3
3
 
4
4
  type SettlementProps = SettlementViewModel & {
@@ -8,12 +8,12 @@ declare const settlementVenueSchema: z.ZodObject<{
8
8
  description: z.ZodString;
9
9
  showMoreLabel: z.ZodOptional<z.ZodString>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
11
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
12
12
  description: string;
13
13
  label?: string | undefined;
14
14
  showMoreLabel?: string | undefined;
15
15
  }, {
16
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
16
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
17
17
  description: string;
18
18
  label?: string | undefined;
19
19
  showMoreLabel?: string | undefined;
@@ -29,41 +29,41 @@ declare const settlementViewModelSchema: z.ZodObject<{
29
29
  description: z.ZodString;
30
30
  showMoreLabel: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
32
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
33
33
  description: string;
34
34
  label?: string | undefined;
35
35
  showMoreLabel?: string | undefined;
36
36
  }, {
37
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
37
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
38
38
  description: string;
39
39
  label?: string | undefined;
40
40
  showMoreLabel?: string | undefined;
41
41
  }>, "many">;
42
42
  defaultExpandedVenue: z.ZodOptional<z.ZodNullable<z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>>>;
43
43
  }, "strip", z.ZodTypeAny, {
44
- question: string;
45
44
  venues: {
46
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
45
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
47
46
  description: string;
48
47
  label?: string | undefined;
49
48
  showMoreLabel?: string | undefined;
50
49
  }[];
51
50
  sectionLabel: string;
51
+ question: string;
52
52
  differencesTitle: string;
53
53
  differences: string[];
54
- defaultExpandedVenue?: "opinion" | "probable" | "polymarket" | "kalshi" | null | undefined;
54
+ defaultExpandedVenue?: "opinion" | "probable" | "kalshi" | "polymarket" | null | undefined;
55
55
  }, {
56
- question: string;
57
56
  venues: {
58
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
57
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
59
58
  description: string;
60
59
  label?: string | undefined;
61
60
  showMoreLabel?: string | undefined;
62
61
  }[];
63
62
  sectionLabel: string;
63
+ question: string;
64
64
  differencesTitle: string;
65
65
  differences: string[];
66
- defaultExpandedVenue?: "opinion" | "probable" | "polymarket" | "kalshi" | null | undefined;
66
+ defaultExpandedVenue?: "opinion" | "probable" | "kalshi" | "polymarket" | null | undefined;
67
67
  }>;
68
68
  type SettlementViewModel = z.infer<typeof settlementViewModelSchema>;
69
69
  type SettlementVenueItem = z.infer<typeof settlementVenueSchema>;
@@ -103,11 +103,11 @@ declare const placeOrderRoutingRowSchema: z.ZodObject<{
103
103
  label: z.ZodString;
104
104
  priceLabel: z.ZodString;
105
105
  }, "strip", z.ZodTypeAny, {
106
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
106
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
107
107
  label: string;
108
108
  priceLabel: string;
109
109
  }, {
110
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
110
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
111
111
  label: string;
112
112
  priceLabel: string;
113
113
  }>;
@@ -118,11 +118,11 @@ declare const placeOrderRoutingSchema: z.ZodObject<{
118
118
  label: z.ZodString;
119
119
  priceLabel: z.ZodString;
120
120
  }, "strip", z.ZodTypeAny, {
121
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
121
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
122
122
  label: string;
123
123
  priceLabel: string;
124
124
  }, {
125
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
125
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
126
126
  label: string;
127
127
  priceLabel: string;
128
128
  }>, "many">;
@@ -131,7 +131,7 @@ declare const placeOrderRoutingSchema: z.ZodObject<{
131
131
  }, "strip", z.ZodTypeAny, {
132
132
  tone: "default" | "highlighted";
133
133
  rows: {
134
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
134
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
135
135
  label: string;
136
136
  priceLabel: string;
137
137
  }[];
@@ -140,7 +140,7 @@ declare const placeOrderRoutingSchema: z.ZodObject<{
140
140
  }, {
141
141
  tone: "default" | "highlighted";
142
142
  rows: {
143
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
143
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
144
144
  label: string;
145
145
  priceLabel: string;
146
146
  }[];
@@ -220,11 +220,11 @@ declare const placeOrderViewModelSchema: z.ZodObject<{
220
220
  label: z.ZodString;
221
221
  priceLabel: z.ZodString;
222
222
  }, "strip", z.ZodTypeAny, {
223
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
223
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
224
224
  label: string;
225
225
  priceLabel: string;
226
226
  }, {
227
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
227
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
228
228
  label: string;
229
229
  priceLabel: string;
230
230
  }>, "many">;
@@ -233,7 +233,7 @@ declare const placeOrderViewModelSchema: z.ZodObject<{
233
233
  }, "strip", z.ZodTypeAny, {
234
234
  tone: "default" | "highlighted";
235
235
  rows: {
236
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
236
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
237
237
  label: string;
238
238
  priceLabel: string;
239
239
  }[];
@@ -242,7 +242,7 @@ declare const placeOrderViewModelSchema: z.ZodObject<{
242
242
  }, {
243
243
  tone: "default" | "highlighted";
244
244
  rows: {
245
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
245
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
246
246
  label: string;
247
247
  priceLabel: string;
248
248
  }[];
@@ -311,7 +311,7 @@ declare const placeOrderViewModelSchema: z.ZodObject<{
311
311
  routing: {
312
312
  tone: "default" | "highlighted";
313
313
  rows: {
314
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
314
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
315
315
  label: string;
316
316
  priceLabel: string;
317
317
  }[];
@@ -354,7 +354,7 @@ declare const placeOrderViewModelSchema: z.ZodObject<{
354
354
  routing: {
355
355
  tone: "default" | "highlighted";
356
356
  rows: {
357
- venue: "opinion" | "probable" | "polymarket" | "kalshi";
357
+ venue: "opinion" | "probable" | "kalshi" | "polymarket";
358
358
  label: string;
359
359
  priceLabel: string;
360
360
  }[];