@tuwaio/nova-connect 1.0.0-fix-test-alpha.2.3c61c83 → 1.0.0-fix-test-alpha.4.bd69225

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 (48) hide show
  1. package/dist/{chunk-EKIVAPR5.cjs → chunk-6S5OTERL.cjs} +2 -2
  2. package/dist/{chunk-EKIVAPR5.cjs.map → chunk-6S5OTERL.cjs.map} +1 -1
  3. package/dist/{chunk-RHHLGHTV.cjs → chunk-DYDY3FCT.cjs} +2 -2
  4. package/dist/{chunk-RHHLGHTV.cjs.map → chunk-DYDY3FCT.cjs.map} +1 -1
  5. package/dist/{chunk-NJDPFYUJ.js → chunk-FNWARYJY.js} +2 -2
  6. package/dist/{chunk-NJDPFYUJ.js.map → chunk-FNWARYJY.js.map} +1 -1
  7. package/dist/{chunk-KKCRUSJT.js → chunk-J4TY3CJF.js} +2 -2
  8. package/dist/{chunk-KKCRUSJT.js.map → chunk-J4TY3CJF.js.map} +1 -1
  9. package/dist/{getChainsListByWalletType-KXWMBNB4.js → getChainsListByWalletType-EO6A7Q5A.js} +2 -2
  10. package/dist/{getChainsListByWalletType-KXWMBNB4.js.map → getChainsListByWalletType-EO6A7Q5A.js.map} +1 -1
  11. package/dist/getChainsListByWalletType-ZU7OPWTP.cjs +2 -0
  12. package/dist/{getChainsListByWalletType-PPNS2YMZ.cjs.map → getChainsListByWalletType-ZU7OPWTP.cjs.map} +1 -1
  13. package/dist/index.cjs +5 -1
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +5935 -5399
  16. package/dist/index.d.ts +5935 -5399
  17. package/dist/index.js +5 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/solana/index.cjs +1 -1
  20. package/dist/solana/index.d.cts +1 -1
  21. package/dist/solana/index.d.ts +1 -1
  22. package/dist/solana/index.js +1 -1
  23. package/dist/{solana-2MXIY6UT.js → solana-GLHHYZDQ.js} +2 -2
  24. package/dist/{solana-2MXIY6UT.js.map → solana-GLHHYZDQ.js.map} +1 -1
  25. package/dist/{solana-MTTFU3UW.cjs → solana-JUU54KQ3.cjs} +2 -2
  26. package/dist/{solana-MTTFU3UW.cjs.map → solana-JUU54KQ3.cjs.map} +1 -1
  27. package/dist/{types-yzbOGSEA.d.cts → types-C0Vlrba-.d.cts} +1 -1
  28. package/dist/{types-yzbOGSEA.d.ts → types-C0Vlrba-.d.ts} +1 -1
  29. package/dist/utils-H5O25MTI.cjs +2 -0
  30. package/dist/{utils-DKLQEIST.cjs.map → utils-H5O25MTI.cjs.map} +1 -1
  31. package/dist/utils-SUIRQJIA.js +2 -0
  32. package/dist/{utils-72MDY3OH.js.map → utils-SUIRQJIA.js.map} +1 -1
  33. package/package.json +3 -8
  34. package/dist/ToastError-D24J0PWb.d.cts +0 -586
  35. package/dist/ToastError-ixUdnzTl.d.ts +0 -586
  36. package/dist/chunk-PA5HVUML.cjs +0 -6
  37. package/dist/chunk-PA5HVUML.cjs.map +0 -1
  38. package/dist/chunk-QEDV2DL5.js +0 -6
  39. package/dist/chunk-QEDV2DL5.js.map +0 -1
  40. package/dist/getChainsListByWalletType-PPNS2YMZ.cjs +0 -2
  41. package/dist/providers/index.cjs +0 -2
  42. package/dist/providers/index.cjs.map +0 -1
  43. package/dist/providers/index.d.cts +0 -110
  44. package/dist/providers/index.d.ts +0 -110
  45. package/dist/providers/index.js +0 -2
  46. package/dist/providers/index.js.map +0 -1
  47. package/dist/utils-72MDY3OH.js +0 -2
  48. package/dist/utils-DKLQEIST.cjs +0 -2
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkEKIVAPR5_cjs=require('./chunk-EKIVAPR5.cjs');Object.defineProperty(exports,"getAdapterStatus",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.k}});Object.defineProperty(exports,"getAllAdaptersStatus",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.l}});Object.defineProperty(exports,"getAvailableSolanaClusters",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.g}});Object.defineProperty(exports,"getChainsListByWalletType",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.a}});Object.defineProperty(exports,"getChainsListByWalletTypeSync",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.b}});Object.defineProperty(exports,"getWalletChains",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.i}});Object.defineProperty(exports,"isEvmChainList",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.c}});Object.defineProperty(exports,"isEvmChainListSync",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.e}});Object.defineProperty(exports,"isSolanaChainList",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.d}});Object.defineProperty(exports,"isSolanaChainListSync",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.f}});Object.defineProperty(exports,"isValidSolanaCluster",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.h}});Object.defineProperty(exports,"preloadChainAdapters",{enumerable:true,get:function(){return chunkEKIVAPR5_cjs.j}});//# sourceMappingURL=getChainsListByWalletType-PPNS2YMZ.cjs.map
2
- //# sourceMappingURL=getChainsListByWalletType-PPNS2YMZ.cjs.map
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkPA5HVUML_cjs=require('../chunk-PA5HVUML.cjs');require('../chunk-EKIVAPR5.cjs');Object.defineProperty(exports,"ErrorsProvider",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.y}});Object.defineProperty(exports,"NovaConnectLabelsProvider",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.z}});Object.defineProperty(exports,"NovaConnectProvider",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.A}});Object.defineProperty(exports,"NovaConnectProviderContext",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.e}});Object.defineProperty(exports,"NovaConnectProviderError",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.d}});Object.defineProperty(exports,"useGetWalletNameAndAvatar",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.c}});Object.defineProperty(exports,"useHasNovaConnectContext",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.g}});Object.defineProperty(exports,"useNovaConnect",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.f}});Object.defineProperty(exports,"useNovaConnectOptional",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.h}});Object.defineProperty(exports,"useWalletNativeBalance",{enumerable:true,get:function(){return chunkPA5HVUML_cjs.i}});//# sourceMappingURL=index.cjs.map
2
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -1,110 +0,0 @@
1
- import { c as NovaConnectProviderProps, b as NovaConnectProviderType, N as NovaConnectLabels } from '../ToastError-D24J0PWb.cjs';
2
- export { B as ButtonTxStatus, C as ConnectContentType, h as ConnectedContentType, o as ErrorsProvider, E as ErrorsProviderCustomization, n as ErrorsProviderProps, a as NativeBalanceResult, d as NovaConnectProvider, j as NovaConnectProviderContext, e as NovaConnectProviderCustomization, i as NovaConnectProviderError, p as NovaConnectProviderPropsWithCustomization, W as WalletBalance, k as useHasNovaConnectContext, u as useNovaConnect, l as useNovaConnectOptional, m as useWalletNativeBalance } from '../ToastError-D24J0PWb.cjs';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { ReactNode } from 'react';
5
- import '@tuwaio/satellite-core';
6
- import '@tuwaio/orbit-core';
7
- import 'zustand/index';
8
- import '../types-yzbOGSEA.cjs';
9
- import 'react-toastify';
10
-
11
- interface WalletNameAndAvatarData {
12
- /** The resolved name from the Name Service (e.g., ENS, like "alice.eth"), or null if not found. */
13
- ensName: string | null;
14
- /** The URL of the avatar associated with the name, or null if not found. */
15
- ensAvatar: string | null;
16
- /** True while the name service data is being fetched. */
17
- isLoading: boolean;
18
- /** A truncated version of the name for display, or the abbreviated address if no name. */
19
- ensNameAbbreviated: string | undefined;
20
- /** Error message if the name resolution failed. */
21
- error: string | null;
22
- /** Function to retry the name resolution manually. */
23
- retry: () => void;
24
- }
25
- interface UseGetWalletNameAndAvatarOptions extends Pick<NovaConnectProviderProps, 'store'>, Pick<NovaConnectProviderType, 'activeWallet'> {
26
- /** Number of characters to show on each side when abbreviating (default: 12) */
27
- abbreviateSymbols?: number;
28
- /** Maximum length before abbreviation is applied (default: 30) */
29
- maxNameLength?: number;
30
- /** Whether to automatically retry on failure (default: false) */
31
- autoRetry?: boolean;
32
- /** Retry delay in milliseconds (default: 3000) */
33
- retryDelay?: number;
34
- }
35
- /**
36
- * A custom hook to fetch the Name Service (e.g., ENS) name and avatar
37
- * for the currently active wallet.
38
- *
39
- * This hook automatically detects the active wallet and its corresponding
40
- * adapter via the `useSatelliteConnectStore` and attempts to resolve the
41
- * wallet address to a human-readable name and avatar.
42
- *
43
- * @param options Configuration options for the hook
44
- * @returns An object containing the resolved name, avatar, loading state, and utility functions
45
- *
46
- * @example
47
- * ```typescript
48
- * import { useGetWalletNameAndAvatar } from './useGetWalletNameAndAvatar';
49
- *
50
- * function DisplayWalletInfo() {
51
- * const { ensName, ensAvatar, isLoading, ensNameAbbreviated, error, retry } = useGetWalletNameAndAvatar({
52
- * abbreviateSymbols: 8,
53
- * maxNameLength: 25
54
- * });
55
- *
56
- * if (isLoading) {
57
- * return <div>Resolving name...</div>;
58
- * }
59
- *
60
- * if (error) {
61
- * return <div>Error: {error} <button onClick={retry}>Retry</button></div>;
62
- * }
63
- *
64
- * return (
65
- * <div className="wallet-info">
66
- * {ensAvatar && <img src={ensAvatar} alt="Wallet Avatar" />}
67
- * <p title={ensName || ''}>{ensNameAbbreviated || 'No Name Found'}</p>
68
- * </div>
69
- * );
70
- * }
71
- * ```
72
- */
73
- declare function useGetWalletNameAndAvatar(options: UseGetWalletNameAndAvatarOptions): WalletNameAndAvatarData;
74
-
75
- interface NovaConnectLabelsProviderProps {
76
- /** An object containing the custom labels */
77
- labels: NovaConnectLabels;
78
- /** The child components to render */
79
- children: ReactNode;
80
- }
81
- /**
82
- * A React component that provides a custom set of labels to all child components.
83
- * Wrap your application or component tree with this provider to apply custom translations.
84
- *
85
- * The provider uses React.memo optimization and validates labels in development mode.
86
- *
87
- * @example
88
- * ```typescript
89
- * import { NovaConnectLabelsProvider } from './NovaConnectLabelsProvider';
90
- *
91
- * function App() {
92
- * const customLabels = {
93
- * connectWallet: 'Подключить кошелек',
94
- * disconnect: 'Отключиться',
95
- * };
96
- *
97
- * return (
98
- * <NovaConnectLabelsProvider labels={customLabels}>
99
- * <YourApp />
100
- * </NovaConnectLabelsProvider>
101
- * );
102
- * }
103
- * ```
104
- */
105
- declare function NovaConnectLabelsProvider({ labels, children }: NovaConnectLabelsProviderProps): react_jsx_runtime.JSX.Element;
106
- declare namespace NovaConnectLabelsProvider {
107
- var displayName: string;
108
- }
109
-
110
- export { NovaConnectLabelsProvider, NovaConnectProviderProps, NovaConnectProviderType, type WalletNameAndAvatarData, useGetWalletNameAndAvatar };
@@ -1,110 +0,0 @@
1
- import { c as NovaConnectProviderProps, b as NovaConnectProviderType, N as NovaConnectLabels } from '../ToastError-ixUdnzTl.js';
2
- export { B as ButtonTxStatus, C as ConnectContentType, h as ConnectedContentType, o as ErrorsProvider, E as ErrorsProviderCustomization, n as ErrorsProviderProps, a as NativeBalanceResult, d as NovaConnectProvider, j as NovaConnectProviderContext, e as NovaConnectProviderCustomization, i as NovaConnectProviderError, p as NovaConnectProviderPropsWithCustomization, W as WalletBalance, k as useHasNovaConnectContext, u as useNovaConnect, l as useNovaConnectOptional, m as useWalletNativeBalance } from '../ToastError-ixUdnzTl.js';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { ReactNode } from 'react';
5
- import '@tuwaio/satellite-core';
6
- import '@tuwaio/orbit-core';
7
- import 'zustand/index';
8
- import '../types-yzbOGSEA.js';
9
- import 'react-toastify';
10
-
11
- interface WalletNameAndAvatarData {
12
- /** The resolved name from the Name Service (e.g., ENS, like "alice.eth"), or null if not found. */
13
- ensName: string | null;
14
- /** The URL of the avatar associated with the name, or null if not found. */
15
- ensAvatar: string | null;
16
- /** True while the name service data is being fetched. */
17
- isLoading: boolean;
18
- /** A truncated version of the name for display, or the abbreviated address if no name. */
19
- ensNameAbbreviated: string | undefined;
20
- /** Error message if the name resolution failed. */
21
- error: string | null;
22
- /** Function to retry the name resolution manually. */
23
- retry: () => void;
24
- }
25
- interface UseGetWalletNameAndAvatarOptions extends Pick<NovaConnectProviderProps, 'store'>, Pick<NovaConnectProviderType, 'activeWallet'> {
26
- /** Number of characters to show on each side when abbreviating (default: 12) */
27
- abbreviateSymbols?: number;
28
- /** Maximum length before abbreviation is applied (default: 30) */
29
- maxNameLength?: number;
30
- /** Whether to automatically retry on failure (default: false) */
31
- autoRetry?: boolean;
32
- /** Retry delay in milliseconds (default: 3000) */
33
- retryDelay?: number;
34
- }
35
- /**
36
- * A custom hook to fetch the Name Service (e.g., ENS) name and avatar
37
- * for the currently active wallet.
38
- *
39
- * This hook automatically detects the active wallet and its corresponding
40
- * adapter via the `useSatelliteConnectStore` and attempts to resolve the
41
- * wallet address to a human-readable name and avatar.
42
- *
43
- * @param options Configuration options for the hook
44
- * @returns An object containing the resolved name, avatar, loading state, and utility functions
45
- *
46
- * @example
47
- * ```typescript
48
- * import { useGetWalletNameAndAvatar } from './useGetWalletNameAndAvatar';
49
- *
50
- * function DisplayWalletInfo() {
51
- * const { ensName, ensAvatar, isLoading, ensNameAbbreviated, error, retry } = useGetWalletNameAndAvatar({
52
- * abbreviateSymbols: 8,
53
- * maxNameLength: 25
54
- * });
55
- *
56
- * if (isLoading) {
57
- * return <div>Resolving name...</div>;
58
- * }
59
- *
60
- * if (error) {
61
- * return <div>Error: {error} <button onClick={retry}>Retry</button></div>;
62
- * }
63
- *
64
- * return (
65
- * <div className="wallet-info">
66
- * {ensAvatar && <img src={ensAvatar} alt="Wallet Avatar" />}
67
- * <p title={ensName || ''}>{ensNameAbbreviated || 'No Name Found'}</p>
68
- * </div>
69
- * );
70
- * }
71
- * ```
72
- */
73
- declare function useGetWalletNameAndAvatar(options: UseGetWalletNameAndAvatarOptions): WalletNameAndAvatarData;
74
-
75
- interface NovaConnectLabelsProviderProps {
76
- /** An object containing the custom labels */
77
- labels: NovaConnectLabels;
78
- /** The child components to render */
79
- children: ReactNode;
80
- }
81
- /**
82
- * A React component that provides a custom set of labels to all child components.
83
- * Wrap your application or component tree with this provider to apply custom translations.
84
- *
85
- * The provider uses React.memo optimization and validates labels in development mode.
86
- *
87
- * @example
88
- * ```typescript
89
- * import { NovaConnectLabelsProvider } from './NovaConnectLabelsProvider';
90
- *
91
- * function App() {
92
- * const customLabels = {
93
- * connectWallet: 'Подключить кошелек',
94
- * disconnect: 'Отключиться',
95
- * };
96
- *
97
- * return (
98
- * <NovaConnectLabelsProvider labels={customLabels}>
99
- * <YourApp />
100
- * </NovaConnectLabelsProvider>
101
- * );
102
- * }
103
- * ```
104
- */
105
- declare function NovaConnectLabelsProvider({ labels, children }: NovaConnectLabelsProviderProps): react_jsx_runtime.JSX.Element;
106
- declare namespace NovaConnectLabelsProvider {
107
- var displayName: string;
108
- }
109
-
110
- export { NovaConnectLabelsProvider, NovaConnectProviderProps, NovaConnectProviderType, type WalletNameAndAvatarData, useGetWalletNameAndAvatar };
@@ -1,2 +0,0 @@
1
- export{y as ErrorsProvider,z as NovaConnectLabelsProvider,A as NovaConnectProvider,e as NovaConnectProviderContext,d as NovaConnectProviderError,c as useGetWalletNameAndAvatar,g as useHasNovaConnectContext,f as useNovaConnect,h as useNovaConnectOptional,i as useWalletNativeBalance}from'../chunk-QEDV2DL5.js';import'../chunk-NJDPFYUJ.js';//# sourceMappingURL=index.js.map
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,2 +0,0 @@
1
- export{c as getAvailableSolanaClusters,a as getSolanaClusters,b as isSolanaChainList,d as isValidSolanaCluster}from'./chunk-KKCRUSJT.js';//# sourceMappingURL=utils-72MDY3OH.js.map
2
- //# sourceMappingURL=utils-72MDY3OH.js.map
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkRHHLGHTV_cjs=require('./chunk-RHHLGHTV.cjs');Object.defineProperty(exports,"getAvailableSolanaClusters",{enumerable:true,get:function(){return chunkRHHLGHTV_cjs.c}});Object.defineProperty(exports,"getSolanaClusters",{enumerable:true,get:function(){return chunkRHHLGHTV_cjs.a}});Object.defineProperty(exports,"isSolanaChainList",{enumerable:true,get:function(){return chunkRHHLGHTV_cjs.b}});Object.defineProperty(exports,"isValidSolanaCluster",{enumerable:true,get:function(){return chunkRHHLGHTV_cjs.d}});//# sourceMappingURL=utils-DKLQEIST.cjs.map
2
- //# sourceMappingURL=utils-DKLQEIST.cjs.map