@subwallet/extension-base 1.1.15-0 → 1.1.16-0

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.
@@ -1600,7 +1600,7 @@ export interface KoniRequestSignatures {
1600
1600
  'pri(mantaPay.subscribeSyncingState)': [null, MantaPaySyncState, MantaPaySyncState];
1601
1601
  'pri(mantaPay.initSyncMantaPay)': [string, null];
1602
1602
  'pri(authorize.listV2)': [null, ResponseAuthorizeList];
1603
- 'pri(authorize.requestsV2)': [RequestAuthorizeSubscribe, boolean, AuthorizeRequest[]];
1603
+ 'pri(authorize.requestsV2)': [RequestAuthorizeSubscribe, AuthorizeRequest[], AuthorizeRequest[]];
1604
1604
  'pri(authorize.approveV2)': [RequestAuthorizeApproveV2, boolean];
1605
1605
  'pri(authorize.changeSiteAll)': [RequestAuthorizationAll, boolean, AuthUrls];
1606
1606
  'pri(authorize.changeSite)': [RequestAuthorization, boolean, AuthUrls];
@@ -264,7 +264,7 @@ export default class Extension {
264
264
  unsubscribe(id);
265
265
  subscription.unsubscribe();
266
266
  });
267
- return true;
267
+ return this.#state.metaSubject.value;
268
268
  }
269
269
  jsonRestore({
270
270
  file,
@@ -444,7 +444,7 @@ export default class Extension {
444
444
  unsubscribe(id);
445
445
  subscription.unsubscribe();
446
446
  });
447
- return true;
447
+ return this.#state.signSubject.value;
448
448
  }
449
449
  windowOpen({
450
450
  allowedPath: path,
@@ -116,7 +116,7 @@ export interface RequestSignatures extends KoniRequestSignatures {
116
116
  'pri(metadata.approve)': [RequestMetadataApprove, boolean];
117
117
  'pri(metadata.get)': [string | null, MetadataDef | null];
118
118
  'pri(metadata.reject)': [RequestMetadataReject, boolean];
119
- 'pri(metadata.requests)': [RequestMetadataSubscribe, boolean, MetadataRequest[]];
119
+ 'pri(metadata.requests)': [RequestMetadataSubscribe, MetadataRequest[], MetadataRequest[]];
120
120
  'pri(metadata.list)': [null, MetadataDef[]];
121
121
  'pri(seed.create)': [RequestSeedCreate, ResponseSeedCreate];
122
122
  'pri(seed.validate)': [RequestSeedValidate, ResponseSeedValidate];
@@ -125,7 +125,7 @@ export interface RequestSignatures extends KoniRequestSignatures {
125
125
  'pri(signing.approve.signature)': [RequestSigningApproveSignature, boolean];
126
126
  'pri(signing.cancel)': [RequestSigningCancel, boolean];
127
127
  'pri(signing.isLocked)': [RequestSigningIsLocked, ResponseSigningIsLocked];
128
- 'pri(signing.requests)': [RequestSigningSubscribe, boolean, SigningRequest[]];
128
+ 'pri(signing.requests)': [RequestSigningSubscribe, SigningRequest[], SigningRequest[]];
129
129
  'pri(window.open)': [WindowOpenParams, boolean];
130
130
  'pub(accounts.list)': [RequestAccountList, InjectedAccount[]];
131
131
  'pub(accounts.subscribe)': [RequestAccountSubscribe, boolean, InjectedAccount[]];
@@ -293,7 +293,7 @@ class Extension {
293
293
  (0, _subscriptions.unsubscribe)(id);
294
294
  subscription.unsubscribe();
295
295
  });
296
- return true;
296
+ return this.#state.metaSubject.value;
297
297
  }
298
298
  jsonRestore(_ref16) {
299
299
  let {
@@ -481,7 +481,7 @@ class Extension {
481
481
  (0, _subscriptions.unsubscribe)(id);
482
482
  subscription.unsubscribe();
483
483
  });
484
- return true;
484
+ return this.#state.signSubject.value;
485
485
  }
486
486
  windowOpen(_ref24) {
487
487
  let {
@@ -270,7 +270,7 @@ class KoniExtension {
270
270
  this.cancelSubscription(id);
271
271
  subscription.unsubscribe();
272
272
  });
273
- return true;
273
+ return this.#koniState.metaSubject.value;
274
274
  }
275
275
  jsonRestore(_ref12) {
276
276
  let {
@@ -392,7 +392,7 @@ class KoniExtension {
392
392
  this.cancelSubscription(id);
393
393
  subscription.unsubscribe();
394
394
  });
395
- return true;
395
+ return this.#koniState.signSubject.value;
396
396
  }
397
397
  windowOpen(_ref18) {
398
398
  let {
@@ -633,7 +633,7 @@ class KoniExtension {
633
633
  port.onDisconnect.addListener(() => {
634
634
  this.cancelSubscription(id);
635
635
  });
636
- return true;
636
+ return this.#koniState.authSubjectV2.value;
637
637
  }
638
638
  async getAuthListV2() {
639
639
  const authList = await this._getAuthListV2();
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@subwallet/extension-base',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '1.1.15-0'
16
+ version: '1.1.16-0'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
@@ -250,7 +250,7 @@ export default class KoniExtension {
250
250
  this.cancelSubscription(id);
251
251
  subscription.unsubscribe();
252
252
  });
253
- return true;
253
+ return this.#koniState.metaSubject.value;
254
254
  }
255
255
  jsonRestore({
256
256
  file,
@@ -366,7 +366,7 @@ export default class KoniExtension {
366
366
  this.cancelSubscription(id);
367
367
  subscription.unsubscribe();
368
368
  });
369
- return true;
369
+ return this.#koniState.signSubject.value;
370
370
  }
371
371
  windowOpen({
372
372
  allowedPath: path,
@@ -600,7 +600,7 @@ export default class KoniExtension {
600
600
  port.onDisconnect.addListener(() => {
601
601
  this.cancelSubscription(id);
602
602
  });
603
- return true;
603
+ return this.#koniState.authSubjectV2.value;
604
604
  }
605
605
  async getAuthListV2() {
606
606
  const authList = await this._getAuthListV2();
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "1.1.15-0",
20
+ "version": "1.1.16-0",
21
21
  "main": "./cjs/index.js",
22
22
  "module": "./index.js",
23
23
  "types": "./index.d.ts",
@@ -1228,10 +1228,10 @@
1228
1228
  "@sora-substrate/type-definitions": "^1.17.7",
1229
1229
  "@substrate/connect": "^0.7.26",
1230
1230
  "@subwallet/chain-list": "0.2.16-beta.4",
1231
- "@subwallet/extension-base": "^1.1.15-0",
1232
- "@subwallet/extension-chains": "^1.1.15-0",
1233
- "@subwallet/extension-dapp": "^1.1.15-0",
1234
- "@subwallet/extension-inject": "^1.1.15-0",
1231
+ "@subwallet/extension-base": "^1.1.16-0",
1232
+ "@subwallet/extension-chains": "^1.1.16-0",
1233
+ "@subwallet/extension-dapp": "^1.1.16-0",
1234
+ "@subwallet/extension-inject": "^1.1.16-0",
1235
1235
  "@subwallet/keyring": "^0.1.1",
1236
1236
  "@subwallet/ui-keyring": "^0.1.1",
1237
1237
  "@walletconnect/sign-client": "^2.8.4",
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@subwallet/extension-base',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '1.1.15-0'
10
+ version: '1.1.16-0'
11
11
  };