@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.
Files changed (68) hide show
  1. package/dist/cjs/{index-1e526aba.js → index-ef57218a.js} +370 -67
  2. package/dist/cjs/index-ef57218a.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js.map +1 -1
  5. package/dist/cjs/qr-code_2.cjs.entry.js +358 -1278
  6. package/dist/cjs/qr-code_2.cjs.entry.js.map +1 -1
  7. package/dist/cjs/zero-account.cjs.js +2 -2
  8. package/dist/cjs/zero-account.cjs.js.map +1 -1
  9. package/dist/collection/collection-manifest.json +2 -2
  10. package/dist/collection/components/zero-account/enums.js +8 -8
  11. package/dist/collection/components/zero-account/enums.js.map +1 -1
  12. package/dist/collection/components/zero-account/logo.js +1 -1
  13. package/dist/collection/components/zero-account/logo.js.map +1 -1
  14. package/dist/collection/components/zero-account/qrcode.js +103 -103
  15. package/dist/collection/components/zero-account/qrcode.js.map +1 -1
  16. package/dist/collection/components/zero-account/websocket.js +149 -148
  17. package/dist/collection/components/zero-account/websocket.js.map +1 -1
  18. package/dist/collection/components/zero-account/zero-account.css +7 -0
  19. package/dist/collection/components/zero-account/zero-account.e2e.js +22 -22
  20. package/dist/collection/components/zero-account/zero-account.e2e.js.map +1 -1
  21. package/dist/collection/components/zero-account/zero-account.js +380 -379
  22. package/dist/collection/components/zero-account/zero-account.js.map +1 -1
  23. package/dist/collection/components/zero-account/zero-account.spec.js +13 -13
  24. package/dist/collection/components/zero-account/zero-account.spec.js.map +1 -1
  25. package/dist/collection/utils/request.js +37 -30
  26. package/dist/collection/utils/request.js.map +1 -1
  27. package/dist/collection/utils/utils.js +10 -10
  28. package/dist/collection/utils/utils.js.map +1 -1
  29. package/dist/collection/utils/utils.spec.js +6 -6
  30. package/dist/collection/utils/utils.spec.js.map +1 -1
  31. package/dist/components/index.d.ts +6 -0
  32. package/dist/components/index.js +1 -1
  33. package/dist/components/qr-code.d.ts +2 -2
  34. package/dist/components/qrcode.js +48 -48
  35. package/dist/components/qrcode.js.map +1 -1
  36. package/dist/components/zero-account.d.ts +2 -2
  37. package/dist/components/zero-account.js +359 -1279
  38. package/dist/components/zero-account.js.map +1 -1
  39. package/dist/esm/{index-09024c20.js → index-798be1d4.js} +370 -67
  40. package/dist/esm/index-798be1d4.js.map +1 -0
  41. package/dist/esm/loader.js +3 -3
  42. package/dist/esm/loader.js.map +1 -1
  43. package/dist/esm/qr-code_2.entry.js +358 -1278
  44. package/dist/esm/qr-code_2.entry.js.map +1 -1
  45. package/dist/esm/zero-account.js +3 -3
  46. package/dist/esm/zero-account.js.map +1 -1
  47. package/dist/types/components/zero-account/enums.d.ts +8 -8
  48. package/dist/types/components/zero-account/logo.d.ts +2 -2
  49. package/dist/types/components/zero-account/qrcode.d.ts +5 -5
  50. package/dist/types/components/zero-account/websocket.d.ts +27 -25
  51. package/dist/types/components/zero-account/zero-account.d.ts +39 -39
  52. package/dist/types/stencil-public-runtime.d.ts +46 -5
  53. package/dist/types/utils/request.d.ts +5 -5
  54. package/dist/types/utils/utils.d.ts +3 -3
  55. package/dist/zero-account/p-3b6bbcf5.js +3 -0
  56. package/dist/zero-account/p-3b6bbcf5.js.map +1 -0
  57. package/dist/zero-account/p-b6f591cf.entry.js +2 -0
  58. package/dist/zero-account/p-b6f591cf.entry.js.map +1 -0
  59. package/dist/zero-account/zero-account.esm.js +1 -1
  60. package/dist/zero-account/zero-account.esm.js.map +1 -1
  61. package/loader/index.d.ts +1 -1
  62. package/package.json +10 -10
  63. package/dist/cjs/index-1e526aba.js.map +0 -1
  64. package/dist/esm/index-09024c20.js.map +0 -1
  65. package/dist/zero-account/p-21f4994d.js +0 -3
  66. package/dist/zero-account/p-21f4994d.js.map +0 -1
  67. package/dist/zero-account/p-a29dc444.entry.js +0 -2
  68. 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
