@pygmalionjs/pygmalion 0.5.28 → 0.5.30
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.
|
@@ -8125,6 +8125,7 @@ ${e}`;
|
|
|
8125
8125
|
state: o.state,
|
|
8126
8126
|
stateKind: o.stateKind,
|
|
8127
8127
|
lane: o.lane,
|
|
8128
|
+
runtimes: o.runtimes ? [...o.runtimes] : void 0,
|
|
8128
8129
|
scenarioId: o.scenarioId,
|
|
8129
8130
|
scenarioIds: o.scenarioIds ? [...o.scenarioIds] : void 0,
|
|
8130
8131
|
interactions: (l = o.interactions) == null ? void 0 : l.map((f) => ({ ...f })),
|
package/dist-lib/pygmalion.js
CHANGED
|
@@ -2,8 +2,8 @@ var xh = Object.defineProperty;
|
|
|
2
2
|
var yh = (e, t, n) => t in e ? xh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var gn = (e, t, n) => yh(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as s, jsxs as g, Fragment as Ye } from "react/jsx-runtime";
|
|
5
|
-
import { R as oi, u as vh, c as $a, b as dd, g as lt, d as wh, m as Dt, e as f, f as Tt, r as cn, h as Cs, i as Yn, j as Ma, k as wn, l as ud, n as vr, p as Sh, o as hr, q as Be, t as Nh, v as Ih, w as Ch, x as Ph, y as $h, z as Mh, A as Eh, B as Ps, C as kh, D as Ah, E as Rh, G as Th, H as Fh, I as Lh, S as _h, J as Dh, K as fd, L as zh, M as $s, O as Oh, P as Bh, Q as jh, T as Wh, U as hd, V as Hh, W as Dc, X as Uh, Y as pd, Z as Vh, _ as Kh, $ as qh, a0 as Yh, a1 as Gh, a2 as Xh, a3 as md, a4 as Jh, a5 as Qh, a6 as J, a7 as zc, a8 as Oc, a9 as Zh, aa as rs, ab as ep, ac as Vo, ad as Ms, ae as tp, af as gd, ag as np, ah as rp, ai as op, s as ip, aj as bd, ak as ii, al as sp, am as ap, an as xd, ao as yd, ap as Es, aq as vd, ar as cp, as as lp, at as Bc, au as dp, av as up, aw as jc, ax as fp, ay as hp, az as pp, aA as mp, aB as gp, aC as bp, aD as xp, aE as yp, aF as vp, aG as wp, aH as Sp, aI as Np, a as Ip, aJ as Cp, aK as Pp, aL as $p, aM as Mp, aN as Ep, aO as kp, aP as Ap, aQ as Rp, aR as Tp, aS as Fp, aT as Lp, aU as _p, aV as Dp, aW as Wr, aX as Wc, aY as zp, aZ as Op, a_ as Bp, a$ as jp, b0 as Hc } from "./FrozenRoutePreview-
|
|
6
|
-
import { b1 as f1, b2 as h1, b3 as p1, b4 as m1, b5 as g1, b6 as b1, b7 as x1, b8 as y1, b9 as v1, ba as w1, bb as S1, bc as N1, bd as I1, be as C1, bf as P1, bg as $1 } from "./FrozenRoutePreview-
|
|
5
|
+
import { R as oi, u as vh, c as $a, b as dd, g as lt, d as wh, m as Dt, e as f, f as Tt, r as cn, h as Cs, i as Yn, j as Ma, k as wn, l as ud, n as vr, p as Sh, o as hr, q as Be, t as Nh, v as Ih, w as Ch, x as Ph, y as $h, z as Mh, A as Eh, B as Ps, C as kh, D as Ah, E as Rh, G as Th, H as Fh, I as Lh, S as _h, J as Dh, K as fd, L as zh, M as $s, O as Oh, P as Bh, Q as jh, T as Wh, U as hd, V as Hh, W as Dc, X as Uh, Y as pd, Z as Vh, _ as Kh, $ as qh, a0 as Yh, a1 as Gh, a2 as Xh, a3 as md, a4 as Jh, a5 as Qh, a6 as J, a7 as zc, a8 as Oc, a9 as Zh, aa as rs, ab as ep, ac as Vo, ad as Ms, ae as tp, af as gd, ag as np, ah as rp, ai as op, s as ip, aj as bd, ak as ii, al as sp, am as ap, an as xd, ao as yd, ap as Es, aq as vd, ar as cp, as as lp, at as Bc, au as dp, av as up, aw as jc, ax as fp, ay as hp, az as pp, aA as mp, aB as gp, aC as bp, aD as xp, aE as yp, aF as vp, aG as wp, aH as Sp, aI as Np, a as Ip, aJ as Cp, aK as Pp, aL as $p, aM as Mp, aN as Ep, aO as kp, aP as Ap, aQ as Rp, aR as Tp, aS as Fp, aT as Lp, aU as _p, aV as Dp, aW as Wr, aX as Wc, aY as zp, aZ as Op, a_ as Bp, a$ as jp, b0 as Hc } from "./FrozenRoutePreview-B6E3mX9a.js";
|
|
6
|
+
import { b1 as f1, b2 as h1, b3 as p1, b4 as m1, b5 as g1, b6 as b1, b7 as x1, b8 as y1, b9 as v1, ba as w1, bb as S1, bc as N1, bd as I1, be as C1, bf as P1, bg as $1 } from "./FrozenRoutePreview-B6E3mX9a.js";
|
|
7
7
|
import { useRef as Pe, useLayoutEffect as si, useSyncExternalStore as Xe, useCallback as Pt, useReducer as wd, useEffect as ae, memo as Sd, createElement as ao, useState as Q, useMemo as _t } from "react";
|
|
8
8
|
import { createPortal as Wp } from "react-dom";
|
|
9
9
|
const Ea = {
|
|
@@ -2660,14 +2660,14 @@ function Bi(e = {}) {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
async function k(R, T) {
|
|
2662
2662
|
if (e.prepare) return e.prepare(R, T);
|
|
2663
|
-
const { getDesignImportController: I } = await import("./FrozenRoutePreview-
|
|
2663
|
+
const { getDesignImportController: I } = await import("./FrozenRoutePreview-B6E3mX9a.js").then((F) => F.bi), N = I();
|
|
2664
2664
|
if (!N)
|
|
2665
2665
|
throw new Error("The design import controller is not available.");
|
|
2666
2666
|
return N.prepareScreenCapture(R, T);
|
|
2667
2667
|
}
|
|
2668
2668
|
async function L(R, T) {
|
|
2669
2669
|
if (e.settle) return e.settle(R, T);
|
|
2670
|
-
const { settleScreen: I } = await import("./FrozenRoutePreview-
|
|
2670
|
+
const { settleScreen: I } = await import("./FrozenRoutePreview-B6E3mX9a.js").then((N) => N.bh);
|
|
2671
2671
|
return I(R, T);
|
|
2672
2672
|
}
|
|
2673
2673
|
async function W(R, T) {
|
|
@@ -11985,34 +11985,36 @@ function iv(e, t) {
|
|
|
11985
11985
|
const o = e.slice(r + n.length);
|
|
11986
11986
|
return o.startsWith(" · ") ? o.slice(3) : t;
|
|
11987
11987
|
}
|
|
11988
|
-
function sv(e, t, n = () => !0) {
|
|
11989
|
-
const
|
|
11990
|
-
for (const
|
|
11991
|
-
const
|
|
11992
|
-
|
|
11988
|
+
function sv(e, t, n = () => !0, r = () => !0) {
|
|
11989
|
+
const o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set();
|
|
11990
|
+
for (const p of e) {
|
|
11991
|
+
const m = p.canvas ?? "default";
|
|
11992
|
+
c.add(m), p.section && !o.has(m) && o.set(m, p.section), r(p) && (a.set(m, (a.get(m) ?? 0) + 1), n(p) && i.set(m, (i.get(m) ?? 0) + 1));
|
|
11993
11993
|
}
|
|
11994
|
-
const
|
|
11995
|
-
for (const
|
|
11996
|
-
const
|
|
11997
|
-
if (
|
|
11998
|
-
|
|
11994
|
+
const l = [], d = [], u = /* @__PURE__ */ new Map();
|
|
11995
|
+
for (const p of t) {
|
|
11996
|
+
const m = i.get(p) ?? 0, b = a.get(p) ?? 0;
|
|
11997
|
+
if (b === 0 && c.has(p)) continue;
|
|
11998
|
+
const x = o.get(p);
|
|
11999
|
+
if (!x || !p.includes(` · ${x}`)) {
|
|
12000
|
+
l.push({ canvas: p, label: p, frames: m, declared: b });
|
|
11999
12001
|
continue;
|
|
12000
12002
|
}
|
|
12001
|
-
const
|
|
12002
|
-
if (
|
|
12003
|
-
|
|
12003
|
+
const w = { canvas: p, label: iv(p, x), frames: m, declared: b }, v = u.get(x);
|
|
12004
|
+
if (v === void 0) {
|
|
12005
|
+
u.set(x, d.length), d.push({ section: x, canvases: [w], frames: m, declared: b, single: !0 });
|
|
12004
12006
|
continue;
|
|
12005
12007
|
}
|
|
12006
|
-
const
|
|
12007
|
-
|
|
12008
|
-
section:
|
|
12009
|
-
canvases: [...
|
|
12010
|
-
frames:
|
|
12011
|
-
declared:
|
|
12008
|
+
const E = d[v];
|
|
12009
|
+
d[v] = {
|
|
12010
|
+
section: x,
|
|
12011
|
+
canvases: [...E.canvases, w],
|
|
12012
|
+
frames: E.frames + m,
|
|
12013
|
+
declared: E.declared + b,
|
|
12012
12014
|
single: !1
|
|
12013
12015
|
};
|
|
12014
12016
|
}
|
|
12015
|
-
return { loose:
|
|
12017
|
+
return { loose: l, groups: d };
|
|
12016
12018
|
}
|
|
12017
12019
|
let wa = null;
|
|
12018
12020
|
const Sa = /* @__PURE__ */ new Set();
|
|
@@ -13080,7 +13082,8 @@ const ys = Be(function({
|
|
|
13080
13082
|
const [o, i] = Ev("frames", 176), [a, c] = Q({}), l = sv(
|
|
13081
13083
|
f.pages,
|
|
13082
13084
|
f.canvasNames,
|
|
13083
|
-
(I) => f.isScreenStateShown(I)
|
|
13085
|
+
(I) => f.isScreenStateShown(I),
|
|
13086
|
+
(I) => f.isInSelectedRuntime(I)
|
|
13084
13087
|
), d = (I) => I.canvases.some((N) => N.canvas === f.activeCanvas), u = Xe(
|
|
13085
13088
|
Mf,
|
|
13086
13089
|
ho,
|
|
@@ -18851,8 +18854,8 @@ const i1 = {
|
|
|
18851
18854
|
Promise.resolve().then(() => Zs),
|
|
18852
18855
|
Promise.resolve().then(() => sg),
|
|
18853
18856
|
Promise.resolve().then(() => om),
|
|
18854
|
-
import("./FrozenRoutePreview-
|
|
18855
|
-
import("./FrozenRoutePreview-
|
|
18857
|
+
import("./FrozenRoutePreview-B6E3mX9a.js").then((u) => u.bk),
|
|
18858
|
+
import("./FrozenRoutePreview-B6E3mX9a.js").then((u) => u.bj)
|
|
18856
18859
|
]), a = i.getMountedShadowPreviewHandle(e), c = f.pages.find(
|
|
18857
18860
|
(u) => u.id === e
|
|
18858
18861
|
);
|
package/dist-lib/testing.js
CHANGED
|
@@ -54,5 +54,5 @@ export type CanvasTreeVisibility = (page: never) => boolean;
|
|
|
54
54
|
* canvas list already resolved — that order carries the host's declared
|
|
55
55
|
* section ranking, which a regrouping here would quietly discard.
|
|
56
56
|
*/
|
|
57
|
-
export declare function buildCanvasTree<TPage extends CanvasTreePage>(pages: readonly TPage[], canvasNames: readonly string[], isShown?: (page: TPage) => boolean): CanvasTree;
|
|
57
|
+
export declare function buildCanvasTree<TPage extends CanvasTreePage>(pages: readonly TPage[], canvasNames: readonly string[], isShown?: (page: TPage) => boolean, exists?: (page: TPage) => boolean): CanvasTree;
|
|
58
58
|
export {};
|