@agg-build/ui 2.6.0 → 2.7.1

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.
@@ -38,6 +38,15 @@ export declare const getTradingRoutePriceLabel: (value: number) => string;
38
38
  export declare const isQuoteBelowVenueMinimum: (quoteData: SmartRouteResponse | null | undefined) => boolean;
39
39
  export declare const resolvePlaceOrderQuoteStatus: ({ amount, labels, quoteData, selectedMarket, }: ResolvePlaceOrderQuoteStatusParams) => PlaceOrderQuoteStatus;
40
40
  export declare const buildLiveRouteCards: ({ labels, quoteData, tradeSide, eventVenues, geoBlockedVenues: inheritedGeoBlockedVenues, }: BuildLiveRouteCardsParams) => PlaceOrderRouteCard[];
41
+ /**
42
+ * Default route-card pick when the user hasn't selected one (or their selection
43
+ * disappeared from the list). Normally the first available card wins, but when
44
+ * the primary route is blocked on funding (`insufficient_balance`) the panel
45
+ * must not park on it with a blocking alert while an executable solo (status
46
+ * "ok" + real quoteId) sits in the same response — default to that solo so a
47
+ * Kalshi-funded user with no on-chain balance lands on a submittable route.
48
+ */
49
+ export declare const resolveDefaultRouteCardId: (routeCards: PlaceOrderRouteCard[], primaryStatus?: SmartRouteResponse["status"]) => string | null;
41
50
  export declare const clampSellSharesToAvailability: (requestedSellShares: number, availableShares: number) => number;
42
51
  export declare const getRemainingVenueSellShares: (availableShares: number, filledShares: number) => number;
43
52
  export declare const buildVenueSellQuoteRequests: ({ quoteData, requestedSellShares, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
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.6.0",
103
+ "@agg-build/hooks": "^2.7.0",
104
104
  "@agg-build/sdk": "^2.5.1"
105
105
  },
106
106
  "dependencies": {