@dynamic-labs-wallet/browser-wallet-client 0.0.280 → 0.0.281
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/index.cjs.js
CHANGED
|
@@ -268,6 +268,8 @@ class IframeManager {
|
|
|
268
268
|
requestChannel.handle('getClientKeyShare', this.handleGetClientKeyShare.bind(this));
|
|
269
269
|
// Handle setClientKeyShare requests from iframe
|
|
270
270
|
requestChannel.handle('setClientKeyShare', this.handleSetClientKeyShare.bind(this));
|
|
271
|
+
// Handle removeClientKeyShare requests from iframe
|
|
272
|
+
requestChannel.handle('removeClientKeyShare', this.handleRemoveClientKeyShare.bind(this));
|
|
271
273
|
return requestChannel;
|
|
272
274
|
}
|
|
273
275
|
/**
|
|
@@ -290,6 +292,14 @@ class IframeManager {
|
|
|
290
292
|
await this.secureStorage.setClientKeyShare(request.accountAddress, request.keyShares);
|
|
291
293
|
}
|
|
292
294
|
/**
|
|
295
|
+
* Handler for removeClientKeyShare requests from iframe
|
|
296
|
+
*/ async handleRemoveClientKeyShare(request) {
|
|
297
|
+
if (!this.secureStorage) {
|
|
298
|
+
throw new Error('Secure storage not available');
|
|
299
|
+
}
|
|
300
|
+
await this.secureStorage.removeClientKeyShare(request.accountAddress);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
293
303
|
* securely exchange the auth token with iframe securely
|
|
294
304
|
*/ async initAuthToken() {
|
|
295
305
|
if (!this.iframeMessageHandler) {
|
package/index.esm.js
CHANGED
|
@@ -267,6 +267,8 @@ class IframeManager {
|
|
|
267
267
|
requestChannel.handle('getClientKeyShare', this.handleGetClientKeyShare.bind(this));
|
|
268
268
|
// Handle setClientKeyShare requests from iframe
|
|
269
269
|
requestChannel.handle('setClientKeyShare', this.handleSetClientKeyShare.bind(this));
|
|
270
|
+
// Handle removeClientKeyShare requests from iframe
|
|
271
|
+
requestChannel.handle('removeClientKeyShare', this.handleRemoveClientKeyShare.bind(this));
|
|
270
272
|
return requestChannel;
|
|
271
273
|
}
|
|
272
274
|
/**
|
|
@@ -289,6 +291,14 @@ class IframeManager {
|
|
|
289
291
|
await this.secureStorage.setClientKeyShare(request.accountAddress, request.keyShares);
|
|
290
292
|
}
|
|
291
293
|
/**
|
|
294
|
+
* Handler for removeClientKeyShare requests from iframe
|
|
295
|
+
*/ async handleRemoveClientKeyShare(request) {
|
|
296
|
+
if (!this.secureStorage) {
|
|
297
|
+
throw new Error('Secure storage not available');
|
|
298
|
+
}
|
|
299
|
+
await this.secureStorage.removeClientKeyShare(request.accountAddress);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
292
302
|
* securely exchange the auth token with iframe securely
|
|
293
303
|
*/ async initAuthToken() {
|
|
294
304
|
if (!this.iframeMessageHandler) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/browser-wallet-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.281",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/core": "0.0.
|
|
7
|
+
"@dynamic-labs-wallet/core": "0.0.281",
|
|
8
8
|
"@dynamic-labs/logger": "^4.25.3",
|
|
9
9
|
"@dynamic-labs/message-transport": "^4.25.3",
|
|
10
10
|
"uuid": "11.1.0"
|
|
@@ -74,6 +74,10 @@ export declare class IframeManager {
|
|
|
74
74
|
* Handler for setClientKeyShare requests from iframe
|
|
75
75
|
*/
|
|
76
76
|
private handleSetClientKeyShare;
|
|
77
|
+
/**
|
|
78
|
+
* Handler for removeClientKeyShare requests from iframe
|
|
79
|
+
*/
|
|
80
|
+
private handleRemoveClientKeyShare;
|
|
77
81
|
/**
|
|
78
82
|
* securely exchange the auth token with iframe securely
|
|
79
83
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IframeManager.d.ts","sourceRoot":"","sources":["../../../src/client/iframeManager/IframeManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAKR,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"IframeManager.d.ts","sourceRoot":"","sources":["../../../src/client/iframeManager/IframeManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAKR,KAAK,qBAAqB,EAE1B,KAAK,oBAAoB,EAE1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAIL,KAAK,iCAAiC,EACtC,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI9E,qBAAa,aAAa;IACxB,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,MAAM,wCAAU;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IACnC,aAAa,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAC/C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAClC,SAAS,CAAC,gBAAgB,EAAE,iCAAiC,GAAG,IAAI,CAAQ;IAC5E,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IACnE,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAA8B;IAC9D,SAAS,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAClD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;IAChC,OAAc,iBAAiB,SAAS;IACxC,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAK;IACtC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAK;IACtC,8BAA8B,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1D,OAAO,CAAC,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