@pstdio/workbench 0.45.0-nightly.20261021143541 → 0.45.0

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.
@@ -1,7 +1,7 @@
1
1
  import { devtools as e } from "zustand/middleware";
2
2
  import { createStore as t } from "zustand/vanilla";
3
3
  import { dockedWorkbenchRegions as n, isFileSourcePosition as r, resourceKey as i } from "@pstdio/sdk/extensions";
4
- //#region ../pstdio-api-contracts/src/extension-kernel/page-params.ts
4
+ // ../pstdio-api-contracts/src/extension-kernel/page-params.ts
5
5
  var a = /* @__PURE__ */ new Set([
6
6
  "resource",
7
7
  "section",
@@ -24,18 +24,13 @@ var a = /* @__PURE__ */ new Set([
24
24
  for (let i of Object.keys(e)) {
25
25
  if (!Object.hasOwn(t, i)) continue;
26
26
  let a = t[i], l = e[i];
27
- if (!c(l, a)) {
28
- if (n) throw o(i);
29
- continue;
30
- }
31
- s(a, l.default) || Array.isArray(a) && !a.length || (r[i] = Array.isArray(a) ? Object.freeze([...a]) : a);
27
+ if (c(l, a)) s(a, l.default) || Array.isArray(a) && !a.length || (r[i] = Array.isArray(a) ? Object.freeze([...a]) : a);
28
+ else if (n) throw o(i);
32
29
  }
33
30
  let i = Object.keys(r).length ? Object.freeze(r) : void 0;
34
31
  if (p(e, i).toString().length > 2048) {
35
32
  if (n) throw o("query exceeds 2048 characters");
36
- return;
37
- }
38
- return i;
33
+ } else return i;
39
34
  }, f = (e = {}, t) => {
40
35
  let n = {};
41
36
  for (let [t, r] of Object.entries(e)) r.default !== void 0 && (n[t] = Array.isArray(r.default) ? Object.freeze([...r.default]) : r.default);
@@ -66,8 +61,7 @@ var a = /* @__PURE__ */ new Set([
66
61
  t || (t = !0, e());
67
62
  } };
68
63
  };
69
- //#endregion
70
- //#region src/core/shared/workbench-effect.ts
64
+ // src/core/shared/workbench-effect.ts
71
65
  function g(e, t) {
72
66
  try {
73
67
  return t();
@@ -76,14 +70,9 @@ function g(e, t) {
76
70
  return;
77
71
  }
78
72
  }
79
- //#endregion
80
- //#region src/core/shared/store/workbench-batch.ts
73
+ // src/core/shared/store/workbench-batch.ts
81
74
  var _ = 0, v = /* @__PURE__ */ new Map(), ee = (e, t) => {
82
- if (_ === 0) {
83
- g("store subscriber", t);
84
- return;
85
- }
86
- v.has(e) || v.set(e, t);
75
+ _ === 0 ? g("store subscriber", t) : v.has(e) || v.set(e, t);
87
76
  }, te = (e) => {
88
77
  _++;
89
78
  try {
@@ -805,13 +794,7 @@ var _ = 0, v = /* @__PURE__ */ new Map(), ee = (e, t) => {
805
794
  return t;
806
795
  }, ht = () => b.reduce((e, t) => (e[t] = [], e), {}), gt = (e) => {
807
796
  let t = mt(e), n = new Set((e.closed ?? []).map(U)), r = [], i = ht();
808
- for (let e of t) {
809
- if (n.has(U(e.identity))) {
810
- r.push(e);
811
- continue;
812
- }
813
- i[e.region].push(e);
814
- }
797
+ for (let e of t) n.has(U(e.identity)) ? r.push(e) : i[e.region].push(e);
815
798
  for (let e of b) i[e].sort(ft);
816
799
  return r.sort(W), {
817
800
  placements: b.flatMap((e) => i[e]),
@@ -1630,7 +1613,6 @@ var _ = 0, v = /* @__PURE__ */ new Map(), ee = (e, t) => {
1630
1613
  if (!t) throw Error("Workbench renderers are not initialized");
1631
1614
  return t;
1632
1615
  };
1633
- //#endregion
1634
1616
  export { Ot as $, se as $t, fn as A, Ae as At, Jt as B, ge as Bt, sn as C, P as Ct, dn as D, Me as Dt, mn as E, k as Et, Qt as F, be as Ft, Rt as G, D as Gt, Bt as H, le as Ht, Xt as I, we as It, Ft as J, he as Jt, Ht as K, fe as Kt, Yt as L, Ce as Lt, an as M, O as Mt, on as N, De as Nt, un as O, je as Ot, rn as P, xe as Pt, Dt as Q, ce as Qt, Wt as R, Te as Rt, gn as S, Pe as St, hn as T, Re as Tt, Vt as U, C as Ut, Kt as V, de as Vt, zt as W, ue as Wt, Mt as X, ve as Xt, Nt as Y, me as Yt, jt as Z, T as Zt, Z as _, Ke as _t, Xn as a, b as an, bt as at, yn as b, ze as bt, qn as c, ee as cn, U as ct, Dn as d, d as dn, ct as dt, oe as en, Tt as et, Fn as f, p as fn, st as ft, Sn as g, Ge as gt, Cn as h, l as hn, We as ht, Zn as i, x as in, q as it, pn as j, ke as jt, ln as k, Oe as kt, In as l, g as ln, G as lt, Tn as m, f as mn, tt as mt, er as n, ae as nn, yt as nt, Yn as o, y as on, xt as ot, wn as p, m as pn, B as pt, J as q, E as qt, Qn as r, re as rn, Ct as rt, Jn as s, te as sn, gt as st, tr as t, S as tn, K as tt, Q as u, h as un, lt as ut, xn as v, Ve as vt, cn as w, Be as wt, _n as x, Ne as xt, bn as y, Le as yt, qt as z, _e as zt };
1635
1617
 
1636
- //# sourceMappingURL=workbench-renderers-DYpdN2Xi.js.map
1618
+ //# sourceMappingURL=workbench-renderers-DOc_oE0K.js.map