@jsenv/plugin-toolbar 1.5.4 → 1.5.6

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.
@@ -1,15 +1,15 @@
1
1
  var l$2,
2
- u$2;
2
+ t$2;
3
3
  l$2 = {
4
- __e: function (n, l, t, u) {
4
+ __e: function (n, l, u, t) {
5
5
  for (var i, r, o; l = l.__;) if ((i = l.__c) && !i.__) try {
6
- if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, u || {}), o = i.__d), o) return i.__E = i;
6
+ if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), o = i.__d), o) return i.__E = i;
7
7
  } catch (l) {
8
8
  n = l;
9
9
  }
10
10
  throw n;
11
11
  }
12
- }, u$2 = function (n) {
12
+ }, t$2 = function (n) {
13
13
  return null != n && null == n.constructor;
14
14
  }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout;
15
15
 
@@ -58,7 +58,7 @@ c$1.__b = function (n) {
58
58
  }, c$1.diffed = function (n) {
59
59
  v$2 && v$2(n);
60
60
  var t = n.__c;
61
- t && t.__H && (t.__H.__h.length && (1 !== f$1.push(t) && i$1 === c$1.requestAnimationFrame || ((i$1 = c$1.requestAnimationFrame) || w$1)(j)), t.__H.__.forEach(function (n) {
61
+ t && t.__H && (t.__H.__h.length && (1 !== f$1.push(t) && i$1 === c$1.requestAnimationFrame || ((i$1 = c$1.requestAnimationFrame) || w$2)(j)), t.__H.__.forEach(function (n) {
62
62
  n.u && (n.__H = n.u), n.u = void 0;
63
63
  })), u$1 = r$1 = null;
64
64
  }, c$1.__c = function (n, t) {
@@ -86,7 +86,7 @@ c$1.__b = function (n) {
86
86
  }), r.__H = void 0, t && c$1.__e(t, r.__v));
87
87
  };
88
88
  var k$1 = "function" == typeof requestAnimationFrame;
89
- function w$1(n) {
89
+ function w$2(n) {
90
90
  var t,
91
91
  r = function () {
92
92
  clearTimeout(u), k$1 && cancelAnimationFrame(t), setTimeout(n);
@@ -374,7 +374,7 @@ Object.defineProperty(a$1.prototype, "value", {
374
374
  return this.v;
375
375
  }
376
376
  });
377
- function w(i) {
377
+ function w$1(i) {
378
378
  return new a$1(i);
379
379
  }
380
380
  function _$1(i) {
@@ -464,11 +464,11 @@ function E(i) {
464
464
 
465
465
  let a,
466
466
  d,
467
- _ = [];
467
+ m = [];
468
468
  E(function () {
469
469
  a = this.N;
470
470
  })();
471
- function m(t, e) {
471
+ function _(t, e) {
472
472
  l$2[t] = e.bind(null, l$2[t] || (() => {}));
473
473
  }
474
474
  function v(t) {
@@ -480,23 +480,23 @@ function g({
480
480
  }) {
481
481
  const i = useSignal(t);
482
482
  i.value = t;
483
- const [o, f] = T(() => {
483
+ const [o, r] = T(() => {
484
484
  let t = this,
485
485
  n = this.__v;
486
486
  while (n = n.__) if (n.__c) {
487
487
  n.__c.__$f |= 4;
488
488
  break;
489
489
  }
490
- const o = w(() => {
490
+ const o = w$1(() => {
491
491
  let t = i.value.value;
492
492
  return 0 === t ? 0 : true === t ? "" : t || "";
493
493
  }),
494
- f = w(() => !u$2(o.value)),
494
+ r = w$1(() => !Array.isArray(o.value) && !t$2(o.value)),
495
495
  s = E(function () {
496
- this.N = A;
497
- if (f.value) {
496
+ this.N = F;
497
+ if (r.value) {
498
498
  const i = o.value;
499
- if (t.base && 3 === t.base.nodeType) t.base.data = i;
499
+ if (t.__v && t.__v.__e && 3 === t.__v.__e.nodeType) t.__v.__e.data = i;
500
500
  }
501
501
  }),
502
502
  c = this.__$u.d;
@@ -504,9 +504,9 @@ function g({
504
504
  s();
505
505
  c.call(this);
506
506
  };
507
- return [f, o];
507
+ return [r, o];
508
508
  }, []);
509
- return o.value ? f.peek() : f.value;
509
+ return o.value ? r.peek() : r.value;
510
510
  }
511
511
  g.displayName = "_st";
512
512
  Object.defineProperties(u.prototype, {
@@ -531,7 +531,7 @@ Object.defineProperties(u.prototype, {
531
531
  value: 1
532
532
  }
533
533
  });
534
- m("__b", (t, i) => {
534
+ _("__b", (t, i) => {
535
535
  if ("string" == typeof i.type) {
536
536
  let t,
537
537
  e = i.props;
@@ -547,7 +547,7 @@ m("__b", (t, i) => {
547
547
  }
548
548
  t(i);
549
549
  });
550
- m("__r", (t, i) => {
550
+ _("__r", (t, i) => {
551
551
  v();
552
552
  let e,
553
553
  n = i.__c;
@@ -569,11 +569,11 @@ m("__r", (t, i) => {
569
569
  v(e);
570
570
  t(i);
571
571
  });
572
- m("__e", (t, i, e, n) => {
572
+ _("__e", (t, i, e, n) => {
573
573
  v();
574
574
  t(i, e, n);
575
575
  });
576
- m("diffed", (t, i) => {
576
+ _("diffed", (t, i) => {
577
577
  v();
578
578
  let e;
579
579
  if ("string" == typeof i.type && (e = i.__e)) {
@@ -592,12 +592,12 @@ m("diffed", (t, i) => {
592
592
  e.U = i;
593
593
  }
594
594
  for (let o in t) {
595
- let f = i[o],
596
- r = t[o];
597
- if (void 0 === f) {
598
- f = b(e, o, r, n);
599
- i[o] = f;
600
- } else f.o(r, n);
595
+ let r = i[o],
596
+ f = t[o];
597
+ if (void 0 === r) {
598
+ r = b(e, o, f, n);
599
+ i[o] = r;
600
+ } else r.o(f, n);
601
601
  }
602
602
  }
603
603
  }
@@ -605,15 +605,15 @@ m("diffed", (t, i) => {
605
605
  });
606
606
  function b(t, i, e, n) {
607
607
  const o = i in t && void 0 === t.ownerSVGElement,
608
- f = d$1(e);
608
+ r = d$1(e);
609
609
  return {
610
610
  o: (t, i) => {
611
- f.value = t;
611
+ r.value = t;
612
612
  n = i;
613
613
  },
614
614
  d: E(function () {
615
- this.N = A;
616
- const e = f.value.value;
615
+ this.N = F;
616
+ const e = r.value.value;
617
617
  if (n[i] !== e) {
618
618
  n[i] = e;
619
619
  if (o) t[i] = e;else if (e) t.setAttribute(i, e);else t.removeAttribute(i);
@@ -621,7 +621,7 @@ function b(t, i, e, n) {
621
621
  })
622
622
  };
623
623
  }
624
- m("unmount", (t, i) => {
624
+ _("unmount", (t, i) => {
625
625
  if ("string" == typeof i.type) {
626
626
  let t = i.__e;
627
627
  if (t) {
@@ -646,7 +646,7 @@ m("unmount", (t, i) => {
646
646
  }
647
647
  t(i);
648
648
  });
649
- m("__h", (t, i, e, n) => {
649
+ _("__h", (t, i, e, n) => {
650
650
  if (n < 3 || 9 === n) i.__$f |= 2;
651
651
  t(i, e, n);
652
652
  });
@@ -658,14 +658,14 @@ const k = t => {
658
658
  queueMicrotask(t);
659
659
  });
660
660
  };
661
- function x() {
661
+ function w() {
662
662
  o(() => {
663
663
  let t;
664
- while (t = _.shift()) a.call(t);
664
+ while (t = m.shift()) a.call(t);
665
665
  });
666
666
  }
667
- function A() {
668
- if (1 === _.push(this)) (l$2.requestAnimationFrame || k)(x);
667
+ function F() {
668
+ if (1 === m.push(this)) (l$2.requestAnimationFrame || k)(w);
669
669
  }
670
670
 
671
- export { E, d$1 as d, w };
671
+ export { E, d$1 as d, w$1 as w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-toolbar",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "/src/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/ast": "6.6.6"
29
+ "@jsenv/ast": "6.6.9"
30
30
  },
31
31
  "devDependencies": {
32
- "@preact/signals": "2.0.1"
32
+ "@preact/signals": "2.0.3"
33
33
  },
34
34
  "scripts": {
35
35
  "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",