@ledgerhq/connect-kit 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -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/components/Modal/Modal.styles.d.ts +12 -6
- package/dist/umd/components/NeedALedgerSection/NeedALedgerSection.styles.d.ts +4 -1
- 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,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## Unreleased
|
9
9
|
|
10
|
+
## 1.0.6 - 2022-12-13
|
11
|
+
### Changed
|
12
|
+
- Redesign the ConnectWithLedgerLive to be visually simpler.
|
13
|
+
- Add back a call to hide the ConnectWithLedgerLive modal to the
|
14
|
+
WalletConnect connect event handler since it is still needed when scanning
|
15
|
+
the QR code.
|
16
|
+
|
17
|
+
## 1.0.5 - 2022-12-12
|
18
|
+
### Changed
|
19
|
+
- Return a valid provider in case the Connect extension is supported but not
|
20
|
+
enabled, instead of throwing an exception. The modal that guides the user to
|
21
|
+
install the extension was being shown on the `getProvider` function, but has
|
22
|
+
been moved to the `eth_requestAccounts` request on the new provider to
|
23
|
+
correctly work with autoconnect on wagmi.
|
24
|
+
|
10
25
|
## 1.0.4 - 2022-12-06
|
11
26
|
### Changed
|
12
27
|
- 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;
|
@@ -1,18 +1,24 @@
|
|
1
|
+
export declare const devices: {
|
2
|
+
notPhone: string;
|
3
|
+
smallPhone: string;
|
4
|
+
};
|
1
5
|
export declare const ModalWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
2
6
|
export declare const ModalContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
3
7
|
export declare const CloseButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
4
8
|
export declare const ModalHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
5
|
-
export declare const ModalSection: import("styled-components").StyledComponent<"div", any, {
|
9
|
+
export declare const ModalSection: import("styled-components").StyledComponent<"div", any, {
|
10
|
+
textAlign?: "center" | "inherit" | undefined;
|
11
|
+
}, never>;
|
6
12
|
export declare const ModalTitle: import("styled-components").StyledComponent<"h2", any, {}, never>;
|
7
13
|
export declare const ModalSubtitle: import("styled-components").StyledComponent<"h3", any, {}, never>;
|
8
|
-
export declare const ModalText: import("styled-components").StyledComponent<"p", any, {
|
14
|
+
export declare const ModalText: import("styled-components").StyledComponent<"p", any, {
|
15
|
+
noMargin?: boolean | undefined;
|
16
|
+
}, never>;
|
9
17
|
export type VariantOptions = {
|
10
18
|
variant?: string;
|
11
19
|
};
|
12
20
|
export declare const ModalButton: import("styled-components").StyledComponent<"button", any, {
|
13
21
|
variant: string;
|
22
|
+
extraMargin?: boolean | undefined;
|
14
23
|
}, never>;
|
15
|
-
export declare const
|
16
|
-
direction: "row" | "column";
|
17
|
-
gap: number;
|
18
|
-
}, never>;
|
24
|
+
export declare const Link: import("styled-components").StyledComponent<"a", any, {}, never>;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
export declare const CustomBackground: import("styled-components").StyledComponent<"div", any, {}, never>;
|
2
|
-
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {
|
2
|
+
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {
|
3
|
+
textAlign?: "center" | "inherit" | undefined;
|
4
|
+
}, never>;
|
3
5
|
export declare const BuyNowButton: import("styled-components").StyledComponent<"button", any, {
|
4
6
|
variant: string;
|
7
|
+
extraMargin?: boolean | undefined;
|
5
8
|
}, never>;
|