@agg-build/ui 2.4.9 → 2.5.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.
- package/dist/{chunk-CXSIXL7M.mjs → chunk-AELMIG74.mjs} +735 -263
- package/dist/chunk-AHQA3B7D.mjs +947 -0
- package/dist/{chunk-TEBAR55W.mjs → chunk-EDQ64EKO.mjs} +339 -1084
- package/dist/{chunk-GWRFSQQK.mjs → chunk-FAU2VOL6.mjs} +1594 -700
- package/dist/{chunk-PTNFXXOV.mjs → chunk-FMYYPNZZ.mjs} +904 -788
- package/dist/{chunk-UH3DUTMG.mjs → chunk-JQKJDSTW.mjs} +1 -1
- package/dist/{chunk-I4X5UNCT.mjs → chunk-XAG432PJ.mjs} +12 -6
- package/dist/events.js +1077 -999
- package/dist/events.mjs +3 -3
- package/dist/index.js +16527 -14881
- package/dist/index.mjs +56 -18
- package/dist/modals.js +1292 -1084
- package/dist/modals.mjs +10 -10
- package/dist/pages.js +4973 -2627
- package/dist/pages.mjs +6 -6
- package/dist/primitives.js +905 -788
- package/dist/primitives.mjs +3 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +3383 -1508
- package/dist/trading.mjs +6 -4
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +2 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +2 -0
- package/dist/types/auth/connect-button-view/index.d.mts +1 -1
- package/dist/types/auth/connect-button-view/index.d.ts +1 -1
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.mts +1 -1
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.ts +1 -1
- package/dist/types/pages/event-market/sports-event-market.utils.d.mts +0 -19
- package/dist/types/pages/event-market/sports-event-market.utils.d.ts +0 -19
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +2 -1
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +2 -1
- package/dist/types/pages/user-profile/components/open-order-row.d.mts +10 -1
- package/dist/types/pages/user-profile/components/open-order-row.d.ts +10 -1
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +4 -1
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +4 -1
- package/dist/types/pages/user-profile/components/positions-value-card.d.mts +4 -2
- package/dist/types/pages/user-profile/components/positions-value-card.d.ts +4 -2
- package/dist/types/pages/user-profile/index.d.mts +2 -2
- package/dist/types/pages/user-profile/index.d.ts +2 -2
- package/dist/types/pages/user-profile/user-profile.types.d.mts +12 -0
- package/dist/types/pages/user-profile/user-profile.types.d.ts +12 -0
- package/dist/types/primitives/calendar/index.d.mts +8 -0
- package/dist/types/primitives/calendar/index.d.ts +8 -0
- package/dist/types/primitives/icon/registry.d.mts +3 -0
- package/dist/types/primitives/icon/registry.d.ts +3 -0
- package/dist/types/primitives/icon/svg/calendar.d.mts +2 -0
- package/dist/types/primitives/icon/svg/calendar.d.ts +2 -0
- package/dist/types/primitives/icon/svg/minus.d.mts +2 -0
- package/dist/types/primitives/icon/svg/minus.d.ts +2 -0
- package/dist/types/primitives/icon/svg/plus.d.mts +2 -0
- package/dist/types/primitives/icon/svg/plus.d.ts +2 -0
- package/dist/types/primitives/index.d.mts +1 -0
- package/dist/types/primitives/index.d.ts +1 -0
- package/dist/types/profile/index.d.mts +1 -1
- package/dist/types/profile/index.d.ts +1 -1
- package/dist/types/profile/profile-modal.types.d.mts +6 -0
- package/dist/types/profile/profile-modal.types.d.ts +6 -0
- package/dist/types/profile/tabs/trading-access-tab.d.mts +3 -1
- package/dist/types/profile/tabs/trading-access-tab.d.ts +3 -1
- package/dist/types/trading/fund-kalshi-modal.d.mts +8 -0
- package/dist/types/trading/fund-kalshi-modal.d.ts +8 -0
- package/dist/types/trading/index.d.mts +1 -0
- package/dist/types/trading/index.d.ts +1 -0
- package/dist/types/trading/place-order/index.d.mts +1 -1
- package/dist/types/trading/place-order/index.d.ts +1 -1
- package/dist/types/trading/place-order/index.place-order.types.d.mts +13 -1
- package/dist/types/trading/place-order/index.place-order.types.d.ts +13 -1
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +18 -1
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +18 -1
- package/package.json +7 -4
- package/dist/chunk-JVRTJQPZ.mjs +0 -59
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
resolveUnifiedOrderBookEntries,
|
|
25
25
|
sortOutcomeSelectorOutcomes,
|
|
26
26
|
useEventTradingContext
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JQKJDSTW.mjs";
|
|
28
28
|
import {
|
|
29
29
|
AutocompleteSelect,
|
|
30
30
|
Badge,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
sortCategoriesForNavigation,
|
|
77
77
|
sortOutcomes,
|
|
78
78
|
splitEventsByLifecycle
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-FMYYPNZZ.mjs";
|
|
80
80
|
|
|
81
81
|
// src/events/item/index.tsx
|
|
82
82
|
import {
|
|
@@ -5245,7 +5245,7 @@ CategorySidebar.displayName = "CategorySidebar";
|
|
|
5245
5245
|
|
|
5246
5246
|
// src/events/list/event-list-tabs.tsx
|
|
5247
5247
|
import { getVenueAvailabilityState, useAppConfig, useGeoBlock, useLabels as useLabels8 } from "@agg-build/hooks";
|
|
5248
|
-
import {
|
|
5248
|
+
import { Venue as Venue3 } from "@agg-build/sdk";
|
|
5249
5249
|
import { useCallback as useCallback3, useEffect as useEffect7, useMemo as useMemo9, useRef as useRef7, useState as useState6 } from "react";
|
|
5250
5250
|
|
|
5251
5251
|
// src/events/list/event-list.constants.ts
|
|
@@ -5270,6 +5270,12 @@ var getDefaultEventListTabs = (labels) => {
|
|
|
5270
5270
|
venueLogo: Venue2.polymarket,
|
|
5271
5271
|
venues: [Venue2.polymarket]
|
|
5272
5272
|
},
|
|
5273
|
+
{
|
|
5274
|
+
value: Venue2.kalshi,
|
|
5275
|
+
label: labels.venues.kalshi,
|
|
5276
|
+
venueLogo: Venue2.kalshi,
|
|
5277
|
+
venues: [Venue2.kalshi]
|
|
5278
|
+
},
|
|
5273
5279
|
{
|
|
5274
5280
|
value: Venue2.limitless,
|
|
5275
5281
|
label: labels.venues.limitless,
|
|
@@ -5327,16 +5333,16 @@ var renderTabIcon = (tab, isActive) => {
|
|
|
5327
5333
|
};
|
|
5328
5334
|
var useEventListTabs = (tabs) => {
|
|
5329
5335
|
const labels = useLabels8();
|
|
5330
|
-
const { disabledVenues } = useAppConfig();
|
|
5336
|
+
const { disabledVenues, isLoading: isAppConfigLoading } = useAppConfig();
|
|
5331
5337
|
const { isLocationBlocked } = useGeoBlock();
|
|
5332
5338
|
return useMemo9(() => {
|
|
5333
5339
|
const baseTabs = tabs != null ? tabs : getDefaultEventListTabs(labels);
|
|
5334
5340
|
return baseTabs.flatMap((tab) => {
|
|
5335
5341
|
if (!tab.venueLogo) return [tab];
|
|
5336
|
-
if (!isVenueActive(tab.venueLogo)) return [];
|
|
5337
5342
|
const availabilityState = getVenueAvailabilityState({
|
|
5338
5343
|
venueId: tab.venueLogo,
|
|
5339
5344
|
disabledVenues,
|
|
5345
|
+
isConfigLoading: isAppConfigLoading && tab.venueLogo === Venue3.kalshi,
|
|
5340
5346
|
isLocationBlocked
|
|
5341
5347
|
});
|
|
5342
5348
|
if (availabilityState === "hidden") return [];
|
|
@@ -5348,7 +5354,7 @@ var useEventListTabs = (tabs) => {
|
|
|
5348
5354
|
})
|
|
5349
5355
|
];
|
|
5350
5356
|
});
|
|
5351
|
-
}, [tabs, labels, disabledVenues, isLocationBlocked]);
|
|
5357
|
+
}, [tabs, labels, disabledVenues, isAppConfigLoading, isLocationBlocked]);
|
|
5352
5358
|
};
|
|
5353
5359
|
var EventListTabs = ({
|
|
5354
5360
|
tabs,
|