@oila/0account 3.4.5 → 3.4.7

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.
@@ -6,7 +6,7 @@ const index = require('./index-1e526aba.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return Promise.resolve();
9
- return index.bootstrapLazy([["qr-code_2.cjs",[[1,"zero-account",{"appId":[1,"app-id"],"updateInterval":[2,"update-interval"],"callbackURL":[1,"callback-u-r-l"],"modal":[4],"selector":[1],"level":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"instructionsText":[1,"instructions-text"],"hideInstructions":[4,"hide-instructions"],"environment":[1],"enableWithCredentials":[4,"enable-with-credentials"],"themePreset":[1,"theme-preset"],"autoStartApp":[4,"auto-start-app"],"modalOpen":[32],"isAnimating":[32],"url":[32]},[[4,"0account-toggle-modal","toggleModal"],[4,"0account-close-modal","_closeModal"],[4,"0account-authenticated","_closeModal"],[4,"0account-open-app","openApp"]]],[0,"qr-code",{"url":[1],"level":[1],"class":[1],"color":[1]}]]]], options);
9
+ return index.bootstrapLazy([["qr-code_2.cjs",[[1,"zero-account",{"appId":[1,"app-id"],"updateInterval":[2,"update-interval"],"callbackURL":[1,"callback-url"],"modal":[4],"level":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"environment":[1],"enableWithCredentials":[4,"enable-with-credentials"],"themePreset":[1,"theme-preset"],"autoStartApp":[4,"auto-start-app"],"modalOpen":[32],"isAnimating":[32],"url":[32]},[[4,"0account-toggle-modal","toggleModal"],[4,"0account-close-modal","_closeModal"],[4,"0account-authenticated","_closeModal"],[4,"0account-open-app","openApp"]]],[0,"qr-code",{"url":[1],"level":[1],"class":[1],"color":[1]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -2158,6 +2158,7 @@ const http = {
2158
2158
  send: xhr,
2159
2159
  };
2160
2160
 
2161
+ const DEFAULT_CALLBACK_URL$1 = window.location.origin + '/zero/auth';
2161
2162
  const API_URL = 'wss://ws.0account.com/ws';
2162
2163
  const API_URL_STAGING = 'wss://staging.ws.0account.com/ws';
2163
2164
  const PREFIX = '0account';
@@ -2185,7 +2186,7 @@ function debounce(func, timeout = 300) {
2185
2186
  class WS {
2186
2187
  constructor(appId, opts) {
2187
2188
  this.wsURL = API_URL;
2188
- this.callbackURL = API_URL;
2189
+ this.callbackURL = DEFAULT_CALLBACK_URL$1;
2189
2190
  if (!opts.env)
2190
2191
  opts.env = Environment.production;
2191
2192
  this.appId = appId;
@@ -2362,12 +2363,9 @@ const ZeroAccount = class {
2362
2363
  this.updateInterval = 3 * 60 * 1000;
2363
2364
  this.callbackURL = DEFAULT_CALLBACK_URL;
2364
2365
  this.modal = true;
2365
- this.selector = null;
2366
2366
  this.level = ErrorCorrectionLevel.M;
2367
2367
  this.primaryColor = '#3C444F';
2368
2368
  this.secondaryColor = undefined;
2369
- this.instructionsText = undefined;
2370
- this.hideInstructions = false;
2371
2369
  this.environment = Environment.production;
2372
2370
  this.enableWithCredentials = false;
2373
2371
  this.themePreset = ThemePreset.light;