@vonage/vivid 3.0.0-test.0 → 3.0.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.
package/shared/icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { g as global$e, r as redefine$3, w as wellKnownSymbol$8, a as getBuiltIn$4, o as objectDefineProperty, d as descriptors, b as objectIsPrototypeOf, f as functionUncurryThis, c as functionBindNative, e as aCallable$4, i as iterators, h as classofRaw$1, j as isCallable$5, k as getMethod$2, l as functionCall, m as anObject$5, t as tryToString$3, n as lengthOfArrayLike$1, p as fails$4, q as inspectSource$2, s as engineUserAgent, u as html$1, v as documentCreateElement, x as hasOwnProperty_1, y as objectGetOwnPropertyDescriptor, z as isObject$2, _ as _export, A as objectSetPrototypeOf, B as setToStringTag$1, C as isForced_1, D as engineV8Version, E as internalState, F as requireObjectCoercible$1, G as functionName } from './web.dom-collections.iterator.js';
1
+ import { i as global$e, r as redefine$3, w as wellKnownSymbol$8, A as getBuiltIn$4, a as objectDefineProperty, d as descriptors, B as objectIsPrototypeOf, C as functionUncurryThis, D as functionBindNative, E as aCallable$4, p as iterators, F as classofRaw$1, k as isCallable$5, G as getMethod$2, x as functionCall, b as anObject$5, H as tryToString$3, I as lengthOfArrayLike$1, g as fails$4, J as inspectSource$2, K as engineUserAgent, c as html$1, f as documentCreateElement, j as hasOwnProperty_1, L as objectGetOwnPropertyDescriptor, M as isObject$2, _ as _export, q as objectSetPrototypeOf, n as setToStringTag$1, N as isForced_1, O as engineV8Version, z as internalState, P as requireObjectCoercible$1, y as functionName } from './object-set-prototype-of.js';
2
2
  import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
3
3
  import { _ as _curry1, a as _curry2, b as _has } from './_has.js';
4
4
 
@@ -1356,25 +1356,20 @@ const loadSvg = iconId => fetch(baseUrlTemplate([iconId, 'svg'].join('.'), ICON_
1356
1356
 
1357
1357
  const resolveIcon = memoizeWith$1(identity$1, (iconId = '') => iconId.trim() ? loadSvg(iconId) : Promise.resolve(''));
1358
1358
  class Icon extends FoundationElement {
1359
- constructor() {
1360
- super(...arguments);
1361
- this.svg = '';
1362
- }
1363
-
1364
1359
  async typeChanged() {
1365
- this.svg = '';
1360
+ this.svg = undefined;
1366
1361
  let timeout = setTimeout(() => {
1367
1362
  this.svg = PLACEHOLDER_ICON;
1368
1363
  timeout = setTimeout(() => {
1369
1364
  if (this.svg === PLACEHOLDER_ICON) {
1370
- this.svg = '';
1365
+ this.svg = undefined;
1371
1366
  }
1372
1367
  }, PLACEHOLDER_TIMEOUT);
1373
1368
  }, PLACEHOLDER_DELAY);
1374
1369
  await resolveIcon(this.type).then(svg => {
1375
1370
  this.svg = svg;
1376
1371
  }).catch(() => {
1377
- this.svg = '';
1372
+ this.svg = undefined;
1378
1373
  }).finally(() => {
1379
1374
  clearTimeout(timeout);
1380
1375
  });
@@ -1386,7 +1381,7 @@ __decorate([attr, __metadata("design:type", String)], Icon.prototype, "connotati
1386
1381
 
1387
1382
  __decorate([attr, __metadata("design:type", String)], Icon.prototype, "size", void 0);
1388
1383
 
1389
- __decorate([observable, __metadata("design:type", Object)], Icon.prototype, "svg", void 0);
1384
+ __decorate([observable, __metadata("design:type", String)], Icon.prototype, "svg", void 0);
1390
1385
 
1391
1386
  __decorate([attr, __metadata("design:type", String)], Icon.prototype, "type", void 0);
1392
1387