@ledgerhq/connect-kit 1.0.4 → 1.0.5
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 +8 -0
- package/dist/umd/components/ConnectWithLedgerLiveModal/ConnectWithLedgerLiveModal.d.ts +2 -2
- package/dist/umd/components/ExtensionUnavailableModal/ExtensionUnavailableModal.d.ts +3 -1
- package/dist/umd/components/Modal/Modal.d.ts +2 -2
- package/dist/umd/index.js +28 -28
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/lib/errors.d.ts +5 -0
- package/dist/umd/lib/modal.d.ts +2 -1
- package/dist/umd/providers/TryConnectEthereum.d.ts +7 -0
- package/package.json +5 -4
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
|
-
|
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
|
-
|
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
|
6
|
+
children?: ReactElement | null;
|
7
7
|
}
|
8
8
|
export declare const Modal: ({ onClose, children }: ModalProps) => JSX.Element | null;
|
9
9
|
export default Modal;
|