@tuwaio/nova-connect 1.0.0-fix-packages-alpha.1.901cdf5 → 1.0.0-fix-packages-alpha.2.4da4f4c
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/{ToastError-BLFMIzVb.d.ts → ToastError-DYsDxJFa.d.ts} +24 -35
- package/dist/{ToastError-CaoiEVOK.d.cts → ToastError-Dsvd_ihU.d.cts} +24 -35
- package/dist/chunk-6DTDABLH.js +6 -0
- package/dist/chunk-6DTDABLH.js.map +1 -0
- package/dist/chunk-7OWIFKZE.cjs +3 -0
- package/dist/chunk-7OWIFKZE.cjs.map +1 -0
- package/dist/chunk-B2NRY4JV.js +2 -0
- package/dist/chunk-B2NRY4JV.js.map +1 -0
- package/dist/chunk-CZLELKCK.js +3 -0
- package/dist/chunk-CZLELKCK.js.map +1 -0
- package/dist/chunk-F2VSTHQ4.js +2 -0
- package/dist/chunk-F2VSTHQ4.js.map +1 -0
- package/dist/{chunk-OA6MB7CZ.cjs → chunk-FK4AEST5.cjs} +2 -2
- package/dist/{chunk-OA6MB7CZ.cjs.map → chunk-FK4AEST5.cjs.map} +1 -1
- package/dist/chunk-HWK6XNDD.cjs +2 -0
- package/dist/chunk-HWK6XNDD.cjs.map +1 -0
- package/dist/chunk-L5MEEHVK.cjs +2 -0
- package/dist/chunk-L5MEEHVK.cjs.map +1 -0
- package/dist/chunk-P5ZBSLGK.js +2 -0
- package/dist/{chunk-MPEJHQKC.js.map → chunk-P5ZBSLGK.js.map} +1 -1
- package/dist/chunk-Q646MQX2.cjs +6 -0
- package/dist/chunk-Q646MQX2.cjs.map +1 -0
- package/dist/chunk-YI7RYSN6.cjs +2 -0
- package/dist/chunk-YI7RYSN6.cjs.map +1 -0
- package/dist/chunk-ZKENDEEY.js +2 -0
- package/dist/chunk-ZKENDEEY.js.map +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +1 -1
- package/dist/evm-BVE2G4MP.js +2 -0
- package/dist/evm-BVE2G4MP.js.map +1 -0
- package/dist/evm-DU3VGIPD.cjs +2 -0
- package/dist/evm-DU3VGIPD.cjs.map +1 -0
- package/dist/getChainsListByConnectorType-7W3NDNRC.cjs +2 -0
- package/dist/{getChainsListByWalletType-VMQ4BO2B.js.map → getChainsListByConnectorType-7W3NDNRC.cjs.map} +1 -1
- package/dist/getChainsListByConnectorType-FGTS3CWJ.js +2 -0
- package/dist/{getChainsListByWalletType-CDPECVNS.cjs.map → getChainsListByConnectorType-FGTS3CWJ.js.map} +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.cts +23 -4
- package/dist/hooks/index.d.ts +23 -4
- package/dist/hooks/index.js +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.d.cts +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +31 -7
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/satellite/index.cjs +1 -1
- package/dist/satellite/index.d.cts +1 -1
- package/dist/satellite/index.d.ts +1 -1
- package/dist/satellite/index.js +1 -1
- package/dist/solana/index.cjs +1 -1
- package/dist/solana/index.js +1 -1
- package/dist/solana-CDGGMN74.cjs +2 -0
- package/dist/solana-CDGGMN74.cjs.map +1 -0
- package/dist/solana-DHXEV2TG.js +2 -0
- package/dist/solana-DHXEV2TG.js.map +1 -0
- package/dist/{types-D4Vti05g.d.cts → types-C81YJbpy.d.cts} +3 -0
- package/dist/{types-D4Vti05g.d.ts → types-C81YJbpy.d.ts} +3 -0
- package/dist/{useWalletNativeBalance-DSt1VUWC.d.cts → useWalletNativeBalance-9YgoXwBH.d.cts} +2 -2
- package/dist/{useWalletNativeBalance-CEASeZ6Z.d.ts → useWalletNativeBalance-DSYfGV0p.d.ts} +2 -2
- package/dist/utils-TF3RVHPT.cjs +2 -0
- package/dist/{utils-H5O25MTI.cjs.map → utils-TF3RVHPT.cjs.map} +1 -1
- package/dist/utils-YYMTL3XH.js +2 -0
- package/dist/{utils-SUIRQJIA.js.map → utils-YYMTL3XH.js.map} +1 -1
- package/package.json +19 -19
- package/dist/chunk-7F5QM2LC.js +0 -6
- package/dist/chunk-7F5QM2LC.js.map +0 -1
- package/dist/chunk-7FTV55DQ.cjs +0 -2
- package/dist/chunk-7FTV55DQ.cjs.map +0 -1
- package/dist/chunk-B26D6OI7.cjs +0 -6
- package/dist/chunk-B26D6OI7.cjs.map +0 -1
- package/dist/chunk-DYDY3FCT.cjs +0 -2
- package/dist/chunk-DYDY3FCT.cjs.map +0 -1
- package/dist/chunk-J4TY3CJF.js +0 -2
- package/dist/chunk-J4TY3CJF.js.map +0 -1
- package/dist/chunk-MPEJHQKC.js +0 -2
- package/dist/chunk-MQGDTFY7.js +0 -2
- package/dist/chunk-MQGDTFY7.js.map +0 -1
- package/dist/chunk-NMQZA377.cjs +0 -2
- package/dist/chunk-NMQZA377.cjs.map +0 -1
- package/dist/chunk-QERPNHKX.cjs +0 -2
- package/dist/chunk-QERPNHKX.cjs.map +0 -1
- package/dist/chunk-S5WT3DLF.js +0 -2
- package/dist/chunk-S5WT3DLF.js.map +0 -1
- package/dist/chunk-TAV7EL23.js +0 -2
- package/dist/chunk-TAV7EL23.js.map +0 -1
- package/dist/evm-7NHOTSAK.cjs +0 -2
- package/dist/evm-7NHOTSAK.cjs.map +0 -1
- package/dist/evm-RBGEX4L3.js +0 -2
- package/dist/evm-RBGEX4L3.js.map +0 -1
- package/dist/getChainsListByWalletType-CDPECVNS.cjs +0 -2
- package/dist/getChainsListByWalletType-VMQ4BO2B.js +0 -2
- package/dist/solana-GLHHYZDQ.js +0 -2
- package/dist/solana-GLHHYZDQ.js.map +0 -1
- package/dist/solana-JUU54KQ3.cjs +0 -2
- package/dist/solana-JUU54KQ3.cjs.map +0 -1
- package/dist/utils-H5O25MTI.cjs +0 -2
- package/dist/utils-SUIRQJIA.js +0 -2
|
@@ -2,13 +2,13 @@ import { Dialog, DialogContent, StarsBackground } from '@tuwaio/nova-core';
|
|
|
2
2
|
import { TargetAndTransition, VariantLabels, LegacyAnimationControls, Transition, AnyResolvedKeyframe, HTMLMotionProps, Variants, Easing, motion } from 'framer-motion';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ComponentType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
5
|
-
import { B as ButtonTxStatus, b as NovaConnectProviderProps, h as useNovaConnectLabels, p as NativeBalanceResult, C as ConnectContentType } from './useWalletNativeBalance-
|
|
6
|
-
import {
|
|
5
|
+
import { B as ButtonTxStatus, b as NovaConnectProviderProps, h as useNovaConnectLabels, p as NativeBalanceResult, a as ConnectedContentType, C as ConnectContentType } from './useWalletNativeBalance-DSYfGV0p.js';
|
|
6
|
+
import { BaseConnector } from '@tuwaio/satellite-core';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import * as Select from '@radix-ui/react-select';
|
|
9
9
|
import { I as InitialChains } from './types-DGsiEwne.js';
|
|
10
10
|
import { Transaction } from '@tuwaio/pulsar-core';
|
|
11
|
-
import { OrbitAdapter,
|
|
11
|
+
import { OrbitAdapter, RecentlyConnectedConnectorData, ConnectorType } from '@tuwaio/orbit-core';
|
|
12
12
|
import { Connector } from '@tuwaio/satellite-react';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -609,15 +609,6 @@ type CustomTriggerArrowProps = {
|
|
|
609
609
|
/** Whether hidden from screen readers */
|
|
610
610
|
'aria-hidden'?: boolean;
|
|
611
611
|
};
|
|
612
|
-
/**
|
|
613
|
-
* Props for a custom loading state display.
|
|
614
|
-
*/
|
|
615
|
-
type CustomLoadingStateProps = {
|
|
616
|
-
/** CSS class */
|
|
617
|
-
className?: string;
|
|
618
|
-
/** ARIA label */
|
|
619
|
-
'aria-label': string;
|
|
620
|
-
};
|
|
621
612
|
/**
|
|
622
613
|
* Props for a custom display for a single chain (when no selector is needed).
|
|
623
614
|
*/
|
|
@@ -743,8 +734,6 @@ type ChainTriggerButtonCustomization = {
|
|
|
743
734
|
type ChainSelectorCustomization = {
|
|
744
735
|
/** Custom component overrides */
|
|
745
736
|
components?: {
|
|
746
|
-
/** Custom loading state component */
|
|
747
|
-
LoadingState?: ComponentType<CustomLoadingStateProps>;
|
|
748
737
|
/** Custom component for displaying a single chain */
|
|
749
738
|
SingleChainDisplay?: ComponentType<CustomSingleChainDisplayProps>;
|
|
750
739
|
/** Custom wrapper for the desktop selector */
|
|
@@ -1459,7 +1448,7 @@ interface ConnectButtonData {
|
|
|
1459
1448
|
/** Current labels from i18n */
|
|
1460
1449
|
labels: ReturnType<typeof useNovaConnectLabels>;
|
|
1461
1450
|
/** Active wallet information */
|
|
1462
|
-
|
|
1451
|
+
activeConnection: BaseConnector | undefined;
|
|
1463
1452
|
}
|
|
1464
1453
|
type NavigationProps$1 = {
|
|
1465
1454
|
className?: string;
|
|
@@ -1621,6 +1610,7 @@ type CustomDisconnectButtonProps = {
|
|
|
1621
1610
|
'data-testid'?: string;
|
|
1622
1611
|
'aria-describedby'?: string;
|
|
1623
1612
|
disabled?: boolean;
|
|
1613
|
+
connectionsCount: number;
|
|
1624
1614
|
};
|
|
1625
1615
|
type CustomExplorerLinkProps = {
|
|
1626
1616
|
href: string;
|
|
@@ -1910,14 +1900,14 @@ declare const ConnectedModalFooter: React$1.ForwardRefExoticComponent<ConnectedM
|
|
|
1910
1900
|
|
|
1911
1901
|
type WalletNameDisplayProps = {
|
|
1912
1902
|
ensNameAbbreviated?: string;
|
|
1913
|
-
|
|
1903
|
+
activeConnection: BaseConnector;
|
|
1914
1904
|
labels: Record<string, string>;
|
|
1915
1905
|
className?: string;
|
|
1916
1906
|
};
|
|
1917
1907
|
type CopyButtonProps = {
|
|
1918
1908
|
isCopied: boolean;
|
|
1919
1909
|
onCopy: () => Promise<void>;
|
|
1920
|
-
|
|
1910
|
+
activeConnection: BaseConnector;
|
|
1921
1911
|
labels: Record<string, string>;
|
|
1922
1912
|
className?: string;
|
|
1923
1913
|
disabled?: boolean;
|
|
@@ -1930,7 +1920,7 @@ type BalanceDisplayProps = {
|
|
|
1930
1920
|
};
|
|
1931
1921
|
type ScreenReaderFeedbackProps = {
|
|
1932
1922
|
isCopied: boolean;
|
|
1933
|
-
|
|
1923
|
+
activeConnection: BaseConnector;
|
|
1934
1924
|
labels: Record<string, string>;
|
|
1935
1925
|
className?: string;
|
|
1936
1926
|
};
|
|
@@ -2493,7 +2483,7 @@ type LoadingIndicatorProps = {
|
|
|
2493
2483
|
className?: string;
|
|
2494
2484
|
};
|
|
2495
2485
|
type AvatarSectionProps = {
|
|
2496
|
-
|
|
2486
|
+
activeConnection: BaseConnector;
|
|
2497
2487
|
ensAvatar: string | null;
|
|
2498
2488
|
walletName: string;
|
|
2499
2489
|
connectorsCount: number;
|
|
@@ -2755,8 +2745,8 @@ interface ConnectedModalMainContentProps extends Pick<NovaConnectProviderProps,
|
|
|
2755
2745
|
* components: {
|
|
2756
2746
|
* LoadingIndicator: ({ isLoading }) =>
|
|
2757
2747
|
* isLoading ? <div className="custom-spinner" /> : null,
|
|
2758
|
-
* AvatarSection: ({
|
|
2759
|
-
* <div onClick={onSwitchWallet}>Custom Avatar: {
|
|
2748
|
+
* AvatarSection: ({ activeConnection, onSwitchWallet }) => (
|
|
2749
|
+
* <div onClick={onSwitchWallet}>Custom Avatar: {activeConnection.address}</div>
|
|
2760
2750
|
* ),
|
|
2761
2751
|
* },
|
|
2762
2752
|
* childCustomizations: {
|
|
@@ -2808,7 +2798,7 @@ type CustomNoWalletContainerProps = {
|
|
|
2808
2798
|
};
|
|
2809
2799
|
type CustomTransactionsHistoryWrapperProps = {
|
|
2810
2800
|
children: ReactNode;
|
|
2811
|
-
|
|
2801
|
+
activeConnectionAddress: string;
|
|
2812
2802
|
transactionPool: NonNullable<NovaConnectProviderProps['transactionPool']>;
|
|
2813
2803
|
pulsarAdapter: NonNullable<NovaConnectProviderProps['pulsarAdapter']>;
|
|
2814
2804
|
labels: Record<string, string>;
|
|
@@ -3017,9 +3007,8 @@ declare const ConnectedModalTxHistory: React__default.ForwardRefExoticComponent<
|
|
|
3017
3007
|
* @file ConnectedModal component with comprehensive customization options for all child components.
|
|
3018
3008
|
*/
|
|
3019
3009
|
|
|
3020
|
-
type ConnectedModalContentType = 'main' | 'transactions' | 'chains';
|
|
3021
3010
|
type HeaderProps = {
|
|
3022
|
-
contentType:
|
|
3011
|
+
contentType: ConnectedContentType;
|
|
3023
3012
|
title: string;
|
|
3024
3013
|
onBack: () => void;
|
|
3025
3014
|
onClose: () => void;
|
|
@@ -3041,7 +3030,7 @@ type CloseButtonProps$1 = {
|
|
|
3041
3030
|
className?: string;
|
|
3042
3031
|
};
|
|
3043
3032
|
type MainContentProps$1 = Pick<NovaConnectProviderProps, 'transactionPool' | 'pulsarAdapter'> & {
|
|
3044
|
-
contentType:
|
|
3033
|
+
contentType: ConnectedContentType;
|
|
3045
3034
|
balance: NativeBalanceResult | null;
|
|
3046
3035
|
ensNameAbbreviated: string | undefined;
|
|
3047
3036
|
avatarIsLoading: boolean;
|
|
@@ -3107,30 +3096,30 @@ type ConnectedModalCustomization = {
|
|
|
3107
3096
|
dialog?: () => string;
|
|
3108
3097
|
/** Function to generate dialog content classes */
|
|
3109
3098
|
dialogContent?: (params: {
|
|
3110
|
-
contentType:
|
|
3099
|
+
contentType: ConnectedContentType;
|
|
3111
3100
|
hasActiveWallet: boolean;
|
|
3112
3101
|
}) => string;
|
|
3113
3102
|
/** Function to generate motion container classes */
|
|
3114
3103
|
motionContainer?: () => string;
|
|
3115
3104
|
/** Function to generate content container classes */
|
|
3116
3105
|
contentContainer?: (params: {
|
|
3117
|
-
contentType:
|
|
3106
|
+
contentType: ConnectedContentType;
|
|
3118
3107
|
}) => string;
|
|
3119
3108
|
/** Function to generate header classes */
|
|
3120
3109
|
header?: (params: {
|
|
3121
|
-
contentType:
|
|
3110
|
+
contentType: ConnectedContentType;
|
|
3122
3111
|
}) => string;
|
|
3123
3112
|
/** Function to generate back button classes */
|
|
3124
3113
|
backButton?: () => string;
|
|
3125
3114
|
/** Function to generate title classes */
|
|
3126
3115
|
title?: (params: {
|
|
3127
|
-
contentType:
|
|
3116
|
+
contentType: ConnectedContentType;
|
|
3128
3117
|
}) => string;
|
|
3129
3118
|
/** Function to generate close button classes */
|
|
3130
3119
|
closeButton?: () => string;
|
|
3131
3120
|
/** Function to generate main content classes */
|
|
3132
3121
|
mainContent?: (params: {
|
|
3133
|
-
contentType:
|
|
3122
|
+
contentType: ConnectedContentType;
|
|
3134
3123
|
}) => string;
|
|
3135
3124
|
/** Function to generate footer classes */
|
|
3136
3125
|
footer?: () => string;
|
|
@@ -3181,7 +3170,7 @@ type ConnectedModalCustomization = {
|
|
|
3181
3170
|
/** Custom handler for chain change */
|
|
3182
3171
|
onChainChange?: (chainId: string) => void;
|
|
3183
3172
|
/** Custom handler for content type change */
|
|
3184
|
-
onContentTypeChange?: (type:
|
|
3173
|
+
onContentTypeChange?: (type: ConnectedContentType) => void;
|
|
3185
3174
|
};
|
|
3186
3175
|
/** Child component customizations */
|
|
3187
3176
|
childCustomizations?: {
|
|
@@ -3854,7 +3843,7 @@ interface ConnectorsBlockData {
|
|
|
3854
3843
|
/** Whether there are connectors to display */
|
|
3855
3844
|
hasConnectors: boolean;
|
|
3856
3845
|
/** Recent wallets data */
|
|
3857
|
-
recentWallets:
|
|
3846
|
+
recentWallets: [string, RecentlyConnectedConnectorData][] | null;
|
|
3858
3847
|
/** Section ID for accessibility */
|
|
3859
3848
|
sectionId: string;
|
|
3860
3849
|
}
|
|
@@ -5301,7 +5290,7 @@ interface NetworkSelectionsProps {
|
|
|
5301
5290
|
/** Array of grouped wallet connectors with their supported networks */
|
|
5302
5291
|
connectors: GroupedConnector[];
|
|
5303
5292
|
/** Click handler for network selection */
|
|
5304
|
-
onClick: (adapter: OrbitAdapter,
|
|
5293
|
+
onClick: (adapter: OrbitAdapter, connectorType: ConnectorType) => Promise<void>;
|
|
5305
5294
|
/** Customization options */
|
|
5306
5295
|
customization?: NetworkSelectionsCustomization;
|
|
5307
5296
|
}
|
|
@@ -5347,8 +5336,8 @@ interface NetworkSelectionsProps {
|
|
|
5347
5336
|
* <NetworkSelections
|
|
5348
5337
|
* activeConnector="metamask"
|
|
5349
5338
|
* connectors={multiNetworkConnectors}
|
|
5350
|
-
* onClick={async (adapter,
|
|
5351
|
-
* await connectToNetwork(adapter,
|
|
5339
|
+
* onClick={async (adapter, connectorType) => {
|
|
5340
|
+
* await connectToNetwork(adapter, connectorType);
|
|
5352
5341
|
* }}
|
|
5353
5342
|
* />
|
|
5354
5343
|
* ```
|
|
@@ -2,13 +2,13 @@ import { Dialog, DialogContent, StarsBackground } from '@tuwaio/nova-core';
|
|
|
2
2
|
import { TargetAndTransition, VariantLabels, LegacyAnimationControls, Transition, AnyResolvedKeyframe, HTMLMotionProps, Variants, Easing, motion } from 'framer-motion';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ComponentType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
5
|
-
import { B as ButtonTxStatus, b as NovaConnectProviderProps, h as useNovaConnectLabels, p as NativeBalanceResult, C as ConnectContentType } from './useWalletNativeBalance-
|
|
6
|
-
import {
|
|
5
|
+
import { B as ButtonTxStatus, b as NovaConnectProviderProps, h as useNovaConnectLabels, p as NativeBalanceResult, a as ConnectedContentType, C as ConnectContentType } from './useWalletNativeBalance-9YgoXwBH.cjs';
|
|
6
|
+
import { BaseConnector } from '@tuwaio/satellite-core';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import * as Select from '@radix-ui/react-select';
|
|
9
9
|
import { I as InitialChains } from './types-DGsiEwne.cjs';
|
|
10
10
|
import { Transaction } from '@tuwaio/pulsar-core';
|
|
11
|
-
import { OrbitAdapter,
|
|
11
|
+
import { OrbitAdapter, RecentlyConnectedConnectorData, ConnectorType } from '@tuwaio/orbit-core';
|
|
12
12
|
import { Connector } from '@tuwaio/satellite-react';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -609,15 +609,6 @@ type CustomTriggerArrowProps = {
|
|
|
609
609
|
/** Whether hidden from screen readers */
|
|
610
610
|
'aria-hidden'?: boolean;
|
|
611
611
|
};
|
|
612
|
-
/**
|
|
613
|
-
* Props for a custom loading state display.
|
|
614
|
-
*/
|
|
615
|
-
type CustomLoadingStateProps = {
|
|
616
|
-
/** CSS class */
|
|
617
|
-
className?: string;
|
|
618
|
-
/** ARIA label */
|
|
619
|
-
'aria-label': string;
|
|
620
|
-
};
|
|
621
612
|
/**
|
|
622
613
|
* Props for a custom display for a single chain (when no selector is needed).
|
|
623
614
|
*/
|
|
@@ -743,8 +734,6 @@ type ChainTriggerButtonCustomization = {
|
|
|
743
734
|
type ChainSelectorCustomization = {
|
|
744
735
|
/** Custom component overrides */
|
|
745
736
|
components?: {
|
|
746
|
-
/** Custom loading state component */
|
|
747
|
-
LoadingState?: ComponentType<CustomLoadingStateProps>;
|
|
748
737
|
/** Custom component for displaying a single chain */
|
|
749
738
|
SingleChainDisplay?: ComponentType<CustomSingleChainDisplayProps>;
|
|
750
739
|
/** Custom wrapper for the desktop selector */
|
|
@@ -1459,7 +1448,7 @@ interface ConnectButtonData {
|
|
|
1459
1448
|
/** Current labels from i18n */
|
|
1460
1449
|
labels: ReturnType<typeof useNovaConnectLabels>;
|
|
1461
1450
|
/** Active wallet information */
|
|
1462
|
-
|
|
1451
|
+
activeConnection: BaseConnector | undefined;
|
|
1463
1452
|
}
|
|
1464
1453
|
type NavigationProps$1 = {
|
|
1465
1454
|
className?: string;
|
|
@@ -1621,6 +1610,7 @@ type CustomDisconnectButtonProps = {
|
|
|
1621
1610
|
'data-testid'?: string;
|
|
1622
1611
|
'aria-describedby'?: string;
|
|
1623
1612
|
disabled?: boolean;
|
|
1613
|
+
connectionsCount: number;
|
|
1624
1614
|
};
|
|
1625
1615
|
type CustomExplorerLinkProps = {
|
|
1626
1616
|
href: string;
|
|
@@ -1910,14 +1900,14 @@ declare const ConnectedModalFooter: React$1.ForwardRefExoticComponent<ConnectedM
|
|
|
1910
1900
|
|
|
1911
1901
|
type WalletNameDisplayProps = {
|
|
1912
1902
|
ensNameAbbreviated?: string;
|
|
1913
|
-
|
|
1903
|
+
activeConnection: BaseConnector;
|
|
1914
1904
|
labels: Record<string, string>;
|
|
1915
1905
|
className?: string;
|
|
1916
1906
|
};
|
|
1917
1907
|
type CopyButtonProps = {
|
|
1918
1908
|
isCopied: boolean;
|
|
1919
1909
|
onCopy: () => Promise<void>;
|
|
1920
|
-
|
|
1910
|
+
activeConnection: BaseConnector;
|
|
1921
1911
|
labels: Record<string, string>;
|
|
1922
1912
|
className?: string;
|
|
1923
1913
|
disabled?: boolean;
|
|
@@ -1930,7 +1920,7 @@ type BalanceDisplayProps = {
|
|
|
1930
1920
|
};
|
|
1931
1921
|
type ScreenReaderFeedbackProps = {
|
|
1932
1922
|
isCopied: boolean;
|
|
1933
|
-
|
|
1923
|
+
activeConnection: BaseConnector;
|
|
1934
1924
|
labels: Record<string, string>;
|
|
1935
1925
|
className?: string;
|
|
1936
1926
|
};
|
|
@@ -2493,7 +2483,7 @@ type LoadingIndicatorProps = {
|
|
|
2493
2483
|
className?: string;
|
|
2494
2484
|
};
|
|
2495
2485
|
type AvatarSectionProps = {
|
|
2496
|
-
|
|
2486
|
+
activeConnection: BaseConnector;
|
|
2497
2487
|
ensAvatar: string | null;
|
|
2498
2488
|
walletName: string;
|
|
2499
2489
|
connectorsCount: number;
|
|
@@ -2755,8 +2745,8 @@ interface ConnectedModalMainContentProps extends Pick<NovaConnectProviderProps,
|
|
|
2755
2745
|
* components: {
|
|
2756
2746
|
* LoadingIndicator: ({ isLoading }) =>
|
|
2757
2747
|
* isLoading ? <div className="custom-spinner" /> : null,
|
|
2758
|
-
* AvatarSection: ({
|
|
2759
|
-
* <div onClick={onSwitchWallet}>Custom Avatar: {
|
|
2748
|
+
* AvatarSection: ({ activeConnection, onSwitchWallet }) => (
|
|
2749
|
+
* <div onClick={onSwitchWallet}>Custom Avatar: {activeConnection.address}</div>
|
|
2760
2750
|
* ),
|
|
2761
2751
|
* },
|
|
2762
2752
|
* childCustomizations: {
|
|
@@ -2808,7 +2798,7 @@ type CustomNoWalletContainerProps = {
|
|
|
2808
2798
|
};
|
|
2809
2799
|
type CustomTransactionsHistoryWrapperProps = {
|
|
2810
2800
|
children: ReactNode;
|
|
2811
|
-
|
|
2801
|
+
activeConnectionAddress: string;
|
|
2812
2802
|
transactionPool: NonNullable<NovaConnectProviderProps['transactionPool']>;
|
|
2813
2803
|
pulsarAdapter: NonNullable<NovaConnectProviderProps['pulsarAdapter']>;
|
|
2814
2804
|
labels: Record<string, string>;
|
|
@@ -3017,9 +3007,8 @@ declare const ConnectedModalTxHistory: React__default.ForwardRefExoticComponent<
|
|
|
3017
3007
|
* @file ConnectedModal component with comprehensive customization options for all child components.
|
|
3018
3008
|
*/
|
|
3019
3009
|
|
|
3020
|
-
type ConnectedModalContentType = 'main' | 'transactions' | 'chains';
|
|
3021
3010
|
type HeaderProps = {
|
|
3022
|
-
contentType:
|
|
3011
|
+
contentType: ConnectedContentType;
|
|
3023
3012
|
title: string;
|
|
3024
3013
|
onBack: () => void;
|
|
3025
3014
|
onClose: () => void;
|
|
@@ -3041,7 +3030,7 @@ type CloseButtonProps$1 = {
|
|
|
3041
3030
|
className?: string;
|
|
3042
3031
|
};
|
|
3043
3032
|
type MainContentProps$1 = Pick<NovaConnectProviderProps, 'transactionPool' | 'pulsarAdapter'> & {
|
|
3044
|
-
contentType:
|
|
3033
|
+
contentType: ConnectedContentType;
|
|
3045
3034
|
balance: NativeBalanceResult | null;
|
|
3046
3035
|
ensNameAbbreviated: string | undefined;
|
|
3047
3036
|
avatarIsLoading: boolean;
|
|
@@ -3107,30 +3096,30 @@ type ConnectedModalCustomization = {
|
|
|
3107
3096
|
dialog?: () => string;
|
|
3108
3097
|
/** Function to generate dialog content classes */
|
|
3109
3098
|
dialogContent?: (params: {
|
|
3110
|
-
contentType:
|
|
3099
|
+
contentType: ConnectedContentType;
|
|
3111
3100
|
hasActiveWallet: boolean;
|
|
3112
3101
|
}) => string;
|
|
3113
3102
|
/** Function to generate motion container classes */
|
|
3114
3103
|
motionContainer?: () => string;
|
|
3115
3104
|
/** Function to generate content container classes */
|
|
3116
3105
|
contentContainer?: (params: {
|
|
3117
|
-
contentType:
|
|
3106
|
+
contentType: ConnectedContentType;
|
|
3118
3107
|
}) => string;
|
|
3119
3108
|
/** Function to generate header classes */
|
|
3120
3109
|
header?: (params: {
|
|
3121
|
-
contentType:
|
|
3110
|
+
contentType: ConnectedContentType;
|
|
3122
3111
|
}) => string;
|
|
3123
3112
|
/** Function to generate back button classes */
|
|
3124
3113
|
backButton?: () => string;
|
|
3125
3114
|
/** Function to generate title classes */
|
|
3126
3115
|
title?: (params: {
|
|
3127
|
-
contentType:
|
|
3116
|
+
contentType: ConnectedContentType;
|
|
3128
3117
|
}) => string;
|
|
3129
3118
|
/** Function to generate close button classes */
|
|
3130
3119
|
closeButton?: () => string;
|
|
3131
3120
|
/** Function to generate main content classes */
|
|
3132
3121
|
mainContent?: (params: {
|
|
3133
|
-
contentType:
|
|
3122
|
+
contentType: ConnectedContentType;
|
|
3134
3123
|
}) => string;
|
|
3135
3124
|
/** Function to generate footer classes */
|
|
3136
3125
|
footer?: () => string;
|
|
@@ -3181,7 +3170,7 @@ type ConnectedModalCustomization = {
|
|
|
3181
3170
|
/** Custom handler for chain change */
|
|
3182
3171
|
onChainChange?: (chainId: string) => void;
|
|
3183
3172
|
/** Custom handler for content type change */
|
|
3184
|
-
onContentTypeChange?: (type:
|
|
3173
|
+
onContentTypeChange?: (type: ConnectedContentType) => void;
|
|
3185
3174
|
};
|
|
3186
3175
|
/** Child component customizations */
|
|
3187
3176
|
childCustomizations?: {
|
|
@@ -3854,7 +3843,7 @@ interface ConnectorsBlockData {
|
|
|
3854
3843
|
/** Whether there are connectors to display */
|
|
3855
3844
|
hasConnectors: boolean;
|
|
3856
3845
|
/** Recent wallets data */
|
|
3857
|
-
recentWallets:
|
|
3846
|
+
recentWallets: [string, RecentlyConnectedConnectorData][] | null;
|
|
3858
3847
|
/** Section ID for accessibility */
|
|
3859
3848
|
sectionId: string;
|
|
3860
3849
|
}
|
|
@@ -5301,7 +5290,7 @@ interface NetworkSelectionsProps {
|
|
|
5301
5290
|
/** Array of grouped wallet connectors with their supported networks */
|
|
5302
5291
|
connectors: GroupedConnector[];
|
|
5303
5292
|
/** Click handler for network selection */
|
|
5304
|
-
onClick: (adapter: OrbitAdapter,
|
|
5293
|
+
onClick: (adapter: OrbitAdapter, connectorType: ConnectorType) => Promise<void>;
|
|
5305
5294
|
/** Customization options */
|
|
5306
5295
|
customization?: NetworkSelectionsCustomization;
|
|
5307
5296
|
}
|
|
@@ -5347,8 +5336,8 @@ interface NetworkSelectionsProps {
|
|
|
5347
5336
|
* <NetworkSelections
|
|
5348
5337
|
* activeConnector="metamask"
|
|
5349
5338
|
* connectors={multiNetworkConnectors}
|
|
5350
|
-
* onClick={async (adapter,
|
|
5351
|
-
* await connectToNetwork(adapter,
|
|
5339
|
+
* onClick={async (adapter, connectorType) => {
|
|
5340
|
+
* await connectToNetwork(adapter, connectorType);
|
|
5352
5341
|
* }}
|
|
5353
5342
|
* />
|
|
5354
5343
|
* ```
|