@bluxcc/react 0.3.8 → 0.3.10

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 (38) hide show
  1. package/dist/Provider.d.ts +9 -10
  2. package/dist/hooks/index.d.ts +13 -13
  3. package/dist/hooks/useBlux.d.ts +1 -3
  4. package/dist/hooks/useJwt.d.ts +4 -3
  5. package/dist/hooks/useLoginCode.d.ts +5 -6
  6. package/dist/hooks/useLoginEmail.d.ts +8 -10
  7. package/dist/hooks/useLoginOAuth.d.ts +7 -20
  8. package/dist/hooks/useLoginPasskey.d.ts +7 -8
  9. package/dist/hooks/useLoginSms.d.ts +8 -10
  10. package/dist/hooks/useLoginWallet.d.ts +7 -8
  11. package/dist/index.d.ts +3 -3
  12. package/dist/useStellar/index.d.ts +28 -28
  13. package/dist/useStellar/useAccount.d.ts +1 -1
  14. package/dist/useStellar/useAccounts.d.ts +1 -1
  15. package/dist/useStellar/useAssets.d.ts +2 -2
  16. package/dist/useStellar/useBalances.d.ts +1 -1
  17. package/dist/useStellar/useClaimableBalances.d.ts +3 -4
  18. package/dist/useStellar/useEffects.d.ts +2 -2
  19. package/dist/useStellar/useLedgers.d.ts +3 -3
  20. package/dist/useStellar/useLiquidityPools.d.ts +3 -4
  21. package/dist/useStellar/useOffers.d.ts +4 -5
  22. package/dist/useStellar/useOperations.d.ts +2 -2
  23. package/dist/useStellar/useOrderbook.d.ts +3 -3
  24. package/dist/useStellar/usePayments.d.ts +2 -2
  25. package/dist/useStellar/useReadContract.d.ts +1 -1
  26. package/dist/useStellar/useReadContracts.d.ts +1 -1
  27. package/dist/useStellar/useResolveXlmName.d.ts +1 -1
  28. package/dist/useStellar/useResolveXlmNameByAddress.d.ts +1 -1
  29. package/dist/useStellar/useStrictReceivePaths.d.ts +3 -3
  30. package/dist/useStellar/useStrictSendPaths.d.ts +3 -3
  31. package/dist/useStellar/useSwap.d.ts +5 -6
  32. package/dist/useStellar/useTokenMetadata.d.ts +1 -1
  33. package/dist/useStellar/useTradeAggregation.d.ts +3 -3
  34. package/dist/useStellar/useTrades.d.ts +4 -5
  35. package/dist/useStellar/useTransactions.d.ts +2 -2
  36. package/dist/useStellar/useTransfer.d.ts +3 -4
  37. package/dist/useStellar/useWriteContract.d.ts +1 -1
  38. package/package.json +11 -6
@@ -1,4 +1,3 @@
1
- import type { IExplorer, ILoginMethods, ITransports, IWalletNames, LanguageKey, ThemeInheritance } from '@bluxcc/core';
2
1
  import React from 'react';
3
2
  import { type IConfig } from '@bluxcc/core';
