@agg-build/ui 2.7.3 → 3.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 (46) hide show
  1. package/dist/{chunk-EDQ64EKO.mjs → chunk-JTSLZARU.mjs} +6 -5
  2. package/dist/{chunk-FMYYPNZZ.mjs → chunk-KO6VTRV6.mjs} +101 -27
  3. package/dist/{chunk-AHQA3B7D.mjs → chunk-KX3TQ7WC.mjs} +1 -1
  4. package/dist/{chunk-7DM45TMO.mjs → chunk-MKU5Q6PN.mjs} +21 -13
  5. package/dist/{chunk-MZBYIXYA.mjs → chunk-R362GNI2.mjs} +1310 -500
  6. package/dist/{chunk-JQKJDSTW.mjs → chunk-VR5ZRDQT.mjs} +3 -2
  7. package/dist/{chunk-O27JUYCF.mjs → chunk-XIDQ2A6W.mjs} +645 -346
  8. package/dist/events.js +168 -91
  9. package/dist/events.mjs +3 -3
  10. package/dist/index.js +2784 -1606
  11. package/dist/index.mjs +9 -7
  12. package/dist/modals.js +98 -29
  13. package/dist/modals.mjs +3 -3
  14. package/dist/pages.js +2510 -1333
  15. package/dist/pages.mjs +8 -6
  16. package/dist/primitives.js +94 -26
  17. package/dist/primitives.mjs +1 -1
  18. package/dist/styles.css +1 -1
  19. package/dist/tailwind.css +1 -1
  20. package/dist/trading.js +1739 -1143
  21. package/dist/trading.mjs +4 -4
  22. package/dist/types/events/orderbook/orderbook.utils.d.mts +1 -1
  23. package/dist/types/events/orderbook/orderbook.utils.d.ts +1 -1
  24. package/dist/types/pages/user-profile/components/available-balance-card.d.mts +5 -1
  25. package/dist/types/pages/user-profile/components/available-balance-card.d.ts +5 -1
  26. package/dist/types/pages/user-profile/components/manage-balances-modal.d.mts +8 -0
  27. package/dist/types/pages/user-profile/components/manage-balances-modal.d.ts +8 -0
  28. package/dist/types/pages/user-profile/components/open-order-row.d.mts +1 -0
  29. package/dist/types/pages/user-profile/components/open-order-row.d.ts +1 -0
  30. package/dist/types/pages/user-profile/index.d.mts +1 -0
  31. package/dist/types/pages/user-profile/index.d.ts +1 -0
  32. package/dist/types/pages/user-profile/position-view-model.d.mts +15 -4
  33. package/dist/types/pages/user-profile/position-view-model.d.ts +15 -4
  34. package/dist/types/primitives/select/index.d.mts +1 -1
  35. package/dist/types/primitives/select/index.d.ts +1 -1
  36. package/dist/types/primitives/select/select.types.d.mts +8 -0
  37. package/dist/types/primitives/select/select.types.d.ts +8 -0
  38. package/dist/types/profile/profile-modal.constants.d.mts +1 -1
  39. package/dist/types/profile/profile-modal.constants.d.ts +1 -1
  40. package/dist/types/trading/place-order/index.place-order.constants.d.mts +3 -1
  41. package/dist/types/trading/place-order/index.place-order.constants.d.ts +3 -1
  42. package/dist/types/trading/place-order/index.place-order.types.d.mts +10 -0
  43. package/dist/types/trading/place-order/index.place-order.types.d.ts +10 -0
  44. package/dist/types/trading/place-order/index.place-order.utils.d.mts +17 -5
  45. package/dist/types/trading/place-order/index.place-order.utils.d.ts +17 -5
  46. package/package.json +3 -3
@@ -19,7 +19,7 @@ import {
19
19
  selectPrimaryVenueMarket,
20
20
  skeletonViews,
21
21
  sortOutcomes
22
- } from "./chunk-FMYYPNZZ.mjs";
22
+ } from "./chunk-KO6VTRV6.mjs";
23
23
 
24
24
  // src/trading/trading-context/index.tsx
25
25
  import { useEventTradingContext } from "@agg-build/hooks";
@@ -38,8 +38,9 @@ var isOrderBookRow = (v) => hasShape(v, {
38
38
  total: (t) => typeof t === "number" && t >= 0,
39
39
  tone: (x) => x === "positive" || x === "negative"
40
40
  });
41
- var formatProbabilityCents = (value) => {
41
+ var formatProbabilityCents = (value, formatPrice) => {
42
42
  if (value == null) return "-";
43
+ if (formatPrice) return formatPrice(value);
43
44
  const cents = (value * 100).toFixed(1).replace(/\.0$/, "");
44
45
  return `${cents}\xA2`;
45
46
  };