@jsenv/plugin-toolbar 1.5.17 → 1.5.19

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.
@@ -511,6 +511,7 @@ const createHorizontalBreakpoint = breakpointValue => {
511
511
  return createBreakpoint(windowWidthMeasure, breakpointValue);
512
512
  };
513
513
  const createMeasure = ({
514
+ name,
514
515
  compute,
515
516
  register
516
517
  }) => {
@@ -529,6 +530,7 @@ const createMeasure = ({
529
530
  });
530
531
  }
531
532
  return {
533
+ name,
532
534
  get,
533
535
  changed,
534
536
  unregister
@@ -556,6 +558,7 @@ const createSignal = () => {
556
558
  };
557
559
  };
558
560
  const windowWidthMeasure = createMeasure({
561
+ name: "window-width",
559
562
  compute: () => window.innerWidth,
560
563
  register: onchange => {
561
564
  window.addEventListener("resize", onchange);
@@ -1,5 +1,8 @@
1
1
  var l$2,
2
2
  t$2;
3
+ function k$1(n) {
4
+ return n.children;
5
+ }
3
6
  l$2 = {
4
7
  __e: function (n, l, u, t) {
5
8
  for (var i, r, o; l = l.__;) if ((i = l.__c) && !i.__) try {
@@ -21,10 +24,10 @@ var t$1,
21
24
  f$1 = [],
22
25
  c$1 = l$2,
23
26
  e$1 = c$1.__b,
24
- a$2 = c$1.__r,
27
+ a$1 = c$1.__r,
25
28
  v$2 = c$1.diffed,
26
29
  l$1 = c$1.__c,
27
- m$1 = c$1.unmount,
30
+ m = c$1.unmount,
28
31
  s$1 = c$1.__;
29
32
  function p$1(n, t) {
30
33
  c$1.__h && c$1.__h(r$1, n, o$1 || t), o$1 = 0;
@@ -34,6 +37,45 @@ function p$1(n, t) {
34
37
  });
35
38
  return n >= u.__.length && u.__.push({}), u.__[n];
36
39
  }
40
+ function d$1(n) {
41
+ return o$1 = 1, h$2(D, n);
42
+ }
43
+ function h$2(n, u, i) {
44
+ var o = p$1(t$1++, 2);
45
+ if (o.t = n, !o.__c && (o.__ = [D(void 0, u), function (n) {
46
+ var t = o.__N ? o.__N[0] : o.__[0],
47
+ r = o.t(t, n);
48
+ t !== r && (o.__N = [r, o.__[1]], o.__c.setState({}));
49
+ }], o.__c = r$1, !r$1.__f)) {
50
+ var f = function (n, t, r) {
51
+ if (!o.__c.__H) return true;
52
+ var u = o.__c.__H.__.filter(function (n) {
53
+ return !!n.__c;
54
+ });
55
+ if (u.every(function (n) {
56
+ return !n.__N;
57
+ })) return !c || c.call(this, n, t, r);
58
+ var i = o.__c.props !== n;
59
+ return u.forEach(function (n) {
60
+ if (n.__N) {
61
+ var t = n.__[0];
62
+ n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = true);
63
+ }
64
+ }), c && c.call(this, n, t, r) || i;
65
+ };
66
+ r$1.__f = true;
67
+ var c = r$1.shouldComponentUpdate,
68
+ e = r$1.componentWillUpdate;
69
+ r$1.componentWillUpdate = function (n, t, r) {
70
+ if (this.__e) {
71
+ var u = c;
72
+ c = void 0, f(n, t, r), c = u;
73
+ }
74
+ e && e.call(this, n, t, r);
75
+ }, r$1.shouldComponentUpdate = f;
76
+ }
77
+ return o.__N || o.__;
78
+ }
37
79
  function T(n, r) {
38
80
  var u = p$1(t$1++, 7);
39
81
  return C(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__;
@@ -50,7 +92,7 @@ c$1.__b = function (n) {
50
92
  }, c$1.__ = function (n, t) {
51
93
  n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s$1 && s$1(n, t);
52
94
  }, c$1.__r = function (n) {
53
- a$2 && a$2(n), t$1 = 0;
95
+ a$1 && a$1(n), t$1 = 0;
54
96
  var i = (r$1 = n.__c).__H;
55
97
  i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.forEach(function (n) {
56
98
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
@@ -74,7 +116,7 @@ c$1.__b = function (n) {
74
116
  }
75
117
  }), l$1 && l$1(n, t);
76
118
  }, c$1.unmount = function (n) {
77
- m$1 && m$1(n);
119
+ m && m(n);
78
120
  var t,
79
121
  r = n.__c;
80
122
  r && r.__H && (r.__H.__.forEach(function (n) {
@@ -85,14 +127,14 @@ c$1.__b = function (n) {
85
127
  }
86
128
  }), r.__H = void 0, t && c$1.__e(t, r.__v));
87
129
  };
88
- var k$1 = "function" == typeof requestAnimationFrame;
130
+ var k = "function" == typeof requestAnimationFrame;
89
131
  function w$2(n) {
90
132
  var t,
91
133
  r = function () {
92
- clearTimeout(u), k$1 && cancelAnimationFrame(t), setTimeout(n);
134
+ clearTimeout(u), k && cancelAnimationFrame(t), setTimeout(n);
93
135
  },
94
136
  u = setTimeout(r, 35);
95
- k$1 && (t = requestAnimationFrame(r));
137
+ k && (t = requestAnimationFrame(r));
96
138
  }
97
139
  function z(n) {
98
140
  var t = r$1,
@@ -108,6 +150,9 @@ function C(n, t) {
108
150
  return t !== n[r];
109
151
  });
110
152
  }
153
+ function D(n, t) {
154
+ return "function" == typeof t ? t(n) : t;
155
+ }
111
156
 
112
157
  const i = Symbol.for("preact-signals");
113
158
  function t() {
@@ -150,7 +195,7 @@ function o(i) {
150
195
  }
151
196
  }
152
197
  let n, s;
153
- function h(i) {
198
+ function h$1(i) {
154
199
  const t = n;
155
200
  n = void 0;
156
201
  try {
@@ -162,7 +207,7 @@ function h(i) {
162
207
  let r = 0,
163
208
  f = 0,
164
209
  e = 0;
165
- function c(i) {
210
+ function u(i) {
166
211
  if (void 0 === n) return;
167
212
  let t = i.n;
168
213
  if (void 0 === t || t.t !== n) {
@@ -194,30 +239,31 @@ function c(i) {
194
239
  return t;
195
240
  }
196
241
  }
197
- function u(i, t) {
242
+ function c(i, t) {
198
243
  this.v = i;
199
244
  this.i = 0;
200
245
  this.n = void 0;
201
246
  this.t = void 0;
202
247
  this.W = null == t ? void 0 : t.watched;
203
248
  this.Z = null == t ? void 0 : t.unwatched;
249
+ this.name = null == t ? void 0 : t.name;
204
250
  }
205
- u.prototype.brand = i;
206
- u.prototype.h = function () {
251
+ c.prototype.brand = i;
252
+ c.prototype.h = function () {
207
253
  return true;
208
254
  };
209
- u.prototype.S = function (i) {
255
+ c.prototype.S = function (i) {
210
256
  const t = this.t;
211
257
  if (t !== i && void 0 === i.e) {
212
258
  i.x = t;
213
259
  this.t = i;
214
- if (void 0 !== t) t.e = i;else h(() => {
260
+ if (void 0 !== t) t.e = i;else h$1(() => {
215
261
  var i;
216
262
  null == (i = this.W) || i.call(this);
217
263
  });
218
264
  }
219
265
  };
220
- u.prototype.U = function (i) {
266
+ c.prototype.U = function (i) {
221
267
  if (void 0 !== this.t) {
222
268
  const t = i.e,
223
269
  o = i.x;
@@ -231,14 +277,14 @@ u.prototype.U = function (i) {
231
277
  }
232
278
  if (i === this.t) {
233
279
  this.t = o;
234
- if (void 0 === o) h(() => {
280
+ if (void 0 === o) h$1(() => {
235
281
  var i;
236
282
  null == (i = this.Z) || i.call(this);
237
283
  });
238
284
  }
239
285
  }
240
286
  };
241
- u.prototype.subscribe = function (i) {
287
+ c.prototype.subscribe = function (i) {
242
288
  return E(() => {
243
289
  const t = this.value,
244
290
  o = n;
@@ -248,18 +294,20 @@ u.prototype.subscribe = function (i) {
248
294
  } finally {
249
295
  n = o;
250
296
  }
297
+ }, {
298
+ name: "sub"
251
299
  });
252
300
  };
253
- u.prototype.valueOf = function () {
301
+ c.prototype.valueOf = function () {
254
302
  return this.value;
255
303
  };
256
- u.prototype.toString = function () {
304
+ c.prototype.toString = function () {
257
305
  return this.value + "";
258
306
  };
259
- u.prototype.toJSON = function () {
307
+ c.prototype.toJSON = function () {
260
308
  return this.value;
261
309
  };
262
- u.prototype.peek = function () {
310
+ c.prototype.peek = function () {
263
311
  const i = n;
264
312
  n = void 0;
265
313
  try {
@@ -268,9 +316,9 @@ u.prototype.peek = function () {
268
316
  n = i;
269
317
  }
270
318
  };
271
- Object.defineProperty(u.prototype, "value", {
319
+ Object.defineProperty(c.prototype, "value", {
272
320
  get() {
273
- const i = c(this);
321
+ const i = u(this);
274
322
  if (void 0 !== i) i.i = this.i;
275
323
  return this.v;
276
324
  },
@@ -289,8 +337,8 @@ Object.defineProperty(u.prototype, "value", {
289
337
  }
290
338
  }
291
339
  });
292
- function d$1(i, t) {
293
- return new u(i, t);
340
+ function d(i, t) {
341
+ return new c(i, t);
294
342
  }
295
343
  function v$1(i) {
296
344
  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;
@@ -308,7 +356,7 @@ function l(i) {
308
356
  }
309
357
  }
310
358
  }
311
- function y(i) {
359
+ function y$1(i) {
312
360
  let t,
313
361
  o = i.s;
314
362
  while (void 0 !== o) {
@@ -324,17 +372,18 @@ function y(i) {
324
372
  }
325
373
  i.s = t;
326
374
  }
327
- function a$1(i, t) {
328
- u.call(this, void 0);
375
+ function a(i, t) {
376
+ c.call(this, void 0);
329
377
  this.x = i;
330
378
  this.s = void 0;
331
379
  this.g = e - 1;
332
380
  this.f = 4;
333
381
  this.W = null == t ? void 0 : t.watched;
334
382
  this.Z = null == t ? void 0 : t.unwatched;
383
+ this.name = null == t ? void 0 : t.name;
335
384
  }
336
- a$1.prototype = new u();
337
- a$1.prototype.h = function () {
385
+ a.prototype = new c();
386
+ a.prototype.h = function () {
338
387
  this.f &= -3;
339
388
  if (1 & this.f) return false;
340
389
  if (32 == (36 & this.f)) return true;
@@ -362,36 +411,36 @@ a$1.prototype.h = function () {
362
411
  this.i++;
363
412
  }
364
413
  n = i;
365
- y(this);
414
+ y$1(this);
366
415
  this.f &= -2;
367
416
  return true;
368
417
  };
369
- a$1.prototype.S = function (i) {
418
+ a.prototype.S = function (i) {
370
419
  if (void 0 === this.t) {
371
420
  this.f |= 36;
372
421
  for (let i = this.s; void 0 !== i; i = i.n) i.S.S(i);
373
422
  }
374
- u.prototype.S.call(this, i);
423
+ c.prototype.S.call(this, i);
375
424
  };
376
- a$1.prototype.U = function (i) {
425
+ a.prototype.U = function (i) {
377
426
  if (void 0 !== this.t) {
378
- u.prototype.U.call(this, i);
427
+ c.prototype.U.call(this, i);
379
428
  if (void 0 === this.t) {
380
429
  this.f &= -33;
381
430
  for (let i = this.s; void 0 !== i; i = i.n) i.S.U(i);
382
431
  }
383
432
  }
384
433
  };
385
- a$1.prototype.N = function () {
434
+ a.prototype.N = function () {
386
435
  if (!(2 & this.f)) {
387
436
  this.f |= 6;
388
437
  for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
389
438
  }
390
439
  };
391
- Object.defineProperty(a$1.prototype, "value", {
440
+ Object.defineProperty(a.prototype, "value", {
392
441
  get() {
393
442
  if (1 & this.f) throw new Error("Cycle detected");
394
- const i = c(this);
443
+ const i = u(this);
395
444
  this.h();
396
445
  if (void 0 !== i) i.i = this.i;
397
446
  if (16 & this.f) throw this.v;
@@ -399,7 +448,7 @@ Object.defineProperty(a$1.prototype, "value", {
399
448
  }
400
449
  });
401
450
  function w$1(i, t) {
402
- return new a$1(i, t);
451
+ return new a(i, t);
403
452
  }
404
453
  function _$1(i) {
405
454
  const o = i.u;
@@ -429,18 +478,19 @@ function b$1(i) {
429
478
  }
430
479
  function g$1(i) {
431
480
  if (n !== this) throw new Error("Out-of-order effect");
432
- y(this);
481
+ y$1(this);
433
482
  n = i;
434
483
  this.f &= -2;
435
484
  if (8 & this.f) b$1(this);
436
485
  t();
437
486
  }
438
- function p(i) {
487
+ function p(i, t) {
439
488
  this.x = i;
440
489
  this.u = void 0;
441
490
  this.s = void 0;
442
491
  this.o = void 0;
443
492
  this.f = 32;
493
+ this.name = null == t ? void 0 : t.name;
444
494
  }
445
495
  p.prototype.c = function () {
446
496
  const i = this.S();
@@ -478,67 +528,67 @@ p.prototype.d = function () {
478
528
  p.prototype.dispose = function () {
479
529
  this.d();
480
530
  };
481
- function E(i) {
482
- const t = new p(i);
531
+ function E(i, t) {
532
+ const o = new p(i, t);
483
533
  try {
484
- t.c();
534
+ o.c();
485
535
  } catch (i) {
486
- t.d();
536
+ o.d();
487
537
  throw i;
488
538
  }
489
- const o = t.d.bind(t);
490
- o[Symbol.dispose] = o;
491
- return o;
539
+ const n = o.d.bind(o);
540
+ n[Symbol.dispose] = n;
541
+ return n;
492
542
  }
493
543
 
494
- let a,
495
- d,
496
- m = [];
544
+ let h,
545
+ w,
546
+ v = [];
497
547
  E(function () {
498
- a = this.N;
548
+ h = this.N;
499
549
  })();
500
- function _(t, e) {
501
- l$2[t] = e.bind(null, l$2[t] || (() => {}));
550
+ function y(i, n) {
551
+ l$2[i] = n.bind(null, l$2[i] || (() => {}));
502
552
  }
503
- function v(t) {
504
- if (d) d();
505
- d = t && t.S();
553
+ function _(i) {
554
+ if (w) w();
555
+ w = i && i.S();
506
556
  }
507
557
  function g({
508
- data: t
558
+ data: i
509
559
  }) {
510
- const i = useSignal(t);
511
- i.value = t;
512
- const [o, r] = T(() => {
513
- let t = this,
514
- n = this.__v;
515
- while (n = n.__) if (n.__c) {
516
- n.__c.__$f |= 4;
560
+ const t = useSignal(i);
561
+ t.value = i;
562
+ const [e, f] = T(() => {
563
+ let i = this,
564
+ e = this.__v;
565
+ while (e = e.__) if (e.__c) {
566
+ e.__c.__$f |= 4;
517
567
  break;
518
568
  }
519
569
  const o = w$1(() => {
520
- let t = i.value.value;
521
- return 0 === t ? 0 : true === t ? "" : t || "";
570
+ let i = t.value.value;
571
+ return 0 === i ? 0 : true === i ? "" : i || "";
522
572
  }),
523
- r = w$1(() => !Array.isArray(o.value) && !t$2(o.value)),
524
- s = E(function () {
573
+ f = w$1(() => !Array.isArray(o.value) && !t$2(o.value)),
574
+ r = E(function () {
525
575
  this.N = F;
526
- if (r.value) {
527
- const i = o.value;
528
- if (t.__v && t.__v.__e && 3 === t.__v.__e.nodeType) t.__v.__e.data = i;
576
+ if (f.value) {
577
+ const t = o.value;
578
+ if (i.__v && i.__v.__e && 3 === i.__v.__e.nodeType) i.__v.__e.data = t;
529
579
  }
530
580
  }),
531
- c = this.__$u.d;
581
+ u = this.__$u.d;
532
582
  this.__$u.d = function () {
533
- s();
534
- c.call(this);
583
+ r();
584
+ u.call(this);
535
585
  };
536
- return [r, o];
586
+ return [f, o];
537
587
  }, []);
538
- return o.value ? r.peek() : r.value;
588
+ return e.value ? f.peek() : f.value;
539
589
  }
540
- g.displayName = "_st";
541
- Object.defineProperties(u.prototype, {
590
+ g.displayName = "ReactiveTextNode";
591
+ Object.defineProperties(c.prototype, {
542
592
  constructor: {
543
593
  configurable: true,
544
594
  value: void 0
@@ -560,141 +610,147 @@ Object.defineProperties(u.prototype, {
560
610
  value: 1
561
611
  }
562
612
  });
563
- _("__b", (t, i) => {
564
- if ("string" == typeof i.type) {
565
- let t,
566
- e = i.props;
567
- for (let n in e) {
568
- if ("children" === n) continue;
569
- let o = e[n];
570
- if (o instanceof u) {
571
- if (!t) i.__np = t = {};
572
- t[n] = o;
573
- e[n] = o.peek();
613
+ y("__b", (i, t) => {
614
+ if ("function" == typeof t.type && "undefined" != typeof window && window.__PREACT_SIGNALS_DEVTOOLS__) window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent();
615
+ if ("string" == typeof t.type) {
616
+ let i,
617
+ n = t.props;
618
+ for (let e in n) {
619
+ if ("children" === e) continue;
620
+ let o = n[e];
621
+ if (o instanceof c) {
622
+ if (!i) t.__np = i = {};
623
+ i[e] = o;
624
+ n[e] = o.peek();
574
625
  }
575
626
  }
576
627
  }
577
- t(i);
628
+ i(t);
578
629
  });
579
- _("__r", (t, i) => {
580
- v();
581
- let e,
582
- n = i.__c;
583
- if (n) {
584
- n.__$f &= -2;
585
- e = n.__$u;
586
- if (void 0 === e) n.__$u = e = function (t) {
587
- let i;
588
- E(function () {
589
- i = this;
590
- });
591
- i.c = () => {
592
- n.__$f |= 1;
593
- n.setState({});
594
- };
595
- return i;
596
- }();
630
+ y("__r", (i, t) => {
631
+ if ("function" == typeof t.type && "undefined" != typeof window && window.__PREACT_SIGNALS_DEVTOOLS__) window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t);
632
+ if (t.type !== k$1) {
633
+ _();
634
+ let i,
635
+ n = t.__c;
636
+ if (n) {
637
+ n.__$f &= -2;
638
+ i = n.__$u;
639
+ if (void 0 === i) n.__$u = i = function (i) {
640
+ let t;
641
+ E(function () {
642
+ t = this;
643
+ });
644
+ t.c = () => {
645
+ n.__$f |= 1;
646
+ n.setState({});
647
+ };
648
+ return t;
649
+ }();
650
+ }
651
+ _(i);
597
652
  }
598
- v(e);
599
- t(i);
653
+ i(t);
600
654
  });
601
- _("__e", (t, i, e, n) => {
602
- v();
603
- t(i, e, n);
655
+ y("__e", (i, t, n, e) => {
656
+ if ("undefined" != typeof window && window.__PREACT_SIGNALS_DEVTOOLS__) window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent();
657
+ _();
658
+ i(t, n, e);
604
659
  });
605
- _("diffed", (t, i) => {
606
- v();
607
- let e;
608
- if ("string" == typeof i.type && (e = i.__e)) {
609
- let t = i.__np,
610
- n = i.props;
611
- if (t) {
612
- let i = e.U;
613
- if (i) for (let e in i) {
614
- let n = i[e];
615
- if (void 0 !== n && !(e in t)) {
616
- n.d();
617
- i[e] = void 0;
660
+ y("diffed", (i, t) => {
661
+ if ("function" == typeof t.type && "undefined" != typeof window && window.__PREACT_SIGNALS_DEVTOOLS__) window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent();
662
+ _();
663
+ let n;
664
+ if ("string" == typeof t.type && (n = t.__e)) {
665
+ let i = t.__np,
666
+ e = t.props;
667
+ if (i) {
668
+ let t = n.U;
669
+ if (t) for (let n in t) {
670
+ let e = t[n];
671
+ if (void 0 !== e && !(n in i)) {
672
+ e.d();
673
+ t[n] = void 0;
618
674
  }
619
675
  } else {
620
- i = {};
621
- e.U = i;
676
+ t = {};
677
+ n.U = t;
622
678
  }
623
- for (let o in t) {
624
- let r = i[o],
625
- f = t[o];
626
- if (void 0 === r) {
627
- r = b(e, o, f, n);
628
- i[o] = r;
629
- } else r.o(f, n);
679
+ for (let o in i) {
680
+ let f = t[o],
681
+ r = i[o];
682
+ if (void 0 === f) {
683
+ f = b(n, o, r, e);
684
+ t[o] = f;
685
+ } else f.o(r, e);
630
686
  }
631
687
  }
632
688
  }
633
- t(i);
689
+ i(t);
634
690
  });
635
- function b(t, i, e, n) {
636
- const o = i in t && void 0 === t.ownerSVGElement,
637
- r = d$1(e);
691
+ function b(i, t, n, e) {
692
+ const o = t in i && void 0 === i.ownerSVGElement,
693
+ f = d(n);
638
694
  return {
639
- o: (t, i) => {
640
- r.value = t;
641
- n = i;
695
+ o: (i, t) => {
696
+ f.value = i;
697
+ e = t;
642
698
  },
643
699
  d: E(function () {
644
700
  this.N = F;
645
- const e = r.value.value;
646
- if (n[i] !== e) {
647
- n[i] = e;
648
- if (o) t[i] = e;else if (e) t.setAttribute(i, e);else t.removeAttribute(i);
701
+ const n = f.value.value;
702
+ if (e[t] !== n) {
703
+ e[t] = n;
704
+ if (o) i[t] = n;else if (n) i.setAttribute(t, n);else i.removeAttribute(t);
649
705
  }
650
706
  })
651
707
  };
652
708
  }
653
- _("unmount", (t, i) => {
654
- if ("string" == typeof i.type) {
655
- let t = i.__e;
656
- if (t) {
657
- const i = t.U;
658
- if (i) {
659
- t.U = void 0;
660
- for (let t in i) {
661
- let e = i[t];
662
- if (e) e.d();
709
+ y("unmount", (i, t) => {
710
+ if ("string" == typeof t.type) {
711
+ let i = t.__e;
712
+ if (i) {
713
+ const t = i.U;
714
+ if (t) {
715
+ i.U = void 0;
716
+ for (let i in t) {
717
+ let n = t[i];
718
+ if (n) n.d();
663
719
  }
664
720
  }
665
721
  }
666
722
  } else {
667
- let t = i.__c;
668
- if (t) {
669
- const i = t.__$u;
670
- if (i) {
671
- t.__$u = void 0;
672
- i.d();
723
+ let i = t.__c;
724
+ if (i) {
725
+ const t = i.__$u;
726
+ if (t) {
727
+ i.__$u = void 0;
728
+ t.d();
673
729
  }
674
730
  }
675
731
  }
676
- t(i);
732
+ i(t);
677
733
  });
678
- _("__h", (t, i, e, n) => {
679
- if (n < 3 || 9 === n) i.__$f |= 2;
680
- t(i, e, n);
734
+ y("__h", (i, t, n, e) => {
735
+ if (e < 3 || 9 === e) t.__$f |= 2;
736
+ i(t, n, e);
681
737
  });
682
- function useSignal(t) {
683
- return T(() => d$1(t), []);
738
+ function useSignal(i, t) {
739
+ return d$1(() => d(i, t))[0];
684
740
  }
685
- const k = t => {
741
+ const q = i => {
686
742
  queueMicrotask(() => {
687
- queueMicrotask(t);
743
+ queueMicrotask(i);
688
744
  });
689
745
  };
690
- function w() {
746
+ function x() {
691
747
  o(() => {
692
- let t;
693
- while (t = m.shift()) a.call(t);
748
+ let i;
749
+ while (i = v.shift()) h.call(i);
694
750
  });
695
751
  }
696
752
  function F() {
697
- if (1 === m.push(this)) (l$2.requestAnimationFrame || k)(w);
753
+ if (1 === v.push(this)) (l$2.requestAnimationFrame || q)(x);
698
754
  }
699
755
 
700
- export { E, d$1 as d, w$1 as w };
756
+ export { E, 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.17",
3
+ "version": "1.5.19",
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.13"
31
+ "@jsenv/ast": "6.7.14"
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.2.1",
39
- "playwright": "1.54.1"
38
+ "@preact/signals": "2.3.2",
39
+ "playwright": "1.56.1"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -2,7 +2,7 @@ export const createHorizontalBreakpoint = (breakpointValue) => {
2
2
  return createBreakpoint(windowWidthMeasure, breakpointValue);
3
3
  };
4
4
 
5
- const createMeasure = ({ compute, register }) => {
5
+ const createMeasure = ({ name, compute, register }) => {
6
6
  let currentValue = compute();
7
7
 
8
8
  const get = () => compute();
@@ -21,7 +21,7 @@ const createMeasure = ({ compute, register }) => {
21
21
  });
22
22
  }
23
23
 
24
- return { get, changed, unregister };
24
+ return { name, get, changed, unregister };
25
25
  };
26
26
 
27
27
  const createSignal = () => {