@agg-build/ui 2.7.1 → 2.7.2
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.
- package/dist/{chunk-KFNTS2TV.mjs → chunk-7R2SMMAG.mjs} +11 -4
- package/dist/{chunk-BVNXMHSL.mjs → chunk-EKUH3265.mjs} +4 -1
- package/dist/events.js +4 -1
- package/dist/events.mjs +1 -1
- package/dist/index.js +14 -4
- package/dist/index.mjs +2 -2
- package/dist/pages.js +14 -4
- package/dist/pages.mjs +2 -2
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isErrorWithStatus,
|
|
11
11
|
useEventListTabs,
|
|
12
12
|
useEventListTabsHeaderOverflow
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EKUH3265.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
16
16
|
PlaceOrder,
|
|
@@ -790,14 +790,21 @@ var resolveSportsSectionMarkets = ({
|
|
|
790
790
|
if (tab.kind !== "game_lines") return filteredSectionMarkets;
|
|
791
791
|
const dedupeEventMarketsOfType = (type) => {
|
|
792
792
|
const dedupedMarkets = [];
|
|
793
|
-
const
|
|
793
|
+
const keptIndexByKey = /* @__PURE__ */ new Map();
|
|
794
794
|
for (const market of eventMarkets) {
|
|
795
795
|
if (normalizeSportsMarketType(market.sportsMarketType) !== type || resolveMarketSectionTabKey(market) !== "game_lines") {
|
|
796
796
|
continue;
|
|
797
797
|
}
|
|
798
798
|
const key = resolveSportsMarketAggKey(market) || market.id;
|
|
799
|
-
|
|
800
|
-
|
|
799
|
+
const keptIndex = keptIndexByKey.get(key);
|
|
800
|
+
if (keptIndex !== void 0) {
|
|
801
|
+
const kept = dedupedMarkets[keptIndex];
|
|
802
|
+
if (!hasTeamTitledOutcomes(kept) && hasTeamTitledOutcomes(market)) {
|
|
803
|
+
dedupedMarkets[keptIndex] = market;
|
|
804
|
+
}
|
|
805
|
+
continue;
|
|
806
|
+
}
|
|
807
|
+
keptIndexByKey.set(key, dedupedMarkets.length);
|
|
801
808
|
dedupedMarkets.push(market);
|
|
802
809
|
}
|
|
803
810
|
return dropDecomposedLegsMergedIntoSingle(dedupedMarkets);
|
|
@@ -4911,7 +4911,10 @@ var MarketDetailsList = ({
|
|
|
4911
4911
|
status: MarketStatus.open,
|
|
4912
4912
|
// Keep in lockstep with useEnrichedVenueEvent: limit is part of the React
|
|
4913
4913
|
// Query key, so a mismatch would fork the shared cache into two requests.
|
|
4914
|
-
limit
|
|
4914
|
+
// fetchAll drains every page — events can exceed any single-page limit
|
|
4915
|
+
// (e.g. 80 open markets on one staging event).
|
|
4916
|
+
limit: 100,
|
|
4917
|
+
fetchAll: true
|
|
4915
4918
|
// No explicit sortBy: event-scoped /venue-markets sorts by the event's
|
|
4916
4919
|
// type-aware order (structureOrderBy), matching the home-card top-3 and the
|
|
4917
4920
|
// markets-under-an-event ordering. Passing sortBy here would override it.
|
package/dist/events.js
CHANGED
|
@@ -13709,7 +13709,10 @@ var MarketDetailsList = ({
|
|
|
13709
13709
|
status: import_hooks43.MarketStatus.open,
|
|
13710
13710
|
// Keep in lockstep with useEnrichedVenueEvent: limit is part of the React
|
|
13711
13711
|
// Query key, so a mismatch would fork the shared cache into two requests.
|
|
13712
|
-
limit
|
|
13712
|
+
// fetchAll drains every page — events can exceed any single-page limit
|
|
13713
|
+
// (e.g. 80 open markets on one staging event).
|
|
13714
|
+
limit: 100,
|
|
13715
|
+
fetchAll: true
|
|
13713
13716
|
// No explicit sortBy: event-scoped /venue-markets sorts by the event's
|
|
13714
13717
|
// type-aware order (structureOrderBy), matching the home-card top-3 and the
|
|
13715
13718
|
// markets-under-an-event ordering. Passing sortBy here would override it.
|
package/dist/events.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -17651,7 +17651,10 @@ var MarketDetailsList = ({
|
|
|
17651
17651
|
status: import_hooks51.MarketStatus.open,
|
|
17652
17652
|
// Keep in lockstep with useEnrichedVenueEvent: limit is part of the React
|
|
17653
17653
|
// Query key, so a mismatch would fork the shared cache into two requests.
|
|
17654
|
-
limit
|
|
17654
|
+
// fetchAll drains every page — events can exceed any single-page limit
|
|
17655
|
+
// (e.g. 80 open markets on one staging event).
|
|
17656
|
+
limit: 100,
|
|
17657
|
+
fetchAll: true
|
|
17655
17658
|
// No explicit sortBy: event-scoped /venue-markets sorts by the event's
|
|
17656
17659
|
// type-aware order (structureOrderBy), matching the home-card top-3 and the
|
|
17657
17660
|
// markets-under-an-event ordering. Passing sortBy here would override it.
|
|
@@ -26073,14 +26076,21 @@ var resolveSportsSectionMarkets = ({
|
|
|
26073
26076
|
if (tab.kind !== "game_lines") return filteredSectionMarkets;
|
|
26074
26077
|
const dedupeEventMarketsOfType = (type) => {
|
|
26075
26078
|
const dedupedMarkets = [];
|
|
26076
|
-
const
|
|
26079
|
+
const keptIndexByKey = /* @__PURE__ */ new Map();
|
|
26077
26080
|
for (const market of eventMarkets) {
|
|
26078
26081
|
if (normalizeSportsMarketType(market.sportsMarketType) !== type || resolveMarketSectionTabKey(market) !== "game_lines") {
|
|
26079
26082
|
continue;
|
|
26080
26083
|
}
|
|
26081
26084
|
const key = resolveSportsMarketAggKey(market) || market.id;
|
|
26082
|
-
|
|
26083
|
-
|
|
26085
|
+
const keptIndex = keptIndexByKey.get(key);
|
|
26086
|
+
if (keptIndex !== void 0) {
|
|
26087
|
+
const kept = dedupedMarkets[keptIndex];
|
|
26088
|
+
if (!hasTeamTitledOutcomes(kept) && hasTeamTitledOutcomes(market)) {
|
|
26089
|
+
dedupedMarkets[keptIndex] = market;
|
|
26090
|
+
}
|
|
26091
|
+
continue;
|
|
26092
|
+
}
|
|
26093
|
+
keptIndexByKey.set(key, dedupedMarkets.length);
|
|
26084
26094
|
dedupedMarkets.push(market);
|
|
26085
26095
|
}
|
|
26086
26096
|
return dropDecomposedLegsMergedIntoSingle(dedupedMarkets);
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
UserProfilePage,
|
|
12
12
|
buildAggTxExplorerHref,
|
|
13
13
|
useHomePageModals
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7R2SMMAG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
EventList,
|
|
17
17
|
EventListItem,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
orderbookRowLimitDefault,
|
|
29
29
|
resolveEventDetailsSyncKey,
|
|
30
30
|
useCenterOrderbookSpread
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EKUH3265.mjs";
|
|
32
32
|
import {
|
|
33
33
|
CARD_NETWORK_OPTIONS,
|
|
34
34
|
DepositModal,
|
package/dist/pages.js
CHANGED
|
@@ -16216,7 +16216,10 @@ var MarketDetailsList = ({
|
|
|
16216
16216
|
status: import_hooks49.MarketStatus.open,
|
|
16217
16217
|
// Keep in lockstep with useEnrichedVenueEvent: limit is part of the React
|
|
16218
16218
|
// Query key, so a mismatch would fork the shared cache into two requests.
|
|
16219
|
-
limit
|
|
16219
|
+
// fetchAll drains every page — events can exceed any single-page limit
|
|
16220
|
+
// (e.g. 80 open markets on one staging event).
|
|
16221
|
+
limit: 100,
|
|
16222
|
+
fetchAll: true
|
|
16220
16223
|
// No explicit sortBy: event-scoped /venue-markets sorts by the event's
|
|
16221
16224
|
// type-aware order (structureOrderBy), matching the home-card top-3 and the
|
|
16222
16225
|
// markets-under-an-event ordering. Passing sortBy here would override it.
|
|
@@ -23852,14 +23855,21 @@ var resolveSportsSectionMarkets = ({
|
|
|
23852
23855
|
if (tab.kind !== "game_lines") return filteredSectionMarkets;
|
|
23853
23856
|
const dedupeEventMarketsOfType = (type) => {
|
|
23854
23857
|
const dedupedMarkets = [];
|
|
23855
|
-
const
|
|
23858
|
+
const keptIndexByKey = /* @__PURE__ */ new Map();
|
|
23856
23859
|
for (const market of eventMarkets) {
|
|
23857
23860
|
if (normalizeSportsMarketType(market.sportsMarketType) !== type || resolveMarketSectionTabKey(market) !== "game_lines") {
|
|
23858
23861
|
continue;
|
|
23859
23862
|
}
|
|
23860
23863
|
const key = resolveSportsMarketAggKey(market) || market.id;
|
|
23861
|
-
|
|
23862
|
-
|
|
23864
|
+
const keptIndex = keptIndexByKey.get(key);
|
|
23865
|
+
if (keptIndex !== void 0) {
|
|
23866
|
+
const kept = dedupedMarkets[keptIndex];
|
|
23867
|
+
if (!hasTeamTitledOutcomes(kept) && hasTeamTitledOutcomes(market)) {
|
|
23868
|
+
dedupedMarkets[keptIndex] = market;
|
|
23869
|
+
}
|
|
23870
|
+
continue;
|
|
23871
|
+
}
|
|
23872
|
+
keptIndexByKey.set(key, dedupedMarkets.length);
|
|
23863
23873
|
dedupedMarkets.push(market);
|
|
23864
23874
|
}
|
|
23865
23875
|
return dropDecomposedLegsMergedIntoSingle(dedupedMarkets);
|
package/dist/pages.mjs
CHANGED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
UserProfilePage,
|
|
9
9
|
buildAggTxExplorerHref,
|
|
10
10
|
useHomePageModals
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7R2SMMAG.mjs";
|
|
12
|
+
import "./chunk-EKUH3265.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
15
15
|
WITHDRAW_MODAL_OPEN_EVENT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
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",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"liveline": "^0.0.7",
|
|
101
101
|
"react": "^18.0.0 || ^19.0.0",
|
|
102
102
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
103
|
-
"@agg-build/hooks": "^2.7.
|
|
103
|
+
"@agg-build/hooks": "^2.7.2",
|
|
104
104
|
"@agg-build/sdk": "^2.5.1"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|