@portal-hq/web 3.9.1-0 → 3.10.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.
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MpcErrorCodes = exports.MpcError = void 0;
13
13
  const errors_1 = require("./errors");
14
14
  const index_1 = require("../index");
15
- const WEB_SDK_VERSION = '3.9.1-0';
15
+ const WEB_SDK_VERSION = '3.10.0';
16
16
  class Mpc {
17
17
  get ready() {
18
18
  return this._ready;
@@ -697,7 +697,18 @@ class Mpc {
697
697
  * Private Methods
698
698
  ***************************/
699
699
  /**
700
- * Util to handle requests to the iframe and post the result to the parent
700
+ * Util to handle requests to the iframe and post the result to the parent.
701
+ *
702
+ * @remarks
703
+ * This is an advanced/internal API intended primarily for low-level integrations
704
+ * (for example, framework or account-type abstractions such as EvmAccountType).
705
+ * Typical consumers should prefer using the higher-level methods exposed on
706
+ * the {@link Mpc} class (e.g. {@link delegationsApprove}, {@link delegationsRevoke},
707
+ * {@link delegationsGetStatus}, {@link delegationsTransferFrom}) instead of calling
708
+ * this method directly.
709
+ *
710
+ * This method is not part of the stable public surface area and may change in
711
+ * future releases without notice.
701
712
  */
702
713
  handleRequestToIframeAndPost({ methodMessage, errorMessage, resultMessage, data, progressMessage, progressCallback, mapReturnValue, }) {
703
714
  return __awaiter(this, void 0, void 0, function* () {
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { PortalMpcError } from './errors';
11
11
  import { BackupMethods, } from '../index';
12
- const WEB_SDK_VERSION = '3.9.1-0';
12
+ const WEB_SDK_VERSION = '3.10.0';
13
13
  class Mpc {
14
14
  get ready() {
15
15
  return this._ready;
@@ -694,7 +694,18 @@ class Mpc {
694
694
  * Private Methods
695
695
  ***************************/
696
696
  /**
697
- * Util to handle requests to the iframe and post the result to the parent
697
+ * Util to handle requests to the iframe and post the result to the parent.
698
+ *
699
+ * @remarks
700
+ * This is an advanced/internal API intended primarily for low-level integrations
701
+ * (for example, framework or account-type abstractions such as EvmAccountType).
702
+ * Typical consumers should prefer using the higher-level methods exposed on
703
+ * the {@link Mpc} class (e.g. {@link delegationsApprove}, {@link delegationsRevoke},
704
+ * {@link delegationsGetStatus}, {@link delegationsTransferFrom}) instead of calling
705
+ * this method directly.
706
+ *
707
+ * This method is not part of the stable public surface area and may change in
708
+ * future releases without notice.
698
709
  */
699
710
  handleRequestToIframeAndPost({ methodMessage, errorMessage, resultMessage, data, progressMessage, progressCallback, mapReturnValue, }) {
700
711
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Portal MPC Support for Web",
4
4
  "author": "Portal Labs, Inc.",
5
5
  "homepage": "https://portalhq.io/",
6
- "version": "3.9.1-0",
6
+ "version": "3.10.0",
7
7
  "license": "MIT",
8
8
  "main": "lib/commonjs/index",
9
9
  "module": "lib/esm/index",
@@ -57,6 +57,5 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@solana/web3.js": "^1.91.8"
60
- },
61
- "stableVersion": "3.9.0"
60
+ }
62
61
  }
package/src/index.ts CHANGED
@@ -1270,6 +1270,14 @@ export {
1270
1270
  type DelegationStatusResponse,
1271
1271
  type TransferFromRequest,
1272
1272
  type TransferFromResponse,
1273
+ type EvmAccountTypeGetStatusRequest,
1274
+ type EvmAccountTypeGetStatusResponse,
1275
+ type BuildAuthorizationListRequest,
1276
+ type BuildAuthorizationListResponse,
1277
+ type Build7702UpgradeTxRequest,
1278
+ type Build7702UpgradeTxResponse,
1279
+ type UpgradeTo7702Request,
1280
+ type UpgradeTo7702Response,
1273
1281
  } from './shared/types'
1274
1282
 
1275
1283
  export { MpcError, MpcErrorCodes } from './mpc'
package/src/mpc/index.ts CHANGED
@@ -107,7 +107,7 @@ import {
107
107
  ScreenAddressRequestOptions,
108
108
  } from '../../hypernative'
109
109
 
110
- const WEB_SDK_VERSION = '3.9.1-0'
110
+ const WEB_SDK_VERSION = '3.10.0'
111
111
 
112
112
  class Mpc {
113
113
  public iframe?: HTMLIFrameElement
@@ -850,7 +850,18 @@ class Mpc {
850
850
  ***************************/
851
851
 
852
852
  /**
853
- * Util to handle requests to the iframe and post the result to the parent
853
+ * Util to handle requests to the iframe and post the result to the parent.
854
+ *
855
+ * @remarks
856
+ * This is an advanced/internal API intended primarily for low-level integrations
857
+ * (for example, framework or account-type abstractions such as EvmAccountType).
858
+ * Typical consumers should prefer using the higher-level methods exposed on
859
+ * the {@link Mpc} class (e.g. {@link delegationsApprove}, {@link delegationsRevoke},
860
+ * {@link delegationsGetStatus}, {@link delegationsTransferFrom}) instead of calling
861
+ * this method directly.
862
+ *
863
+ * This method is not part of the stable public surface area and may change in
864
+ * future releases without notice.
854
865
  */
855
866
  public async handleRequestToIframeAndPost<ResponseType, RequestType = any>({
856
867
  methodMessage,