@synopackageland/ui 0.20.8 → 0.20.9

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/json.js CHANGED
@@ -452,7 +452,7 @@ const Je = {
452
452
  }, o),
453
453
  Text: ({ props: e }) => {
454
454
  const o = e.variant ?? "body";
455
- return d(o === "heading" ? "h2" : o === "mono" ? "code" : "span", { class: o === "muted" ? "text-[13px] text-[var(--ui-text-muted)]" : o === "caption" ? "text-[12px] text-[var(--ui-text-muted)]" : o === "heading" ? "text-[16px] font-semibold text-[var(--ui-text)]" : o === "mono" ? "font-mono text-[12px] text-[var(--ui-text)]" : "text-[13px] text-[var(--ui-text)]", "data-syno-pkg-land-ui": "" }, e.text);
455
+ return d(o === "heading" ? "h2" : o === "mono" ? "code" : "span", { class: o === "muted" ? "text-[length:var(--ui-font-size-control)] text-[var(--ui-text-muted)]" : o === "caption" ? "text-[12px] text-[var(--ui-text-muted)]" : o === "heading" ? "text-[16px] font-semibold text-[var(--ui-text)]" : o === "mono" ? "font-mono text-[12px] text-[var(--ui-text)]" : "text-[length:var(--ui-font-size-control)] text-[var(--ui-text)]", "data-syno-pkg-land-ui": "" }, e.text);
456
456
  },
457
457
  Button: ({ props: e, emit: o }) => {
458
458
  const n = C(e.icon);
@@ -657,8 +657,8 @@ const Je = {
657
657
  }, 8, ["registry", "store", "initial-state", "handlers", "navigate", "functions", "directives", "validation-functions", "on-state-change"]));
658
658
  }
659
659
  }), Ve = ["label", "title", "description", "text", "placeholder", "emptyText", "help", "ariaLabel", "valueLabel", "searchPlaceholder"];
