@agg-build/hooks 4.19.1 → 4.21.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  useAggClient
4
- } from "./chunk-ZERDRL6N.mjs";
4
+ } from "./chunk-QQVNZWRZ.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
@@ -11,7 +11,7 @@ import {
11
11
  useOnWithdrawalLifecycle,
12
12
  useSyncBalances,
13
13
  useWithdrawManaged
14
- } from "./chunk-ZERDRL6N.mjs";
14
+ } from "./chunk-QQVNZWRZ.mjs";
15
15
 
16
16
  // src/withdraw/use-withdraw-flow.ts
17
17
  import { useCallback, useEffect, useMemo, useState } from "react";
@@ -774,6 +774,8 @@ var enUsLabels = {
774
774
  subcategoriesCloseAria: "Close subcategories",
775
775
  loading: (title) => `Loading ${title}`,
776
776
  tabsAria: (title) => `${title} tabs`,
777
+ moreVenuesAria: (count) => `${count} more venues`,
778
+ moreVenuesListAria: "More venues",
777
779
  emptyAria: "No events found",
778
780
  emptyTitle: "No Events Found",
779
781
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -812,9 +814,9 @@ var enUsLabels = {
812
814
  },
813
815
  eventItemDetails: {
814
816
  chartLegend: "Markets on chart",
815
- selectChartMarkets: "Select a line above to show its history",
817
+ selectChartMarkets: "Select an outcome above to show its history",
816
818
  marketHistoryUnavailable: "History unavailable",
817
- comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities \xB7 Click a line to show or hide it`,
819
+ comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities`,
818
820
  comparisonSeriesCount: (shown, total) => `Showing ${shown} of ${total} series`,
819
821
  comparisonSeriesPage: (page, total) => `Page ${page} of ${total}`,
820
822
  comparisonSeriesBudget: (limit) => `Up to ${limit} series are live at once. Change pages to compare others; your selected outcome stays visible.`,
package/dist/deposit.js CHANGED
@@ -659,6 +659,8 @@ var enUsLabels = {
659
659
  subcategoriesCloseAria: "Close subcategories",
660
660
  loading: (title) => `Loading ${title}`,
661
661
  tabsAria: (title) => `${title} tabs`,
662
+ moreVenuesAria: (count) => `${count} more venues`,
663
+ moreVenuesListAria: "More venues",
662
664
  emptyAria: "No events found",
663
665
  emptyTitle: "No Events Found",
664
666
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -697,9 +699,9 @@ var enUsLabels = {
697
699
  },
698
700
  eventItemDetails: {
699
701
  chartLegend: "Markets on chart",
700
- selectChartMarkets: "Select a line above to show its history",
702
+ selectChartMarkets: "Select an outcome above to show its history",
701
703
  marketHistoryUnavailable: "History unavailable",
702
- comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities \xB7 Click a line to show or hide it`,
704
+ comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities`,
703
705
  comparisonSeriesCount: (shown, total) => `Showing ${shown} of ${total} series`,
704
706
  comparisonSeriesPage: (page, total) => `Page ${page} of ${total}`,
705
707
  comparisonSeriesBudget: (limit) => `Up to ${limit} series are live at once. Change pages to compare others; your selected outcome stays visible.`,
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-3PDK5FZ4.mjs";
4
+ } from "./chunk-OAVURSWZ.mjs";
5
5
  import {
6
6
  __async,
7
7
  useAggAuthState,
@@ -11,7 +11,7 @@ import {
11
11
  useDepositAddresses,
12
12
  useOptionalAggClient,
13
13
  useSyncBalances
14
- } from "./chunk-ZERDRL6N.mjs";
14
+ } from "./chunk-QQVNZWRZ.mjs";
15
15
 
16
16
  // src/deposit/normalize-wallet-error.ts
17
17
  function normalizeWalletError(error, supportedChains) {
package/dist/index.d.mts CHANGED
@@ -395,6 +395,8 @@ type VenueMarket = {
395
395
  winner?: boolean | null | undefined;
396
396
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
397
397
  payoutPerShare?: number | null | undefined;
398
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
399
+ refundAtCost?: boolean | undefined;
398
400
  /** Counterpart outcomes on matched sibling markets — only populated
399
401
  * on the parent (queried) market's outcomes. Each entry is a
400
402
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -463,6 +465,8 @@ type VenueMarket = {
463
465
  winner?: boolean | null | undefined;
464
466
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
465
467
  payoutPerShare?: number | null | undefined;
468
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
469
+ refundAtCost?: boolean | undefined;
466
470
  }[] | undefined;
467
471
  volume?: number | null | undefined;
468
472
  venueEvent?: {
@@ -575,6 +579,8 @@ type VenueMarketOutcome = {
575
579
  winner?: boolean | null | undefined;
576
580
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
577
581
  payoutPerShare?: number | null | undefined;
582
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
583
+ refundAtCost?: boolean | undefined;
578
584
  /** Counterpart outcomes on matched sibling markets — only populated on
579
585
  * the parent (queried) market's outcomes. */
580
586
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
@@ -1139,6 +1145,10 @@ interface AggUiLabels {
1139
1145
  subcategoriesCloseAria: string;
1140
1146
  loading: (title: string) => string;
1141
1147
  tabsAria: (title: string) => string;
1148
+ /** Aria label for the "+N" chip that opens the folded venues. */
1149
+ moreVenuesAria: (count: number) => string;
1150
+ /** Aria label for the folded-venue list opened from the "+N" chip. */
1151
+ moreVenuesListAria: string;
1142
1152
  emptyAria: string;
1143
1153
  emptyTitle: string;
1144
1154
  emptyDescription: string;
package/dist/index.d.ts CHANGED
@@ -395,6 +395,8 @@ type VenueMarket = {
395
395
  winner?: boolean | null | undefined;
396
396
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
397
397
  payoutPerShare?: number | null | undefined;
398
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
399
+ refundAtCost?: boolean | undefined;
398
400
  /** Counterpart outcomes on matched sibling markets — only populated
399
401
  * on the parent (queried) market's outcomes. Each entry is a
400
402
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -463,6 +465,8 @@ type VenueMarket = {
463
465
  winner?: boolean | null | undefined;
464
466
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
465
467
  payoutPerShare?: number | null | undefined;
468
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
469
+ refundAtCost?: boolean | undefined;
466
470
  }[] | undefined;
467
471
  volume?: number | null | undefined;
468
472
  venueEvent?: {
@@ -575,6 +579,8 @@ type VenueMarketOutcome = {
575
579
  winner?: boolean | null | undefined;
576
580
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
577
581
  payoutPerShare?: number | null | undefined;
582
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
583
+ refundAtCost?: boolean | undefined;
578
584
  /** Counterpart outcomes on matched sibling markets — only populated on
579
585
  * the parent (queried) market's outcomes. */
580
586
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
@@ -1139,6 +1145,10 @@ interface AggUiLabels {
1139
1145
  subcategoriesCloseAria: string;
1140
1146
  loading: (title: string) => string;
1141
1147
  tabsAria: (title: string) => string;
1148
+ /** Aria label for the "+N" chip that opens the folded venues. */
1149
+ moreVenuesAria: (count: number) => string;
1150
+ /** Aria label for the folded-venue list opened from the "+N" chip. */
1151
+ moreVenuesListAria: string;
1142
1152
  emptyAria: string;
1143
1153
  emptyTitle: string;
1144
1154
  emptyDescription: string;
package/dist/index.js CHANGED
@@ -1144,6 +1144,8 @@ var enUsLabels = {
1144
1144
  subcategoriesCloseAria: "Close subcategories",
1145
1145
  loading: (title) => `Loading ${title}`,
1146
1146
  tabsAria: (title) => `${title} tabs`,
1147
+ moreVenuesAria: (count) => `${count} more venues`,
1148
+ moreVenuesListAria: "More venues",
1147
1149
  emptyAria: "No events found",
1148
1150
  emptyTitle: "No Events Found",
1149
1151
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -1182,9 +1184,9 @@ var enUsLabels = {
1182
1184
  },
1183
1185
  eventItemDetails: {
1184
1186
  chartLegend: "Markets on chart",
1185
- selectChartMarkets: "Select a line above to show its history",
1187
+ selectChartMarkets: "Select an outcome above to show its history",
1186
1188
  marketHistoryUnavailable: "History unavailable",
1187
- comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities \xB7 Click a line to show or hide it`,
1189
+ comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities`,
1188
1190
  comparisonSeriesCount: (shown, total) => `Showing ${shown} of ${total} series`,
1189
1191
  comparisonSeriesPage: (page, total) => `Page ${page} of ${total}`,
1190
1192
  comparisonSeriesBudget: (limit) => `Up to ${limit} series are live at once. Change pages to compare others; your selected outcome stays visible.`,
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-3PDK5FZ4.mjs";
4
+ } from "./chunk-OAVURSWZ.mjs";
5
5
  import {
6
6
  useWithdrawEstimate,
7
7
  useWithdrawFlow,
8
8
  useWithdrawPreview,
9
9
  useWithdrawalLifecycle
10
- } from "./chunk-YLIXR2QM.mjs";
10
+ } from "./chunk-P6SI6GU7.mjs";
11
11
  import {
12
12
  AggAuthContext,
13
13
  AggBalanceProvider,
@@ -98,7 +98,7 @@ import {
98
98
  useSyncBalances,
99
99
  useWithdrawManaged,
100
100
  userActivityQueryKeys
101
- } from "./chunk-ZERDRL6N.mjs";
101
+ } from "./chunk-QQVNZWRZ.mjs";
102
102
 
103
103
  // src/index.ts
104
104
  import { QueryClient as QueryClient4, QueryClientProvider, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
package/dist/withdraw.js CHANGED
@@ -589,6 +589,8 @@ var enUsLabels = {
589
589
  subcategoriesCloseAria: "Close subcategories",
590
590
  loading: (title) => `Loading ${title}`,
591
591
  tabsAria: (title) => `${title} tabs`,
592
+ moreVenuesAria: (count) => `${count} more venues`,
593
+ moreVenuesListAria: "More venues",
592
594
  emptyAria: "No events found",
593
595
  emptyTitle: "No Events Found",
594
596
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -627,9 +629,9 @@ var enUsLabels = {
627
629
  },
628
630
  eventItemDetails: {
629
631
  chartLegend: "Markets on chart",
630
- selectChartMarkets: "Select a line above to show its history",
632
+ selectChartMarkets: "Select an outcome above to show its history",
631
633
  marketHistoryUnavailable: "History unavailable",
632
- comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities \xB7 Click a line to show or hide it`,
634
+ comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities`,
633
635
  comparisonSeriesCount: (shown, total) => `Showing ${shown} of ${total} series`,
634
636
  comparisonSeriesPage: (page, total) => `Page ${page} of ${total}`,
635
637
  comparisonSeriesBudget: (limit) => `Up to ${limit} series are live at once. Change pages to compare others; your selected outcome stays visible.`,
package/dist/withdraw.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  useWithdrawFlow,
4
4
  useWithdrawPreview,
5
5
  useWithdrawalLifecycle
6
- } from "./chunk-YLIXR2QM.mjs";
6
+ } from "./chunk-P6SI6GU7.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-ZERDRL6N.mjs";
11
+ } from "./chunk-QQVNZWRZ.mjs";
12
12
  export {
13
13
  useDepositAddresses,
14
14
  useManagedBalances,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/hooks",
3
- "version": "4.19.1",
3
+ "version": "4.21.1",
4
4
  "description": "React hooks and providers for the AGG prediction market aggregator. Wraps @agg-build/sdk with TanStack Query, shared session state, and live WebSocket data.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -83,7 +83,7 @@
83
83
  "react": "^18.0.0 || ^19.0.0",
84
84
  "viem": "^2.0.0",
85
85
  "wagmi": "^3.0.0 || ^2.0.0",
86
- "@agg-build/sdk": "^4.19.1"
86
+ "@agg-build/sdk": "^4.21.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {