@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.
@@ -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;
@@ -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.4",
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
  }