4
3
  type BluxProviderProps = {
@@ -78,12 +77,12 @@ export declare const BluxProvider: ({ config, children }: {
78
77
  backdropColor?: string;
79
78
  /** Box shadow style for the modal. */
80
79
  boxShadow?: string;
81
- inherit?: ThemeInheritance;
80
+ inherit?: import("@bluxcc/core").ThemeInheritance;
82
81
  };
83
82
  /** UI language. Defaults to `'en'`. */
84
- lang?: LanguageKey;
83
+ lang?: import("@bluxcc/core").LanguageKey;
85
84
  /** Block explorer used for links. Defaults to `'stellarchain'`. */
86
- explorer?: IExplorer;
85
+ explorer?: import("@bluxcc/core").IExplorer;
87
86
  /** Persist the session across page reloads. Defaults to `false` and should remain `false` in most scenarios. */
88
87
  isPersistent?: boolean;
89
88
  /**
@@ -95,13 +94,13 @@ export declare const BluxProvider: ({ config, children }: {
95
94
  */
96
95
  showWalletUIs?: boolean;
97
96
  /** Login methods to offer. Defaults to `['wallet']`. `'sms'` is shown only when `/auth/validate` reports a paid plan. */
98
- loginMethods?: Array<ILoginMethods[number] | (string & {})>;
97
+ loginMethods?: ("wallet" | "sms" | "email" | "passkey" | import("@bluxcc/core").ISocialProvider | (string & {}))[];
99
98
  /** Custom Horizon/Soroban endpoints per network; required for custom networks. */
100
- transports?: ITransports;
101
- /** Wallets to hide from the picker. */
102
- excludeWallets?: IWalletNames;
99
+ transports?: import("@bluxcc/core").ITransports;
100
+ /** Wallets to hide from the picker. Names are case-insensitive and ignore whitespace. Defaults to `['lobstr']`; pass `[]` to exclude none. */
101
+ excludeWallets?: ((string & {}) | "rabet" | "albedo" | "freighter" | "metamask" | "xbull" | "lobstr" | "hana" | "hot" | "klever" | "cactuslink" | "fordefi" | "trezor")[];
103
102
  /** Wallets to surface first in the picker, in the given order. */
104
- orderWallets?: Array<IWalletNames[number] | (string & {})>;
103
+ orderWallets?: ((string & {}) | "rabet" | "albedo" | "freighter" | "metamask" | "xbull" | "lobstr" | "hana" | "hot" | "klever" | "cactuslink" | "fordefi" | "trezor")[];
105
104
  /** WalletConnect metadata; required to enable WalletConnect. */
106
105
  walletConnect?: {
107
106
  /** Icon URLs for your app. */
@@ -123,6 +122,6 @@ export declare const BluxProvider: ({ config, children }: {
123
122
  /** Show a modal when the connected wallet is on a network outside `networks`. Opt-in — defaults to `false`. */
124
123
  promptOnWrongNetwork?: boolean;
125
124
  };
126
- children: React.ReactNode | any;
125
+ children: any;
127
126
  }) => React.JSX.Element;
128
127
  export {};
@@ -1,13 +1,13 @@
1
- export { useBlux } from './useBlux';
2
- export { useJwt } from './useJwt';
3
- export { useLoginEmail } from './useLoginEmail';
4
- export type { UseLoginEmailOptions, UseLoginEmailResult, } from './useLoginEmail';
5
- export { useLoginSms } from './useLoginSms';
6
- export type { UseLoginSmsOptions, UseLoginSmsResult } from './useLoginSms';
7
- export { useLoginOAuth } from './useLoginOAuth';
8
- export type { LoginOAuthOptions, UseLoginOAuthOptions, UseLoginOAuthResult, } from './useLoginOAuth';
9
- export { useLoginPasskey } from './useLoginPasskey';
10
- export type { UseLoginPasskeyOptions, UseLoginPasskeyResult, } from './useLoginPasskey';
11
- export { useLoginWallet } from './useLoginWallet';
12
- export type { UseLoginWalletOptions, UseLoginWalletResult, } from './useLoginWallet';
13
- export type { LoginStatus } from './useLoginAction';
1
+ export { useBlux } from "./useBlux.js";
2
+ export { useJwt } from "./useJwt.js";
3
+ export { useLoginEmail } from "./useLoginEmail.js";
4
+ export type { UseLoginEmailOptions, UseLoginEmailResult, } from "./useLoginEmail.js";
5
+ export { useLoginSms } from "./useLoginSms.js";
6
+ export type { UseLoginSmsOptions, UseLoginSmsResult } from "./useLoginSms.js";
7
+ export { useLoginOAuth } from "./useLoginOAuth.js";
8
+ export type { LoginOAuthOptions, UseLoginOAuthOptions, UseLoginOAuthResult, } from "./useLoginOAuth.js";
9
+ export { useLoginPasskey } from "./useLoginPasskey.js";
10
+ export type { UseLoginPasskeyOptions, UseLoginPasskeyResult, } from "./useLoginPasskey.js";
11
+ export { useLoginWallet } from "./useLoginWallet.js";
12
+ export type { UseLoginWalletOptions, UseLoginWalletResult, } from "./useLoginWallet.js";
13
+ export type { LoginStatus } from "./useLoginAction.js";
@@ -28,9 +28,7 @@ export declare const useBlux: () => {
28
28
  login: () => Promise<import("@bluxcc/core").IUser>;
29
29
  loginEmail: import("@bluxcc/core").LoginCodeFn;
30
30
  loginSms: import("@bluxcc/core").LoginCodeFn;
31
- loginOAuth: (provider: import("@bluxcc/core").ISocialProvider | string, options?: {
32
- telegramUser?: Record<string, unknown>;
33
- }) => Promise<import("@bluxcc/core").IUser>;
31
+ loginOAuth: (provider: import("@bluxcc/core").ISocialProvider | string, options?: import("@bluxcc/core").LoginOAuthOptions) => Promise<import("@bluxcc/core").IUser>;
34
32
  loginPasskey: () => Promise<import("@bluxcc/core").IUser>;
35
33
  loginWallet: typeof import("@bluxcc/core").loginWallet;
36
34
  logout: () => void;
@@ -1,9 +1,10 @@
1
1
  /**
2
- * The signed-in user's session bearer token, held in memory by `@bluxcc/core`.
2
+ * The signed-in user's session bearer token, managed by `@bluxcc/core`.
3
3
  *
4
4
  * Use this when a first-party app (the Blux dashboard) needs to call the Blux
5
- * API as the logged-in user. The token is not stored in `localStorage`. It is
6
- * `undefined` until login finishes, and again after logout or a reload.
5
+ * API as the logged-in user. Accepted sessions persist in `localStorage`.
6
+ * This is `undefined` until login or saved-session validation finishes, and
7
+ * again after logout. Page scripts can read the persisted bearer token.
7
8
  *
8
9
  * @returns The current JWT, or `undefined` when nobody is authenticated.
9
10
  *
@@ -1,10 +1,9 @@
1
- import type { TData } from './useLoginAction';
2
1
  import type { IUser, LoginCodeApi } from '@bluxcc/core';
3
- import { LoginStatus, UseLoginActionOptions } from './useLoginAction';
2
+ import { LoginStatus, UseLoginActionOptions } from "./useLoginAction.js";
4
3
  export type UseLoginCodeOptions = {
5
- onSuccess?: (data: TData) => void;
4
+ onSuccess?: (data: IUser) => void;
6
5
  onError?: (error: Error) => void;
7
- onSettled?: (data: TData | undefined, error: Error | null) => void;
6
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
8
7
  /** Called after a one-time code is sent successfully. */
9
8
  onCodeSent?: () => void;
10
9
  };
@@ -35,9 +34,9 @@ export declare function useLoginCode(api: {
35
34
  */
36
35
  loginWithCode: (identifier: string, code: string) => Promise<IUser>;
37
36
  }, options?: {
38
- onSuccess?: (data: TData) => void;
37
+ onSuccess?: (data: IUser) => void;
39
38
  onError?: (error: Error) => void;
40
- onSettled?: (data: TData | undefined, error: Error | null) => void;
39
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
41
40
  /** Called after a one-time code is sent successfully. */
42
41
  onCodeSent?: () => void;
43
42
  }): UseLoginCodeResult;
@@ -1,10 +1,8 @@
1
- import type { LoginStatus, TData } from './useLoginAction';
2
- import type { IUser } from '@bluxcc/core';
3
- import type { UseLoginCodeOptions, UseLoginCodeResult } from './useLoginCode';
1
+ import type { UseLoginCodeOptions, UseLoginCodeResult } from "./useLoginCode.js";
4
2
  export type UseLoginEmailOptions = {
5
- onSuccess?: (data: TData) => void;
3
+ onSuccess?: (data: import("@bluxcc/core").IUser) => void;
6
4
  onError?: (error: Error) => void;
7
- onSettled?: (data: TData | undefined, error: Error | null) => void;
5
+ onSettled?: (data: import("@bluxcc/core").IUser | undefined, error: Error | null) => void;
8
6
  /** Called after a one-time code is sent successfully. */
9
7
  onCodeSent?: () => void;
10
8
  };
@@ -12,8 +10,8 @@ export type UseLoginEmailResult = {
12
10
  sendCode: (identifier: string) => void;
13
11
  sendCodeAsync: (identifier: string) => Promise<void>;
14
12
  loginWithCode: (identifier: string, code: string) => void;
15
- loginWithCodeAsync: (identifier: string, code: string) => Promise<IUser>;
16
- data: IUser | undefined;
13
+ loginWithCodeAsync: (identifier: string, code: string) => Promise<import("@bluxcc/core").IUser>;
14
+ data: import("@bluxcc/core").IUser | undefined;
17
15
  error: Error | null;
18
16
  isCodeSent: boolean;
19
17
  isError: boolean;
@@ -23,7 +21,7 @@ export type UseLoginEmailResult = {
23
21
  isSendingCode: boolean;
24
22
  isSuccess: boolean;
25
23
  reset: () => void;
26
- status: LoginStatus;
24
+ status: import("../index.js").LoginStatus;
27
25
  };
28
26
  /**
29
27
  * Headless email login: send a one-time code, then verify it.
@@ -53,9 +51,9 @@ export type UseLoginEmailResult = {
53
51
  * ```
54
52
  */
55
53
  export declare function useLoginEmail(options?: {
56
- onSuccess?: (data: TData) => void;
54
+ onSuccess?: (data: import("@bluxcc/core").IUser) => void;
57
55
  onError?: (error: Error) => void;
58
- onSettled?: (data: TData | undefined, error: Error | null) => void;
56
+ onSettled?: (data: import("@bluxcc/core").IUser | undefined, error: Error | null) => void;
59
57
  /** Called after a one-time code is sent successfully. */
60
58
  onCodeSent?: () => void;
61
59
  }): UseLoginEmailResult;
@@ -1,35 +1,22 @@
1
- import type { LoginStatus, TData } from './useLoginAction';
2
1
  import type { ISocialProvider, IUser, LoginOAuthOptions } from '@bluxcc/core';
3
- import { LoginActionState, UseLoginActionOptions } from './useLoginAction';
2
+ import { LoginActionState, UseLoginActionOptions } from "./useLoginAction.js";
4
3
  export type { LoginOAuthOptions };
5
4
  export type UseLoginOAuthOptions = {
6
- onSuccess?: (data: TData) => void;
5
+ onSuccess?: (data: IUser) => void;
7
6
  onError?: (error: Error) => void;
8
- onSettled?: (data: TData | undefined, error: Error | null) => void;
7
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
9
8
  };
10
9
  export type UseLoginOAuthResult = {
11
- data: TData | undefined;
10
+ data: IUser | undefined;
12
11
  error: Error | null;
13
12
  isError: boolean;
14
13
  isIdle: boolean;
15
14
  isPending: boolean;
16
15
  isSuccess: boolean;
17
- status: LoginStatus;
16
+ status: import("./useLoginAction.js").LoginStatus;
18
17
  loginOAuth: (provider: ISocialProvider | string, options?: LoginOAuthOptions) => void;
19
18
  loginOAuthAsync: (provider: ISocialProvider | string, options?: LoginOAuthOptions) => Promise<IUser>;
20
19
  reset: () => void;
21
- }eady on `window`.
22
- */
23
- telegramUser?: Record<string, unknown>;
24
- }) => void;
25
- loginOAuthAsync: (provider: ISocialProvider | string, options?: {
26
- /**
27
- * Telegram Login Widget user object, or `{ init_data }` from a Telegram Mini
28
- * App. Required for Telegram unless Mini App init data is already on `window`.
29
- */
30
- telegramUser?: Record<string, unknown>;
31
- }) => Promise<IUser>;
32
- reset: () => void;
33
20
  };
