@ledgerhq/connect-kit 1.0.0-beta.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/umd/components/ConnectWithLedgerLiveModal/ConnectWithLedgerLiveModal.d.ts +1 -1
- package/dist/umd/components/Modal/Modal.styles.d.ts +1 -1
- package/dist/umd/index.d.ts +3 -3
- package/dist/umd/lib/logger.d.ts +1 -1
- package/dist/umd/lib/modal.d.ts +1 -1
- package/dist/umd/lib/provider.d.ts +1 -1
- package/dist/umd/lib/support.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export declare let setWalletConnectUri: (uri: string) => void;
|
3
|
-
export
|
3
|
+
export type ConnectWithLedgerLiveModalProps = {
|
4
4
|
withQrCode?: boolean;
|
5
5
|
};
|
6
6
|
declare const ConnectWithLedgerLiveModal: ({ withQrCode }: ConnectWithLedgerLiveModalProps) => JSX.Element;
|
@@ -6,7 +6,7 @@ export declare const ModalSection: import("styled-components").StyledComponent<"
|
|
6
6
|
export declare const ModalTitle: import("styled-components").StyledComponent<"h2", any, {}, never>;
|
7
7
|
export declare const ModalSubtitle: import("styled-components").StyledComponent<"h3", any, {}, never>;
|
8
8
|
export declare const ModalText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
9
|
-
export
|
9
|
+
export type VariantOptions = {
|
10
10
|
variant?: string;
|
11
11
|
};
|
12
12
|
export declare const ModalButton: import("styled-components").StyledComponent<"button", any, {
|
package/dist/umd/index.d.ts
CHANGED
@@ -29,10 +29,10 @@ declare enum SupportedProviderImplementations {
|
|
29
29
|
LedgerConnect = "LedgerConnect",
|
30
30
|
WalletConnect = "WalletConnect"
|
31
31
|
}
|
32
|
-
|
32
|
+
type ProviderResult = EthereumProvider | SolanaProvider | WalletConnectProvider;
|
33
33
|
declare function getProvider(): Promise<ProviderResult>;
|
34
34
|
|
35
|
-
|
35
|
+
type CheckSupportOptions = {
|
36
36
|
providerType: SupportedProviders;
|
37
37
|
chainId?: number;
|
38
38
|
bridge?: string;
|
@@ -41,7 +41,7 @@ declare type CheckSupportOptions = {
|
|
41
41
|
[chainId: number]: string;
|
42
42
|
};
|
43
43
|
};
|
44
|
-
|
44
|
+
type CheckSupportResult = {
|
45
45
|
isLedgerConnectSupported?: boolean;
|
46
46
|
isLedgerConnectEnabled?: boolean;
|
47
47
|
isChainIdSupported?: boolean;
|
package/dist/umd/lib/logger.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
1
|
+
export type Logger = (message: string, ...others: unknown[]) => void;
|
2
2
|
export declare const getDebugLogger: (context: string) => Logger;
|
3
3
|
export declare const getErrorLogger: (context: string) => Logger;
|
4
4
|
export declare const enableDebugLogs: () => void;
|
package/dist/umd/lib/modal.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ConnectWithLedgerLiveModalProps } from "../components/ConnectWithLedgerLiveModal/ConnectWithLedgerLiveModal";
|
2
|
-
|
2
|
+
type ModalType = 'ConnectWithLedgerLiveModal' | 'PlatformNotSupportedModal' | 'ExtensionUnavailableModal';
|
3
3
|
export declare function showModal(modalType: ModalType, props?: ConnectWithLedgerLiveModalProps): void;
|
4
4
|
export {};
|
@@ -14,7 +14,7 @@ export declare enum SupportedProviderImplementations {
|
|
14
14
|
LedgerConnect = "LedgerConnect",
|
15
15
|
WalletConnect = "WalletConnect"
|
16
16
|
}
|
17
|
-
export
|
17
|
+
export type ProviderResult = EthereumProvider | SolanaProvider | WalletConnectProvider;
|
18
18
|
export declare function setProviderType(providerType: SupportedProviders): void;
|
19
19
|
export declare function setProviderImplementation(providerImplementation: SupportedProviderImplementations): void;
|
20
20
|
export declare function getProvider(): Promise<ProviderResult>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ConnectSupportedChains, SupportedProviders, SupportedProviderImplementations } from "./provider";
|
2
|
-
export
|
2
|
+
export type CheckSupportOptions = {
|
3
3
|
providerType: SupportedProviders;
|
4
4
|
chainId?: number;
|
5
5
|
bridge?: string;
|
@@ -8,13 +8,13 @@ export declare type CheckSupportOptions = {
|
|
8
8
|
[chainId: number]: string;
|
9
9
|
};
|
10
10
|
};
|
11
|
-
export
|
11
|
+
export type CheckSupportResult = {
|
12
12
|
isLedgerConnectSupported?: boolean;
|
13
13
|
isLedgerConnectEnabled?: boolean;
|
14
14
|
isChainIdSupported?: boolean;
|
15
15
|
providerImplementation: SupportedProviderImplementations;
|
16
16
|
};
|
17
17
|
export declare function checkSupport(options: CheckSupportOptions): CheckSupportResult;
|
18
|
-
export
|
18
|
+
export type CheckEthereumSupportOptions = CheckSupportOptions & {
|
19
19
|
chainId: ConnectSupportedChains;
|
20
20
|
};
|