@jsenv/plugin-toolbar 1.5.23 → 1.5.24
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.
|
@@ -33,7 +33,7 @@ var t$1,
|
|
|
33
33
|
m = e$1.__c,
|
|
34
34
|
s$1 = e$1.unmount,
|
|
35
35
|
p$2 = e$1.__;
|
|
36
|
-
function d$
|
|
36
|
+
function d$2(n, t) {
|
|
37
37
|
e$1.__h && e$1.__h(r$1, n, f$1 || t), f$1 = 0;
|
|
38
38
|
var u = r$1.__H || (r$1.__H = {
|
|
39
39
|
__: [],
|
|
@@ -41,11 +41,11 @@ function d$1(n, t) {
|
|
|
41
41
|
});
|
|
42
42
|
return n >= u.__.length && u.__.push({}), u.__[n];
|
|
43
43
|
}
|
|
44
|
-
function h$
|
|
44
|
+
function h$1(n) {
|
|
45
45
|
return f$1 = 1, y$2(D, n);
|
|
46
46
|
}
|
|
47
47
|
function y$2(n, u, i) {
|
|
48
|
-
var f = d$
|
|
48
|
+
var f = d$2(t$1++, 2);
|
|
49
49
|
if (f.t = n, !f.__c && (f.__ = [D(void 0, u), function (n) {
|
|
50
50
|
var t = f.__N ? f.__N[0] : f.__[0],
|
|
51
51
|
r = f.t(t, n);
|
|
@@ -81,7 +81,7 @@ function y$2(n, u, i) {
|
|
|
81
81
|
return f.__N || f.__;
|
|
82
82
|
}
|
|
83
83
|
function q(n, r) {
|
|
84
|
-
var u = d$
|
|
84
|
+
var u = d$2(t$1++, 7);
|
|
85
85
|
return C(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__;
|
|
86
86
|
}
|
|
87
87
|
function g$2() {
|
|
@@ -104,7 +104,7 @@ e$1.__b = function (n) {
|
|
|
104
104
|
}, e$1.diffed = function (n) {
|
|
105
105
|
l$1 && l$1(n);
|
|
106
106
|
var t = n.__c;
|
|
107
|
-
t && t.__H && (t.__H.__h.length && (1 !== c$1.push(t) && i$1 === e$1.requestAnimationFrame || ((i$1 = e$1.requestAnimationFrame) || w$
|
|
107
|
+
t && t.__H && (t.__H.__h.length && (1 !== c$1.push(t) && i$1 === e$1.requestAnimationFrame || ((i$1 = e$1.requestAnimationFrame) || w$2)(g$2)), t.__H.__.forEach(function (n) {
|
|
108
108
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
109
109
|
})), u$1 = r$1 = null;
|
|
110
110
|
}, e$1.__c = function (n, t) {
|
|
@@ -132,7 +132,7 @@ e$1.__b = function (n) {
|
|
|
132
132
|
}), r.__H = void 0, t && e$1.__e(t, r.__v));
|
|
133
133
|
};
|
|
134
134
|
var k$1 = "function" == typeof requestAnimationFrame;
|
|
135
|
-
function w$
|
|
135
|
+
function w$2(n) {
|
|
136
136
|
var t,
|
|
137
137
|
r = function () {
|
|
138
138
|
clearTimeout(u), k$1 && cancelAnimationFrame(t), setTimeout(n);
|
|
@@ -199,7 +199,7 @@ function o(i) {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
let n, s;
|
|
202
|
-
function h
|
|
202
|
+
function h(i) {
|
|
203
203
|
const t = n;
|
|
204
204
|
n = void 0;
|
|
205
205
|
try {
|
|
@@ -261,7 +261,7 @@ c.prototype.S = function (i) {
|
|
|
261
261
|
if (t !== i && void 0 === i.e) {
|
|
262
262
|
i.x = t;
|
|
263
263
|
this.t = i;
|
|
264
|
-
if (void 0 !== t) t.e = i;else h
|
|
264
|
+
if (void 0 !== t) t.e = i;else h(() => {
|
|
265
265
|
var i;
|
|
266
266
|
null == (i = this.W) || i.call(this);
|
|
267
267
|
});
|
|
@@ -281,7 +281,7 @@ c.prototype.U = function (i) {
|
|
|
281
281
|
}
|
|
282
282
|
if (i === this.t) {
|
|
283
283
|
this.t = o;
|
|
284
|
-
if (void 0 === o) h
|
|
284
|
+
if (void 0 === o) h(() => {
|
|
285
285
|
var i;
|
|
286
286
|
null == (i = this.Z) || i.call(this);
|
|
287
287
|
});
|
|
@@ -341,7 +341,7 @@ Object.defineProperty(c.prototype, "value", {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
function d(i, t) {
|
|
344
|
+
function d$1(i, t) {
|
|
345
345
|
return new c(i, t);
|
|
346
346
|
}
|
|
347
347
|
function v$1(i) {
|
|
@@ -451,10 +451,10 @@ Object.defineProperty(a.prototype, "value", {
|
|
|
451
451
|
return this.v;
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
|
-
function w(i, t) {
|
|
454
|
+
function w$1(i, t) {
|
|
455
455
|
return new a(i, t);
|
|
456
456
|
}
|
|
457
|
-
function _
|
|
457
|
+
function _(i) {
|
|
458
458
|
const o = i.u;
|
|
459
459
|
i.u = void 0;
|
|
460
460
|
if ("function" == typeof o) {
|
|
@@ -478,7 +478,7 @@ function b$1(i) {
|
|
|
478
478
|
for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
|
|
479
479
|
i.x = void 0;
|
|
480
480
|
i.s = void 0;
|
|
481
|
-
_
|
|
481
|
+
_(i);
|
|
482
482
|
}
|
|
483
483
|
function g$1(i) {
|
|
484
484
|
if (n !== this) throw new Error("Out-of-order effect");
|
|
@@ -511,7 +511,7 @@ p$1.prototype.S = function () {
|
|
|
511
511
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
512
512
|
this.f |= 1;
|
|
513
513
|
this.f &= -9;
|
|
514
|
-
_
|
|
514
|
+
_(this);
|
|
515
515
|
l(this);
|
|
516
516
|
r++;
|
|
517
517
|
const i = n;
|
|
@@ -545,37 +545,37 @@ function E(i, t) {
|
|
|
545
545
|
return n;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
-
const
|
|
548
|
+
const d = "undefined" != typeof window && !!window.__PREACT_SIGNALS_DEVTOOLS__;
|
|
549
549
|
let p,
|
|
550
550
|
v,
|
|
551
|
-
|
|
551
|
+
g = [];
|
|
552
552
|
E(function () {
|
|
553
553
|
p = this.N;
|
|
554
554
|
})();
|
|
555
|
-
function
|
|
556
|
-
n$1[t] =
|
|
555
|
+
function b(t, e) {
|
|
556
|
+
n$1[t] = e.bind(null, n$1[t] || (() => {}));
|
|
557
557
|
}
|
|
558
558
|
function y(t) {
|
|
559
559
|
if (v) v();
|
|
560
560
|
v = t && t.S();
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function w({
|
|
563
563
|
data: t
|
|
564
564
|
}) {
|
|
565
565
|
const i = useSignal(t);
|
|
566
566
|
i.value = t;
|
|
567
|
-
const [
|
|
567
|
+
const [n, f] = q(() => {
|
|
568
568
|
let t = this,
|
|
569
|
-
|
|
570
|
-
while (
|
|
571
|
-
|
|
569
|
+
n = this.__v;
|
|
570
|
+
while (n = n.__) if (n.__c) {
|
|
571
|
+
n.__c.__$f |= 4;
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
|
-
const o = w(() => {
|
|
574
|
+
const o = w$1(() => {
|
|
575
575
|
let t = i.value.value;
|
|
576
576
|
return 0 === t ? 0 : true === t ? "" : t || "";
|
|
577
577
|
}),
|
|
578
|
-
f = w(() => !Array.isArray(o.value) && !u$2(o.value)),
|
|
578
|
+
f = w$1(() => !Array.isArray(o.value) && !u$2(o.value)),
|
|
579
579
|
r = E(function () {
|
|
580
580
|
this.N = M;
|
|
581
581
|
if (f.value) {
|
|
@@ -590,9 +590,9 @@ function b({
|
|
|
590
590
|
};
|
|
591
591
|
return [f, o];
|
|
592
592
|
}, []);
|
|
593
|
-
return
|
|
593
|
+
return n.value ? f.peek() : f.value;
|
|
594
594
|
}
|
|
595
|
-
|
|
595
|
+
w.displayName = "ReactiveTextNode";
|
|
596
596
|
Object.defineProperties(c.prototype, {
|
|
597
597
|
constructor: {
|
|
598
598
|
configurable: true,
|
|
@@ -600,7 +600,7 @@ Object.defineProperties(c.prototype, {
|
|
|
600
600
|
},
|
|
601
601
|
type: {
|
|
602
602
|
configurable: true,
|
|
603
|
-
value:
|
|
603
|
+
value: w
|
|
604
604
|
},
|
|
605
605
|
props: {
|
|
606
606
|
configurable: true,
|
|
@@ -615,103 +615,103 @@ Object.defineProperties(c.prototype, {
|
|
|
615
615
|
value: 1
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
|
-
|
|
619
|
-
if (h && "function" == typeof i.type) window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent();
|
|
618
|
+
b("__b", (t, i) => {
|
|
620
619
|
if ("string" == typeof i.type) {
|
|
621
620
|
let t,
|
|
622
|
-
|
|
623
|
-
for (let
|
|
624
|
-
if ("children" ===
|
|
625
|
-
let o = n
|
|
621
|
+
e = i.props;
|
|
622
|
+
for (let n in e) {
|
|
623
|
+
if ("children" === n) continue;
|
|
624
|
+
let o = e[n];
|
|
626
625
|
if (o instanceof c) {
|
|
627
626
|
if (!t) i.__np = t = {};
|
|
628
|
-
t[
|
|
629
|
-
n
|
|
627
|
+
t[n] = o;
|
|
628
|
+
e[n] = o.peek();
|
|
630
629
|
}
|
|
631
630
|
}
|
|
632
631
|
}
|
|
633
632
|
t(i);
|
|
634
633
|
});
|
|
635
|
-
|
|
636
|
-
if (h && "function" == typeof i.type) window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(i);
|
|
634
|
+
b("__r", (t, i) => {
|
|
637
635
|
if (i.type !== k$2) {
|
|
638
636
|
y();
|
|
639
637
|
let t,
|
|
640
|
-
|
|
641
|
-
if (
|
|
642
|
-
|
|
643
|
-
t =
|
|
644
|
-
if (void 0 === t)
|
|
645
|
-
let
|
|
638
|
+
e = i.__c;
|
|
639
|
+
if (e) {
|
|
640
|
+
e.__$f &= -2;
|
|
641
|
+
t = e.__$u;
|
|
642
|
+
if (void 0 === t) e.__$u = t = function (t, i) {
|
|
643
|
+
let e;
|
|
646
644
|
E(function () {
|
|
647
|
-
|
|
645
|
+
e = this;
|
|
646
|
+
}, {
|
|
647
|
+
name: i
|
|
648
648
|
});
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
649
|
+
e.c = t;
|
|
650
|
+
return e;
|
|
651
|
+
}(() => {
|
|
652
|
+
var i;
|
|
653
|
+
if (d) null == (i = t.y) || i.call(t);
|
|
654
|
+
e.__$f |= 1;
|
|
655
|
+
e.setState({});
|
|
656
|
+
}, "function" == typeof i.type ? i.type.displayName || i.type.name : "");
|
|
655
657
|
}
|
|
656
658
|
y(t);
|
|
657
659
|
}
|
|
658
660
|
t(i);
|
|
659
661
|
});
|
|
660
|
-
|
|
661
|
-
if (h) window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent();
|
|
662
|
+
b("__e", (t, i, e, n) => {
|
|
662
663
|
y();
|
|
663
|
-
t(i,
|
|
664
|
+
t(i, e, n);
|
|
664
665
|
});
|
|
665
|
-
|
|
666
|
-
if (h && "function" == typeof i.type) window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent();
|
|
666
|
+
b("diffed", (t, i) => {
|
|
667
667
|
y();
|
|
668
|
-
let
|
|
669
|
-
if ("string" == typeof i.type && (
|
|
668
|
+
let e;
|
|
669
|
+
if ("string" == typeof i.type && (e = i.__e)) {
|
|
670
670
|
let t = i.__np,
|
|
671
|
-
|
|
671
|
+
n = i.props;
|
|
672
672
|
if (t) {
|
|
673
|
-
let i =
|
|
674
|
-
if (i) for (let
|
|
675
|
-
let
|
|
676
|
-
if (void 0 !==
|
|
677
|
-
|
|
678
|
-
i[
|
|
673
|
+
let i = e.U;
|
|
674
|
+
if (i) for (let e in i) {
|
|
675
|
+
let n = i[e];
|
|
676
|
+
if (void 0 !== n && !(e in t)) {
|
|
677
|
+
n.d();
|
|
678
|
+
i[e] = void 0;
|
|
679
679
|
}
|
|
680
680
|
} else {
|
|
681
681
|
i = {};
|
|
682
|
-
|
|
682
|
+
e.U = i;
|
|
683
683
|
}
|
|
684
684
|
for (let o in t) {
|
|
685
685
|
let f = i[o],
|
|
686
686
|
r = t[o];
|
|
687
687
|
if (void 0 === f) {
|
|
688
|
-
f = k(
|
|
688
|
+
f = k(e, o, r, n);
|
|
689
689
|
i[o] = f;
|
|
690
|
-
} else f.o(r,
|
|
690
|
+
} else f.o(r, n);
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
t(i);
|
|
695
695
|
});
|
|
696
|
-
function k(t, i,
|
|
696
|
+
function k(t, i, e, n) {
|
|
697
697
|
const o = i in t && void 0 === t.ownerSVGElement,
|
|
698
|
-
f = d(
|
|
698
|
+
f = d$1(e);
|
|
699
699
|
return {
|
|
700
700
|
o: (t, i) => {
|
|
701
701
|
f.value = t;
|
|
702
|
-
|
|
702
|
+
n = i;
|
|
703
703
|
},
|
|
704
704
|
d: E(function () {
|
|
705
705
|
this.N = M;
|
|
706
|
-
const
|
|
707
|
-
if (
|
|
708
|
-
|
|
709
|
-
if (o) t[i] =
|
|
706
|
+
const e = f.value.value;
|
|
707
|
+
if (n[i] !== e) {
|
|
708
|
+
n[i] = e;
|
|
709
|
+
if (o) t[i] = e;else if (null != e && (false !== e || "-" === i[4])) t.setAttribute(i, e);else t.removeAttribute(i);
|
|
710
710
|
}
|
|
711
711
|
})
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
b("unmount", (t, i) => {
|
|
715
715
|
if ("string" == typeof i.type) {
|
|
716
716
|
let t = i.__e;
|
|
717
717
|
if (t) {
|
|
@@ -719,8 +719,8 @@ g("unmount", (t, i) => {
|
|
|
719
719
|
if (i) {
|
|
720
720
|
t.U = void 0;
|
|
721
721
|
for (let t in i) {
|
|
722
|
-
let
|
|
723
|
-
if (
|
|
722
|
+
let e = i[t];
|
|
723
|
+
if (e) e.d();
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
}
|
|
@@ -736,12 +736,12 @@ g("unmount", (t, i) => {
|
|
|
736
736
|
}
|
|
737
737
|
t(i);
|
|
738
738
|
});
|
|
739
|
-
|
|
740
|
-
if (
|
|
741
|
-
t(i,
|
|
739
|
+
b("__h", (t, i, e, n) => {
|
|
740
|
+
if (n < 3 || 9 === n) i.__$f |= 2;
|
|
741
|
+
t(i, e, n);
|
|
742
742
|
});
|
|
743
743
|
function useSignal(t, i) {
|
|
744
|
-
return h$
|
|
744
|
+
return h$1(() => d$1(t, i))[0];
|
|
745
745
|
}
|
|
746
746
|
const A = t => {
|
|
747
747
|
queueMicrotask(() => {
|
|
@@ -751,11 +751,11 @@ const A = t => {
|
|
|
751
751
|
function F() {
|
|
752
752
|
o(() => {
|
|
753
753
|
let t;
|
|
754
|
-
while (t =
|
|
754
|
+
while (t = g.shift()) p.call(t);
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
function M() {
|
|
758
|
-
if (1 ===
|
|
758
|
+
if (1 === g.push(this)) (n$1.requestAnimationFrame || A)(F);
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
-
export { E, d, w };
|
|
761
|
+
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.
|
|
3
|
+
"version": "1.5.24",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/jsenv/core",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"prepublishOnly": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@jsenv/ast": "6.7.
|
|
31
|
+
"@jsenv/ast": "6.7.19"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@jsenv/core": "../../",
|
|
35
35
|
"@jsenv/filesystem": "../../tooling/filesystem",
|
|
36
36
|
"@jsenv/plugin-toolbar": "./",
|
|
37
37
|
"@jsenv/utils": "../../tooling/utils",
|
|
38
|
-
"@preact/signals": "2.
|
|
39
|
-
"playwright": "1.
|
|
38
|
+
"@preact/signals": "2.6.2",
|
|
39
|
+
"playwright": "1.58.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|