@jsenv/plugin-toolbar 1.5.0 → 1.5.1
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,5 +1,5 @@
|
|
|
1
1
|
const jsenvLogoSvgUrl = new URL("../other/jsenv_logo.svg", import.meta.url);
|
|
2
|
-
const injectToolbar = async ({
|
|
2
|
+
export const injectToolbar = async ({
|
|
3
3
|
toolbarUrl,
|
|
4
4
|
logLevel,
|
|
5
5
|
theme,
|
|
@@ -262,6 +262,4 @@ const iframeToLoadedPromise = iframe => {
|
|
|
262
262
|
};
|
|
263
263
|
iframe.addEventListener("load", onload, true);
|
|
264
264
|
});
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
export { injectToolbar };
|
|
265
|
+
};
|
package/dist/js/vendors.js
CHANGED
|
@@ -53,13 +53,13 @@ c$1.__b = function (n) {
|
|
|
53
53
|
a$2 && a$2(n), t$1 = 0;
|
|
54
54
|
var i = (r$1 = n.__c).__H;
|
|
55
55
|
i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.forEach(function (n) {
|
|
56
|
-
n.__N && (n.__ = n.__N), n.u = n.__N =
|
|
56
|
+
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
57
57
|
})) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$1 = r$1;
|
|
58
58
|
}, c$1.diffed = function (n) {
|
|
59
59
|
v$2 && v$2(n);
|
|
60
60
|
var t = n.__c;
|
|
61
61
|
t && t.__H && (t.__H.__h.length && (1 !== f$1.push(t) && i$1 === c$1.requestAnimationFrame || ((i$1 = c$1.requestAnimationFrame) || w$1)(j)), t.__H.__.forEach(function (n) {
|
|
62
|
-
n.u && (n.__H = n.u), n.u =
|
|
62
|
+
n.u && (n.__H = n.u), n.u = void 0;
|
|
63
63
|
})), u$1 = r$1 = null;
|
|
64
64
|
}, c$1.__c = function (n, t) {
|
|
65
65
|
t.some(function (n) {
|
|
@@ -83,7 +83,7 @@ c$1.__b = function (n) {
|
|
|
83
83
|
} catch (n) {
|
|
84
84
|
t = n;
|
|
85
85
|
}
|
|
86
|
-
}), r.__H =
|
|
86
|
+
}), r.__H = void 0, t && c$1.__e(t, r.__v));
|
|
87
87
|
};
|
|
88
88
|
var k$1 = "function" == typeof requestAnimationFrame;
|
|
89
89
|
function w$1(n) {
|
|
@@ -97,7 +97,7 @@ function w$1(n) {
|
|
|
97
97
|
function z(n) {
|
|
98
98
|
var t = r$1,
|
|
99
99
|
u = n.__c;
|
|
100
|
-
"function" == typeof u && (n.__c =
|
|
100
|
+
"function" == typeof u && (n.__c = void 0, u()), r$1 = t;
|
|
101
101
|
}
|
|
102
102
|
function B(n) {
|
|
103
103
|
var t = r$1;
|
|
@@ -117,13 +117,13 @@ function t() {
|
|
|
117
117
|
}
|
|
118
118
|
let i,
|
|
119
119
|
t = false;
|
|
120
|
-
while (
|
|
120
|
+
while (void 0 !== s) {
|
|
121
121
|
let o = s;
|
|
122
|
-
s =
|
|
122
|
+
s = void 0;
|
|
123
123
|
f++;
|
|
124
|
-
while (
|
|
124
|
+
while (void 0 !== o) {
|
|
125
125
|
const n = o.o;
|
|
126
|
-
o.o =
|
|
126
|
+
o.o = void 0;
|
|
127
127
|
o.f &= -3;
|
|
128
128
|
if (!(8 & o.f) && v$1(o)) try {
|
|
129
129
|
o.c();
|
|
@@ -154,31 +154,31 @@ let r = 0,
|
|
|
154
154
|
f = 0,
|
|
155
155
|
e = 0;
|
|
156
156
|
function c(i) {
|
|
157
|
-
if (
|
|
157
|
+
if (void 0 === n) return;
|
|
158
158
|
let t = i.n;
|
|
159
|
-
if (
|
|
159
|
+
if (void 0 === t || t.t !== n) {
|
|
160
160
|
t = {
|
|
161
161
|
i: 0,
|
|
162
162
|
S: i,
|
|
163
163
|
p: n.s,
|
|
164
|
-
n:
|
|
164
|
+
n: void 0,
|
|
165
165
|
t: n,
|
|
166
|
-
e:
|
|
167
|
-
x:
|
|
166
|
+
e: void 0,
|
|
167
|
+
x: void 0,
|
|
168
168
|
r: t
|
|
169
169
|
};
|
|
170
|
-
if (
|
|
170
|
+
if (void 0 !== n.s) n.s.n = t;
|
|
171
171
|
n.s = t;
|
|
172
172
|
i.n = t;
|
|
173
173
|
if (32 & n.f) i.S(t);
|
|
174
174
|
return t;
|
|
175
175
|
} else if (-1 === t.i) {
|
|
176
176
|
t.i = 0;
|
|
177
|
-
if (
|
|
177
|
+
if (void 0 !== t.n) {
|
|
178
178
|
t.n.p = t.p;
|
|
179
|
-
if (
|
|
179
|
+
if (void 0 !== t.p) t.p.n = t.n;
|
|
180
180
|
t.p = n.s;
|
|
181
|
-
t.n =
|
|
181
|
+
t.n = void 0;
|
|
182
182
|
n.s.n = t;
|
|
183
183
|
n.s = t;
|
|
184
184
|
}
|
|
@@ -188,31 +188,31 @@ function c(i) {
|
|
|
188
188
|
function u(i) {
|
|
189
189
|
this.v = i;
|
|
190
190
|
this.i = 0;
|
|
191
|
-
this.n =
|
|
192
|
-
this.t =
|
|
191
|
+
this.n = void 0;
|
|
192
|
+
this.t = void 0;
|
|
193
193
|
}
|
|
194
194
|
u.prototype.brand = i;
|
|
195
195
|
u.prototype.h = function () {
|
|
196
196
|
return true;
|
|
197
197
|
};
|
|
198
198
|
u.prototype.S = function (i) {
|
|
199
|
-
if (this.t !== i &&
|
|
199
|
+
if (this.t !== i && void 0 === i.e) {
|
|
200
200
|
i.x = this.t;
|
|
201
|
-
if (
|
|
201
|
+
if (void 0 !== this.t) this.t.e = i;
|
|
202
202
|
this.t = i;
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
u.prototype.U = function (i) {
|
|
206
|
-
if (
|
|
206
|
+
if (void 0 !== this.t) {
|
|
207
207
|
const t = i.e,
|
|
208
208
|
o = i.x;
|
|
209
|
-
if (
|
|
209
|
+
if (void 0 !== t) {
|
|
210
210
|
t.x = o;
|
|
211
|
-
i.e =
|
|
211
|
+
i.e = void 0;
|
|
212
212
|
}
|
|
213
|
-
if (
|
|
213
|
+
if (void 0 !== o) {
|
|
214
214
|
o.e = t;
|
|
215
|
-
i.x =
|
|
215
|
+
i.x = void 0;
|
|
216
216
|
}
|
|
217
217
|
if (i === this.t) this.t = o;
|
|
218
218
|
}
|
|
@@ -221,7 +221,7 @@ u.prototype.subscribe = function (i) {
|
|
|
221
221
|
return E(() => {
|
|
222
222
|
const t = this.value,
|
|
223
223
|
o = n;
|
|
224
|
-
n =
|
|
224
|
+
n = void 0;
|
|
225
225
|
try {
|
|
226
226
|
i(t);
|
|
227
227
|
} finally {
|
|
@@ -240,7 +240,7 @@ u.prototype.toJSON = function () {
|
|
|
240
240
|
};
|
|
241
241
|
u.prototype.peek = function () {
|
|
242
242
|
const i = n;
|
|
243
|
-
n =
|
|
243
|
+
n = void 0;
|
|
244
244
|
try {
|
|
245
245
|
return this.value;
|
|
246
246
|
} finally {
|
|
@@ -250,7 +250,7 @@ u.prototype.peek = function () {
|
|
|
250
250
|
Object.defineProperty(u.prototype, "value", {
|
|
251
251
|
get() {
|
|
252
252
|
const i = c(this);
|
|
253
|
-
if (
|
|
253
|
+
if (void 0 !== i) i.i = this.i;
|
|
254
254
|
return this.v;
|
|
255
255
|
},
|
|
256
256
|
set(i) {
|
|
@@ -272,16 +272,16 @@ function d$1(i) {
|
|
|
272
272
|
return new u(i);
|
|
273
273
|
}
|
|
274
274
|
function v$1(i) {
|
|
275
|
-
for (let t = i.s;
|
|
275
|
+
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;
|
|
276
276
|
return false;
|
|
277
277
|
}
|
|
278
278
|
function l(i) {
|
|
279
|
-
for (let t = i.s;
|
|
279
|
+
for (let t = i.s; void 0 !== t; t = t.n) {
|
|
280
280
|
const o = t.S.n;
|
|
281
|
-
if (
|
|
281
|
+
if (void 0 !== o) t.r = o;
|
|
282
282
|
t.S.n = t;
|
|
283
283
|
t.i = -1;
|
|
284
|
-
if (
|
|
284
|
+
if (void 0 === t.n) {
|
|
285
285
|
i.s = t;
|
|
286
286
|
break;
|
|
287
287
|
}
|
|
@@ -290,23 +290,23 @@ function l(i) {
|
|
|
290
290
|
function y(i) {
|
|
291
291
|
let t,
|
|
292
292
|
o = i.s;
|
|
293
|
-
while (
|
|
293
|
+
while (void 0 !== o) {
|
|
294
294
|
const i = o.p;
|
|
295
295
|
if (-1 === o.i) {
|
|
296
296
|
o.S.U(o);
|
|
297
|
-
if (
|
|
298
|
-
if (
|
|
297
|
+
if (void 0 !== i) i.n = o.n;
|
|
298
|
+
if (void 0 !== o.n) o.n.p = i;
|
|
299
299
|
} else t = o;
|
|
300
300
|
o.S.n = o.r;
|
|
301
|
-
if (
|
|
301
|
+
if (void 0 !== o.r) o.r = void 0;
|
|
302
302
|
o = i;
|
|
303
303
|
}
|
|
304
304
|
i.s = t;
|
|
305
305
|
}
|
|
306
306
|
function a$1(i) {
|
|
307
|
-
u.call(this,
|
|
307
|
+
u.call(this, void 0);
|
|
308
308
|
this.x = i;
|
|
309
|
-
this.s =
|
|
309
|
+
this.s = void 0;
|
|
310
310
|
this.g = e - 1;
|
|
311
311
|
this.f = 4;
|
|
312
312
|
}
|
|
@@ -343,25 +343,25 @@ function a$1(i) {
|
|
|
343
343
|
return true;
|
|
344
344
|
};
|
|
345
345
|
a$1.prototype.S = function (i) {
|
|
346
|
-
if (
|
|
346
|
+
if (void 0 === this.t) {
|
|
347
347
|
this.f |= 36;
|
|
348
|
-
for (let i = this.s;
|
|
348
|
+
for (let i = this.s; void 0 !== i; i = i.n) i.S.S(i);
|
|
349
349
|
}
|
|
350
350
|
u.prototype.S.call(this, i);
|
|
351
351
|
};
|
|
352
352
|
a$1.prototype.U = function (i) {
|
|
353
|
-
if (
|
|
353
|
+
if (void 0 !== this.t) {
|
|
354
354
|
u.prototype.U.call(this, i);
|
|
355
|
-
if (
|
|
355
|
+
if (void 0 === this.t) {
|
|
356
356
|
this.f &= -33;
|
|
357
|
-
for (let i = this.s;
|
|
357
|
+
for (let i = this.s; void 0 !== i; i = i.n) i.S.U(i);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
a$1.prototype.N = function () {
|
|
362
362
|
if (!(2 & this.f)) {
|
|
363
363
|
this.f |= 6;
|
|
364
|
-
for (let i = this.t;
|
|
364
|
+
for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
367
|
Object.defineProperty(a$1.prototype, "value", {
|
|
@@ -369,7 +369,7 @@ Object.defineProperty(a$1.prototype, "value", {
|
|
|
369
369
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
370
370
|
const i = c(this);
|
|
371
371
|
this.h();
|
|
372
|
-
if (
|
|
372
|
+
if (void 0 !== i) i.i = this.i;
|
|
373
373
|
if (16 & this.f) throw this.v;
|
|
374
374
|
return this.v;
|
|
375
375
|
}
|
|
@@ -379,11 +379,11 @@ function w(i) {
|
|
|
379
379
|
}
|
|
380
380
|
function _$1(i) {
|
|
381
381
|
const o = i.u;
|
|
382
|
-
i.u =
|
|
382
|
+
i.u = void 0;
|
|
383
383
|
if ("function" == typeof o) {
|
|
384
384
|
r++;
|
|
385
385
|
const s = n;
|
|
386
|
-
n =
|
|
386
|
+
n = void 0;
|
|
387
387
|
try {
|
|
388
388
|
o();
|
|
389
389
|
} catch (t) {
|
|
@@ -398,9 +398,9 @@ function _$1(i) {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function g$1(i) {
|
|
401
|
-
for (let t = i.s;
|
|
402
|
-
i.x =
|
|
403
|
-
i.s =
|
|
401
|
+
for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
|
|
402
|
+
i.x = void 0;
|
|
403
|
+
i.s = void 0;
|
|
404
404
|
_$1(i);
|
|
405
405
|
}
|
|
406
406
|
function p(i) {
|
|
@@ -413,9 +413,9 @@ function p(i) {
|
|
|
413
413
|
}
|
|
414
414
|
function b$1(i) {
|
|
415
415
|
this.x = i;
|
|
416
|
-
this.u =
|
|
417
|
-
this.s =
|
|
418
|
-
this.o =
|
|
416
|
+
this.u = void 0;
|
|
417
|
+
this.s = void 0;
|
|
418
|
+
this.o = void 0;
|
|
419
419
|
this.f = 32;
|
|
420
420
|
}
|
|
421
421
|
b$1.prototype.c = function () {
|
|
@@ -512,7 +512,7 @@ g.displayName = "_st";
|
|
|
512
512
|
Object.defineProperties(u.prototype, {
|
|
513
513
|
constructor: {
|
|
514
514
|
configurable: true,
|
|
515
|
-
value:
|
|
515
|
+
value: void 0
|
|
516
516
|
},
|
|
517
517
|
type: {
|
|
518
518
|
configurable: true,
|
|
@@ -554,7 +554,7 @@ m("__r", (t, i) => {
|
|
|
554
554
|
if (n) {
|
|
555
555
|
n.__$f &= -2;
|
|
556
556
|
e = n.__$u;
|
|
557
|
-
if (
|
|
557
|
+
if (void 0 === e) n.__$u = e = function (t) {
|
|
558
558
|
let i;
|
|
559
559
|
E(function () {
|
|
560
560
|
i = this;
|
|
@@ -583,9 +583,9 @@ m("diffed", (t, i) => {
|
|
|
583
583
|
let i = e.U;
|
|
584
584
|
if (i) for (let e in i) {
|
|
585
585
|
let n = i[e];
|
|
586
|
-
if (
|
|
586
|
+
if (void 0 !== n && !(e in t)) {
|
|
587
587
|
n.d();
|
|
588
|
-
i[e] =
|
|
588
|
+
i[e] = void 0;
|
|
589
589
|
}
|
|
590
590
|
} else {
|
|
591
591
|
i = {};
|
|
@@ -594,7 +594,7 @@ m("diffed", (t, i) => {
|
|
|
594
594
|
for (let o in t) {
|
|
595
595
|
let f = i[o],
|
|
596
596
|
r = t[o];
|
|
597
|
-
if (
|
|
597
|
+
if (void 0 === f) {
|
|
598
598
|
f = b(e, o, r, n);
|
|
599
599
|
i[o] = f;
|
|
600
600
|
} else f.o(r, n);
|
|
@@ -604,7 +604,7 @@ m("diffed", (t, i) => {
|
|
|
604
604
|
t(i);
|
|
605
605
|
});
|
|
606
606
|
function b(t, i, e, n) {
|
|
607
|
-
const o = i in t &&
|
|
607
|
+
const o = i in t && void 0 === t.ownerSVGElement,
|
|
608
608
|
f = d$1(e);
|
|
609
609
|
return {
|
|
610
610
|
o: (t, i) => {
|
|
@@ -627,7 +627,7 @@ m("unmount", (t, i) => {
|
|
|
627
627
|
if (t) {
|
|
628
628
|
const i = t.U;
|
|
629
629
|
if (i) {
|
|
630
|
-
t.U =
|
|
630
|
+
t.U = void 0;
|
|
631
631
|
for (let t in i) {
|
|
632
632
|
let e = i[t];
|
|
633
633
|
if (e) e.d();
|
|
@@ -639,7 +639,7 @@ m("unmount", (t, i) => {
|
|
|
639
639
|
if (t) {
|
|
640
640
|
const i = t.__$u;
|
|
641
641
|
if (i) {
|
|
642
|
-
t.__$u =
|
|
642
|
+
t.__$u = void 0;
|
|
643
643
|
i.d();
|
|
644
644
|
}
|
|
645
645
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-toolbar",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"/src/"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsenv/ast": "6.6.
|
|
29
|
+
"@jsenv/ast": "6.6.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@preact/signals": "2.0.1"
|
|
@@ -8,15 +8,10 @@ export const jsenvPluginToolbar = ({
|
|
|
8
8
|
animationsEnabled = true,
|
|
9
9
|
notificationsEnabled = true,
|
|
10
10
|
} = {}) => {
|
|
11
|
-
const toolbarInjectorClientFileUrl =
|
|
11
|
+
const toolbarInjectorClientFileUrl = import.meta.resolve(
|
|
12
12
|
"./client/toolbar_injector.js",
|
|
13
|
-
|
|
14
|
-
)
|
|
15
|
-
const toolbarHtmlClientFileUrl = new URL(
|
|
16
|
-
"./client/toolbar.html",
|
|
17
|
-
import.meta.url,
|
|
18
|
-
).href;
|
|
19
|
-
|
|
13
|
+
);
|
|
14
|
+
const toolbarHtmlClientFileUrl = import.meta.resolve("./client/toolbar.html");
|
|
20
15
|
return {
|
|
21
16
|
name: "jsenv:toolbar",
|
|
22
17
|
appliesDuring: "dev",
|