@digipair/skill-web-editor 0.136.1 → 0.136.3

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/index.esm.js CHANGED
@@ -479,7 +479,7 @@ var _Symbol, _a, _a1;
479
479
  }
480
480
  }, f$1 = function(t, s) {
481
481
  return !i$2(t, s);
482
- }, b = {
482
+ }, b$1 = {
483
483
  attribute: true,
484
484
  type: String,
485
485
  converter: u$1,
@@ -622,11 +622,12 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
622
622
  {
623
623
  key: "requestUpdate",
624
624
  value: function requestUpdate(t, s, i) {
625
+ var e = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, h = arguments.length > 4 ? arguments[4] : void 0;
625
626
  if (void 0 !== t) {
626
627
  var _this__$Ej;
627
- var e = this.constructor, h = this[t];
628
+ var r = this.constructor;
628
629
  var _i_hasChanged;
629
- if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
630
+ if (false === e && (h = this[t]), i !== null && i !== void 0 ? i : i = r.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(r._$Eu(t, i)))) return;
630
631
  this.C(t, s, i);
631
632
  }
632
633
  false === this.isUpdatePending && (this._$ES = this._$EP());
@@ -843,7 +844,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
843
844
  {
844
845
  key: "createProperty",
845
846
  value: function createProperty(t) {
846
- var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
847
+ var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b$1;
847
848
  if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
848
849
  var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
849
850
  void 0 !== h && e$1(this.prototype, t, h);
@@ -877,7 +878,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
877
878
  key: "getPropertyOptions",
878
879
  value: function getPropertyOptions(t) {
879
880
  var _this_elementProperties_get;
880
- return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
881
+ return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b$1;
881
882
  }
882
883
  },
883
884
  {
@@ -1009,7 +1010,7 @@ y$1.elementStyles = [], y$1.shadowRootOptions = {
1009
1010
  mode: "open"
1010
1011
  }, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
1011
1012
  ReactiveElement: y$1
1012
- }), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
1013
+ }), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.2");
1013
1014
 
