@vue-solana/vue 2.1.0 → 2.3.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.
Files changed (67) hide show
  1. package/README.md +177 -0
  2. package/dist/index.cjs +9 -4
  3. package/dist/index.d.cts +5 -3
  4. package/dist/index.d.mts +5 -3
  5. package/dist/index.d.ts +5 -3
  6. package/dist/index.mjs +6 -4
  7. package/dist/shared/{vue.DImwKTwJ.mjs → vue.B8VvC8d2.mjs} +18 -20
  8. package/dist/shared/{vue.B8ub540p.mjs → vue.BDNOyiGZ.mjs} +7 -7
  9. package/dist/shared/vue.BFbIDI66.cjs +121 -0
  10. package/dist/shared/vue.BSfiHqwj.mjs +34 -0
  11. package/dist/shared/{vue.B4-LEdSE.cjs → vue.BfGt94sg.cjs} +20 -2
  12. package/dist/shared/{vue.C5FVoEZT.mjs → vue.C4hGlFC8.mjs} +21 -3
  13. package/dist/shared/vue.CTqPbvz3.cjs +36 -0
  14. package/dist/shared/{vue.CogzzQXM.mjs → vue.CbJFnho-.mjs} +4 -4
  15. package/dist/shared/vue.DT4vCUa6.mjs +118 -0
  16. package/dist/shared/{vue.DtCbCcPd.cjs → vue.DxM45azl.cjs} +4 -4
  17. package/dist/shared/{vue.B8pLQ8P4.cjs → vue.ZuUCEEab.cjs} +18 -20
  18. package/dist/shared/{vue.BVj9lWBK.cjs → vue.l3UCdN7z.cjs} +7 -7
  19. package/dist/swr.cjs +3 -3
  20. package/dist/swr.mjs +3 -3
  21. package/dist/useAirdrop.cjs +14 -0
  22. package/dist/useAirdrop.d.cts +25 -0
  23. package/dist/useAirdrop.d.mts +25 -0
  24. package/dist/useAirdrop.d.ts +25 -0
  25. package/dist/useAirdrop.mjs +8 -0
  26. package/dist/useConnection.d.cts +3 -2
  27. package/dist/useConnection.d.mts +3 -2
  28. package/dist/useConnection.d.ts +3 -2
  29. package/dist/usePlanTransaction.cjs +1 -1
  30. package/dist/usePlanTransaction.d.cts +4 -0
  31. package/dist/usePlanTransaction.d.mts +4 -0
  32. package/dist/usePlanTransaction.d.ts +4 -0
  33. package/dist/usePlanTransaction.mjs +1 -1
  34. package/dist/usePlanTransactions.cjs +1 -1
  35. package/dist/usePlanTransactions.mjs +1 -1
  36. package/dist/useRequest.cjs +1 -1
  37. package/dist/useRequest.d.cts +22 -6
  38. package/dist/useRequest.d.mts +22 -6
  39. package/dist/useRequest.d.ts +22 -6
  40. package/dist/useRequest.mjs +1 -1
  41. package/dist/useRpc.d.cts +3 -2
  42. package/dist/useRpc.d.mts +3 -2
  43. package/dist/useRpc.d.ts +3 -2
  44. package/dist/useSendTransaction.cjs +14 -0
  45. package/dist/useSendTransaction.d.cts +46 -0
  46. package/dist/useSendTransaction.d.mts +46 -0
  47. package/dist/useSendTransaction.d.ts +46 -0
  48. package/dist/useSendTransaction.mjs +7 -0
  49. package/dist/useSendTransactions.cjs +13 -0
  50. package/dist/useSendTransactions.d.cts +4 -0
  51. package/dist/useSendTransactions.d.mts +4 -0
  52. package/dist/useSendTransactions.d.ts +4 -0
  53. package/dist/useSendTransactions.mjs +7 -0
  54. package/dist/useSolanaClient.d.cts +3 -2
  55. package/dist/useSolanaClient.d.mts +3 -2
  56. package/dist/useSolanaClient.d.ts +3 -2
  57. package/dist/useSubscription.cjs +1 -1
  58. package/dist/useSubscription.d.cts +15 -3
  59. package/dist/useSubscription.d.mts +15 -3
  60. package/dist/useSubscription.d.ts +15 -3
  61. package/dist/useSubscription.mjs +1 -1
  62. package/dist/useTrackedData.cjs +1 -1
  63. package/dist/useTrackedData.d.cts +15 -3
  64. package/dist/useTrackedData.d.mts +15 -3
  65. package/dist/useTrackedData.d.ts +15 -3
  66. package/dist/useTrackedData.mjs +1 -1
  67. package/package.json +17 -2
