@jsenv/plugin-toolbar 1.5.30 → 1.5.32
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 +17 -17
- package/dist/jsenv_plugin_toolbar_node_modules.js +161 -164
- package/package.json +4 -4
package/dist/js/toolbar_core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y, j, g } from "../jsenv_plugin_toolbar_node_modules.js";
|
|
2
2
|
|
|
3
3
|
const paramsFromParentWindow = {};
|
|
4
4
|
const searchParams = new URLSearchParams(window.location.search);
|
|
@@ -9,7 +9,7 @@ const parentWindowReloader = window.parent.__reloader__;
|
|
|
9
9
|
|
|
10
10
|
const stateFromLocalStorage = localStorage.hasOwnProperty("jsenv_toolbar") ? JSON.parse(localStorage.getItem("jsenv_toolbar")) : {};
|
|
11
11
|
|
|
12
|
-
const animationsEnabledSignal =
|
|
12
|
+
const animationsEnabledSignal = y(typeof stateFromLocalStorage.animationsEnabled === "boolean" ? stateFromLocalStorage.animationsEnabled : typeof paramsFromParentWindow.animationsEnabled === "boolean" ? paramsFromParentWindow.animationsEnabled : false);
|
|
13
13
|
|
|
14
14
|
j(() => {
|
|
15
15
|
const animationsEnabled = animationsEnabledSignal.value;
|
|
@@ -20,11 +20,11 @@ j(() => {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
const executionTooltipOpenedSignal =
|
|
24
|
-
const executionSignal =
|
|
23
|
+
const executionTooltipOpenedSignal = y(false);
|
|
24
|
+
const executionSignal = y({
|
|
25
25
|
status: "running"
|
|
26
26
|
});
|
|
27
|
-
const previousExecutionSignal =
|
|
27
|
+
const previousExecutionSignal = y(sessionStorage.hasOwnProperty(window.location.href) ? JSON.parse(sessionStorage.getItem(window.location.href)) : null);
|
|
28
28
|
window.parent.__supervisor__.getDocumentExecutionResult().then(({
|
|
29
29
|
status,
|
|
30
30
|
startTime,
|
|
@@ -39,8 +39,8 @@ window.parent.__supervisor__.getDocumentExecutionResult().then(({
|
|
|
39
39
|
|
|
40
40
|
const notificationAPIDetected = typeof window.Notification === "function";
|
|
41
41
|
|
|
42
|
-
const notificationsEnabledSignal =
|
|
43
|
-
const notificationPermissionSignal =
|
|
42
|
+
const notificationsEnabledSignal = y(typeof stateFromLocalStorage.notificationsEnabled === "boolean" ? stateFromLocalStorage.notificationsEnabled : typeof paramsFromParentWindow.notificationsEnabled === "boolean" ? paramsFromParentWindow.notificationsEnabled : false);
|
|
43
|
+
const notificationPermissionSignal = y(Notification.permission);
|
|
44
44
|
|
|
45
45
|
const enableNotifications = () => {
|
|
46
46
|
notificationsEnabledSignal.value = true;
|
|
@@ -167,7 +167,7 @@ j(() => {
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
const changesTooltipOpenedSignal =
|
|
170
|
+
const changesTooltipOpenedSignal = y(false);
|
|
171
171
|
|
|
172
172
|
const openChangesToolip = () => {
|
|
173
173
|
changesTooltipOpenedSignal.value = true;
|
|
@@ -176,9 +176,9 @@ const closeChangesToolip = () => {
|
|
|
176
176
|
changesTooltipOpenedSignal.value = false;
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
const autoreloadEnabledSignal =
|
|
180
|
-
const reloaderStatusSignal =
|
|
181
|
-
const changesSignal =
|
|
179
|
+
const autoreloadEnabledSignal = y(false);
|
|
180
|
+
const reloaderStatusSignal = y("idle");
|
|
181
|
+
const changesSignal = y(0);
|
|
182
182
|
if (parentWindowReloader) {
|
|
183
183
|
autoreloadEnabledSignal.value = parentWindowReloader.autoreload.enabled;
|
|
184
184
|
parentWindowReloader.autoreload.onchange = () => {
|
|
@@ -415,8 +415,8 @@ const renderDocumentIndexLink = () => {
|
|
|
415
415
|
setLinkHrefForParentWindow(document.querySelector("#document_index_link"), "/");
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
const serverTooltipOpenedSignal =
|
|
419
|
-
const serverConnectionSignal =
|
|
418
|
+
const serverTooltipOpenedSignal = y(false);
|
|
419
|
+
const serverConnectionSignal = y("default");
|
|
420
420
|
const serverEvents$1 = window.__server_events__;
|
|
421
421
|
if (serverEvents$1) {
|
|
422
422
|
serverEvents$1.readyState.onchange = () => {
|
|
@@ -480,7 +480,7 @@ const updateServerIndicator = connectionState => {
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
|
|
483
|
-
const openedSignal =
|
|
483
|
+
const openedSignal = y(typeof stateFromLocalStorage.opened === "boolean" ? stateFromLocalStorage.opened : typeof paramsFromParentWindow.opened === "boolean" ? paramsFromParentWindow.opened : false);
|
|
484
484
|
|
|
485
485
|
const openToolbar = () => {
|
|
486
486
|
openedSignal.value = true;
|
|
@@ -803,7 +803,7 @@ const showToolbar = () => {
|
|
|
803
803
|
}
|
|
804
804
|
};
|
|
805
805
|
|
|
806
|
-
const settingsOpenedSignal =
|
|
806
|
+
const settingsOpenedSignal = y(false);
|
|
807
807
|
|
|
808
808
|
const openSettings = () => {
|
|
809
809
|
settingsOpenedSignal.value = true;
|
|
@@ -1071,7 +1071,7 @@ const applyNotificationNOTGrantedEffects = () => {
|
|
|
1071
1071
|
};
|
|
1072
1072
|
};
|
|
1073
1073
|
|
|
1074
|
-
const ribbonDisplayedSignal =
|
|
1074
|
+
const ribbonDisplayedSignal = y(typeof stateFromLocalStorage.ribbonDisplayed === "boolean" ? stateFromLocalStorage.ribbonDisplayed : true);
|
|
1075
1075
|
|
|
1076
1076
|
const ribbonBox = document.querySelector("#ribbon_box");
|
|
1077
1077
|
const ribbonCheckbox = ribbonBox.querySelector("input");
|
|
@@ -1098,7 +1098,7 @@ const renderToolbarRibbonSetting = () => {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
1100
|
|
|
1101
|
-
const themeSignal =
|
|
1101
|
+
const themeSignal = y(typeof stateFromLocalStorage.theme === "string" ? stateFromLocalStorage.theme : typeof paramsFromParentWindow.theme === "string" ? paramsFromParentWindow.theme : "dark");
|
|
1102
1102
|
|
|
1103
1103
|
const switchToLightTheme = () => {
|
|
1104
1104
|
themeSignal.value = "light";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var n$1,
|
|
2
2
|
u$2;
|
|
3
|
-
function
|
|
3
|
+
function $(n) {
|
|
4
4
|
return n.children;
|
|
5
5
|
}
|
|
6
6
|
n$1 = {
|
|
7
7
|
__e: function (n, l, u, t) {
|
|
8
|
-
for (var i,
|
|
8
|
+
for (var i, f, e; l = l.__;) if ((i = l.__c) && !(1 & i.__g)) {
|
|
9
9
|
i.__g |= 4;
|
|
10
10
|
try {
|
|
11
|
-
if ((
|
|
11
|
+
if ((f = i.constructor) && null != f.getDerivedStateFromError && (i.setState(f.getDerivedStateFromError(n)), e = 8 & i.__g), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), e = 8 & i.__g), e) return void (i.__g |= 2);
|
|
12
12
|
} catch (l) {
|
|
13
13
|
n = l;
|
|
14
14
|
}
|
|
@@ -24,17 +24,17 @@ var t$1,
|
|
|
24
24
|
u$1,
|
|
25
25
|
i$1,
|
|
26
26
|
o$1 = Object.is,
|
|
27
|
-
f = 0,
|
|
27
|
+
f$1 = 0,
|
|
28
28
|
c$1 = [],
|
|
29
29
|
e$1 = n$1,
|
|
30
30
|
a$1 = e$1.__b,
|
|
31
|
-
v$
|
|
31
|
+
v$1 = e$1.__r,
|
|
32
32
|
l$1 = e$1.diffed,
|
|
33
|
-
m$
|
|
33
|
+
m$2 = e$1.__c,
|
|
34
34
|
p$1 = e$1.unmount,
|
|
35
35
|
s$1 = e$1.__;
|
|
36
36
|
function d$2(n, t) {
|
|
37
|
-
e$1.__h && e$1.__h(r$1, n, f || t), f = 0;
|
|
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
|
__: [],
|
|
40
40
|
__h: []
|
|
@@ -46,10 +46,13 @@ function q$1(n, r) {
|
|
|
46
46
|
return C(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__;
|
|
47
47
|
}
|
|
48
48
|
function g$2() {
|
|
49
|
-
for (var n; n = c$1.shift();)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
for (var n; n = c$1.shift();) {
|
|
50
|
+
var t = n.__H;
|
|
51
|
+
if (n.__P && t) try {
|
|
52
|
+
t.__h.some(z), t.__h.some(B), t.__h = [];
|
|
53
|
+
} catch (r) {
|
|
54
|
+
t.__h = [], e$1.__e(r, n.__v);
|
|
55
|
+
}
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
e$1.__b = function (n) {
|
|
@@ -57,7 +60,7 @@ e$1.__b = function (n) {
|
|
|
57
60
|
}, e$1.__ = function (n, t) {
|
|
58
61
|
n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s$1 && s$1(n, t);
|
|
59
62
|
}, e$1.__r = function (n) {
|
|
60
|
-
v$
|
|
63
|
+
v$1 && v$1(n), t$1 = 0;
|
|
61
64
|
var i = (r$1 = n.__c).__H;
|
|
62
65
|
i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.some(function (n) {
|
|
63
66
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
@@ -66,7 +69,7 @@ e$1.__b = function (n) {
|
|
|
66
69
|
l$1 && l$1(n);
|
|
67
70
|
var t = n.__c;
|
|
68
71
|
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.__.some(function (n) {
|
|
69
|
-
n.u && (n.__H = n.u
|
|
72
|
+
n.u && (n.__H = n.u, n.u = void 0);
|
|
70
73
|
})), u$1 = r$1 = null;
|
|
71
74
|
}, e$1.__c = function (n, t) {
|
|
72
75
|
t.some(function (n) {
|
|
@@ -79,7 +82,7 @@ e$1.__b = function (n) {
|
|
|
79
82
|
n.__h && (n.__h = []);
|
|
80
83
|
}), t = [], e$1.__e(r, n.__v);
|
|
81
84
|
}
|
|
82
|
-
}), m$
|
|
85
|
+
}), m$2 && m$2(n, t);
|
|
83
86
|
}, e$1.unmount = function (n) {
|
|
84
87
|
p$1 && p$1(n);
|
|
85
88
|
var t,
|
|
@@ -125,17 +128,18 @@ function t() {
|
|
|
125
128
|
let i,
|
|
126
129
|
t = false;
|
|
127
130
|
!function () {
|
|
128
|
-
let i =
|
|
129
|
-
|
|
131
|
+
let i = f;
|
|
132
|
+
f = void 0;
|
|
130
133
|
while (void 0 !== i) {
|
|
131
|
-
|
|
134
|
+
const t = i.S;
|
|
135
|
+
if (t.v === i.v) for (let n = t.t; void 0 !== n; n = n.x) if (n.i === i.i) n.i = t.i;
|
|
132
136
|
i = i.o;
|
|
133
137
|
}
|
|
134
138
|
}();
|
|
135
|
-
while (void 0 !==
|
|
136
|
-
let n =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
while (void 0 !== h$1) {
|
|
140
|
+
let n = h$1;
|
|
141
|
+
h$1 = void 0;
|
|
142
|
+
c++;
|
|
139
143
|
while (void 0 !== n) {
|
|
140
144
|
const o = n.u;
|
|
141
145
|
n.u = void 0;
|
|
@@ -151,13 +155,13 @@ function t() {
|
|
|
151
155
|
n = o;
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
|
-
|
|
158
|
+
c = 0;
|
|
155
159
|
e--;
|
|
156
160
|
if (t) throw i;
|
|
157
161
|
}
|
|
158
162
|
function n(i) {
|
|
159
163
|
if (e > 0) return i();
|
|
160
|
-
d$1 = ++
|
|
164
|
+
d$1 = ++u;
|
|
161
165
|
e++;
|
|
162
166
|
try {
|
|
163
167
|
return i();
|
|
@@ -165,22 +169,25 @@ function n(i) {
|
|
|
165
169
|
t();
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
|
-
let o, s;
|
|
169
|
-
function
|
|
170
|
-
const t = o
|
|
172
|
+
let o, s, h$1;
|
|
173
|
+
function r(i) {
|
|
174
|
+
const t = o,
|
|
175
|
+
n = s;
|
|
171
176
|
o = void 0;
|
|
177
|
+
s = void 0;
|
|
172
178
|
try {
|
|
173
179
|
return i();
|
|
174
180
|
} finally {
|
|
175
181
|
o = t;
|
|
182
|
+
s = n;
|
|
176
183
|
}
|
|
177
184
|
}
|
|
178
|
-
let
|
|
185
|
+
let f,
|
|
179
186
|
e = 0,
|
|
180
|
-
u = 0,
|
|
181
187
|
c = 0,
|
|
188
|
+
u = 0,
|
|
182
189
|
d$1 = 0,
|
|
183
|
-
v
|
|
190
|
+
v = 0;
|
|
184
191
|
function l(i) {
|
|
185
192
|
if (void 0 === o) return;
|
|
186
193
|
let t = i.n;
|
|
@@ -213,7 +220,7 @@ function l(i) {
|
|
|
213
220
|
return t;
|
|
214
221
|
}
|
|
215
222
|
}
|
|
216
|
-
function
|
|
223
|
+
function a(i, t) {
|
|
217
224
|
this.v = i;
|
|
218
225
|
this.i = 0;
|
|
219
226
|
this.n = void 0;
|
|
@@ -223,22 +230,22 @@ function y$1(i, t) {
|
|
|
223
230
|
this.Z = null == t ? void 0 : t.unwatched;
|
|
224
231
|
this.name = null == t ? void 0 : t.name;
|
|
225
232
|
}
|
|
226
|
-
|
|
227
|
-
|
|
233
|
+
a.prototype.brand = i;
|
|
234
|
+
a.prototype.h = function () {
|
|
228
235
|
return true;
|
|
229
236
|
};
|
|
230
|
-
|
|
237
|
+
a.prototype.S = function (i) {
|
|
231
238
|
const t = this.t;
|
|
232
239
|
if (t !== i && void 0 === i.e) {
|
|
233
240
|
i.x = t;
|
|
234
241
|
this.t = i;
|
|
235
|
-
if (void 0 !== t) t.e = i;else
|
|
242
|
+
if (void 0 !== t) t.e = i;else r(() => {
|
|
236
243
|
var i;
|
|
237
244
|
null == (i = this.W) || i.call(this);
|
|
238
245
|
});
|
|
239
246
|
}
|
|
240
247
|
};
|
|
241
|
-
|
|
248
|
+
a.prototype.U = function (i) {
|
|
242
249
|
if (void 0 !== this.t) {
|
|
243
250
|
const t = i.e,
|
|
244
251
|
n = i.x;
|
|
@@ -252,46 +259,34 @@ y$1.prototype.U = function (i) {
|
|
|
252
259
|
}
|
|
253
260
|
if (i === this.t) {
|
|
254
261
|
this.t = n;
|
|
255
|
-
if (void 0 === n)
|
|
262
|
+
if (void 0 === n) r(() => {
|
|
256
263
|
var i;
|
|
257
264
|
null == (i = this.Z) || i.call(this);
|
|
258
265
|
});
|
|
259
266
|
}
|
|
260
267
|
}
|
|
261
268
|
};
|
|
262
|
-
|
|
269
|
+
a.prototype.subscribe = function (i) {
|
|
263
270
|
return j(() => {
|
|
264
|
-
const t = this.value
|
|
265
|
-
|
|
266
|
-
o = void 0;
|
|
267
|
-
try {
|
|
268
|
-
i(t);
|
|
269
|
-
} finally {
|
|
270
|
-
o = n;
|
|
271
|
-
}
|
|
271
|
+
const t = this.value;
|
|
272
|
+
r(() => i(t));
|
|
272
273
|
}, {
|
|
273
274
|
name: "sub"
|
|
274
275
|
});
|
|
275
276
|
};
|
|
276
|
-
|
|
277
|
+
a.prototype.valueOf = function () {
|
|
277
278
|
return this.value;
|
|
278
279
|
};
|
|
279
|
-
|
|
280
|
+
a.prototype.toString = function () {
|
|
280
281
|
return this.value + "";
|
|
281
282
|
};
|
|
282
|
-
|
|
283
|
+
a.prototype.toJSON = function () {
|
|
283
284
|
return this.value;
|
|
284
285
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
o = void 0;
|
|
288
|
-
try {
|
|
289
|
-
return this.value;
|
|
290
|
-
} finally {
|
|
291
|
-
o = i;
|
|
292
|
-
}
|
|
286
|
+
a.prototype.peek = function () {
|
|
287
|
+
return r(() => this.value);
|
|
293
288
|
};
|
|
294
|
-
Object.defineProperty(
|
|
289
|
+
Object.defineProperty(a.prototype, "value", {
|
|
295
290
|
get() {
|
|
296
291
|
const i = l(this);
|
|
297
292
|
if (void 0 !== i) i.i = this.i;
|
|
@@ -299,21 +294,21 @@ Object.defineProperty(y$1.prototype, "value", {
|
|
|
299
294
|
},
|
|
300
295
|
set(i) {
|
|
301
296
|
if (i !== this.v) {
|
|
302
|
-
if (
|
|
297
|
+
if (c > 100) throw new Error("Cycle detected");
|
|
303
298
|
!function (i) {
|
|
304
|
-
if (0 !== e && 0 ===
|
|
299
|
+
if (0 !== e && 0 === c) if (i.l !== d$1) {
|
|
305
300
|
i.l = d$1;
|
|
306
|
-
|
|
301
|
+
f = {
|
|
307
302
|
S: i,
|
|
308
303
|
v: i.v,
|
|
309
304
|
i: i.i,
|
|
310
|
-
o:
|
|
305
|
+
o: f
|
|
311
306
|
};
|
|
312
307
|
}
|
|
313
308
|
}(this);
|
|
314
309
|
this.v = i;
|
|
315
310
|
this.i++;
|
|
316
|
-
v
|
|
311
|
+
v++;
|
|
317
312
|
e++;
|
|
318
313
|
try {
|
|
319
314
|
for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
|
|
@@ -323,8 +318,8 @@ Object.defineProperty(y$1.prototype, "value", {
|
|
|
323
318
|
}
|
|
324
319
|
}
|
|
325
320
|
});
|
|
326
|
-
function
|
|
327
|
-
return new
|
|
321
|
+
function y$1(i, t) {
|
|
322
|
+
return new a(i, t);
|
|
328
323
|
}
|
|
329
324
|
function w$1(i) {
|
|
330
325
|
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 true;
|
|
@@ -359,23 +354,20 @@ function b$1(i) {
|
|
|
359
354
|
i.s = t;
|
|
360
355
|
}
|
|
361
356
|
function p(i, t) {
|
|
362
|
-
|
|
357
|
+
a.call(this, void 0, t);
|
|
363
358
|
this.x = i;
|
|
364
359
|
this.s = void 0;
|
|
365
|
-
this.g = v
|
|
360
|
+
this.g = v - 1;
|
|
366
361
|
this.f = 4;
|
|
367
|
-
this.W = null == t ? void 0 : t.watched;
|
|
368
|
-
this.Z = null == t ? void 0 : t.unwatched;
|
|
369
|
-
this.name = null == t ? void 0 : t.name;
|
|
370
362
|
}
|
|
371
|
-
p.prototype = new
|
|
363
|
+
p.prototype = new a();
|
|
372
364
|
p.prototype.h = function () {
|
|
373
365
|
this.f &= -3;
|
|
374
366
|
if (1 & this.f) return false;
|
|
375
367
|
if (32 == (36 & this.f)) return true;
|
|
376
368
|
this.f &= -5;
|
|
377
|
-
if (this.g === v
|
|
378
|
-
this.g = v
|
|
369
|
+
if (this.g === v) return true;
|
|
370
|
+
this.g = v;
|
|
379
371
|
this.f |= 1;
|
|
380
372
|
if (this.i > 0 && !w$1(this)) {
|
|
381
373
|
this.f &= -2;
|
|
@@ -406,11 +398,11 @@ p.prototype.S = function (i) {
|
|
|
406
398
|
this.f |= 36;
|
|
407
399
|
for (let i = this.s; void 0 !== i; i = i.n) i.S.S(i);
|
|
408
400
|
}
|
|
409
|
-
|
|
401
|
+
a.prototype.S.call(this, i);
|
|
410
402
|
};
|
|
411
403
|
p.prototype.U = function (i) {
|
|
412
404
|
if (void 0 !== this.t) {
|
|
413
|
-
|
|
405
|
+
a.prototype.U.call(this, i);
|
|
414
406
|
if (void 0 === this.t) {
|
|
415
407
|
this.f &= -33;
|
|
416
408
|
for (let i = this.s; void 0 !== i; i = i.n) i.S.U(i);
|
|
@@ -448,7 +440,7 @@ function S(i) {
|
|
|
448
440
|
} catch (t) {
|
|
449
441
|
i.f &= -2;
|
|
450
442
|
i.f |= 8;
|
|
451
|
-
m(i);
|
|
443
|
+
m$1(i);
|
|
452
444
|
throw t;
|
|
453
445
|
} finally {
|
|
454
446
|
o = s;
|
|
@@ -456,7 +448,7 @@ function S(i) {
|
|
|
456
448
|
}
|
|
457
449
|
}
|
|
458
450
|
}
|
|
459
|
-
function m(i) {
|
|
451
|
+
function m$1(i) {
|
|
460
452
|
for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
|
|
461
453
|
i.x = void 0;
|
|
462
454
|
i.s = void 0;
|
|
@@ -467,7 +459,7 @@ function x$1(i) {
|
|
|
467
459
|
b$1(this);
|
|
468
460
|
o = i;
|
|
469
461
|
this.f &= -2;
|
|
470
|
-
if (8 & this.f) m(this);
|
|
462
|
+
if (8 & this.f) m$1(this);
|
|
471
463
|
t();
|
|
472
464
|
}
|
|
473
465
|
function E(i, t) {
|
|
@@ -477,6 +469,7 @@ function E(i, t) {
|
|
|
477
469
|
this.u = void 0;
|
|
478
470
|
this.f = 32;
|
|
479
471
|
this.name = null == t ? void 0 : t.name;
|
|
472
|
+
if (s) s.push(this);
|
|
480
473
|
}
|
|
481
474
|
E.prototype.c = function () {
|
|
482
475
|
const i = this.S();
|
|
@@ -503,13 +496,13 @@ E.prototype.S = function () {
|
|
|
503
496
|
E.prototype.N = function () {
|
|
504
497
|
if (!(2 & this.f)) {
|
|
505
498
|
this.f |= 2;
|
|
506
|
-
this.u =
|
|
507
|
-
|
|
499
|
+
this.u = h$1;
|
|
500
|
+
h$1 = this;
|
|
508
501
|
}
|
|
509
502
|
};
|
|
510
503
|
E.prototype.d = function () {
|
|
511
504
|
this.f |= 8;
|
|
512
|
-
if (!(1 & this.f)) m(this);
|
|
505
|
+
if (!(1 & this.f)) m$1(this);
|
|
513
506
|
};
|
|
514
507
|
E.prototype.dispose = function () {
|
|
515
508
|
this.d();
|
|
@@ -527,59 +520,59 @@ function j(i, t) {
|
|
|
527
520
|
return o;
|
|
528
521
|
}
|
|
529
522
|
|
|
530
|
-
const
|
|
531
|
-
let
|
|
532
|
-
|
|
523
|
+
const h = "undefined" != typeof window && !!window.__PREACT_SIGNALS_DEVTOOLS__;
|
|
524
|
+
let d,
|
|
525
|
+
m,
|
|
533
526
|
_ = [];
|
|
534
527
|
j(function () {
|
|
535
|
-
|
|
528
|
+
d = this.N;
|
|
536
529
|
})();
|
|
537
|
-
function g(t,
|
|
538
|
-
n$1[t] =
|
|
530
|
+
function g(t, n) {
|
|
531
|
+
n$1[t] = n.bind(null, n$1[t] || (() => {}));
|
|
539
532
|
}
|
|
540
533
|
function b(t) {
|
|
541
|
-
if (
|
|
542
|
-
const t =
|
|
543
|
-
|
|
534
|
+
if (m) {
|
|
535
|
+
const t = m;
|
|
536
|
+
m = void 0;
|
|
544
537
|
t();
|
|
545
538
|
}
|
|
546
|
-
|
|
539
|
+
m = t && t.S();
|
|
547
540
|
}
|
|
548
541
|
function y({
|
|
549
542
|
data: t
|
|
550
543
|
}) {
|
|
551
544
|
const i = useSignal(t);
|
|
552
545
|
i.value = t;
|
|
553
|
-
const [
|
|
546
|
+
const [e, f] = q$1(() => {
|
|
554
547
|
let t = this,
|
|
555
|
-
|
|
556
|
-
while (
|
|
557
|
-
|
|
548
|
+
e = this.__v;
|
|
549
|
+
while (e = e.__) if (e.__c) {
|
|
550
|
+
e.__c.__$f |= 4;
|
|
558
551
|
break;
|
|
559
552
|
}
|
|
560
553
|
const o = g$1(() => {
|
|
561
554
|
let t = i.value.value;
|
|
562
555
|
return 0 === t ? 0 : true === t ? "" : t || "";
|
|
563
556
|
}),
|
|
564
|
-
|
|
565
|
-
|
|
557
|
+
f = g$1(() => !Array.isArray(o.value) && !u$2(o.value)),
|
|
558
|
+
r = j(function () {
|
|
566
559
|
this.N = F;
|
|
567
|
-
if (
|
|
560
|
+
if (f.value) {
|
|
568
561
|
const i = o.value;
|
|
569
562
|
if (t.__v && t.__v.__e && 3 === t.__v.__e.nodeType) t.__v.__e.data = i;
|
|
570
563
|
}
|
|
571
564
|
}),
|
|
572
|
-
|
|
565
|
+
c = this.__$u.d;
|
|
573
566
|
this.__$u.d = function () {
|
|
574
|
-
|
|
575
|
-
|
|
567
|
+
r();
|
|
568
|
+
c.call(this);
|
|
576
569
|
};
|
|
577
|
-
return [
|
|
570
|
+
return [f, o];
|
|
578
571
|
}, []);
|
|
579
|
-
return
|
|
572
|
+
return e.value ? f.peek() : f.value;
|
|
580
573
|
}
|
|
581
574
|
y.displayName = "ReactiveTextNode";
|
|
582
|
-
Object.defineProperties(
|
|
575
|
+
Object.defineProperties(a.prototype, {
|
|
583
576
|
constructor: {
|
|
584
577
|
configurable: true,
|
|
585
578
|
value: void 0
|
|
@@ -609,14 +602,14 @@ Object.defineProperties(y$1.prototype, {
|
|
|
609
602
|
g("__b", (t, i) => {
|
|
610
603
|
if ("string" == typeof i.type) {
|
|
611
604
|
let t,
|
|
612
|
-
|
|
613
|
-
for (let
|
|
614
|
-
if ("children" ===
|
|
615
|
-
let o = e
|
|
616
|
-
if (o instanceof
|
|
605
|
+
n = i.props;
|
|
606
|
+
for (let e in n) {
|
|
607
|
+
if ("children" === e) continue;
|
|
608
|
+
let o = n[e];
|
|
609
|
+
if (o instanceof a) {
|
|
617
610
|
if (!t) i.__np = t = {};
|
|
618
|
-
t[
|
|
619
|
-
e
|
|
611
|
+
t[e] = o;
|
|
612
|
+
n[e] = o.peek();
|
|
620
613
|
}
|
|
621
614
|
}
|
|
622
615
|
}
|
|
@@ -624,83 +617,82 @@ g("__b", (t, i) => {
|
|
|
624
617
|
});
|
|
625
618
|
g("__r", (t, i) => {
|
|
626
619
|
t(i);
|
|
627
|
-
if (i.type !==
|
|
620
|
+
if (i.type !== $) {
|
|
628
621
|
b();
|
|
629
622
|
let t,
|
|
630
|
-
|
|
631
|
-
if (
|
|
632
|
-
|
|
633
|
-
t =
|
|
634
|
-
if (void 0 === t)
|
|
635
|
-
let
|
|
623
|
+
n = i.__c;
|
|
624
|
+
if (n) {
|
|
625
|
+
n.__$f &= -2;
|
|
626
|
+
t = n.__$u;
|
|
627
|
+
if (void 0 === t) n.__$u = t = function (t, i) {
|
|
628
|
+
let n;
|
|
636
629
|
j(function () {
|
|
637
|
-
|
|
630
|
+
n = this;
|
|
638
631
|
}, {
|
|
639
632
|
name: i
|
|
640
633
|
});
|
|
641
|
-
|
|
642
|
-
return
|
|
634
|
+
n.c = t;
|
|
635
|
+
return n;
|
|
643
636
|
}(() => {
|
|
644
637
|
var i;
|
|
645
|
-
if (
|
|
646
|
-
|
|
647
|
-
|
|
638
|
+
if (h) null == (i = t.y) || i.call(t);
|
|
639
|
+
n.__$f |= 1;
|
|
640
|
+
n.setState({});
|
|
648
641
|
}, "function" == typeof i.type ? i.type.displayName || i.type.name : "");
|
|
649
642
|
}
|
|
650
643
|
b(t);
|
|
651
644
|
}
|
|
652
645
|
});
|
|
653
|
-
g("__e", (t, i,
|
|
646
|
+
g("__e", (t, i, n, e) => {
|
|
654
647
|
b();
|
|
655
|
-
t(i,
|
|
648
|
+
t(i, n, e);
|
|
656
649
|
});
|
|
657
650
|
g("diffed", (t, i) => {
|
|
658
651
|
b();
|
|
659
|
-
let
|
|
660
|
-
if ("string" == typeof i.type && (
|
|
652
|
+
let n;
|
|
653
|
+
if ("string" == typeof i.type && (n = i.__e)) {
|
|
661
654
|
let t = i.__np,
|
|
662
|
-
|
|
655
|
+
e = i.props,
|
|
656
|
+
o = n.U;
|
|
657
|
+
if (o) for (let i in o) {
|
|
658
|
+
let n = o[i];
|
|
659
|
+
if (!(void 0 === n || t && i in t)) {
|
|
660
|
+
n.d();
|
|
661
|
+
o[i] = void 0;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
663
664
|
if (t) {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
if (void 0 !== n && !(e in t)) {
|
|
668
|
-
n.d();
|
|
669
|
-
i[e] = void 0;
|
|
670
|
-
}
|
|
671
|
-
} else {
|
|
672
|
-
i = {};
|
|
673
|
-
e.U = i;
|
|
665
|
+
if (!o) {
|
|
666
|
+
o = {};
|
|
667
|
+
n.U = o;
|
|
674
668
|
}
|
|
675
|
-
for (let
|
|
676
|
-
let
|
|
677
|
-
|
|
678
|
-
if (void 0 ===
|
|
679
|
-
|
|
680
|
-
i
|
|
681
|
-
} else
|
|
669
|
+
for (let i in t) {
|
|
670
|
+
let f = o[i],
|
|
671
|
+
r = t[i];
|
|
672
|
+
if (void 0 === f) {
|
|
673
|
+
f = w(n, i, r, e);
|
|
674
|
+
o[i] = f;
|
|
675
|
+
} else f.o(r, e);
|
|
682
676
|
}
|
|
683
|
-
for (let i in t) n[i] = t[i];
|
|
684
677
|
}
|
|
685
678
|
}
|
|
686
679
|
t(i);
|
|
687
680
|
});
|
|
688
|
-
function w(t, i,
|
|
681
|
+
function w(t, i, n, e) {
|
|
689
682
|
const o = i in t && void 0 === t.ownerSVGElement,
|
|
690
|
-
|
|
691
|
-
let f = e.peek();
|
|
683
|
+
f = y$1(n);
|
|
692
684
|
return {
|
|
693
685
|
o: (t, i) => {
|
|
694
|
-
|
|
695
|
-
|
|
686
|
+
f.value = t;
|
|
687
|
+
e = i;
|
|
696
688
|
},
|
|
697
689
|
d: j(function () {
|
|
698
690
|
this.N = F;
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
701
|
-
|
|
702
|
-
if (o) t[i] =
|
|
703
|
-
}
|
|
691
|
+
const n = f.value.value;
|
|
692
|
+
if (e[i] !== n) {
|
|
693
|
+
e[i] = n;
|
|
694
|
+
if (o) t[i] = n;else if (null != n && (false !== n || "-" === i[4])) t.setAttribute(i, n);else t.removeAttribute(i);
|
|
695
|
+
}
|
|
704
696
|
})
|
|
705
697
|
};
|
|
706
698
|
}
|
|
@@ -712,11 +704,16 @@ g("unmount", (t, i) => {
|
|
|
712
704
|
if (i) {
|
|
713
705
|
t.U = void 0;
|
|
714
706
|
for (let t in i) {
|
|
715
|
-
let
|
|
716
|
-
if (
|
|
707
|
+
let n = i[t];
|
|
708
|
+
if (n) n.d();
|
|
717
709
|
}
|
|
718
710
|
}
|
|
719
711
|
}
|
|
712
|
+
let n = i.__np;
|
|
713
|
+
if (n) {
|
|
714
|
+
let t = i.props;
|
|
715
|
+
for (let i in n) t[i] = n[i];
|
|
716
|
+
}
|
|
720
717
|
i.__np = void 0;
|
|
721
718
|
} else {
|
|
722
719
|
let t = i.__c;
|
|
@@ -730,12 +727,12 @@ g("unmount", (t, i) => {
|
|
|
730
727
|
}
|
|
731
728
|
t(i);
|
|
732
729
|
});
|
|
733
|
-
g("__h", (t, i,
|
|
734
|
-
if (
|
|
735
|
-
t(i,
|
|
730
|
+
g("__h", (t, i, n, e) => {
|
|
731
|
+
if (e < 3) i.__$f |= 2;
|
|
732
|
+
t(i, n, e);
|
|
736
733
|
});
|
|
737
734
|
function useSignal(t, i) {
|
|
738
|
-
return q$1(() =>
|
|
735
|
+
return q$1(() => y$1(t, i), []);
|
|
739
736
|
}
|
|
740
737
|
const q = t => {
|
|
741
738
|
queueMicrotask(() => {
|
|
@@ -745,11 +742,11 @@ const q = t => {
|
|
|
745
742
|
function x() {
|
|
746
743
|
n(() => {
|
|
747
744
|
let t;
|
|
748
|
-
while (t = _.shift())
|
|
745
|
+
while (t = _.shift()) d.call(t);
|
|
749
746
|
});
|
|
750
747
|
}
|
|
751
748
|
function F() {
|
|
752
749
|
if (1 === _.push(this)) (n$1.requestAnimationFrame || q)(x);
|
|
753
750
|
}
|
|
754
751
|
|
|
755
|
-
export {
|
|
752
|
+
export { g$1 as g, j, y$1 as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-toolbar",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"prepublishOnly": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@jsenv/ast": "6.8.
|
|
31
|
+
"@jsenv/ast": "6.8.4"
|
|
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.9.
|
|
39
|
-
"playwright": "1.
|
|
38
|
+
"@preact/signals": "2.9.4",
|
|
39
|
+
"playwright": "1.61.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|