@ledgerhq/connect-kit 1.0.0-beta.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.0.0 - 2022-11-17
11
+
10
12
  ## 1.0.0-beta.4-5 - 2022-11-01
11
13
  ### Changed
12
14
  - Release workflow changes.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare let setWalletConnectUri: (uri: string) => void;
3
- export declare type ConnectWithLedgerLiveModalProps = {
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 declare type VariantOptions = {
9
+ export type VariantOptions = {
10
10
  variant?: string;
11
11
  };
12
12
  export declare const ModalButton: import("styled-components").StyledComponent<"button", any, {
@@ -29,10 +29,10 @@ declare enum SupportedProviderImplementations {
29
29
  LedgerConnect = "LedgerConnect",
30
30
  WalletConnect = "WalletConnect"
31
31
  }
32
- declare type ProviderResult = EthereumProvider | SolanaProvider | WalletConnectProvider;
32
+ type ProviderResult = EthereumProvider | SolanaProvider | WalletConnectProvider;
33
33
  declare function getProvider(): Promise<ProviderResult>;
34
34
 
35
- declare type CheckSupportOptions = {
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
- declare type CheckSupportResult = {
44
+ type CheckSupportResult = {
45
45
  isLedgerConnectSupported?: boolean;
46
46
  isLedgerConnectEnabled?: boolean;
47
47
  isChainIdSupported?: boolean;
@@ -1,4 +1,4 @@
1
- export declare type Logger = (message: string, ...others: unknown[]) => void;
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;
@@ -1,4 +1,4 @@
1
1
  import { ConnectWithLedgerLiveModalProps } from "../components/ConnectWithLedgerLiveModal/ConnectWithLedgerLiveModal";
2
- declare type ModalType = 'ConnectWithLedgerLiveModal' | 'PlatformNotSupportedModal' | 'ExtensionUnavailableModal';
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 declare type ProviderResult = EthereumProvider | SolanaProvider | WalletConnectProvider;
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 declare type CheckSupportOptions = {
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 declare type CheckSupportResult = {
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 declare type CheckEthereumSupportOptions = CheckSupportOptions & {
18
+ export type CheckEthereumSupportOptions = CheckSupportOptions & {
19
19
  chainId: ConnectSupportedChains;
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/connect-kit",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0",
4
4
  "description": "A library for dapps to integrate with Ledger Connect and Ledger Live",
5
5
  "author": "Hugo Lopes",
6
6
  "license": "MIT",