- 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();
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
- }, ANIMATION_DURATION);
27
- };
28
- this.hideOnEsc = (e) => {
29
- if ((e.key === 'Escape' || e.key === 'Esc')) {
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
- this._closeModal();
69
- }
70
- openApp() {
71
- if (this.modalOpen) {
72
- window.location.href = this.url;
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
- render() {
76
- const logoColor = this.themePreset === ThemePreset.light ? '#7263FA' : '#FFFFF9';
77
- const qrColor = this.themePreset === ThemePreset.light ? '#000' : '#FFFFF9';
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
- else {
109
- this.url = 'zero-account://auth?' + params;
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
- isMobile() {
113
- const device = this.uaParser.getDevice();
114
- return device.type === 'tablet' || device.type === 'mobile';
115
- }
116
- connectedCallback() {
117
- this.startTimer();
118
- }
119
- disconnectedCallback() {
120
- this.stopTimer();
121
- document.removeEventListener('keydown', this.hideOnEsc);
122
- }
123
- restartTimer() {
124
- this.stopTimer();
125
- this.startTimer();
126
- }
127
- startTimer() {
128
- this.timer = window.setInterval(this.refreshQR, this.getUpdateInterval());
129
- }
130
- stopTimer() {
131
- window.clearInterval(this.timer);
132
- window.clearTimeout(this.animationTimer);
133
- this.isAnimating = false;
134
- }
135
- static get is() { return "zero-account"; }
136
- static get encapsulation() { return "shadow"; }
137
- static get originalStyleUrls() {
138
- return {
139
- "$": ["zero-account.css"]
140
- };
141
- }
142
- static get styleUrls() {
143
- return {
144
- "$": ["zero-account.css"]
145
- };
146
- }
147
- static get properties() {
148
- return {
149
- "appId": {
150
- "type": "string",
151
- "mutable": false,
152
- "complexType": {
153
- "original": "string",
154
- "resolved": "string",
155
- "references": {}
156
- },
157
- "required": true,
158
- "optional": false,
159
- "docs": {
160
- "tags": [],
161
- "text": ""
162
- },
163
- "attribute": "app-id",
164
- "reflect": false
165
- },
166
- "updateInterval": {
167
- "type": "number",
168
- "mutable": false,
169
- "complexType": {
170
- "original": "number",
171
- "resolved": "number",
172
- "references": {}
173
- },
174
- "required": false,
175
- "optional": true,
176
- "docs": {
177
- "tags": [],
178
- "text": ""
179
- },
180
- "attribute": "update-interval",
181
- "reflect": false,
182
- "defaultValue": "3 * 60 * 1000"
183
- },
184
- "callbackURL": {
185
- "type": "string",
186
- "mutable": false,
187
- "complexType": {
188
- "original": "string",
189
- "resolved": "string",
190
- "references": {}
191
- },
192
- "required": false,
193
- "optional": false,
194
- "docs": {
195
- "tags": [],
196
- "text": ""
197
- },
198
- "attribute": "callback-url",
199
- "reflect": false,
200
- "defaultValue": "DEFAULT_CALLBACK_URL"
201
- },
202
- "modal": {
203
- "type": "boolean",
204
- "mutable": false,
205
- "complexType": {
206
- "original": "boolean",
207
- "resolved": "boolean",
208
- "references": {}
209
- },
210
- "required": false,
211
- "optional": true,
212
- "docs": {
213
- "tags": [],
214
- "text": ""
215
- },
216
- "attribute": "modal",
217
- "reflect": false,
218
- "defaultValue": "true"
219
- },
220
- "level": {
221
- "type": "string",
222
- "mutable": false,
223
- "complexType": {
224
- "original": "ErrorCorrectionLevel",
225
- "resolved": "ErrorCorrectionLevel.H | ErrorCorrectionLevel.L | ErrorCorrectionLevel.M | ErrorCorrectionLevel.Q",
226
- "references": {
227
- "ErrorCorrectionLevel": {
228
- "location": "import",
229
- "path": "./enums",
230
- "id": "src/components/zero-account/enums.ts::ErrorCorrectionLevel"
231
- }
232
- }
233
- },
234
- "required": false,
235
- "optional": true,
236
- "docs": {
237
- "tags": [],
238
- "text": ""
239
- },
240
- "attribute": "level",
241
- "reflect": false,
242
- "defaultValue": "ErrorCorrectionLevel.M"
243
- },
244
- "primaryColor": {
245
- "type": "string",
246
- "mutable": false,
247
- "complexType": {
248
- "original": "string",
249
- "resolved": "string",
250
- "references": {}
251
- },
252
- "required": false,
253
- "optional": false,
254
- "docs": {
255
- "tags": [],
256
- "text": ""
257
- },
258
- "attribute": "primary-color",
259
- "reflect": false,
260
- "defaultValue": "'#3C444F'"
261
- },
262
- "secondaryColor": {
263
- "type": "string",
264
- "mutable": false,
265
- "complexType": {
266
- "original": "string",
267
- "resolved": "string",
268
- "references": {}
269
- },
270
- "required": false,
271
- "optional": false,
272
- "docs": {
273
- "tags": [],
274
- "text": ""
275
- },
276
- "attribute": "secondary-color",
277
- "reflect": false
278
- },
279
- "environment": {
280
- "type": "string",
281
- "mutable": false,
282
- "complexType": {
283
- "original": "Environment",
284
- "resolved": "Environment.production | Environment.staging",
285
- "references": {
286
- "Environment": {
287
- "location": "import",
288
- "path": "./enums",
289
- "id": "src/components/zero-account/enums.ts::Environment"
290
- }
291
- }
292
- },
293
- "required": false,
294
- "optional": true,
295
- "docs": {
296
- "tags": [],
297
- "text": ""
298
- },
299
- "attribute": "environment",
300
- "reflect": false,
301
- "defaultValue": "Environment.production"
302
- },
303
- "enableWithCredentials": {
304
- "type": "boolean",
305
- "mutable": false,
306
- "complexType": {
307
- "original": "boolean",
308
- "resolved": "boolean",
309
- "references": {}
310
- },
311
- "required": false,
312
- "optional": true,
313
- "docs": {
314
- "tags": [],
315
- "text": ""
316
- },
317
- "attribute": "enable-with-credentials",
318
- "reflect": false,
319
- "defaultValue": "false"
320
- },
321
- "themePreset": {
322
- "type": "string",
323
- "mutable": false,
324
- "complexType": {
325
- "original": "ThemePreset",
326
- "resolved": "ThemePreset.dark | ThemePreset.light",
327
- "references": {
328
- "ThemePreset": {
329
- "location": "import",
330
- "path": "./enums",
331
- "id": "src/components/zero-account/enums.ts::ThemePreset"
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
- "required": false,
336
- "optional": true,
337
- "docs": {
338
- "tags": [],
339
- "text": ""
340
- },
341
- "attribute": "theme-preset",
342
- "reflect": false,
343
- "defaultValue": "ThemePreset.light"
344
- },
345
- "autoStartApp": {
346
- "type": "boolean",
347
- "mutable": false,
348
- "complexType": {
349
- "original": "boolean",
350
- "resolved": "boolean",
351
- "references": {}
352
- },
353
- "required": false,
354
- "optional": true,
355
- "docs": {
356
- "tags": [],
357
- "text": ""
358
- },
359
- "attribute": "auto-start-app",
360
- "reflect": false,
361
- "defaultValue": "true"
362
- }
363
- };
364
- }
365
- static get states() {
366
- return {
367
- "modalOpen": {},
368
- "isAnimating": {},
369
- "url": {}
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