@oila/0account 3.4.7 → 3.4.9
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/{index-1e526aba.js → index-ef57218a.js} +370 -67
- package/dist/cjs/index-ef57218a.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/qr-code_2.cjs.entry.js +358 -1278
- package/dist/cjs/qr-code_2.cjs.entry.js.map +1 -1
- package/dist/cjs/zero-account.cjs.js +2 -2
- package/dist/cjs/zero-account.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/zero-account/enums.js +8 -8
- package/dist/collection/components/zero-account/enums.js.map +1 -1
- package/dist/collection/components/zero-account/logo.js +1 -1
- package/dist/collection/components/zero-account/logo.js.map +1 -1
- package/dist/collection/components/zero-account/qrcode.js +103 -103
- package/dist/collection/components/zero-account/qrcode.js.map +1 -1
- package/dist/collection/components/zero-account/websocket.js +149 -148
- package/dist/collection/components/zero-account/websocket.js.map +1 -1
- package/dist/collection/components/zero-account/zero-account.css +7 -0
- package/dist/collection/components/zero-account/zero-account.e2e.js +22 -22
- package/dist/collection/components/zero-account/zero-account.e2e.js.map +1 -1
- package/dist/collection/components/zero-account/zero-account.js +380 -379
- package/dist/collection/components/zero-account/zero-account.js.map +1 -1
- package/dist/collection/components/zero-account/zero-account.spec.js +13 -13
- package/dist/collection/components/zero-account/zero-account.spec.js.map +1 -1
- package/dist/collection/utils/request.js +37 -30
- package/dist/collection/utils/request.js.map +1 -1
- package/dist/collection/utils/utils.js +10 -10
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/collection/utils/utils.spec.js +6 -6
- package/dist/collection/utils/utils.spec.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/qr-code.d.ts +2 -2
- package/dist/components/qrcode.js +48 -48
- package/dist/components/qrcode.js.map +1 -1
- package/dist/components/zero-account.d.ts +2 -2
- package/dist/components/zero-account.js +359 -1279
- package/dist/components/zero-account.js.map +1 -1
- package/dist/esm/{index-09024c20.js → index-798be1d4.js} +370 -67
- package/dist/esm/index-798be1d4.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/qr-code_2.entry.js +358 -1278
- package/dist/esm/qr-code_2.entry.js.map +1 -1
- package/dist/esm/zero-account.js +3 -3
- package/dist/esm/zero-account.js.map +1 -1
- package/dist/types/components/zero-account/enums.d.ts +8 -8
- package/dist/types/components/zero-account/logo.d.ts +2 -2
- package/dist/types/components/zero-account/qrcode.d.ts +5 -5
- package/dist/types/components/zero-account/websocket.d.ts +27 -25
- package/dist/types/components/zero-account/zero-account.d.ts +39 -39
- package/dist/types/stencil-public-runtime.d.ts +46 -5
- package/dist/types/utils/request.d.ts +5 -5
- package/dist/types/utils/utils.d.ts +3 -3
- package/dist/zero-account/p-3b6bbcf5.js +3 -0
- package/dist/zero-account/p-3b6bbcf5.js.map +1 -0
- package/dist/zero-account/p-b6f591cf.entry.js +2 -0
- package/dist/zero-account/p-b6f591cf.entry.js.map +1 -0
- package/dist/zero-account/zero-account.esm.js +1 -1
- package/dist/zero-account/zero-account.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +10 -10
- package/dist/cjs/index-1e526aba.js.map +0 -1
- package/dist/esm/index-09024c20.js.map +0 -1
- package/dist/zero-account/p-21f4994d.js +0 -3
- package/dist/zero-account/p-21f4994d.js.map +0 -1
- package/dist/zero-account/p-a29dc444.entry.js +0 -2
- package/dist/zero-account/p-a29dc444.entry.js.map +0 -1
|
@@ -11,391 +11,392 @@ const minInterval = 10 * 1000;
|
|
|
11
11
|
const DEFAULT_CALLBACK_URL = window.location.origin + '/zero/auth';
|
|
12
12
|
const ANIMATION_DURATION = 3000;
|
|
13
13
|
export class ZeroAccount {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
this.refreshQR = (ignoreAnimate = false) => {
|
|
16
|
+
const update = () => {
|
|
17
|
+
this.restartTimer();
|
|
18
|
+
this.updateURL();
|
|
19
|
+
};
|
|
20
|
+
if (ignoreAnimate)
|
|
21
|
+
return update();
|
|
22
|
+
this.isAnimating = true;
|
|
23
|
+
this.animationTimer = window.setTimeout(() => {
|
|
24
|
+
update();
|
|
25
|
+
this.isAnimating = false;
|
|
26
|
+
}, ANIMATION_DURATION);
|
|
27
|
+
};
|
|
28
|
+
this.hideOnEsc = (e) => {
|
|
29
|
+
if ((e.key === 'Escape' || e.key === 'Esc')) {
|
|
30
|
+
this.modalOpen = false;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
this.log = (...args) => this.logger.log(...args);
|
|
34
|
+
this.appId = undefined;
|
|
35
|
+
this.updateInterval = 3 * 60 * 1000;
|
|
36
|
+
this.callbackURL = DEFAULT_CALLBACK_URL;
|
|
37
|
+
this.modal = true;
|
|
38
|
+
this.level = ErrorCorrectionLevel.M;
|
|
39
|
+
this.primaryColor = '#3C444F';
|
|
40
|
+
this.secondaryColor = undefined;
|
|
41
|
+
this.environment = Environment.production;
|
|
42
|
+
this.enableWithCredentials = false;
|
|
43
|
+
this.themePreset = ThemePreset.light;
|
|
44
|
+
this.autoStartApp = true;
|
|
45
|
+
this.modalOpen = false;
|
|
25
46
|
this.isAnimating = false;
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
47
|
+
this.url = '';
|
|
48
|
+
}
|
|
49
|
+
getUpdateInterval() {
|
|
50
|
+
// make sure the provided value is within bounds
|
|
51
|
+
return Math.min(Math.max(this.updateInterval, minInterval), maxInterval);
|
|
52
|
+
}
|
|
53
|
+
toggleModal() {
|
|
54
|
+
this.modalOpen = !this.modalOpen;
|
|
55
|
+
if (this.modalOpen)
|
|
56
|
+
this.refreshQR(true);
|
|
57
|
+
if ((this.modalOpen && this.autoStartApp) || this.isMobile())
|
|
58
|
+
this.openApp();
|
|
59
|
+
}
|
|
60
|
+
_closeModal() {
|
|
30
61
|
this.modalOpen = false;
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
this.log = (...args) => this.logger.log(...args);
|
|
34
|
-
this.appId = undefined;
|
|
35
|
-
this.updateInterval = 3 * 60 * 1000;
|
|
36
|
-
this.callbackURL = DEFAULT_CALLBACK_URL;
|
|
37
|
-
this.modal = true;
|
|
38
|
-
this.level = ErrorCorrectionLevel.M;
|
|
39
|
-
this.primaryColor = '#3C444F';
|
|
40
|
-
this.secondaryColor = undefined;
|
|
41
|
-
this.environment = Environment.production;
|
|
42
|
-
this.enableWithCredentials = false;
|
|
43
|
-
this.themePreset = ThemePreset.light;
|
|
44
|
-
this.autoStartApp = true;
|
|
45
|
-
this.modalOpen = false;
|
|
46
|
-
this.isAnimating = false;
|
|
47
|
-
this.url = '';
|
|
48
|
-
}
|
|
49
|
-
getUpdateInterval() {
|
|
50
|
-
// make sure the provided value is within bounds
|
|
51
|
-
return Math.min(Math.max(this.updateInterval, minInterval), maxInterval);
|
|
52
|
-
}
|
|
53
|
-
toggleModal() {
|
|
54
|
-
this.modalOpen = !this.modalOpen;
|
|
55
|
-
if (this.modalOpen)
|
|
56
|
-
this.refreshQR(true);
|
|
57
|
-
if ((this.modalOpen && this.autoStartApp) || this.isMobile())
|
|
58
|
-
this.openApp();
|
|
59
|
-
}
|
|
60
|
-
_closeModal() {
|
|
61
|
-
this.modalOpen = false;
|
|
62
|
-
this.stopTimer();
|
|
63
|
-
}
|
|
64
|
-
closeModal(e) {
|
|
65
|
-
if (e.target !== this.modalEl && e.target !== this.closeButtonEl) {
|
|
66
|
-
return e.stopPropagation();
|
|
62
|
+
this.stopTimer();
|
|
67
63
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
closeModal(e) {
|
|
65
|
+
if (e.target !== this.modalEl && e.target !== this.closeButtonEl) {
|
|
66
|
+
return e.stopPropagation();
|
|
67
|
+
}
|
|
68
|
+
this._closeModal();
|
|
73
69
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return (h(Host, null, h("slot", null), this.host.childNodes.length === 0 &&
|
|
79
|
-
h("button", { class: `button ${this.themePreset}`, onClick: () => this.toggleModal() }, h(Logo, { className: 'button__logo', color: logoColor }), "use 0account"), h("div", { ref: el => this.modalEl = el, onClick: (e) => this.closeModal(e), class: `modal ${this.themePreset} ${this.isAnimating ? 'modal-animated' : ''} ${this.modalOpen ? '' : 'modal--hidden'}` }, h("div", { class: 'modal__content' }, h("div", { ref: el => this.closeButtonEl = el, class: 'modal__close-button' }), h("div", { class: 'modal__qrcode__container' }, h("qr-code", { url: this.url, class: `modal__qrcode`, level: this.level, color: qrColor }), h("div", { class: 'circle__overlay' }, h("div", { class: 'circle' }), h("div", { class: 'circle circle--medium' }), h("div", { class: 'circle circle--large' })), h(Logo, { className: 'modal__logo', color: logoColor })), h("div", { class: 'modal__buttons' }, h("button", { onClick: () => this.openApp(), class: 'modal__button' }, "Open the desktop app"), h("a", { href: '#', class: 'modal__link' }, "Download the app"))))));
|
|
80
|
-
}
|
|
81
|
-
// called only once
|
|
82
|
-
componentWillLoad() {
|
|
83
|
-
this.logger = new Logger(this.environment);
|
|
84
|
-
this.uaParser = new UAParser();
|
|
85
|
-
this.ws = new WS(this.appId, {
|
|
86
|
-
updateInterval: this.getUpdateInterval(),
|
|
87
|
-
callbackURL: this.callbackURL,
|
|
88
|
-
uaParser: this.uaParser,
|
|
89
|
-
env: this.environment,
|
|
90
|
-
log: this.log,
|
|
91
|
-
});
|
|
92
|
-
// make sure we initQR
|
|
93
|
-
this.refreshQR(true);
|
|
94
|
-
document.addEventListener('keydown', this.hideOnEsc);
|
|
95
|
-
}
|
|
96
|
-
updateURL() {
|
|
97
|
-
const expires = new Date().getTime() + this.getUpdateInterval();
|
|
98
|
-
const uuid = uuidv4();
|
|
99
|
-
this.ws.updateUUID(uuid);
|
|
100
|
-
const params = utilsURL.appendToParams('', {
|
|
101
|
-
appId: this.appId,
|
|
102
|
-
uuid: uuid,
|
|
103
|
-
expires: expires,
|
|
104
|
-
});
|
|
105
|
-
if (this.isMobile()) {
|
|
106
|
-
this.url = 'https://launch.0account.com/auth?' + params;
|
|
70
|
+
openApp() {
|
|
71
|
+
if (this.modalOpen) {
|
|
72
|
+
window.location.href = this.url;
|
|
73
|
+
}
|
|
107
74
|
}
|
|
108
|
-
|
|
109
|
-
|
|
75
|
+
render() {
|
|
76
|
+
const logoColor = this.themePreset === ThemePreset.light ? '#7263FA' : '#FFFFF9';
|
|
77
|
+
const qrColor = '#000';
|
|
78
|
+
return (h(Host, { key: '1dc3610232166249e09861006f22ad43a58d208d' }, h("slot", { key: '5c510d06b9423a2540e494c57eebda16ac2f3fe6' }), this.host.childNodes.length === 0 &&
|
|
79
|
+
h("button", { class: `button ${this.themePreset}`, onClick: () => this.toggleModal() }, h(Logo, { className: 'button__logo', color: logoColor }), "use 0account"), h("div", { key: '1ccab237f88fe77eb22f0c0b82b9612b536a6eb2', ref: el => this.modalEl = el, onClick: (e) => this.closeModal(e), class: `modal ${this.themePreset} ${this.isAnimating ? 'modal-animated' : ''} ${this.modalOpen ? '' : 'modal--hidden'}` }, h("div", { key: 'cca5693c98f2dbf7aa5584e62862e90783c24bdb', class: 'modal__content' }, h("div", { key: 'fa239e9bb2f618a7d0067c74d6c599f1482aa0ce', ref: el => this.closeButtonEl = el, class: 'modal__close-button' }), h("div", { key: '3d8e206fbbb7a45f0b634fc1ac5cda0a3434d6d9', class: 'modal__qrcode__container' }, h("qr-code", { key: 'a2f7f00f7926c7994c79098b4f386e4e60f16bc4', url: this.url, class: `modal__qrcode`, level: this.level, color: qrColor }), h("div", { key: '5819116a32e44341a408b79d5ed48a31c0be17d9', class: 'circle__overlay' }, h("div", { key: '67220c1757145e3263fdf8b265730a9b50628034', class: 'circle' }), h("div", { key: '2d43067a7a3e0fad60670a92f026925b7b2141f0', class: 'circle circle--medium' }), h("div", { key: 'c6cc6df2fcfd06b895e185f5b818150ea031c15e', class: 'circle circle--large' })), h(Logo, { key: '1e5b5f9687d0629cacd3c2524bb271824c03f102', className: 'modal__logo', color: logoColor })), h("div", { key: '13e998689e3b8942c39f94c8d67b1d6908ea63de', class: 'modal__buttons' }, h("button", { key: '879631b5e37bd0b9f440023edbef542d3628142c', onClick: () => this.openApp(), class: 'modal__button' }, "Open the desktop app"), h("a", { key: '3be4413c520f42982546535badf4aa133a25ee78', href: 'https://0account.com/downloads', class: 'modal__link' }, "Download the app"))))));
|
|
110
80
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
81
|
+
// called only once
|
|
82
|
+
componentWillLoad() {
|
|
83
|
+
this.logger = new Logger(this.environment);
|
|
84
|
+
this.uaParser = new UAParser();
|
|
85
|
+
this.ws = new WS(this.appId, {
|
|
86
|
+
updateInterval: this.getUpdateInterval(),
|
|
87
|
+
enableWithCredentials: this.enableWithCredentials,
|
|
88
|
+
callbackURL: this.callbackURL,
|
|
89
|
+
uaParser: this.uaParser,
|
|
90
|
+
env: this.environment,
|
|
91
|
+
log: this.log,
|
|
92
|
+
});
|
|
93
|
+
// make sure we initQR
|
|
94
|
+
this.refreshQR(true);
|
|
95
|
+
document.addEventListener('keydown', this.hideOnEsc);
|
|
96
|
+
}
|
|
97
|
+
updateURL() {
|
|
98
|
+
const expires = new Date().getTime() + this.getUpdateInterval();
|
|
99
|
+
const uuid = uuidv4();
|
|
100
|
+
this.ws.updateUUID(uuid);
|
|
101
|
+
const params = utilsURL.appendToParams('', {
|
|
102
|
+
appId: this.appId,
|
|
103
|
+
uuid: uuid,
|
|
104
|
+
expires: expires,
|
|
105
|
+
});
|
|
106
|
+
if (this.isMobile()) {
|
|
107
|
+
this.url = 'https://launch.0account.com/auth?' + params;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
this.url = 'zero-account://auth?' + params;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
isMobile() {
|
|
114
|
+
const device = this.uaParser.getDevice();
|
|
115
|
+
return device.type === 'tablet' || device.type === 'mobile';
|
|
116
|
+
}
|
|
117
|
+
connectedCallback() {
|
|
118
|
+
this.startTimer();
|
|
119
|
+
}
|
|
120
|
+
disconnectedCallback() {
|
|
121
|
+
this.stopTimer();
|
|
122
|
+
document.removeEventListener('keydown', this.hideOnEsc);
|
|
123
|
+
}
|
|
124
|
+
restartTimer() {
|
|
125
|
+
this.stopTimer();
|
|
126
|
+
this.startTimer();
|
|
127
|
+
}
|
|
128
|
+
startTimer() {
|
|
129
|
+
this.timer = window.setInterval(this.refreshQR, this.getUpdateInterval());
|
|
130
|
+
}
|
|
131
|
+
stopTimer() {
|
|
132
|
+
window.clearInterval(this.timer);
|
|
133
|
+
window.clearTimeout(this.animationTimer);
|
|
134
|
+
this.isAnimating = false;
|
|
135
|
+
}
|
|
136
|
+
static get is() { return "zero-account"; }
|
|
137
|
+
static get encapsulation() { return "shadow"; }
|
|
138
|
+
static get originalStyleUrls() {
|
|
139
|
+
return {
|
|
140
|
+
"$": ["zero-account.css"]
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
static get styleUrls() {
|
|
144
|
+
return {
|
|
145
|
+
"$": ["zero-account.css"]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
static get properties() {
|
|
149
|
+
return {
|
|
150
|
+
"appId": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "string",
|
|
155
|
+
"resolved": "string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": true,
|
|
159
|
+
"optional": false,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": ""
|
|
163
|
+
},
|
|
164
|
+
"attribute": "app-id",
|
|
165
|
+
"reflect": false
|
|
166
|
+
},
|
|
167
|
+
"updateInterval": {
|
|
168
|
+
"type": "number",
|
|
169
|
+
"mutable": false,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "number",
|
|
172
|
+
"resolved": "number",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": true,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": ""
|
|
180
|
+
},
|
|
181
|
+
"attribute": "update-interval",
|
|
182
|
+
"reflect": false,
|
|
183
|
+
"defaultValue": "3 * 60 * 1000"
|
|
184
|
+
},
|
|
185
|
+
"callbackURL": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "string",
|
|
190
|
+
"resolved": "string",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": false,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": ""
|
|
198
|
+
},
|
|
199
|
+
"attribute": "callback-url",
|
|
200
|
+
"reflect": false,
|
|
201
|
+
"defaultValue": "DEFAULT_CALLBACK_URL"
|
|
202
|
+
},
|
|
203
|
+
"modal": {
|
|
204
|
+
"type": "boolean",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "boolean",
|
|
208
|
+
"resolved": "boolean",
|
|
209
|
+
"references": {}
|
|
210
|
+
},
|
|
211
|
+
"required": false,
|
|
212
|
+
"optional": true,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": ""
|
|
216
|
+
},
|
|
217
|
+
"attribute": "modal",
|
|
218
|
+
"reflect": false,
|
|
219
|
+
"defaultValue": "true"
|
|
220
|
+
},
|
|
221
|
+
"level": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "ErrorCorrectionLevel",
|
|
226
|
+
"resolved": "ErrorCorrectionLevel.H | ErrorCorrectionLevel.L | ErrorCorrectionLevel.M | ErrorCorrectionLevel.Q",
|
|
227
|
+
"references": {
|
|
228
|
+
"ErrorCorrectionLevel": {
|
|
229
|
+
"location": "import",
|
|
230
|
+
"path": "./enums",
|
|
231
|
+
"id": "src/components/zero-account/enums.ts::ErrorCorrectionLevel"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": true,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"attribute": "level",
|
|
242
|
+
"reflect": false,
|
|
243
|
+
"defaultValue": "ErrorCorrectionLevel.M"
|
|
244
|
+
},
|
|
245
|
+
"primaryColor": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"mutable": false,
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "string",
|
|
250
|
+
"resolved": "string",
|
|
251
|
+
"references": {}
|
|
252
|
+
},
|
|
253
|
+
"required": false,
|
|
254
|
+
"optional": false,
|
|
255
|
+
"docs": {
|
|
256
|
+
"tags": [],
|
|
257
|
+
"text": ""
|
|
258
|
+
},
|
|
259
|
+
"attribute": "primary-color",
|
|
260
|
+
"reflect": false,
|
|
261
|
+
"defaultValue": "'#3C444F'"
|
|
262
|
+
},
|
|
263
|
+
"secondaryColor": {
|
|
264
|
+
"type": "string",
|
|
265
|
+
"mutable": false,
|
|
266
|
+
"complexType": {
|
|
267
|
+
"original": "string",
|
|
268
|
+
"resolved": "string",
|
|
269
|
+
"references": {}
|
|
270
|
+
},
|
|
271
|
+
"required": false,
|
|
272
|
+
"optional": false,
|
|
273
|
+
"docs": {
|
|
274
|
+
"tags": [],
|
|
275
|
+
"text": ""
|
|
276
|
+
},
|
|
277
|
+
"attribute": "secondary-color",
|
|
278
|
+
"reflect": false
|
|
279
|
+
},
|
|
280
|
+
"environment": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"mutable": false,
|
|
283
|
+
"complexType": {
|
|
284
|
+
"original": "Environment",
|
|
285
|
+
"resolved": "Environment.production | Environment.staging",
|
|
286
|
+
"references": {
|
|
287
|
+
"Environment": {
|
|
288
|
+
"location": "import",
|
|
289
|
+
"path": "./enums",
|
|
290
|
+
"id": "src/components/zero-account/enums.ts::Environment"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"required": false,
|
|
295
|
+
"optional": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": ""
|
|
299
|
+
},
|
|
300
|
+
"attribute": "environment",
|
|
301
|
+
"reflect": false,
|
|
302
|
+
"defaultValue": "Environment.production"
|
|
303
|
+
},
|
|
304
|
+
"enableWithCredentials": {
|
|
305
|
+
"type": "boolean",
|
|
306
|
+
"mutable": false,
|
|
307
|
+
"complexType": {
|
|
308
|
+
"original": "boolean",
|
|
309
|
+
"resolved": "boolean",
|
|
310
|
+
"references": {}
|
|
311
|
+
},
|
|
312
|
+
"required": false,
|
|
313
|
+
"optional": true,
|
|
314
|
+
"docs": {
|
|
315
|
+
"tags": [],
|
|
316
|
+
"text": ""
|
|
317
|
+
},
|
|
318
|
+
"attribute": "enable-with-credentials",
|
|
319
|
+
"reflect": false,
|
|
320
|
+
"defaultValue": "false"
|
|
321
|
+
},
|
|
322
|
+
"themePreset": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"mutable": false,
|
|
325
|
+
"complexType": {
|
|
326
|
+
"original": "ThemePreset",
|
|
327
|
+
"resolved": "ThemePreset.dark | ThemePreset.light",
|
|
328
|
+
"references": {
|
|
329
|
+
"ThemePreset": {
|
|
330
|
+
"location": "import",
|
|
331
|
+
"path": "./enums",
|
|
332
|
+
"id": "src/components/zero-account/enums.ts::ThemePreset"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"required": false,
|
|
337
|
+
"optional": true,
|
|
338
|
+
"docs": {
|
|
339
|
+
"tags": [],
|
|
340
|
+
"text": ""
|
|
341
|
+
},
|
|
342
|
+
"attribute": "theme-preset",
|
|
343
|
+
"reflect": false,
|
|
344
|
+
"defaultValue": "ThemePreset.light"
|
|
345
|
+
},
|
|
346
|
+
"autoStartApp": {
|
|
347
|
+
"type": "boolean",
|
|
348
|
+
"mutable": false,
|
|
349
|
+
"complexType": {
|
|
350
|
+
"original": "boolean",
|
|
351
|
+
"resolved": "boolean",
|
|
352
|
+
"references": {}
|
|
353
|
+
},
|
|
354
|
+
"required": false,
|
|
355
|
+
"optional": true,
|
|
356
|
+
"docs": {
|
|
357
|
+
"tags": [],
|
|
358
|
+
"text": ""
|
|
359
|
+
},
|
|
360
|
+
"attribute": "auto-start-app",
|
|
361
|
+
"reflect": false,
|
|
362
|
+
"defaultValue": "true"
|
|
332
363
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
static get elementRef() { return "host"; }
|
|
373
|
-
static get listeners() {
|
|
374
|
-
return [{
|
|
375
|
-
"name": "0account-toggle-modal",
|
|
376
|
-
"method": "toggleModal",
|
|
377
|
-
"target": "document",
|
|
378
|
-
"capture": false,
|
|
379
|
-
"passive": false
|
|
380
|
-
}, {
|
|
381
|
-
"name": "0account-close-modal",
|
|
382
|
-
"method": "_closeModal",
|
|
383
|
-
"target": "document",
|
|
384
|
-
"capture": false,
|
|
385
|
-
"passive": false
|
|
386
|
-
}, {
|
|
387
|
-
"name": "0account-authenticated",
|
|
388
|
-
"method": "_closeModal",
|
|
389
|
-
"target": "document",
|
|
390
|
-
"capture": false,
|
|
391
|
-
"passive": false
|
|
392
|
-
}, {
|
|
393
|
-
"name": "0account-open-app",
|
|
394
|
-
"method": "openApp",
|
|
395
|
-
"target": "document",
|
|
396
|
-
"capture": false,
|
|
397
|
-
"passive": false
|
|
398
|
-
}];
|
|
399
|
-
}
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
static get states() {
|
|
367
|
+
return {
|
|
368
|
+
"modalOpen": {},
|
|
369
|
+
"isAnimating": {},
|
|
370
|
+
"url": {}
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
static get elementRef() { return "host"; }
|
|
374
|
+
static get listeners() {
|
|
375
|
+
return [{
|
|
376
|
+
"name": "0account-toggle-modal",
|
|
377
|
+
"method": "toggleModal",
|
|
378
|
+
"target": "document",
|
|
379
|
+
"capture": false,
|
|
380
|
+
"passive": false
|
|
381
|
+
}, {
|
|
382
|
+
"name": "0account-close-modal",
|
|
383
|
+
"method": "_closeModal",
|
|
384
|
+
"target": "document",
|
|
385
|
+
"capture": false,
|
|
386
|
+
"passive": false
|
|
387
|
+
}, {
|
|
388
|
+
"name": "0account-authenticated",
|
|
389
|
+
"method": "_closeModal",
|
|
390
|
+
"target": "document",
|
|
391
|
+
"capture": false,
|
|
392
|
+
"passive": false
|
|
393
|
+
}, {
|
|
394
|
+
"name": "0account-open-app",
|
|
395
|
+
"method": "openApp",
|
|
396
|
+
"target": "document",
|
|
397
|
+
"capture": false,
|
|
398
|
+
"passive": false
|
|
399
|
+
}];
|
|
400
|
+
}
|
|
400
401
|
}
|
|
401
402
|
//# sourceMappingURL=zero-account.js.map
|