1014
1015
  /**
1015
1016
  * @license
@@ -1159,17 +1160,19 @@ function _create_super$1(Derived) {
1159
1160
  };
1160
1161
  }
1161
1162
  var _t;
1162
- var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
1163
+ var t$1 = globalThis, i$1 = function(t) {
1164
+ return t;
1165
+ }, s$1 = t$1.trustedTypes, e = s$1 ? s$1.createPolicy("lit-html", {
1163
1166
  createHTML: function(t) {
1164
1167
  return t;
1165
1168
  }
1166
- }) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$1 = document, l = function() {
1167
- return r$1.createComment("");
1168
- }, c = function(t) {
1169
+ }) : void 0, h = "$lit$", o$2 = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), n$1 = "?" + o$2, r$1 = "<".concat(n$1, ">"), l = document, c = function() {
1170
+ return l.createComment("");
1171
+ }, a = function(t) {
1169
1172
  return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$2(t)) && "function" != typeof t;
1170
- }, a = Array.isArray, u = function(t) {
1171
- return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
1172
- }, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
1173
+ }, u = Array.isArray, d = function(t) {
1174
+ return u(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
1175
+ }, f = "[ \t\n\f\r]", v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m = />/g, p = RegExp(">|".concat(f, "(?:([^\\s\"'>=/]+)(").concat(f, "*=").concat(f, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, x = function(t) {
1173
1176
  return function(i) {
1174
1177
  for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
1175
1178
  s[_key - 1] = arguments[_key];
@@ -1180,57 +1183,57 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-
1180
1183
  values: s
1181
1184
  };
1182
1185
  };
1183
- }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$1.createTreeWalker(r$1, 129);
1184
- function P(t, i) {
1185
- if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1186
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1186
+ }, b = x(1), E = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), C = new WeakMap, P = l.createTreeWalker(l, 129);
1187
+ function V(t, i) {
1188
+ if (!u(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1189
+ return void 0 !== e ? e.createHTML(i) : i;
1187
1190
  }
1188
- var V = function(t, i) {
1189
- var s = t.length - 1, o = [];
1190
- var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1191
+ var N = function(t, i) {
1192
+ var s = t.length - 1, e = [];
1193
+ var n, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = v;
1191
1194
  for(var _$i = 0; _$i < s; _$i++){
1192
1195
  var s1 = t[_$i];
1193
- var a = void 0, u = void 0, d = -1, y = 0;
1194
- 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);
1195
- var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
1196
- l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1196
+ var a = void 0, u = void 0, d = -1, f = 0;
1197
+ for(; f < s1.length && (c.lastIndex = f, u = c.exec(s1), null !== u);)f = c.lastIndex, c === v ? "!--" === u[1] ? c = _ : void 0 !== u[1] ? c = m : void 0 !== u[2] ? (y.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n !== null && n !== void 0 ? n : v, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : '"' === u[3] ? $ : g) : c === $ || c === g ? c = p : c === _ || c === m ? c = v : (c = p, n = void 0);
1198
+ var x = c === p && t[_$i + 1].startsWith("/>") ? " " : "";
1199
+ l += c === v ? s1 + r$1 : d >= 0 ? (e.push(a), s1.slice(0, d) + h + s1.slice(d) + o$2 + x) : s1 + o$2 + (-2 === d ? _$i : x);
1197
1200
  }
1198
1201
  return [
1199
- P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1200
- o
1202
+ V(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1203
+ e
1201
1204
  ];
1202
1205
  };
1203
- var N = /*#__PURE__*/ function() {
1204
- function N(param, n) {
1205
- var t = param.strings, s = param._$litType$;
1206
- _class_call_check$1(this, N);
1206
+ var S = /*#__PURE__*/ function() {
1207
+ function S(param, e) {
1208
+ var t = param.strings, i = param._$litType$;
1209
+ _class_call_check$1(this, S);
1207
1210
  var r;
1208
1211
  this.parts = [];
1209
- var c = 0, a = 0;
1210
- var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
1211
- if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1212
+ var l = 0, a = 0;
1213
+ var u = t.length - 1, d = this.parts, _N = _sliced_to_array(N(t, i), 2), f = _N[0], v = _N[1];
1214
+ if (this.el = S.createElement(f, e), P.currentNode = this.el.content, 2 === i || 3 === i) {
1212
1215
  var _t;
1213
1216
  var t1 = this.el.content.firstChild;
1214
1217
  (_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
1215
1218
  }
1216
- for(; null !== (r = C.nextNode()) && d.length < u;){
1219
+ for(; null !== (r = P.nextNode()) && d.length < u;){
1217
1220
  if (1 === r.nodeType) {
1218
1221
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1219
1222
  if (r.hasAttributes()) try {
1220
1223
  for(var _iterator = r.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1221
1224
  var t2 = _step.value;
1222
- if (t2.endsWith(e)) {
1223
- var i1 = v[a++], s1 = r.getAttribute(t2).split(h), e1 = /([.?@])?(.*)/.exec(i1);
1225
+ if (t2.endsWith(h)) {
1226
+ var i1 = v[a++], s1 = r.getAttribute(t2).split(o$2), _$e = /([.?@])?(.*)/.exec(i1);
1224
1227
  d.push({
1225
1228
  type: 1,
1226
- index: c,
1227
- name: e1[2],
1229
+ index: l,
1230
+ name: _$e[2],
1228
1231
  strings: s1,
1229
- ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1232
+ ctor: "." === _$e[1] ? I : "?" === _$e[1] ? L : "@" === _$e[1] ? z : H
1230
1233
  }), r.removeAttribute(t2);
1231
- } else t2.startsWith(h) && (d.push({
1234
+ } else t2.startsWith(o$2) && (d.push({
1232
1235
  type: 6,
1233
- index: c
1236
+ index: l
1234
1237
  }), r.removeAttribute(t2));
1235
1238
  }
1236
1239
  } catch (err) {
@@ -1247,58 +1250,58 @@ var N = /*#__PURE__*/ function() {
1247
1250
  }
1248
1251
  }
1249
1252
  }
1250
- if ($.test(r.tagName)) {
1251
- var t3 = r.textContent.split(h), s2 = t3.length - 1;
1252
- if (s2 > 0) {
1253
- r.textContent = i$1 ? i$1.emptyScript : "";
1254
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1253
+ if (y.test(r.tagName)) {
1254
+ var t3 = r.textContent.split(o$2), i2 = t3.length - 1;
1255
+ if (i2 > 0) {
1256
+ r.textContent = s$1 ? s$1.emptyScript : "";
1257
+ for(var s2 = 0; s2 < i2; s2++)r.append(t3[s2], c()), P.nextNode(), d.push({
1255
1258
  type: 2,
1256
- index: ++c
1259
+ index: ++l
1257
1260
  });
1258
- r.append(t3[s2], l());
1261
+ r.append(t3[i2], c());
1259
1262
  }
1260
1263
  }
1261
- } else if (8 === r.nodeType) if (r.data === o$2) d.push({
1264
+ } else if (8 === r.nodeType) if (r.data === n$1) d.push({
1262
1265
  type: 2,
1263
- index: c
1266
+ index: l
1264
1267
  });
1265
1268
  else {
1266
1269
  var t4 = -1;
1267
- for(; -1 !== (t4 = r.data.indexOf(h, t4 + 1));)d.push({
1270
+ for(; -1 !== (t4 = r.data.indexOf(o$2, t4 + 1));)d.push({
1268
1271
  type: 7,
1269
- index: c
1270
- }), t4 += h.length - 1;
1272
+ index: l
1273
+ }), t4 += o$2.length - 1;
1271
1274
  }
1272
- c++;
1275
+ l++;
1273
1276
  }
1274
1277
  }
1275
- _create_class$1(N, null, [
1278
+ _create_class$1(S, null, [
1276
1279
  {
1277
1280
  key: "createElement",
1278
1281
  value: function createElement(t, i) {
1279
- var s = r$1.createElement("template");
1282
+ var s = l.createElement("template");
1280
1283
  return s.innerHTML = t, s;
1281
1284
  }
1282
1285
  }
1283
1286
  ]);
1284
- return N;
1287
+ return S;
1285
1288
  }();
1286
- function S(t, i) {
1289
+ function M(t, i) {
1287
1290
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1288
1291
  var _s__$Co, _h__$AO;
1289
1292
  var _s;
1290
- if (i === T) return i;
1293
+ if (i === E) return i;
1291
1294
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1292
- var o = c(i) ? void 0 : i._$litDirective$;
1295
+ var o = a(i) ? void 0 : i._$litDirective$;
1293
1296
  var __$Co;
1294
- return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1297
+ return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = M(t, h._$AS(t, i.values), h, e)), i;
1295
1298
  }
1296
- var M = /*#__PURE__*/ function() {
1297
- function M(t, i) {
1298
- _class_call_check$1(this, M);
1299
+ var R = /*#__PURE__*/ function() {
1300
+ function R(t, i) {
1301
+ _class_call_check$1(this, R);
1299
1302
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1300
1303
  }
1301
- _create_class$1(M, [
1304
+ _create_class$1(R, [
1302
1305
  {
1303
1306
  key: "parentNode",
1304
1307
  get: function get() {
@@ -1315,17 +1318,17 @@ var M = /*#__PURE__*/ function() {
1315
1318
  key: "u",
1316
1319
  value: function u(t) {
1317
1320
  var _t_creationScope;
1318
- 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, true);
1319
- C.currentNode = e;
1320
- var h = C.nextNode(), o = 0, n = 0, l = s[0];
1321
- for(; void 0 !== l;){
1322
- if (o === l.index) {
1321
+ 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 : l).importNode(i, true);
1322
+ P.currentNode = e;
1323
+ var h = P.nextNode(), o = 0, n = 0, r = s[0];
1324
+ for(; void 0 !== r;){
1325
+ if (o === r.index) {
1323
1326
  var i1 = void 0;
1324
- 2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
1327
+ 2 === r.type ? i1 = new k(h, h.nextSibling, this, t) : 1 === r.type ? i1 = new r.ctor(h, r.name, r.strings, this, t) : 6 === r.type && (i1 = new Z(h, this, t)), this._$AV.push(i1), r = s[++n];
1325
1328
  }
1326
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1329
+ o !== (r === null || r === void 0 ? void 0 : r.index) && (h = P.nextNode(), o++);
1327
1330
  }
1328
- return C.currentNode = r$1, e;
1331
+ return P.currentNode = l, e;
1329
1332
  }
1330
1333
  },
1331
1334
  {
@@ -1355,15 +1358,15 @@ var M = /*#__PURE__*/ function() {
1355
1358
  }
1356
1359
  }
1357
1360
  ]);
1358
- return M;
1361
+ return R;
1359
1362
  }();
1360
- var R = /*#__PURE__*/ function() {
1361
- function R(t, i, s, e) {
1362
- _class_call_check$1(this, R);
1363
+ var k = /*#__PURE__*/ function() {
1364
+ function k(t, i, s, e) {
1365
+ _class_call_check$1(this, k);
1363
1366
  var _e_isConnected;
1364
- this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : true;
1367
+ this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : true;
1365
1368
  }
1366
- _create_class$1(R, [
1369
+ _create_class$1(k, [
1367
1370
  {
1368
1371
  key: "_$AU",
1369
1372
  get: function get() {
@@ -1396,7 +1399,7 @@ var R = /*#__PURE__*/ function() {
1396
1399
  key: "_$AI",
1397
1400
  value: function _$AI(t) {
1398
1401
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1399
- t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1402
+ t = M(this, t, i), a(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== E && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d(t) ? this.k(t) : this._(t);
1400
1403
  }
1401
1404
  },
1402
1405
  {
@@ -1414,17 +1417,17 @@ var R = /*#__PURE__*/ function() {
1414
1417
  {
1415
1418
  key: "_",
1416
1419
  value: function _(t) {
1417
- this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
1420
+ this._$AH !== A && a(this._$AH) ? this._$AA.nextSibling.data = t : this.T(l.createTextNode(t)), this._$AH = t;
1418
1421
  }
1419
1422
  },
1420
1423
  {
1421
1424
  key: "$",
1422
1425
  value: function $(t) {
1423
1426
  var _this__$AH;
1424
- var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
1427
+ var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = S.createElement(V(s.h, s.h[0]), this.options)), s);
1425
1428
  if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1426
1429
  else {
1427
- var _$t = new M(e, this), s1 = _$t.u(this.options);
1430
+ var _$t = new R(e, this), s1 = _$t.u(this.options);
1428
1431
  _$t.p(i), this.T(s1), this._$AH = _$t;
1429
1432
  }
1430
1433
  }
@@ -1432,21 +1435,21 @@ var R = /*#__PURE__*/ function() {
1432
1435
  {
1433
1436
  key: "_$AC",
1434
1437
  value: function _$AC(t) {
1435
- var i = A.get(t.strings);
1436
- return void 0 === i && A.set(t.strings, i = new N(t)), i;
1438
+ var i = C.get(t.strings);
1439
+ return void 0 === i && C.set(t.strings, i = new S(t)), i;
1437
1440
  }
1438
1441
  },
1439
1442
  {
1440
1443
  key: "k",
1441
- value: function k(t) {
1442
- a(this._$AH) || (this._$AH = [], this._$AR());
1444
+ value: function k1(t) {
1445
+ u(this._$AH) || (this._$AH = [], this._$AR());
1443
1446
  var i = this._$AH;
1444
1447
  var s, e = 0;
1445
1448
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1446
1449
  try {
1447
1450
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1448
1451
  var h = _step.value;
1449
- e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1452
+ e === i.length ? i.push(s = new k(this.O(c()), this.O(c()), this, this.options)) : s = i[e], s._$AI(h), e++;
1450
1453
  }
1451
1454
  } catch (err) {
1452
1455
  _didIteratorError = true;
@@ -1468,11 +1471,11 @@ var R = /*#__PURE__*/ function() {
1468
1471
  {
1469
1472
  key: "_$AR",
1470
1473
  value: function _$AR() {
1471
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
1474
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, s = arguments.length > 1 ? arguments[1] : void 0;
1472
1475
  var _this__$AP, _this;
1473
- for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
1474
- var i1 = t.nextSibling;
1475
- t.remove(), t = i1;
1476
+ for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, s); t !== this._$AB;){
1477
+ var s1 = i$1(t).nextSibling;
1478
+ i$1(t).remove(), t = s1;
1476
1479
  }
1477
1480
  }
1478
1481
  },
@@ -1484,14 +1487,14 @@ var R = /*#__PURE__*/ function() {
1484
1487
  }
1485
1488
  }
1486
1489
  ]);
1487
- return R;
1490
+ return k;
1488
1491
  }();
1489
- var k = /*#__PURE__*/ function() {
1490
- function k(t, i, s, e, h) {
1491
- _class_call_check$1(this, k);
1492
- this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
1492
+ var H = /*#__PURE__*/ function() {
1493
+ function H(t, i, s, e, h) {
1494
+ _class_call_check$1(this, H);
1495
+ this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = A;
1493
1496
  }
1494
- _create_class$1(k, [
1497
+ _create_class$1(H, [
1495
1498
  {
1496
1499
  key: "tagName",
1497
1500
  get: function get() {
@@ -1510,11 +1513,11 @@ var k = /*#__PURE__*/ function() {
1510
1513
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
1511
1514
  var h = this.strings;
1512
1515
  var o = false;
1513
- if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1516
+ if (void 0 === h) t = M(this, t, i, 0), o = !a(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
1514
1517
  else {
1515
1518
  var e1 = t;
1516
1519
  var n, r;
1517
- for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1520
+ for(t = h[0], n = 0; n < h.length - 1; n++)r = M(this, e1[s + n], i, n), r === E && (r = this._$AH[n]), o || (o = !a(r) || r !== this._$AH[n]), r === A ? t = A : t !== A && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1518
1521
  }
1519
1522
  o && !e && this.j(t);
1520
1523
  }
@@ -1522,71 +1525,71 @@ var k = /*#__PURE__*/ function() {
1522
1525
  {
1523
1526
  key: "j",
1524
1527
  value: function j(t) {
1525
- t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1528
+ t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1526
1529
  }
1527
1530
  }
1528
1531
  ]);
1529
- return k;
1532
+ return H;
1530
1533
  }();
1531
- var H = /*#__PURE__*/ function(k) {
1532
- _inherits$1(H, k);
1533
- var _super = _create_super$1(H);
1534
- function H() {
1535
- _class_call_check$1(this, H);
1534
+ var I = /*#__PURE__*/ function(H) {
1535
+ _inherits$1(I, H);
1536
+ var _super = _create_super$1(I);
1537
+ function I() {
1538
+ _class_call_check$1(this, I);
1536
1539
  var _this;
1537
1540
  _this = _super.call.apply(_super, [
1538
1541
  this
1539
1542
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1540
1543
  return _possible_constructor_return$1(_this);
1541
1544
  }
1542
- _create_class$1(H, [
1545
+ _create_class$1(I, [
1543
1546
  {
1544
1547
  key: "j",
1545
1548
  value: function j(t) {
1546
- this.element[this.name] = t === E ? void 0 : t;
1549
+ this.element[this.name] = t === A ? void 0 : t;
1547
1550
  }
1548
1551
  }
1549
1552
  ]);
1550
- return H;
1551
- }(k);
1552
- var I = /*#__PURE__*/ function(k) {
1553
- _inherits$1(I, k);
1554
- var _super = _create_super$1(I);
1555
- function I() {
1556
- _class_call_check$1(this, I);
1553
+ return I;
1554
+ }(H);
1555
+ var L = /*#__PURE__*/ function(H) {
1556
+ _inherits$1(L, H);
1557
+ var _super = _create_super$1(L);
1558
+ function L() {
1559
+ _class_call_check$1(this, L);
1557
1560
  var _this;
1558
1561
  _this = _super.call.apply(_super, [
1559
1562
  this
1560
1563
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1561
1564
  return _possible_constructor_return$1(_this);
1562
1565
  }
1563
- _create_class$1(I, [
1566
+ _create_class$1(L, [
1564
1567
  {
1565
1568
  key: "j",
1566
1569
  value: function j(t) {
1567
- this.element.toggleAttribute(this.name, !!t && t !== E);
1570
+ this.element.toggleAttribute(this.name, !!t && t !== A);
1568
1571
  }
1569
1572
  }
1570
1573
  ]);
1571
- return I;
1572
- }(k);
1573
- var L = /*#__PURE__*/ function(k) {
1574
- _inherits$1(L, k);
1575
- var _super = _create_super$1(L);
1576
- function L(t, i, s, e, h) {
1577
- _class_call_check$1(this, L);
1574
+ return L;
1575
+ }(H);
1576
+ var z = /*#__PURE__*/ function(H) {
1577
+ _inherits$1(z, H);
1578
+ var _super = _create_super$1(z);
1579
+ function z(t, i, s, e, h) {
1580
+ _class_call_check$1(this, z);
1578
1581
  var _this;
1579
1582
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1580
1583
  return _possible_constructor_return$1(_this);
1581
1584
  }
1582
- _create_class$1(L, [
1585
+ _create_class$1(z, [
1583
1586
  {
1584
1587
  key: "_$AI",
1585
1588
  value: function _$AI(t) {
1586
1589
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1587
- var _S;
1588
- if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1589
- var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
1590
+ var _M;
1591
+ if ((t = (_M = M(this, t, i, 0)) !== null && _M !== void 0 ? _M : A) === E) return;
1592
+ var s = this._$AH, e = t === A && s !== A || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== A && (s === A || e);
1590
1593
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1591
1594
  }
1592
1595
  },
@@ -1599,14 +1602,14 @@ var L = /*#__PURE__*/ function(k) {
1599
1602
  }
1600
1603
  }
1601
1604
  ]);
1602
- return L;
1603
- }(k);
1604
- var z = /*#__PURE__*/ function() {
1605
- function z(t, i, s) {
1606
- _class_call_check$1(this, z);
1605
+ return z;
1606
+ }(H);
1607
+ var Z = /*#__PURE__*/ function() {
1608
+ function Z(t, i, s) {
1609
+ _class_call_check$1(this, Z);
1607
1610
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1608
1611
  }
1609
- _create_class$1(z, [
1612
+ _create_class$1(Z, [
1610
1613
  {
1611
1614
  key: "_$AU",
1612
1615
  get: function get() {
@@ -1616,23 +1619,23 @@ var z = /*#__PURE__*/ function() {
1616
1619
  {
1617
1620
  key: "_$AI",
1618
1621
  value: function _$AI(t) {
1619
- S(this, t);
1622
+ M(this, t);
1620
1623
  }
1621
1624
  }
1622
1625
  ]);
1623
- return z;
1626
+ return Z;
1624
1627
  }();
1625
- var j = t$1.litHtmlPolyfillSupport;
1628
+ var B = t$1.litHtmlPolyfillSupport;
1626
1629
  var _litHtmlVersions;
1627
- j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.1");
1628
- var B = function(t, i, s) {
1630
+ B === null || B === void 0 ? void 0 : B(S, k), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.3");
1631
+ var D = function(t, i, s) {
1629
1632
  var _s_renderBefore;
1630
1633
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1631
1634
  var h = e._$litPart$;
1632
1635
  if (void 0 === h) {
1633
1636
  var _s_renderBefore1;
1634
1637
  var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1635
- e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1638
+ e._$litPart$ = h = new k(i.insertBefore(c(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1636
1639
  }
1637
1640
  return h._$AI(t), h;
1638
1641
  };
@@ -1778,7 +1781,7 @@ var i = /*#__PURE__*/ function(t) {
1778
1781
  key: "update",
1779
1782
  value: function update(t) {
1780
1783
  var r = this.render();
1781
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
1784
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = D(r, this.renderRoot, this.renderOptions);
1782
1785
  }
1783
1786
  },
1784
1787
  {
@@ -1798,7 +1801,7 @@ var i = /*#__PURE__*/ function(t) {
1798
1801
  {
1799
1802
  key: "render",
1800
1803
  value: function render() {
1801
- return T;
1804
+ return E;
1802
1805
  }
1803
1806
  }
1804
1807
  ]);
@@ -1812,7 +1815,7 @@ o$1 === null || o$1 === void 0 ? void 0 : o$1({
1812
1815
  LitElement: i
1813
1816
  });
1814
1817
  var _litElementVersions;
1815
- ((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
1818
+ ((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.2");
1816
1819
 
1817
1820
  /**
1818
1821
  * @license
@@ -1849,7 +1852,7 @@ function _type_of(obj) {
1849
1852
  return {
1850
1853
  set: function set(r) {
1851
1854
  var n = _$e.get.call(this);
1852
- _$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
1855
+ _$e.set.call(this, r), this.requestUpdate(o1, n, _$t, true, r);
1853
1856
  },
1854
1857
  init: function init(e) {
1855
1858
  return void 0 !== e && this.C(o1, void 0, _$t, e), e;
@@ -1860,7 +1863,7 @@ function _type_of(obj) {
1860
1863
  var o2 = r.name;
1861
1864
  return function r(r) {
1862
1865
  var n = this[o2];
1863
- _$e.call(this, r), this.requestUpdate(o2, n, _$t);
1866
+ _$e.call(this, r), this.requestUpdate(o2, n, _$t, true, r);
1864
1867
  };
1865
1868
  }
1866
1869
  throw Error("Unsupported decorator location: " + n);
@@ -72449,7 +72452,7 @@ class EditorElement extends i {
72449
72452
  Blockly.Events.enable();
72450
72453
  }
72451
72454
  render() {
72452
- return x`
72455
+ return b`
72453
72456
  <style>
72454
72457
  @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
72455
72458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.136.1",
3
+ "version": "0.136.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- export * from './lib/skill-web-editor';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}