@@ -0,0 +1,25 @@
1
+ import { Address, Lamports, Signature } from '@vue-solana/core/kit';
2
+ import { UseActionReturn } from './useAction.mjs';
3
+ import 'vue';
4
+
5
+ /**
6
+ * Airdrops SOL into an account. Each `dispatch(address, amount)` runs the
7
+ * airdrop with a fresh `AbortSignal`; calling `dispatch` again while a call is
8
+ * in flight aborts the previous one.
9
+ *
10
+ * Requires the client to expose an `airdrop` capability, typically installed
11
+ * with the RPC airdrop plugin, e.g.
12
+ * `createClient().use(solanaRpcConnection({ ... })).use(rpcAirdrop())` from
13
+ * `@solana/kit-plugin-rpc`. The capability is commonly available on test
14
+ * networks (devnet, testnet) and local validators.
15
+ *
16
+ * Some implementations (e.g. LiteSVM) update balances directly without sending
17
+ * a transaction, in which case the resolved `data` is `undefined` rather than
18
+ * a {@link Signature}.
19
+ */
20
+ declare function useAirdrop(): UseActionReturn<[
21
+ address: Address,
22
+ amount: Lamports
23
+ ], Signature | undefined>;
24
+
25
+ export { useAirdrop };
@@ -0,0 +1,25 @@
1
+ import { Address, Lamports, Signature } from '@vue-solana/core/kit';
2
+ import { UseActionReturn } from './useAction.js';
3
+ import 'vue';
4
+
5
+ /**
6
+ * Airdrops SOL into an account. Each `dispatch(address, amount)` runs the
7
+ * airdrop with a fresh `AbortSignal`; calling `dispatch` again while a call is
8
+ * in flight aborts the previous one.
9
+ *
10
+ * Requires the client to expose an `airdrop` capability, typically installed
11
+ * with the RPC airdrop plugin, e.g.
12
+ * `createClient().use(solanaRpcConnection({ ... })).use(rpcAirdrop())` from
13
+ * `@solana/kit-plugin-rpc`. The capability is commonly available on test
14
+ * networks (devnet, testnet) and local validators.
15
+ *
16
+ * Some implementations (e.g. LiteSVM) update balances directly without sending
17
+ * a transaction, in which case the resolved `data` is `undefined` rather than
18
+ * a {@link Signature}.
19
+ */
20
+ declare function useAirdrop(): UseActionReturn<[
21
+ address: Address,
22
+ amount: Lamports
23
+ ], Signature | undefined>;
24
+
25
+ export { useAirdrop };
@@ -0,0 +1,8 @@
1
+ export { u as useAirdrop } from './shared/vue.BSfiHqwj.mjs';
2
+ import './shared/vue.DYk0Xfr3.mjs';
3
+ import '@vue-solana/core/action';
4
+ import 'vue';
5
+ import './shared/vue.B8LptjZP.mjs';
6
+ import './shared/vue.Mxc8w6Qk.mjs';
7
+ import './shared/vue.CQh3AUE8.mjs';
8
+ import './shared/vue.D_P5SqqD.mjs';
@@ -4,9 +4,10 @@ import * as _solana_kit from '@solana/kit';
4
4
  * @deprecated Use `useSolanaClient()` which returns the Kit client instead of
5
5
  * the legacy web3-compat Connection.
6
6
  */
