@jsenv/plugin-toolbar 1.5.26 → 1.5.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.
@@ -118,7 +118,7 @@ input:focus-visible {
118
118
  @keyframes rotateLoader {
119
119
  0% {
120
120
  opacity: 1;
121
- transform: scaleX(-1)rotate(360deg);
121
+ transform: scaleX(-1) rotate(360deg);
122
122
  }
123
123
 
124
124
  50% {
@@ -127,7 +127,7 @@ input:focus-visible {
127
127
 
128
128
  100% {
129
129
  opacity: 1;
130
- transform: scaleX(-1)rotate(0);
130
+ transform: scaleX(-1) rotate(0);
131
131
  }
132
132
  }
133
133
 
@@ -1,4 +1,4 @@
1
- import { v, m, b } from "../jsenv_plugin_toolbar_node_modules.js";
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);
@@ -9,9 +9,9 @@ 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 = v(typeof stateFromLocalStorage.animationsEnabled === "boolean" ? stateFromLocalStorage.animationsEnabled : typeof paramsFromParentWindow.animationsEnabled === "boolean" ? paramsFromParentWindow.animationsEnabled : false);
12
+ const animationsEnabledSignal = a(typeof stateFromLocalStorage.animationsEnabled === "boolean" ? stateFromLocalStorage.animationsEnabled : typeof paramsFromParentWindow.animationsEnabled === "boolean" ? paramsFromParentWindow.animationsEnabled : false);
13
13
 
14
- m(() => {
14
+ j(() => {
15
15
  const animationsEnabled = animationsEnabledSignal.value;
16
16
  if (animationsEnabled) {
17
17
  document.documentElement.removeAttribute("data-animation-disabled");
@@ -20,11 +20,11 @@ m(() => {
20
20
  }
21
21
  });
22
22
 
23
- const executionTooltipOpenedSignal = v(false);
24
- const executionSignal = v({
23
+ const executionTooltipOpenedSignal = a(false);
24
+ const executionSignal = a({
25
25
  status: "running"
26
26
  });
27
- const previousExecutionSignal = v(sessionStorage.hasOwnProperty(window.location.href) ? JSON.parse(sessionStorage.getItem(window.location.href)) : null);
27
+ const previousExecutionSignal = a(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 = v(typeof stateFromLocalStorage.notificationsEnabled === "boolean" ? stateFromLocalStorage.notificationsEnabled : typeof paramsFromParentWindow.notificationsEnabled === "boolean" ? paramsFromParentWindow.notificationsEnabled : false);
43
- const notificationPermissionSignal = v(Notification.permission);
42
+ const notificationsEnabledSignal = a(typeof stateFromLocalStorage.notificationsEnabled === "boolean" ? stateFromLocalStorage.notificationsEnabled : typeof paramsFromParentWindow.notificationsEnabled === "boolean" ? paramsFromParentWindow.notificationsEnabled : false);
43
+ const notificationPermissionSignal = a(Notification.permission);
44
44
 
45
45
  const enableNotifications = () => {
46
46
  notificationsEnabledSignal.value = true;
@@ -146,13 +146,13 @@ const getFaviconHref = () => {
146
146
  return link ? link.href : undefined;
147
147
  };
148
148
 
149
- m(() => {
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
- m(() => {
155
+ j(() => {
156
156
  const execution = executionSignal.value;
157
157
  const previousExecution = previousExecutionSignal.value;
158
158
  if (execution) {
@@ -160,14 +160,14 @@ m(() => {
160
160
  }
161
161
  });
162
162
 
163
- m(() => {
163
+ j(() => {
164
164
  const notificationsEnabled = notificationsEnabledSignal.value;
165
165
  if (!notificationsEnabled) {
166
166
  closeAllNotifications();
167
167
  }
168
168
  });
169
169
 
170
- const changesTooltipOpenedSignal = v(false);
170
+ const changesTooltipOpenedSignal = a(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 = v(false);
180
- const reloaderStatusSignal = v("idle");
181
- const changesSignal = v(0);
179
+ const autoreloadEnabledSignal = a(false);
180
+ const reloaderStatusSignal = a("idle");
181
+ const changesSignal = a(0);
182
182
  if (parentWindowReloader) {
183
183
  autoreloadEnabledSignal.value = parentWindowReloader.autoreload.enabled;
184
184
  parentWindowReloader.autoreload.onchange = () => {
@@ -252,7 +252,7 @@ const renameAttribute = (node, name, newName) => {
252
252
 
253
253
  const changesIndicator = document.querySelector("#changes_indicator");
254
254
  const renderChangesIndicator = () => {
255
- m(() => {
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
- m(() => {
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
- m(() => {
348
+ j(() => {
349
349
  const execution = executionSignal.value;
350
350
  updateExecutionIndicator(execution);
351
351
  });
352
- m(() => {
352
+ j(() => {
353
353
  const executionTooltipOpened = executionTooltipOpenedSignal.value;
354
354
  if (executionTooltipOpened) {
355
355
  executionIndicator.setAttribute("data-tooltip-visible", "");
@@ -415,8 +415,8 @@ const renderDocumentIndexLink = () => {
415
415
  setLinkHrefForParentWindow(document.querySelector("#document_index_link"), "/");
416
416
  };
417
417
 
418
- const serverTooltipOpenedSignal = v(false);
419
- const serverConnectionSignal = v("default");
418
+ const serverTooltipOpenedSignal = a(false);
419
+ const serverConnectionSignal = a("default");
420
420
  const serverEvents$1 = window.__server_events__;
421
421
  if (serverEvents$1) {
422
422
  serverEvents$1.readyState.onchange = () => {
@@ -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
- m(() => {
440
+ j(() => {
441
441
  const serverConnection = serverConnectionSignal.value;
442
442
  updateServerIndicator(serverConnection);
443
443
  });
444
- m(() => {
444
+ j(() => {
445
445
  const serverTooltipOpened = serverTooltipOpenedSignal.value;
446
446
  if (serverTooltipOpened) {
447
447
  serverIndicator.setAttribute("data-tooltip-visible", "");
@@ -480,7 +480,7 @@ const updateServerIndicator = connectionState => {
480
480
  }
481
481
  };
482
482
 
483
- const openedSignal = v(typeof stateFromLocalStorage.opened === "boolean" ? stateFromLocalStorage.opened : typeof paramsFromParentWindow.opened === "boolean" ? paramsFromParentWindow.opened : false);
483
+ const openedSignal = a(typeof stateFromLocalStorage.opened === "boolean" ? stateFromLocalStorage.opened : typeof paramsFromParentWindow.opened === "boolean" ? paramsFromParentWindow.opened : false);
484
484
 
485
485
  const openToolbar = () => {
486
486
  openedSignal.value = true;
@@ -745,7 +745,7 @@ const startJavaScriptAnimation = ({
745
745
  };
746
746
 
747
747
  const initToolbarOpening = () => {
748
- m(() => {
748
+ j(() => {
749
749
  const opened = openedSignal.value;
750
750
  if (opened) {
751
751
  showToolbar();
@@ -803,7 +803,7 @@ const showToolbar = () => {
803
803
  }
804
804
  };
805
805
 
806
- const settingsOpenedSignal = v(false);
806
+ const settingsOpenedSignal = a(false);
807
807
 
808
808
  const openSettings = () => {
809
809
  settingsOpenedSignal.value = true;
@@ -818,7 +818,7 @@ const renderToolbarOverlay = () => {
818
818
  closeAllTooltips();
819
819
  closeSettings();
820
820
  };
821
- m(() => {
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
- m(() => {
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
- m(() => {
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
- m(() => {
1008
+ j(() => {
1009
1009
  const notificationsEnabled = notificationsEnabledSignal.value;
1010
1010
  notifCheckbox.checked = notificationsEnabled;
1011
1011
  });
1012
- m(() => {
1012
+ j(() => {
1013
1013
  const notificationPermission = notificationPermissionSignal.value;
1014
1014
  if (!notificationAPIDetected) {
1015
1015
  applyNotificationNotAvailableEffects();
@@ -1071,7 +1071,7 @@ const applyNotificationNOTGrantedEffects = () => {
1071
1071
  };
1072
1072
  };
1073
1073
 
1074
- const ribbonDisplayedSignal = v(typeof stateFromLocalStorage.ribbonDisplayed === "boolean" ? stateFromLocalStorage.ribbonDisplayed : true);
1074
+ const ribbonDisplayedSignal = a(typeof stateFromLocalStorage.ribbonDisplayed === "boolean" ? stateFromLocalStorage.ribbonDisplayed : true);
1075
1075
 
1076
1076
  const ribbonBox = document.querySelector("#ribbon_box");
1077
1077
  const ribbonCheckbox = ribbonBox.querySelector("input");
@@ -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
- m(() => {
1082
+ j(() => {
1083
1083
  const ribbonDisplayed = ribbonDisplayedSignal.value;
1084
1084
  ribbonCheckbox.checked = ribbonDisplayed;
1085
1085
  if (ribbonDisplayed) {
@@ -1098,7 +1098,7 @@ const renderToolbarRibbonSetting = () => {
1098
1098
  }
1099
1099
  };
1100
1100
 
1101
- const themeSignal = v(typeof stateFromLocalStorage.theme === "string" ? stateFromLocalStorage.theme : typeof paramsFromParentWindow.theme === "string" ? paramsFromParentWindow.theme : "dark");
1101
+ const themeSignal = a(typeof stateFromLocalStorage.theme === "string" ? stateFromLocalStorage.theme : typeof paramsFromParentWindow.theme === "string" ? paramsFromParentWindow.theme : "dark");
1102
1102
 
1103
1103
  const switchToLightTheme = () => {
1104
1104
  themeSignal.value = "light";
@@ -1128,7 +1128,7 @@ const renderToolbarSettings = () => {
1128
1128
  renderToolbarNotificationSetting();
1129
1129
  renderToolbarThemeSetting();
1130
1130
  renderToolbarRibbonSetting();
1131
- m(() => {
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
- m(() => {
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
- m(() => {
1186
+ j(() => {
1187
1187
  const theme = themeSignal.value;
1188
1188
  document.querySelector("html").setAttribute("data-theme", theme);
1189
1189
  });
@@ -1191,7 +1191,7 @@ m(() => {
1191
1191
  addExternalCommandCallback("openToolbar", openToolbar);
1192
1192
  addExternalCommandCallback("closeToolbar", closeToolbar);
1193
1193
 
1194
- const toolbarStateSignal = b(() => {
1194
+ const toolbarStateSignal = g(() => {
1195
1195
  const opened = openedSignal.value;
1196
1196
  const theme = themeSignal.value;
1197
1197
  const animationsEnabled = animationsEnabledSignal.value;
@@ -1206,7 +1206,7 @@ const toolbarStateSignal = b(() => {
1206
1206
  };
1207
1207
  });
1208
1208
 
1209
- m(() => {
1209
+ j(() => {
1210
1210
  const toolbarState = toolbarStateSignal.value;
1211
1211
  localStorage.setItem("jsenv_toolbar", JSON.stringify(toolbarState));
1212
1212
  sendEventToParent("toolbar_state_change", toolbarState);
@@ -20,22 +20,22 @@ n$1 = {
20
20
  };
21
21
 
22
22
  var t$1,
23
- r,
23
+ r$1,
24
24
  u$1,
25
25
  i$1,
26
26
  o$1 = Object.is,
27
- f$1 = 0,
27
+ f = 0,
28
28
  c$1 = [],
29
29
  e$1 = n$1,
30
30
  a$1 = e$1.__b,
31
- v$1 = e$1.__r,
31
+ v$2 = e$1.__r,
32
32
  l$1 = e$1.diffed,
33
- m$2 = e$1.__c,
33
+ m$1 = e$1.__c,
34
34
  s$1 = e$1.unmount,
35
35
  p$1 = e$1.__;
36
36
  function d$2(n, t) {
37
- e$1.__h && e$1.__h(r, n, f$1 || t), f$1 = 0;
38
- var u = r.__H || (r.__H = {
37
+ e$1.__h && e$1.__h(r$1, n, f || t), f = 0;
38
+ var u = r$1.__H || (r$1.__H = {
39
39
  __: [],
40
40
  __h: []
41
41
  });
@@ -53,21 +53,21 @@ function g$2() {
53
53
  }
54
54
  }
55
55
  e$1.__b = function (n) {
56
- r = null, a$1 && a$1(n);
56
+ r$1 = null, a$1 && a$1(n);
57
57
  }, e$1.__ = function (n, t) {
58
58
  n && t.__k && t.__k.__m && (n.__m = t.__k.__m), p$1 && p$1(n, t);
59
59
  }, e$1.__r = function (n) {
60
- v$1 && v$1(n), t$1 = 0;
61
- var i = (r = n.__c).__H;
62
- i && (u$1 === r ? (i.__h = [], r.__h = [], i.__.forEach(function (n) {
60
+ v$2 && v$2(n), t$1 = 0;
61
+ var i = (r$1 = n.__c).__H;
62
+ i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.forEach(function (n) {
63
63
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
64
- })) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$1 = r;
64
+ })) : (i.__h.forEach(z), i.__h.forEach(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
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.__.forEach(function (n) {
69
69
  n.u && (n.__H = n.u), n.u = void 0;
70
- })), u$1 = r = null;
70
+ })), u$1 = r$1 = null;
71
71
  }, e$1.__c = function (n, t) {
72
72
  t.some(function (n) {
73
73
  try {
@@ -79,7 +79,7 @@ e$1.__b = function (n) {
79
79
  n.__h && (n.__h = []);
80
80
  }), t = [], e$1.__e(r, n.__v);
81
81
  }
82
- }), m$2 && m$2(n, t);
82
+ }), m$1 && m$1(n, t);
83
83
  }, e$1.unmount = function (n) {
84
84
  s$1 && s$1(n);
85
85
  var t,
@@ -102,13 +102,13 @@ function w$2(n) {
102
102
  k && (t = requestAnimationFrame(r));
103
103
  }
104
104
  function z(n) {
105
- var t = r,
105
+ var t = r$1,
106
106
  u = n.__c;
107
- "function" == typeof u && (n.__c = void 0, u()), r = t;
107
+ "function" == typeof u && (n.__c = void 0, u()), r$1 = t;
108
108
  }
109
109
  function B(n) {
110
- var t = r;
111
- n.__c = n.__(), r = t;
110
+ var t = r$1;
111
+ n.__c = n.__(), r$1 = t;
112
112
  }
113
113
  function C(n, t) {
114
114
  return !n || n.length !== t.length || t.some(function (t, r) {
@@ -118,21 +118,29 @@ function C(n, t) {
118
118
 
119
119
  const i = Symbol.for("preact-signals");
120
120
  function t() {
121
- if (f > 1) {
122
- f--;
121
+ if (e > 1) {
122
+ e--;
123
123
  return;
124
124
  }
125
125
  let i,
126
126
  t = false;
127
+ !function () {
128
+ let i = r;
129
+ r = void 0;
130
+ while (void 0 !== i) {
131
+ if (i.S.v === i.v) i.S.i = i.i;
132
+ i = i.o;
133
+ }
134
+ }();
127
135
  while (void 0 !== s) {
128
136
  let n = s;
129
137
  s = void 0;
130
- e++;
138
+ u++;
131
139
  while (void 0 !== n) {
132
- const o = n.o;
133
- n.o = void 0;
140
+ const o = n.u;
141
+ n.u = void 0;
134
142
  n.f &= -3;
135
- if (!(8 & n.f) && l(n)) try {
143
+ if (!(8 & n.f) && w$1(n)) try {
136
144
  n.c();
137
145
  } catch (n) {
138
146
  if (!t) {
@@ -143,13 +151,14 @@ function t() {
143
151
  n = o;
144
152
  }
145
153
  }
146
- e = 0;
147
- f--;
154
+ u = 0;
155
+ e--;
148
156
  if (t) throw i;
149
157
  }
150
158
  function n(i) {
151
- if (f > 0) return i();
152
- f++;
159
+ if (e > 0) return i();
160
+ d$1 = ++c;
161
+ e++;
153
162
  try {
154
163
  return i();
155
164
  } finally {
@@ -166,10 +175,13 @@ function h$1(i) {
166
175
  o = t;
167
176
  }
168
177
  }
169
- let f = 0,
178
+ let r,
170
179
  e = 0,
171
- u = 0;
172
- function c(i) {
180
+ u = 0,
181
+ c = 0,
182
+ d$1 = 0,
183
+ v$1 = 0;
184
+ function l(i) {
173
185
  if (void 0 === o) return;
174
186
  let t = i.n;
175
187
  if (void 0 === t || t.t !== o) {
@@ -201,20 +213,21 @@ function c(i) {
201
213
  return t;
202
214
  }
203
215
  }
204
- function d$1(i, t) {
216
+ function y$1(i, t) {
205
217
  this.v = i;
206
218
  this.i = 0;
207
219
  this.n = void 0;
208
220
  this.t = void 0;
221
+ this.l = 0;
209
222
  this.W = null == t ? void 0 : t.watched;
210
223
  this.Z = null == t ? void 0 : t.unwatched;
211
224
  this.name = null == t ? void 0 : t.name;
212
225
  }
213
- d$1.prototype.brand = i;
214
- d$1.prototype.h = function () {
226
+ y$1.prototype.brand = i;
227
+ y$1.prototype.h = function () {
215
228
  return true;
216
229
  };
217
- d$1.prototype.S = function (i) {
230
+ y$1.prototype.S = function (i) {
218
231
  const t = this.t;
219
232
  if (t !== i && void 0 === i.e) {
220
233
  i.x = t;
@@ -225,7 +238,7 @@ d$1.prototype.S = function (i) {
225
238
  });
226
239
  }
227
240
  };
228
- d$1.prototype.U = function (i) {
241
+ y$1.prototype.U = function (i) {
229
242
  if (void 0 !== this.t) {
230
243
  const t = i.e,
231
244
  n = i.x;
@@ -246,8 +259,8 @@ d$1.prototype.U = function (i) {
246
259
  }
247
260
  }
248
261
  };
249
- d$1.prototype.subscribe = function (i) {
250
- return m$1(() => {
262
+ y$1.prototype.subscribe = function (i) {
263
+ return j(() => {
251
264
  const t = this.value,
252
265
  n = o;
253
266
  o = void 0;
@@ -260,16 +273,16 @@ d$1.prototype.subscribe = function (i) {
260
273
  name: "sub"
261
274
  });
262
275
  };
263
- d$1.prototype.valueOf = function () {
276
+ y$1.prototype.valueOf = function () {
264
277
  return this.value;
265
278
  };
266
- d$1.prototype.toString = function () {
279
+ y$1.prototype.toString = function () {
267
280
  return this.value + "";
268
281
  };
269
- d$1.prototype.toJSON = function () {
282
+ y$1.prototype.toJSON = function () {
270
283
  return this.value;
271
284
  };
272
- d$1.prototype.peek = function () {
285
+ y$1.prototype.peek = function () {
273
286
  const i = o;
274
287
  o = void 0;
275
288
  try {
@@ -278,19 +291,30 @@ d$1.prototype.peek = function () {
278
291
  o = i;
279
292
  }
280
293
  };
281
- Object.defineProperty(d$1.prototype, "value", {
294
+ Object.defineProperty(y$1.prototype, "value", {
282
295
  get() {
283
- const i = c(this);
296
+ const i = l(this);
284
297
  if (void 0 !== i) i.i = this.i;
285
298
  return this.v;
286
299
  },
287
300
  set(i) {
288
301
  if (i !== this.v) {
289
- if (e > 100) throw new Error("Cycle detected");
302
+ if (u > 100) throw new Error("Cycle detected");
303
+ !function (i) {
304
+ if (0 !== e && 0 === u) if (i.l !== d$1) {
305
+ i.l = d$1;
306
+ r = {
307
+ S: i,
308
+ v: i.v,
309
+ i: i.i,
310
+ o: r
311
+ };
312
+ }
313
+ }(this);
290
314
  this.v = i;
291
315
  this.i++;
292
- u++;
293
- f++;
316
+ v$1++;
317
+ e++;
294
318
  try {
295
319
  for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
296
320
  } finally {
@@ -299,14 +323,14 @@ Object.defineProperty(d$1.prototype, "value", {
299
323
  }
300
324
  }
301
325
  });
302
- function v(i, t) {
303
- return new d$1(i, t);
326
+ function a(i, t) {
327
+ return new y$1(i, t);
304
328
  }
305
- function l(i) {
329
+ function w$1(i) {
306
330
  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;
307
331
  return false;
308
332
  }
309
- function y$1(i) {
333
+ function _$1(i) {
310
334
  for (let t = i.s; void 0 !== t; t = t.n) {
311
335
  const n = t.S.n;
312
336
  if (void 0 !== n) t.r = n;
@@ -318,7 +342,7 @@ function y$1(i) {
318
342
  }
319
343
  }
320
344
  }
321
- function a(i) {
345
+ function b$1(i) {
322
346
  let t,
323
347
  n = i.s;
324
348
  while (void 0 !== n) {
@@ -334,32 +358,32 @@ function a(i) {
334
358
  }
335
359
  i.s = t;
336
360
  }
337
- function w$1(i, t) {
338
- d$1.call(this, void 0);
361
+ function p(i, t) {
362
+ y$1.call(this, void 0);
339
363
  this.x = i;
340
364
  this.s = void 0;
341
- this.g = u - 1;
365
+ this.g = v$1 - 1;
342
366
  this.f = 4;
343
367
  this.W = null == t ? void 0 : t.watched;
344
368
  this.Z = null == t ? void 0 : t.unwatched;
345
369
  this.name = null == t ? void 0 : t.name;
346
370
  }
347
- w$1.prototype = new d$1();
348
- w$1.prototype.h = function () {
371
+ p.prototype = new y$1();
372
+ p.prototype.h = function () {
349
373
  this.f &= -3;
350
374
  if (1 & this.f) return false;
351
375
  if (32 == (36 & this.f)) return true;
352
376
  this.f &= -5;
353
- if (this.g === u) return true;
354
- this.g = u;
377
+ if (this.g === v$1) return true;
378
+ this.g = v$1;
355
379
  this.f |= 1;
356
- if (this.i > 0 && !l(this)) {
380
+ if (this.i > 0 && !w$1(this)) {
357
381
  this.f &= -2;
358
382
  return true;
359
383
  }
360
384
  const i = o;
361
385
  try {
362
- y$1(this);
386
+ _$1(this);
363
387
  o = this;
364
388
  const i = this.x();
365
389
  if (16 & this.f || this.v !== i || 0 === this.i) {
@@ -373,50 +397,50 @@ w$1.prototype.h = function () {
373
397
  this.i++;
374
398
  }
375
399
  o = i;
376
- a(this);
400
+ b$1(this);
377
401
  this.f &= -2;
378
402
  return true;
379
403
  };
380
- w$1.prototype.S = function (i) {
404
+ p.prototype.S = function (i) {
381
405
  if (void 0 === this.t) {
382
406
  this.f |= 36;
383
407
  for (let i = this.s; void 0 !== i; i = i.n) i.S.S(i);
384
408
  }
385
- d$1.prototype.S.call(this, i);
409
+ y$1.prototype.S.call(this, i);
386
410
  };
387
- w$1.prototype.U = function (i) {
411
+ p.prototype.U = function (i) {
388
412
  if (void 0 !== this.t) {
389
- d$1.prototype.U.call(this, i);
413
+ y$1.prototype.U.call(this, i);
390
414
  if (void 0 === this.t) {
391
415
  this.f &= -33;
392
416
  for (let i = this.s; void 0 !== i; i = i.n) i.S.U(i);
393
417
  }
394
418
  }
395
419
  };
396
- w$1.prototype.N = function () {
420
+ p.prototype.N = function () {
397
421
  if (!(2 & this.f)) {
398
422
  this.f |= 6;
399
423
  for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
400
424
  }
401
425
  };
402
- Object.defineProperty(w$1.prototype, "value", {
426
+ Object.defineProperty(p.prototype, "value", {
403
427
  get() {
404
428
  if (1 & this.f) throw new Error("Cycle detected");
405
- const i = c(this);
429
+ const i = l(this);
406
430
  this.h();
407
431
  if (void 0 !== i) i.i = this.i;
408
432
  if (16 & this.f) throw this.v;
409
433
  return this.v;
410
434
  }
411
435
  });
412
- function b$1(i, t) {
413
- return new w$1(i, t);
436
+ function g$1(i, t) {
437
+ return new p(i, t);
414
438
  }
415
- function _$1(i) {
416
- const n = i.u;
417
- i.u = void 0;
439
+ function S(i) {
440
+ const n = i.m;
441
+ i.m = void 0;
418
442
  if ("function" == typeof n) {
419
- f++;
443
+ e++;
420
444
  const s = o;
421
445
  o = void 0;
422
446
  try {
@@ -424,7 +448,7 @@ function _$1(i) {
424
448
  } catch (t) {
425
449
  i.f &= -2;
426
450
  i.f |= 8;
427
- p(i);
451
+ m(i);
428
452
  throw t;
429
453
  } finally {
430
454
  o = s;
@@ -432,66 +456,66 @@ function _$1(i) {
432
456
  }
433
457
  }
434
458
  }
435
- function p(i) {
459
+ function m(i) {
436
460
  for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
437
461
  i.x = void 0;
438
462
  i.s = void 0;
439
- _$1(i);
463
+ S(i);
440
464
  }
441
- function g$1(i) {
465
+ function x$1(i) {
442
466
  if (o !== this) throw new Error("Out-of-order effect");
443
- a(this);
467
+ b$1(this);
444
468
  o = i;
445
469
  this.f &= -2;
446
- if (8 & this.f) p(this);
470
+ if (8 & this.f) m(this);
447
471
  t();
448
472
  }
449
- function S(i, t) {
473
+ function E(i, t) {
450
474
  this.x = i;
451
- this.u = void 0;
475
+ this.m = void 0;
452
476
  this.s = void 0;
453
- this.o = void 0;
477
+ this.u = void 0;
454
478
  this.f = 32;
455
479
  this.name = null == t ? void 0 : t.name;
456
480
  }
457
- S.prototype.c = function () {
481
+ E.prototype.c = function () {
458
482
  const i = this.S();
459
483
  try {
460
484
  if (8 & this.f) return;
461
485
  if (void 0 === this.x) return;
462
486
  const t = this.x();
463
- if ("function" == typeof t) this.u = t;
487
+ if ("function" == typeof t) this.m = t;
464
488
  } finally {
465
489
  i();
466
490
  }
467
491
  };
468
- S.prototype.S = function () {
492
+ E.prototype.S = function () {
469
493
  if (1 & this.f) throw new Error("Cycle detected");
470
494
  this.f |= 1;
471
495
  this.f &= -9;
496
+ S(this);
472
497
  _$1(this);
473
- y$1(this);
474
- f++;
498
+ e++;
475
499
  const i = o;
476
500
  o = this;
477
- return g$1.bind(this, i);
501
+ return x$1.bind(this, i);
478
502
  };
479
- S.prototype.N = function () {
503
+ E.prototype.N = function () {
480
504
  if (!(2 & this.f)) {
481
505
  this.f |= 2;
482
- this.o = s;
506
+ this.u = s;
483
507
  s = this;
484
508
  }
485
509
  };
486
- S.prototype.d = function () {
510
+ E.prototype.d = function () {
487
511
  this.f |= 8;
488
- if (!(1 & this.f)) p(this);
512
+ if (!(1 & this.f)) m(this);
489
513
  };
490
- S.prototype.dispose = function () {
514
+ E.prototype.dispose = function () {
491
515
  this.d();
492
516
  };
493
- function m$1(i, t) {
494
- const n = new S(i, t);
517
+ function j(i, t) {
518
+ const n = new E(i, t);
495
519
  try {
496
520
  n.c();
497
521
  } catch (i) {
@@ -505,57 +529,57 @@ function m$1(i, t) {
505
529
 
506
530
  const d = "undefined" != typeof window && !!window.__PREACT_SIGNALS_DEVTOOLS__;
507
531
  let h,
508
- m,
532
+ v,
509
533
  _ = [];
510
- m$1(function () {
534
+ j(function () {
511
535
  h = this.N;
512
536
  })();
513
537
  function g(t, e) {
514
538
  n$1[t] = e.bind(null, n$1[t] || (() => {}));
515
539
  }
516
540
  function b(t) {
517
- if (m) {
518
- const t = m;
519
- m = void 0;
541
+ if (v) {
542
+ const t = v;
543
+ v = void 0;
520
544
  t();
521
545
  }
522
- m = t && t.S();
546
+ v = t && t.S();
523
547
  }
524
548
  function y({
525
549
  data: t
526
550
  }) {
527
551
  const i = useSignal(t);
528
552
  i.value = t;
529
- const [n, f] = q$1(() => {
553
+ const [n, r] = q$1(() => {
530
554
  let t = this,
531
555
  n = this.__v;
532
556
  while (n = n.__) if (n.__c) {
533
557
  n.__c.__$f |= 4;
534
558
  break;
535
559
  }
536
- const o = b$1(() => {
560
+ const o = g$1(() => {
537
561
  let t = i.value.value;
538
562
  return 0 === t ? 0 : true === t ? "" : t || "";
539
563
  }),
540
- f = b$1(() => !Array.isArray(o.value) && !u$2(o.value)),
541
- r = m$1(function () {
564
+ r = g$1(() => !Array.isArray(o.value) && !u$2(o.value)),
565
+ f = j(function () {
542
566
  this.N = F;
543
- if (f.value) {
567
+ if (r.value) {
544
568
  const i = o.value;
545
569
  if (t.__v && t.__v.__e && 3 === t.__v.__e.nodeType) t.__v.__e.data = i;
546
570
  }
547
571
  }),
548
- u = this.__$u.d;
572
+ s = this.__$u.d;
549
573
  this.__$u.d = function () {
550
- r();
551
- u.call(this);
574
+ f();
575
+ s.call(this);
552
576
  };
553
- return [f, o];
577
+ return [r, o];
554
578
  }, []);
555
- return n.value ? f.peek() : f.value;
579
+ return n.value ? r.peek() : r.value;
556
580
  }
557
581
  y.displayName = "ReactiveTextNode";
558
- Object.defineProperties(d$1.prototype, {
582
+ Object.defineProperties(y$1.prototype, {
559
583
  constructor: {
560
584
  configurable: true,
561
585
  value: void 0
@@ -567,8 +591,13 @@ Object.defineProperties(d$1.prototype, {
567
591
  props: {
568
592
  configurable: true,
569
593
  get() {
594
+ const t = this;
570
595
  return {
571
- data: this
596
+ data: {
597
+ get value() {
598
+ return t.value;
599
+ }
600
+ }
572
601
  };
573
602
  }
574
603
  },
@@ -584,7 +613,7 @@ g("__b", (t, i) => {
584
613
  for (let n in e) {
585
614
  if ("children" === n) continue;
586
615
  let o = e[n];
587
- if (o instanceof d$1) {
616
+ if (o instanceof y$1) {
588
617
  if (!t) i.__np = t = {};
589
618
  t[n] = o;
590
619
  e[n] = o.peek();
@@ -604,7 +633,7 @@ g("__r", (t, i) => {
604
633
  t = e.__$u;
605
634
  if (void 0 === t) e.__$u = t = function (t, i) {
606
635
  let e;
607
- m$1(function () {
636
+ j(function () {
608
637
  e = this;
609
638
  }, {
610
639
  name: i
@@ -644,12 +673,12 @@ g("diffed", (t, i) => {
644
673
  e.U = i;
645
674
  }
646
675
  for (let o in t) {
647
- let f = i[o],
648
- r = t[o];
649
- if (void 0 === f) {
650
- f = w(e, o, r);
651
- i[o] = f;
652
- } else f.o(r, n);
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);
653
682
  }
654
683
  for (let i in t) n[i] = t[i];
655
684
  }
@@ -658,20 +687,20 @@ g("diffed", (t, i) => {
658
687
  });
659
688
  function w(t, i, e, n) {
660
689
  const o = i in t && void 0 === t.ownerSVGElement,
661
- f = v(e);
662
- let r = e.peek();
690
+ r = a(e);
691
+ let f = e.peek();
663
692
  return {
664
693
  o: (t, i) => {
665
- f.value = t;
666
- r = t.peek();
694
+ r.value = t;
695
+ f = t.peek();
667
696
  },
668
- d: m$1(function () {
697
+ d: j(function () {
669
698
  this.N = F;
670
- const e = f.value.value;
671
- if (r !== e) {
672
- r = void 0;
699
+ const e = r.value.value;
700
+ if (f !== e) {
701
+ f = void 0;
673
702
  if (o) t[i] = e;else if (null != e && (false !== e || "-" === i[4])) t.setAttribute(i, e);else t.removeAttribute(i);
674
- } else r = void 0;
703
+ } else f = void 0;
675
704
  })
676
705
  };
677
706
  }
@@ -706,7 +735,7 @@ g("__h", (t, i, e, n) => {
706
735
  t(i, e, n);
707
736
  });
708
737
  function useSignal(t, i) {
709
- return q$1(() => v(t, i), []);
738
+ return q$1(() => a(t, i), []);
710
739
  }
711
740
  const q = t => {
712
741
  queueMicrotask(() => {
@@ -723,4 +752,4 @@ function F() {
723
752
  if (1 === _.push(this)) (n$1.requestAnimationFrame || q)(x);
724
753
  }
725
754
 
726
- export { b$1 as b, m$1 as m, v };
755
+ export { a, g$1 as g, j };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-toolbar",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/jsenv/core",
@@ -28,14 +28,14 @@
28
28
  "prepublishOnly": "npm run build"
29
29
  },
30
30
  "dependencies": {
31
- "@jsenv/ast": "6.7.20"
31
+ "@jsenv/ast": "6.8.0"
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.8.1",
38
+ "@preact/signals": "2.9.0",
39
39
  "playwright": "1.58.1"
40
40
  },
41
41
  "publishConfig": {