660
- function q(e, o = "") {
661
- return Array.isArray(e) ? e : Object.entries(e).flatMap(([n, a]) => m(a) ? q(a, `${o}${n}.`) : [`${o}${n}`]);
660
+ function z(e, o = "") {
661
+ return Array.isArray(e) ? e : Object.entries(e).flatMap(([n, a]) => m(a) ? z(a, `${o}${n}.`) : [`${o}${n}`]);
662
662
  }
663
663
  const m = (e) => typeof e == "object" && e !== null && !Array.isArray(e), u = (...e) => e.map((o) => "/" + String(o).replaceAll("~", "~0").replaceAll("/", "~1")).join("");
664
664
  function _e(e, o) {
@@ -681,7 +681,7 @@ function y(e, o) {
681
681
  }
682
682
  return n !== void 0 && a <= Math.max(2, Math.floor(e.length / 3)) ? n : void 0;
683
683
  }
684
- const qe = ["$state", "$item", "$index", "$bindState", "$bindItem", "$cond", "$computed", "$template"], ze = (e) => m(e) && qe.some((o) => Object.hasOwn(e, o)), I = (e) => ze(e) || (Array.isArray(e) ? e.some(I) : m(e) && Object.values(e).some(I));
684
+ const ze = ["$state", "$item", "$index", "$bindState", "$bindItem", "$cond", "$computed", "$template"], qe = (e) => m(e) && ze.some((o) => Object.hasOwn(e, o)), I = (e) => qe(e) || (Array.isArray(e) ? e.some(I) : m(e) && Object.values(e).some(I));
685
685
  function k(e) {
686
686
  const o = e.props?.shape;
687
687
  return m(o) ? o : void 0;
@@ -730,7 +730,7 @@ function mt(e, o = {}) {
730
730
  }
731
731
  Be(i, p, h, a[h], f.props), Me(i, p, h, a[h], f, s);
732
732
  }
733
- const c = o.messages && q(o.messages), l = {
733
+ const c = o.messages && z(o.messages), l = {
734
734
  issues: i,
735
735
  components: a,
736
736
  actions: [
@@ -782,7 +782,7 @@ function Be(e, o, n, a, i) {
782
782
  for (const l of c)
783
783
  !Object.hasOwn(i, l) && !R(r[l]) && e.error({ code: "missing_prop", path: s(l), elementKey: o, message: `${n} requires prop "${l}".`, hint: `Run "syno-pkg-land-ui describe ${n}" for its type.` });
784
784
  }
785
- function z(e, o) {
785
+ function q(e, o) {
786
786
  const n = [];
787
787
  if (Array.isArray(o.children) && o.children.forEach((a, i) => {
788
788
  typeof a == "string" && n.push({ child: a, path: u("elements", e, "children", i) });
@@ -818,7 +818,7 @@ function Me(e, o, n, a, i, s) {
818
818
  hint: f ? `Did you mean "${f}"?` : r.length ? v(`${n} slots`, r) : `${n} has no slots.`
819
819
  });
820
820
  }
821
- for (const l of z(o, i))
821
+ for (const l of q(o, i))
822
822
  if (!Object.hasOwn(s, l.child)) {
823
823
  const p = y(l.child, Object.keys(s));
824
824
  e.error({
@@ -839,7 +839,7 @@ function Ge(e, o, n) {
839
839
  Qe(e, r, f, p || w);
840
840
  const h = f.type === "AppRoot";
841
841
  h && l && a.error({ code: "nested_app_root", path: u("elements", r), elementKey: r, message: "AppRoot cannot be nested inside another AppRoot.", hint: "Use a single AppRoot at the top of the spec." });
842
- for (const g of z(r, f))
842
+ for (const g of q(r, f))
843
843
  if (Object.hasOwn(n, g.child)) {
844
844
  if (c.includes(g.child)) {
845
845
  a.error({ code: "cycle", path: g.path, elementKey: r, message: `"${g.child}" is its own ancestor.`, hint: "Element references must form a tree." });
@@ -9,6 +9,12 @@ export declare const WEB_RAIL_BELOW = 1200;
9
9
  export type WideLayout = 'window' | 'web';
10
10
  export declare function appPresentationForWidth(width: number, wide?: WideLayout): AppPresentation;
11
11
  export declare const APP_PRESENTATION_KEY: InjectionKey<ComputedRef<AppPresentation>>;
12
+ /**
13
+ * An AppLayout tells its AppRoot how it presents a wide width, so the root
14
+ * follows the launch mode rather than its width alone: a DSM window, however
15
+ * wide, stays `window`. Returns the unregister function.
16
+ */
17
+ export declare const APP_ROOT_WIDE_LAYOUT_KEY: InjectionKey<(wide: Ref<WideLayout> | ComputedRef<WideLayout>) => () => void>;
12
18
  /** Web-presentation sidebar widths in px; the resize handle stays within MIN..MAX. */
13
19
  export declare const WEB_SIDEBAR_DEFAULT = 248;
14
20
  export declare const WEB_SIDEBAR_MIN = 200;
@@ -3,7 +3,7 @@
3
3
  "version": "2.11.0",
4
4
  "delivery": "bundled-patched-esm",
5
5
  "patchManifestSha256": "9c5b9c9a162fa584b4695a683368a4484b3ac6e70177fd063b77aa618c051627",
6
- "bundleSha256": "67c0762aabdd35a7eaa10409f9497c7a9d99545a877c0053daa39109bba20cab",
6
+ "bundleSha256": "c944c8c169548bc27e0b5dfc93e67f82afad9df98d68216f248b41f72eea9d5e",
7
7
  "sourceHashes": {
8
8
  "shared/useBodyScrollLock.js": "287bfb604318c4202769e4b5191896eaf0e52a952e1de898967cbe09467fcfda",
9
9
  "DismissableLayer/DismissableLayer.js": "3c8d248f0a32e01f89ca1f6202b1bb691bf5d0e4012a92535e161c35e69cdc32",