@ledgerhq/connect-kit 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.0.5 - 2022-12-12
11
+ ### Changed
12
+ - Return a valid provider in case the Connect extension is supported but not
13
+ enabled, instead of throwing an exception. The modal that guides the user to
14
+ install the extension was being shown on the `getProvider` function, but has
15
+ been moved to the `eth_requestAccounts` request on the new provider to
16
+ correctly work with autoconnect on wagmi.
17
+
10
18
  ## 1.0.4 - 2022-12-06
11
19
  ### Changed
12
20
  - Create a new WalletConnect session each time `eth_requestAccounts` is called
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { ModalProps } from "../Modal/Modal";
2
3
  export type ConnectWithLedgerLiveModalProps = {
3
4
  withQrCode?: boolean;
4
5
  uri?: string;
5
- onClose?: () => void;
6
- };
6
+ } & ModalProps;
7
7
  declare const ConnectWithLedgerLiveModal: ({ withQrCode, uri, onClose, }: ConnectWithLedgerLiveModalProps) => JSX.Element;
8
8
  export default ConnectWithLedgerLiveModal;
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const ExtensionUnavailableModal: () => JSX.Element;
2
+ import { ModalProps } from "../Modal/Modal";
3
+ export type ExtensionUnavailableModalProps = ModalProps;
4
+ declare const ExtensionUnavailableModal: ({ onClose, }: ExtensionUnavailableModalProps) => JSX.Element;
3
5
  export default ExtensionUnavailableModal;
@@ -1,9 +1,9 @@
1
1
  import { ReactElement } from "react";
2
2
  export declare let setIsModalOpen: (isModalOpen: boolean) => void;
3
- interface ModalProps {
3
+ export interface ModalProps {
4
4
  isOpen?: boolean;
5
5
  onClose?: () => void;
6
- children: ReactElement | null;
6
+ children?: ReactElement | null;
7
7
  }
8
8
  export declare const Modal: ({ onClose, children }: ModalProps) => JSX.Element | null;
9
9
  export default Modal;