@jsenv/plugin-toolbar 1.5.27 → 1.5.29
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a,
|
|
1
|
+
import { a, j, g } from "../jsenv_plugin_toolbar_node_modules.js";
|
|
2
2
|
|
|
3
3
|
const paramsFromParentWindow = {};
|
|
4
4
|
const searchParams = new URLSearchParams(window.location.search);
|
|
@@ -11,7 +11,7 @@ const stateFromLocalStorage = localStorage.hasOwnProperty("jsenv_toolbar") ? JSO
|
|
|
11
11
|
|
|
12
12
|
const animationsEnabledSignal = a(typeof stateFromLocalStorage.animationsEnabled === "boolean" ? stateFromLocalStorage.animationsEnabled : typeof paramsFromParentWindow.animationsEnabled === "boolean" ? paramsFromParentWindow.animationsEnabled : false);
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
j(() => {
|
|
15
15
|
const animationsEnabled = animationsEnabledSignal.value;
|
|
16
16
|
if (animationsEnabled) {
|
|
17
17
|
document.documentElement.removeAttribute("data-animation-disabled");
|
|
@@ -146,13 +146,13 @@ const getFaviconHref = () => {
|
|
|
146
146
|
return link ? link.href : undefined;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
j(() => {
|
|
150
150
|
const execution = executionSignal.value;
|
|
151
151
|
if (execution) {
|
|
152
152
|
sessionStorage.setItem(window.location.href, JSON.stringify(execution));
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
j(() => {
|
|
156
156
|
const execution = executionSignal.value;
|
|
157
157
|
const previousExecution = previousExecutionSignal.value;
|
|
158
158
|
if (execution) {
|
|
@@ -160,7 +160,7 @@ C(() => {
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
j(() => {
|
|
164
164
|
const notificationsEnabled = notificationsEnabledSignal.value;
|
|
165
165
|
if (!notificationsEnabled) {
|
|
166
166
|
closeAllNotifications();
|
|
@@ -252,7 +252,7 @@ const renameAttribute = (node, name, newName) => {
|
|
|
252
252
|
|
|
253
253
|
const changesIndicator = document.querySelector("#changes_indicator");
|
|
254
254
|
const renderChangesIndicator = () => {
|
|
255
|
-
|
|
255
|
+
j(() => {
|
|
256
256
|
const autoreloadEnabled = autoreloadEnabledSignal.value;
|
|
257
257
|
const changes = changesSignal.value;
|
|
258
258
|
const changeCount = changes.length;
|
|
@@ -274,7 +274,7 @@ const renderChangesIndicator = () => {
|
|
|
274
274
|
changesIndicator.querySelector(".tooltip_action").onclick = () => {
|
|
275
275
|
parentWindowReloader.reload();
|
|
276
276
|
};
|
|
277
|
-
|
|
277
|
+
j(() => {
|
|
278
278
|
const changesTooltipOpened = changesTooltipOpenedSignal.value;
|
|
279
279
|
if (changesTooltipOpened) {
|
|
280
280
|
changesIndicator.setAttribute("data-tooltip-visible", "");
|
|
@@ -345,11 +345,11 @@ const deactivateToolbarSection = element => {
|
|
|
345
345
|
const executionIndicator = document.querySelector("#document_execution_indicator");
|
|
346
346
|
const renderDocumentExecutionIndicator = async () => {
|
|
347
347
|
removeForceHideElement(document.querySelector("#document_execution_indicator"));
|
|
348
|
-
|
|
348
|
+
j(() => {
|
|
349
349
|
const execution = executionSignal.value;
|
|
350
350
|
updateExecutionIndicator(execution);
|
|
351
351
|
});
|
|
352
|
-
|
|
352
|
+
j(() => {
|
|
353
353
|
const executionTooltipOpened = executionTooltipOpenedSignal.value;
|
|
354
354
|
if (executionTooltipOpened) {
|
|
355
355
|
executionIndicator.setAttribute("data-tooltip-visible", "");
|
|
@@ -437,11 +437,11 @@ const serverEvents = window.__server_events__;
|
|
|
437
437
|
const serverIndicator = document.querySelector("#server_indicator");
|
|
438
438
|
const renderServerIndicator = () => {
|
|
439
439
|
removeForceHideElement(document.querySelector("#server_indicator"));
|
|
440
|
-
|
|
440
|
+
j(() => {
|
|
441
441
|
const serverConnection = serverConnectionSignal.value;
|
|
442
442
|
updateServerIndicator(serverConnection);
|
|
443
443
|
});
|
|
444
|
-
|
|
444
|
+
j(() => {
|
|
445
445
|
const serverTooltipOpened = serverTooltipOpenedSignal.value;
|
|
446
446
|
if (serverTooltipOpened) {
|
|
447
447
|
serverIndicator.setAttribute("data-tooltip-visible", "");
|
|
@@ -745,7 +745,7 @@ const startJavaScriptAnimation = ({
|
|
|
745
745
|
};
|
|
746
746
|
|
|
747
747
|
const initToolbarOpening = () => {
|
|
748
|
-
|
|
748
|
+
j(() => {
|
|
749
749
|
const opened = openedSignal.value;
|
|
750
750
|
if (opened) {
|
|
751
751
|
showToolbar();
|
|
@@ -818,7 +818,7 @@ const renderToolbarOverlay = () => {
|
|
|
818
818
|
closeAllTooltips();
|
|
819
819
|
closeSettings();
|
|
820
820
|
};
|
|
821
|
-
|
|
821
|
+
j(() => {
|
|
822
822
|
const opened = openedSignal.value;
|
|
823
823
|
const settingsOpened = settingsOpenedSignal.value;
|
|
824
824
|
const executionTooltipOpened = executionTooltipOpenedSignal.value;
|
|
@@ -882,7 +882,7 @@ const disableAnimations = () => {
|
|
|
882
882
|
|
|
883
883
|
const renderToolbarAnimationSetting = () => {
|
|
884
884
|
const animCheckbox = document.querySelector("#toggle_anims");
|
|
885
|
-
|
|
885
|
+
j(() => {
|
|
886
886
|
const animationsEnabled = animationsEnabledSignal.value;
|
|
887
887
|
animCheckbox.checked = animationsEnabled;
|
|
888
888
|
});
|
|
@@ -945,7 +945,7 @@ const renderToolbarAutoreloadSetting = () => {
|
|
|
945
945
|
return;
|
|
946
946
|
}
|
|
947
947
|
const autoreloadCheckbox = document.querySelector("#toggle_autoreload");
|
|
948
|
-
|
|
948
|
+
j(() => {
|
|
949
949
|
const autoreloadEnabled = autoreloadEnabledSignal.value;
|
|
950
950
|
if (autoreloadEnabled) {
|
|
951
951
|
autoreloadCheckbox.checked = true;
|
|
@@ -1005,11 +1005,11 @@ const disableAutoreloadSetting = () => {
|
|
|
1005
1005
|
|
|
1006
1006
|
const notifCheckbox = document.querySelector("#toggle_notifs");
|
|
1007
1007
|
const renderToolbarNotificationSetting = () => {
|
|
1008
|
-
|
|
1008
|
+
j(() => {
|
|
1009
1009
|
const notificationsEnabled = notificationsEnabledSignal.value;
|
|
1010
1010
|
notifCheckbox.checked = notificationsEnabled;
|
|
1011
1011
|
});
|
|
1012
|
-
|
|
1012
|
+
j(() => {
|
|
1013
1013
|
const notificationPermission = notificationPermissionSignal.value;
|
|
1014
1014
|
if (!notificationAPIDetected) {
|
|
1015
1015
|
applyNotificationNotAvailableEffects();
|
|
@@ -1079,7 +1079,7 @@ const renderToolbarRibbonSetting = () => {
|
|
|
1079
1079
|
const ribbonContainer = window.parent.document.querySelector("#jsenv_ribbon_container");
|
|
1080
1080
|
if (ribbonContainer) {
|
|
1081
1081
|
ribbonBox.style.display = "block";
|
|
1082
|
-
|
|
1082
|
+
j(() => {
|
|
1083
1083
|
const ribbonDisplayed = ribbonDisplayedSignal.value;
|
|
1084
1084
|
ribbonCheckbox.checked = ribbonDisplayed;
|
|
1085
1085
|
if (ribbonDisplayed) {
|
|
@@ -1128,7 +1128,7 @@ const renderToolbarSettings = () => {
|
|
|
1128
1128
|
renderToolbarNotificationSetting();
|
|
1129
1129
|
renderToolbarThemeSetting();
|
|
1130
1130
|
renderToolbarRibbonSetting();
|
|
1131
|
-
|
|
1131
|
+
j(() => {
|
|
1132
1132
|
const settingsOpened = settingsOpenedSignal.value;
|
|
1133
1133
|
if (settingsOpened) {
|
|
1134
1134
|
activateToolbarSection(document.querySelector("#settings"));
|
|
@@ -1176,14 +1176,14 @@ addExternalCommandCallback("initToolbar", () => {
|
|
|
1176
1176
|
});
|
|
1177
1177
|
sendEventToParent("toolbar_ready");
|
|
1178
1178
|
|
|
1179
|
-
|
|
1179
|
+
j(() => {
|
|
1180
1180
|
const serverConnection = serverConnectionSignal.value;
|
|
1181
1181
|
if (serverConnection === "connecting" || serverConnection === "closed") {
|
|
1182
1182
|
openServerTooltip();
|
|
1183
1183
|
}
|
|
1184
1184
|
});
|
|
1185
1185
|
|
|
1186
|
-
|
|
1186
|
+
j(() => {
|
|
1187
1187
|
const theme = themeSignal.value;
|
|
1188
1188
|
document.querySelector("html").setAttribute("data-theme", theme);
|
|
1189
1189
|
});
|
|
@@ -1206,7 +1206,7 @@ const toolbarStateSignal = g(() => {
|
|
|
1206
1206
|
};
|
|
1207
1207
|
});
|
|
1208
1208
|
|
|
1209
|
-
|
|
1209
|
+
j(() => {
|
|
1210
1210
|
const toolbarState = toolbarStateSignal.value;
|
|
1211
1211
|
localStorage.setItem("jsenv_toolbar", JSON.stringify(toolbarState));
|
|
1212
1212
|
sendEventToParent("toolbar_state_change", toolbarState);
|
|
@@ -5,10 +5,10 @@ function k$1(n) {
|
|
|
5
5
|
}
|
|
6
6
|
n$1 = {
|
|
7
7
|
__e: function (n, l, u, t) {
|
|
8
|
-
for (var i,
|
|
8
|
+
for (var i, o, f; l = l.__;) if ((i = l.__c) && !(1 & i.__g)) {
|
|
9
9
|
i.__g |= 4;
|
|
10
10
|
try {
|
|
11
|
-
if ((
|
|
11
|
+
if ((o = i.constructor) && null != o.getDerivedStateFromError && (i.setState(o.getDerivedStateFromError(n)), f = 8 & i.__g), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), f = 8 & i.__g), f) return void (i.__g |= 2);
|
|
12
12
|
} catch (l) {
|
|
13
13
|
n = l;
|
|
14
14
|
}
|
|
@@ -16,7 +16,7 @@ n$1 = {
|
|
|
16
16
|
throw n;
|
|
17
17
|
}
|
|
18
18
|
}, u$2 = function (n) {
|
|
19
|
-
return null != n &&
|
|
19
|
+
return null != n && void 0 === n.constructor;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
var t$1,
|
|
@@ -28,11 +28,11 @@ var t$1,
|
|
|
28
28
|
c$1 = [],
|
|
29
29
|
e$1 = n$1,
|
|
30
30
|
a$1 = e$1.__b,
|
|
31
|
-
v$
|
|
31
|
+
v$2 = e$1.__r,
|
|
32
32
|
l$1 = e$1.diffed,
|
|
33
|
-
m$
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
m$1 = e$1.__c,
|
|
34
|
+
p$1 = e$1.unmount,
|
|
35
|
+
s$1 = e$1.__;
|
|
36
36
|
function d$2(n, t) {
|
|
37
37
|
e$1.__h && e$1.__h(r$1, n, f || t), f = 0;
|
|
38
38
|
var u = r$1.__H || (r$1.__H = {
|
|
@@ -43,11 +43,11 @@ function d$2(n, t) {
|
|
|
43
43
|
}
|
|
44
44
|
function q$1(n, r) {
|
|
45
45
|
var u = d$2(t$1++, 7);
|
|
46
|
-
return C
|
|
46
|
+
return C(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__;
|
|
47
47
|
}
|
|
48
48
|
function g$2() {
|
|
49
49
|
for (var n; n = c$1.shift();) if (n.__P && n.__H) try {
|
|
50
|
-
n.__H.__h.
|
|
50
|
+
n.__H.__h.some(z), n.__H.__h.some(B), n.__H.__h = [];
|
|
51
51
|
} catch (t) {
|
|
52
52
|
n.__H.__h = [], e$1.__e(t, n.__v);
|
|
53
53
|
}
|
|
@@ -55,23 +55,23 @@ function g$2() {
|
|
|
55
55
|
e$1.__b = function (n) {
|
|
56
56
|
r$1 = null, a$1 && a$1(n);
|
|
57
57
|
}, e$1.__ = function (n, t) {
|
|
58
|
-
n && t.__k && t.__k.__m && (n.__m = t.__k.__m),
|
|
58
|
+
n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s$1 && s$1(n, t);
|
|
59
59
|
}, e$1.__r = function (n) {
|
|
60
|
-
v$
|
|
60
|
+
v$2 && v$2(n), t$1 = 0;
|
|
61
61
|
var i = (r$1 = n.__c).__H;
|
|
62
|
-
i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.
|
|
62
|
+
i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.some(function (n) {
|
|
63
63
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
64
|
-
})) : (i.__h.
|
|
64
|
+
})) : (i.__h.some(z), i.__h.some(B), i.__h = [], t$1 = 0)), u$1 = r$1;
|
|
65
65
|
}, e$1.diffed = function (n) {
|
|
66
66
|
l$1 && l$1(n);
|
|
67
67
|
var t = n.__c;
|
|
68
|
-
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.__.
|
|
68
|
+
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
69
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
70
70
|
})), u$1 = r$1 = null;
|
|
71
71
|
}, e$1.__c = function (n, t) {
|
|
72
72
|
t.some(function (n) {
|
|
73
73
|
try {
|
|
74
|
-
n.__h.
|
|
74
|
+
n.__h.some(z), n.__h = n.__h.filter(function (n) {
|
|
75
75
|
return !n.__ || B(n);
|
|
76
76
|
});
|
|
77
77
|
} catch (r) {
|
|
@@ -79,12 +79,12 @@ e$1.__b = function (n) {
|
|
|
79
79
|
n.__h && (n.__h = []);
|
|
80
80
|
}), t = [], e$1.__e(r, n.__v);
|
|
81
81
|
}
|
|
82
|
-
}), m$
|
|
82
|
+
}), m$1 && m$1(n, t);
|
|
83
83
|
}, e$1.unmount = function (n) {
|
|
84
|
-
|
|
84
|
+
p$1 && p$1(n);
|
|
85
85
|
var t,
|
|
86
86
|
r = n.__c;
|
|
87
|
-
r && r.__H && (r.__H.__.
|
|
87
|
+
r && r.__H && (r.__H.__.some(function (n) {
|
|
88
88
|
try {
|
|
89
89
|
z(n);
|
|
90
90
|
} catch (n) {
|
|
@@ -110,7 +110,7 @@ function B(n) {
|
|
|
110
110
|
var t = r$1;
|
|
111
111
|
n.__c = n.__(), r$1 = t;
|
|
112
112
|
}
|
|
113
|
-
function C
|
|
113
|
+
function C(n, t) {
|
|
114
114
|
return !n || n.length !== t.length || t.some(function (t, r) {
|
|
115
115
|
return !o$1(t, n[r]);
|
|
116
116
|
});
|
|
@@ -157,7 +157,7 @@ function t() {
|
|
|
157
157
|
}
|
|
158
158
|
function n(i) {
|
|
159
159
|
if (e > 0) return i();
|
|
160
|
-
|
|
160
|
+
d$1 = ++c;
|
|
161
161
|
e++;
|
|
162
162
|
try {
|
|
163
163
|
return i();
|
|
@@ -179,8 +179,8 @@ let r,
|
|
|
179
179
|
e = 0,
|
|
180
180
|
u = 0,
|
|
181
181
|
c = 0,
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
d$1 = 0,
|
|
183
|
+
v$1 = 0;
|
|
184
184
|
function l(i) {
|
|
185
185
|
if (void 0 === o) return;
|
|
186
186
|
let t = i.n;
|
|
@@ -260,7 +260,7 @@ y$1.prototype.U = function (i) {
|
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
y$1.prototype.subscribe = function (i) {
|
|
263
|
-
return
|
|
263
|
+
return j(() => {
|
|
264
264
|
const t = this.value,
|
|
265
265
|
n = o;
|
|
266
266
|
o = void 0;
|
|
@@ -301,8 +301,8 @@ Object.defineProperty(y$1.prototype, "value", {
|
|
|
301
301
|
if (i !== this.v) {
|
|
302
302
|
if (u > 100) throw new Error("Cycle detected");
|
|
303
303
|
!function (i) {
|
|
304
|
-
if (0 !== e && 0 === u) if (i.l !==
|
|
305
|
-
i.l =
|
|
304
|
+
if (0 !== e && 0 === u) if (i.l !== d$1) {
|
|
305
|
+
i.l = d$1;
|
|
306
306
|
r = {
|
|
307
307
|
S: i,
|
|
308
308
|
v: i.v,
|
|
@@ -313,7 +313,7 @@ Object.defineProperty(y$1.prototype, "value", {
|
|
|
313
313
|
}(this);
|
|
314
314
|
this.v = i;
|
|
315
315
|
this.i++;
|
|
316
|
-
|
|
316
|
+
v$1++;
|
|
317
317
|
e++;
|
|
318
318
|
try {
|
|
319
319
|
for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
|
|
@@ -362,7 +362,7 @@ function p(i, t) {
|
|
|
362
362
|
y$1.call(this, void 0);
|
|
363
363
|
this.x = i;
|
|
364
364
|
this.s = void 0;
|
|
365
|
-
this.g =
|
|
365
|
+
this.g = v$1 - 1;
|
|
366
366
|
this.f = 4;
|
|
367
367
|
this.W = null == t ? void 0 : t.watched;
|
|
368
368
|
this.Z = null == t ? void 0 : t.unwatched;
|
|
@@ -374,8 +374,8 @@ p.prototype.h = function () {
|
|
|
374
374
|
if (1 & this.f) return false;
|
|
375
375
|
if (32 == (36 & this.f)) return true;
|
|
376
376
|
this.f &= -5;
|
|
377
|
-
if (this.g ===
|
|
378
|
-
this.g =
|
|
377
|
+
if (this.g === v$1) return true;
|
|
378
|
+
this.g = v$1;
|
|
379
379
|
this.f |= 1;
|
|
380
380
|
if (this.i > 0 && !w$1(this)) {
|
|
381
381
|
this.f &= -2;
|
|
@@ -448,7 +448,7 @@ function S(i) {
|
|
|
448
448
|
} catch (t) {
|
|
449
449
|
i.f &= -2;
|
|
450
450
|
i.f |= 8;
|
|
451
|
-
m
|
|
451
|
+
m(i);
|
|
452
452
|
throw t;
|
|
453
453
|
} finally {
|
|
454
454
|
o = s;
|
|
@@ -456,7 +456,7 @@ function S(i) {
|
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
function m
|
|
459
|
+
function m(i) {
|
|
460
460
|
for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
|
|
461
461
|
i.x = void 0;
|
|
462
462
|
i.s = void 0;
|
|
@@ -467,7 +467,7 @@ function x$1(i) {
|
|
|
467
467
|
b$1(this);
|
|
468
468
|
o = i;
|
|
469
469
|
this.f &= -2;
|
|
470
|
-
if (8 & this.f) m
|
|
470
|
+
if (8 & this.f) m(this);
|
|
471
471
|
t();
|
|
472
472
|
}
|
|
473
473
|
function E(i, t) {
|
|
@@ -509,12 +509,12 @@ E.prototype.N = function () {
|
|
|
509
509
|
};
|
|
510
510
|
E.prototype.d = function () {
|
|
511
511
|
this.f |= 8;
|
|
512
|
-
if (!(1 & this.f)) m
|
|
512
|
+
if (!(1 & this.f)) m(this);
|
|
513
513
|
};
|
|
514
514
|
E.prototype.dispose = function () {
|
|
515
515
|
this.d();
|
|
516
516
|
};
|
|
517
|
-
function
|
|
517
|
+
function j(i, t) {
|
|
518
518
|
const n = new E(i, t);
|
|
519
519
|
try {
|
|
520
520
|
n.c();
|
|
@@ -529,28 +529,28 @@ function C(i, t) {
|
|
|
529
529
|
|
|
530
530
|
const d = "undefined" != typeof window && !!window.__PREACT_SIGNALS_DEVTOOLS__;
|
|
531
531
|
let h,
|
|
532
|
-
|
|
532
|
+
v,
|
|
533
533
|
_ = [];
|
|
534
|
-
|
|
534
|
+
j(function () {
|
|
535
535
|
h = this.N;
|
|
536
536
|
})();
|
|
537
537
|
function g(t, e) {
|
|
538
538
|
n$1[t] = e.bind(null, n$1[t] || (() => {}));
|
|
539
539
|
}
|
|
540
540
|
function b(t) {
|
|
541
|
-
if (
|
|
542
|
-
const t =
|
|
543
|
-
|
|
541
|
+
if (v) {
|
|
542
|
+
const t = v;
|
|
543
|
+
v = void 0;
|
|
544
544
|
t();
|
|
545
545
|
}
|
|
546
|
-
|
|
546
|
+
v = t && t.S();
|
|
547
547
|
}
|
|
548
548
|
function y({
|
|
549
549
|
data: t
|
|
550
550
|
}) {
|
|
551
551
|
const i = useSignal(t);
|
|
552
552
|
i.value = t;
|
|
553
|
-
const [n,
|
|
553
|
+
const [n, r] = q$1(() => {
|
|
554
554
|
let t = this,
|
|
555
555
|
n = this.__v;
|
|
556
556
|
while (n = n.__) if (n.__c) {
|
|
@@ -561,22 +561,22 @@ function y({
|
|
|
561
561
|
let t = i.value.value;
|
|
562
562
|
return 0 === t ? 0 : true === t ? "" : t || "";
|
|
563
563
|
}),
|
|
564
|
-
|
|
565
|
-
|
|
564
|
+
r = g$1(() => !Array.isArray(o.value) && !u$2(o.value)),
|
|
565
|
+
f = j(function () {
|
|
566
566
|
this.N = F;
|
|
567
|
-
if (
|
|
567
|
+
if (r.value) {
|
|
568
568
|
const i = o.value;
|
|
569
569
|
if (t.__v && t.__v.__e && 3 === t.__v.__e.nodeType) t.__v.__e.data = i;
|
|
570
570
|
}
|
|
571
571
|
}),
|
|
572
|
-
|
|
572
|
+
s = this.__$u.d;
|
|
573
573
|
this.__$u.d = function () {
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
f();
|
|
575
|
+
s.call(this);
|
|
576
576
|
};
|
|
577
|
-
return [
|
|
577
|
+
return [r, o];
|
|
578
578
|
}, []);
|
|
579
|
-
return n.value ?
|
|
579
|
+
return n.value ? r.peek() : r.value;
|
|
580
580
|
}
|
|
581
581
|
y.displayName = "ReactiveTextNode";
|
|
582
582
|
Object.defineProperties(y$1.prototype, {
|
|
@@ -591,8 +591,13 @@ Object.defineProperties(y$1.prototype, {
|
|
|
591
591
|
props: {
|
|
592
592
|
configurable: true,
|
|
593
593
|
get() {
|
|
594
|
+
const t = this;
|
|
594
595
|
return {
|
|
595
|
-
data:
|
|
596
|
+
data: {
|
|
597
|
+
get value() {
|
|
598
|
+
return t.value;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
596
601
|
};
|
|
597
602
|
}
|
|
598
603
|
},
|
|
@@ -628,7 +633,7 @@ g("__r", (t, i) => {
|
|
|
628
633
|
t = e.__$u;
|
|
629
634
|
if (void 0 === t) e.__$u = t = function (t, i) {
|
|
630
635
|
let e;
|
|
631
|
-
|
|
636
|
+
j(function () {
|
|
632
637
|
e = this;
|
|
633
638
|
}, {
|
|
634
639
|
name: i
|
|
@@ -668,12 +673,12 @@ g("diffed", (t, i) => {
|
|
|
668
673
|
e.U = i;
|
|
669
674
|
}
|
|
670
675
|
for (let o in t) {
|
|
671
|
-
let
|
|
672
|
-
|
|
673
|
-
if (void 0 ===
|
|
674
|
-
|
|
675
|
-
i[o] =
|
|
676
|
-
} else
|
|
676
|
+
let r = i[o],
|
|
677
|
+
f = t[o];
|
|
678
|
+
if (void 0 === r) {
|
|
679
|
+
r = w(e, o, f);
|
|
680
|
+
i[o] = r;
|
|
681
|
+
} else r.o(f, n);
|
|
677
682
|
}
|
|
678
683
|
for (let i in t) n[i] = t[i];
|
|
679
684
|
}
|
|
@@ -682,20 +687,20 @@ g("diffed", (t, i) => {
|
|
|
682
687
|
});
|
|
683
688
|
function w(t, i, e, n) {
|
|
684
689
|
const o = i in t && void 0 === t.ownerSVGElement,
|
|
685
|
-
|
|
686
|
-
let
|
|
690
|
+
r = a(e);
|
|
691
|
+
let f = e.peek();
|
|
687
692
|
return {
|
|
688
693
|
o: (t, i) => {
|
|
689
|
-
|
|
690
|
-
|
|
694
|
+
r.value = t;
|
|
695
|
+
f = t.peek();
|
|
691
696
|
},
|
|
692
|
-
d:
|
|
697
|
+
d: j(function () {
|
|
693
698
|
this.N = F;
|
|
694
|
-
const e =
|
|
695
|
-
if (
|
|
696
|
-
|
|
699
|
+
const e = r.value.value;
|
|
700
|
+
if (f !== e) {
|
|
701
|
+
f = void 0;
|
|
697
702
|
if (o) t[i] = e;else if (null != e && (false !== e || "-" === i[4])) t.setAttribute(i, e);else t.removeAttribute(i);
|
|
698
|
-
} else
|
|
703
|
+
} else f = void 0;
|
|
699
704
|
})
|
|
700
705
|
};
|
|
701
706
|
}
|
|
@@ -747,4 +752,4 @@ function F() {
|
|
|
747
752
|
if (1 === _.push(this)) (n$1.requestAnimationFrame || q)(x);
|
|
748
753
|
}
|
|
749
754
|
|
|
750
|
-
export {
|
|
755
|
+
export { a, g$1 as g, j };
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-toolbar",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.29",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"repository": {
|
|
5
6
|
"type": "git",
|
|
6
7
|
"url": "https://github.com/jsenv/core",
|
|
7
8
|
"directory": "packages/related/plugin-toolbar"
|
|
8
9
|
},
|
|
9
10
|
"license": "MIT",
|
|
10
|
-
"
|
|
11
|
+
"main": "./src/main.js",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"import": {
|
|
@@ -17,7 +18,6 @@
|
|
|
17
18
|
},
|
|
18
19
|
"./*": "./*"
|
|
19
20
|
},
|
|
20
|
-
"main": "./src/main.js",
|
|
21
21
|
"files": [
|
|
22
22
|
"/dist/",
|
|
23
23
|
"/src/"
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"prepublishOnly": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@jsenv/ast": "6.
|
|
31
|
+
"@jsenv/ast": "6.8.1"
|
|
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.
|
|
38
|
+
"@preact/signals": "2.9.0",
|
|
39
39
|
"playwright": "1.58.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|