@agg-build/ui 2.2.4 → 2.4.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.
- package/dist/{chunk-6Z5GQ3KL.mjs → chunk-2ET5CXOU.mjs} +8 -1
- package/dist/{chunk-MXM5PM4A.mjs → chunk-3FLLEJFM.mjs} +3 -3
- package/dist/{chunk-7OVSGWI7.mjs → chunk-G5BXCT5Y.mjs} +1 -1
- package/dist/{chunk-SG573ODC.mjs → chunk-G5Y45GIA.mjs} +1 -1
- package/dist/{chunk-44GSDH2Y.mjs → chunk-GUYFQP7L.mjs} +2 -2
- package/dist/{chunk-XJTNK3DS.mjs → chunk-JNYACAEW.mjs} +33 -6
- package/dist/{chunk-3R2CQTNM.mjs → chunk-MDO3NMXP.mjs} +2 -2
- package/dist/events.mjs +3 -3
- package/dist/index.js +35 -2
- package/dist/index.mjs +7 -7
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +35 -2
- package/dist/pages.mjs +6 -6
- package/dist/primitives.js +6 -0
- package/dist/primitives.mjs +1 -1
- package/dist/trading.mjs +4 -4
- package/package.json +3 -3
|
@@ -5203,7 +5203,8 @@ import {
|
|
|
5203
5203
|
useLiveOutcomePrices,
|
|
5204
5204
|
useMidpoints,
|
|
5205
5205
|
useSdkUiConfig as useSdkUiConfig10,
|
|
5206
|
-
useSearch
|
|
5206
|
+
useSearch,
|
|
5207
|
+
MarketStatus as MarketStatus2
|
|
5207
5208
|
} from "@agg-build/hooks";
|
|
5208
5209
|
import {
|
|
5209
5210
|
useCallback as useCallback3,
|
|
@@ -7386,6 +7387,12 @@ var Search = ({
|
|
|
7386
7387
|
q: shouldFetchResults ? debouncedSearchValue : "",
|
|
7387
7388
|
type: "events",
|
|
7388
7389
|
categoryIds,
|
|
7390
|
+
// Server-side open-only: without it a query whose top results are
|
|
7391
|
+
// resolved history (recurring series) returns a full page that
|
|
7392
|
+
// filterOpenEvents below then empties — rendering "no results" for
|
|
7393
|
+
// markets that exist. filterOpenEvents stays as the residual guard for
|
|
7394
|
+
// events with no open child markets, which the server doesn't check.
|
|
7395
|
+
status: [MarketStatus2.open],
|
|
7389
7396
|
limit: limit != null ? limit : DEFAULT_SEARCH_LIMIT,
|
|
7390
7397
|
enabled: shouldFetchResults
|
|
7391
7398
|
});
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
getTradingValueLabel,
|
|
9
9
|
getTradingVenueLabel,
|
|
10
10
|
resolveOrderEligibilityMessage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-G5Y45GIA.mjs";
|
|
12
12
|
import {
|
|
13
13
|
GeoBlockBanner,
|
|
14
14
|
subscribeAggDepositNotification
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-G5BXCT5Y.mjs";
|
|
16
16
|
import {
|
|
17
17
|
AGG_TERMS_OF_SERVICE_URL,
|
|
18
18
|
Button,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
resolveResolvedOutcomeLabel,
|
|
45
45
|
skeletonViews,
|
|
46
46
|
useOptionalToast
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2ET5CXOU.mjs";
|
|
48
48
|
|
|
49
49
|
// src/trading/types.ts
|
|
50
50
|
import { Venue, enumGuard, isFiniteNonNeg, safeParse } from "@agg-build/sdk";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
dispatchAggDepositNotification
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G5BXCT5Y.mjs";
|
|
5
5
|
import {
|
|
6
6
|
BestPricesIcon,
|
|
7
7
|
BoltIcon,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
shortenAddress,
|
|
42
42
|
useOptionalToast,
|
|
43
43
|
venueLogoLabels
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2ET5CXOU.mjs";
|
|
45
45
|
|
|
46
46
|
// src/deposit/index.tsx
|
|
47
47
|
import { useAggAuthState, useAggUiConfig, useDepositAddresses, useLabels as useLabels11 } from "@agg-build/hooks";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isErrorWithStatus,
|
|
11
11
|
useEventListTabs,
|
|
12
12
|
useEventListTabsHeaderOverflow
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MDO3NMXP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
16
16
|
PlaceOrder,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
WITHDRAW_MODAL_OPEN_EVENT,
|
|
19
19
|
useClaimWinnings,
|
|
20
20
|
useResolvedMarketClaim
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3FLLEJFM.mjs";
|
|
22
22
|
import {
|
|
23
23
|
getDisplayOutcomePrice
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-G5Y45GIA.mjs";
|
|
25
25
|
import {
|
|
26
26
|
AggErrorBoundary,
|
|
27
27
|
Button,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
resolveTabVenus,
|
|
53
53
|
shortenAddress,
|
|
54
54
|
sortCategoriesForNavigation
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2ET5CXOU.mjs";
|
|
56
56
|
|
|
57
57
|
// src/pages/home/index.tsx
|
|
58
58
|
import {
|
|
@@ -785,7 +785,28 @@ var resolveDisplayGroupFamilyKey = (market) => {
|
|
|
785
785
|
}
|
|
786
786
|
return `${period}|${sportsMarketType}|${marketCategory}|${toTrimmedString(market.question)}|${outcomeKey}|${market.id}`;
|
|
787
787
|
};
|
|
788
|
-
var
|
|
788
|
+
var TOTAL_STAT_UNITS = [
|
|
789
|
+
[/\bcorners?\b/i, "Corners"],
|
|
790
|
+
[/\bcards?\b|\bbookings?\b/i, "Cards"],
|
|
791
|
+
[/\bgoals?\b/i, "Goals"],
|
|
792
|
+
[/\bpoints?\b/i, "Points"],
|
|
793
|
+
[/\bruns?\b/i, "Runs"],
|
|
794
|
+
[/\brounds?\b/i, "Rounds"],
|
|
795
|
+
[/\bgames?\b/i, "Games"],
|
|
796
|
+
[/\bsets?\b/i, "Sets"],
|
|
797
|
+
[/\bmaps?\b/i, "Maps"]
|
|
798
|
+
];
|
|
799
|
+
var resolveTotalStatUnit = (markets, marketCategory) => {
|
|
800
|
+
if (marketCategory === "corners") return "Corners";
|
|
801
|
+
for (const market of markets) {
|
|
802
|
+
const question = toTrimmedString(market.question);
|
|
803
|
+
for (const [pattern, unit] of TOTAL_STAT_UNITS) {
|
|
804
|
+
if (pattern.test(question)) return unit;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
return null;
|
|
808
|
+
};
|
|
809
|
+
var resolveDisplayGroupTitle = (market, groupMarkets = [market]) => {
|
|
789
810
|
const sportsMarketType = normalizeSportsMarketType(market.sportsMarketType);
|
|
790
811
|
const question = toTrimmedString(market.question);
|
|
791
812
|
if (isBinarySportsMoneylineMarket(market)) return "Moneyline";
|
|
@@ -794,6 +815,12 @@ var resolveDisplayGroupTitle = (market) => {
|
|
|
794
815
|
return sportsMarketType != null ? sportsMarketType : market.id;
|
|
795
816
|
}
|
|
796
817
|
if (sportsMarketType === "total") {
|
|
818
|
+
const lineFamily = resolveSportsLineFamilyKey(market);
|
|
819
|
+
const marketCategory = normalizeSportsMarketCategory(market.marketCategory);
|
|
820
|
+
if (/_tot(_corners)?(_\dh)?$/i.test(lineFamily)) {
|
|
821
|
+
const unit = resolveTotalStatUnit(groupMarkets, marketCategory);
|
|
822
|
+
return unit ? `Total ${unit}` : "Totals";
|
|
823
|
+
}
|
|
797
824
|
const base = stripLineValueFromQuestion(question).replace(/o\s*\/\s*u/gi, " ").replace(/\btotals?\b/gi, " ").replace(/\s+/g, " ").trim();
|
|
798
825
|
return base ? `${base} Totals` : "Totals";
|
|
799
826
|
}
|
|
@@ -833,7 +860,7 @@ var buildSportsMarketDisplayGroups = (markets) => {
|
|
|
833
860
|
const sectionRank = (_a2 = firstMarket == null ? void 0 : firstMarket.sectionRank) != null ? _a2 : Number.MAX_SAFE_INTEGER;
|
|
834
861
|
return {
|
|
835
862
|
id,
|
|
836
|
-
title: resolveDisplayGroupTitle(firstMarket),
|
|
863
|
+
title: resolveDisplayGroupTitle(firstMarket, orderedMarkets),
|
|
837
864
|
questionKey: sanitizeFamilyValue(toTrimmedString(firstMarket == null ? void 0 : firstMarket.question)),
|
|
838
865
|
sportsMarketType,
|
|
839
866
|
marketCategory,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveUnifiedOrderBookEntries,
|
|
24
24
|
sortOutcomeSelectorOutcomes,
|
|
25
25
|
useEventTradingContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-G5Y45GIA.mjs";
|
|
27
27
|
import {
|
|
28
28
|
AutocompleteSelect,
|
|
29
29
|
Badge,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
sortCategoriesForNavigation,
|
|
76
76
|
sortOutcomes,
|
|
77
77
|
splitEventsByLifecycle
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-2ET5CXOU.mjs";
|
|
79
79
|
|
|
80
80
|
// src/events/item/index.tsx
|
|
81
81
|
import {
|
package/dist/events.mjs
CHANGED
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
orderbookRowLimitDefault,
|
|
17
17
|
resolveEventDetailsSyncKey,
|
|
18
18
|
useCenterOrderbookSpread
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MDO3NMXP.mjs";
|
|
20
20
|
import {
|
|
21
21
|
formatProbabilityCents,
|
|
22
22
|
resolveOrderBookRows,
|
|
23
23
|
resolveUnifiedOrderBookEntries
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-G5Y45GIA.mjs";
|
|
25
|
+
import "./chunk-2ET5CXOU.mjs";
|
|
26
26
|
export {
|
|
27
27
|
EventList,
|
|
28
28
|
EventListItem,
|
package/dist/index.js
CHANGED
|
@@ -7593,6 +7593,12 @@ var Search = ({
|
|
|
7593
7593
|
q: shouldFetchResults ? debouncedSearchValue : "",
|
|
7594
7594
|
type: "events",
|
|
7595
7595
|
categoryIds,
|
|
7596
|
+
// Server-side open-only: without it a query whose top results are
|
|
7597
|
+
// resolved history (recurring series) returns a full page that
|
|
7598
|
+
// filterOpenEvents below then empties — rendering "no results" for
|
|
7599
|
+
// markets that exist. filterOpenEvents stays as the residual guard for
|
|
7600
|
+
// events with no open child markets, which the server doesn't check.
|
|
7601
|
+
status: [import_hooks27.MarketStatus.open],
|
|
7596
7602
|
limit: limit != null ? limit : DEFAULT_SEARCH_LIMIT,
|
|
7597
7603
|
enabled: shouldFetchResults
|
|
7598
7604
|
});
|
|
@@ -23595,7 +23601,28 @@ var resolveDisplayGroupFamilyKey = (market) => {
|
|
|
23595
23601
|
}
|
|
23596
23602
|
return `${period}|${sportsMarketType}|${marketCategory}|${toTrimmedString(market.question)}|${outcomeKey}|${market.id}`;
|
|
23597
23603
|
};
|
|
23598
|
-
var
|
|
23604
|
+
var TOTAL_STAT_UNITS = [
|
|
23605
|
+
[/\bcorners?\b/i, "Corners"],
|
|
23606
|
+
[/\bcards?\b|\bbookings?\b/i, "Cards"],
|
|
23607
|
+
[/\bgoals?\b/i, "Goals"],
|
|
23608
|
+
[/\bpoints?\b/i, "Points"],
|
|
23609
|
+
[/\bruns?\b/i, "Runs"],
|
|
23610
|
+
[/\brounds?\b/i, "Rounds"],
|
|
23611
|
+
[/\bgames?\b/i, "Games"],
|
|
23612
|
+
[/\bsets?\b/i, "Sets"],
|
|
23613
|
+
[/\bmaps?\b/i, "Maps"]
|
|
23614
|
+
];
|
|
23615
|
+
var resolveTotalStatUnit = (markets, marketCategory) => {
|
|
23616
|
+
if (marketCategory === "corners") return "Corners";
|
|
23617
|
+
for (const market of markets) {
|
|
23618
|
+
const question = toTrimmedString(market.question);
|
|
23619
|
+
for (const [pattern, unit] of TOTAL_STAT_UNITS) {
|
|
23620
|
+
if (pattern.test(question)) return unit;
|
|
23621
|
+
}
|
|
23622
|
+
}
|
|
23623
|
+
return null;
|
|
23624
|
+
};
|
|
23625
|
+
var resolveDisplayGroupTitle = (market, groupMarkets = [market]) => {
|
|
23599
23626
|
const sportsMarketType = normalizeSportsMarketType(market.sportsMarketType);
|
|
23600
23627
|
const question = toTrimmedString(market.question);
|
|
23601
23628
|
if (isBinarySportsMoneylineMarket(market)) return "Moneyline";
|
|
@@ -23604,6 +23631,12 @@ var resolveDisplayGroupTitle = (market) => {
|
|
|
23604
23631
|
return sportsMarketType != null ? sportsMarketType : market.id;
|
|
23605
23632
|
}
|
|
23606
23633
|
if (sportsMarketType === "total") {
|
|
23634
|
+
const lineFamily = resolveSportsLineFamilyKey(market);
|
|
23635
|
+
const marketCategory = normalizeSportsMarketCategory(market.marketCategory);
|
|
23636
|
+
if (/_tot(_corners)?(_\dh)?$/i.test(lineFamily)) {
|
|
23637
|
+
const unit = resolveTotalStatUnit(groupMarkets, marketCategory);
|
|
23638
|
+
return unit ? `Total ${unit}` : "Totals";
|
|
23639
|
+
}
|
|
23607
23640
|
const base = stripLineValueFromQuestion(question).replace(/o\s*\/\s*u/gi, " ").replace(/\btotals?\b/gi, " ").replace(/\s+/g, " ").trim();
|
|
23608
23641
|
return base ? `${base} Totals` : "Totals";
|
|
23609
23642
|
}
|
|
@@ -23643,7 +23676,7 @@ var buildSportsMarketDisplayGroups = (markets) => {
|
|
|
23643
23676
|
const sectionRank = (_a2 = firstMarket == null ? void 0 : firstMarket.sectionRank) != null ? _a2 : Number.MAX_SAFE_INTEGER;
|
|
23644
23677
|
return {
|
|
23645
23678
|
id,
|
|
23646
|
-
title: resolveDisplayGroupTitle(firstMarket),
|
|
23679
|
+
title: resolveDisplayGroupTitle(firstMarket, orderedMarkets),
|
|
23647
23680
|
questionKey: sanitizeFamilyValue(toTrimmedString(firstMarket == null ? void 0 : firstMarket.question)),
|
|
23648
23681
|
sportsMarketType,
|
|
23649
23682
|
marketCategory,
|
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-JNYACAEW.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-MDO3NMXP.mjs";
|
|
32
32
|
import {
|
|
33
33
|
CARD_NETWORK_OPTIONS,
|
|
34
34
|
ConnectAccountsStep,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
buildTerminalSummary,
|
|
45
45
|
clearPendingCardSession,
|
|
46
46
|
getPendingCardSession
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GUYFQP7L.mjs";
|
|
48
48
|
import {
|
|
49
49
|
AggNotificationEventsProvider,
|
|
50
50
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
requestAggWithdrawModalOpen,
|
|
60
60
|
useClaimWinnings,
|
|
61
61
|
useResolvedMarketClaim
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-3FLLEJFM.mjs";
|
|
63
63
|
import {
|
|
64
64
|
SETTLEMENT_SECTION_ID,
|
|
65
65
|
Settlement,
|
|
@@ -77,10 +77,10 @@ import {
|
|
|
77
77
|
resolveOrderBookRows,
|
|
78
78
|
resolveUnifiedOrderBookEntries,
|
|
79
79
|
useEventTradingContext
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-G5Y45GIA.mjs";
|
|
81
81
|
import {
|
|
82
82
|
GeoBlockBanner
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-G5BXCT5Y.mjs";
|
|
84
84
|
import {
|
|
85
85
|
AGG_DEFAULT_URL,
|
|
86
86
|
AGG_DOCS_URL,
|
|
@@ -201,7 +201,7 @@ import {
|
|
|
201
201
|
useOptionalToast,
|
|
202
202
|
useToast,
|
|
203
203
|
venueLogoNames
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-2ET5CXOU.mjs";
|
|
205
205
|
|
|
206
206
|
// src/notifications/agg-toast-provider.tsx
|
|
207
207
|
import { jsx } from "react/jsx-runtime";
|
package/dist/modals.mjs
CHANGED
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
buildTerminalSummary,
|
|
15
15
|
clearPendingCardSession,
|
|
16
16
|
getPendingCardSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GUYFQP7L.mjs";
|
|
18
18
|
import {
|
|
19
19
|
GeoBlockBanner
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-G5BXCT5Y.mjs";
|
|
21
|
+
import "./chunk-2ET5CXOU.mjs";
|
|
22
22
|
export {
|
|
23
23
|
CARD_NETWORK_OPTIONS,
|
|
24
24
|
ConnectAccountsStep,
|
package/dist/pages.js
CHANGED
|
@@ -6823,6 +6823,12 @@ var Search = ({
|
|
|
6823
6823
|
q: shouldFetchResults ? debouncedSearchValue : "",
|
|
6824
6824
|
type: "events",
|
|
6825
6825
|
categoryIds,
|
|
6826
|
+
// Server-side open-only: without it a query whose top results are
|
|
6827
|
+
// resolved history (recurring series) returns a full page that
|
|
6828
|
+
// filterOpenEvents below then empties — rendering "no results" for
|
|
6829
|
+
// markets that exist. filterOpenEvents stays as the residual guard for
|
|
6830
|
+
// events with no open child markets, which the server doesn't check.
|
|
6831
|
+
status: [import_hooks27.MarketStatus.open],
|
|
6826
6832
|
limit: limit != null ? limit : DEFAULT_SEARCH_LIMIT,
|
|
6827
6833
|
enabled: shouldFetchResults
|
|
6828
6834
|
});
|
|
@@ -21406,7 +21412,28 @@ var resolveDisplayGroupFamilyKey = (market) => {
|
|
|
21406
21412
|
}
|
|
21407
21413
|
return `${period}|${sportsMarketType}|${marketCategory}|${toTrimmedString(market.question)}|${outcomeKey}|${market.id}`;
|
|
21408
21414
|
};
|
|
21409
|
-
var
|
|
21415
|
+
var TOTAL_STAT_UNITS = [
|
|
21416
|
+
[/\bcorners?\b/i, "Corners"],
|
|
21417
|
+
[/\bcards?\b|\bbookings?\b/i, "Cards"],
|
|
21418
|
+
[/\bgoals?\b/i, "Goals"],
|
|
21419
|
+
[/\bpoints?\b/i, "Points"],
|
|
21420
|
+
[/\bruns?\b/i, "Runs"],
|
|
21421
|
+
[/\brounds?\b/i, "Rounds"],
|
|
21422
|
+
[/\bgames?\b/i, "Games"],
|
|
21423
|
+
[/\bsets?\b/i, "Sets"],
|
|
21424
|
+
[/\bmaps?\b/i, "Maps"]
|
|
21425
|
+
];
|
|
21426
|
+
var resolveTotalStatUnit = (markets, marketCategory) => {
|
|
21427
|
+
if (marketCategory === "corners") return "Corners";
|
|
21428
|
+
for (const market of markets) {
|
|
21429
|
+
const question = toTrimmedString(market.question);
|
|
21430
|
+
for (const [pattern, unit] of TOTAL_STAT_UNITS) {
|
|
21431
|
+
if (pattern.test(question)) return unit;
|
|
21432
|
+
}
|
|
21433
|
+
}
|
|
21434
|
+
return null;
|
|
21435
|
+
};
|
|
21436
|
+
var resolveDisplayGroupTitle = (market, groupMarkets = [market]) => {
|
|
21410
21437
|
const sportsMarketType = normalizeSportsMarketType(market.sportsMarketType);
|
|
21411
21438
|
const question = toTrimmedString(market.question);
|
|
21412
21439
|
if (isBinarySportsMoneylineMarket(market)) return "Moneyline";
|
|
@@ -21415,6 +21442,12 @@ var resolveDisplayGroupTitle = (market) => {
|
|
|
21415
21442
|
return sportsMarketType != null ? sportsMarketType : market.id;
|
|
21416
21443
|
}
|
|
21417
21444
|
if (sportsMarketType === "total") {
|
|
21445
|
+
const lineFamily = resolveSportsLineFamilyKey(market);
|
|
21446
|
+
const marketCategory = normalizeSportsMarketCategory(market.marketCategory);
|
|
21447
|
+
if (/_tot(_corners)?(_\dh)?$/i.test(lineFamily)) {
|
|
21448
|
+
const unit = resolveTotalStatUnit(groupMarkets, marketCategory);
|
|
21449
|
+
return unit ? `Total ${unit}` : "Totals";
|
|
21450
|
+
}
|
|
21418
21451
|
const base = stripLineValueFromQuestion(question).replace(/o\s*\/\s*u/gi, " ").replace(/\btotals?\b/gi, " ").replace(/\s+/g, " ").trim();
|
|
21419
21452
|
return base ? `${base} Totals` : "Totals";
|
|
21420
21453
|
}
|
|
@@ -21454,7 +21487,7 @@ var buildSportsMarketDisplayGroups = (markets) => {
|
|
|
21454
21487
|
const sectionRank = (_a2 = firstMarket == null ? void 0 : firstMarket.sectionRank) != null ? _a2 : Number.MAX_SAFE_INTEGER;
|
|
21455
21488
|
return {
|
|
21456
21489
|
id,
|
|
21457
|
-
title: resolveDisplayGroupTitle(firstMarket),
|
|
21490
|
+
title: resolveDisplayGroupTitle(firstMarket, orderedMarkets),
|
|
21458
21491
|
questionKey: sanitizeFamilyValue(toTrimmedString(firstMarket == null ? void 0 : firstMarket.question)),
|
|
21459
21492
|
sportsMarketType,
|
|
21460
21493
|
marketCategory,
|
package/dist/pages.mjs
CHANGED
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
UserProfilePage,
|
|
9
9
|
buildAggTxExplorerHref,
|
|
10
10
|
useHomePageModals
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-JNYACAEW.mjs";
|
|
12
|
+
import "./chunk-MDO3NMXP.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
15
15
|
WITHDRAW_MODAL_OPEN_EVENT,
|
|
16
16
|
requestAggDepositModalOpen,
|
|
17
17
|
requestAggWithdrawModalOpen
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-3FLLEJFM.mjs";
|
|
19
|
+
import "./chunk-G5Y45GIA.mjs";
|
|
20
|
+
import "./chunk-G5BXCT5Y.mjs";
|
|
21
|
+
import "./chunk-2ET5CXOU.mjs";
|
|
22
22
|
export {
|
|
23
23
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
24
24
|
EventMarketPage,
|
package/dist/primitives.js
CHANGED
|
@@ -7173,6 +7173,12 @@ var Search = ({
|
|
|
7173
7173
|
q: shouldFetchResults ? debouncedSearchValue : "",
|
|
7174
7174
|
type: "events",
|
|
7175
7175
|
categoryIds,
|
|
7176
|
+
// Server-side open-only: without it a query whose top results are
|
|
7177
|
+
// resolved history (recurring series) returns a full page that
|
|
7178
|
+
// filterOpenEvents below then empties — rendering "no results" for
|
|
7179
|
+
// markets that exist. filterOpenEvents stays as the residual guard for
|
|
7180
|
+
// events with no open child markets, which the server doesn't check.
|
|
7181
|
+
status: [import_hooks27.MarketStatus.open],
|
|
7176
7182
|
limit: limit != null ? limit : DEFAULT_SEARCH_LIMIT,
|
|
7177
7183
|
enabled: shouldFetchResults
|
|
7178
7184
|
});
|
package/dist/primitives.mjs
CHANGED
package/dist/trading.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
parseVenue,
|
|
9
9
|
useClaimWinnings,
|
|
10
10
|
useResolvedMarketClaim
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3FLLEJFM.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SETTLEMENT_SECTION_ID,
|
|
14
14
|
Settlement,
|
|
@@ -23,9 +23,9 @@ import {
|
|
|
23
23
|
getTradingValueLabel,
|
|
24
24
|
getTradingVenueLabel,
|
|
25
25
|
useEventTradingContext
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-G5Y45GIA.mjs";
|
|
27
|
+
import "./chunk-G5BXCT5Y.mjs";
|
|
28
|
+
import "./chunk-2ET5CXOU.mjs";
|
|
29
29
|
export {
|
|
30
30
|
PlaceOrder,
|
|
31
31
|
PlaceOrderFailureView,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
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,8 +100,8 @@
|
|
|
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/
|
|
104
|
-
"@agg-build/
|
|
103
|
+
"@agg-build/hooks": "^2.3.0",
|
|
104
|
+
"@agg-build/sdk": "^2.3.0"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@number-flow/react": "^0.6.0",
|