@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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qr-code_2.cjs.entry.js +2 -4
- package/dist/cjs/qr-code_2.cjs.entry.js.map +1 -1
- package/dist/cjs/zero-account.cjs.js +1 -1
- package/dist/collection/components/zero-account/websocket.js +2 -1
- package/dist/collection/components/zero-account/websocket.js.map +1 -1
- package/dist/collection/components/zero-account/zero-account.js +1 -57
- package/dist/collection/components/zero-account/zero-account.js.map +1 -1
- package/dist/components/zero-account.js +3 -8
- package/dist/components/zero-account.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qr-code_2.entry.js +2 -4
- package/dist/esm/qr-code_2.entry.js.map +1 -1
- package/dist/esm/zero-account.js +1 -1
- package/dist/types/components/zero-account/zero-account.d.ts +0 -3
- package/dist/types/components.d.ts +0 -6
- package/dist/zero-account/{p-9a90a04d.entry.js → p-a29dc444.entry.js} +2 -2
- package/dist/zero-account/{p-9a90a04d.entry.js.map → p-a29dc444.entry.js.map} +1 -1
- package/dist/zero-account/zero-account.esm.js +1 -1
- package/dist/zero-account/zero-account.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-
|
|
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 =
|
|
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;
|