@agg-build/hooks 4.19.1 → 4.21.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.
@@ -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.",
@@ -11,7 +11,7 @@ import {
11
11
  useOnWithdrawalLifecycle,
12
12
  useSyncBalances,
13
13
  useWithdrawManaged
14
- } from "./chunk-ZERDRL6N.mjs";
14
+ } from "./chunk-4J6HZ4AR.mjs";
15
15
 
16
16
  // src/withdraw/use-withdraw-flow.ts
17
17
  import { useCallback, useEffect, useMemo, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  useAggClient
4
- } from "./chunk-ZERDRL6N.mjs";
4
+ } from "./chunk-4J6HZ4AR.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
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.",
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-JWTUIRIW.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-4J6HZ4AR.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.",
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-JWTUIRIW.mjs";
5
5
  import {
6
6
  useWithdrawEstimate,
7
7
  useWithdrawFlow,
8
8
  useWithdrawPreview,
9
9
  useWithdrawalLifecycle
10
- } from "./chunk-YLIXR2QM.mjs";
10
+ } from "./chunk-DWASBGV7.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-4J6HZ4AR.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.",
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-DWASBGV7.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-ZERDRL6N.mjs";
11
+ } from "./chunk-4J6HZ4AR.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.0",
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": {