@portal-hq/web 3.0.2 → 3.1.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.
@@ -21,9 +21,7 @@ class Portal {
21
21
  // Required
22
22
  rpcConfig,
23
23
  // Optional
24
- apiKey, authToken, authUrl, autoApprove = false, gdrive, passkey, host = 'web.portalhq.io', mpcVersion = 'v6', mpcHost = 'mpc-client.portalhq.io', featureFlags = {
25
- optimized: false,
26
- }, }) {
24
+ apiKey, authToken, authUrl, autoApprove = false, gdrive, passkey, host = 'web.portalhq.io', mpcVersion = 'v6', mpcHost = 'mpc-client.portalhq.io', featureFlags = {}, }) {
27
25
  this.ready = false;
28
26
  this.errorCallbacks = [];
29
27
  this.readyCallbacks = [];
@@ -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.0.2';
15
+ const WEB_SDK_VERSION = '3.1.0';
16
16
  class Mpc {
17
17
  constructor({ portal }) {
18
18
  this.configureIframe = () => {
package/lib/esm/index.js CHANGED
@@ -15,9 +15,7 @@ class Portal {
15
15
  // Required
16
16
  rpcConfig,
17
17
  // Optional
18
- apiKey, authToken, authUrl, autoApprove = false, gdrive, passkey, host = 'web.portalhq.io', mpcVersion = 'v6', mpcHost = 'mpc-client.portalhq.io', featureFlags = {
19
- optimized: false,
20
- }, }) {
18
+ apiKey, authToken, authUrl, autoApprove = false, gdrive, passkey, host = 'web.portalhq.io', mpcVersion = 'v6', mpcHost = 'mpc-client.portalhq.io', featureFlags = {}, }) {
21
19
  this.ready = false;
22
20
  this.errorCallbacks = [];
23
21
  this.readyCallbacks = [];
@@ -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.0.2';
12
+ const WEB_SDK_VERSION = '3.1.0';
13
13
  class Mpc {
14
14
  constructor({ portal }) {
15
15
  this.configureIframe = () => {
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.0.2",
6
+ "version": "3.1.0",
7
7
  "license": "MIT",
8
8
  "main": "lib/commonjs/index",
9
9
  "module": "lib/esm/index",
package/src/index.ts CHANGED
@@ -65,9 +65,7 @@ class Portal {
65
65
  host = 'web.portalhq.io',
66
66
  mpcVersion = 'v6',
67
67
  mpcHost = 'mpc-client.portalhq.io',
68
- featureFlags = {
69
- optimized: false,
70
- },
68
+ featureFlags = {},
71
69
  }: PortalOptions) {
72
70
  this.apiKey = apiKey
73
71
  this.authToken = authToken
package/src/mpc/index.ts CHANGED
@@ -26,7 +26,7 @@ import type {
26
26
  EjectResult,
27
27
  } from '../../types'
28
28
 
29
- const WEB_SDK_VERSION = '3.0.2'
29
+ const WEB_SDK_VERSION = '3.1.0'
30
30
 
31
31
  class Mpc {
32
32
  public iframe?: HTMLIFrameElement
package/types.d.ts CHANGED
@@ -18,7 +18,6 @@ export type ValidRpcErrorCodes = 4001 | 4100 | 4200 | 4900 | 4901
18
18
 
19
19
  export interface FeatureFlags {
20
20
  isMultiBackupEnabled?: boolean
21
- optimized: boolean = false
22
21
  }
23
22
 
24
23
  export interface AddressResult {