@jsenv/plugin-toolbar 1.4.27 → 1.4.28
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/js/toolbar_core.js +57 -54
- package/package.json +3 -3
package/dist/js/toolbar_core.js
CHANGED
|
@@ -2,8 +2,8 @@ var l$2,
|
|
|
2
2
|
t$2;
|
|
3
3
|
l$2 = {
|
|
4
4
|
__e: function (n, l, u, t) {
|
|
5
|
-
for (var i,
|
|
6
|
-
if ((
|
|
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, t || {}), o = i.__d), o) return i.__E = i;
|
|
7
7
|
} catch (l) {
|
|
8
8
|
n = l;
|
|
9
9
|
}
|
|
@@ -15,19 +15,19 @@ l$2 = {
|
|
|
15
15
|
|
|
16
16
|
var t$1,
|
|
17
17
|
r$1,
|
|
18
|
-
u$
|
|
18
|
+
u$2,
|
|
19
19
|
i$1,
|
|
20
20
|
o = 0,
|
|
21
21
|
f$1 = [],
|
|
22
|
-
c$
|
|
23
|
-
e$1 = c$
|
|
24
|
-
a$1 = c$
|
|
25
|
-
v$2 = c$
|
|
26
|
-
l$1 = c$
|
|
27
|
-
m = c$
|
|
28
|
-
s$1 = c$
|
|
22
|
+
c$1 = l$2,
|
|
23
|
+
e$1 = c$1.__b,
|
|
24
|
+
a$1 = c$1.__r,
|
|
25
|
+
v$2 = c$1.diffed,
|
|
26
|
+
l$1 = c$1.__c,
|
|
27
|
+
m = c$1.unmount,
|
|
28
|
+
s$1 = c$1.__;
|
|
29
29
|
function d$2(n, t) {
|
|
30
|
-
c$
|
|
30
|
+
c$1.__h && c$1.__h(r$1, n, o || t), o = 0;
|
|
31
31
|
var u = r$1.__H || (r$1.__H = {
|
|
32
32
|
__: [],
|
|
33
33
|
__h: []
|
|
@@ -42,26 +42,26 @@ function j() {
|
|
|
42
42
|
for (var n; n = f$1.shift();) if (n.__P && n.__H) try {
|
|
43
43
|
n.__H.__h.forEach(z), n.__H.__h.forEach(B), n.__H.__h = [];
|
|
44
44
|
} catch (t) {
|
|
45
|
-
n.__H.__h = [], c$
|
|
45
|
+
n.__H.__h = [], c$1.__e(t, n.__v);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
c$
|
|
48
|
+
c$1.__b = function (n) {
|
|
49
49
|
r$1 = null, e$1 && e$1(n);
|
|
50
|
-
}, c$
|
|
50
|
+
}, c$1.__ = function (n, t) {
|
|
51
51
|
n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s$1 && s$1(n, t);
|
|
52
|
-
}, c$
|
|
52
|
+
}, c$1.__r = function (n) {
|
|
53
53
|
a$1 && a$1(n), t$1 = 0;
|
|
54
54
|
var i = (r$1 = n.__c).__H;
|
|
55
|
-
i && (u$
|
|
55
|
+
i && (u$2 === r$1 ? (i.__h = [], r$1.__h = [], i.__.forEach(function (n) {
|
|
56
56
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
57
|
-
})) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$
|
|
58
|
-
}, c$
|
|
57
|
+
})) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$2 = r$1;
|
|
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$
|
|
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) {
|
|
62
62
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
63
|
-
})), u$
|
|
64
|
-
}, c$
|
|
63
|
+
})), u$2 = r$1 = null;
|
|
64
|
+
}, c$1.__c = function (n, t) {
|
|
65
65
|
t.some(function (n) {
|
|
66
66
|
try {
|
|
67
67
|
n.__h.forEach(z), n.__h = n.__h.filter(function (n) {
|
|
@@ -70,10 +70,10 @@ c$2.__b = function (n) {
|
|
|
70
70
|
} catch (r) {
|
|
71
71
|
t.some(function (n) {
|
|
72
72
|
n.__h && (n.__h = []);
|
|
73
|
-
}), t = [], c$
|
|
73
|
+
}), t = [], c$1.__e(r, n.__v);
|
|
74
74
|
}
|
|
75
75
|
}), l$1 && l$1(n, t);
|
|
76
|
-
}, c$
|
|
76
|
+
}, c$1.unmount = function (n) {
|
|
77
77
|
m && m(n);
|
|
78
78
|
var t,
|
|
79
79
|
r = n.__c;
|
|
@@ -83,7 +83,7 @@ c$2.__b = function (n) {
|
|
|
83
83
|
} catch (n) {
|
|
84
84
|
t = n;
|
|
85
85
|
}
|
|
86
|
-
}), r.__H = void 0, t && c$
|
|
86
|
+
}), r.__H = void 0, t && c$1.__e(t, r.__v));
|
|
87
87
|
};
|
|
88
88
|
var k = "function" == typeof requestAnimationFrame;
|
|
89
89
|
function w$1(n) {
|
|
@@ -144,7 +144,7 @@ let n, s;
|
|
|
144
144
|
let r = 0,
|
|
145
145
|
f = 0,
|
|
146
146
|
e = 0;
|
|
147
|
-
function c
|
|
147
|
+
function c(i) {
|
|
148
148
|
if (void 0 === n) return;
|
|
149
149
|
let t = i.n;
|
|
150
150
|
if (void 0 === t || t.t !== n) {
|
|
@@ -176,24 +176,24 @@ function c$1(i) {
|
|
|
176
176
|
return t;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function u(i) {
|
|
179
|
+
function u$1(i) {
|
|
180
180
|
this.v = i;
|
|
181
181
|
this.i = 0;
|
|
182
182
|
this.n = void 0;
|
|
183
183
|
this.t = void 0;
|
|
184
184
|
}
|
|
185
|
-
u.prototype.brand = i;
|
|
186
|
-
u.prototype.h = function () {
|
|
185
|
+
u$1.prototype.brand = i;
|
|
186
|
+
u$1.prototype.h = function () {
|
|
187
187
|
return !0;
|
|
188
188
|
};
|
|
189
|
-
u.prototype.S = function (i) {
|
|
189
|
+
u$1.prototype.S = function (i) {
|
|
190
190
|
if (this.t !== i && void 0 === i.e) {
|
|
191
191
|
i.x = this.t;
|
|
192
192
|
if (void 0 !== this.t) this.t.e = i;
|
|
193
193
|
this.t = i;
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
u.prototype.U = function (i) {
|
|
196
|
+
u$1.prototype.U = function (i) {
|
|
197
197
|
if (void 0 !== this.t) {
|
|
198
198
|
const t = i.e,
|
|
199
199
|
o = i.x;
|
|
@@ -208,7 +208,7 @@ u.prototype.U = function (i) {
|
|
|
208
208
|
if (i === this.t) this.t = o;
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
u.prototype.subscribe = function (i) {
|
|
211
|
+
u$1.prototype.subscribe = function (i) {
|
|
212
212
|
return E(() => {
|
|
213
213
|
const t = this.value,
|
|
214
214
|
o = n;
|
|
@@ -220,16 +220,16 @@ u.prototype.subscribe = function (i) {
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
|
-
u.prototype.valueOf = function () {
|
|
223
|
+
u$1.prototype.valueOf = function () {
|
|
224
224
|
return this.value;
|
|
225
225
|
};
|
|
226
|
-
u.prototype.toString = function () {
|
|
226
|
+
u$1.prototype.toString = function () {
|
|
227
227
|
return this.value + "";
|
|
228
228
|
};
|
|
229
|
-
u.prototype.toJSON = function () {
|
|
229
|
+
u$1.prototype.toJSON = function () {
|
|
230
230
|
return this.value;
|
|
231
231
|
};
|
|
232
|
-
u.prototype.peek = function () {
|
|
232
|
+
u$1.prototype.peek = function () {
|
|
233
233
|
const i = n;
|
|
234
234
|
n = void 0;
|
|
235
235
|
try {
|
|
@@ -238,9 +238,9 @@ u.prototype.peek = function () {
|
|
|
238
238
|
n = i;
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
|
-
Object.defineProperty(u.prototype, "value", {
|
|
241
|
+
Object.defineProperty(u$1.prototype, "value", {
|
|
242
242
|
get() {
|
|
243
|
-
const i = c
|
|
243
|
+
const i = c(this);
|
|
244
244
|
if (void 0 !== i) i.i = this.i;
|
|
245
245
|
return this.v;
|
|
246
246
|
},
|
|
@@ -260,7 +260,7 @@ Object.defineProperty(u.prototype, "value", {
|
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
function d$1(i) {
|
|
263
|
-
return new u(i);
|
|
263
|
+
return new u$1(i);
|
|
264
264
|
}
|
|
265
265
|
function v$1(i) {
|
|
266
266
|
for (let t = i.s; void 0 !== t; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;
|
|
@@ -295,13 +295,13 @@ function y(i) {
|
|
|
295
295
|
i.s = t;
|
|
296
296
|
}
|
|
297
297
|
function a(i) {
|
|
298
|
-
u.call(this, void 0);
|
|
298
|
+
u$1.call(this, void 0);
|
|
299
299
|
this.x = i;
|
|
300
300
|
this.s = void 0;
|
|
301
301
|
this.g = e - 1;
|
|
302
302
|
this.f = 4;
|
|
303
303
|
}
|
|
304
|
-
(a.prototype = new u()).h = function () {
|
|
304
|
+
(a.prototype = new u$1()).h = function () {
|
|
305
305
|
this.f &= -3;
|
|
306
306
|
if (1 & this.f) return !1;
|
|
307
307
|
if (32 == (36 & this.f)) return !0;
|
|
@@ -338,11 +338,11 @@ a.prototype.S = function (i) {
|
|
|
338
338
|
this.f |= 36;
|
|
339
339
|
for (let i = this.s; void 0 !== i; i = i.n) i.S.S(i);
|
|
340
340
|
}
|
|
341
|
-
u.prototype.S.call(this, i);
|
|
341
|
+
u$1.prototype.S.call(this, i);
|
|
342
342
|
};
|
|
343
343
|
a.prototype.U = function (i) {
|
|
344
344
|
if (void 0 !== this.t) {
|
|
345
|
-
u.prototype.U.call(this, i);
|
|
345
|
+
u$1.prototype.U.call(this, i);
|
|
346
346
|
if (void 0 === this.t) {
|
|
347
347
|
this.f &= -33;
|
|
348
348
|
for (let i = this.s; void 0 !== i; i = i.n) i.S.U(i);
|
|
@@ -358,7 +358,7 @@ a.prototype.N = function () {
|
|
|
358
358
|
Object.defineProperty(a.prototype, "value", {
|
|
359
359
|
get() {
|
|
360
360
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
361
|
-
const i = c
|
|
361
|
+
const i = c(this);
|
|
362
362
|
this.h();
|
|
363
363
|
if (void 0 !== i) i.i = this.i;
|
|
364
364
|
if (16 & this.f) throw this.v;
|
|
@@ -453,7 +453,7 @@ function E(i) {
|
|
|
453
453
|
return t.d.bind(t);
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
function
|
|
456
|
+
function u(t, e) {
|
|
457
457
|
l$2[t] = e.bind(null, l$2[t] || (() => {}));
|
|
458
458
|
}
|
|
459
459
|
let d;
|
|
@@ -474,10 +474,13 @@ function p({
|
|
|
474
474
|
}
|
|
475
475
|
this.__$u.c = () => {
|
|
476
476
|
var t;
|
|
477
|
-
|
|
477
|
+
const i = this.__$u.S(),
|
|
478
|
+
n = o.value;
|
|
479
|
+
i();
|
|
480
|
+
if (t$2(n) || 3 !== (null == (t = this.base) ? void 0 : t.nodeType)) {
|
|
478
481
|
this.__$f |= 1;
|
|
479
482
|
this.setState({});
|
|
480
|
-
}
|
|
483
|
+
} else this.base.data = n;
|
|
481
484
|
};
|
|
482
485
|
return w(() => {
|
|
483
486
|
let t = i.value.value;
|
|
@@ -487,7 +490,7 @@ function p({
|
|
|
487
490
|
return o.value;
|
|
488
491
|
}
|
|
489
492
|
p.displayName = "_st";
|
|
490
|
-
Object.defineProperties(u.prototype, {
|
|
493
|
+
Object.defineProperties(u$1.prototype, {
|
|
491
494
|
constructor: {
|
|
492
495
|
configurable: !0,
|
|
493
496
|
value: void 0
|
|
@@ -509,14 +512,14 @@ Object.defineProperties(u.prototype, {
|
|
|
509
512
|
value: 1
|
|
510
513
|
}
|
|
511
514
|
});
|
|
512
|
-
|
|
515
|
+
u("__b", (t, i) => {
|
|
513
516
|
if ("string" == typeof i.type) {
|
|
514
517
|
let t,
|
|
515
518
|
e = i.props;
|
|
516
519
|
for (let n in e) {
|
|
517
520
|
if ("children" === n) continue;
|
|
518
521
|
let o = e[n];
|
|
519
|
-
if (o instanceof u) {
|
|
522
|
+
if (o instanceof u$1) {
|
|
520
523
|
if (!t) i.__np = t = {};
|
|
521
524
|
t[n] = o;
|
|
522
525
|
e[n] = o.peek();
|
|
@@ -525,7 +528,7 @@ c("__b", (t, i) => {
|
|
|
525
528
|
}
|
|
526
529
|
t(i);
|
|
527
530
|
});
|
|
528
|
-
|
|
531
|
+
u("__r", (t, i) => {
|
|
529
532
|
h();
|
|
530
533
|
let e,
|
|
531
534
|
n = i.__c;
|
|
@@ -547,11 +550,11 @@ c("__r", (t, i) => {
|
|
|
547
550
|
h(e);
|
|
548
551
|
t(i);
|
|
549
552
|
});
|
|
550
|
-
|
|
553
|
+
u("__e", (t, i, e, n) => {
|
|
551
554
|
h();
|
|
552
555
|
t(i, e, n);
|
|
553
556
|
});
|
|
554
|
-
|
|
557
|
+
u("diffed", (t, i) => {
|
|
555
558
|
h();
|
|
556
559
|
let e;
|
|
557
560
|
if ("string" == typeof i.type && (e = i.__e)) {
|
|
@@ -598,7 +601,7 @@ function v(t, i, e, n) {
|
|
|
598
601
|
})
|
|
599
602
|
};
|
|
600
603
|
}
|
|
601
|
-
|
|
604
|
+
u("unmount", (t, i) => {
|
|
602
605
|
if ("string" == typeof i.type) {
|
|
603
606
|
let t = i.__e;
|
|
604
607
|
if (t) {
|
|
@@ -623,7 +626,7 @@ c("unmount", (t, i) => {
|
|
|
623
626
|
}
|
|
624
627
|
t(i);
|
|
625
628
|
});
|
|
626
|
-
|
|
629
|
+
u("__h", (t, i, e, n) => {
|
|
627
630
|
if (n < 3 || 9 === n) i.__$f |= 2;
|
|
628
631
|
t(i, e, n);
|
|
629
632
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-toolbar",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.28",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"/src/"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsenv/ast": "6.4.
|
|
30
|
-
"@preact/signals": "1.3.
|
|
29
|
+
"@jsenv/ast": "6.4.1",
|
|
30
|
+
"@preact/signals": "1.3.1"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
|