@tezos-x/octez.connect-dapp 1.0.0 → 4.8.2
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/README.md +1 -2
- package/dist/cjs/dapp-client/DAppClient.d.ts +3 -5
- package/dist/cjs/dapp-client/DAppClient.js +129 -201
- package/dist/cjs/dapp-client/DAppClient.js.map +1 -1
- package/dist/cjs/dapp-client/DAppClientOptions.d.ts +2 -6
- package/dist/cjs/events.d.ts +4 -12
- package/dist/cjs/events.js +5 -30
- package/dist/cjs/events.js.map +1 -1
- package/dist/esm/dapp-client/DAppClient.d.ts +3 -5
- package/dist/esm/dapp-client/DAppClient.js +109 -158
- package/dist/esm/dapp-client/DAppClient.js.map +1 -1
- package/dist/esm/dapp-client/DAppClientOptions.d.ts +2 -6
- package/dist/esm/events.d.ts +4 -12
- package/dist/esm/events.js +5 -30
- package/dist/esm/events.js.map +1 -1
- package/dist/octez.connect.dapp.min.js +1066 -1
- package/package.json +10 -11
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ Use this package on your dApp to instanciate a `DAppClient` object and communica
|
|
|
11
11
|
```
|
|
12
12
|
import { DAppClient } from '@tezos-x/octez.connect-dapp'
|
|
13
13
|
|
|
14
|
-
const dAppClient = new DAppClient({ name: "
|
|
14
|
+
const dAppClient = new DAppClient({ name: "octez.connect Docs" });
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Check our documentation for more information. [Documentation](https://octez-connect.tezos.com)
|
|
@@ -56,12 +56,10 @@ export declare class DAppClient extends Client {
|
|
|
56
56
|
*/
|
|
57
57
|
private _activePeer;
|
|
58
58
|
private _initPromise;
|
|
59
|
-
private _initPromiseReject;
|
|
60
59
|
private isInitPending;
|
|
61
60
|
private readonly activeAccountLoaded;
|
|
62
61
|
private readonly appMetadataManager;
|
|
63
|
-
private readonly
|
|
64
|
-
private readonly privacyPolicyUrl?;
|
|
62
|
+
private readonly disclaimerText?;
|
|
65
63
|
private readonly errorMessages;
|
|
66
64
|
private readonly featuredWallets;
|
|
67
65
|
private readonly storageValidator;
|
|
@@ -156,7 +154,9 @@ export declare class DAppClient extends Client {
|
|
|
156
154
|
*/
|
|
157
155
|
checkPermissions(type: BeaconMessageType): Promise<boolean>;
|
|
158
156
|
sendNotification(title: string, message: string, payload: string, protocolIdentifier: string): Promise<string>;
|
|
157
|
+
private blockchains;
|
|
159
158
|
addBlockchain(chain: Blockchain): void;
|
|
159
|
+
removeBlockchain(chainIdentifier: string): void;
|
|
160
160
|
permissionRequest(input: PermissionRequestV3<string>): Promise<PermissionResponseV3<string>>;
|
|
161
161
|
request(input: BlockchainRequestV3<string>): Promise<BlockchainResponseV3<string>>;
|
|
162
162
|
/**
|
|
@@ -224,7 +224,6 @@ export declare class DAppClient extends Client {
|
|
|
224
224
|
* @param errorMessage The error message to send.
|
|
225
225
|
*/
|
|
226
226
|
private sendInternalError;
|
|
227
|
-
private emitEventWithErrorContext;
|
|
228
227
|
/**
|
|
229
228
|
* This method will remove all accounts associated with a specific peer.
|
|
230
229
|
*
|
|
@@ -232,7 +231,6 @@ export declare class DAppClient extends Client {
|
|
|
232
231
|
*/
|
|
233
232
|
private removeAccountsForPeers;
|
|
234
233
|
private removeAccountsForPeerIds;
|
|
235
|
-
private requireResponse;
|
|
236
234
|
/**
|
|
237
235
|
* This message handles errors that we receive from the wallet.
|
|
238
236
|
*
|