34
21
  /**
35
22
  * Headless social login. Opens the provider popup (must run from a click
@@ -53,7 +40,7 @@ export type UseLoginOAuthResult = {
53
40
  * ```
54
41
  */
55
42
  export declare function useLoginOAuth(options?: {
56
- onSuccess?: (data: TData) => void;
43
+ onSuccess?: (data: IUser) => void;
57
44
  onError?: (error: Error) => void;
58
- onSettled?: (data: TData | undefined, error: Error | null) => void;
45
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
59
46
  }): UseLoginOAuthResult;
@@ -1,19 +1,18 @@
1
- import type { LoginStatus, TData } from './useLoginAction';
2
1
  import type { IUser } from '@bluxcc/core';
3
- import { LoginActionState, UseLoginActionOptions } from './useLoginAction';
2
+ import { LoginActionState, UseLoginActionOptions } from "./useLoginAction.js";
4
3
  export type UseLoginPasskeyOptions = {
5
- onSuccess?: (data: TData) => void;
4
+ onSuccess?: (data: IUser) => void;
6
5
  onError?: (error: Error) => void;
7
- onSettled?: (data: TData | undefined, error: Error | null) => void;
6
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
8
7
  };
9
8
  export type UseLoginPasskeyResult = {
10
- data: TData | undefined;
9
+ data: IUser | undefined;
11
10
  error: Error | null;
12
11
  isError: boolean;
13
12
  isIdle: boolean;
14
13
  isPending: boolean;
15
14
  isSuccess: boolean;
16
- status: LoginStatus;
15
+ status: import("./useLoginAction.js").LoginStatus;
17
16
  loginPasskey: () => void;
18
17
  loginPasskeyAsync: () => Promise<IUser>;
19
18
  reset: () => void;
@@ -39,7 +38,7 @@ export type UseLoginPasskeyResult = {
39
38
  * ```
40
39
  */
41
40
  export declare function useLoginPasskey(options?: {
42
- onSuccess?: (data: TData) => void;
41
+ onSuccess?: (data: IUser) => void;
43
42
  onError?: (error: Error) => void;
44
- onSettled?: (data: TData | undefined, error: Error | null) => void;
43
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
45
44
  }): UseLoginPasskeyResult;
@@ -1,10 +1,8 @@
1
- import type { LoginStatus, TData } from './useLoginAction';
2
- import type { IUser } from '@bluxcc/core';
3
- import type { UseLoginCodeOptions, UseLoginCodeResult } from './useLoginCode';
1
+ import type { UseLoginCodeOptions, UseLoginCodeResult } from "./useLoginCode.js";
4
2
  export type UseLoginSmsOptions = {
5
- onSuccess?: (data: TData) => void;
3
+ onSuccess?: (data: import("@bluxcc/core").IUser) => void;
6
4
  onError?: (error: Error) => void;
7
- onSettled?: (data: TData | undefined, error: Error | null) => void;
5
+ onSettled?: (data: import("@bluxcc/core").IUser | undefined, error: Error | null) => void;
8
6
  /** Called after a one-time code is sent successfully. */
9
7
  onCodeSent?: () => void;
10
8
  };
@@ -12,8 +10,8 @@ export type UseLoginSmsResult = {
12
10
  sendCode: (identifier: string) => void;
13
11
  sendCodeAsync: (identifier: string) => Promise<void>;
14
12
  loginWithCode: (identifier: string, code: string) => void;
15
- loginWithCodeAsync: (identifier: string, code: string) => Promise<IUser>;
16
- data: IUser | undefined;
13
+ loginWithCodeAsync: (identifier: string, code: string) => Promise<import("@bluxcc/core").IUser>;
14
+ data: import("@bluxcc/core").IUser | undefined;
17
15
  error: Error | null;
18
16
  isCodeSent: boolean;
19
17
  isError: boolean;
@@ -23,7 +21,7 @@ export type UseLoginSmsResult = {
23
21
  isSendingCode: boolean;
24
22
  isSuccess: boolean;
25
23
  reset: () => void;
26
- status: LoginStatus;
24
+ status: import("../index.js").LoginStatus;
27
25
  };
28
26
  /**
29
27
  * Headless SMS login: send a one-time code, then verify it.
@@ -53,9 +51,9 @@ export type UseLoginSmsResult = {
53
51
  * ```
54
52
  */
55
53
  export declare function useLoginSms(options?: {
56
- onSuccess?: (data: TData) => void;
54
+ onSuccess?: (data: import("@bluxcc/core").IUser) => void;
57
55
  onError?: (error: Error) => void;
58
- onSettled?: (data: TData | undefined, error: Error | null) => void;
56
+ onSettled?: (data: import("@bluxcc/core").IUser | undefined, error: Error | null) => void;
59
57
  /** Called after a one-time code is sent successfully. */
60
58
  onCodeSent?: () => void;
61
59
  }): UseLoginSmsResult;
@@ -1,19 +1,18 @@
1
- import type { LoginStatus, TData } from './useLoginAction';
2
1
  import type { IUser } from '@bluxcc/core';
3
- import { LoginActionState, UseLoginActionOptions } from './useLoginAction';
2
+ import { LoginActionState, UseLoginActionOptions } from "./useLoginAction.js";
4
3
  export type UseLoginWalletOptions = {
5
- onSuccess?: (data: TData) => void;
4
+ onSuccess?: (data: IUser) => void;
6
5
  onError?: (error: Error) => void;
7
- onSettled?: (data: TData | undefined, error: Error | null) => void;
6
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
8
7
  };
9
8
  export type UseLoginWalletResult = {
10
- data: TData | undefined;
9
+ data: IUser | undefined;
11
10
  error: Error | null;
12
11
  isError: boolean;
13
12
  isIdle: boolean;
14
13
  isPending: boolean;
15
14
  isSuccess: boolean;
16
- status: LoginStatus;
15
+ status: import("./useLoginAction.js").LoginStatus;
17
16
  loginWallet: (walletName?: string) => void;
18
17
  loginWalletAsync: (walletName?: string) => Promise<IUser>;
19
18
  reset: () => void;
@@ -42,7 +41,7 @@ export type UseLoginWalletResult = {
42
41
  * ```
43
42
  */
44
43
  export declare function useLoginWallet(options?: {
45
- onSuccess?: (data: TData) => void;
44
+ onSuccess?: (data: IUser) => void;
46
45
  onError?: (error: Error) => void;
47
- onSettled?: (data: TData | undefined, error: Error | null) => void;
46
+ onSettled?: (data: IUser | undefined, error: Error | null) => void;
48
47
  }): UseLoginWalletResult;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { getAccount, getAccounts, getAssets, getBalances, getClaimableBalances, getEffects, getLedgers, getLiquidityPools, getNetwork, resolveXlmName, resolveXlmNameByAddress, getOffers, getOperations, getOrderbook, getPayments, getStrictReceivePaths, getStrictSendPaths, getTradeAggregation, getTrades, getTransactions, readContract, readContracts, writeContract, getJwt, swap, getSacAddress, getTokenMetadata, networks, switchNetwork, numberish, ToScVal, setAppearance, events, BluxEvent, StellarSdk, getState, subscribe, getInitialState, useExportedStore, } from '@bluxcc/core';
2
2
  export type { Numberish, SwapOptions, SwapType, XlmNameLookupOptions, XlmNameRecord, XlmAccountNameRecord, XlmContractNameRecord, TokenMetadata, GetTokenMetadataOptions, IConfig, IAppearance, IAppearanceConfig, IExplorer, ILoginMethods, ISocialProvider, IWalletNames, LanguageKey, AssetArg, CallBuilderOptions, FundAccountOptions, GetAccountOptions, GetAccountsOptions, GetAssetsOptions, GetBalancesOptions, GetClaimableBalancesOptions, GetEffectsOptions, GetLedgersOptions, GetLiquidityPoolsOptions, GetOffersOptions, GetOperationsOptions, GetPaymentsOptions, GetPaymentPathResult, GetTradesOptions, GetTransactionsOptions, IContractCall, LoginOAuthOptions, ReadContractsOptions, TransferOptions, WriteContractsOptions, } from '@bluxcc/core';
3
3
  export { Asset } from '@stellar/stellar-sdk';
4
- export * from './useStellar';
5
- export * from './hooks';
6
- export { BluxProvider } from './Provider';
4
+ export * from "./useStellar/index.js";
5
+ export * from "./hooks/index.js";
6
+ export { BluxProvider } from "./Provider.js";
@@ -1,29 +1,29 @@
1
1
  export { networks } from '@bluxcc/core';
2
- export * from './useAccount';
3
- export * from './useAccounts';
4
- export * from './useAssets';
5
- export * from './useBalances';
6
- export * from './useClaimableBalances';
7
- export * from './useEffects';
8
- export * from './useLedgers';
9
- export * from './useLiquidityPools';
10
- export * from './useNetwork';
11
- export * from './useResolveXlmName';
12
- export * from './useResolveXlmNameByAddress';
13
- export * from './useOffers';
14
- export * from './useOperations';
15
- export * from './useOrderbook';
16
- export * from './usePayments';
17
- export * from './useReadContract';
18
- export * from './useReadContracts';
19
- export * from './useStrictReceivePaths';
20
- export * from './useStrictSendPaths';
21
- export * from './useTradeAggregation';
22
- export * from './useTrades';
23
- export * from './useTransactions';
24
- export * from './useTransfer';
25
- export * from './useSwitchNetwork';
26
- export * from './useWriteContract';
27
- export * from './useSwap';
28
- export * from './useTokenMetadata';
29
- export * from './useSacAddress';
2
+ export * from "./useAccount.js";
3
+ export * from "./useAccounts.js";
4
+ export * from "./useAssets.js";
5
+ export * from "./useBalances.js";
6
+ export * from "./useClaimableBalances.js";
7
+ export * from "./useEffects.js";
8
+ export * from "./useLedgers.js";
9
+ export * from "./useLiquidityPools.js";
10
+ export * from "./useNetwork.js";
11
+ export * from "./useResolveXlmName.js";
12
+ export * from "./useResolveXlmNameByAddress.js";
13
+ export * from "./useOffers.js";
14
+ export * from "./useOperations.js";
15
+ export * from "./useOrderbook.js";
16
+ export * from "./usePayments.js";
17
+ export * from "./useReadContract.js";
18
+ export * from "./useReadContracts.js";
19
+ export * from "./useStrictReceivePaths.js";
20
+ export * from "./useStrictSendPaths.js";
21
+ export * from "./useTradeAggregation.js";
22
+ export * from "./useTrades.js";
23
+ export * from "./useTransactions.js";
24
+ export * from "./useTransfer.js";
25
+ export * from "./useSwitchNetwork.js";
26
+ export * from "./useWriteContract.js";
27
+ export * from "./useSwap.js";
28
+ export * from "./useTokenMetadata.js";
29
+ export * from "./useSacAddress.js";
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetAccountResult, GetAccountOptions } from '@bluxcc/core';
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetAccountResult;
5
5
  type O = GetAccountOptions;
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetAccountsResult, GetAccountsOptions } from '@bluxcc/core';
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetAccountsResult;
5
5
  type O = GetAccountsOptions;
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetAssetsResult, GetAssetsOptions } from '@bluxcc/core';
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetAssetsResult;
5
5
  type O = GetAssetsOptions;
6
6
  /**
@@ -30,7 +30,7 @@ export declare function useAssets(options?: {
30
30
  /** Network passphrase to query. Defaults to the active network. */
31
31
  network?: string;
32
32
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
33
- order?: 'asc' | 'desc';
33
+ order?: "asc" | "desc";
34
34
  /** Filter to a single asset code (e.g. `USDC`). */
35
35
  forCode?: string;
36
36
  /** Filter to assets issued by this account id, SEP-2 address, or `.xlm` name. */
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetBalancesResult, GetBalancesOptions } from "@bluxcc/core";
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetBalancesResult;
5
5
  type O = GetBalancesOptions;
6
6
  /**
@@ -1,7 +1,6 @@
1
- import type { AssetArg } from '@bluxcc/core';
2
1
  import { UseQueryResult } from '@tanstack/react-query';
3
2
  import type { GetClaimableBalancesResult, GetClaimableBalancesOptions } from "@bluxcc/core";
4
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
5
4
  type R = GetClaimableBalancesResult;
6
5
  type O = GetClaimableBalancesOptions;
7
6
  /**
@@ -32,9 +31,9 @@ export declare function useClaimableBalances(options: {
32
31
  /** Network passphrase to query. Defaults to the active network. */
33
32
  network?: string;
34
33
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
35
- order?: 'asc' | 'desc';
34
+ order?: "asc" | "desc";
36
35
  /** Only balances of this asset (`'xlm'`, `'CODE:ISSUER'`, or an `Asset`). */
37
- asset: AssetArg;
36
+ asset: import("@bluxcc/core").AssetArg;
38
37
  /** Only balances sponsored by this account id, SEP-2 address, or `.xlm` name. */
39
38
  sponsor?: string;
40
39
  /** Only balances claimable by this account (address, SEP-2 address, or `.xlm` name). */
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetEffectsResult, GetEffectsOptions } from "@bluxcc/core";
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetEffectsResult;
5
5
  type O = GetEffectsOptions;
6
6
  /**
@@ -32,7 +32,7 @@ export declare function useEffects(options?: {
32
32
  /** Network passphrase to query. Defaults to the active network. */
33
33
  network?: string;
34
34
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
35
- order?: 'asc' | 'desc';
35
+ order?: "asc" | "desc";
36
36
  /** Only effects touching this account (address, SEP-2 address, or `.xlm` name). */
37
37
  forAccount?: string;
38
38
  /** Only effects in this ledger, by sequence number. */
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetLedgersResult, GetLedgersOptions } from "@bluxcc/core";
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetLedgersResult;
5
5
  type O = GetLedgersOptions;
6
6
  /**
@@ -29,8 +29,8 @@ export declare function useLedgers(options?: {
29
29
  /** Network passphrase to query. Defaults to the active network. */
30
30
  network?: string;
31
31
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
32
- order?: 'asc' | 'desc';
32
+ order?: "asc" | "desc";
33
33
  /** Fetch a single ledger by its sequence number. */
34
- ledger?: number | string;
34
+ ledger?: string | number;
35
35
  }, queryOptions?: QueryOptions<R>): UseQueryResult<R, Error>;
36
36
  export {};
@@ -1,7 +1,6 @@
1
- import type { AssetArg } from '@bluxcc/core';
2
1
  import { UseQueryResult } from '@tanstack/react-query';
3
2
  import type { GetLiquidityPoolsResult, GetLiquidityPoolsOptions } from "@bluxcc/core";
4
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
5
4
  type R = GetLiquidityPoolsResult;
6
5
  type O = GetLiquidityPoolsOptions;
7
6
  /**
@@ -33,9 +32,9 @@ export declare function useLiquidityPools(options?: {
33
32
  /** Network passphrase to query. Defaults to the active network. */
34
33
  network?: string;
35
34
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
36
- order?: 'asc' | 'desc';
35
+ order?: "asc" | "desc";
37
36
  /** Only pools made up of exactly these reserve assets (`'xlm'`, `'CODE:ISSUER'`, or `Asset`). */
38
- forAssets?: Array<AssetArg>;
37
+ forAssets?: import("@bluxcc/core").AssetArg[];
39
38
  /** Only pools this account holds shares in (address, SEP-2 address, or `.xlm` name). */
40
39
  forAccount?: string;
41
40
  }, queryOptions?: QueryOptions<R>): UseQueryResult<R, Error>;
@@ -1,7 +1,6 @@
1
- import type { AssetArg } from '@bluxcc/core';
2
1
  import { UseQueryResult } from '@tanstack/react-query';
3
2
  import type { GetOffersResult, GetOffersOptions } from "@bluxcc/core";
4
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
5
4
  type R = GetOffersResult;
6
5
  type O = GetOffersOptions;
7
6
  /**
@@ -31,13 +30,13 @@ export declare function useOffers(options?: {
31
30
  /** Network passphrase to query. Defaults to the active network. */
32
31
  network?: string;
33
32
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
34
- order?: 'asc' | 'desc';
33
+ order?: "asc" | "desc";
35
34
  /** Only offers owned by this account (address, SEP-2 address, or `.xlm` name). */
36
35
  forAccount?: string;
37
36
  /** Only offers buying this asset (`'xlm'`, `'CODE:ISSUER'`, or an `Asset`). */
38
- buying?: AssetArg;
37
+ buying?: import("@bluxcc/core").AssetArg;
39
38
  /** Only offers selling this asset (`'xlm'`, `'CODE:ISSUER'`, or an `Asset`). */
40
- selling?: AssetArg;
39
+ selling?: import("@bluxcc/core").AssetArg;
41
40
  /** Only offers sponsored by this account id, SEP-2 address, or `.xlm` name. */
42
41
  sponsor?: string;
43
42
  /** Only offers created by this seller (address, SEP-2 address, or `.xlm` name). */
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetOperationsResult, GetOperationsOptions } from "@bluxcc/core";
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetOperationsResult;
5
5
  type O = GetOperationsOptions;
6
6
  /**
@@ -31,7 +31,7 @@ export declare function useOperations(options?: {
31
31
  /** Network passphrase to query. Defaults to the active network. */
32
32
  network?: string;
33
33
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
34
- order?: 'asc' | 'desc';
34
+ order?: "asc" | "desc";
35
35
  /** Only operations touching this account (address, SEP-2 address, or `.xlm` name). */
36
36
  forAccount?: string;
37
37
  /** Only operations for this claimable balance id. */
@@ -1,8 +1,8 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetOrderbookResult } from "@bluxcc/core";
3
3
  import { Asset } from '@stellar/stellar-sdk';
4
- import { CallBuilderOptions } from '../utils';
5
- import type { QueryOptions } from '../utils';
4
+ import { CallBuilderOptions } from "../utils.js";
5
+ import type { QueryOptions } from "../utils.js";
6
6
  type R = GetOrderbookResult;
7
7
  type O = CallBuilderOptions;
8
8
  /**
@@ -28,6 +28,6 @@ export declare function useOrderbook(args: [selling: Asset, buying: Asset], opti
28
28
  cursor?: string;
29
29
  limit?: number;
30
30
  network?: string;
31
- order?: 'asc' | 'desc';
31
+ order?: "asc" | "desc";
32
32
  }, queryOptions?: QueryOptions<R>): UseQueryResult<R, Error>;
33
33
  export {};
@@ -2,7 +2,7 @@ import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetPaymentsOptions } from '@bluxcc/core';
3
3
  import { ServerApi } from '@stellar/stellar-sdk/lib/esm/horizon';
4
4
  import { PaymentCallBuilder } from '@stellar/stellar-sdk/lib/esm/horizon/payment_call_builder';
5
- import type { QueryOptions } from '../utils';
5
+ import type { QueryOptions } from "../utils.js";
6
6
  type R = {
7
7
  builder: PaymentCallBuilder;
8
8
  response: ServerApi.CollectionPage<ServerApi.CreateAccountOperationRecord | ServerApi.PaymentOperationRecord | ServerApi.PathPaymentOperationRecord | ServerApi.AccountMergeOperationRecord | ServerApi.PathPaymentStrictSendOperationRecord | ServerApi.InvokeHostFunctionOperationRecord>;
@@ -36,7 +36,7 @@ export declare function usePayments(options?: {
36
36
  /** Network passphrase to query. Defaults to the active network. */
37
37
  network?: string;
38
38
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
39
- order?: 'asc' | 'desc';
39
+ order?: "asc" | "desc";
40
40
  /** Only payments touching this account (address, SEP-2 address, or `.xlm` name). */
41
41
  forAccount?: string;
42
42
  /** Only payments in this ledger, by sequence number. */
@@ -1,7 +1,7 @@
1
1
  import { readContract } from '@bluxcc/core';
2
2
  import { UseQueryResult } from '@tanstack/react-query';
3
3
  import type { IContractCall, ReadContractsOptions } from '@bluxcc/core';
4
- import type { QueryOptions } from '../utils';
4
+ import type { QueryOptions } from "../utils.js";
5
5
  type CoreReadContractResult = Awaited<ReturnType<typeof readContract>>;
6
6
  /** Typed result returned by {@link useReadContract}. */
7
7
  export type ReadContractHookResult<TReturnValue = unknown> = Omit<CoreReadContractResult, 'value'> & {
@@ -1,7 +1,7 @@
1
1
  import { readContracts } from '@bluxcc/core';
2
2
  import { UseQueryResult } from '@tanstack/react-query';
3
3
  import type { IContractCall, ReadContractsOptions } from '@bluxcc/core';
4
- import type { QueryOptions } from '../utils';
4
+ import type { QueryOptions } from "../utils.js";
5
5
  type CoreReadContractsResult = Exclude<Awaited<ReturnType<typeof readContracts>>, readonly unknown[]>;
6
6
  /** Typed result returned by {@link useReadContracts}. */
7
7
  export type ReadContractsHookResult<TValues extends readonly unknown[] = readonly unknown[]> = Omit<CoreReadContractsResult, 'values'> & {
@@ -1,6 +1,6 @@
1
1
  import { type XlmNameLookupOptions, type XlmNameRecord } from '@bluxcc/core';
2
2
  import { type UseQueryResult } from '@tanstack/react-query';
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  /**
5
5
  * Resolves a `.xlm` name to a validated account or contract record.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  import { type XlmAccountNameRecord, type XlmNameLookupOptions } from '@bluxcc/core';
2
2
  import { type UseQueryResult } from '@tanstack/react-query';
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  /**
5
5
  * Finds one verified `.xlm` name associated with a classic Stellar account.
6
6
  *
@@ -1,8 +1,8 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetPaymentPathResult } from '@bluxcc/core';
3
3
  import { Asset } from '@stellar/stellar-sdk';
4
- import { CallBuilderOptions } from '../utils';
5
- import type { QueryOptions } from '../utils';
4
+ import { CallBuilderOptions } from "../utils.js";
5
+ import type { QueryOptions } from "../utils.js";
6
6
  type R = GetPaymentPathResult;
7
7
  type O = CallBuilderOptions;
8
8
  /**
@@ -37,6 +37,6 @@ export declare function useStrictReceivePaths(args: [
37
37
  cursor?: string;
38
38
  limit?: number;
39
39
  network?: string;
40
- order?: 'asc' | 'desc';
40
+ order?: "asc" | "desc";
41
41
  }, queryOptions?: QueryOptions<R>): UseQueryResult<R, Error>;
42
42
  export {};
@@ -1,8 +1,8 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetPaymentPathResult } from '@bluxcc/core';
3
3
  import { Asset } from '@stellar/stellar-sdk';
4
- import { CallBuilderOptions } from '../utils';
5
- import type { QueryOptions } from '../utils';
4
+ import { CallBuilderOptions } from "../utils.js";
5
+ import type { QueryOptions } from "../utils.js";
6
6
  type R = GetPaymentPathResult;
7
7
  type O = CallBuilderOptions;
8
8
  /**
@@ -35,6 +35,6 @@ export declare function useStrictSendPaths(args: [
35
35
  cursor?: string;
36
36
  limit?: number;
37
37
  network?: string;
38
- order?: 'asc' | 'desc';
38
+ order?: "asc" | "desc";
39
39
  }, queryOptions?: QueryOptions<R>): UseQueryResult<R, Error>;
40
40
  export {};
@@ -1,8 +1,7 @@
1
- import type { AssetArg, Numberish, SwapType } from '@bluxcc/core';
2
1
  import { swap } from '@bluxcc/core';
3
2
  import { UseMutationResult } from '@tanstack/react-query';
4
3
  import type { SwapOptions } from '@bluxcc/core';
5
- import type { MutationOptions } from '../utils';
4
+ import type { MutationOptions } from "../utils.js";
6
5
  type R = Awaited<ReturnType<typeof swap>>;
7
6
  /**
8
7
  * Variables for {@link useSwap} — the core `swap` options verbatim, so every
@@ -11,17 +10,17 @@ type R = Awaited<ReturnType<typeof swap>>;
11
10
  */
12
11
  export type SwapVariables = {
13
12
  /** Asset being sold. Accepts `'xlm'` / `'native'`, a `CODE:ISSUER` string, or an `Asset`. */
14
- fromAsset: AssetArg;
13
+ fromAsset: import("@bluxcc/core").AssetArg;
15
14
  /** Asset being bought. Accepts `'xlm'` / `'native'`, a `CODE:ISSUER` string, or an `Asset`. */
16
- toAsset: AssetArg;
15
+ toAsset: import("@bluxcc/core").AssetArg;
17
16
  /**
18
17
  * The fixed amount. For `'exactIn'` this is how much `fromAsset` to send; for
19
18
  * `'exactOut'` it is how much `toAsset` to receive. Numbers and bigints are
20
19
  * coerced to a string.
21
20
  */
22
- amount: Numberish;
21
+ amount: import("@bluxcc/core").Numberish;
23
22
  /** Which side is fixed. Defaults to `'exactIn'`. */
24
- type?: SwapType;
23
+ type?: import("@bluxcc/core").SwapType;
25
24
  /**
26
25
  * Where the bought asset is delivered: a Stellar address (`G...`/`M...`), a
27
26
  * SEP-2 federated address, or `.xlm` name. Defaults to the logged-in account.
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { TokenMetadata, GetTokenMetadataOptions } from '@bluxcc/core';
3
- import type { QueryOptions } from '../utils';
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = TokenMetadata;
5
5
  type O = GetTokenMetadataOptions;
6
6
  /**
@@ -1,8 +1,8 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetTradeAggregationResult } from "@bluxcc/core";
3
3
  import { Asset } from '@stellar/stellar-sdk';
4
- import { CallBuilderOptions } from '../utils';
5
- import type { QueryOptions } from '../utils';
4
+ import { CallBuilderOptions } from "../utils.js";
5
+ import type { QueryOptions } from "../utils.js";
6
6
  type R = GetTradeAggregationResult;
7
7
  type O = CallBuilderOptions;
8
8
  /**
@@ -41,6 +41,6 @@ export declare function useTradeAggregation(args: [
41
41
  cursor?: string;
42
42
  limit?: number;
43
43
  network?: string;
44
- order?: 'asc' | 'desc';
44
+ order?: "asc" | "desc";
45
45
  }, queryOptions?: QueryOptions<R>): UseQueryResult<R, Error>;
46
46
  export {};
@@ -1,7 +1,6 @@
1
- import type { AssetArg } from '@bluxcc/core';
2
1
  import { UseQueryResult } from '@tanstack/react-query';
3
2
  import type { GetTradesResult, GetTradesOptions } from "@bluxcc/core";
4
- import type { QueryOptions } from "../utils";
3
+ import type { QueryOptions } from "../utils.js";
5
4
  type R = GetTradesResult;
6
5
  type O = GetTradesOptions;
7
6
  /**
@@ -32,13 +31,13 @@ export declare function useTrades(options?: {
32
31
  /** Network passphrase to query. Defaults to the active network. */
33
32
  network?: string;
34
33
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
35
- order?: 'asc' | 'desc';
34
+ order?: "asc" | "desc";
36
35
  /** Only trades for this `[base, counter]` asset pair. Each accepts `'xlm'`, `'CODE:ISSUER'`, or an `Asset`. */
37
- forAssetPair?: [base: AssetArg, counter: AssetArg];
36
+ forAssetPair?: [base: import("@bluxcc/core").AssetArg, counter: import("@bluxcc/core").AssetArg];
38
37
  /** Only trades against this offer id. */
39
38
  forOffer?: string;
40
39
  /** Only trades of this type (e.g. `orderbook`, `liquidity_pool`). */
41
- forType?: Horizon.ServerApi.TradeType;
40
+ forType?: import("@stellar/stellar-sdk").Horizon.ServerApi.TradeType;
42
41
  /** Only trades involving this account (address, SEP-2 address, or `.xlm` name). */
43
42
  forAccount?: string;
44
43
  /** Only trades for this liquidity pool id. */
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import type { GetTransactionsResult, GetTransactionsOptions } from "@bluxcc/core";
3
- import type { QueryOptions } from "../utils";
3
+ import type { QueryOptions } from "../utils.js";
4
4
  type R = GetTransactionsResult;
5
5
  type O = GetTransactionsOptions;
6
6
  /**
@@ -29,7 +29,7 @@ export declare function useTransactions(options?: {
29
29
  /** Network passphrase to query. Defaults to the active network. */
30
30
  network?: string;
31
31
  /** Sort direction by ledger sequence. Defaults to Horizon's `asc`. */
32
- order?: 'asc' | 'desc';
32
+ order?: "asc" | "desc";
33
33
  /** Only transactions touching this account (address, SEP-2 address, or `.xlm` name). */
34
34
  forAccount?: string;
35
35
  /** Only transactions affecting this claimable balance id. */
@@ -1,8 +1,7 @@
1
- import type { AssetArg, Numberish } from '@bluxcc/core';
2
1
  import { transfer } from '@bluxcc/core';
3
2
  import { UseMutationResult } from '@tanstack/react-query';
4
3
  import type { TransferOptions } from '@bluxcc/core';
5
- import type { MutationOptions } from '../utils';
4
+ import type { MutationOptions } from "../utils.js";
6
5
  type R = Awaited<ReturnType<typeof transfer>>;
7
6
  /**
8
7
  * Variables for {@link useTransfer} — the core `transfer` options verbatim, so
@@ -22,12 +21,12 @@ export type TransferVariables = {
22
21
  * assets this is a decimal amount (`"10.5"`); for a `token` it is the integer
23
22
  * base-unit amount the contract expects.
24
23
  */
25
- amount: Numberish;
24
+ amount: import("@bluxcc/core").Numberish;
26
25
  /**
27
26
  * Asset to send. Accepts `'xlm'` / `'native'`, a `CODE:ISSUER` string, or an
28
27
  * `Asset`. Defaults to the native lumen. Ignored when `token` is set.
29
28
  */
30
- asset?: AssetArg;
29
+ asset?: import("@bluxcc/core").AssetArg;
31
30
  /** Optional text memo. Ignored for `token` (Soroban) transfers. */
32
31
  memo?: string;
33
32
  /**
@@ -1,7 +1,7 @@
1
1
  import { writeContract } from '@bluxcc/core';
2
2
  import { UseMutationResult } from '@tanstack/react-query';
3
3
  import type { IContractCall, WriteContractsOptions } from '@bluxcc/core';
4
- import type { MutationOptions } from '../utils';
4
+ import type { MutationOptions } from "../utils.js";
5
5
  type CoreWriteContractResult = Awaited<ReturnType<typeof writeContract>>;
6
6
  /** Submitted transaction with a caller-specified decoded contract result. */
7
7
  export type WriteContractHookResult<TReturnValue = unknown> = Omit<CoreWriteContractResult, 'returnValue'> & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bluxcc/react",
3
3
  "author": "Blux team",
4
- "version": "0.3.8",
4
+ "version": "0.3.10",
5
5
  "homepage": "https://blux.cc",
6
6
  "description": "Connecting to the Stellar Ecosystem and Beyond",
7
7
  "repository": {
@@ -14,9 +14,9 @@
14
14
  "types": "dist/index.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
+ "types": "./dist/index.d.ts",
17
18
  "import": "./dist/index.esm.js",
18
- "require": "./dist/index.cjs.js",
19
- "types": "./dist/index.d.ts"
19
+ "require": "./dist/index.cjs.js"
20
20
  }
21
21
  },
22
22
  "engines": {
@@ -27,10 +27,12 @@
27
27
  ],
28
28
  "scripts": {
29
29
  "dev": "rollup -c rollup.config.dev.js --watch",
30
- "build": "rollup -c rollup.config.prod.js"
30
+ "build": "rollup -c rollup.config.prod.js",
31
+ "test:types": "node --test tests/public-declaration-types.test.mjs tests/packed-types.test.mjs",
32
+ "prepack": "npm run build && npm run test:types"
31
33
  },
32
34
  "peerDependencies": {
33
- "@bluxcc/core": "^0.3.8",
35
+ "@bluxcc/core": "^0.3.10",
34
36
  "@stellar/stellar-sdk": "^17.0.1",
35
37
  "@tanstack/react-query": "^5.90.11",
36
38
  "react": ">=17.0.0",
@@ -70,5 +72,8 @@
70
72
  },
71
73
  "sideEffects": [
72
74
  "*.css"
73
- ]
75
+ ],
76
+ "dependencies": {
77
+ "@bluxcc/react": "^0.3.8"
78
+ }
74
79
  }