@agg-build/hooks 2.4.4 → 2.5.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.
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-KVMLKTGS.mjs";
4
+ } from "./chunk-DPY6RZNW.mjs";
5
5
  import {
6
6
  useWithdrawEstimate,
7
7
  useWithdrawFlow,
8
8
  useWithdrawPreview,
9
9
  useWithdrawalLifecycle
10
- } from "./chunk-RMGSLCL3.mjs";
10
+ } from "./chunk-PK2JGXQV.mjs";
11
11
  import {
12
12
  AggAuthContext,
13
13
  AggBalanceProvider,
@@ -71,6 +71,7 @@ import {
71
71
  useAggUiConfig,
72
72
  useAggWebSocket,
73
73
  useAggWebSocketConnectionState,
74
+ useCancelManagedOrder,
74
75
  useDepositAddresses,
75
76
  useEventListState,
76
77
  useEventTradingContext,
@@ -84,6 +85,7 @@ import {
84
85
  useOnRedeemEvent,
85
86
  useOnWithdrawalLifecycle,
86
87
  useOptionalAggClient,
88
+ usePlaceLimitOrder,
87
89
  usePositions,
88
90
  useQuoteManaged,
89
91
  useRedeem,
@@ -95,7 +97,7 @@ import {
95
97
  useSyncBalances,
96
98
  useWithdrawManaged,
97
99
  userActivityQueryKeys
98
- } from "./chunk-STOMNDHO.mjs";
100
+ } from "./chunk-5NJBAP42.mjs";
99
101
 
100
102
  // src/index.ts
101
103
  import { QueryClient as QueryClient4, QueryClientProvider, useQueryClient as useQueryClient3 } from "@tanstack/react-query";
@@ -3132,6 +3134,7 @@ export {
3132
3134
  useAppConfig,
3133
3135
  useArbFeed,
3134
3136
  useCachedAppConfig,
3137
+ useCancelManagedOrder,
3135
3138
  useCategories,
3136
3139
  useCategoryChildren,
3137
3140
  useDebouncedValue,
@@ -3171,6 +3174,7 @@ export {
3171
3174
  useOrderBook,
3172
3175
  useOrderbookQuote,
3173
3176
  useOrders,
3177
+ usePlaceLimitOrder,
3174
3178
  usePositions,
3175
3179
  useQueryClient3 as useQueryClient,
3176
3180
  useQuoteManaged,
package/dist/withdraw.js CHANGED
@@ -330,8 +330,14 @@ var enUsLabels = {
330
330
  categoryTabsAria: "Home page category tabs"
331
331
  },
332
332
  userProfile: {
333
+ tabs: {
334
+ positions: "Positions",
335
+ openOrders: "Open orders",
336
+ activity: "Activity"
337
+ },
333
338
  balance: {
334
339
  availableBalance: "Available Balance",
340
+ reservedForOpenOrders: (amount) => `${amount} reserved for open orders`,
335
341
  balanceByNetwork: "Balance by network",
336
342
  paperModeNetwork: "Paper",
337
343
  paperModeWarning: "Paper mode is enabled. These are simulated funds for paper trading.",
@@ -414,6 +420,25 @@ var enUsLabels = {
414
420
  avgPrefix: "avg",
415
421
  nowPrefix: "now",
416
422
  finalPrefix: "final"
423
+ },
424
+ openOrders: {
425
+ marketHeader: "Market",
426
+ limitPriceHeader: "Limit price",
427
+ filledHeader: "Filled",
428
+ totalHeader: "Total",
429
+ filledShort: "Filled",
430
+ totalShort: "Total",
431
+ expirationHeader: "Expiration",
432
+ goodTilCanceled: "Good 'til canceled",
433
+ expired: "Expired",
434
+ cancel: "Cancel",
435
+ cancelOrderAria: (orderId) => `Cancel order ${orderId}`,
436
+ loading: "Loading open orders",
437
+ loadingMore: "Loading more open orders",
438
+ errorTitle: "Unable to load open orders",
439
+ errorDescription: "Please try again in a moment.",
440
+ emptyTitle: "No open orders",
441
+ emptyDescription: "Your open limit orders will appear here."
417
442
  }
418
443
  },
419
444
  eventList: {
@@ -555,6 +580,7 @@ var enUsLabels = {
555
580
  trading: {
556
581
  settlementSection: "Settlement",
557
582
  settlementDifferencesTitle: "Key differences across venues",
583
+ settlementFullRulesTitle: "Full rules by venue",
558
584
  settlementCriticalDifferenceLabel: "Critical",
559
585
  settlementValueUnavailable: "Not provided",
560
586
  settlementLoading: "Loading settlement",
@@ -611,6 +637,7 @@ var enUsLabels = {
611
637
  orderDisabledNoOutcome: "Select an outcome to place an order.",
612
638
  orderDisabledNoEvent: "No event selected.",
613
639
  insufficientBalance: "Insufficient balance",
640
+ lowLiquidityWarning: "This market has low liquidity, which may impact execution price for larger orders.",
614
641
  refreshQuote: "Refresh Quote",
615
642
  confirmOrder: "Confirm Order",
616
643
  withdrawSubmitted: "Withdrawal submitted",
@@ -657,6 +684,29 @@ var enUsLabels = {
657
684
  kycSuccessDone: "Done",
658
685
  outcome: (label) => `Outcome: ${label}`,
659
686
  smartRouting: "Smart Routing",
687
+ orderTypeMarket: "Market",
688
+ orderTypeLimit: "Limit",
689
+ orderTypeAria: "Order type",
690
+ limitPrice: "Limit price",
691
+ limitPriceInputAria: "Limit price in cents",
692
+ limitPriceInvalid: "Limit price must be greater than 0 and less than 100.",
693
+ limitPriceDecreaseAria: "Decrease limit price",
694
+ limitPriceIncreaseAria: "Increase limit price",
695
+ expiration: "Expiration",
696
+ expirationGoodTilCanceled: "Good 'til canceled",
697
+ expirationFiveMinutes: "5m",
698
+ expirationOneHour: "1h",
699
+ expirationEndOfDay: "End of day (EST)",
700
+ expirationCustom: "Custom",
701
+ expirationMenuAria: "Choose expiration",
702
+ expirationOptions: "Expiration options",
703
+ expirationDateAria: "Limit order expiration date",
704
+ expirationStartTime: "Start time",
705
+ expirationStartTimeHint: "24-hour format",
706
+ expirationCancel: "Cancel",
707
+ expirationApply: "Apply",
708
+ limitOrderPlacedTitle: "Limit order placed",
709
+ limitOrderPlacedDescription: "Your limit order has been submitted.",
660
710
  orderSplitting: "Order Splitting",
661
711
  splitOrderDescription: "We split your order for the best price:",
662
712
  viewAllRoutes: (count) => `View all (${count})`,
@@ -922,6 +972,12 @@ var enUsLabels = {
922
972
  const venue = venueLabel ? ` on ${venueLabel}` : "";
923
973
  return `${action}${amount}${price}${venue}`.trim();
924
974
  },
975
+ cancelledTitle: "Order canceled",
976
+ cancelledMessage: "Your open order was canceled.",
977
+ cancelPendingTitle: "Cancellation submitted",
978
+ cancelPendingMessage: "Your cancellation request is being processed.",
979
+ cancelFailedTitle: "Cancellation failed",
980
+ cancelFailedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your open order could not be canceled. Please try again.",
925
981
  failedTitle: "Order failed",
926
982
  failedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your order could not be completed. Please try again."
927
983
  },
@@ -1041,6 +1097,7 @@ var defaultAggUiConfig = {
1041
1097
  enableGradients: false,
1042
1098
  enableVenueEventDiscoveryFilters: false,
1043
1099
  enableNotifications: true,
1100
+ showLimitOrders: false,
1044
1101
  showSportsMarkets: false
1045
1102
  },
1046
1103
  market: {
package/dist/withdraw.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  useWithdrawFlow,
4
4
  useWithdrawPreview,
5
5
  useWithdrawalLifecycle
6
- } from "./chunk-RMGSLCL3.mjs";
6
+ } from "./chunk-PK2JGXQV.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-STOMNDHO.mjs";
11
+ } from "./chunk-5NJBAP42.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": "2.4.4",
3
+ "version": "2.5.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": "^2.3.0"
86
+ "@agg-build/sdk": "^2.5.1"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {