@vscode/component-explorer 0.1.1-12 → 0.1.1-14
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/core/CliRuntime.d.ts.map +1 -1
- package/dist/viewer.js +494 -481
- package/dist/viewer.js.map +1 -1
- package/package.json +1 -1
package/dist/viewer.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
var mt = Object.defineProperty;
|
|
2
2
|
var vt = (r, e, t) => e in r ? mt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var l = (r, e, t) => vt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { f as
|
|
5
|
-
import { b as
|
|
4
|
+
import { f as we, a as Re, s as Te } from "./index-DnRcKk60.js";
|
|
5
|
+
import { b as Dn, d as Fn, c as En, e as Bn, g as An } from "./index-DnRcKk60.js";
|
|
6
6
|
import { createRoot as _t } from "react-dom/client";
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { jsx as a, jsxs as
|
|
9
|
-
import { unstable_batchedUpdates as
|
|
10
|
-
function ge(r) {
|
|
11
|
-
return typeof r == "object" && r !== null && Re in r && r[Re] === !0 && "_options" in r && typeof r._options == "object";
|
|
12
|
-
}
|
|
7
|
+
import { createContext as Pe, useReducer as bt, useState as yt, useContext as xt, useEffect as Ie, createElement as Ct } from "react";
|
|
8
|
+
import { jsx as a, jsxs as p, Fragment as ge } from "react/jsx-runtime";
|
|
9
|
+
import { unstable_batchedUpdates as We } from "react-dom";
|
|
13
10
|
function me(r) {
|
|
14
|
-
return typeof r == "object" && r !== null &&
|
|
11
|
+
return typeof r == "object" && r !== null && Te in r && r[Te] === !0 && "_options" in r && typeof r._options == "object";
|
|
15
12
|
}
|
|
16
13
|
function ve(r) {
|
|
17
|
-
return typeof r == "object" && r !== null && we in r && r[we] === !0 && "
|
|
14
|
+
return typeof r == "object" && r !== null && we in r && r[we] === !0 && "_entries" in r && typeof r._entries == "object";
|
|
15
|
+
}
|
|
16
|
+
function _e(r) {
|
|
17
|
+
return typeof r == "object" && r !== null && Re in r && r[Re] === !0 && "_variants" in r && typeof r._variants == "object";
|
|
18
18
|
}
|
|
19
19
|
function wn(r) {
|
|
20
|
-
return
|
|
20
|
+
return me(r) ? { success: !0, data: r } : ve(r) ? { success: !0, data: r } : _e(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a valid fixture export (missing brand symbol or _options/_entries/_variants)" };
|
|
21
21
|
}
|
|
22
22
|
function Rn(r) {
|
|
23
|
-
return
|
|
23
|
+
return me(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a SingleFixtureExport" };
|
|
24
24
|
}
|
|
25
25
|
function Tn(r) {
|
|
26
|
-
return
|
|
26
|
+
return ve(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a FixtureGroupExport" };
|
|
27
27
|
}
|
|
28
28
|
function In(r) {
|
|
29
|
-
return
|
|
29
|
+
return _e(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a FixtureVariantsExport" };
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Oe(r, e, t) {
|
|
32
32
|
const n = r._options;
|
|
33
33
|
return {
|
|
34
34
|
id: e,
|
|
@@ -59,7 +59,7 @@ function Rt(r) {
|
|
|
59
59
|
e[t.name] = t.defaultValue;
|
|
60
60
|
return e;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ie(r) {
|
|
63
63
|
const e = {
|
|
64
64
|
id: "",
|
|
65
65
|
name: "Components",
|
|
@@ -68,24 +68,24 @@ function oe(r) {
|
|
|
68
68
|
};
|
|
69
69
|
for (const [t, n] of r) {
|
|
70
70
|
const s = Tt(t);
|
|
71
|
-
|
|
71
|
+
Ge(e, [s], n);
|
|
72
72
|
}
|
|
73
73
|
return e;
|
|
74
74
|
}
|
|
75
75
|
function Tt(r) {
|
|
76
76
|
return (r.split("/").pop() ?? r).replace(/\.fixture\.(tsx?|jsx?)$/, "");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ge(r, e, t) {
|
|
79
79
|
var n;
|
|
80
|
-
if (
|
|
80
|
+
if (me(t)) {
|
|
81
81
|
const s = e.join("/"), o = e[e.length - 1], i = {
|
|
82
82
|
id: s,
|
|
83
83
|
name: o,
|
|
84
84
|
type: "component",
|
|
85
|
-
component:
|
|
85
|
+
component: Oe(t, s, o)
|
|
86
86
|
};
|
|
87
87
|
r.children || (r.children = []), r.children.push(i);
|
|
88
|
-
} else if (
|
|
88
|
+
} else if (ve(t)) {
|
|
89
89
|
const s = e[e.length - 1], o = e.join("/");
|
|
90
90
|
let i = (n = r.children) == null ? void 0 : n.find(
|
|
91
91
|
(d) => d.type === "folder" && d.name === s
|
|
@@ -97,8 +97,8 @@ function We(r, e, t) {
|
|
|
97
97
|
children: []
|
|
98
98
|
}, r.children || (r.children = []), r.children.push(i));
|
|
99
99
|
for (const [d, c] of Object.entries(t._entries))
|
|
100
|
-
|
|
101
|
-
} else if (
|
|
100
|
+
Ge(i, [...e, d], c);
|
|
101
|
+
} else if (_e(t)) {
|
|
102
102
|
const s = e[e.length - 1], i = {
|
|
103
103
|
id: e.join("/"),
|
|
104
104
|
name: s,
|
|
@@ -107,17 +107,17 @@ function We(r, e, t) {
|
|
|
107
107
|
};
|
|
108
108
|
r.children || (r.children = []), r.children.push(i);
|
|
109
109
|
for (const [d, c] of Object.entries(t._variants)) {
|
|
110
|
-
const
|
|
111
|
-
id:
|
|
110
|
+
const m = [...e, d].join("/"), v = {
|
|
111
|
+
id: m,
|
|
112
112
|
name: d,
|
|
113
113
|
type: "component",
|
|
114
|
-
component:
|
|
114
|
+
component: Oe(c, m, d)
|
|
115
115
|
};
|
|
116
|
-
i.children.push(
|
|
116
|
+
i.children.push(v);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ke(r, e) {
|
|
121
121
|
if (e.length === 0)
|
|
122
122
|
return r;
|
|
123
123
|
let t = r;
|
|
@@ -138,19 +138,19 @@ function It(r) {
|
|
|
138
138
|
}
|
|
139
139
|
let $;
|
|
140
140
|
function Ot(r) {
|
|
141
|
-
$ ? $ instanceof
|
|
141
|
+
$ ? $ instanceof Ve ? $.loggers.push(r) : $ = new Ve([$, r]) : $ = r;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function C() {
|
|
144
144
|
return $;
|
|
145
145
|
}
|
|
146
|
-
let
|
|
146
|
+
let ae;
|
|
147
147
|
function kt(r) {
|
|
148
|
-
|
|
148
|
+
ae = r;
|
|
149
149
|
}
|
|
150
150
|
function Vt(r) {
|
|
151
|
-
|
|
151
|
+
ae && ae(r);
|
|
152
152
|
}
|
|
153
|
-
class
|
|
153
|
+
class Ve {
|
|
154
154
|
constructor(e) {
|
|
155
155
|
this.loggers = e;
|
|
156
156
|
}
|
|
@@ -203,7 +203,7 @@ class ke {
|
|
|
203
203
|
t.handleEndTransaction(e);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var F;
|
|
207
207
|
(function(r) {
|
|
208
208
|
let e = !1;
|
|
209
209
|
function t() {
|
|
@@ -220,16 +220,16 @@ var D;
|
|
|
220
220
|
const i = Error, d = i.stackTraceLimit;
|
|
221
221
|
i.stackTraceLimit = 3;
|
|
222
222
|
const c = new Error().stack;
|
|
223
|
-
return i.stackTraceLimit = d,
|
|
223
|
+
return i.stackTraceLimit = d, be.fromStack(c, o + 1);
|
|
224
224
|
}
|
|
225
225
|
r.ofNthCaller = s;
|
|
226
|
-
})(
|
|
227
|
-
class
|
|
226
|
+
})(F || (F = {}));
|
|
227
|
+
class be {
|
|
228
228
|
static fromStack(e, t) {
|
|
229
229
|
const n = e.split(`
|
|
230
230
|
`), s = Nt(n[t + 1]);
|
|
231
231
|
if (s)
|
|
232
|
-
return new
|
|
232
|
+
return new be(s.fileName, s.line, s.column, s.id);
|
|
233
233
|
}
|
|
234
234
|
constructor(e, t, n, s) {
|
|
235
235
|
this.fileName = e, this.line = t, this.column = n, this.id = s;
|
|
@@ -255,29 +255,29 @@ function Nt(r) {
|
|
|
255
255
|
id: r
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
-
class
|
|
258
|
+
class E {
|
|
259
259
|
constructor(e, t, n) {
|
|
260
260
|
this.owner = e, this.debugNameSource = t, this.referenceFn = n;
|
|
261
261
|
}
|
|
262
262
|
getDebugName(e) {
|
|
263
|
-
return
|
|
263
|
+
return Mt(e, this);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
function
|
|
268
|
-
const t =
|
|
266
|
+
const Ne = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new WeakMap();
|
|
267
|
+
function Mt(r, e) {
|
|
268
|
+
const t = de.get(r);
|
|
269
269
|
if (t)
|
|
270
270
|
return t;
|
|
271
|
-
const n =
|
|
271
|
+
const n = Dt(r, e);
|
|
272
272
|
if (n) {
|
|
273
|
-
let s =
|
|
274
|
-
s++,
|
|
273
|
+
let s = Ne.get(n) ?? 0;
|
|
274
|
+
s++, Ne.set(n, s);
|
|
275
275
|
const o = s === 1 ? n : `${n}#${s}`;
|
|
276
|
-
return
|
|
276
|
+
return de.set(r, o), o;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
const t =
|
|
279
|
+
function Dt(r, e) {
|
|
280
|
+
const t = de.get(r);
|
|
281
281
|
if (t)
|
|
282
282
|
return t;
|
|
283
283
|
const n = e.owner ? Et(e.owner) + "." : "";
|
|
@@ -290,7 +290,7 @@ function Mt(r, e) {
|
|
|
290
290
|
} else
|
|
291
291
|
return n + o;
|
|
292
292
|
const i = e.referenceFn;
|
|
293
|
-
if (i !== void 0 && (s =
|
|
293
|
+
if (i !== void 0 && (s = ye(i), s !== void 0))
|
|
294
294
|
return n + s;
|
|
295
295
|
if (e.owner !== void 0) {
|
|
296
296
|
const d = Ft(e.owner, r);
|
|
@@ -303,42 +303,42 @@ function Ft(r, e) {
|
|
|
303
303
|
if (r[t] === e)
|
|
304
304
|
return t;
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const Me = /* @__PURE__ */ new Map(), De = /* @__PURE__ */ new WeakMap();
|
|
307
307
|
function Et(r) {
|
|
308
308
|
const e = De.get(r);
|
|
309
309
|
if (e)
|
|
310
310
|
return e;
|
|
311
|
-
const t =
|
|
312
|
-
let n =
|
|
313
|
-
n++,
|
|
311
|
+
const t = qe(r) ?? "Object";
|
|
312
|
+
let n = Me.get(t) ?? 0;
|
|
313
|
+
n++, Me.set(t, n);
|
|
314
314
|
const s = n === 1 ? t : `${t}#${n}`;
|
|
315
315
|
return De.set(r, s), s;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function qe(r) {
|
|
318
318
|
const e = r.constructor;
|
|
319
319
|
if (e)
|
|
320
320
|
return e.name === "Object" ? void 0 : e.name;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function ye(r) {
|
|
323
323
|
const e = r.toString(), n = /\/\*\*\s*@description\s*([^*]*)\*\//.exec(e), s = n ? n[1] : void 0;
|
|
324
324
|
return s == null ? void 0 : s.trim();
|
|
325
325
|
}
|
|
326
|
-
let
|
|
326
|
+
let ce;
|
|
327
327
|
function Bt(r) {
|
|
328
|
-
|
|
329
|
-
}
|
|
330
|
-
let qe;
|
|
331
|
-
function At(r) {
|
|
332
|
-
qe = r;
|
|
328
|
+
ce = r;
|
|
333
329
|
}
|
|
334
330
|
let Ke;
|
|
335
|
-
function
|
|
331
|
+
function At(r) {
|
|
336
332
|
Ke = r;
|
|
337
333
|
}
|
|
338
334
|
let Je;
|
|
339
|
-
function
|
|
335
|
+
function zt(r) {
|
|
340
336
|
Je = r;
|
|
341
337
|
}
|
|
338
|
+
let Ze;
|
|
339
|
+
function $t(r) {
|
|
340
|
+
Ze = r;
|
|
341
|
+
}
|
|
342
342
|
class Lt {
|
|
343
343
|
get TChange() {
|
|
344
344
|
return null;
|
|
@@ -350,12 +350,12 @@ class Lt {
|
|
|
350
350
|
read(e) {
|
|
351
351
|
return e ? e.readObservable(this) : this.get();
|
|
352
352
|
}
|
|
353
|
-
map(e, t, n =
|
|
353
|
+
map(e, t, n = F.ofCaller()) {
|
|
354
354
|
const s = t === void 0 ? void 0 : e, o = t === void 0 ? e : t;
|
|
355
|
-
return
|
|
355
|
+
return ce({
|
|
356
356
|
owner: s,
|
|
357
357
|
debugName: () => {
|
|
358
|
-
const i =
|
|
358
|
+
const i = ye(o);
|
|
359
359
|
if (i !== void 0)
|
|
360
360
|
return i;
|
|
361
361
|
const c = /^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(o.toString());
|
|
@@ -372,13 +372,13 @@ class Lt {
|
|
|
372
372
|
* Converts an observable of an observable value into a direct observable of the value.
|
|
373
373
|
*/
|
|
374
374
|
flatten() {
|
|
375
|
-
return
|
|
375
|
+
return ce({
|
|
376
376
|
owner: void 0,
|
|
377
377
|
debugName: () => `${this.debugName} (flattened)`
|
|
378
378
|
}, (e) => this.read(e).read(e));
|
|
379
379
|
}
|
|
380
380
|
recomputeInitiallyAndOnChange(e, t) {
|
|
381
|
-
return e.add(
|
|
381
|
+
return e.add(Ke(this, t)), this;
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
384
|
* Ensures that this observable is observed. This keeps the cache alive.
|
|
@@ -386,29 +386,29 @@ class Lt {
|
|
|
386
386
|
* Use `recomputeInitiallyAndOnChange` for eager evaluation.
|
|
387
387
|
*/
|
|
388
388
|
keepObserved(e) {
|
|
389
|
-
return e.add(
|
|
389
|
+
return e.add(Je(this)), this;
|
|
390
390
|
}
|
|
391
391
|
get debugValue() {
|
|
392
392
|
return this.get();
|
|
393
393
|
}
|
|
394
394
|
debugGetDependencyGraph() {
|
|
395
|
-
return
|
|
395
|
+
return Ze(this);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
class
|
|
398
|
+
class xe extends Lt {
|
|
399
399
|
constructor(e) {
|
|
400
400
|
var t;
|
|
401
|
-
super(), this._observers = /* @__PURE__ */ new Set(), (t =
|
|
401
|
+
super(), this._observers = /* @__PURE__ */ new Set(), (t = C()) == null || t.handleObservableCreated(this, e);
|
|
402
402
|
}
|
|
403
403
|
addObserver(e) {
|
|
404
404
|
var n;
|
|
405
405
|
const t = this._observers.size;
|
|
406
|
-
this._observers.add(e), t === 0 && this.onFirstObserverAdded(), t !== this._observers.size && ((n =
|
|
406
|
+
this._observers.add(e), t === 0 && this.onFirstObserverAdded(), t !== this._observers.size && ((n = C()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
|
|
407
407
|
}
|
|
408
408
|
removeObserver(e) {
|
|
409
409
|
var n;
|
|
410
410
|
const t = this._observers.delete(e);
|
|
411
|
-
t && this._observers.size === 0 && this.onLastObserverRemoved(), t && ((n =
|
|
411
|
+
t && this._observers.size === 0 && this.onLastObserverRemoved(), t && ((n = C()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
|
|
412
412
|
}
|
|
413
413
|
onFirstObserverAdded() {
|
|
414
414
|
}
|
|
@@ -416,14 +416,14 @@ class ye extends Lt {
|
|
|
416
416
|
}
|
|
417
417
|
log() {
|
|
418
418
|
var t;
|
|
419
|
-
const e = !!
|
|
420
|
-
return Vt(this), e || (t =
|
|
419
|
+
const e = !!C();
|
|
420
|
+
return Vt(this), e || (t = C()) == null || t.handleObservableCreated(this, F.ofCaller()), this;
|
|
421
421
|
}
|
|
422
422
|
debugGetObservers() {
|
|
423
423
|
return this._observers;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function Xe(r) {
|
|
427
427
|
return {
|
|
428
428
|
dispose: r
|
|
429
429
|
};
|
|
@@ -433,7 +433,7 @@ class H extends Error {
|
|
|
433
433
|
super(e || "An unexpected bug occurred."), Object.setPrototypeOf(this, H.prototype);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function re(r) {
|
|
437
437
|
throw r;
|
|
438
438
|
}
|
|
439
439
|
function Ht(r) {
|
|
@@ -482,7 +482,7 @@ function jt(r) {
|
|
|
482
482
|
return "<unknown>";
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
class j extends
|
|
485
|
+
class j extends xe {
|
|
486
486
|
get debugName() {
|
|
487
487
|
return this._debugNameData.getDebugName(this) ?? "(anonymous)";
|
|
488
488
|
}
|
|
@@ -492,7 +492,7 @@ class j extends ye {
|
|
|
492
492
|
}
|
|
493
493
|
onLastObserverRemoved() {
|
|
494
494
|
var e, t;
|
|
495
|
-
this._state = 0, this._value = void 0, (e =
|
|
495
|
+
this._state = 0, this._value = void 0, (e = C()) == null || e.handleDerivedCleared(this);
|
|
496
496
|
for (const n of this._dependencies)
|
|
497
497
|
n.removeObserver(this);
|
|
498
498
|
this._dependencies.clear(), this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._delayedStore !== void 0 && (this._delayedStore.dispose(), this._delayedStore = void 0), (t = this._handleLastObserverRemoved) == null || t.call(this);
|
|
@@ -532,17 +532,17 @@ class j extends ye {
|
|
|
532
532
|
this._isReaderValid = !0, this._changeTracker && (this._isInBeforeUpdate = !0, (s = (n = this._changeTracker).beforeUpdate) == null || s.call(n, this, d), this._isInBeforeUpdate = !1, this._changeSummary = (o = this._changeTracker) == null ? void 0 : o.createChangeSummary(d));
|
|
533
533
|
const c = this._state !== 0, h = this._value;
|
|
534
534
|
this._state = 3;
|
|
535
|
-
const
|
|
536
|
-
|
|
535
|
+
const m = this._delayedStore;
|
|
536
|
+
m !== void 0 && (this._delayedStore = void 0);
|
|
537
537
|
try {
|
|
538
538
|
this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._value = this._computeFn(this, d);
|
|
539
539
|
} finally {
|
|
540
540
|
this._isReaderValid = !1;
|
|
541
|
-
for (const
|
|
542
|
-
|
|
543
|
-
this._dependenciesToBeRemoved.clear(),
|
|
541
|
+
for (const v of this._dependenciesToBeRemoved)
|
|
542
|
+
v.removeObserver(this);
|
|
543
|
+
this._dependenciesToBeRemoved.clear(), m !== void 0 && m.dispose();
|
|
544
544
|
}
|
|
545
|
-
e = this._didReportChange || c && !this._equalityComparator(h, this._value), (i =
|
|
545
|
+
e = this._didReportChange || c && !this._equalityComparator(h, this._value), (i = C()) == null || i.handleObservableUpdated(this, {
|
|
546
546
|
oldValue: h,
|
|
547
547
|
newValue: this._value,
|
|
548
548
|
change: void 0,
|
|
@@ -550,7 +550,7 @@ class j extends ye {
|
|
|
550
550
|
hadValue: c
|
|
551
551
|
});
|
|
552
552
|
} catch (d) {
|
|
553
|
-
|
|
553
|
+
re(d);
|
|
554
554
|
}
|
|
555
555
|
if (this._isComputing = !1, !this._didReportChange && e)
|
|
556
556
|
for (const d of this._observers)
|
|
@@ -601,7 +601,7 @@ class j extends ye {
|
|
|
601
601
|
handleChange(e, t) {
|
|
602
602
|
var n;
|
|
603
603
|
if (this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e) || this._isInBeforeUpdate) {
|
|
604
|
-
(n =
|
|
604
|
+
(n = C()) == null || n.handleDerivedDependencyChanged(this, e, t);
|
|
605
605
|
let s = !1;
|
|
606
606
|
try {
|
|
607
607
|
s = this._changeTracker ? this._changeTracker.handleChange({
|
|
@@ -610,7 +610,7 @@ class j extends ye {
|
|
|
610
610
|
didChange: (i) => i === e
|
|
611
611
|
}, this._changeSummary) : !0;
|
|
612
612
|
} catch (i) {
|
|
613
|
-
|
|
613
|
+
re(i);
|
|
614
614
|
}
|
|
615
615
|
const o = this._state === 3;
|
|
616
616
|
if (s && (this._state === 1 || o) && (this._state = 2, o))
|
|
@@ -670,18 +670,18 @@ class j extends ye {
|
|
|
670
670
|
o.handleChange(this, n);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
return e !== void 0 ? new j(new
|
|
673
|
+
function D(r, e, t = F.ofCaller()) {
|
|
674
|
+
return e !== void 0 ? new j(new E(r, void 0, e), e, void 0, void 0, X, t) : new j(new E(void 0, void 0, r), r, void 0, void 0, X, t);
|
|
675
675
|
}
|
|
676
|
-
function Ut(r, e, t =
|
|
677
|
-
return new j(new
|
|
676
|
+
function Ut(r, e, t = F.ofCaller()) {
|
|
677
|
+
return new j(new E(r.owner, r.debugName, r.debugReferenceFn), e, void 0, r.onLastObserverRemoved, r.equalsFn ?? X, t);
|
|
678
678
|
}
|
|
679
679
|
Bt(Ut);
|
|
680
|
-
function Pt(r, e, t =
|
|
680
|
+
function Pt(r, e, t = F.ofCaller()) {
|
|
681
681
|
let n, s;
|
|
682
682
|
n = r, s = void 0;
|
|
683
683
|
let o;
|
|
684
|
-
return new j(new
|
|
684
|
+
return new j(new E(s, void 0, n), (i) => {
|
|
685
685
|
o ? o.clear() : o = new Y();
|
|
686
686
|
const d = n(i);
|
|
687
687
|
return d && o.add(d), d;
|
|
@@ -701,13 +701,13 @@ function Wt(r) {
|
|
|
701
701
|
return "<unknown>";
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
class
|
|
704
|
+
class Ye {
|
|
705
705
|
get debugName() {
|
|
706
706
|
return this._debugNameData.getDebugName(this) ?? "(anonymous)";
|
|
707
707
|
}
|
|
708
708
|
constructor(e, t, n, s) {
|
|
709
709
|
var o, i;
|
|
710
|
-
this._debugNameData = e, this._runFn = t, this._changeTracker = n, this._state = 2, this._updateCount = 0, this._disposed = !1, this._dependencies = /* @__PURE__ */ new Set(), this._dependenciesToBeRemoved = /* @__PURE__ */ new Set(), this._isRunning = !1, this._store = void 0, this._delayedStore = void 0, this._changeSummary = (o = this._changeTracker) == null ? void 0 : o.createChangeSummary(void 0), (i =
|
|
710
|
+
this._debugNameData = e, this._runFn = t, this._changeTracker = n, this._state = 2, this._updateCount = 0, this._disposed = !1, this._dependencies = /* @__PURE__ */ new Set(), this._dependenciesToBeRemoved = /* @__PURE__ */ new Set(), this._isRunning = !1, this._store = void 0, this._delayedStore = void 0, this._changeSummary = (o = this._changeTracker) == null ? void 0 : o.createChangeSummary(void 0), (i = C()) == null || i.handleAutorunCreated(this, s), this._run();
|
|
711
711
|
}
|
|
712
712
|
dispose() {
|
|
713
713
|
var e;
|
|
@@ -715,7 +715,7 @@ class Xe {
|
|
|
715
715
|
this._disposed = !0;
|
|
716
716
|
for (const t of this._dependencies)
|
|
717
717
|
t.removeObserver(this);
|
|
718
|
-
this._dependencies.clear(), this._store !== void 0 && this._store.dispose(), this._delayedStore !== void 0 && this._delayedStore.dispose(), (e =
|
|
718
|
+
this._dependencies.clear(), this._store !== void 0 && this._store.dispose(), this._delayedStore !== void 0 && this._delayedStore.dispose(), (e = C()) == null || e.handleAutorunDisposed(this);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
_run() {
|
|
@@ -724,19 +724,19 @@ class Xe {
|
|
|
724
724
|
this._dependenciesToBeRemoved = this._dependencies, this._dependencies = e, this._state = 3;
|
|
725
725
|
try {
|
|
726
726
|
if (!this._disposed) {
|
|
727
|
-
(t =
|
|
727
|
+
(t = C()) == null || t.handleAutorunStarted(this);
|
|
728
728
|
const i = this._changeSummary, d = this._delayedStore;
|
|
729
729
|
d !== void 0 && (this._delayedStore = void 0);
|
|
730
730
|
try {
|
|
731
731
|
this._isRunning = !0, this._changeTracker && ((s = (n = this._changeTracker).beforeUpdate) == null || s.call(n, this, i), this._changeSummary = this._changeTracker.createChangeSummary(i)), this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._runFn(this, i);
|
|
732
732
|
} catch (c) {
|
|
733
|
-
|
|
733
|
+
re(c);
|
|
734
734
|
} finally {
|
|
735
735
|
this._isRunning = !1, d !== void 0 && d.dispose();
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
} finally {
|
|
739
|
-
this._disposed || (o =
|
|
739
|
+
this._disposed || (o = C()) == null || o.handleAutorunFinished(this);
|
|
740
740
|
for (const i of this._dependenciesToBeRemoved)
|
|
741
741
|
i.removeObserver(this);
|
|
742
742
|
this._dependenciesToBeRemoved.clear();
|
|
@@ -771,7 +771,7 @@ class Xe {
|
|
|
771
771
|
handleChange(e, t) {
|
|
772
772
|
var n;
|
|
773
773
|
if (this._isDependency(e)) {
|
|
774
|
-
(n =
|
|
774
|
+
(n = C()) == null || n.handleAutorunDependencyChanged(this, e, t);
|
|
775
775
|
try {
|
|
776
776
|
(this._changeTracker ? this._changeTracker.handleChange({
|
|
777
777
|
changedObservable: e,
|
|
@@ -779,7 +779,7 @@ class Xe {
|
|
|
779
779
|
didChange: (o) => o === e
|
|
780
780
|
}, this._changeSummary) : !0) && (this._state = 2);
|
|
781
781
|
} catch (s) {
|
|
782
|
-
|
|
782
|
+
re(s);
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
}
|
|
@@ -821,15 +821,15 @@ class Xe {
|
|
|
821
821
|
this._isRunning ? this._state = 2 : this._run();
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
return new
|
|
824
|
+
function Qe(r, e = F.ofCaller()) {
|
|
825
|
+
return new Ye(new E(void 0, void 0, r), r, void 0, e);
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Fe(r) {
|
|
828
828
|
const e = new Error("BugIndicatingErrorRecovery: " + r);
|
|
829
829
|
Ht(e), console.error("recovered from an error that indicates a bug", e);
|
|
830
830
|
}
|
|
831
|
-
function
|
|
832
|
-
const t = new
|
|
831
|
+
function et(r, e) {
|
|
832
|
+
const t = new tt(r, e);
|
|
833
833
|
try {
|
|
834
834
|
r(t);
|
|
835
835
|
} finally {
|
|
@@ -837,19 +837,19 @@ function Qe(r, e) {
|
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
function Gt(r, e, t) {
|
|
840
|
-
r ? e(r) :
|
|
840
|
+
r ? e(r) : et(e, t);
|
|
841
841
|
}
|
|
842
|
-
class
|
|
842
|
+
class tt {
|
|
843
843
|
constructor(e, t) {
|
|
844
844
|
var n;
|
|
845
|
-
this._fn = e, this._getDebugName = t, this._updatingObservers = [], (n =
|
|
845
|
+
this._fn = e, this._getDebugName = t, this._updatingObservers = [], (n = C()) == null || n.handleBeginTransaction(this);
|
|
846
846
|
}
|
|
847
847
|
getDebugName() {
|
|
848
|
-
return this._getDebugName ? this._getDebugName() :
|
|
848
|
+
return this._getDebugName ? this._getDebugName() : ye(this._fn);
|
|
849
849
|
}
|
|
850
850
|
updateObserver(e, t) {
|
|
851
851
|
if (!this._updatingObservers) {
|
|
852
|
-
|
|
852
|
+
Fe("Transaction already finished!"), et((n) => {
|
|
853
853
|
n.updateObserver(e, t);
|
|
854
854
|
});
|
|
855
855
|
return;
|
|
@@ -860,30 +860,30 @@ class et {
|
|
|
860
860
|
var t;
|
|
861
861
|
const e = this._updatingObservers;
|
|
862
862
|
if (!e) {
|
|
863
|
-
|
|
863
|
+
Fe("transaction.finish() has already been called!");
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
866
|
for (let n = 0; n < e.length; n++) {
|
|
867
867
|
const { observer: s, observable: o } = e[n];
|
|
868
868
|
s.endUpdate(o);
|
|
869
869
|
}
|
|
870
|
-
this._updatingObservers = null, (t =
|
|
870
|
+
this._updatingObservers = null, (t = C()) == null || t.handleEndTransaction(this);
|
|
871
871
|
}
|
|
872
872
|
debugGetUpdatingObservers() {
|
|
873
873
|
return this._updatingObservers;
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function w(r, e, t = F.ofCaller()) {
|
|
877
877
|
let n;
|
|
878
|
-
return typeof r == "string" ? n = new
|
|
878
|
+
return typeof r == "string" ? n = new E(void 0, r, void 0) : n = new E(r, void 0, void 0), new rt(n, e, X, t);
|
|
879
879
|
}
|
|
880
|
-
class
|
|
880
|
+
class rt extends xe {
|
|
881
881
|
get debugName() {
|
|
882
882
|
return this._debugNameData.getDebugName(this) ?? "ObservableValue";
|
|
883
883
|
}
|
|
884
884
|
constructor(e, t, n, s) {
|
|
885
885
|
var o;
|
|
886
|
-
super(s), this._debugNameData = e, this._equalityComparator = n, this._value = t, (o =
|
|
886
|
+
super(s), this._debugNameData = e, this._equalityComparator = n, this._value = t, (o = C()) == null || o.handleObservableUpdated(this, { hadValue: !1, newValue: t, change: void 0, didChange: !0, oldValue: void 0 });
|
|
887
887
|
}
|
|
888
888
|
get() {
|
|
889
889
|
return this._value;
|
|
@@ -893,11 +893,11 @@ class tt extends ye {
|
|
|
893
893
|
if (n === void 0 && this._equalityComparator(this._value, e))
|
|
894
894
|
return;
|
|
895
895
|
let s;
|
|
896
|
-
t || (t = s = new
|
|
896
|
+
t || (t = s = new tt(() => {
|
|
897
897
|
}, () => `Setting ${this.debugName}`));
|
|
898
898
|
try {
|
|
899
899
|
const i = this._value;
|
|
900
|
-
this._setValue(e), (o =
|
|
900
|
+
this._setValue(e), (o = C()) == null || o.handleObservableUpdated(this, { oldValue: i, newValue: e, change: n, didChange: !0, hadValue: !0 });
|
|
901
901
|
for (const d of this._observers)
|
|
902
902
|
t.updateObserver(d, this), d.handleChange(this, n);
|
|
903
903
|
} finally {
|
|
@@ -919,25 +919,25 @@ class tt extends ye {
|
|
|
919
919
|
this._value = e;
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ee(...r) {
|
|
923
923
|
let e, t, n, s;
|
|
924
|
-
return r.length === 2 ? [t, n] = r : [e, t, n, s] = r, new L(new
|
|
924
|
+
return r.length === 2 ? [t, n] = r : [e, t, n, s] = r, new L(new E(e, void 0, n), t, n, () => L.globalTransaction, X, s ?? F.ofCaller());
|
|
925
925
|
}
|
|
926
|
-
class L extends
|
|
926
|
+
class L extends xe {
|
|
927
927
|
constructor(e, t, n, s, o, i) {
|
|
928
928
|
super(i), this._debugNameData = e, this.event = t, this._getValue = n, this._getTransaction = s, this._equalityComparator = o, this._hasValue = !1, this.handleEvent = (d) => {
|
|
929
|
-
var
|
|
930
|
-
const c = this._getValue(d), h = this._value,
|
|
931
|
-
let
|
|
932
|
-
|
|
933
|
-
var
|
|
934
|
-
(
|
|
935
|
-
for (const
|
|
936
|
-
|
|
929
|
+
var R;
|
|
930
|
+
const c = this._getValue(d), h = this._value, m = !this._hasValue || !this._equalityComparator(h, c);
|
|
931
|
+
let v = !1;
|
|
932
|
+
m && (this._value = c, this._hasValue && (v = !0, Gt(this._getTransaction(), (g) => {
|
|
933
|
+
var _;
|
|
934
|
+
(_ = C()) == null || _.handleObservableUpdated(this, { oldValue: h, newValue: c, change: void 0, didChange: m, hadValue: this._hasValue });
|
|
935
|
+
for (const b of this._observers)
|
|
936
|
+
g.updateObserver(b, this), b.handleChange(this, void 0);
|
|
937
937
|
}, () => {
|
|
938
|
-
const
|
|
939
|
-
return "Event fired" + (
|
|
940
|
-
})), this._hasValue = !0),
|
|
938
|
+
const g = this.getDebugName();
|
|
939
|
+
return "Event fired" + (g ? `: ${g}` : "");
|
|
940
|
+
})), this._hasValue = !0), v || (R = C()) == null || R.handleObservableUpdated(this, { oldValue: h, newValue: c, change: void 0, didChange: m, hadValue: this._hasValue });
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
943
|
getDebugName() {
|
|
@@ -975,28 +975,28 @@ class L extends ye {
|
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
r.batchEventsGlobally = e;
|
|
978
|
-
})(
|
|
978
|
+
})(Ee || (Ee = {}));
|
|
979
979
|
function qt(r) {
|
|
980
|
-
const e = new
|
|
981
|
-
return r.addObserver(e),
|
|
980
|
+
const e = new nt(!1, void 0);
|
|
981
|
+
return r.addObserver(e), Xe(() => {
|
|
982
982
|
r.removeObserver(e);
|
|
983
983
|
});
|
|
984
984
|
}
|
|
985
985
|
zt(qt);
|
|
986
986
|
function Kt(r, e) {
|
|
987
|
-
const t = new
|
|
987
|
+
const t = new nt(!0, e);
|
|
988
988
|
r.addObserver(t);
|
|
989
989
|
try {
|
|
990
990
|
t.beginUpdate(r);
|
|
991
991
|
} finally {
|
|
992
992
|
t.endUpdate(r);
|
|
993
993
|
}
|
|
994
|
-
return
|
|
994
|
+
return Xe(() => {
|
|
995
995
|
r.removeObserver(t);
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
998
|
At(Kt);
|
|
999
|
-
class
|
|
999
|
+
class nt {
|
|
1000
1000
|
constructor(e, t) {
|
|
1001
1001
|
this._forceRecompute = e, this._handleValue = t, this._counter = 0;
|
|
1002
1002
|
}
|
|
@@ -1011,9 +1011,9 @@ class rt {
|
|
|
1011
1011
|
handleChange(e, t) {
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
let
|
|
1014
|
+
let te;
|
|
1015
1015
|
function Jt(r) {
|
|
1016
|
-
|
|
1016
|
+
te || (te = new Zt(), Ot(te)), te.addFilteredObj(r);
|
|
1017
1017
|
}
|
|
1018
1018
|
class Zt {
|
|
1019
1019
|
constructor() {
|
|
@@ -1035,17 +1035,17 @@ class Zt {
|
|
|
1035
1035
|
formatInfo(e) {
|
|
1036
1036
|
return e.hadValue ? e.didChange ? [
|
|
1037
1037
|
U(" "),
|
|
1038
|
-
|
|
1038
|
+
I(Z(e.oldValue, 70), {
|
|
1039
1039
|
color: "red",
|
|
1040
1040
|
strikeThrough: !0
|
|
1041
1041
|
}),
|
|
1042
1042
|
U(" "),
|
|
1043
|
-
|
|
1043
|
+
I(Z(e.newValue, 60), {
|
|
1044
1044
|
color: "green"
|
|
1045
1045
|
})
|
|
1046
1046
|
] : [U(" (unchanged)")] : [
|
|
1047
1047
|
U(" "),
|
|
1048
|
-
|
|
1048
|
+
I(Z(e.newValue, 60), {
|
|
1049
1049
|
color: "green"
|
|
1050
1050
|
}),
|
|
1051
1051
|
U(" (initial)")
|
|
@@ -1067,14 +1067,14 @@ class Zt {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
console.log(...this.textToConsoleArgs([
|
|
1069
1069
|
P("observable value changed"),
|
|
1070
|
-
|
|
1070
|
+
I(e.debugName, { color: "BlueViolet" }),
|
|
1071
1071
|
...this.formatInfo(t)
|
|
1072
1072
|
]));
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
1075
|
formatChanges(e) {
|
|
1076
1076
|
if (e.size !== 0)
|
|
1077
|
-
return
|
|
1077
|
+
return I(" (changed deps: " + [...e].map((t) => t.debugName).join(", ") + ")", { color: "gray" });
|
|
1078
1078
|
}
|
|
1079
1079
|
handleDerivedDependencyChanged(e, t, n) {
|
|
1080
1080
|
var s;
|
|
@@ -1086,7 +1086,7 @@ class Zt {
|
|
|
1086
1086
|
const n = this.changedObservablesSets.get(e);
|
|
1087
1087
|
n && (console.log(...this.textToConsoleArgs([
|
|
1088
1088
|
P("derived recomputed"),
|
|
1089
|
-
|
|
1089
|
+
I(e.debugName, { color: "BlueViolet" }),
|
|
1090
1090
|
...this.formatInfo(t),
|
|
1091
1091
|
this.formatChanges(n),
|
|
1092
1092
|
{ data: [{ fn: e._debugNameData.referenceFn ?? e._computeFn }] }
|
|
@@ -1095,13 +1095,13 @@ class Zt {
|
|
|
1095
1095
|
handleDerivedCleared(e) {
|
|
1096
1096
|
this._isIncluded(e) && console.log(...this.textToConsoleArgs([
|
|
1097
1097
|
P("derived cleared"),
|
|
1098
|
-
|
|
1098
|
+
I(e.debugName, { color: "BlueViolet" })
|
|
1099
1099
|
]));
|
|
1100
1100
|
}
|
|
1101
1101
|
handleFromEventObservableTriggered(e, t) {
|
|
1102
1102
|
this._isIncluded(e) && console.log(...this.textToConsoleArgs([
|
|
1103
1103
|
P("observable from event triggered"),
|
|
1104
|
-
|
|
1104
|
+
I(e.debugName, { color: "BlueViolet" }),
|
|
1105
1105
|
...this.formatInfo(t),
|
|
1106
1106
|
{ data: [{ fn: e._getValue }] }
|
|
1107
1107
|
]));
|
|
@@ -1118,7 +1118,7 @@ class Zt {
|
|
|
1118
1118
|
const t = this.changedObservablesSets.get(e);
|
|
1119
1119
|
t && (this._isIncluded(e) && console.log(...this.textToConsoleArgs([
|
|
1120
1120
|
P("autorun"),
|
|
1121
|
-
|
|
1121
|
+
I(e.debugName, { color: "BlueViolet" }),
|
|
1122
1122
|
this.formatChanges(t),
|
|
1123
1123
|
{ data: [{ fn: e._debugNameData.referenceFn ?? e._runFn }] }
|
|
1124
1124
|
])), t.clear(), this.indentation++);
|
|
@@ -1130,7 +1130,7 @@ class Zt {
|
|
|
1130
1130
|
let t = e.getDebugName();
|
|
1131
1131
|
t === void 0 && (t = ""), this._isIncluded(e) && console.log(...this.textToConsoleArgs([
|
|
1132
1132
|
P("transaction"),
|
|
1133
|
-
|
|
1133
|
+
I(t, { color: "BlueViolet" }),
|
|
1134
1134
|
{ data: [{ fn: e._fn }] }
|
|
1135
1135
|
])), this.indentation++;
|
|
1136
1136
|
}
|
|
@@ -1152,12 +1152,12 @@ function Xt(r) {
|
|
|
1152
1152
|
return o.push(...t), o;
|
|
1153
1153
|
}
|
|
1154
1154
|
function U(r) {
|
|
1155
|
-
return
|
|
1155
|
+
return I(r, { color: "black" });
|
|
1156
1156
|
}
|
|
1157
1157
|
function P(r) {
|
|
1158
|
-
return
|
|
1158
|
+
return I(rr(`${r}: `, 10), { color: "black", bold: !0 });
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function I(r, e = {
|
|
1161
1161
|
color: "black"
|
|
1162
1162
|
}) {
|
|
1163
1163
|
function t(s) {
|
|
@@ -1218,7 +1218,7 @@ function er(r, e) {
|
|
|
1218
1218
|
} catch {
|
|
1219
1219
|
return "[[Object]]";
|
|
1220
1220
|
}
|
|
1221
|
-
const t =
|
|
1221
|
+
const t = qe(r);
|
|
1222
1222
|
let n = t ? t + "(" : "{ ", s = !0, o;
|
|
1223
1223
|
try {
|
|
1224
1224
|
o = Object.entries(r);
|
|
@@ -1246,10 +1246,10 @@ function rr(r, e) {
|
|
|
1246
1246
|
return r;
|
|
1247
1247
|
}
|
|
1248
1248
|
function nr(r, e) {
|
|
1249
|
-
const t = (e == null ? void 0 : e.debugNamePostProcessor) ?? ((o) => o), n =
|
|
1250
|
-
return n ?
|
|
1249
|
+
const t = (e == null ? void 0 : e.debugNamePostProcessor) ?? ((o) => o), n = k.from(r, t);
|
|
1250
|
+
return n ? st(n, 0, /* @__PURE__ */ new Set()).trim() : "";
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function st(r, e, t) {
|
|
1253
1253
|
const n = " ".repeat(e), s = [];
|
|
1254
1254
|
if (t.has(r.sourceObj))
|
|
1255
1255
|
return s.push(`${n}* ${r.type} ${r.name} (already listed)`), s.join(`
|
|
@@ -1257,29 +1257,29 @@ function nt(r, e, t) {
|
|
|
1257
1257
|
if (t.add(r.sourceObj), s.push(`${n}* ${r.type} ${r.name}:`), s.push(`${n} value: ${Z(r.value, 50)}`), s.push(`${n} state: ${r.state}`), r.dependencies.length > 0) {
|
|
1258
1258
|
s.push(`${n} dependencies:`);
|
|
1259
1259
|
for (const i of r.dependencies)
|
|
1260
|
-
s.push(
|
|
1260
|
+
s.push(st(i, e + 1, t));
|
|
1261
1261
|
}
|
|
1262
1262
|
return s.join(`
|
|
1263
1263
|
`);
|
|
1264
1264
|
}
|
|
1265
|
-
class
|
|
1265
|
+
class k {
|
|
1266
1266
|
static from(e, t) {
|
|
1267
|
-
if (e instanceof
|
|
1267
|
+
if (e instanceof Ye) {
|
|
1268
1268
|
const n = e.debugGetState();
|
|
1269
|
-
return new
|
|
1269
|
+
return new k(e, t(e.debugName), "autorun", void 0, n.stateStr, Array.from(n.dependencies).map((s) => k.from(s, t) || k.unknown(s)));
|
|
1270
1270
|
} else if (e instanceof j) {
|
|
1271
1271
|
const n = e.debugGetState();
|
|
1272
|
-
return new
|
|
1273
|
-
} else if (e instanceof
|
|
1272
|
+
return new k(e, t(e.debugName), "derived", n.value, n.stateStr, Array.from(n.dependencies).map((s) => k.from(s, t) || k.unknown(s)));
|
|
1273
|
+
} else if (e instanceof rt) {
|
|
1274
1274
|
const n = e.debugGetState();
|
|
1275
|
-
return new
|
|
1275
|
+
return new k(e, t(e.debugName), "observableValue", n.value, "upToDate", []);
|
|
1276
1276
|
} else if (e instanceof L) {
|
|
1277
1277
|
const n = e.debugGetState();
|
|
1278
|
-
return new
|
|
1278
|
+
return new k(e, t(e.debugName), "fromEvent", n.value, n.hasValue ? "upToDate" : "initial", []);
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
1281
|
static unknown(e) {
|
|
1282
|
-
return new
|
|
1282
|
+
return new k(e, "(unknown)", "unknown", void 0, "unknown", []);
|
|
1283
1283
|
}
|
|
1284
1284
|
constructor(e, t, n, s, o, i) {
|
|
1285
1285
|
this.sourceObj = e, this.name = t, this.type = n, this.value = s, this.state = o, this.dependencies = i;
|
|
@@ -1289,11 +1289,11 @@ $t(nr);
|
|
|
1289
1289
|
kt(Jt);
|
|
1290
1290
|
class sr {
|
|
1291
1291
|
constructor() {
|
|
1292
|
-
l(this, "_fixtures",
|
|
1292
|
+
l(this, "_fixtures", w(this, /* @__PURE__ */ new Map()));
|
|
1293
1293
|
/** Observable root of the fixture tree */
|
|
1294
|
-
l(this, "root",
|
|
1294
|
+
l(this, "root", D(this, (e) => {
|
|
1295
1295
|
const t = this._fixtures.read(e);
|
|
1296
|
-
return
|
|
1296
|
+
return ie(t);
|
|
1297
1297
|
}));
|
|
1298
1298
|
}
|
|
1299
1299
|
/**
|
|
@@ -1324,14 +1324,14 @@ class sr {
|
|
|
1324
1324
|
*/
|
|
1325
1325
|
getNode(e, t) {
|
|
1326
1326
|
const n = this.root.read(e);
|
|
1327
|
-
return
|
|
1327
|
+
return ke(n, t);
|
|
1328
1328
|
}
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Gets a component by path (non-reactive, for use in preview iframe).
|
|
1331
1331
|
* @param path Array of path segments (e.g., ['Button', 'Primary'])
|
|
1332
1332
|
*/
|
|
1333
1333
|
getComponentByPath(e) {
|
|
1334
|
-
const t = this._fixtures.get(), n =
|
|
1334
|
+
const t = this._fixtures.get(), n = ie(t), s = ke(n, e);
|
|
1335
1335
|
return s == null ? void 0 : s.component;
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
@@ -1362,47 +1362,58 @@ class kn {
|
|
|
1362
1362
|
return this._flattenFixtures(this._root);
|
|
1363
1363
|
}
|
|
1364
1364
|
async renderFixture(e) {
|
|
1365
|
-
var
|
|
1365
|
+
var R;
|
|
1366
1366
|
const t = this._findFixtureNode(this._root, e);
|
|
1367
1367
|
if (!t || !t.component)
|
|
1368
1368
|
throw new Error("Fixture not found: " + e);
|
|
1369
|
-
(
|
|
1369
|
+
(R = this._currentDisposable) != null && R.dispose && this._currentDisposable.dispose(), this._currentDisposable = void 0, this._currentContainer && (this._currentContainer.remove(), this._currentContainer = void 0);
|
|
1370
1370
|
const n = document.createElement("div");
|
|
1371
1371
|
n.style.display = "inline-block", this._containerElement.appendChild(n), this._currentContainer = n;
|
|
1372
1372
|
const s = t.component, o = Rt(s.properties);
|
|
1373
1373
|
let i = n;
|
|
1374
1374
|
if (s.isolation === "shadow-dom") {
|
|
1375
|
-
const
|
|
1376
|
-
i = document.createElement("div"),
|
|
1375
|
+
const g = n.attachShadow({ mode: "open" });
|
|
1376
|
+
i = document.createElement("div"), g.appendChild(i);
|
|
1377
1377
|
}
|
|
1378
1378
|
const d = [], c = console.error, h = console.warn;
|
|
1379
|
-
console.error = (...
|
|
1380
|
-
d.push({ kind: "console", level: "error", message:
|
|
1381
|
-
}, console.warn = (...
|
|
1382
|
-
d.push({ kind: "console", level: "warn", message:
|
|
1379
|
+
console.error = (...g) => {
|
|
1380
|
+
d.push({ kind: "console", level: "error", message: g.map(String).join(" ") }), c.apply(console, g);
|
|
1381
|
+
}, console.warn = (...g) => {
|
|
1382
|
+
d.push({ kind: "console", level: "warn", message: g.map(String).join(" ") }), h.apply(console, g);
|
|
1383
1383
|
};
|
|
1384
|
-
const
|
|
1385
|
-
var
|
|
1386
|
-
d.push({ kind: "exception", message:
|
|
1387
|
-
},
|
|
1388
|
-
const
|
|
1389
|
-
d.push({ kind: "exception", message:
|
|
1384
|
+
const m = (g) => {
|
|
1385
|
+
var _;
|
|
1386
|
+
d.push({ kind: "exception", message: g.message, stack: (_ = g.error) == null ? void 0 : _.stack });
|
|
1387
|
+
}, v = (g) => {
|
|
1388
|
+
const _ = g.reason, b = _ instanceof Error ? _.message : String(_), y = _ instanceof Error ? _.stack : void 0;
|
|
1389
|
+
d.push({ kind: "exception", message: b, stack: y });
|
|
1390
1390
|
};
|
|
1391
|
-
window.addEventListener("error",
|
|
1391
|
+
window.addEventListener("error", m), window.addEventListener("unhandledrejection", v);
|
|
1392
1392
|
try {
|
|
1393
|
-
const
|
|
1394
|
-
let
|
|
1393
|
+
const g = new AbortController(), _ = 3e3;
|
|
1394
|
+
let b = s.render(i, {
|
|
1395
1395
|
props: o,
|
|
1396
|
-
signal:
|
|
1396
|
+
signal: g.signal
|
|
1397
1397
|
});
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1398
|
+
if (b instanceof Promise) {
|
|
1399
|
+
const y = new Promise((x) => setTimeout(() => x("timeout"), _)), O = await Promise.race([b.then((x) => ({ resolved: x })), y]);
|
|
1400
|
+
O === "timeout" ? (g.abort(), d.push({ kind: "exception", message: `Fixture render() timed out after ${_}ms` }), b.then((x) => {
|
|
1401
|
+
var ee;
|
|
1402
|
+
return (ee = x == null ? void 0 : x.dispose) == null ? void 0 : ee.call(x);
|
|
1403
|
+
}).catch(() => {
|
|
1404
|
+
}), b = void 0) : b = O.resolved;
|
|
1405
|
+
}
|
|
1406
|
+
if (this._currentDisposable = b ?? void 0, b != null && b.ready) {
|
|
1407
|
+
const y = new Promise((x) => setTimeout(() => x("timeout"), _));
|
|
1408
|
+
await Promise.race([b.ready.then(() => "done"), y]) === "timeout" && (g.abort(), d.push({ kind: "exception", message: `Fixture ready promise timed out after ${_}ms` }));
|
|
1409
|
+
}
|
|
1410
|
+
} catch (g) {
|
|
1411
|
+
const _ = g instanceof Error ? g : new Error(String(g));
|
|
1412
|
+
d.push({ kind: "exception", message: _.message, stack: _.stack });
|
|
1402
1413
|
} finally {
|
|
1403
1414
|
console.error = c, console.warn = h;
|
|
1404
1415
|
}
|
|
1405
|
-
return await new Promise((
|
|
1416
|
+
return await new Promise((g) => requestAnimationFrame(() => requestAnimationFrame(() => g()))), window.removeEventListener("error", m), window.removeEventListener("unhandledrejection", v), { errors: d };
|
|
1406
1417
|
}
|
|
1407
1418
|
_buildRegistry() {
|
|
1408
1419
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -1410,7 +1421,7 @@ class kn {
|
|
|
1410
1421
|
const s = n.default;
|
|
1411
1422
|
s && typeof s == "object" && e.set(t, s);
|
|
1412
1423
|
}
|
|
1413
|
-
return
|
|
1424
|
+
return ie(e);
|
|
1414
1425
|
}
|
|
1415
1426
|
_flattenFixtures(e, t = []) {
|
|
1416
1427
|
var s;
|
|
@@ -1469,47 +1480,47 @@ class or {
|
|
|
1469
1480
|
}
|
|
1470
1481
|
}
|
|
1471
1482
|
function u() {
|
|
1472
|
-
return
|
|
1483
|
+
return le.instance;
|
|
1473
1484
|
}
|
|
1474
1485
|
function ir() {
|
|
1475
|
-
return
|
|
1486
|
+
return he.instance;
|
|
1476
1487
|
}
|
|
1477
1488
|
function ar() {
|
|
1478
|
-
return
|
|
1489
|
+
return ue.instance;
|
|
1479
1490
|
}
|
|
1480
1491
|
u.const = ir;
|
|
1481
1492
|
u.obs = ar;
|
|
1482
|
-
class
|
|
1493
|
+
class le {
|
|
1483
1494
|
create(e) {
|
|
1484
|
-
const t =
|
|
1495
|
+
const t = D((n) => e(n));
|
|
1485
1496
|
return { read: (n) => t };
|
|
1486
1497
|
}
|
|
1487
1498
|
}
|
|
1488
|
-
|
|
1489
|
-
class
|
|
1499
|
+
le.instance = new le();
|
|
1500
|
+
class he {
|
|
1490
1501
|
create(e) {
|
|
1491
|
-
const t =
|
|
1502
|
+
const t = D((n) => e(n));
|
|
1492
1503
|
return { read: (n) => t.read(n) };
|
|
1493
1504
|
}
|
|
1494
1505
|
}
|
|
1495
|
-
|
|
1496
|
-
class
|
|
1506
|
+
he.instance = new he();
|
|
1507
|
+
class ue {
|
|
1497
1508
|
create(e) {
|
|
1498
|
-
const t =
|
|
1509
|
+
const t = D((n) => {
|
|
1499
1510
|
const s = e(n);
|
|
1500
1511
|
return dr(s) ? s.read(n) : s;
|
|
1501
1512
|
});
|
|
1502
1513
|
return { read: (n) => t };
|
|
1503
1514
|
}
|
|
1504
1515
|
}
|
|
1505
|
-
|
|
1516
|
+
ue.instance = new ue();
|
|
1506
1517
|
function dr(r) {
|
|
1507
1518
|
return typeof r == "object" && r !== null && "read" in r;
|
|
1508
1519
|
}
|
|
1509
1520
|
function K(r, e) {
|
|
1510
1521
|
return Object.fromEntries(Object.entries(r).map(([t, n]) => [t, e(n, t)]));
|
|
1511
1522
|
}
|
|
1512
|
-
const
|
|
1523
|
+
const se = Symbol("ViewModelContext");
|
|
1513
1524
|
class cr {
|
|
1514
1525
|
constructor(e) {
|
|
1515
1526
|
this._store = new Y(), this.props = e;
|
|
@@ -1519,34 +1530,34 @@ class cr {
|
|
|
1519
1530
|
}
|
|
1520
1531
|
}
|
|
1521
1532
|
function lr(r) {
|
|
1522
|
-
return r[
|
|
1533
|
+
return r[se] || (r[se] = Pe(void 0)), r[se];
|
|
1523
1534
|
}
|
|
1524
|
-
function
|
|
1535
|
+
function B(r = {}) {
|
|
1525
1536
|
var e;
|
|
1526
1537
|
return e = class extends cr {
|
|
1527
1538
|
}, e._props = r, e;
|
|
1528
1539
|
}
|
|
1529
|
-
let
|
|
1540
|
+
let pe = 0;
|
|
1530
1541
|
const hr = new or((r) => {
|
|
1531
1542
|
for (const e of r)
|
|
1532
1543
|
e.rendered = !1;
|
|
1533
|
-
if (
|
|
1544
|
+
if (pe > 0) {
|
|
1534
1545
|
const e = r.find((t) => t.isRendering);
|
|
1535
1546
|
e.itemsToRender = r;
|
|
1536
1547
|
} else
|
|
1537
|
-
|
|
1548
|
+
We(() => {
|
|
1538
1549
|
for (const e of r)
|
|
1539
1550
|
e.rendered || e.forceUpdate();
|
|
1540
1551
|
});
|
|
1541
1552
|
});
|
|
1542
1553
|
let ur = 0;
|
|
1543
|
-
class
|
|
1554
|
+
class pr {
|
|
1544
1555
|
constructor(e, t) {
|
|
1545
1556
|
this.debugName = e, this.renderFactory = t, this._obsProps = void 0, this.forceUpdate = void 0, this._render = void 0, this._disposable = void 0, this.contextValues = /* @__PURE__ */ new Map(), this.cleanupEffect = () => () => {
|
|
1546
1557
|
var n;
|
|
1547
1558
|
(n = this._disposable) == null || n.dispose();
|
|
1548
1559
|
}, this.itemsToRender = [], this.handleAfterRender = () => {
|
|
1549
|
-
|
|
1560
|
+
We(() => {
|
|
1550
1561
|
for (const n of this.itemsToRender)
|
|
1551
1562
|
n.rendered || n.forceUpdate();
|
|
1552
1563
|
}), this.itemsToRender = [];
|
|
@@ -1556,30 +1567,30 @@ class fr {
|
|
|
1556
1567
|
return this.debugName;
|
|
1557
1568
|
}
|
|
1558
1569
|
updateProps(e) {
|
|
1559
|
-
this._obsProps ? this._obsProps.set(e, void 0) : (this._obsProps =
|
|
1570
|
+
this._obsProps ? this._obsProps.set(e, void 0) : (this._obsProps = w(this, e), this._render = this.renderFactory(this._obsProps, () => this.contextValues), this.rendering = D(this, this._render), this._disposable = hr.addDependency(this.rendering, this));
|
|
1560
1571
|
}
|
|
1561
1572
|
}
|
|
1562
|
-
function
|
|
1563
|
-
const n = (i) => i + 1, s = () => new
|
|
1573
|
+
function Ce(r, e, t) {
|
|
1574
|
+
const n = (i) => i + 1, s = () => new pr(r + ++ur, e), o = function(i) {
|
|
1564
1575
|
const d = bt(n, 0)[1], c = yt(s)[0];
|
|
1565
1576
|
for (const h of t ?? [])
|
|
1566
1577
|
c.contextValues.set(h, xt(h));
|
|
1567
|
-
if (
|
|
1578
|
+
if (Ie(c.cleanupEffect, []), Ie(c.handleAfterRender), c.isRendering)
|
|
1568
1579
|
throw new Error("Component is already rendering");
|
|
1569
|
-
c.isRendering = !0,
|
|
1580
|
+
c.isRendering = !0, pe++;
|
|
1570
1581
|
try {
|
|
1571
1582
|
c.forceUpdate = d, c.updateProps(i);
|
|
1572
1583
|
const h = c.rendering.get();
|
|
1573
1584
|
return c.rendered = !0, h;
|
|
1574
1585
|
} finally {
|
|
1575
|
-
c.isRendering = !1,
|
|
1586
|
+
c.isRendering = !1, pe--;
|
|
1576
1587
|
}
|
|
1577
1588
|
};
|
|
1578
1589
|
return o.displayName = r, o;
|
|
1579
1590
|
}
|
|
1580
|
-
|
|
1581
|
-
function
|
|
1582
|
-
return
|
|
1591
|
+
Ce("ObsView", (r) => (e) => r.read(e).children(e));
|
|
1592
|
+
function V(r, e) {
|
|
1593
|
+
return Ce("view", (t) => {
|
|
1583
1594
|
const n = K(r, (s, o) => s.create((i) => t.read(i)[o], void 0));
|
|
1584
1595
|
return (s) => {
|
|
1585
1596
|
const o = K(n, (i) => i.read(s));
|
|
@@ -1587,7 +1598,7 @@ function I(r, e) {
|
|
|
1587
1598
|
};
|
|
1588
1599
|
});
|
|
1589
1600
|
}
|
|
1590
|
-
function
|
|
1601
|
+
function fr(r) {
|
|
1591
1602
|
const e = [];
|
|
1592
1603
|
for (const t of Object.values(r)) {
|
|
1593
1604
|
const n = t._requiredContext;
|
|
@@ -1595,29 +1606,29 @@ function pr(r) {
|
|
|
1595
1606
|
}
|
|
1596
1607
|
return e;
|
|
1597
1608
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const n = typeof e == "function" ? {} : e, s = typeof e == "function" ? e : t, o = "_props" in r ? r._props : {}, i =
|
|
1600
|
-
return
|
|
1601
|
-
const
|
|
1602
|
-
} } : Pt((
|
|
1603
|
-
const
|
|
1604
|
-
return new r(
|
|
1605
|
-
}),
|
|
1606
|
-
return (
|
|
1607
|
-
const
|
|
1608
|
-
return s(
|
|
1609
|
+
function A(r, e, t) {
|
|
1610
|
+
const n = typeof e == "function" ? {} : e, s = typeof e == "function" ? e : t, o = "_props" in r ? r._props : {}, i = fr({ ...o, ...n }), d = lr(r), c = [...i, d];
|
|
1611
|
+
return Ce("viewWithModel", (h, m) => {
|
|
1612
|
+
const v = m(), R = v.get(d), g = "_props" in r ? K(r._props, (y, O) => y.create((x) => h.read(x)[O], v.get(y._requiredContext))) : {}, _ = R ? { read: () => R, dispose: () => {
|
|
1613
|
+
} } : Pt((y) => {
|
|
1614
|
+
const O = K(g, (x) => x.read(y));
|
|
1615
|
+
return new r(O);
|
|
1616
|
+
}), b = K(n, (y, O) => y.create((x) => h.read(x)[O], v.get(y._requiredContext)));
|
|
1617
|
+
return (y) => {
|
|
1618
|
+
const O = _.read(y), x = K(b, (ee) => ee.read(y));
|
|
1619
|
+
return s(y, O, x);
|
|
1609
1620
|
};
|
|
1610
1621
|
}, c.length > 0 ? c : void 0);
|
|
1611
1622
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
function
|
|
1623
|
+
V({ value: u.obs() }, (r, e) => e.value.read(r));
|
|
1624
|
+
Pe(null);
|
|
1625
|
+
function ot(r) {
|
|
1615
1626
|
var e;
|
|
1616
1627
|
return {
|
|
1617
1628
|
id: r.id,
|
|
1618
1629
|
name: r.name,
|
|
1619
1630
|
type: r.type,
|
|
1620
|
-
children: (e = r.children) == null ? void 0 : e.map(
|
|
1631
|
+
children: (e = r.children) == null ? void 0 : e.map(ot),
|
|
1621
1632
|
component: r.component
|
|
1622
1633
|
};
|
|
1623
1634
|
}
|
|
@@ -1634,16 +1645,16 @@ function Q(r, e) {
|
|
|
1634
1645
|
h !== null && (i = o(h));
|
|
1635
1646
|
} catch {
|
|
1636
1647
|
}
|
|
1637
|
-
const d =
|
|
1638
|
-
return d.set = (h,
|
|
1648
|
+
const d = w(r, i), c = d.set.bind(d);
|
|
1649
|
+
return d.set = (h, m) => {
|
|
1639
1650
|
try {
|
|
1640
1651
|
localStorage.setItem(t, s(h));
|
|
1641
1652
|
} catch {
|
|
1642
1653
|
}
|
|
1643
|
-
c(h,
|
|
1654
|
+
c(h, m);
|
|
1644
1655
|
}, d;
|
|
1645
1656
|
}
|
|
1646
|
-
class gr extends
|
|
1657
|
+
class gr extends B({
|
|
1647
1658
|
registry: u.const(),
|
|
1648
1659
|
daemonModel: u.const(),
|
|
1649
1660
|
reportModel: u.const()
|
|
@@ -1666,27 +1677,27 @@ class gr extends F({
|
|
|
1666
1677
|
storageKey: "component-explorer:selectedNodeId",
|
|
1667
1678
|
defaultValue: void 0
|
|
1668
1679
|
}));
|
|
1669
|
-
l(this, "expandedNodeIds",
|
|
1680
|
+
l(this, "expandedNodeIds", w(this, /* @__PURE__ */ new Set([""])));
|
|
1670
1681
|
l(this, "viewMode", Q(this, {
|
|
1671
1682
|
storageKey: "component-explorer:viewMode",
|
|
1672
1683
|
defaultValue: "session"
|
|
1673
1684
|
}));
|
|
1674
1685
|
/** The explorer's tree derived from the registry or report */
|
|
1675
|
-
l(this, "tree",
|
|
1686
|
+
l(this, "tree", D(this, (t) => {
|
|
1676
1687
|
const n = this.props.reportModel;
|
|
1677
1688
|
if (n)
|
|
1678
1689
|
return n.buildTree(t);
|
|
1679
1690
|
const s = this.props.registry.root.read(t);
|
|
1680
|
-
return
|
|
1691
|
+
return ot(s);
|
|
1681
1692
|
}));
|
|
1682
|
-
l(this, "selectedNode",
|
|
1693
|
+
l(this, "selectedNode", D(this, (t) => {
|
|
1683
1694
|
const n = this.selectedNodeId.read(t);
|
|
1684
1695
|
if (n === void 0) return;
|
|
1685
1696
|
const s = this.tree.read(t);
|
|
1686
1697
|
return s.id === n ? s : this._findNode(s.children ?? [], n);
|
|
1687
1698
|
}));
|
|
1688
1699
|
/** List of preview rows to render based on current selection and view mode */
|
|
1689
|
-
l(this, "selectedFixtures",
|
|
1700
|
+
l(this, "selectedFixtures", D(this, (t) => {
|
|
1690
1701
|
const n = this.selectedNode.read(t);
|
|
1691
1702
|
return n ? this.isReportMode ? (this.props.reportModel.state.read(t), this._collectReportRows(n, n.name)) : this.viewMode.read(t) === "diff" && this.daemonAvailable && this.daemon.sessions.read(t).length > 1 ? this._collectDiffRows(n, n.name) : this._collectPreviewRows(n, n.name) : [];
|
|
1692
1703
|
}));
|
|
@@ -1842,7 +1853,7 @@ class gr extends F({
|
|
|
1842
1853
|
return i;
|
|
1843
1854
|
}
|
|
1844
1855
|
}
|
|
1845
|
-
const
|
|
1856
|
+
const f = {
|
|
1846
1857
|
container: {
|
|
1847
1858
|
display: "flex",
|
|
1848
1859
|
flexDirection: "row",
|
|
@@ -2031,15 +2042,15 @@ const p = {
|
|
|
2031
2042
|
cursor: "pointer"
|
|
2032
2043
|
}
|
|
2033
2044
|
};
|
|
2034
|
-
function
|
|
2045
|
+
function Se(...r) {
|
|
2035
2046
|
return Object.assign({}, ...r.filter(Boolean));
|
|
2036
2047
|
}
|
|
2037
|
-
class mr extends
|
|
2048
|
+
class mr extends B({
|
|
2038
2049
|
active: u()
|
|
2039
2050
|
}) {
|
|
2040
2051
|
constructor() {
|
|
2041
2052
|
super(...arguments);
|
|
2042
|
-
l(this, "isHovered",
|
|
2053
|
+
l(this, "isHovered", w(this, !1));
|
|
2043
2054
|
l(this, "setHovered", (t) => {
|
|
2044
2055
|
this.isHovered.set(t, void 0);
|
|
2045
2056
|
});
|
|
@@ -2048,7 +2059,7 @@ class mr extends F({
|
|
|
2048
2059
|
return this.props.active;
|
|
2049
2060
|
}
|
|
2050
2061
|
}
|
|
2051
|
-
const
|
|
2062
|
+
const oe = A(
|
|
2052
2063
|
mr,
|
|
2053
2064
|
{
|
|
2054
2065
|
onClick: u.const(),
|
|
@@ -2056,10 +2067,10 @@ const se = E(
|
|
|
2056
2067
|
children: u.const()
|
|
2057
2068
|
},
|
|
2058
2069
|
(r, e, t) => {
|
|
2059
|
-
const n = e.isHovered.read(r), s = e.active.read(r), o =
|
|
2060
|
-
|
|
2061
|
-
n && !s &&
|
|
2062
|
-
s &&
|
|
2070
|
+
const n = e.isHovered.read(r), s = e.active.read(r), o = Se(
|
|
2071
|
+
f.titleBarButton,
|
|
2072
|
+
n && !s && f.titleBarButtonHover,
|
|
2073
|
+
s && f.titleBarButtonActive
|
|
2063
2074
|
);
|
|
2064
2075
|
return /* @__PURE__ */ a(
|
|
2065
2076
|
"button",
|
|
@@ -2073,17 +2084,17 @@ const se = E(
|
|
|
2073
2084
|
}
|
|
2074
2085
|
);
|
|
2075
2086
|
}
|
|
2076
|
-
), vr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M5.7 13.7L5 13l4.6-4.6L5 3.7l.7-.7 5.3 5.4-5.3 5.3z" }) }), _r = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M11 5.5L6 10.5L5.3 9.8L9.6 5.5L5.3 1.2L6 0.5L11 5.5z", transform: "rotate(90 8 5.5)" }) }), br = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 2H9l-.35.15-.65.64-.65-.64L7 2H1.5l-.5.5v10l.5.5H7l.35-.15.65-.64.65.64.35.15h5.5l.5-.5v-10l-.5-.5zm-7 10H2V3h5v.86L5.85 5l1.15 1.14V10l-1.15-1.14L7 7.72V12zm6 0H8V7.72l1.15 1.14L8 10V6.14L9.15 5 8 3.86V3h5v9z" }) }), yr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 3H7.71l-.85-.85L6.5 2h-5l-.5.5v11l.5.5h13l.5-.5v-10l-.5-.5zm-.5 10H2V6h12v7zm0-8H2V3h4.29l.85.85.36.15H14v1z" }) }), xr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm11 11H6V3h7v10zM3 3h2v10H3V3z" }) }), Cr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm6 11V3h5v10H8zM3 3h4v10H3V3z" }) }), Sr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z" }) }), wr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z" }) }), Rr =
|
|
2087
|
+
), vr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M5.7 13.7L5 13l4.6-4.6L5 3.7l.7-.7 5.3 5.4-5.3 5.3z" }) }), _r = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M11 5.5L6 10.5L5.3 9.8L9.6 5.5L5.3 1.2L6 0.5L11 5.5z", transform: "rotate(90 8 5.5)" }) }), br = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 2H9l-.35.15-.65.64-.65-.64L7 2H1.5l-.5.5v10l.5.5H7l.35-.15.65-.64.65.64.35.15h5.5l.5-.5v-10l-.5-.5zm-7 10H2V3h5v.86L5.85 5l1.15 1.14V10l-1.15-1.14L7 7.72V12zm6 0H8V7.72l1.15 1.14L8 10V6.14L9.15 5 8 3.86V3h5v9z" }) }), yr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 3H7.71l-.85-.85L6.5 2h-5l-.5.5v11l.5.5h13l.5-.5v-10l-.5-.5zm-.5 10H2V6h12v7zm0-8H2V3h4.29l.85.85.36.15H14v1z" }) }), xr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm11 11H6V3h7v10zM3 3h2v10H3V3z" }) }), Cr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm6 11V3h5v10H8zM3 3h4v10H3V3z" }) }), Sr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z" }) }), wr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z" }) }), Rr = V(
|
|
2077
2088
|
{ model: u.const() },
|
|
2078
2089
|
(r, e) => {
|
|
2079
2090
|
var d, c;
|
|
2080
2091
|
const t = e.model, n = t.viewMode.read(r), s = ((d = t.daemon) == null ? void 0 : d.sessions.read(r)) ?? [], o = (c = t.daemon) == null ? void 0 : c.sessionName, i = s.filter((h) => h.name !== o);
|
|
2081
|
-
return s.length <= 1 ? null : /* @__PURE__ */
|
|
2082
|
-
/* @__PURE__ */
|
|
2083
|
-
/* @__PURE__ */ a(
|
|
2084
|
-
/* @__PURE__ */ a(
|
|
2092
|
+
return s.length <= 1 ? null : /* @__PURE__ */ p("div", { style: J.container, children: [
|
|
2093
|
+
/* @__PURE__ */ p("div", { style: J.segmentedControl, children: [
|
|
2094
|
+
/* @__PURE__ */ a(Be, { label: "Live", mode: "session", active: n === "session", onClick: () => t.setViewMode("session") }),
|
|
2095
|
+
/* @__PURE__ */ a(Be, { label: "Diff", mode: "diff", active: n === "diff", onClick: () => t.setViewMode("diff") })
|
|
2085
2096
|
] }),
|
|
2086
|
-
i.length > 0 && /* @__PURE__ */ a("div", { style: J.sessionLinks, children: i.map((h) => /* @__PURE__ */
|
|
2097
|
+
i.length > 0 && /* @__PURE__ */ a("div", { style: J.sessionLinks, children: i.map((h) => /* @__PURE__ */ p(
|
|
2087
2098
|
"button",
|
|
2088
2099
|
{
|
|
2089
2100
|
style: J.sessionLink,
|
|
@@ -2099,7 +2110,7 @@ const se = E(
|
|
|
2099
2110
|
] });
|
|
2100
2111
|
}
|
|
2101
2112
|
);
|
|
2102
|
-
function
|
|
2113
|
+
function Be({ label: r, mode: e, active: t, onClick: n }) {
|
|
2103
2114
|
return /* @__PURE__ */ a(
|
|
2104
2115
|
"button",
|
|
2105
2116
|
{
|
|
@@ -2109,15 +2120,15 @@ function Ee({ label: r, mode: e, active: t, onClick: n }) {
|
|
|
2109
2120
|
}
|
|
2110
2121
|
);
|
|
2111
2122
|
}
|
|
2112
|
-
const Tr =
|
|
2123
|
+
const Tr = V(
|
|
2113
2124
|
{
|
|
2114
2125
|
model: u.const()
|
|
2115
2126
|
},
|
|
2116
2127
|
(r, e) => {
|
|
2117
2128
|
const t = e.model, n = t.leftSidebarVisible.read(r), s = t.rightSidebarVisible.read(r), o = t.isDarkTheme.read(r), i = t.selectedNode.read(r);
|
|
2118
|
-
return /* @__PURE__ */
|
|
2119
|
-
/* @__PURE__ */ a("div", { style:
|
|
2120
|
-
|
|
2129
|
+
return /* @__PURE__ */ p("div", { style: f.titleBar, children: [
|
|
2130
|
+
/* @__PURE__ */ a("div", { style: f.titleBarSection, children: /* @__PURE__ */ a(
|
|
2131
|
+
oe,
|
|
2121
2132
|
{
|
|
2122
2133
|
active: n,
|
|
2123
2134
|
onClick: t.toggleLeftSidebar,
|
|
@@ -2125,17 +2136,17 @@ const Tr = I(
|
|
|
2125
2136
|
children: /* @__PURE__ */ a(xr, {})
|
|
2126
2137
|
}
|
|
2127
2138
|
) }),
|
|
2128
|
-
/* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ p("div", { style: f.titleBarCenter, children: [
|
|
2129
2140
|
t.isReportMode ? /* @__PURE__ */ a("span", { style: { fontSize: 12, color: "var(--vscode-descriptionForeground)" }, children: "Screenshot Report" }) : t.daemonAvailable ? /* @__PURE__ */ a(Rr, { model: t }) : null,
|
|
2130
|
-
i ? /* @__PURE__ */
|
|
2141
|
+
i ? /* @__PURE__ */ p(ge, { children: [
|
|
2131
2142
|
/* @__PURE__ */ a("span", { style: { color: "var(--vscode-textLink-foreground)" }, children: "<" }),
|
|
2132
2143
|
/* @__PURE__ */ a("span", { children: i.name }),
|
|
2133
2144
|
/* @__PURE__ */ a("span", { style: { color: "var(--vscode-textLink-foreground)" }, children: "/>" })
|
|
2134
2145
|
] }) : /* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: "No component selected" })
|
|
2135
2146
|
] }),
|
|
2136
|
-
/* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ p("div", { style: f.titleBarSection, children: [
|
|
2137
2148
|
/* @__PURE__ */ a(
|
|
2138
|
-
|
|
2149
|
+
oe,
|
|
2139
2150
|
{
|
|
2140
2151
|
active: !1,
|
|
2141
2152
|
onClick: t.toggleTheme,
|
|
@@ -2144,7 +2155,7 @@ const Tr = I(
|
|
|
2144
2155
|
}
|
|
2145
2156
|
),
|
|
2146
2157
|
/* @__PURE__ */ a(
|
|
2147
|
-
|
|
2158
|
+
oe,
|
|
2148
2159
|
{
|
|
2149
2160
|
active: s,
|
|
2150
2161
|
onClick: t.toggleRightSidebar,
|
|
@@ -2199,22 +2210,22 @@ const Tr = I(
|
|
|
2199
2210
|
color: "var(--vscode-textLink-foreground)",
|
|
2200
2211
|
cursor: "pointer"
|
|
2201
2212
|
}
|
|
2202
|
-
},
|
|
2213
|
+
}, it = V(
|
|
2203
2214
|
{
|
|
2204
2215
|
model: u.const(),
|
|
2205
2216
|
nodes: u.const(),
|
|
2206
2217
|
depth: u.const()
|
|
2207
2218
|
},
|
|
2208
|
-
(r, e) => /* @__PURE__ */ a(
|
|
2219
|
+
(r, e) => /* @__PURE__ */ a(ge, { children: e.nodes.map((t) => /* @__PURE__ */ a(Or, { model: e.model, node: t, depth: e.depth }, t.id)) })
|
|
2209
2220
|
);
|
|
2210
|
-
class Ir extends
|
|
2221
|
+
class Ir extends B({
|
|
2211
2222
|
model: u.const(),
|
|
2212
2223
|
node: u.const(),
|
|
2213
2224
|
depth: u.const()
|
|
2214
2225
|
}) {
|
|
2215
2226
|
constructor() {
|
|
2216
2227
|
super(...arguments);
|
|
2217
|
-
l(this, "isHovered",
|
|
2228
|
+
l(this, "isHovered", w(this, !1));
|
|
2218
2229
|
l(this, "setHovered", (t) => {
|
|
2219
2230
|
this.isHovered.set(t, void 0);
|
|
2220
2231
|
});
|
|
@@ -2242,54 +2253,54 @@ class Ir extends F({
|
|
|
2242
2253
|
return !!(this.props.node.children && this.props.node.children.length > 0);
|
|
2243
2254
|
}
|
|
2244
2255
|
}
|
|
2245
|
-
const Or =
|
|
2246
|
-
const t = e.explorerModel, n = e.treeNode, s = e.treeDepth, o = !!(n.children && n.children.length > 0), i = o ? t.isNodeExpanded(n.id, r) : !1, c = t.selectedNodeId.read(r) === n.id, h = e.isHovered.read(r),
|
|
2247
|
-
|
|
2256
|
+
const Or = A(Ir, {}, (r, e) => {
|
|
2257
|
+
const t = e.explorerModel, n = e.treeNode, s = e.treeDepth, o = !!(n.children && n.children.length > 0), i = o ? t.isNodeExpanded(n.id, r) : !1, c = t.selectedNodeId.read(r) === n.id, h = e.isHovered.read(r), m = Se(
|
|
2258
|
+
f.treeItem,
|
|
2248
2259
|
{ paddingLeft: `${8 + s * 12}px` },
|
|
2249
|
-
c &&
|
|
2250
|
-
!c && h &&
|
|
2260
|
+
c && f.treeItemSelected,
|
|
2261
|
+
!c && h && f.treeItemHover
|
|
2251
2262
|
);
|
|
2252
|
-
return /* @__PURE__ */
|
|
2253
|
-
/* @__PURE__ */
|
|
2263
|
+
return /* @__PURE__ */ p(ge, { children: [
|
|
2264
|
+
/* @__PURE__ */ p(
|
|
2254
2265
|
"div",
|
|
2255
2266
|
{
|
|
2256
|
-
style:
|
|
2267
|
+
style: m,
|
|
2257
2268
|
onClick: e.handleClick,
|
|
2258
2269
|
onDoubleClick: e.handleDoubleClick,
|
|
2259
2270
|
onMouseEnter: () => e.setHovered(!0),
|
|
2260
2271
|
onMouseLeave: () => e.setHovered(!1),
|
|
2261
2272
|
children: [
|
|
2262
|
-
o ? /* @__PURE__ */ a("div", { style:
|
|
2263
|
-
/* @__PURE__ */ a("div", { style:
|
|
2264
|
-
/* @__PURE__ */ a("span", { style:
|
|
2265
|
-
o && /* @__PURE__ */ a("span", { style:
|
|
2273
|
+
o ? /* @__PURE__ */ a("div", { style: f.treeItemChevron, onClick: e.handleChevronClick, children: i ? /* @__PURE__ */ a(_r, {}) : /* @__PURE__ */ a(vr, {}) }) : /* @__PURE__ */ a("div", { style: f.treeItemChevronPlaceholder }),
|
|
2274
|
+
/* @__PURE__ */ a("div", { style: f.treeItemIcon, children: n.type === "folder" ? /* @__PURE__ */ a(yr, { style: { color: "var(--vscode-symbolIcon-folderForeground)" } }) : /* @__PURE__ */ a(br, { style: { color: "#deb45b" } }) }),
|
|
2275
|
+
/* @__PURE__ */ a("span", { style: f.treeItemLabel, children: n.name }),
|
|
2276
|
+
o && /* @__PURE__ */ a("span", { style: f.treeItemCount, children: n.children.length })
|
|
2266
2277
|
]
|
|
2267
2278
|
}
|
|
2268
2279
|
),
|
|
2269
|
-
o && i && /* @__PURE__ */ a(
|
|
2280
|
+
o && i && /* @__PURE__ */ a(it, { model: t, nodes: n.children, depth: s + 1 })
|
|
2270
2281
|
] });
|
|
2271
|
-
}), kr =
|
|
2282
|
+
}), kr = V(
|
|
2272
2283
|
{
|
|
2273
2284
|
model: u.const()
|
|
2274
2285
|
},
|
|
2275
2286
|
(r, e) => {
|
|
2276
2287
|
const t = e.model.tree.read(r);
|
|
2277
|
-
return /* @__PURE__ */
|
|
2278
|
-
/* @__PURE__ */ a("div", { style:
|
|
2279
|
-
/* @__PURE__ */ a("div", { style:
|
|
2288
|
+
return /* @__PURE__ */ p("div", { style: f.sidebar, children: [
|
|
2289
|
+
/* @__PURE__ */ a("div", { style: f.sidebarHeader, children: "Explorer" }),
|
|
2290
|
+
/* @__PURE__ */ a("div", { style: f.sidebarContent, children: /* @__PURE__ */ a(it, { model: e.model, nodes: [t], depth: 0 }) })
|
|
2280
2291
|
] });
|
|
2281
2292
|
}
|
|
2282
2293
|
);
|
|
2283
|
-
class Vr extends
|
|
2294
|
+
class Vr extends B({}) {
|
|
2284
2295
|
constructor() {
|
|
2285
2296
|
super(...arguments);
|
|
2286
|
-
l(this, "checked",
|
|
2297
|
+
l(this, "checked", w(this, !1));
|
|
2287
2298
|
l(this, "toggle", () => {
|
|
2288
2299
|
this.checked.set(!this.checked.get(), void 0);
|
|
2289
2300
|
});
|
|
2290
2301
|
}
|
|
2291
2302
|
}
|
|
2292
|
-
const Nr =
|
|
2303
|
+
const Nr = A(Vr, {}, (r, e) => {
|
|
2293
2304
|
const t = e.checked.read(r), n = {
|
|
2294
2305
|
position: "relative",
|
|
2295
2306
|
width: "36px",
|
|
@@ -2310,13 +2321,13 @@ const Nr = E(Vr, {}, (r, e) => {
|
|
|
2310
2321
|
transition: "left 0.2s"
|
|
2311
2322
|
};
|
|
2312
2323
|
return /* @__PURE__ */ a("div", { style: n, onClick: e.toggle, children: /* @__PURE__ */ a("div", { style: s }) });
|
|
2313
|
-
}),
|
|
2324
|
+
}), Mr = V(
|
|
2314
2325
|
{
|
|
2315
2326
|
node: u.const()
|
|
2316
2327
|
},
|
|
2317
|
-
(r, e) => e.node.type !== "component" ? /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--vscode-descriptionForeground)", fontSize: "12px" }, children: "Select a component (not a folder) to view its properties" }) : /* @__PURE__ */
|
|
2318
|
-
/* @__PURE__ */
|
|
2319
|
-
/* @__PURE__ */
|
|
2328
|
+
(r, e) => e.node.type !== "component" ? /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--vscode-descriptionForeground)", fontSize: "12px" }, children: "Select a component (not a folder) to view its properties" }) : /* @__PURE__ */ p("div", { style: f.propertiesPanel, children: [
|
|
2329
|
+
/* @__PURE__ */ p("div", { style: f.propertyRow, children: [
|
|
2330
|
+
/* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
|
|
2320
2331
|
"children",
|
|
2321
2332
|
/* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : string" })
|
|
2322
2333
|
] }),
|
|
@@ -2324,60 +2335,60 @@ const Nr = E(Vr, {}, (r, e) => {
|
|
|
2324
2335
|
"input",
|
|
2325
2336
|
{
|
|
2326
2337
|
type: "text",
|
|
2327
|
-
style:
|
|
2338
|
+
style: f.propertyInput,
|
|
2328
2339
|
defaultValue: "Click me",
|
|
2329
2340
|
placeholder: "Enter text..."
|
|
2330
2341
|
}
|
|
2331
2342
|
),
|
|
2332
|
-
/* @__PURE__ */ a("div", { style:
|
|
2343
|
+
/* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Button text content" })
|
|
2333
2344
|
] }),
|
|
2334
|
-
/* @__PURE__ */
|
|
2335
|
-
/* @__PURE__ */
|
|
2345
|
+
/* @__PURE__ */ p("div", { style: f.propertyRow, children: [
|
|
2346
|
+
/* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
|
|
2336
2347
|
"variant",
|
|
2337
2348
|
/* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : select" })
|
|
2338
2349
|
] }),
|
|
2339
|
-
/* @__PURE__ */
|
|
2350
|
+
/* @__PURE__ */ p("select", { style: f.propertySelect, defaultValue: "default", children: [
|
|
2340
2351
|
/* @__PURE__ */ a("option", { value: "default", children: "default" }),
|
|
2341
2352
|
/* @__PURE__ */ a("option", { value: "primary", children: "primary" }),
|
|
2342
2353
|
/* @__PURE__ */ a("option", { value: "secondary", children: "secondary" }),
|
|
2343
2354
|
/* @__PURE__ */ a("option", { value: "destructive", children: "destructive" })
|
|
2344
2355
|
] }),
|
|
2345
|
-
/* @__PURE__ */ a("div", { style:
|
|
2356
|
+
/* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Visual style variant" })
|
|
2346
2357
|
] }),
|
|
2347
|
-
/* @__PURE__ */
|
|
2348
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ p("div", { style: f.propertyRow, children: [
|
|
2359
|
+
/* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
|
|
2349
2360
|
"size",
|
|
2350
2361
|
/* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : select" })
|
|
2351
2362
|
] }),
|
|
2352
|
-
/* @__PURE__ */
|
|
2363
|
+
/* @__PURE__ */ p("select", { style: f.propertySelect, defaultValue: "default", children: [
|
|
2353
2364
|
/* @__PURE__ */ a("option", { value: "sm", children: "sm" }),
|
|
2354
2365
|
/* @__PURE__ */ a("option", { value: "default", children: "default" }),
|
|
2355
2366
|
/* @__PURE__ */ a("option", { value: "lg", children: "lg" })
|
|
2356
2367
|
] }),
|
|
2357
|
-
/* @__PURE__ */ a("div", { style:
|
|
2368
|
+
/* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Button size" })
|
|
2358
2369
|
] }),
|
|
2359
|
-
/* @__PURE__ */
|
|
2360
|
-
/* @__PURE__ */
|
|
2370
|
+
/* @__PURE__ */ p("div", { style: f.propertyRow, children: [
|
|
2371
|
+
/* @__PURE__ */ p("div", { style: f.propertyLabel, children: [
|
|
2361
2372
|
"disabled",
|
|
2362
2373
|
/* @__PURE__ */ a("span", { style: { color: "var(--vscode-descriptionForeground)" }, children: " : boolean" })
|
|
2363
2374
|
] }),
|
|
2364
2375
|
/* @__PURE__ */ a(Nr, {}),
|
|
2365
|
-
/* @__PURE__ */ a("div", { style:
|
|
2376
|
+
/* @__PURE__ */ a("div", { style: f.propertyDescription, children: "Disable the button" })
|
|
2366
2377
|
] })
|
|
2367
2378
|
] })
|
|
2368
|
-
),
|
|
2379
|
+
), Dr = V(
|
|
2369
2380
|
{
|
|
2370
2381
|
selectedNode: u.const()
|
|
2371
2382
|
},
|
|
2372
|
-
(r, e) => /* @__PURE__ */
|
|
2373
|
-
/* @__PURE__ */
|
|
2383
|
+
(r, e) => /* @__PURE__ */ p("div", { style: Se(f.sidebar, f.sidebarRight), children: [
|
|
2384
|
+
/* @__PURE__ */ p("div", { style: f.sidebarHeader, children: [
|
|
2374
2385
|
/* @__PURE__ */ a("span", { style: { marginRight: "6px", color: "var(--vscode-textLink-foreground)" }, children: "</>" }),
|
|
2375
2386
|
"Props"
|
|
2376
2387
|
] }),
|
|
2377
|
-
/* @__PURE__ */ a("div", { style:
|
|
2388
|
+
/* @__PURE__ */ a("div", { style: f.sidebarContent, children: e.selectedNode ? /* @__PURE__ */ a(Mr, { node: e.selectedNode }) : /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--vscode-descriptionForeground)", fontSize: "12px" }, children: "Select a component to view its properties" }) })
|
|
2378
2389
|
] })
|
|
2379
2390
|
);
|
|
2380
|
-
class Fr extends
|
|
2391
|
+
class Fr extends B({
|
|
2381
2392
|
fixture: u.const(),
|
|
2382
2393
|
compact: u.const()
|
|
2383
2394
|
}) {
|
|
@@ -2389,8 +2400,8 @@ class Fr extends F({
|
|
|
2389
2400
|
l(this, "_renderResult", null);
|
|
2390
2401
|
l(this, "_abortController", null);
|
|
2391
2402
|
l(this, "_resizeObserver", null);
|
|
2392
|
-
l(this, "measuredWidth",
|
|
2393
|
-
l(this, "measuredHeight",
|
|
2403
|
+
l(this, "measuredWidth", w(this, void 0));
|
|
2404
|
+
l(this, "measuredHeight", w(this, void 0));
|
|
2394
2405
|
l(this, "setContainerRef", (t) => {
|
|
2395
2406
|
if (t === this._containerRef || (this._cleanup(), this._containerRef = t, !t)) return;
|
|
2396
2407
|
const n = this.fixture.component;
|
|
@@ -2465,34 +2476,34 @@ class Fr extends F({
|
|
|
2465
2476
|
this._cleanup();
|
|
2466
2477
|
}
|
|
2467
2478
|
}
|
|
2468
|
-
const
|
|
2479
|
+
const at = A(
|
|
2469
2480
|
Fr,
|
|
2470
2481
|
{},
|
|
2471
2482
|
(r, e) => {
|
|
2472
2483
|
const t = e.fixture, n = t.component, s = n.displayMode, o = e.measuredWidth.read(r), i = e.measuredHeight.read(r), d = e.compact;
|
|
2473
2484
|
let c;
|
|
2474
2485
|
if (s.type === "page") {
|
|
2475
|
-
const
|
|
2486
|
+
const R = s.viewports[0], g = wt(R);
|
|
2476
2487
|
c = {
|
|
2477
|
-
width:
|
|
2478
|
-
height:
|
|
2488
|
+
width: g.width,
|
|
2489
|
+
height: g.height,
|
|
2479
2490
|
overflow: "auto"
|
|
2480
2491
|
};
|
|
2481
2492
|
} else
|
|
2482
2493
|
c = {
|
|
2483
2494
|
display: "inline-block"
|
|
2484
2495
|
};
|
|
2485
|
-
const h = o && i ? `${o} × ${i}` : "",
|
|
2486
|
-
return /* @__PURE__ */
|
|
2487
|
-
/* @__PURE__ */
|
|
2488
|
-
/* @__PURE__ */ a("span", { style:
|
|
2496
|
+
const h = o && i ? `${o} × ${i}` : "", m = d ? G.wrapperCompact : G.wrapper, v = d ? G.nameCompact : G.name;
|
|
2497
|
+
return /* @__PURE__ */ p("div", { style: m, children: [
|
|
2498
|
+
/* @__PURE__ */ p("div", { style: G.labelRow, children: [
|
|
2499
|
+
/* @__PURE__ */ a("span", { style: v, children: t.name }),
|
|
2489
2500
|
!d && h && /* @__PURE__ */ a("span", { style: G.dimensions, children: h })
|
|
2490
2501
|
] }),
|
|
2491
2502
|
/* @__PURE__ */ a("div", { style: zr(n.background), children: /* @__PURE__ */ a("div", { ref: e.setContainerRef, style: c }) })
|
|
2492
2503
|
] });
|
|
2493
2504
|
}
|
|
2494
2505
|
), W = 8;
|
|
2495
|
-
function
|
|
2506
|
+
function dt(r, e) {
|
|
2496
2507
|
return `
|
|
2497
2508
|
linear-gradient(45deg, ${e} 25%, transparent 25%),
|
|
2498
2509
|
linear-gradient(-45deg, ${e} 25%, transparent 25%),
|
|
@@ -2502,17 +2513,19 @@ function at(r, e) {
|
|
|
2502
2513
|
}
|
|
2503
2514
|
const Er = {
|
|
2504
2515
|
backgroundColor: "#ffffff",
|
|
2505
|
-
backgroundImage:
|
|
2516
|
+
backgroundImage: dt("#ffffff", "#e5e5e5")
|
|
2506
2517
|
}, Br = {
|
|
2507
2518
|
backgroundColor: "#1e1e1e",
|
|
2508
|
-
backgroundImage:
|
|
2519
|
+
backgroundImage: dt("#1e1e1e", "#2d2d2d")
|
|
2509
2520
|
}, Ar = {
|
|
2510
2521
|
display: "inline-block",
|
|
2511
2522
|
padding: "12px",
|
|
2512
2523
|
borderRadius: "4px",
|
|
2513
2524
|
backgroundSize: `${W * 2}px ${W * 2}px`,
|
|
2514
2525
|
backgroundPosition: `0 0, 0 ${W}px, ${W}px -${W}px, -${W}px 0`,
|
|
2515
|
-
boxShadow: "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08)"
|
|
2526
|
+
boxShadow: "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08)",
|
|
2527
|
+
overflow: "hidden",
|
|
2528
|
+
position: "relative"
|
|
2516
2529
|
};
|
|
2517
2530
|
function zr(r) {
|
|
2518
2531
|
const e = r === "dark" ? Br : Er;
|
|
@@ -2551,16 +2564,16 @@ const G = {
|
|
|
2551
2564
|
fontFamily: "var(--vscode-editor-font-family, monospace)"
|
|
2552
2565
|
}
|
|
2553
2566
|
};
|
|
2554
|
-
class $r extends
|
|
2567
|
+
class $r extends B({
|
|
2555
2568
|
fixtureId: u.const(),
|
|
2556
2569
|
sessionName: u.const(),
|
|
2557
2570
|
daemon: u.const()
|
|
2558
2571
|
}) {
|
|
2559
2572
|
constructor(t) {
|
|
2560
2573
|
super(t);
|
|
2561
|
-
l(this, "screenshot",
|
|
2574
|
+
l(this, "screenshot", w(this, { status: "idle" }));
|
|
2562
2575
|
l(this, "_fetchVersion", 0);
|
|
2563
|
-
this._store.add(
|
|
2576
|
+
this._store.add(Qe((n) => {
|
|
2564
2577
|
this.props.daemon.sourceTreeIds.read(n).get(this.props.sessionName) && this._fetchScreenshot();
|
|
2565
2578
|
}));
|
|
2566
2579
|
}
|
|
@@ -2578,7 +2591,7 @@ class $r extends F({
|
|
|
2578
2591
|
}
|
|
2579
2592
|
}
|
|
2580
2593
|
}
|
|
2581
|
-
const
|
|
2594
|
+
const Ae = A(
|
|
2582
2595
|
$r,
|
|
2583
2596
|
{},
|
|
2584
2597
|
(r, e) => {
|
|
@@ -2640,7 +2653,7 @@ const Be = E(
|
|
|
2640
2653
|
border: "1px solid var(--vscode-panel-border)"
|
|
2641
2654
|
}
|
|
2642
2655
|
};
|
|
2643
|
-
class Lr extends
|
|
2656
|
+
class Lr extends B({
|
|
2644
2657
|
fixtureId: u.const(),
|
|
2645
2658
|
daemon: u.const(),
|
|
2646
2659
|
baselineSession: u.const(),
|
|
@@ -2648,8 +2661,8 @@ class Lr extends F({
|
|
|
2648
2661
|
}) {
|
|
2649
2662
|
constructor(t) {
|
|
2650
2663
|
super(t);
|
|
2651
|
-
l(this, "comparisonStatus",
|
|
2652
|
-
this._store.add(
|
|
2664
|
+
l(this, "comparisonStatus", w(this, { status: "loading" }));
|
|
2665
|
+
this._store.add(Qe((n) => {
|
|
2653
2666
|
const s = this.props.daemon.sourceTreeIds.read(n), o = s.get(this.props.baselineSession), i = s.get(this.props.currentSession);
|
|
2654
2667
|
o && i && this._fetchComparison();
|
|
2655
2668
|
}));
|
|
@@ -2680,21 +2693,21 @@ class Lr extends F({
|
|
|
2680
2693
|
}
|
|
2681
2694
|
}
|
|
2682
2695
|
}
|
|
2683
|
-
const Hr =
|
|
2696
|
+
const Hr = A(
|
|
2684
2697
|
Lr,
|
|
2685
2698
|
{},
|
|
2686
2699
|
(r, e) => {
|
|
2687
|
-
const t = e.comparisonStatus.read(r), n = t.status === "loading" ? /* @__PURE__ */ a("span", { style:
|
|
2688
|
-
return /* @__PURE__ */
|
|
2689
|
-
/* @__PURE__ */
|
|
2690
|
-
/* @__PURE__ */ a("span", { style:
|
|
2700
|
+
const t = e.comparisonStatus.read(r), n = t.status === "loading" ? /* @__PURE__ */ a("span", { style: T.badgeLoading, children: "comparing..." }) : t.status === "error" ? /* @__PURE__ */ a("span", { style: T.badgeError, children: "error" }) : t.match ? /* @__PURE__ */ a("span", { style: T.badgeMatch, children: "✓ match" }) : /* @__PURE__ */ a("span", { style: T.badgeChanged, children: "● changed" });
|
|
2701
|
+
return /* @__PURE__ */ p("div", { style: T.fixtureRow, children: [
|
|
2702
|
+
/* @__PURE__ */ p("div", { style: T.fixtureLabel, children: [
|
|
2703
|
+
/* @__PURE__ */ a("span", { style: T.fixtureName, children: e.fixtureId }),
|
|
2691
2704
|
n
|
|
2692
2705
|
] }),
|
|
2693
|
-
/* @__PURE__ */
|
|
2694
|
-
/* @__PURE__ */
|
|
2695
|
-
/* @__PURE__ */ a("span", { style:
|
|
2706
|
+
/* @__PURE__ */ p("div", { style: T.sideBySide, children: [
|
|
2707
|
+
/* @__PURE__ */ p("div", { style: T.screenshotColumn, children: [
|
|
2708
|
+
/* @__PURE__ */ a("span", { style: T.columnLabel, children: "Current" }),
|
|
2696
2709
|
/* @__PURE__ */ a(
|
|
2697
|
-
|
|
2710
|
+
Ae,
|
|
2698
2711
|
{
|
|
2699
2712
|
fixtureId: e.fixtureId,
|
|
2700
2713
|
sessionName: e.currentSession,
|
|
@@ -2702,10 +2715,10 @@ const Hr = E(
|
|
|
2702
2715
|
}
|
|
2703
2716
|
)
|
|
2704
2717
|
] }),
|
|
2705
|
-
/* @__PURE__ */
|
|
2706
|
-
/* @__PURE__ */ a("span", { style:
|
|
2718
|
+
/* @__PURE__ */ p("div", { style: T.screenshotColumn, children: [
|
|
2719
|
+
/* @__PURE__ */ a("span", { style: T.columnLabel, children: "Baseline" }),
|
|
2707
2720
|
/* @__PURE__ */ a(
|
|
2708
|
-
|
|
2721
|
+
Ae,
|
|
2709
2722
|
{
|
|
2710
2723
|
fixtureId: e.fixtureId,
|
|
2711
2724
|
sessionName: e.baselineSession,
|
|
@@ -2716,7 +2729,7 @@ const Hr = E(
|
|
|
2716
2729
|
] })
|
|
2717
2730
|
] });
|
|
2718
2731
|
}
|
|
2719
|
-
), jr =
|
|
2732
|
+
), jr = V(
|
|
2720
2733
|
{
|
|
2721
2734
|
name: u.const(),
|
|
2722
2735
|
path: u.const(),
|
|
@@ -2725,9 +2738,9 @@ const Hr = E(
|
|
|
2725
2738
|
baselineSession: u.const(),
|
|
2726
2739
|
currentSession: u.const()
|
|
2727
2740
|
},
|
|
2728
|
-
(r, e) => /* @__PURE__ */
|
|
2729
|
-
/* @__PURE__ */ a("div", { style:
|
|
2730
|
-
/* @__PURE__ */ a("div", { style:
|
|
2741
|
+
(r, e) => /* @__PURE__ */ p("div", { children: [
|
|
2742
|
+
/* @__PURE__ */ a("div", { style: T.groupHeader, children: /* @__PURE__ */ a("span", { style: T.groupTitle, children: e.path }) }),
|
|
2743
|
+
/* @__PURE__ */ a("div", { style: T.groupContent, children: e.items.map((t) => /* @__PURE__ */ a(
|
|
2731
2744
|
Hr,
|
|
2732
2745
|
{
|
|
2733
2746
|
fixtureId: t.fixtureId,
|
|
@@ -2738,7 +2751,7 @@ const Hr = E(
|
|
|
2738
2751
|
t.fixtureId
|
|
2739
2752
|
)) })
|
|
2740
2753
|
] })
|
|
2741
|
-
),
|
|
2754
|
+
), T = {
|
|
2742
2755
|
groupHeader: {
|
|
2743
2756
|
marginBottom: 12
|
|
2744
2757
|
},
|
|
@@ -2807,7 +2820,7 @@ const Hr = E(
|
|
|
2807
2820
|
fontWeight: 500
|
|
2808
2821
|
}
|
|
2809
2822
|
}, q = 8;
|
|
2810
|
-
function
|
|
2823
|
+
function ct(r, e) {
|
|
2811
2824
|
return `
|
|
2812
2825
|
linear-gradient(45deg, ${e} 25%, transparent 25%),
|
|
2813
2826
|
linear-gradient(-45deg, ${e} 25%, transparent 25%),
|
|
@@ -2817,10 +2830,10 @@ function dt(r, e) {
|
|
|
2817
2830
|
}
|
|
2818
2831
|
const Ur = {
|
|
2819
2832
|
backgroundColor: "#ffffff",
|
|
2820
|
-
backgroundImage:
|
|
2833
|
+
backgroundImage: ct("#ffffff", "#e5e5e5")
|
|
2821
2834
|
}, Pr = {
|
|
2822
2835
|
backgroundColor: "#1e1e1e",
|
|
2823
|
-
backgroundImage:
|
|
2836
|
+
backgroundImage: ct("#1e1e1e", "#2d2d2d")
|
|
2824
2837
|
}, Wr = {
|
|
2825
2838
|
display: "inline-block",
|
|
2826
2839
|
padding: "12px",
|
|
@@ -2837,26 +2850,26 @@ function Gr(r) {
|
|
|
2837
2850
|
backgroundImage: e.backgroundImage
|
|
2838
2851
|
};
|
|
2839
2852
|
}
|
|
2840
|
-
function
|
|
2841
|
-
return /* @__PURE__ */ a("div", { style: Gr(t), children: /* @__PURE__ */ a("img", { src: r, alt: e, style:
|
|
2853
|
+
function ze({ src: r, alt: e, background: t }) {
|
|
2854
|
+
return /* @__PURE__ */ a("div", { style: Gr(t), children: /* @__PURE__ */ a("img", { src: r, alt: e, style: S.image }) });
|
|
2842
2855
|
}
|
|
2843
|
-
const qr =
|
|
2856
|
+
const qr = V(
|
|
2844
2857
|
{
|
|
2845
2858
|
item: u.const(),
|
|
2846
2859
|
reportModel: u.const()
|
|
2847
2860
|
},
|
|
2848
2861
|
(r, e) => {
|
|
2849
|
-
const { item: t, reportModel: n } = e, { entry: s } = t, o = s.background ?? "light", i = s.status === "unchanged" ? /* @__PURE__ */ a("span", { style:
|
|
2850
|
-
return /* @__PURE__ */
|
|
2851
|
-
/* @__PURE__ */
|
|
2852
|
-
/* @__PURE__ */ a("span", { style:
|
|
2862
|
+
const { item: t, reportModel: n } = e, { entry: s } = t, o = s.background ?? "light", i = s.status === "unchanged" ? /* @__PURE__ */ a("span", { style: S.badgeMatch, children: "✓ match" }) : s.status === "changed" ? /* @__PURE__ */ a("span", { style: S.badgeChanged, children: "● changed" }) : /* @__PURE__ */ a("span", { style: S.badgeAdded, children: "+ added" }), d = s.baselineScreenshot || s.currentScreenshot;
|
|
2863
|
+
return /* @__PURE__ */ p("div", { style: S.fixtureRow, children: [
|
|
2864
|
+
/* @__PURE__ */ p("div", { style: S.fixtureLabel, children: [
|
|
2865
|
+
/* @__PURE__ */ a("span", { style: S.fixtureName, children: t.fixtureId }),
|
|
2853
2866
|
i
|
|
2854
2867
|
] }),
|
|
2855
|
-
d && /* @__PURE__ */
|
|
2856
|
-
s.baselineScreenshot && /* @__PURE__ */
|
|
2857
|
-
/* @__PURE__ */ a("span", { style:
|
|
2868
|
+
d && /* @__PURE__ */ p("div", { style: S.sideBySide, children: [
|
|
2869
|
+
s.baselineScreenshot && /* @__PURE__ */ p("div", { style: S.screenshotColumn, children: [
|
|
2870
|
+
/* @__PURE__ */ a("span", { style: S.columnLabel, children: "Baseline" }),
|
|
2858
2871
|
/* @__PURE__ */ a(
|
|
2859
|
-
|
|
2872
|
+
ze,
|
|
2860
2873
|
{
|
|
2861
2874
|
src: n.resolveScreenshotUrl(s.baselineScreenshot),
|
|
2862
2875
|
alt: `Baseline screenshot of ${t.fixtureId}`,
|
|
@@ -2864,10 +2877,10 @@ const qr = I(
|
|
|
2864
2877
|
}
|
|
2865
2878
|
)
|
|
2866
2879
|
] }),
|
|
2867
|
-
s.currentScreenshot && /* @__PURE__ */
|
|
2868
|
-
/* @__PURE__ */ a("span", { style:
|
|
2880
|
+
s.currentScreenshot && /* @__PURE__ */ p("div", { style: S.screenshotColumn, children: [
|
|
2881
|
+
/* @__PURE__ */ a("span", { style: S.columnLabel, children: "Current" }),
|
|
2869
2882
|
/* @__PURE__ */ a(
|
|
2870
|
-
|
|
2883
|
+
ze,
|
|
2871
2884
|
{
|
|
2872
2885
|
src: n.resolveScreenshotUrl(s.currentScreenshot),
|
|
2873
2886
|
alt: `Current screenshot of ${t.fixtureId}`,
|
|
@@ -2876,22 +2889,22 @@ const qr = I(
|
|
|
2876
2889
|
)
|
|
2877
2890
|
] })
|
|
2878
2891
|
] }),
|
|
2879
|
-
!d && s.status === "unchanged" && /* @__PURE__ */ a("div", { style:
|
|
2892
|
+
!d && s.status === "unchanged" && /* @__PURE__ */ a("div", { style: S.hashRow, children: /* @__PURE__ */ p("span", { style: S.hashText, children: [
|
|
2880
2893
|
"hash: ",
|
|
2881
2894
|
s.targetHash
|
|
2882
2895
|
] }) })
|
|
2883
2896
|
] });
|
|
2884
2897
|
}
|
|
2885
|
-
), Kr =
|
|
2898
|
+
), Kr = V(
|
|
2886
2899
|
{
|
|
2887
2900
|
name: u.const(),
|
|
2888
2901
|
path: u.const(),
|
|
2889
2902
|
items: u.const(),
|
|
2890
2903
|
reportModel: u.const()
|
|
2891
2904
|
},
|
|
2892
|
-
(r, e) => /* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */ a("div", { style:
|
|
2894
|
-
/* @__PURE__ */ a("div", { style:
|
|
2905
|
+
(r, e) => /* @__PURE__ */ p("div", { children: [
|
|
2906
|
+
/* @__PURE__ */ a("div", { style: S.groupHeader, children: /* @__PURE__ */ a("span", { style: S.groupTitle, children: e.path }) }),
|
|
2907
|
+
/* @__PURE__ */ a("div", { style: S.groupContent, children: e.items.map((t) => /* @__PURE__ */ a(
|
|
2895
2908
|
qr,
|
|
2896
2909
|
{
|
|
2897
2910
|
item: t,
|
|
@@ -2900,7 +2913,7 @@ const qr = I(
|
|
|
2900
2913
|
t.fixtureId
|
|
2901
2914
|
)) })
|
|
2902
2915
|
] })
|
|
2903
|
-
),
|
|
2916
|
+
), S = {
|
|
2904
2917
|
groupHeader: {
|
|
2905
2918
|
marginBottom: 12
|
|
2906
2919
|
},
|
|
@@ -2972,37 +2985,37 @@ const qr = I(
|
|
|
2972
2985
|
color: "var(--vscode-testing-iconQueued)",
|
|
2973
2986
|
fontWeight: 500
|
|
2974
2987
|
}
|
|
2975
|
-
},
|
|
2976
|
-
let
|
|
2977
|
-
function
|
|
2978
|
-
if (
|
|
2988
|
+
}, lt = "component-explorer:fixtureHeights", $e = 500;
|
|
2989
|
+
let M = null;
|
|
2990
|
+
function ht() {
|
|
2991
|
+
if (M !== null) return M;
|
|
2979
2992
|
try {
|
|
2980
|
-
const r = localStorage.getItem(
|
|
2993
|
+
const r = localStorage.getItem(lt);
|
|
2981
2994
|
if (r)
|
|
2982
|
-
return
|
|
2995
|
+
return M = JSON.parse(r), M;
|
|
2983
2996
|
} catch {
|
|
2984
2997
|
}
|
|
2985
|
-
return
|
|
2998
|
+
return M = {}, M;
|
|
2986
2999
|
}
|
|
2987
3000
|
function Jr() {
|
|
2988
|
-
if (
|
|
3001
|
+
if (M !== null)
|
|
2989
3002
|
try {
|
|
2990
|
-
const r = Object.entries(
|
|
2991
|
-
r.length >
|
|
3003
|
+
const r = Object.entries(M);
|
|
3004
|
+
r.length > $e && (M = Object.fromEntries(r.slice(-$e))), localStorage.setItem(lt, JSON.stringify(M));
|
|
2992
3005
|
} catch {
|
|
2993
3006
|
}
|
|
2994
3007
|
}
|
|
2995
3008
|
function Zr(r, e) {
|
|
2996
|
-
const t =
|
|
3009
|
+
const t = ht();
|
|
2997
3010
|
t[r] = e, Jr();
|
|
2998
3011
|
}
|
|
2999
3012
|
function Xr() {
|
|
3000
|
-
return new Map(Object.entries(
|
|
3013
|
+
return new Map(Object.entries(ht()));
|
|
3001
3014
|
}
|
|
3002
|
-
const Yr = 280, Qr = 32,
|
|
3003
|
-
function
|
|
3015
|
+
const Yr = 280, Qr = 32, ne = 32, Le = 400, ut = "component-explorer:scrollAnchors", He = 100;
|
|
3016
|
+
function pt() {
|
|
3004
3017
|
try {
|
|
3005
|
-
const r = localStorage.getItem(
|
|
3018
|
+
const r = localStorage.getItem(ut);
|
|
3006
3019
|
if (r) return JSON.parse(r);
|
|
3007
3020
|
} catch {
|
|
3008
3021
|
}
|
|
@@ -3010,22 +3023,22 @@ function ut() {
|
|
|
3010
3023
|
}
|
|
3011
3024
|
function en(r, e) {
|
|
3012
3025
|
try {
|
|
3013
|
-
const t =
|
|
3026
|
+
const t = pt();
|
|
3014
3027
|
t[r] = e;
|
|
3015
|
-
const n = Object.entries(t), s = n.length >
|
|
3016
|
-
localStorage.setItem(
|
|
3028
|
+
const n = Object.entries(t), s = n.length > He ? Object.fromEntries(n.slice(-He)) : t;
|
|
3029
|
+
localStorage.setItem(ut, JSON.stringify(s));
|
|
3017
3030
|
} catch {
|
|
3018
3031
|
}
|
|
3019
3032
|
}
|
|
3020
3033
|
function tn(r) {
|
|
3021
|
-
return
|
|
3034
|
+
return pt()[r];
|
|
3022
3035
|
}
|
|
3023
3036
|
function ft(r) {
|
|
3024
3037
|
return r.type === "single" ? r.fixture.id : r.id;
|
|
3025
3038
|
}
|
|
3026
3039
|
function rn(r, e) {
|
|
3027
3040
|
const t = new Array(r.length);
|
|
3028
|
-
let n =
|
|
3041
|
+
let n = ne;
|
|
3029
3042
|
for (let s = 0; s < r.length; s++) {
|
|
3030
3043
|
const o = e.get(ft(r[s])) ?? Yr;
|
|
3031
3044
|
t[s] = { top: n, height: o }, n += o + Qr;
|
|
@@ -3035,9 +3048,9 @@ function rn(r, e) {
|
|
|
3035
3048
|
function nn(r) {
|
|
3036
3049
|
if (r.length === 0) return 0;
|
|
3037
3050
|
const e = r[r.length - 1];
|
|
3038
|
-
return e.top + e.height +
|
|
3051
|
+
return e.top + e.height + ne;
|
|
3039
3052
|
}
|
|
3040
|
-
function
|
|
3053
|
+
function gt(r, e) {
|
|
3041
3054
|
let t = 0, n = r.length;
|
|
3042
3055
|
for (; t < n; ) {
|
|
3043
3056
|
const s = t + n >> 1;
|
|
@@ -3047,43 +3060,43 @@ function pt(r, e) {
|
|
|
3047
3060
|
}
|
|
3048
3061
|
function sn(r, e, t) {
|
|
3049
3062
|
if (r.length === 0) return { start: 0, end: 0 };
|
|
3050
|
-
const n =
|
|
3063
|
+
const n = gt(r, e - Le);
|
|
3051
3064
|
let s = n;
|
|
3052
|
-
const o = e + t +
|
|
3065
|
+
const o = e + t + Le;
|
|
3053
3066
|
for (; s < r.length && r[s].top < o; )
|
|
3054
3067
|
s++;
|
|
3055
3068
|
return { start: n, end: s };
|
|
3056
3069
|
}
|
|
3057
|
-
function
|
|
3070
|
+
function je(r, e) {
|
|
3058
3071
|
if (r.length === 0) return;
|
|
3059
|
-
const t =
|
|
3072
|
+
const t = gt(r, e), n = Math.min(t, r.length - 1);
|
|
3060
3073
|
return {
|
|
3061
3074
|
rowIndex: n,
|
|
3062
3075
|
offsetFromViewport: r[n].top - e
|
|
3063
3076
|
};
|
|
3064
3077
|
}
|
|
3065
|
-
function
|
|
3078
|
+
function Ue(r, e) {
|
|
3066
3079
|
return e.rowIndex >= r.length ? 0 : r[e.rowIndex].top - e.offsetFromViewport;
|
|
3067
3080
|
}
|
|
3068
|
-
class on extends
|
|
3081
|
+
class on extends B({
|
|
3069
3082
|
model: u.const()
|
|
3070
3083
|
}) {
|
|
3071
3084
|
constructor() {
|
|
3072
3085
|
super(...arguments);
|
|
3073
|
-
l(this, "_rowHeights",
|
|
3074
|
-
l(this, "_scrollTop",
|
|
3075
|
-
l(this, "_viewportHeight",
|
|
3086
|
+
l(this, "_rowHeights", w(this, Xr()));
|
|
3087
|
+
l(this, "_scrollTop", w(this, 0));
|
|
3088
|
+
l(this, "_viewportHeight", w(this, 0));
|
|
3076
3089
|
l(this, "_scrollContainerRef", null);
|
|
3077
3090
|
l(this, "_resizeObserver", null);
|
|
3078
3091
|
l(this, "_viewportResizeObserver", null);
|
|
3079
3092
|
l(this, "_currentNodeId");
|
|
3080
3093
|
l(this, "_scrollSaveTimeout", null);
|
|
3081
3094
|
l(this, "_suppressScrollHandler", !1);
|
|
3082
|
-
l(this, "layout",
|
|
3095
|
+
l(this, "layout", D(this, (t) => {
|
|
3083
3096
|
const n = this.explorerModel.selectedFixtures.read(t), s = this._rowHeights.read(t);
|
|
3084
3097
|
return rn(n, s);
|
|
3085
3098
|
}));
|
|
3086
|
-
l(this, "visibleRowRange",
|
|
3099
|
+
l(this, "visibleRowRange", D(this, (t) => {
|
|
3087
3100
|
const n = this.layout.read(t), s = this._scrollTop.read(t), o = this._viewportHeight.read(t);
|
|
3088
3101
|
return sn(n, s, o);
|
|
3089
3102
|
}));
|
|
@@ -3096,7 +3109,7 @@ class on extends F({
|
|
|
3096
3109
|
l(this, "_handleScroll", () => {
|
|
3097
3110
|
this._scrollContainerRef && (this._scrollTop.set(this._scrollContainerRef.scrollTop, void 0), !(this._suppressScrollHandler || !this._currentNodeId) && (this._scrollSaveTimeout && clearTimeout(this._scrollSaveTimeout), this._scrollSaveTimeout = setTimeout(() => {
|
|
3098
3111
|
if (!this._currentNodeId) return;
|
|
3099
|
-
const t = this.layout.get(), n =
|
|
3112
|
+
const t = this.layout.get(), n = je(t, this._scrollTop.get());
|
|
3100
3113
|
n && en(this._currentNodeId, n);
|
|
3101
3114
|
}, 150)));
|
|
3102
3115
|
});
|
|
@@ -3111,10 +3124,10 @@ class on extends F({
|
|
|
3111
3124
|
h > 0 && o.get(c) !== h && (i || (i = new Map(o)), i.set(c, h), Zr(c, h));
|
|
3112
3125
|
}
|
|
3113
3126
|
if (i) {
|
|
3114
|
-
const d = this.layout.get(), c =
|
|
3127
|
+
const d = this.layout.get(), c = je(d, this._scrollTop.get());
|
|
3115
3128
|
if (this._rowHeights.set(i, void 0), c && this._scrollContainerRef) {
|
|
3116
|
-
const h = this.layout.get(),
|
|
3117
|
-
this._suppressScrollHandler = !0, this._scrollContainerRef.scrollTop =
|
|
3129
|
+
const h = this.layout.get(), m = Ue(h, c);
|
|
3130
|
+
this._suppressScrollHandler = !0, this._scrollContainerRef.scrollTop = m, this._scrollTop.set(m, void 0), requestAnimationFrame(() => {
|
|
3118
3131
|
this._suppressScrollHandler = !1;
|
|
3119
3132
|
});
|
|
3120
3133
|
}
|
|
@@ -3132,7 +3145,7 @@ class on extends F({
|
|
|
3132
3145
|
if (!this._scrollContainerRef || !this._currentNodeId) return;
|
|
3133
3146
|
const t = tn(this._currentNodeId);
|
|
3134
3147
|
if (!t) return;
|
|
3135
|
-
const n = this.layout.get(), s =
|
|
3148
|
+
const n = this.layout.get(), s = Ue(n, t);
|
|
3136
3149
|
this._suppressScrollHandler = !0, this._scrollContainerRef.scrollTop = s, this._scrollTop.set(s, void 0), requestAnimationFrame(() => {
|
|
3137
3150
|
this._suppressScrollHandler = !1;
|
|
3138
3151
|
});
|
|
@@ -3142,7 +3155,7 @@ class on extends F({
|
|
|
3142
3155
|
(t = this._resizeObserver) == null || t.disconnect(), (n = this._viewportResizeObserver) == null || n.disconnect(), this._scrollContainerRef && this._scrollContainerRef.removeEventListener("scroll", this._handleScroll), this._scrollSaveTimeout && clearTimeout(this._scrollSaveTimeout);
|
|
3143
3156
|
}
|
|
3144
3157
|
}
|
|
3145
|
-
const an =
|
|
3158
|
+
const an = A(
|
|
3146
3159
|
on,
|
|
3147
3160
|
{},
|
|
3148
3161
|
(r, e) => {
|
|
@@ -3152,24 +3165,24 @@ const an = E(
|
|
|
3152
3165
|
if (c) {
|
|
3153
3166
|
const h = c.state.read(r);
|
|
3154
3167
|
if (h.status === "loading")
|
|
3155
|
-
return /* @__PURE__ */ a("div", { style:
|
|
3168
|
+
return /* @__PURE__ */ a("div", { style: N.emptyState, children: /* @__PURE__ */ a("span", { style: N.emptyText, children: "Loading report..." }) });
|
|
3156
3169
|
if (h.status === "error")
|
|
3157
|
-
return /* @__PURE__ */ a("div", { style:
|
|
3170
|
+
return /* @__PURE__ */ a("div", { style: N.emptyState, children: /* @__PURE__ */ p("span", { style: { ...N.emptyText, color: "var(--vscode-errorForeground)" }, children: [
|
|
3158
3171
|
"Failed to load report: ",
|
|
3159
3172
|
h.message
|
|
3160
3173
|
] }) });
|
|
3161
3174
|
}
|
|
3162
|
-
return /* @__PURE__ */ a("div", { style:
|
|
3175
|
+
return /* @__PURE__ */ a("div", { style: N.emptyState, children: /* @__PURE__ */ a("span", { style: N.emptyText, children: "Select a component or folder to preview" }) });
|
|
3163
3176
|
}
|
|
3164
3177
|
const d = nn(s);
|
|
3165
|
-
return /* @__PURE__ */ a("div", { ref: e.setScrollContainerRef, style:
|
|
3166
|
-
const
|
|
3178
|
+
return /* @__PURE__ */ a("div", { ref: e.setScrollContainerRef, style: N.scrollContainer, children: /* @__PURE__ */ a("div", { style: { position: "relative", height: d }, children: t.slice(o, i).map((c, h) => {
|
|
3179
|
+
const m = o + h, { top: v } = s[m], R = ft(c);
|
|
3167
3180
|
return /* @__PURE__ */ a(
|
|
3168
3181
|
"div",
|
|
3169
3182
|
{
|
|
3170
|
-
ref: (
|
|
3171
|
-
style: { position: "absolute", top:
|
|
3172
|
-
children: c.type === "single" ? /* @__PURE__ */ a(
|
|
3183
|
+
ref: (g) => e.observeRowElement(g, R),
|
|
3184
|
+
style: { position: "absolute", top: v, left: ne, right: ne },
|
|
3185
|
+
children: c.type === "single" ? /* @__PURE__ */ a(at, { fixture: c.fixture, compact: !1 }) : c.type === "variants" ? /* @__PURE__ */ a(dn, { row: c }) : c.type === "screenshot-comparison" && e.explorerModel.daemon ? /* @__PURE__ */ a(
|
|
3173
3186
|
jr,
|
|
3174
3187
|
{
|
|
3175
3188
|
name: c.name,
|
|
@@ -3189,20 +3202,20 @@ const an = E(
|
|
|
3189
3202
|
}
|
|
3190
3203
|
) : null
|
|
3191
3204
|
},
|
|
3192
|
-
|
|
3205
|
+
R
|
|
3193
3206
|
);
|
|
3194
3207
|
}) }) });
|
|
3195
3208
|
}
|
|
3196
|
-
), dn =
|
|
3209
|
+
), dn = V(
|
|
3197
3210
|
{ row: u.const() },
|
|
3198
3211
|
(r, e) => {
|
|
3199
3212
|
const t = e.row;
|
|
3200
|
-
return /* @__PURE__ */
|
|
3201
|
-
/* @__PURE__ */ a("div", { style:
|
|
3202
|
-
/* @__PURE__ */ a("div", { style:
|
|
3213
|
+
return /* @__PURE__ */ p("div", { children: [
|
|
3214
|
+
/* @__PURE__ */ a("div", { style: N.variantsHeader, children: /* @__PURE__ */ a("span", { style: N.variantsTitle, children: t.path }) }),
|
|
3215
|
+
/* @__PURE__ */ a("div", { style: N.variantsContent, children: t.fixtures.map((n) => /* @__PURE__ */ a(at, { fixture: n, compact: !0 }, n.id)) })
|
|
3203
3216
|
] });
|
|
3204
3217
|
}
|
|
3205
|
-
),
|
|
3218
|
+
), N = {
|
|
3206
3219
|
scrollContainer: {
|
|
3207
3220
|
flex: 1,
|
|
3208
3221
|
overflow: "auto",
|
|
@@ -3233,18 +3246,18 @@ const an = E(
|
|
|
3233
3246
|
flexWrap: "wrap",
|
|
3234
3247
|
gap: "16px"
|
|
3235
3248
|
}
|
|
3236
|
-
}, cn =
|
|
3249
|
+
}, cn = A(
|
|
3237
3250
|
gr,
|
|
3238
3251
|
{ daemonModel: u.const(), reportModel: u.const() },
|
|
3239
3252
|
(r, e) => {
|
|
3240
3253
|
const t = e.leftSidebarVisible.read(r), n = e.rightSidebarVisible.read(r), s = e.isDarkTheme.read(r), o = e.selectedNode.read(r);
|
|
3241
|
-
return /* @__PURE__ */
|
|
3254
|
+
return /* @__PURE__ */ p("div", { className: s ? "vscode-theme default-dark-plus" : "vscode-theme default-light-plus", style: f.container, children: [
|
|
3242
3255
|
t && /* @__PURE__ */ a(kr, { model: e }),
|
|
3243
|
-
/* @__PURE__ */
|
|
3256
|
+
/* @__PURE__ */ p("div", { style: f.centerArea, children: [
|
|
3244
3257
|
/* @__PURE__ */ a(Tr, { model: e }),
|
|
3245
3258
|
/* @__PURE__ */ a(an, { model: e })
|
|
3246
3259
|
] }),
|
|
3247
|
-
n && /* @__PURE__ */ a(
|
|
3260
|
+
n && /* @__PURE__ */ a(Dr, { selectedNode: o })
|
|
3248
3261
|
] });
|
|
3249
3262
|
}
|
|
3250
3263
|
);
|
|
@@ -3281,7 +3294,7 @@ var ln = class fe {
|
|
|
3281
3294
|
});
|
|
3282
3295
|
}
|
|
3283
3296
|
};
|
|
3284
|
-
function
|
|
3297
|
+
function pn(r, e) {
|
|
3285
3298
|
return new un(async (t, n) => {
|
|
3286
3299
|
var d;
|
|
3287
3300
|
const s = await fetch(`${r}/${t}`, {
|
|
@@ -3299,33 +3312,33 @@ function fn(r, e) {
|
|
|
3299
3312
|
}
|
|
3300
3313
|
const o = s.headers.get("Content-Type");
|
|
3301
3314
|
return o != null && o.startsWith("application/jsonl") ? ln.fromFn(async function* () {
|
|
3302
|
-
var
|
|
3303
|
-
const c = (
|
|
3315
|
+
var R;
|
|
3316
|
+
const c = (R = s.body) == null ? void 0 : R.getReader();
|
|
3304
3317
|
if (!c)
|
|
3305
3318
|
return;
|
|
3306
3319
|
let h = "";
|
|
3307
|
-
const
|
|
3320
|
+
const m = new TextDecoder("utf-8");
|
|
3308
3321
|
for (; ; ) {
|
|
3309
|
-
const { done:
|
|
3310
|
-
if (
|
|
3322
|
+
const { done: g, value: _ } = await c.read();
|
|
3323
|
+
if (g)
|
|
3311
3324
|
break;
|
|
3312
|
-
h +=
|
|
3313
|
-
let
|
|
3314
|
-
for (; (
|
|
3325
|
+
h += m.decode(_, { stream: !0 });
|
|
3326
|
+
let b;
|
|
3327
|
+
for (; (b = h.indexOf(`
|
|
3315
3328
|
`)) >= 0; ) {
|
|
3316
|
-
const
|
|
3317
|
-
h = h.slice(
|
|
3329
|
+
const y = h.slice(0, b).trim();
|
|
3330
|
+
h = h.slice(b + 1), y.length > 0 && (yield JSON.parse(y));
|
|
3318
3331
|
}
|
|
3319
3332
|
}
|
|
3320
|
-
const
|
|
3321
|
-
|
|
3333
|
+
const v = h.trim();
|
|
3334
|
+
v.length > 0 && (yield JSON.parse(v));
|
|
3322
3335
|
}) : await s.json();
|
|
3323
3336
|
});
|
|
3324
3337
|
}
|
|
3325
|
-
class
|
|
3338
|
+
class fn {
|
|
3326
3339
|
constructor(e) {
|
|
3327
|
-
l(this, "_sourceTreeIds",
|
|
3328
|
-
l(this, "_sessions",
|
|
3340
|
+
l(this, "_sourceTreeIds", w(this, /* @__PURE__ */ new Map()));
|
|
3341
|
+
l(this, "_sessions", w(this, []));
|
|
3329
3342
|
l(this, "_screenshotCache", /* @__PURE__ */ new Map());
|
|
3330
3343
|
l(this, "_client");
|
|
3331
3344
|
l(this, "_eventStreamAbort", null);
|
|
@@ -3334,7 +3347,7 @@ class pn {
|
|
|
3334
3347
|
l(this, "sourceTreeIds", this._sourceTreeIds);
|
|
3335
3348
|
/** Observable list of sessions from the daemon */
|
|
3336
3349
|
l(this, "sessions", this._sessions);
|
|
3337
|
-
this.config = e, this.sessionName = e.sessionName, this._client =
|
|
3350
|
+
this.config = e, this.sessionName = e.sessionName, this._client = pn("/__explorer/daemon-api");
|
|
3338
3351
|
}
|
|
3339
3352
|
/**
|
|
3340
3353
|
* Initializes the model: fetches initial session info and starts listening to events.
|
|
@@ -3437,7 +3450,7 @@ function gn() {
|
|
|
3437
3450
|
}
|
|
3438
3451
|
class mn {
|
|
3439
3452
|
constructor(e) {
|
|
3440
|
-
l(this, "state",
|
|
3453
|
+
l(this, "state", w(this, { status: "loading" }));
|
|
3441
3454
|
l(this, "_baseUrl");
|
|
3442
3455
|
this.reportUrl = e;
|
|
3443
3456
|
const t = e.lastIndexOf("/");
|
|
@@ -3478,8 +3491,8 @@ function vn(r) {
|
|
|
3478
3491
|
reportEntry: n
|
|
3479
3492
|
});
|
|
3480
3493
|
else {
|
|
3481
|
-
let
|
|
3482
|
-
|
|
3494
|
+
let m = o.children.find((v) => v.type === "folder" && v.name === d);
|
|
3495
|
+
m || (m = { id: h, name: d, type: "folder", children: [] }, o.children.push(m)), o = m;
|
|
3483
3496
|
}
|
|
3484
3497
|
}
|
|
3485
3498
|
}
|
|
@@ -3506,7 +3519,7 @@ class Vn {
|
|
|
3506
3519
|
const e = gn();
|
|
3507
3520
|
if (!e)
|
|
3508
3521
|
return;
|
|
3509
|
-
const t = new
|
|
3522
|
+
const t = new fn(e);
|
|
3510
3523
|
return t.initialize().catch((n) => {
|
|
3511
3524
|
console.error("[ExplorerApp] Failed to initialize DaemonModel:", n);
|
|
3512
3525
|
}), t;
|
|
@@ -3543,7 +3556,7 @@ export {
|
|
|
3543
3556
|
vr as ChevronRightIcon,
|
|
3544
3557
|
kn as CliRuntime,
|
|
3545
3558
|
br as ComponentIcon,
|
|
3546
|
-
|
|
3559
|
+
fn as DaemonModel,
|
|
3547
3560
|
cn as Explorer,
|
|
3548
3561
|
Vn as ExplorerApp,
|
|
3549
3562
|
gr as ExplorerModel,
|
|
@@ -3554,37 +3567,37 @@ export {
|
|
|
3554
3567
|
xr as PanelLeftIcon,
|
|
3555
3568
|
Cr as PanelRightIcon,
|
|
3556
3569
|
mn as ReportModel,
|
|
3557
|
-
|
|
3570
|
+
Dr as RightSidebar,
|
|
3558
3571
|
Sr as SunIcon,
|
|
3559
3572
|
Tr as TitleBar,
|
|
3560
|
-
|
|
3573
|
+
oe as TitleBarButton,
|
|
3561
3574
|
Or as TreeItem,
|
|
3562
|
-
|
|
3575
|
+
it as TreeView,
|
|
3563
3576
|
St as VIEWPORT_SIZES,
|
|
3564
|
-
|
|
3577
|
+
Dn as asyncRender,
|
|
3565
3578
|
It as collectComponents,
|
|
3566
|
-
|
|
3567
|
-
|
|
3579
|
+
Oe as createComponentDefinition,
|
|
3580
|
+
ie as createFixtureTree,
|
|
3568
3581
|
Fn as defineFixture,
|
|
3569
3582
|
En as defineFixtureGroup,
|
|
3570
3583
|
Bn as defineFixtureVariants,
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3584
|
+
ke as findNodeByPath,
|
|
3585
|
+
we as fixtureGroupBrand,
|
|
3586
|
+
Re as fixtureVariantsBrand,
|
|
3574
3587
|
Rt as getDefaultPropertyValues,
|
|
3575
3588
|
On as isComponentDefinition,
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3589
|
+
ve as isFixtureGroup,
|
|
3590
|
+
_e as isFixtureVariants,
|
|
3591
|
+
me as isSingleFixture,
|
|
3592
|
+
Se as mergeStyles,
|
|
3580
3593
|
wn as parseFixtureExport,
|
|
3581
3594
|
Tn as parseFixtureGroup,
|
|
3582
3595
|
In as parseFixtureVariants,
|
|
3583
3596
|
Rn as parseSingleFixture,
|
|
3584
3597
|
wt as resolveViewport,
|
|
3585
|
-
|
|
3586
|
-
|
|
3598
|
+
Te as singleFixtureBrand,
|
|
3599
|
+
f as styles,
|
|
3587
3600
|
An as syncRender,
|
|
3588
|
-
|
|
3601
|
+
ot as toExplorerTree
|
|
3589
3602
|
};
|
|
3590
3603
|
//# sourceMappingURL=viewer.js.map
|