@tuwaio/nova-connect 1.0.0-fix-integrate-orbit-alpha.30.3d6b687 → 1.0.0-fix-test-alpha.1.1de2063
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +3 -3
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.d.cts +218 -33
- package/dist/providers/index.d.ts +218 -33
- package/dist/providers/index.js +3 -3
- package/dist/providers/index.js.map +1 -1
- package/package.json +3 -8
- package/dist/hooks/index.cjs +0 -2
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.js +0 -2
- package/dist/hooks/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -357,7 +357,7 @@ type NovaConnectLabels = {
|
|
|
357
357
|
type ButtonTxStatus = 'idle' | 'loading' | 'succeed' | 'failed' | 'replaced';
|
|
358
358
|
type ConnectContentType = 'network' | 'connectors' | 'about' | 'getWallet' | 'connecting' | 'impersonate';
|
|
359
359
|
type ConnectedContentType = 'main' | 'transactions' | 'chains';
|
|
360
|
-
interface NovaConnectProviderProps
|
|
360
|
+
interface NovaConnectProviderProps {
|
|
361
361
|
store: StoreApi<ISatelliteConnectStore<Connector, Wallet>>;
|
|
362
362
|
children: React.ReactNode;
|
|
363
363
|
labels?: Partial<NovaConnectLabels>;
|
|
@@ -409,6 +409,18 @@ interface NovaConnectProviderType {
|
|
|
409
409
|
*/
|
|
410
410
|
declare const useNovaConnect: () => NovaConnectProviderType;
|
|
411
411
|
|
|
412
|
+
/**
|
|
413
|
+
* @interface NativeBalanceResult
|
|
414
|
+
* Represents the native token balance returned by the adapter.
|
|
415
|
+
* The value is already formatted for human readability.
|
|
416
|
+
* @property {string} value The native token balance formatted to standard decimals (e.g., "1.5").
|
|
417
|
+
* @property {string} symbol The symbol of the native token (e.g., "ETH").
|
|
418
|
+
*/
|
|
419
|
+
interface NativeBalanceResult {
|
|
420
|
+
value: string;
|
|
421
|
+
symbol: string;
|
|
422
|
+
}
|
|
423
|
+
|
|
412
424
|
/**
|
|
413
425
|
* A custom hook to easily access the i18n labels from any component
|
|
414
426
|
* within the `NovaConnectLabelsProvider` tree.
|
|
@@ -451,18 +463,6 @@ declare const useNovaConnect: () => NovaConnectProviderType;
|
|
|
451
463
|
*/
|
|
452
464
|
declare const useNovaConnectLabels: () => NovaConnectLabels;
|
|
453
465
|
|
|
454
|
-
/**
|
|
455
|
-
* @interface NativeBalanceResult
|
|
456
|
-
* Represents the native token balance returned by the adapter.
|
|
457
|
-
* The value is already formatted for human readability.
|
|
458
|
-
* @property {string} value The native token balance formatted to standard decimals (e.g., "1.5").
|
|
459
|
-
* @property {string} symbol The symbol of the native token (e.g., "ETH").
|
|
460
|
-
*/
|
|
461
|
-
interface NativeBalanceResult {
|
|
462
|
-
value: string;
|
|
463
|
-
symbol: string;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
466
|
type CustomIconProps$3 = {
|
|
467
467
|
disabled: boolean;
|
|
468
468
|
className?: string;
|
|
@@ -6782,7 +6782,7 @@ type ConnectButtonCustomization = {
|
|
|
6782
6782
|
/**
|
|
6783
6783
|
* Base props for ConnectButton component
|
|
6784
6784
|
*/
|
|
6785
|
-
type ConnectButtonProps = InitialChains & Pick<NovaConnectProviderProps
|
|
6785
|
+
type ConnectButtonProps = InitialChains & Pick<NovaConnectProviderProps, 'store'> & {
|
|
6786
6786
|
/** CSS classes to apply to the button */
|
|
6787
6787
|
className?: string;
|
|
6788
6788
|
/** Transaction pool for pending transactions display */
|
|
@@ -7275,7 +7275,7 @@ type ErrorsProviderCustomization = {
|
|
|
7275
7275
|
errorType: 'wallet' | 'switch' | null;
|
|
7276
7276
|
}) => string | null;
|
|
7277
7277
|
};
|
|
7278
|
-
interface ErrorsProviderProps extends Pick<NovaConnectProviderProps
|
|
7278
|
+
interface ErrorsProviderProps extends Pick<NovaConnectProviderProps, 'store'> {
|
|
7279
7279
|
/** Custom container ID for toast notifications */
|
|
7280
7280
|
containerId?: string;
|
|
7281
7281
|
/** Custom position for toast notifications */
|
|
@@ -7375,7 +7375,7 @@ type NovaConnectProviderCustomization = {
|
|
|
7375
7375
|
/**
|
|
7376
7376
|
* Extended props for NovaConnectProvider with full customization capabilities
|
|
7377
7377
|
*/
|
|
7378
|
-
interface
|
|
7378
|
+
interface NovaConnectProviderPropsWithCustomization extends NovaConnectProviderProps {
|
|
7379
7379
|
/** Comprehensive customization options for the provider and its sub-components */
|
|
7380
7380
|
customization?: NovaConnectProviderCustomization;
|
|
7381
7381
|
}
|
|
@@ -7428,7 +7428,7 @@ interface NovaConnectProviderProps extends NovaConnectProviderProps$1 {
|
|
|
7428
7428
|
*
|
|
7429
7429
|
* @param props - Provider configuration and customization options
|
|
7430
7430
|
*/
|
|
7431
|
-
declare function NovaConnectProvider({ labels, store, children, customization }:
|
|
7431
|
+
declare function NovaConnectProvider({ labels, store, children, customization, }: NovaConnectProviderPropsWithCustomization): react_jsx_runtime.JSX.Element;
|
|
7432
7432
|
declare namespace NovaConnectProvider {
|
|
7433
7433
|
var displayName: string;
|
|
7434
7434
|
}
|
|
@@ -7438,9 +7438,9 @@ declare namespace NovaConnectProvider {
|
|
|
7438
7438
|
*/
|
|
7439
7439
|
interface NovaConnectButtonWithProviderData {
|
|
7440
7440
|
/** Store instance */
|
|
7441
|
-
store: NovaConnectProviderProps
|
|
7441
|
+
store: NovaConnectProviderProps['store'];
|
|
7442
7442
|
/** Current labels configuration */
|
|
7443
|
-
labels?: NovaConnectProviderProps
|
|
7443
|
+
labels?: NovaConnectProviderProps['labels'];
|
|
7444
7444
|
/** Whether wallet is connected */
|
|
7445
7445
|
isConnected: boolean;
|
|
7446
7446
|
/** Current provider state */
|
|
@@ -7493,7 +7493,7 @@ type NovaConnectButtonWithProviderCustomization = {
|
|
|
7493
7493
|
/** Whether to wrap in root container */
|
|
7494
7494
|
useRootContainer?: boolean;
|
|
7495
7495
|
/** Custom provider props override */
|
|
7496
|
-
providerPropsOverride?: Partial<NovaConnectProviderProps
|
|
7496
|
+
providerPropsOverride?: Partial<NovaConnectProviderProps>;
|
|
7497
7497
|
/** Custom connect button props override */
|
|
7498
7498
|
connectButtonPropsOverride?: Partial<ConnectButtonProps>;
|
|
7499
7499
|
};
|
|
@@ -7501,7 +7501,7 @@ type NovaConnectButtonWithProviderCustomization = {
|
|
|
7501
7501
|
/**
|
|
7502
7502
|
* Props for the complete NovaConnectButton component with provider integration
|
|
7503
7503
|
*/
|
|
7504
|
-
type NovaConnectButtonProps = Omit<ConnectButtonProps, 'store'> & Pick<NovaConnectProviderProps
|
|
7504
|
+
type NovaConnectButtonProps = Omit<ConnectButtonProps, 'store'> & Pick<NovaConnectProviderProps, 'store' | 'labels'> & {
|
|
7505
7505
|
/** Complete customization options */
|
|
7506
7506
|
customization?: NovaConnectButtonWithProviderCustomization;
|
|
7507
7507
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -357,7 +357,7 @@ type NovaConnectLabels = {
|
|
|
357
357
|
type ButtonTxStatus = 'idle' | 'loading' | 'succeed' | 'failed' | 'replaced';
|
|
358
358
|
type ConnectContentType = 'network' | 'connectors' | 'about' | 'getWallet' | 'connecting' | 'impersonate';
|
|
359
359
|
type ConnectedContentType = 'main' | 'transactions' | 'chains';
|
|
360
|
-
interface NovaConnectProviderProps
|
|
360
|
+
interface NovaConnectProviderProps {
|
|
361
361
|
store: StoreApi<ISatelliteConnectStore<Connector, Wallet>>;
|
|
362
362
|
children: React.ReactNode;
|
|
363
363
|
labels?: Partial<NovaConnectLabels>;
|
|
@@ -409,6 +409,18 @@ interface NovaConnectProviderType {
|
|
|
409
409
|
*/
|
|
410
410
|
declare const useNovaConnect: () => NovaConnectProviderType;
|
|
411
411
|
|
|
412
|
+
/**
|
|
413
|
+
* @interface NativeBalanceResult
|
|
414
|
+
* Represents the native token balance returned by the adapter.
|
|
415
|
+
* The value is already formatted for human readability.
|
|
416
|
+
* @property {string} value The native token balance formatted to standard decimals (e.g., "1.5").
|
|
417
|
+
* @property {string} symbol The symbol of the native token (e.g., "ETH").
|
|
418
|
+
*/
|
|
419
|
+
interface NativeBalanceResult {
|
|
420
|
+
value: string;
|
|
421
|
+
symbol: string;
|
|
422
|
+
}
|
|
423
|
+
|
|
412
424
|
/**
|
|
413
425
|
* A custom hook to easily access the i18n labels from any component
|
|
414
426
|
* within the `NovaConnectLabelsProvider` tree.
|
|
@@ -451,18 +463,6 @@ declare const useNovaConnect: () => NovaConnectProviderType;
|
|
|
451
463
|
*/
|
|
452
464
|
declare const useNovaConnectLabels: () => NovaConnectLabels;
|
|
453
465
|
|
|
454
|
-
/**
|
|
455
|
-
* @interface NativeBalanceResult
|
|
456
|
-
* Represents the native token balance returned by the adapter.
|
|
457
|
-
* The value is already formatted for human readability.
|
|
458
|
-
* @property {string} value The native token balance formatted to standard decimals (e.g., "1.5").
|
|
459
|
-
* @property {string} symbol The symbol of the native token (e.g., "ETH").
|
|
460
|
-
*/
|
|
461
|
-
interface NativeBalanceResult {
|
|
462
|
-
value: string;
|
|
463
|
-
symbol: string;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
466
|
type CustomIconProps$3 = {
|
|
467
467
|
disabled: boolean;
|
|
468
468
|
className?: string;
|
|
@@ -6782,7 +6782,7 @@ type ConnectButtonCustomization = {
|
|
|
6782
6782
|
/**
|
|
6783
6783
|
* Base props for ConnectButton component
|
|
6784
6784
|
*/
|
|
6785
|
-
type ConnectButtonProps = InitialChains & Pick<NovaConnectProviderProps
|
|
6785
|
+
type ConnectButtonProps = InitialChains & Pick<NovaConnectProviderProps, 'store'> & {
|
|
6786
6786
|
/** CSS classes to apply to the button */
|
|
6787
6787
|
className?: string;
|
|
6788
6788
|
/** Transaction pool for pending transactions display */
|
|
@@ -7275,7 +7275,7 @@ type ErrorsProviderCustomization = {
|
|
|
7275
7275
|
errorType: 'wallet' | 'switch' | null;
|
|
7276
7276
|
}) => string | null;
|
|
7277
7277
|
};
|
|
7278
|
-
interface ErrorsProviderProps extends Pick<NovaConnectProviderProps
|
|
7278
|
+
interface ErrorsProviderProps extends Pick<NovaConnectProviderProps, 'store'> {
|
|
7279
7279
|
/** Custom container ID for toast notifications */
|
|
7280
7280
|
containerId?: string;
|
|
7281
7281
|
/** Custom position for toast notifications */
|
|
@@ -7375,7 +7375,7 @@ type NovaConnectProviderCustomization = {
|
|
|
7375
7375
|
/**
|
|
7376
7376
|
* Extended props for NovaConnectProvider with full customization capabilities
|
|
7377
7377
|
*/
|
|
7378
|
-
interface
|
|
7378
|
+
interface NovaConnectProviderPropsWithCustomization extends NovaConnectProviderProps {
|
|
7379
7379
|
/** Comprehensive customization options for the provider and its sub-components */
|
|
7380
7380
|
customization?: NovaConnectProviderCustomization;
|
|
7381
7381
|
}
|
|
@@ -7428,7 +7428,7 @@ interface NovaConnectProviderProps extends NovaConnectProviderProps$1 {
|
|
|
7428
7428
|
*
|
|
7429
7429
|
* @param props - Provider configuration and customization options
|
|
7430
7430
|
*/
|
|
7431
|
-
declare function NovaConnectProvider({ labels, store, children, customization }:
|
|
7431
|
+
declare function NovaConnectProvider({ labels, store, children, customization, }: NovaConnectProviderPropsWithCustomization): react_jsx_runtime.JSX.Element;
|
|
7432
7432
|
declare namespace NovaConnectProvider {
|
|
7433
7433
|
var displayName: string;
|
|
7434
7434
|
}
|
|
@@ -7438,9 +7438,9 @@ declare namespace NovaConnectProvider {
|
|
|
7438
7438
|
*/
|
|
7439
7439
|
interface NovaConnectButtonWithProviderData {
|
|
7440
7440
|
/** Store instance */
|
|
7441
|
-
store: NovaConnectProviderProps
|
|
7441
|
+
store: NovaConnectProviderProps['store'];
|
|
7442
7442
|
/** Current labels configuration */
|
|
7443
|
-
labels?: NovaConnectProviderProps
|
|
7443
|
+
labels?: NovaConnectProviderProps['labels'];
|
|
7444
7444
|
/** Whether wallet is connected */
|
|
7445
7445
|
isConnected: boolean;
|
|
7446
7446
|
/** Current provider state */
|
|
@@ -7493,7 +7493,7 @@ type NovaConnectButtonWithProviderCustomization = {
|
|
|
7493
7493
|
/** Whether to wrap in root container */
|
|
7494
7494
|
useRootContainer?: boolean;
|
|
7495
7495
|
/** Custom provider props override */
|
|
7496
|
-
providerPropsOverride?: Partial<NovaConnectProviderProps
|
|
7496
|
+
providerPropsOverride?: Partial<NovaConnectProviderProps>;
|
|
7497
7497
|
/** Custom connect button props override */
|
|
7498
7498
|
connectButtonPropsOverride?: Partial<ConnectButtonProps>;
|
|
7499
7499
|
};
|
|
@@ -7501,7 +7501,7 @@ type NovaConnectButtonWithProviderCustomization = {
|
|
|
7501
7501
|
/**
|
|
7502
7502
|
* Props for the complete NovaConnectButton component with provider integration
|
|
7503
7503
|
*/
|
|
7504
|
-
type NovaConnectButtonProps = Omit<ConnectButtonProps, 'store'> & Pick<NovaConnectProviderProps
|
|
7504
|
+
type NovaConnectButtonProps = Omit<ConnectButtonProps, 'store'> & Pick<NovaConnectProviderProps, 'store' | 'labels'> & {
|
|
7505
7505
|
/** Complete customization options */
|
|
7506
7506
|
customization?: NovaConnectButtonWithProviderCustomization;
|
|
7507
7507
|
};
|