@digipair/skill-web-heygen 0.57.16 → 0.57.17

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/index.cjs.js CHANGED
@@ -46,8 +46,8 @@ function _instanceof(left, right) {
46
46
  return left instanceof right;
47
47
  }
48
48
  }
49
- var t$2 = globalThis, e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$2 = new WeakMap;
50
- var n$2 = /*#__PURE__*/ function() {
49
+ var t$2 = globalThis, e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
50
+ var n$3 = /*#__PURE__*/ function() {
51
51
  function n(t, e, o) {
52
52
  _class_call_check$3(this, n);
53
53
  if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -61,7 +61,7 @@ var n$2 = /*#__PURE__*/ function() {
61
61
  var s = this.t;
62
62
  if (e$4 && void 0 === t) {
63
63
  var e1 = void 0 !== s && 1 === s.length;
64
- e1 && (t = o$2.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$2.set(s, t));
64
+ e1 && (t = o$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$3.set(s, t));
65
65
  }
66
66
  return t;
67
67
  }
@@ -75,8 +75,8 @@ var n$2 = /*#__PURE__*/ function() {
75
75
  ]);
76
76
  return n;
77
77
  }();
78
- var r$3 = function(t) {
79
- return new n$2("string" == typeof t ? t : t + "", void 0, s$1);
78
+ var r$4 = function(t) {
79
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
80
80
  }, S$1 = function(s, o) {
81
81
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
82
82
  if (e$4) s.adoptedStyleSheets = o.map(function(t) {
@@ -127,7 +127,7 @@ var r$3 = function(t) {
127
127
  }
128
128
  }
129
129
  }
130
- return r$3(e);
130
+ return r$4(e);
131
131
  }(t) : t;
132
132
  };
133
133
 
@@ -449,7 +449,7 @@ var _Symbol, _a, _a1;
449
449
  * @license
450
450
  * Copyright 2017 Google LLC
451
451
  * SPDX-License-Identifier: BSD-3-Clause
452
- */ var i$2 = Object.is, e$3 = Object.defineProperty, r$2 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$1 = Object.getOwnPropertySymbols, n$1 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
452
+ */ var i$2 = Object.is, e$3 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
453
453
  return t;
454
454
  }, u$1 = {
455
455
  toAttribute: function toAttribute(t, s) {
@@ -851,7 +851,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
851
851
  key: "getPropertyDescriptor",
852
852
  value: function getPropertyDescriptor(t, s, i) {
853
853
  var _r;
854
- var _ref = (_r = r$2(this.prototype, t)) !== null && _r !== void 0 ? _r : {
854
+ var _ref = (_r = r$3(this.prototype, t)) !== null && _r !== void 0 ? _r : {
855
855
  get: function get() {
856
856
  return this[s];
857
857
  },
@@ -883,7 +883,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
883
883
  key: "_$Ei",
884
884
  value: function _$Ei() {
885
885
  if (this.hasOwnProperty(d$1("elementProperties"))) return;
886
- var t = n$1(this);
886
+ var t = n$2(this);
887
887
  t.finalize(), void 0 !== t.l && (this.l = _to_consumable_array$1(t.l)), this.elementProperties = new Map(t.elementProperties);
888
888
  }
889
889
  },
@@ -892,7 +892,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
892
892
  value: function finalize() {
893
893
  if (this.hasOwnProperty(d$1("finalized"))) return;
894
894
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
895
- var t = this.properties, s = _to_consumable_array$1(h$1(t)).concat(_to_consumable_array$1(o$1(t)));
895
+ var t = this.properties, s = _to_consumable_array$1(h$1(t)).concat(_to_consumable_array$1(o$2(t)));
896
896
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
897
897
  try {
898
898
  for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -1162,8 +1162,8 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
1162
1162
  createHTML: function(t) {
1163
1163
  return t;
1164
1164
  }
1165
- }) : void 0, e$2 = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o = "?" + h, n = "<".concat(o, ">"), r$1 = document, l = function() {
1166
- return r$1.createComment("");
1165
+ }) : void 0, e$2 = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$1 = "?" + h, n$1 = "<".concat(o$1, ">"), r$2 = document, l = function() {
1166
+ return r$2.createComment("");
1167
1167
  }, c = function(t) {
1168
1168
  return null === t || "object" != typeof t && "function" != typeof t;
1169
1169
  }, a = Array.isArray, u = function(t) {
@@ -1179,7 +1179,7 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
1179
1179
  values: s
1180
1180
  };
1181
1181
  };
1182
- }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$1.createTreeWalker(r$1, 129);
1182
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
1183
1183
  function P(t, i) {
1184
1184
  if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1185
1185
  return void 0 !== s ? s.createHTML(i) : i;
@@ -1192,7 +1192,7 @@ var V = function(t, i) {
1192
1192
  var a = void 0, u = void 0, d = -1, y = 0;
1193
1193
  for(; y < s1.length && (c.lastIndex = y, u = c.exec(s1), null !== u);)y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r !== null && r !== void 0 ? r : f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
1194
1194
  var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
1195
- l += c === f ? s1 + n : d >= 0 ? (o.push(a), s1.slice(0, d) + e$2 + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1195
+ l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e$2 + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1196
1196
  }
1197
1197
  return [
1198
1198
  P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
@@ -1257,7 +1257,7 @@ var N = /*#__PURE__*/ function() {
1257
1257
  r.append(t3[s2], l());
1258
1258
  }
1259
1259
  }
1260
- } else if (8 === r.nodeType) if (r.data === o) d.push({
1260
+ } else if (8 === r.nodeType) if (r.data === o$1) d.push({
1261
1261
  type: 2,
1262
1262
  index: c
1263
1263
  });
@@ -1275,7 +1275,7 @@ var N = /*#__PURE__*/ function() {
1275
1275
  {
1276
1276
  key: "createElement",
1277
1277
  value: function createElement(t, i) {
1278
- var s = r$1.createElement("template");
1278
+ var s = r$2.createElement("template");
1279
1279
  return s.innerHTML = t, s;
1280
1280
  }
1281
1281
  }
@@ -1314,7 +1314,7 @@ var M = /*#__PURE__*/ function() {
1314
1314
  key: "u",
1315
1315
  value: function u(t) {
1316
1316
  var _t_creationScope;
1317
- var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$1).importNode(i, !0);
1317
+ var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
1318
1318
  C.currentNode = e;
1319
1319
  var h = C.nextNode(), o = 0, n = 0, l = s[0];
1320
1320
  for(; void 0 !== l;){
@@ -1324,7 +1324,7 @@ var M = /*#__PURE__*/ function() {
1324
1324
  }
1325
1325
  o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1326
1326
  }
1327
- return C.currentNode = r$1, e;
1327
+ return C.currentNode = r$2, e;
1328
1328
  }
1329
1329
  },
1330
1330
  {
@@ -1413,7 +1413,7 @@ var R = /*#__PURE__*/ function() {
1413
1413
  {
1414
1414
  key: "_",
1415
1415
  value: function _(t) {
1416
- this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
1416
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1417
1417
  }
1418
1418
  },
1419
1419
  {
@@ -1750,7 +1750,7 @@ var _globalThis1;
1750
1750
  * @license
1751
1751
  * Copyright 2017 Google LLC
1752
1752
  * SPDX-License-Identifier: BSD-3-Clause
1753
- */ var r = /*#__PURE__*/ function(t) {
1753
+ */ var r$1 = /*#__PURE__*/ function(t) {
1754
1754
  _inherits(r, t);
1755
1755
  var _super = _create_super(r);
1756
1756
  function r() {
@@ -1803,12 +1803,12 @@ var _globalThis1;
1803
1803
  ]);
1804
1804
  return r;
1805
1805
  }(b);
1806
- r._$litElement$ = !0, r["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1807
- LitElement: r
1806
+ r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1807
+ LitElement: r$1
1808
1808
  });
1809
1809
  var i = globalThis.litElementPolyfillSupport;
1810
1810
  i === null || i === void 0 ? void 0 : i({
1811
- LitElement: r
1811
+ LitElement: r$1
1812
1812
  });
1813
1813
  var _litElementVersions;
1814
1814
  ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
@@ -1825,6 +1825,104 @@ var _litElementVersions;
1825
1825
  };
1826
1826
  };
1827
1827
 
1828
+ function _define_property(obj, key, value) {
1829
+ if (key in obj) {
1830
+ Object.defineProperty(obj, key, {
1831
+ value: value,
1832
+ enumerable: true,
1833
+ configurable: true,
1834
+ writable: true
1835
+ });
1836
+ } else {
1837
+ obj[key] = value;
1838
+ }
1839
+ return obj;
1840
+ }
1841
+ function _object_spread(target) {
1842
+ for(var i = 1; i < arguments.length; i++){
1843
+ var source = arguments[i] != null ? arguments[i] : {};
1844
+ var ownKeys = Object.keys(source);
1845
+ if (typeof Object.getOwnPropertySymbols === "function") {
1846
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1847
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1848
+ }));
1849
+ }
1850
+ ownKeys.forEach(function(key) {
1851
+ _define_property(target, key, source[key]);
1852
+ });
1853
+ }
1854
+ return target;
1855
+ }
1856
+ function ownKeys(object, enumerableOnly) {
1857
+ var keys = Object.keys(object);
1858
+ if (Object.getOwnPropertySymbols) {
1859
+ var symbols = Object.getOwnPropertySymbols(object);
1860
+ if (enumerableOnly) {
1861
+ symbols = symbols.filter(function(sym) {
1862
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1863
+ });
1864
+ }
1865
+ keys.push.apply(keys, symbols);
1866
+ }
1867
+ return keys;
1868
+ }
1869
+ function _object_spread_props(target, source) {
1870
+ source = source != null ? source : {};
1871
+ if (Object.getOwnPropertyDescriptors) {
1872
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1873
+ } else {
1874
+ ownKeys(Object(source)).forEach(function(key) {
1875
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1876
+ });
1877
+ }
1878
+ return target;
1879
+ }
1880
+ /**
1881
+ * @license
1882
+ * Copyright 2017 Google LLC
1883
+ * SPDX-License-Identifier: BSD-3-Clause
1884
+ */ var o = {
1885
+ attribute: !0,
1886
+ type: String,
1887
+ converter: u$1,
1888
+ reflect: !1,
1889
+ hasChanged: f$1
1890
+ }, r = function() {
1891
+ var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
1892
+ var n = r.kind, i = r.metadata;
1893
+ var s = globalThis.litPropertyMetadata.get(i);
1894
+ if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), s.set(r.name, _$t), "accessor" === n) {
1895
+ var o1 = r.name;
1896
+ return {
1897
+ set: function set(r) {
1898
+ var n = _$e.get.call(this);
1899
+ _$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
1900
+ },
1901
+ init: function init(e) {
1902
+ return void 0 !== e && this.P(o1, void 0, _$t), e;
1903
+ }
1904
+ };
1905
+ }
1906
+ if ("setter" === n) {
1907
+ var o2 = r.name;
1908
+ return function r(r) {
1909
+ var n = this[o2];
1910
+ _$e.call(this, r), this.requestUpdate(o2, n, _$t);
1911
+ };
1912
+ }
1913
+ throw Error("Unsupported decorator location: " + n);
1914
+ };
1915
+ function n(t) {
1916
+ return function(e, o) {
1917
+ return "object" == typeof o ? r(t, e, o) : function(t, e, o) {
1918
+ var r = e.hasOwnProperty(o);
1919
+ return e.constructor.createProperty(o, r ? _object_spread_props(_object_spread({}, t), {
1920
+ wrapped: !0
1921
+ }) : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
1922
+ }(t, e, o);
1923
+ };
1924
+ }
1925
+
1828
1926
  /**
1829
1927
  * @license
1830
1928
  * Copyright 2017 Google LLC
@@ -1871,7 +1969,7 @@ var _litElementVersions;
1871
1969
  };
1872
1970
  }
1873
1971
 
1874
- class Heygen extends r {
1972
+ class Heygen extends r$1 {
1875
1973
  updateStatus(status, data) {
1876
1974
  this.dispatchEvent(new CustomEvent('status', {
1877
1975
  detail: {
@@ -1943,9 +2041,16 @@ class Heygen extends r {
1943
2041
  this.updateStatus('SESSION_STOPPED');
1944
2042
  }
1945
2043
  render() {
1946
- return x` <video autoplay></video> `;
2044
+ return x` <video style=${this.videoStyle} autoplay></video> `;
2045
+ }
2046
+ constructor(...args){
2047
+ super(...args);
2048
+ this.videoStyle = '';
1947
2049
  }
1948
2050
  }
2051
+ __decorate([
2052
+ n()
2053
+ ], Heygen.prototype, "videoStyle", void 0);
1949
2054
  __decorate([
1950
2055
  e('video'),
1951
2056
  __metadata("design:type", typeof HTMLVideoElement === "undefined" ? Object : HTMLVideoElement)
package/index.esm.js CHANGED
@@ -42,8 +42,8 @@ function _instanceof(left, right) {
42
42
  return left instanceof right;
43
43
  }
44
44
  }
45
- var t$2 = globalThis, e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$2 = new WeakMap;
46
- var n$2 = /*#__PURE__*/ function() {
45
+ var t$2 = globalThis, e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
46
+ var n$3 = /*#__PURE__*/ function() {
47
47
  function n(t, e, o) {
48
48
  _class_call_check$3(this, n);
49
49
  if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -57,7 +57,7 @@ var n$2 = /*#__PURE__*/ function() {
57
57
  var s = this.t;
58
58
  if (e$4 && void 0 === t) {
59
59
  var e1 = void 0 !== s && 1 === s.length;
60
- e1 && (t = o$2.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$2.set(s, t));
60
+ e1 && (t = o$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$3.set(s, t));
61
61
  }
62
62
  return t;
63
63
  }
@@ -71,8 +71,8 @@ var n$2 = /*#__PURE__*/ function() {
71
71
  ]);
72
72
  return n;
73
73
  }();
74
- var r$3 = function(t) {
75
- return new n$2("string" == typeof t ? t : t + "", void 0, s$1);
74
+ var r$4 = function(t) {
75
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
76
76
  }, S$1 = function(s, o) {
77
77
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
78
78
  if (e$4) s.adoptedStyleSheets = o.map(function(t) {
@@ -123,7 +123,7 @@ var r$3 = function(t) {
123
123
  }
124
124
  }
125
125
  }
126
- return r$3(e);
126
+ return r$4(e);
127
127
  }(t) : t;
128
128
  };
129
129
 
@@ -445,7 +445,7 @@ var _Symbol, _a, _a1;
445
445
  * @license
446
446
  * Copyright 2017 Google LLC
447
447
  * SPDX-License-Identifier: BSD-3-Clause
448
- */ var i$2 = Object.is, e$3 = Object.defineProperty, r$2 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$1 = Object.getOwnPropertySymbols, n$1 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
448
+ */ var i$2 = Object.is, e$3 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
449
449
  return t;
450
450
  }, u$1 = {
451
451
  toAttribute: function toAttribute(t, s) {
@@ -847,7 +847,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
847
847
  key: "getPropertyDescriptor",
848
848
  value: function getPropertyDescriptor(t, s, i) {
849
849
  var _r;
850
- var _ref = (_r = r$2(this.prototype, t)) !== null && _r !== void 0 ? _r : {
850
+ var _ref = (_r = r$3(this.prototype, t)) !== null && _r !== void 0 ? _r : {
851
851
  get: function get() {
852
852
  return this[s];
853
853
  },
@@ -879,7 +879,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
879
879
  key: "_$Ei",
880
880
  value: function _$Ei() {
881
881
  if (this.hasOwnProperty(d$1("elementProperties"))) return;
882
- var t = n$1(this);
882
+ var t = n$2(this);
883
883
  t.finalize(), void 0 !== t.l && (this.l = _to_consumable_array$1(t.l)), this.elementProperties = new Map(t.elementProperties);
884
884
  }
885
885
  },
@@ -888,7 +888,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
888
888
  value: function finalize() {
889
889
  if (this.hasOwnProperty(d$1("finalized"))) return;
890
890
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
891
- var t = this.properties, s = _to_consumable_array$1(h$1(t)).concat(_to_consumable_array$1(o$1(t)));
891
+ var t = this.properties, s = _to_consumable_array$1(h$1(t)).concat(_to_consumable_array$1(o$2(t)));
892
892
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
893
893
  try {
894
894
  for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -1158,8 +1158,8 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
1158
1158
  createHTML: function(t) {
1159
1159
  return t;
1160
1160
  }
1161
- }) : void 0, e$2 = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o = "?" + h, n = "<".concat(o, ">"), r$1 = document, l = function() {
1162
- return r$1.createComment("");
1161
+ }) : void 0, e$2 = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$1 = "?" + h, n$1 = "<".concat(o$1, ">"), r$2 = document, l = function() {
1162
+ return r$2.createComment("");
1163
1163
  }, c = function(t) {
1164
1164
  return null === t || "object" != typeof t && "function" != typeof t;
1165
1165
  }, a = Array.isArray, u = function(t) {
@@ -1175,7 +1175,7 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
1175
1175
  values: s
1176
1176
  };
1177
1177
  };
1178
- }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$1.createTreeWalker(r$1, 129);
1178
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
1179
1179
  function P(t, i) {
1180
1180
  if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1181
1181
  return void 0 !== s ? s.createHTML(i) : i;
@@ -1188,7 +1188,7 @@ var V = function(t, i) {
1188
1188
  var a = void 0, u = void 0, d = -1, y = 0;
1189
1189
  for(; y < s1.length && (c.lastIndex = y, u = c.exec(s1), null !== u);)y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r !== null && r !== void 0 ? r : f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
1190
1190
  var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
1191
- l += c === f ? s1 + n : d >= 0 ? (o.push(a), s1.slice(0, d) + e$2 + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1191
+ l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e$2 + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1192
1192
  }
1193
1193
  return [
1194
1194
  P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
@@ -1253,7 +1253,7 @@ var N = /*#__PURE__*/ function() {
1253
1253
  r.append(t3[s2], l());
1254
1254
  }
1255
1255
  }
1256
- } else if (8 === r.nodeType) if (r.data === o) d.push({
1256
+ } else if (8 === r.nodeType) if (r.data === o$1) d.push({
1257
1257
  type: 2,
1258
1258
  index: c
1259
1259
  });
@@ -1271,7 +1271,7 @@ var N = /*#__PURE__*/ function() {
1271
1271
  {
1272
1272
  key: "createElement",
1273
1273
  value: function createElement(t, i) {
1274
- var s = r$1.createElement("template");
1274
+ var s = r$2.createElement("template");
1275
1275
  return s.innerHTML = t, s;
1276
1276
  }
1277
1277
  }
@@ -1310,7 +1310,7 @@ var M = /*#__PURE__*/ function() {
1310
1310
  key: "u",
1311
1311
  value: function u(t) {
1312
1312
  var _t_creationScope;
1313
- var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$1).importNode(i, !0);
1313
+ var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
1314
1314
  C.currentNode = e;
1315
1315
  var h = C.nextNode(), o = 0, n = 0, l = s[0];
1316
1316
  for(; void 0 !== l;){
@@ -1320,7 +1320,7 @@ var M = /*#__PURE__*/ function() {
1320
1320
  }
1321
1321
  o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1322
1322
  }
1323
- return C.currentNode = r$1, e;
1323
+ return C.currentNode = r$2, e;
1324
1324
  }
1325
1325
  },
1326
1326
  {
@@ -1409,7 +1409,7 @@ var R = /*#__PURE__*/ function() {
1409
1409
  {
1410
1410
  key: "_",
1411
1411
  value: function _(t) {
1412
- this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
1412
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1413
1413
  }
1414
1414
  },
1415
1415
  {
@@ -1746,7 +1746,7 @@ var _globalThis1;
1746
1746
  * @license
1747
1747
  * Copyright 2017 Google LLC
1748
1748
  * SPDX-License-Identifier: BSD-3-Clause
1749
- */ var r = /*#__PURE__*/ function(t) {
1749
+ */ var r$1 = /*#__PURE__*/ function(t) {
1750
1750
  _inherits(r, t);
1751
1751
  var _super = _create_super(r);
1752
1752
  function r() {
@@ -1799,12 +1799,12 @@ var _globalThis1;
1799
1799
  ]);
1800
1800
  return r;
1801
1801
  }(b);
1802
- r._$litElement$ = !0, r["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1803
- LitElement: r
1802
+ r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1803
+ LitElement: r$1
1804
1804
  });
1805
1805
  var i = globalThis.litElementPolyfillSupport;
1806
1806
  i === null || i === void 0 ? void 0 : i({
1807
- LitElement: r
1807
+ LitElement: r$1
1808
1808
  });
1809
1809
  var _litElementVersions;
1810
1810
  ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
@@ -1821,6 +1821,104 @@ var _litElementVersions;
1821
1821
  };
1822
1822
  };
1823
1823
 
1824
+ function _define_property(obj, key, value) {
1825
+ if (key in obj) {
1826
+ Object.defineProperty(obj, key, {
1827
+ value: value,
1828
+ enumerable: true,
1829
+ configurable: true,
1830
+ writable: true
1831
+ });
1832
+ } else {
1833
+ obj[key] = value;
1834
+ }
1835
+ return obj;
1836
+ }
1837
+ function _object_spread(target) {
1838
+ for(var i = 1; i < arguments.length; i++){
1839
+ var source = arguments[i] != null ? arguments[i] : {};
1840
+ var ownKeys = Object.keys(source);
1841
+ if (typeof Object.getOwnPropertySymbols === "function") {
1842
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1843
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1844
+ }));
1845
+ }
1846
+ ownKeys.forEach(function(key) {
1847
+ _define_property(target, key, source[key]);
1848
+ });
1849
+ }
1850
+ return target;
1851
+ }
1852
+ function ownKeys(object, enumerableOnly) {
1853
+ var keys = Object.keys(object);
1854
+ if (Object.getOwnPropertySymbols) {
1855
+ var symbols = Object.getOwnPropertySymbols(object);
1856
+ if (enumerableOnly) {
1857
+ symbols = symbols.filter(function(sym) {
1858
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1859
+ });
1860
+ }
1861
+ keys.push.apply(keys, symbols);
1862
+ }
1863
+ return keys;
1864
+ }
1865
+ function _object_spread_props(target, source) {
1866
+ source = source != null ? source : {};
1867
+ if (Object.getOwnPropertyDescriptors) {
1868
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1869
+ } else {
1870
+ ownKeys(Object(source)).forEach(function(key) {
1871
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1872
+ });
1873
+ }
1874
+ return target;
1875
+ }
1876
+ /**
1877
+ * @license
1878
+ * Copyright 2017 Google LLC
1879
+ * SPDX-License-Identifier: BSD-3-Clause
1880
+ */ var o = {
1881
+ attribute: !0,
1882
+ type: String,
1883
+ converter: u$1,
1884
+ reflect: !1,
1885
+ hasChanged: f$1
1886
+ }, r = function() {
1887
+ var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
1888
+ var n = r.kind, i = r.metadata;
1889
+ var s = globalThis.litPropertyMetadata.get(i);
1890
+ if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), s.set(r.name, _$t), "accessor" === n) {
1891
+ var o1 = r.name;
1892
+ return {
1893
+ set: function set(r) {
1894
+ var n = _$e.get.call(this);
1895
+ _$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
1896
+ },
1897
+ init: function init(e) {
1898
+ return void 0 !== e && this.P(o1, void 0, _$t), e;
1899
+ }
1900
+ };
1901
+ }
1902
+ if ("setter" === n) {
1903
+ var o2 = r.name;
1904
+ return function r(r) {
1905
+ var n = this[o2];
1906
+ _$e.call(this, r), this.requestUpdate(o2, n, _$t);
1907
+ };
1908
+ }
1909
+ throw Error("Unsupported decorator location: " + n);
1910
+ };
1911
+ function n(t) {
1912
+ return function(e, o) {
1913
+ return "object" == typeof o ? r(t, e, o) : function(t, e, o) {
1914
+ var r = e.hasOwnProperty(o);
1915
+ return e.constructor.createProperty(o, r ? _object_spread_props(_object_spread({}, t), {
1916
+ wrapped: !0
1917
+ }) : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
1918
+ }(t, e, o);
1919
+ };
1920
+ }
1921
+
1824
1922
  /**
1825
1923
  * @license
1826
1924
  * Copyright 2017 Google LLC
@@ -1867,7 +1965,7 @@ var _litElementVersions;
1867
1965
  };
1868
1966
  }
1869
1967
 
1870
- class Heygen extends r {
1968
+ class Heygen extends r$1 {
1871
1969
  updateStatus(status, data) {
1872
1970
  this.dispatchEvent(new CustomEvent('status', {
1873
1971
  detail: {
@@ -1939,9 +2037,16 @@ class Heygen extends r {
1939
2037
  this.updateStatus('SESSION_STOPPED');
1940
2038
  }
1941
2039
  render() {
1942
- return x` <video autoplay></video> `;
2040
+ return x` <video style=${this.videoStyle} autoplay></video> `;
2041
+ }
2042
+ constructor(...args){
2043
+ super(...args);
2044
+ this.videoStyle = '';
1943
2045
  }
1944
2046
  }
2047
+ __decorate([
2048
+ n()
2049
+ ], Heygen.prototype, "videoStyle", void 0);
1945
2050
  __decorate([
1946
2051
  e('video'),
1947
2052
  __metadata("design:type", typeof HTMLVideoElement === "undefined" ? Object : HTMLVideoElement)
@@ -1,7 +1,8 @@
1
1
  import { LitElement } from 'lit';
2
2
  export declare class Heygen extends LitElement {
3
- private peerConnection;
3
+ videoStyle: string;
4
4
  mediaElement: HTMLVideoElement;
5
+ private peerConnection;
5
6
  private updateStatus;
6
7
  start(sessionInfo: any): Promise<{
7
8
  sessionId: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-heygen",
3
- "version": "0.57.16",
3
+ "version": "0.57.17",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.fr.json CHANGED
@@ -13,6 +13,15 @@
13
13
  "tags": ["web"],
14
14
  "summary": "Avatar interactif Heygen",
15
15
  "parameters": [
16
+ {
17
+ "name": "videoStyle",
18
+ "summary": "Style de la balise vidéo",
19
+ "description": "CSS style de la balise vidéo.",
20
+ "required": false,
21
+ "schema": {
22
+ "type": "string"
23
+ }
24
+ },
16
25
  {
17
26
  "name": "class",
18
27
  "summary": "Class",
package/schema.json CHANGED
@@ -13,6 +13,15 @@
13
13
  "tags": ["web"],
14
14
  "summary": "Interactive Heygen Avatar",
15
15
  "parameters": [
16
+ {
17
+ "name": "videoStyle",
18
+ "summary": "Video tag style",
19
+ "description": "CSS style of the video tag.",
20
+ "required": false,
21
+ "schema": {
22
+ "type": "string"
23
+ }
24
+ },
16
25
  {
17
26
  "name": "class",
18
27
  "summary": "Class",