7
- declare function useConnection(): _solana_kit.Client<_solana_kit.ExtendedClient<object, {
7
+ declare function useConnection(): _solana_kit.Client<{
8
8
  rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
9
9
  rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
10
- }>>;
10
+ airdrop: (address: _solana_kit.Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
11
+ }>;
11
12
 
12
13
  export { useConnection };
@@ -4,9 +4,10 @@ import * as _solana_kit from '@solana/kit';
4
4
  * @deprecated Use `useSolanaClient()` which returns the Kit client instead of
5
5
  * the legacy web3-compat Connection.
6
6
  */
7
- declare function useConnection(): _solana_kit.Client<_solana_kit.ExtendedClient<object, {
7
+ declare function useConnection(): _solana_kit.Client<{
8
8
  rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
9
9
  rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
10
- }>>;
10
+ airdrop: (address: _solana_kit.Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
11
+ }>;
11
12
 
12
13
  export { useConnection };
@@ -4,9 +4,10 @@ import * as _solana_kit from '@solana/kit';
4
4
  * @deprecated Use `useSolanaClient()` which returns the Kit client instead of
5
5
  * the legacy web3-compat Connection.
6
6
  */
7
- declare function useConnection(): _solana_kit.Client<_solana_kit.ExtendedClient<object, {
7
+ declare function useConnection(): _solana_kit.Client<{
8
8
  rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
9
9
  rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
10
- }>>;
10
+ airdrop: (address: _solana_kit.Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
11
+ }>;
11
12
 
12
13
  export { useConnection };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const usePlanTransaction = require('./shared/vue.B4-LEdSE.cjs');
3
+ const usePlanTransaction = require('./shared/vue.BfGt94sg.cjs');
4
4
  require('@vue-solana/core/errors');
5
5
  require('vue');
6
6
  require('./shared/vue.BY0qpgYr.cjs');
@@ -12,6 +12,10 @@ interface PlanTransactionConfig {
12
12
  * (e.g. `rpcTransactionPlanner` from `@solana/kit-plugin-rpc`).
13
13
  *
14
14
  * Rejects with a clear capability error when the client does not plan.
15
+ *
16
+ * Calling `execute` while a prior execution is in flight aborts the prior call;
17
+ * the superseded attempt rejects, so check its `error.cause` to tell it apart
18
+ * from a real failure.
15
19
  */
16
20
  declare function usePlanTransaction(): {
17
21
  transactionMessage: vue.ShallowRef<TransactionMessage | null, TransactionMessage | null>;
@@ -12,6 +12,10 @@ interface PlanTransactionConfig {
12
12
  * (e.g. `rpcTransactionPlanner` from `@solana/kit-plugin-rpc`).
13
13
  *
14
14
  * Rejects with a clear capability error when the client does not plan.
15
+ *
16
+ * Calling `execute` while a prior execution is in flight aborts the prior call;
17
+ * the superseded attempt rejects, so check its `error.cause` to tell it apart
18
+ * from a real failure.
15
19
  */
16
20
  declare function usePlanTransaction(): {
17
21
  transactionMessage: vue.ShallowRef<TransactionMessage | null, TransactionMessage | null>;
@@ -12,6 +12,10 @@ interface PlanTransactionConfig {
12
12
  * (e.g. `rpcTransactionPlanner` from `@solana/kit-plugin-rpc`).
13
13
  *
14
14
  * Rejects with a clear capability error when the client does not plan.
15
+ *
16
+ * Calling `execute` while a prior execution is in flight aborts the prior call;
17
+ * the superseded attempt rejects, so check its `error.cause` to tell it apart
18
+ * from a real failure.
15
19
  */
16
20
  declare function usePlanTransaction(): {
17
21
  transactionMessage: vue.ShallowRef<TransactionMessage | null, TransactionMessage | null>;
@@ -1,4 +1,4 @@
1
- export { u as usePlanTransaction, a as usePlanTransactions } from './shared/vue.C5FVoEZT.mjs';
1
+ export { u as usePlanTransaction, a as usePlanTransactions } from './shared/vue.C4hGlFC8.mjs';
2
2
  import '@vue-solana/core/errors';
3
3
  import 'vue';
4
4
  import './shared/vue.B8LptjZP.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const usePlanTransaction = require('./shared/vue.B4-LEdSE.cjs');
3
+ const usePlanTransaction = require('./shared/vue.BfGt94sg.cjs');
4
4
  require('@vue-solana/core/errors');
5
5
  require('vue');
6
6
  require('./shared/vue.BY0qpgYr.cjs');
@@ -1,4 +1,4 @@
1
- export { a as usePlanTransactions } from './shared/vue.C5FVoEZT.mjs';
1
+ export { a as usePlanTransactions } from './shared/vue.C4hGlFC8.mjs';
2
2
  import '@vue-solana/core/errors';
3
3
  import 'vue';
4
4
  import './shared/vue.B8LptjZP.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const useRequest = require('./shared/vue.B8pLQ8P4.cjs');
3
+ const useRequest = require('./shared/vue.ZuUCEEab.cjs');
4
4
  require('@vue-solana/core/action');
5
5
  require('@vue-solana/core/kit');
6
6
  require('@vue-solana/core/errors');
@@ -26,14 +26,26 @@ interface UseRequestOptions {
26
26
  /**
27
27
  * Returns a caller-provided `AbortSignal` per attempt (for example
28
28
  * `AbortSignal.timeout(5_000)`), composed with the internal per-attempt
29
- * signal. Aborting it fails the attempt without touching other state.
29
+ * signal. Aborting it fails the attempt without touching other state. Read
30
+ * fresh from the latest render, so inline closures need no `useCallback`.
30
31
  */
31
32
  getAbortSignal?: (attempt: number) => AbortSignal | null | undefined;
32
33
  }
34
+ /** Per-call abort overrides for `refresh()`. */
35
+ type UseRequestRefresherOptions = {
36
+ /**
37
+ * Applies only this signal to the attempt, bypassing `getAbortSignal`.
38
+ * Passing `undefined` (or an empty options object) applies no caller signal
39
+ * for that attempt; call `refresh()` with no argument to keep the
40
+ * `getAbortSignal` factory behavior.
41
+ */
42
+ abortSignal?: AbortSignal;
43
+ };
33
44
  interface UseRequestReturn<TResult> {
34
45
  data: ComputedRef<TResult | undefined>;
35
46
  error: ComputedRef<SolanaError | null>;
36
- refresh: () => Promise<TResult | undefined>;
47
+ /** Re-fires manually. `refresh({ abortSignal })` overrides `getAbortSignal` for that attempt. */
48
+ refresh: (options?: UseRequestRefresherOptions) => Promise<TResult | undefined>;
37
49
  status: ComputedRef<UseRequestStatus>;
38
50
  }
39
51
  /**
@@ -47,11 +59,15 @@ interface UseRequestReturn<TResult> {
47
59
  * called outside one).
48
60
  * - Passing a ref/computed source re-fires whenever the source identity
49
61
  * changes; a `null` source clears state and reports `disabled`.
50
- * - `refresh()` re-fires manually and resolves with the attempt result.
51
- * - `getAbortSignal` attaches per-attempt cancellation (timeouts, kill
52
- * switches) on top of the internal per-attempt signal.
62
+ * - `refresh()` re-fires manually and resolves with the attempt result;
63
+ * `refresh({ abortSignal })` overrides the caller signal for that attempt.
64
+ * - `getAbortSignal` (read fresh per render, so inline closures are fine)
65
+ * attaches per-attempt cancellation on top of the internal per-attempt
66
+ * signal.
67
+ * - Passing `null` as the source, or unmounting, cancels in-flight work and
68
+ * reports `disabled`.
53
69
  */
54
70
  declare function useRequest<TResult>(source: UseRequestSource<TResult>, options?: UseRequestOptions): UseRequestReturn<TResult>;
55
71
 
56
72
  export { useRequest };
57
- export type { UseRequestOptions, UseRequestReturn, UseRequestSource, UseRequestStatus };
73
+ export type { UseRequestOptions, UseRequestRefresherOptions, UseRequestReturn, UseRequestSource, UseRequestStatus };
@@ -26,14 +26,26 @@ interface UseRequestOptions {
26
26
  /**
27
27
  * Returns a caller-provided `AbortSignal` per attempt (for example
28
28
  * `AbortSignal.timeout(5_000)`), composed with the internal per-attempt
29
- * signal. Aborting it fails the attempt without touching other state.
29
+ * signal. Aborting it fails the attempt without touching other state. Read
30
+ * fresh from the latest render, so inline closures need no `useCallback`.
30
31
  */
31
32
  getAbortSignal?: (attempt: number) => AbortSignal | null | undefined;
32
33
  }
34
+ /** Per-call abort overrides for `refresh()`. */
35
+ type UseRequestRefresherOptions = {
36
+ /**
37
+ * Applies only this signal to the attempt, bypassing `getAbortSignal`.
38
+ * Passing `undefined` (or an empty options object) applies no caller signal
39
+ * for that attempt; call `refresh()` with no argument to keep the
40
+ * `getAbortSignal` factory behavior.
41
+ */
42
+ abortSignal?: AbortSignal;
43
+ };
33
44
  interface UseRequestReturn<TResult> {
34
45
  data: ComputedRef<TResult | undefined>;
35
46
  error: ComputedRef<SolanaError | null>;
36
- refresh: () => Promise<TResult | undefined>;
47
+ /** Re-fires manually. `refresh({ abortSignal })` overrides `getAbortSignal` for that attempt. */
48
+ refresh: (options?: UseRequestRefresherOptions) => Promise<TResult | undefined>;
37
49
  status: ComputedRef<UseRequestStatus>;
38
50
  }
39
51
  /**
@@ -47,11 +59,15 @@ interface UseRequestReturn<TResult> {
47
59
  * called outside one).
48
60
  * - Passing a ref/computed source re-fires whenever the source identity
49
61
  * changes; a `null` source clears state and reports `disabled`.
50
- * - `refresh()` re-fires manually and resolves with the attempt result.
51
- * - `getAbortSignal` attaches per-attempt cancellation (timeouts, kill
52
- * switches) on top of the internal per-attempt signal.
62
+ * - `refresh()` re-fires manually and resolves with the attempt result;
63
+ * `refresh({ abortSignal })` overrides the caller signal for that attempt.
64
+ * - `getAbortSignal` (read fresh per render, so inline closures are fine)
65
+ * attaches per-attempt cancellation on top of the internal per-attempt
66
+ * signal.
67
+ * - Passing `null` as the source, or unmounting, cancels in-flight work and
68
+ * reports `disabled`.
53
69
  */
54
70
  declare function useRequest<TResult>(source: UseRequestSource<TResult>, options?: UseRequestOptions): UseRequestReturn<TResult>;
55
71
 
56
72
  export { useRequest };
57
- export type { UseRequestOptions, UseRequestReturn, UseRequestSource, UseRequestStatus };
73
+ export type { UseRequestOptions, UseRequestRefresherOptions, UseRequestReturn, UseRequestSource, UseRequestStatus };
@@ -26,14 +26,26 @@ interface UseRequestOptions {
26
26
  /**
27
27
  * Returns a caller-provided `AbortSignal` per attempt (for example
28
28
  * `AbortSignal.timeout(5_000)`), composed with the internal per-attempt
29
- * signal. Aborting it fails the attempt without touching other state.
29
+ * signal. Aborting it fails the attempt without touching other state. Read
30
+ * fresh from the latest render, so inline closures need no `useCallback`.
30
31
  */
31
32
  getAbortSignal?: (attempt: number) => AbortSignal | null | undefined;
32
33
  }
34
+ /** Per-call abort overrides for `refresh()`. */
35
+ type UseRequestRefresherOptions = {
36
+ /**
37
+ * Applies only this signal to the attempt, bypassing `getAbortSignal`.
38
+ * Passing `undefined` (or an empty options object) applies no caller signal
39
+ * for that attempt; call `refresh()` with no argument to keep the
40
+ * `getAbortSignal` factory behavior.
41
+ */
42
+ abortSignal?: AbortSignal;
43
+ };
33
44
  interface UseRequestReturn<TResult> {
34
45
  data: ComputedRef<TResult | undefined>;
35
46
  error: ComputedRef<SolanaError | null>;
36
- refresh: () => Promise<TResult | undefined>;
47
+ /** Re-fires manually. `refresh({ abortSignal })` overrides `getAbortSignal` for that attempt. */
48
+ refresh: (options?: UseRequestRefresherOptions) => Promise<TResult | undefined>;
37
49
  status: ComputedRef<UseRequestStatus>;
38
50
  }
39
51
  /**
@@ -47,11 +59,15 @@ interface UseRequestReturn<TResult> {
47
59
  * called outside one).
48
60
  * - Passing a ref/computed source re-fires whenever the source identity
49
61
  * changes; a `null` source clears state and reports `disabled`.
50
- * - `refresh()` re-fires manually and resolves with the attempt result.
51
- * - `getAbortSignal` attaches per-attempt cancellation (timeouts, kill
52
- * switches) on top of the internal per-attempt signal.
62
+ * - `refresh()` re-fires manually and resolves with the attempt result;
63
+ * `refresh({ abortSignal })` overrides the caller signal for that attempt.
64
+ * - `getAbortSignal` (read fresh per render, so inline closures are fine)
65
+ * attaches per-attempt cancellation on top of the internal per-attempt
66
+ * signal.
67
+ * - Passing `null` as the source, or unmounting, cancels in-flight work and
68
+ * reports `disabled`.
53
69
  */
54
70
  declare function useRequest<TResult>(source: UseRequestSource<TResult>, options?: UseRequestOptions): UseRequestReturn<TResult>;
55
71
 
56
72
  export { useRequest };
57
- export type { UseRequestOptions, UseRequestReturn, UseRequestSource, UseRequestStatus };
73
+ export type { UseRequestOptions, UseRequestRefresherOptions, UseRequestReturn, UseRequestSource, UseRequestStatus };
@@ -1,4 +1,4 @@
1
- export { u as useRequest } from './shared/vue.DImwKTwJ.mjs';
1
+ export { u as useRequest } from './shared/vue.B8VvC8d2.mjs';
2
2
  import '@vue-solana/core/action';
3
3
  import '@vue-solana/core/kit';
4
4
  import '@vue-solana/core/errors';
package/dist/useRpc.d.cts CHANGED
@@ -12,10 +12,11 @@ declare function useRpc(): {
12
12
  error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
13
13
  latestBlockhash: vue.Ref<string | null, string | null>;
14
14
  checkConnection: () => Promise<void>;
15
- client: _solana_kit.Client<_solana_kit.ExtendedClient<object, {
15
+ client: _solana_kit.Client<{
16
16
  rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
17
17
  rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
18
- }>>;
18
+ airdrop: (address: _solana_kit.Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
19
+ }>;
19
20
  };
20
21
 
21
22
  export { useRpc };
package/dist/useRpc.d.mts CHANGED
@@ -12,10 +12,11 @@ declare function useRpc(): {
12
12
  error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
13
13
  latestBlockhash: vue.Ref<string | null, string | null>;
14
14
  checkConnection: () => Promise<void>;
15
- client: _solana_kit.Client<_solana_kit.ExtendedClient<object, {
15
+ client: _solana_kit.Client<{
16
16
  rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
17
17
  rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
18
- }>>;
18
+ airdrop: (address: _solana_kit.Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
19
+ }>;
19
20
  };
20
21
 
21
22
  export { useRpc };
package/dist/useRpc.d.ts CHANGED
@@ -12,10 +12,11 @@ declare function useRpc(): {
12
12
  error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
13
13
  latestBlockhash: vue.Ref<string | null, string | null>;
14
14
  checkConnection: () => Promise<void>;
15
- client: _solana_kit.Client<_solana_kit.ExtendedClient<object, {
15
+ client: _solana_kit.Client<{
16
16
  rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
17
17
  rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
18
- }>>;
18
+ airdrop: (address: _solana_kit.Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
19
+ }>;
19
20
  };
20
21
 
21
22
  export { useRpc };
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ const useSendTransaction = require('./shared/vue.BFbIDI66.cjs');
4
+ require('@vue-solana/core/errors');
5
+ require('vue');
6
+ require('./shared/vue.BY0qpgYr.cjs');
7
+ require('./shared/vue.BIxphCAq.cjs');
8
+ require('./shared/vue.DE3emjSF.cjs');
9
+ require('./shared/vue.DEHxNvUX.cjs');
10
+
11
+
12
+
13
+ exports.useSendTransaction = useSendTransaction.useSendTransaction;
14
+ exports.useSendTransactions = useSendTransaction.useSendTransactions;
@@ -0,0 +1,46 @@
1
+ import * as vue from 'vue';
2
+ import { InstructionPlanInput, SingleTransactionPlan, TransactionPlanInput, SuccessfulSingleTransactionPlanResult, TransactionPlanResult } from '@vue-solana/core/kit';
3
+ import { SolanaError } from '@vue-solana/core/errors';
4
+
5
+ type SendTransactionStatus = "idle" | "sending" | "sent" | "error";
6
+ interface SendTransactionConfig {
7
+ abortSignal?: AbortSignal;
8
+ }
9
+ type SendTransactionInput = InstructionPlanInput | SingleTransactionPlan | SingleTransactionPlan["message"];
10
+ type SendTransactionsInput = InstructionPlanInput | TransactionPlanInput;
11
+ /**
12
+ * Plan, sign with the client's signers (payer/identity), submit, and confirm
13
+ * a single transaction — all through the client's transaction-sending
14
+ * capability (`ClientWithTransactionSending`), with no wallet popup.
15
+ *
16
+ * Accepts flexible input: instructions, an instruction plan, a transaction
17
+ * message, or a single transaction plan.
18
+ *
19
+ * Rejects with a clear capability error when the client cannot send.
20
+ *
21
+ * Calling `execute` while a prior execution is in flight aborts the prior call;
22
+ * the superseded attempt rejects, so check its `error.cause` to tell it apart
23
+ * from a real failure.
24
+ */
25
+ declare function useSendTransaction(): {
26
+ data: vue.ShallowRef<SuccessfulSingleTransactionPlanResult | null, SuccessfulSingleTransactionPlanResult | null>;
27
+ status: vue.Ref<SendTransactionStatus, SendTransactionStatus>;
28
+ loading: vue.Ref<boolean, boolean>;
29
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
30
+ execute: (input: SendTransactionInput, config?: SendTransactionConfig) => Promise<SuccessfulSingleTransactionPlanResult>;
31
+ };
32
+ /**
33
+ * Plan, sign, submit, and confirm one or more transactions — possibly a batch
34
+ * of messages, executed in parallel or sequentially as the plan dictates —
35
+ * through the client's transaction-sending capability.
36
+ */
37
+ declare function useSendTransactions(): {
38
+ data: vue.ShallowRef<TransactionPlanResult | null, TransactionPlanResult | null>;
39
+ status: vue.Ref<SendTransactionStatus, SendTransactionStatus>;
40
+ loading: vue.Ref<boolean, boolean>;
41
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
42
+ execute: (input: SendTransactionsInput, config?: SendTransactionConfig) => Promise<TransactionPlanResult>;
43
+ };
44
+
45
+ export { useSendTransaction, useSendTransactions };
46
+ export type { SendTransactionConfig, SendTransactionInput, SendTransactionStatus, SendTransactionsInput };
@@ -0,0 +1,46 @@
1
+ import * as vue from 'vue';
2
+ import { InstructionPlanInput, SingleTransactionPlan, TransactionPlanInput, SuccessfulSingleTransactionPlanResult, TransactionPlanResult } from '@vue-solana/core/kit';
3
+ import { SolanaError } from '@vue-solana/core/errors';
4
+
5
+ type SendTransactionStatus = "idle" | "sending" | "sent" | "error";
6
+ interface SendTransactionConfig {
7
+ abortSignal?: AbortSignal;
8
+ }
9
+ type SendTransactionInput = InstructionPlanInput | SingleTransactionPlan | SingleTransactionPlan["message"];
10
+ type SendTransactionsInput = InstructionPlanInput | TransactionPlanInput;
11
+ /**
12
+ * Plan, sign with the client's signers (payer/identity), submit, and confirm
13
+ * a single transaction — all through the client's transaction-sending
14
+ * capability (`ClientWithTransactionSending`), with no wallet popup.
15
+ *
16
+ * Accepts flexible input: instructions, an instruction plan, a transaction
17
+ * message, or a single transaction plan.
18
+ *
19
+ * Rejects with a clear capability error when the client cannot send.
20
+ *
21
+ * Calling `execute` while a prior execution is in flight aborts the prior call;
22
+ * the superseded attempt rejects, so check its `error.cause` to tell it apart
23
+ * from a real failure.
24
+ */
25
+ declare function useSendTransaction(): {
26
+ data: vue.ShallowRef<SuccessfulSingleTransactionPlanResult | null, SuccessfulSingleTransactionPlanResult | null>;
27
+ status: vue.Ref<SendTransactionStatus, SendTransactionStatus>;
28
+ loading: vue.Ref<boolean, boolean>;
29
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
30
+ execute: (input: SendTransactionInput, config?: SendTransactionConfig) => Promise<SuccessfulSingleTransactionPlanResult>;
31
+ };
32
+ /**
33
+ * Plan, sign, submit, and confirm one or more transactions — possibly a batch
34
+ * of messages, executed in parallel or sequentially as the plan dictates —
35
+ * through the client's transaction-sending capability.
36
+ */
37
+ declare function useSendTransactions(): {
38
+ data: vue.ShallowRef<TransactionPlanResult | null, TransactionPlanResult | null>;
39
+ status: vue.Ref<SendTransactionStatus, SendTransactionStatus>;
40
+ loading: vue.Ref<boolean, boolean>;
41
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
42
+ execute: (input: SendTransactionsInput, config?: SendTransactionConfig) => Promise<TransactionPlanResult>;
43
+ };
44
+
45
+ export { useSendTransaction, useSendTransactions };
46
+ export type { SendTransactionConfig, SendTransactionInput, SendTransactionStatus, SendTransactionsInput };
@@ -0,0 +1,46 @@
1
+ import * as vue from 'vue';
2
+ import { InstructionPlanInput, SingleTransactionPlan, TransactionPlanInput, SuccessfulSingleTransactionPlanResult, TransactionPlanResult } from '@vue-solana/core/kit';
3
+ import { SolanaError } from '@vue-solana/core/errors';
4
+
5
+ type SendTransactionStatus = "idle" | "sending" | "sent" | "error";
6
+ interface SendTransactionConfig {
7
+ abortSignal?: AbortSignal;
8
+ }
9
+ type SendTransactionInput = InstructionPlanInput | SingleTransactionPlan | SingleTransactionPlan["message"];
10
+ type SendTransactionsInput = InstructionPlanInput | TransactionPlanInput;
11
+ /**
12
+ * Plan, sign with the client's signers (payer/identity), submit, and confirm
13
+ * a single transaction — all through the client's transaction-sending
14
+ * capability (`ClientWithTransactionSending`), with no wallet popup.
15
+ *
16
+ * Accepts flexible input: instructions, an instruction plan, a transaction
17
+ * message, or a single transaction plan.
18
+ *
19
+ * Rejects with a clear capability error when the client cannot send.
20
+ *
21
+ * Calling `execute` while a prior execution is in flight aborts the prior call;
22
+ * the superseded attempt rejects, so check its `error.cause` to tell it apart
23
+ * from a real failure.
24
+ */
25
+ declare function useSendTransaction(): {
26
+ data: vue.ShallowRef<SuccessfulSingleTransactionPlanResult | null, SuccessfulSingleTransactionPlanResult | null>;
27
+ status: vue.Ref<SendTransactionStatus, SendTransactionStatus>;
28
+ loading: vue.Ref<boolean, boolean>;
29
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
30
+ execute: (input: SendTransactionInput, config?: SendTransactionConfig) => Promise<SuccessfulSingleTransactionPlanResult>;
31
+ };
32
+ /**
33
+ * Plan, sign, submit, and confirm one or more transactions — possibly a batch
34
+ * of messages, executed in parallel or sequentially as the plan dictates —
35
+ * through the client's transaction-sending capability.
36
+ */
37
+ declare function useSendTransactions(): {
38
+ data: vue.ShallowRef<TransactionPlanResult | null, TransactionPlanResult | null>;
39
+ status: vue.Ref<SendTransactionStatus, SendTransactionStatus>;
40
+ loading: vue.Ref<boolean, boolean>;
41
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
42
+ execute: (input: SendTransactionsInput, config?: SendTransactionConfig) => Promise<TransactionPlanResult>;
43
+ };
44
+
45
+ export { useSendTransaction, useSendTransactions };
46
+ export type { SendTransactionConfig, SendTransactionInput, SendTransactionStatus, SendTransactionsInput };
@@ -0,0 +1,7 @@
1
+ export { u as useSendTransaction, a as useSendTransactions } from './shared/vue.DT4vCUa6.mjs';
2
+ import '@vue-solana/core/errors';
3
+ import 'vue';
4
+ import './shared/vue.B8LptjZP.mjs';
5
+ import './shared/vue.Mxc8w6Qk.mjs';
6
+ import './shared/vue.CQh3AUE8.mjs';
7
+ import './shared/vue.D_P5SqqD.mjs';
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const useSendTransaction = require('./shared/vue.BFbIDI66.cjs');
4
+ require('@vue-solana/core/errors');
5
+ require('vue');
6
+ require('./shared/vue.BY0qpgYr.cjs');
7
+ require('./shared/vue.BIxphCAq.cjs');
8
+ require('./shared/vue.DE3emjSF.cjs');
9
+ require('./shared/vue.DEHxNvUX.cjs');
10
+
11
+
12
+
13
+ exports.useSendTransactions = useSendTransaction.useSendTransactions;
@@ -0,0 +1,4 @@
1
+ export { useSendTransactions } from './useSendTransaction.cjs';
2
+ import 'vue';
3
+ import '@vue-solana/core/kit';
4
+ import '@vue-solana/core/errors';
@@ -0,0 +1,4 @@
1
+ export { useSendTransactions } from './useSendTransaction.mjs';
2
+ import 'vue';
3
+ import '@vue-solana/core/kit';
4
+ import '@vue-solana/core/errors';
@@ -0,0 +1,4 @@
1
+ export { useSendTransactions } from './useSendTransaction.js';
2
+ import 'vue';
3
+ import '@vue-solana/core/kit';
4
+ import '@vue-solana/core/errors';
@@ -0,0 +1,7 @@
1
+ export { a as useSendTransactions } from './shared/vue.DT4vCUa6.mjs';
2
+ import '@vue-solana/core/errors';
3
+ import 'vue';
4
+ import './shared/vue.B8LptjZP.mjs';
5
+ import './shared/vue.Mxc8w6Qk.mjs';
6
+ import './shared/vue.CQh3AUE8.mjs';
7
+ import './shared/vue.D_P5SqqD.mjs';