@jsenv/plugin-toolbar 1.5.16 → 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
- u = setTimeout(r, 100);
95
- k$1 && (t = requestAnimationFrame(r));
136
+ u = setTimeout(r, 35);
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;
@@ -413,7 +462,7 @@ function _$1(i) {
413
462
  } catch (t) {
414
463
  i.f &= -2;
415
464
  i.f |= 8;
416
- g$1(i);
465
+ b$1(i);
417
466
  throw t;
418
467
  } finally {
419
468
  n = s;
@@ -421,28 +470,29 @@ function _$1(i) {
421
470
  }
422
471
  }
423
472
  }
424
- function g$1(i) {
473
+ function b$1(i) {
425
474
  for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
426
475
  i.x = void 0;
427
476
  i.s = void 0;
428
477
  _$1(i);
429
478
  }
430
- function p(i) {
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
- if (8 & this.f) g$1(this);
484
+ if (8 & this.f) b$1(this);
436
485
  t();
437
486
  }
438
- function b$1(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
- b$1.prototype.c = function () {
495
+ p.prototype.c = function () {
446
496
  const i = this.S();
447
497
  try {
448
498
  if (8 & this.f) return;
@@ -453,7 +503,7 @@ b$1.prototype.c = function () {
453
503
  i();
454
504
  }
455
505
  };
456
- b$1.prototype.S = function () {
506
+ p.prototype.S = function () {
457
507
  if (1 & this.f) throw new Error("Cycle detected");
458
508
  this.f |= 1;
459
509
  this.f &= -9;
@@ -462,81 +512,83 @@ b$1.prototype.S = function () {
462
512
  r++;
463
513
  const i = n;
464
514
  n = this;
465
- return p.bind(this, i);
515
+ return g$1.bind(this, i);
466
516
  };
467
- b$1.prototype.N = function () {
517
+ p.prototype.N = function () {
468
518
  if (!(2 & this.f)) {
469
519
  this.f |= 2;
470
520
  this.o = s;
471
521
  s = this;
472
522
  }
473
523
  };
474
- b$1.prototype.d = function () {
524
+ p.prototype.d = function () {
475
525
  this.f |= 8;
476
- if (!(1 & this.f)) g$1(this);
526
+ if (!(1 & this.f)) b$1(this);
477
527
  };
478
- b$1.prototype.dispose = function () {
528
+ p.prototype.dispose = function () {
479
529
  this.d();
480
530
  };
481
- function E(i) {
482
- const t = new b$1(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
- return t.d.bind(t);
539
+ const n = o.d.bind(o);
540
+ n[Symbol.dispose] = n;
541
+ return n;
490
542
  }
491
543
 
492
- let a,
493
- d,
494
- m = [];
544
+ let h,
545
+ w,
546
+ v = [];
495
547
  E(function () {
496
- a = this.N;
548
+ h = this.N;
497
549
  })();
498
- function _(t, e) {
499
- l$2[t] = e.bind(null, l$2[t] || (() => {}));
550
+ function y(i, n) {
551
+ l$2[i] = n.bind(null, l$2[i] || (() => {}));
500
552
  }
501
- function v(t) {
502
- if (d) d();
503
- d = t && t.S();
553
+ function _(i) {
554
+ if (w) w();
555
+ w = i && i.S();
504
556
  }
505
557
  function g({
506
- data: t
558
+ data: i
507
559
  }) {
508
- const i = useSignal(t);
509
- i.value = t;
510
- const [o, r] = T(() => {
511
- let t = this,
512
- n = this.__v;
513
- while (n = n.__) if (n.__c) {
514
- 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;
515
567
  break;
516
568
  }
517
569
  const o = w$1(() => {
518
- let t = i.value.value;
519
- return 0 === t ? 0 : true === t ? "" : t || "";
570
+ let i = t.value.value;
571
+ return 0 === i ? 0 : true === i ? "" : i || "";
520
572
  }),
521
- r = w$1(() => !Array.isArray(o.value) && !t$2(o.value)),
522
- s = E(function () {
573
+ f = w$1(() => !Array.isArray(o.value) && !t$2(o.value)),
574
+ r = E(function () {
523
575
  this.N = F;
524
- if (r.value) {
525
- const i = o.value;
526
- 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;
527
579
  }
528
580
  }),
529
- c = this.__$u.d;
581
+ u = this.__$u.d;
530
582
  this.__$u.d = function () {
531
- s();
532
- c.call(this);
583
+ r();
584
+ u.call(this);
533
585
  };
534
- return [r, o];
586
+ return [f, o];
535
587
  }, []);
536
- return o.value ? r.peek() : r.value;
588
+ return e.value ? f.peek() : f.value;
537
589
  }
538
- g.displayName = "_st";
539
- Object.defineProperties(u.prototype, {
590
+ g.displayName = "ReactiveTextNode";
591
+ Object.defineProperties(c.prototype, {
540
592
  constructor: {
541
593
  configurable: true,
542
594
  value: void 0
@@ -558,141 +610,147 @@ Object.defineProperties(u.prototype, {
558
610
  value: 1
559
611
  }
560
612
  });
561
- _("__b", (t, i) => {
562
- if ("string" == typeof i.type) {
563
- let t,
564
- e = i.props;
565
- for (let n in e) {
566
- if ("children" === n) continue;
567
- let o = e[n];
568
- if (o instanceof u) {
569
- if (!t) i.__np = t = {};
570
- t[n] = o;
571
- 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();
572
625
  }
573
626
  }
574
627
  }
575
- t(i);
628
+ i(t);
576
629
  });
577
- _("__r", (t, i) => {
578
- v();
579
- let e,
580
- n = i.__c;
581
- if (n) {
582
- n.__$f &= -2;
583
- e = n.__$u;
584
- if (void 0 === e) n.__$u = e = function (t) {
585
- let i;
586
- E(function () {
587
- i = this;
588
- });
589
- i.c = () => {
590
- n.__$f |= 1;
591
- n.setState({});
592
- };
593
- return i;
594
- }();
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);
595
652
  }
596
- v(e);
597
- t(i);
653
+ i(t);
598
654
  });
599
- _("__e", (t, i, e, n) => {
600
- v();
601
- 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);
602
659
  });
603
- _("diffed", (t, i) => {
604
- v();
605
- let e;
606
- if ("string" == typeof i.type && (e = i.__e)) {
607
- let t = i.__np,
608
- n = i.props;
609
- if (t) {
610
- let i = e.U;
611
- if (i) for (let e in i) {
612
- let n = i[e];
613
- if (void 0 !== n && !(e in t)) {
614
- n.d();
615
- 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;
616
674
  }
617
675
  } else {
618
- i = {};
619
- e.U = i;
676
+ t = {};
677
+ n.U = t;
620
678
  }
621
- for (let o in t) {
622
- let r = i[o],
623
- f = t[o];
624
- if (void 0 === r) {
625
- r = b(e, o, f, n);
626
- i[o] = r;
627
- } 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);
628
686
  }
629
687
  }
630
688
  }
631
- t(i);
689
+ i(t);
632
690
  });
633
- function b(t, i, e, n) {
634
- const o = i in t && void 0 === t.ownerSVGElement,
635
- 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);
636
694
  return {
637
- o: (t, i) => {
638
- r.value = t;
639
- n = i;
695
+ o: (i, t) => {
696
+ f.value = i;
697
+ e = t;
640
698
  },
641
699
  d: E(function () {
642
700
  this.N = F;
643
- const e = r.value.value;
644
- if (n[i] !== e) {
645
- n[i] = e;
646
- 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);
647
705
  }
648
706
  })
649
707
  };
650
708
  }
651
- _("unmount", (t, i) => {
652
- if ("string" == typeof i.type) {
653
- let t = i.__e;
654
- if (t) {
655
- const i = t.U;
656
- if (i) {
657
- t.U = void 0;
658
- for (let t in i) {
659
- let e = i[t];
660
- 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();
661
719
  }
662
720
  }
663
721
  }
664
722
  } else {
665
- let t = i.__c;
666
- if (t) {
667
- const i = t.__$u;
668
- if (i) {
669
- t.__$u = void 0;
670
- 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();
671
729
  }
672
730
  }
673
731
  }
674
- t(i);
732
+ i(t);
675
733
  });
676
- _("__h", (t, i, e, n) => {
677
- if (n < 3 || 9 === n) i.__$f |= 2;
678
- 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);
679
737
  });
680
- function useSignal(t) {
681
- return T(() => d$1(t), []);
738
+ function useSignal(i, t) {
739
+ return d$1(() => d(i, t))[0];
682
740
  }
683
- const k = t => {
741
+ const q = i => {
684
742
  queueMicrotask(() => {
685
- queueMicrotask(t);
743
+ queueMicrotask(i);
686
744
  });
687
745
  };
688
- function w() {
746
+ function x() {
689
747
  o(() => {
690
- let t;
691
- while (t = m.shift()) a.call(t);
748
+ let i;
749
+ while (i = v.shift()) h.call(i);
692
750
  });
693
751
  }
694
752
  function F() {
695
- if (1 === m.push(this)) (l$2.requestAnimationFrame || k)(w);
753
+ if (1 === v.push(this)) (l$2.requestAnimationFrame || q)(x);
696
754
  }
697
755
 
698
- 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.16",
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.8"
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.0.4",
39
- "playwright": "1.52.0"
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 = () => {