@agg-build/ui 1.2.6 → 1.2.7

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.
@@ -454,18 +454,19 @@ var buildLiveRouteCards = ({
454
454
  const parsedPrimaryVenue = parseVenue(primaryVenue);
455
455
  const isSplit = quoteData.fills.length > 1;
456
456
  const primaryWinnerVenue = quoteData.fills.length === 1 ? primaryVenue : void 0;
457
- const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.every((f) => geoBlockedVenues.has(f.venue));
457
+ const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.some((f) => geoBlockedVenues.has(f.venue));
458
458
  const primaryCard = primaryResult ? isPrimaryRouteGeoBlocked ? {
459
459
  id: "live-route",
460
460
  hint: labels.venueUnavailableInRegion,
461
- kind: "venue",
462
- label: getTradingVenueLabel(
461
+ kind: isSplit ? "split" : "venue",
462
+ label: isSplit ? labels.orderSplitting : getTradingVenueLabel(
463
463
  parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0
464
464
  ),
465
465
  numericValue: tradeSide === "sell" ? quoteData.rawExecCost : quoteData.totalFilled,
466
466
  quoteData,
467
+ rows: isSplit ? mapQuoteDataToRoutingRows(quoteData) : void 0,
467
468
  value: primaryResult.value,
468
- venue: parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
469
+ venue: isSplit ? void 0 : parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
469
470
  isUnavailable: true
470
471
  } : {
471
472
  id: "live-route",
@@ -15,7 +15,7 @@ import {
15
15
  PlaceOrder,
16
16
  SettlementDetails,
17
17
  WITHDRAW_MODAL_OPEN_EVENT
18
- } from "./chunk-FS3FGVAG.mjs";
18
+ } from "./chunk-3RG2K7MV.mjs";
19
19
  import {
20
20
  AggErrorBoundary,
21
21
  Button,
package/dist/index.js CHANGED
@@ -15874,18 +15874,19 @@ var buildLiveRouteCards = ({
15874
15874
  const parsedPrimaryVenue = parseVenue(primaryVenue);
15875
15875
  const isSplit = quoteData.fills.length > 1;
15876
15876
  const primaryWinnerVenue = quoteData.fills.length === 1 ? primaryVenue : void 0;
15877
- const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.every((f) => geoBlockedVenues.has(f.venue));
15877
+ const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.some((f) => geoBlockedVenues.has(f.venue));
15878
15878
  const primaryCard = primaryResult ? isPrimaryRouteGeoBlocked ? {
15879
15879
  id: "live-route",
15880
15880
  hint: labels.venueUnavailableInRegion,
15881
- kind: "venue",
15882
- label: getTradingVenueLabel(
15881
+ kind: isSplit ? "split" : "venue",
15882
+ label: isSplit ? labels.orderSplitting : getTradingVenueLabel(
15883
15883
  parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0
15884
15884
  ),
15885
15885
  numericValue: tradeSide === "sell" ? quoteData.rawExecCost : quoteData.totalFilled,
15886
15886
  quoteData,
15887
+ rows: isSplit ? mapQuoteDataToRoutingRows(quoteData) : void 0,
15887
15888
  value: primaryResult.value,
15888
- venue: parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
15889
+ venue: isSplit ? void 0 : parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
15889
15890
  isUnavailable: true
15890
15891
  } : {
15891
15892
  id: "live-route",
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  USER_PROFILE_TAB_POSITIONS,
11
11
  UserProfilePage,
12
12
  useHomePageModals
13
- } from "./chunk-2HI6K7JF.mjs";
13
+ } from "./chunk-QMWKXDVZ.mjs";
14
14
  import {
15
15
  EventList,
16
16
  EventListItem,
@@ -52,7 +52,7 @@ import {
52
52
  parseVenue,
53
53
  requestAggDepositModalOpen,
54
54
  requestAggWithdrawModalOpen
55
- } from "./chunk-FS3FGVAG.mjs";
55
+ } from "./chunk-3RG2K7MV.mjs";
56
56
  import {
57
57
  SETTLEMENT_SECTION_ID,
58
58
  Settlement,
package/dist/pages.js CHANGED
@@ -14107,18 +14107,19 @@ var buildLiveRouteCards = ({
14107
14107
  const parsedPrimaryVenue = parseVenue(primaryVenue);
14108
14108
  const isSplit = quoteData.fills.length > 1;
14109
14109
  const primaryWinnerVenue = quoteData.fills.length === 1 ? primaryVenue : void 0;
14110
- const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.every((f) => geoBlockedVenues.has(f.venue));
14110
+ const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.some((f) => geoBlockedVenues.has(f.venue));
14111
14111
  const primaryCard = primaryResult ? isPrimaryRouteGeoBlocked ? {
14112
14112
  id: "live-route",
14113
14113
  hint: labels.venueUnavailableInRegion,
14114
- kind: "venue",
14115
- label: getTradingVenueLabel(
14114
+ kind: isSplit ? "split" : "venue",
14115
+ label: isSplit ? labels.orderSplitting : getTradingVenueLabel(
14116
14116
  parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0
14117
14117
  ),
14118
14118
  numericValue: tradeSide === "sell" ? quoteData.rawExecCost : quoteData.totalFilled,
14119
14119
  quoteData,
14120
+ rows: isSplit ? mapQuoteDataToRoutingRows(quoteData) : void 0,
14120
14121
  value: primaryResult.value,
14121
- venue: parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
14122
+ venue: isSplit ? void 0 : parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
14122
14123
  isUnavailable: true
14123
14124
  } : {
14124
14125
  id: "live-route",
package/dist/pages.mjs CHANGED
@@ -7,14 +7,14 @@ import {
7
7
  USER_PROFILE_TAB_POSITIONS,
8
8
  UserProfilePage,
9
9
  useHomePageModals
10
- } from "./chunk-2HI6K7JF.mjs";
10
+ } from "./chunk-QMWKXDVZ.mjs";
11
11
  import "./chunk-E45WOOMN.mjs";
12
12
  import {
13
13
  DEPOSIT_MODAL_OPEN_EVENT,
14
14
  WITHDRAW_MODAL_OPEN_EVENT,
15
15
  requestAggDepositModalOpen,
16
16
  requestAggWithdrawModalOpen
17
- } from "./chunk-FS3FGVAG.mjs";
17
+ } from "./chunk-3RG2K7MV.mjs";
18
18
  import "./chunk-TBKDLNOE.mjs";
19
19
  import "./chunk-5FXMHTVR.mjs";
20
20
  import "./chunk-34L7ZKJW.mjs";
package/dist/trading.js CHANGED
@@ -6042,18 +6042,19 @@ var buildLiveRouteCards = ({
6042
6042
  const parsedPrimaryVenue = parseVenue(primaryVenue);
6043
6043
  const isSplit = quoteData.fills.length > 1;
6044
6044
  const primaryWinnerVenue = quoteData.fills.length === 1 ? primaryVenue : void 0;
6045
- const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.every((f) => geoBlockedVenues.has(f.venue));
6045
+ const isPrimaryRouteGeoBlocked = quoteData.fills.length > 0 && quoteData.fills.some((f) => geoBlockedVenues.has(f.venue));
6046
6046
  const primaryCard = primaryResult ? isPrimaryRouteGeoBlocked ? {
6047
6047
  id: "live-route",
6048
6048
  hint: labels.venueUnavailableInRegion,
6049
- kind: "venue",
6050
- label: getTradingVenueLabel(
6049
+ kind: isSplit ? "split" : "venue",
6050
+ label: isSplit ? labels.orderSplitting : getTradingVenueLabel(
6051
6051
  parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0
6052
6052
  ),
6053
6053
  numericValue: tradeSide === "sell" ? quoteData.rawExecCost : quoteData.totalFilled,
6054
6054
  quoteData,
6055
+ rows: isSplit ? mapQuoteDataToRoutingRows(quoteData) : void 0,
6055
6056
  value: primaryResult.value,
6056
- venue: parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
6057
+ venue: isSplit ? void 0 : parsedPrimaryVenue.success ? parsedPrimaryVenue.data : void 0,
6057
6058
  isUnavailable: true
6058
6059
  } : {
6059
6060
  id: "live-route",
package/dist/trading.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  SettlementDetails,
7
7
  parseAmount,
8
8
  parseVenue
9
- } from "./chunk-FS3FGVAG.mjs";
9
+ } from "./chunk-3RG2K7MV.mjs";
10
10
  import {
11
11
  SETTLEMENT_SECTION_ID,
12
12
  Settlement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",