@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/dist/umd/lib/errors.d.ts
CHANGED
@@ -4,6 +4,11 @@ export declare class ProviderNotFoundError extends Error {
|
|
4
4
|
export declare class ProviderTypeIsNotSupportedError extends Error {
|
5
5
|
constructor();
|
6
6
|
}
|
7
|
+
export declare class ProviderRpcError extends Error {
|
8
|
+
code: any;
|
9
|
+
constructor(code: any, message: string);
|
10
|
+
toString(): string;
|
11
|
+
}
|
7
12
|
export declare class UserRejectedRequestError extends Error {
|
8
13
|
name: string;
|
9
14
|
readonly code: number;
|
package/dist/umd/lib/modal.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ConnectWithLedgerLiveModalProps } from "../components/ConnectWithLedgerLiveModal/ConnectWithLedgerLiveModal";
|
2
|
+
import { ExtensionUnavailableModalProps } from "../components/ExtensionUnavailableModal/ExtensionUnavailableModal";
|
2
3
|
type ModalType = 'ConnectWithLedgerLiveModal' | 'PlatformNotSupportedModal' | 'ExtensionUnavailableModal';
|
3
|
-
export declare function showModal(modalType: ModalType, props?: ConnectWithLedgerLiveModalProps): void;
|
4
|
+
export declare function showModal(modalType: ModalType, props?: ExtensionUnavailableModalProps | ConnectWithLedgerLiveModalProps): void;
|
4
5
|
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import EventEmitter from "events";
|
3
|
+
import { EthereumRequestPayload } from "./Ethereum";
|
4
|
+
export declare class TryConnectEthereumProvider extends EventEmitter {
|
5
|
+
constructor();
|
6
|
+
request(payload: EthereumRequestPayload): never[] | Promise<unknown>;
|
7
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ledgerhq/connect-kit",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.5",
|
4
4
|
"description": "A library for dapps to integrate with Ledger Connect and Ledger Live",
|
5
5
|
"author": "Hugo Lopes",
|
6
6
|
"license": "MIT",
|
@@ -38,10 +38,11 @@
|
|
38
38
|
"typescript": "^4.7.3"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
+
"@walletconnect/ethereum-provider": "^1.8.0",
|
42
|
+
"events": "^3.3.0",
|
43
|
+
"qrcode.react": "^3.1.0",
|
41
44
|
"react": "^18.2.0",
|
42
45
|
"react-dom": "^18.2.0",
|
43
|
-
"styled-components": "^5.3.5"
|
44
|
-
"@walletconnect/ethereum-provider": "^1.8.0",
|
45
|
-
"qrcode.react": "^3.1.0"
|
46
|
+
"styled-components": "^5.3.5"
|
46
47
|
}
|
47
48
|
}
|