@wix/himalaya-cli 0.1671.0 → 0.1673.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.
Files changed (39) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/legacy-import/src/index.d.ts +16 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/legacy-import.d.ts +21 -3
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -2
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +14 -2
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/legacy-import.mjs +32 -1
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{6eef5856f65113cbc7504d7f926fe7039c48f614b3b0daf20c0e6eea0315c923.bin → 0f5533bf4197dc43489701db18378cecdb02db230a0fc2603e764999544513da.bin} +1 -1
  8. package/dist/browser-plane/sw.js +6 -6
  9. package/dist/cli.mjs +240 -55
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/android-ux.md +3 -1
  12. package/guides/component-reference.json +2 -2
  13. package/guides/component-reference.md +2 -2
  14. package/guides/designing-himi-screens.md +3 -1
  15. package/guides/ios-ux.md +6 -4
  16. package/guides/sdk-reference.json +15 -1
  17. package/guides/web-page-sdk-reference.md +1 -1
  18. package/package.json +2 -2
  19. package/templates/beauty-salon/l10n/en.json +1 -1
  20. package/templates/branded-lite/dev/index.ts +6607 -2231
  21. package/templates/branded-lite/l10n/en.json +25 -15
  22. package/templates/branded-lite/l10n/he.json +34 -34
  23. package/templates/branded-lite/tier5-src/_shared/himi-cms.ts +10 -3
  24. package/templates/branded-lite/tier5-src/himi-branded-lite-cms/index.ts +7 -0
  25. package/templates/branded-lite/tier5-src/himi-branded-lite-cms-collection/index.ts +527 -138
  26. package/templates/community-club/dev/index.ts +2459 -271
  27. package/templates/community-club/l10n/en.json +16 -11
  28. package/templates/community-club/l10n/he.json +38 -34
  29. package/templates/community-club/tier5-src/_shared/himi-cms.ts +10 -3
  30. package/templates/community-club/tier5-src/himi-branded-lite-cms/index.ts +7 -0
  31. package/templates/community-club/tier5-src/himi-branded-lite-cms-collection/index.ts +527 -138
  32. package/templates/events-meetups/l10n/en.json +1 -1
  33. package/templates/gym-fitness/l10n/en.json +1 -1
  34. package/templates/nonprofit-cause/l10n/en.json +1 -1
  35. package/templates/podcast-creator/l10n/en.json +1 -1
  36. package/templates/portfolio-creative/l10n/en.json +1 -1
  37. package/templates/restaurant/l10n/en.json +1 -1
  38. package/templates/retail-store/l10n/en.json +1 -1
  39. package/templates/yoga-studio/l10n/en.json +1 -1
package/dist/cli.mjs CHANGED
@@ -15949,7 +15949,6 @@ function webViewOriginAllowed(url, origins) {
15949
15949
  }
15950
15950
  var init_webview_origin = __esm({
15951
15951
  "../../core/ts/src/webview-origin.ts"() {
15952
- "use strict";
15953
15952
  init_define_HHP_CATALOG();
15954
15953
  }
15955
15954
  });
@@ -31400,6 +31399,7 @@ function resolveIdiom(tokens2, ctx = {}) {
31400
31399
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
31401
31400
  var init_idiom = __esm({
31402
31401
  "../../core/ts/src/idiom.ts"() {
31402
+ "use strict";
31403
31403
  init_define_HHP_CATALOG();
31404
31404
  IDIOM_CONTEXTS = {
31405
31405
  ios: { native: ["ios"] },
@@ -128959,6 +128959,13 @@ function reloadKeyOf(v2) {
128959
128959
  }
128960
128960
  return String(v2);
128961
128961
  }
128962
+ function softPillSurface(surface) {
128963
+ const s2 = surface.trim();
128964
+ if (/^#[\da-f]{8}$/i.test(s2)) return s2.slice(0, 7);
128965
+ if (/^#[\da-f]{4}$/i.test(s2)) return s2.slice(0, 4);
128966
+ if (/^#[\da-f]{3}(?:[\da-f]{3})?$/i.test(s2)) return s2;
128967
+ return `rgb(from ${s2} r g b)`;
128968
+ }
128962
128969
  function searchFieldPillStyle(r3, fontFamily) {
128963
128970
  return { display: "flex", alignItems: "center", gap: 8, width: "100%", boxSizing: "border-box", background: r3.color("surfaceTertiary", "#eee"), borderRadius: r3.radius("md", 10), padding: "0 14px", minHeight: 44, color: r3.color("textSecondary", "#888"), fontFamily, fontSize: pxToRem(15) };
128964
128971
  }
@@ -130964,13 +130971,13 @@ function renderInner(node3, ctx, boundMotion) {
130964
130971
  const badgeLabel = m2?.accessibilityLabel ?? m2?.accessibility_label;
130965
130972
  const badgeRole = roleDeclared ? void 0 : liveCount ? "status" : typeof badgeLabel === "string" && badgeLabel.trim() !== "" ? "img" : void 0;
130966
130973
  const fg = _bt ? c2 : sevTextColor(ctx, props2.style ?? "info");
130967
- return /* @__PURE__ */ jsx13("span", { role: badgeRole, style: { display: "inline-flex", alignItems: "center", alignSelf: "flex-start", width: "fit-content", padding: "3px 9px", borderRadius: 999, fontSize: pxToRem(12), fontWeight: 700, fontFamily: bodyFont(ctx), background: `color-mix(in srgb, ${c2} 16%, ${C2("surfacePrimary", "#fff")})`, color: fg, ...wrap }, children: ctx.empty ? "" : txt(props2.text, ctx) || "Badge" });
130974
+ return /* @__PURE__ */ jsx13("span", { role: badgeRole, style: { display: "inline-flex", alignItems: "center", alignSelf: "flex-start", width: "fit-content", padding: "3px 9px", borderRadius: 999, fontSize: pxToRem(12), fontWeight: 700, fontFamily: bodyFont(ctx), background: `color-mix(in srgb, ${c2} 16%, ${softPillSurface(C2("surfacePrimary", "#fff"))})`, color: fg, ...wrap }, children: ctx.empty ? "" : txt(props2.text, ctx) || "Badge" });
130968
130975
  }
130969
130976
  case "Tag": {
130970
130977
  const tagToken = boundTokenName(props2.tokenPath, props2.token, ctx);
130971
130978
  const c2 = C2(tagToken ?? "accentPrimary", "#116DFF");
130972
130979
  const tagFg = tagToken ? c2 : accentTextColor(ctx);
130973
- return /* @__PURE__ */ jsx13("span", { style: { display: "inline-flex", alignItems: "center", alignSelf: "flex-start", width: "fit-content", padding: "5px 11px", borderRadius: 999, fontSize: pxToRem(13), fontWeight: 600, fontFamily: bodyFont(ctx), background: `color-mix(in srgb, ${c2} 14%, ${C2("surfacePrimary", "#fff")})`, border: `1px solid color-mix(in srgb, ${c2} 30%, transparent)`, color: tagFg, ...wrap }, children: ctx.empty ? "" : txt(props2.text, ctx) || "Tag" });
130980
+ return /* @__PURE__ */ jsx13("span", { style: { display: "inline-flex", alignItems: "center", alignSelf: "flex-start", width: "fit-content", padding: "5px 11px", borderRadius: 999, fontSize: pxToRem(13), fontWeight: 600, fontFamily: bodyFont(ctx), background: `color-mix(in srgb, ${c2} 14%, ${softPillSurface(C2("surfacePrimary", "#fff"))})`, border: `1px solid color-mix(in srgb, ${c2} 30%, transparent)`, color: tagFg, ...wrap }, children: ctx.empty ? "" : txt(props2.text, ctx) || "Tag" });
130974
130981
  }
130975
130982
  case "ProgressBar":
130976
130983
  return /* @__PURE__ */ jsx13(ProgressBarNode, { props: props2, ctx, wrap });
@@ -138217,6 +138224,101 @@ var init_renderNode = __esm({
138217
138224
  }
138218
138225
  });
138219
138226
 
138227
+ // ../../core/web-renderer/src/platformFrame.tsx
138228
+ import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
138229
+ function platformFrameElement(spec, ctx, content, text22) {
138230
+ const idiom = ctx.idiom === "ios" || ctx.idiom === "material" ? ctx.idiom : null;
138231
+ if (!idiom) return content;
138232
+ const row2 = idiomControls(idiom);
138233
+ const colors = ctx.tokens.colors;
138234
+ const C2 = (role, fallback) => ctx.color(pickRole(colors, role), fallback);
138235
+ const font = fontStack(ctx.font("body").family, idiom);
138236
+ const ink = C2("textPrimary", "#111");
138237
+ const accent = C2("accentPrimary", "#007AFF");
138238
+ const background = C2("surfacePrimary", "#fff");
138239
+ const safe = SAFE_AREA[idiom];
138240
+ const statusBar = /* @__PURE__ */ jsxs11("div", { "data-testid": "platform-status-bar", "aria-hidden": "true", style: { height: safe.top, display: "flex", alignItems: "center", justifyContent: "space-between", padding: idiom === "ios" ? "8px 34px 0 48px" : "0 18px", boxSizing: "border-box", color: ink, fontFamily: font, fontSize: idiom === "ios" ? 17 : 14, fontWeight: idiom === "ios" ? 600 : 500 }, children: [
138241
+ /* @__PURE__ */ jsx14("span", { children: "9:41" }),
138242
+ /* @__PURE__ */ jsxs11("svg", { width: idiom === "ios" ? 68 : 54, height: "12", viewBox: "0 0 68 12", fill: ink, children: [
138243
+ /* @__PURE__ */ jsx14("rect", { x: "0", y: "8", width: "3", height: "4", rx: "1" }),
138244
+ /* @__PURE__ */ jsx14("rect", { x: "5", y: "5.5", width: "3", height: "6.5", rx: "1" }),
138245
+ /* @__PURE__ */ jsx14("rect", { x: "10", y: "3", width: "3", height: "9", rx: "1" }),
138246
+ /* @__PURE__ */ jsx14("rect", { x: "15", y: "0", width: "3", height: "12", rx: "1" }),
138247
+ /* @__PURE__ */ jsx14("path", { d: "M30 3.2a10 10 0 0 1 13 0l-1.6 1.7a7.6 7.6 0 0 0-9.8 0zM32.6 6a6.2 6.2 0 0 1 7.8 0L38.8 7.7a3.8 3.8 0 0 0-4.6 0zM36.5 11.5l-1.6-1.7a2.3 2.3 0 0 1 3.2 0z" }),
138248
+ /* @__PURE__ */ jsx14("rect", { x: "47.5", y: "0.5", width: "17", height: "11", rx: "3", fill: "none", stroke: ink, opacity: "0.4" }),
138249
+ /* @__PURE__ */ jsx14("rect", { x: "49", y: "2", width: "14", height: "8", rx: "1.6" }),
138250
+ /* @__PURE__ */ jsx14("rect", { x: "65.5", y: "4", width: "1.5", height: "4", rx: "0.7", opacity: "0.4" })
138251
+ ] })
138252
+ ] });
138253
+ const nav = row2.navBar;
138254
+ const stickyOwnsBar = nav.hideWithStickyChrome && spec.hasStickyHeader && (!spec.pushed || spec.leadingNone) && spec.leading === "none" && !spec.barHasContent;
138255
+ const barGone = spec.barHidden || stickyOwnsBar;
138256
+ const shape = barGone ? "none" : spec.pushed ? nav.pushedTitle : nav.rootTitle;
138257
+ const titled = spec.title != null && spec.title !== "" && !(nav.hideWithStickyChrome && spec.hasStickyHeader);
138258
+ const title = titled ? text22(spec.title) : null;
138259
+ const rtl = ctx.isRTL === true;
138260
+ const itemInk = nav.back === "arrow" ? ink : accent;
138261
+ const trailing = spec.trailing.length > 0 && !barGone ? /* @__PURE__ */ jsx14("div", { style: { display: "flex", gap: nav.back === "arrow" ? 0 : 18, marginInlineStart: "auto", alignItems: "center", color: itemInk }, children: spec.trailing.map((it2, i2) => /* @__PURE__ */ jsx14("span", { "data-testid": "platform-bar-item", style: { display: "inline-grid", placeItems: "center", minWidth: nav.back === "arrow" ? 48 : void 0, height: nav.back === "arrow" ? 48 : void 0, fontSize: 17 }, children: it2.avatar ? /* @__PURE__ */ jsx14("span", { "data-testid": "platform-bar-avatar", style: { display: "inline-grid", placeItems: "center", width: 30, height: 30, borderRadius: 15, background: C2("surfaceTertiary", "#e5e5ea") }, children: iconSvg("person", { size: 18, color: C2("textSecondary", "#8e8e93"), rtl }) }) : it2.icon ? iconSvg(it2.icon, { size: nav.back === "arrow" ? 24 : 22, color: itemInk, rtl }) : text22(it2.label) }, i2)) }) : null;
138262
+ const iconButton = (testId, name) => /* @__PURE__ */ jsx14("span", { "data-testid": testId, style: { display: "inline-grid", placeItems: "center", width: nav.back === "arrow" ? 48 : 30, height: nav.back === "arrow" ? 48 : 44, color: itemInk }, children: iconSvg(name, { size: nav.back === "arrow" ? 24 : 22, color: itemInk, rtl }) });
138263
+ const leading = barGone ? null : spec.leading === "menu" ? iconButton("platform-menu", "menu") : spec.leading === "avatar" ? /* @__PURE__ */ jsx14("span", { "data-testid": "platform-bar-avatar", style: { display: "inline-grid", placeItems: "center", width: 30, height: 30, borderRadius: 15, background: C2("surfaceTertiary", "#e5e5ea") }, children: iconSvg("person", { size: 18, color: C2("textSecondary", "#8e8e93"), rtl }) }) : spec.leading === "cancel" ? /* @__PURE__ */ jsx14("span", { "data-testid": "platform-cancel", style: { color: itemInk, fontSize: 17, padding: nav.back === "arrow" ? "0 12px" : 0 }, children: text22(spec.cancelLabel ?? "Cancel") }) : spec.leading === "back" ? nav.back === "arrow" ? /* @__PURE__ */ jsx14("span", { "data-testid": "platform-back", style: { display: "inline-grid", placeItems: "center", width: 48, height: 48, color: ink }, children: iconSvg("arrow_left", { size: 24, color: ink, rtl }) }) : /* @__PURE__ */ jsxs11("span", { "data-testid": "platform-back", style: { display: "inline-flex", alignItems: "center", gap: 2, color: accent, fontSize: 17 }, children: [
138264
+ iconSvg("chevron_left", { size: 22, color: accent, rtl }),
138265
+ "Back"
138266
+ ] }) : null;
138267
+ let navBar = null;
138268
+ if (shape === "large") {
138269
+ navBar = /* @__PURE__ */ jsxs11("div", { "data-testid": "platform-nav-bar", "data-title": "large", style: { fontFamily: font, padding: "0 16px 8px" }, children: [
138270
+ /* @__PURE__ */ jsxs11("div", { style: { height: 44, display: "flex", alignItems: "center" }, children: [
138271
+ leading,
138272
+ trailing
138273
+ ] }),
138274
+ title != null && /* @__PURE__ */ jsx14("div", { role: "heading", "aria-level": 1, style: { fontSize: nav.largeTitleSize, fontWeight: 700, letterSpacing: 0.4, lineHeight: "41px", color: ink }, children: title })
138275
+ ] });
138276
+ } else if (shape === "inline") {
138277
+ navBar = /* @__PURE__ */ jsxs11("div", { "data-testid": "platform-nav-bar", "data-title": "inline", style: { fontFamily: font, height: 44, display: "flex", alignItems: "center", padding: "0 16px", position: "relative" }, children: [
138278
+ leading,
138279
+ title != null && /* @__PURE__ */ jsx14("div", { role: "heading", "aria-level": 1, style: { position: "absolute", left: 80, right: 80, textAlign: "center", fontSize: nav.inlineTitleSize, fontWeight: 600, color: ink, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: title }),
138280
+ trailing
138281
+ ] });
138282
+ } else if (!barGone && nav.back === "arrow" && (leading || trailing)) {
138283
+ navBar = /* @__PURE__ */ jsxs11("div", { "data-testid": "platform-nav-bar", "data-title": "none", style: { height: 48, padding: "0 4px", display: "flex", alignItems: "center" }, children: [
138284
+ leading,
138285
+ trailing
138286
+ ] });
138287
+ }
138288
+ const bar = row2.tabBar;
138289
+ const iconOnly = ctx.tokens.tabBar?.labels?.show === false;
138290
+ const tabBar = spec.tabs.length > 0 ? /* @__PURE__ */ jsx14("div", { "data-testid": "platform-tab-bar", style: { position: "sticky", bottom: 0, zIndex: 20, marginTop: "auto", background: C2(bar.roles.background, background), borderTop: bar.topHairline ? `0.5px solid ${C2("border", "rgba(0,0,0,0.2)")}` : void 0, paddingBottom: safe.bottom, fontFamily: font }, children: /* @__PURE__ */ jsx14("div", { style: { display: "flex", height: bar.height ?? void 0, minHeight: bar.minHeight, gap: bar.itemSpacing }, children: spec.tabs.map((tab, i2) => {
138291
+ const tint = tab.selected ? C2(bar.roles.selected, accent) : C2(bar.roles.unselected, "#8e8e93");
138292
+ const label4 = tab.selected ? C2(bar.roles.selectedLabel, accent) : tint;
138293
+ const icon = iconSvg(tab.selected && tab.selectedIcon || tab.icon || "circle", { size: bar.iconSize, color: tint, rtl });
138294
+ const fill = tab.selected && bar.roles.indicator ? C2(bar.roles.indicator, "#e8def8") : "transparent";
138295
+ return /* @__PURE__ */ jsxs11("div", { "data-testid": "platform-tab", "data-selected": tab.selected ? "true" : "false", "aria-label": iconOnly ? String(text22(tab.label) ?? "") : void 0, style: { flex: 1, position: "relative", isolation: "isolate", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: iconOnly ? "center" : "flex-start", gap: bar.itemGap, padding: iconOnly ? 0 : bar.itemPadding }, children: [
138296
+ bar.itemIndicator && !iconOnly && /* @__PURE__ */ jsx14("span", { "data-testid": "platform-tab-indicator", style: { position: "absolute", inset: bar.itemIndicator.inset, borderRadius: bar.itemIndicator.radius, zIndex: -1, background: fill } }),
138297
+ bar.indicator && (iconOnly || !bar.itemIndicator) ? /* @__PURE__ */ jsx14("span", { style: { display: "inline-grid", placeItems: "center", width: bar.indicator.width, height: bar.indicator.height, borderRadius: bar.indicator.radius, background: tab.selected && bar.roles.indicator ? C2(bar.roles.indicator, "#e8def8") : "transparent" }, children: icon }) : icon,
138298
+ !iconOnly && /* @__PURE__ */ jsx14("span", { style: { fontSize: bar.labelSize, fontWeight: tab.selected && idiom === "material" ? 700 : bar.labelWeight, lineHeight: bar.labelLineHeight ? `${bar.labelLineHeight}px` : void 0, color: label4, whiteSpace: "nowrap" }, children: text22(tab.label) })
138299
+ ] }, i2);
138300
+ }) }) }) : null;
138301
+ return /* @__PURE__ */ jsxs11("div", { "data-testid": "platform-frame", "data-idiom": idiom, style: { display: "flex", flexDirection: "column", minHeight: "100%", background }, children: [
138302
+ /* @__PURE__ */ jsxs11("div", { style: { position: "sticky", top: 0, zIndex: 20, background }, children: [
138303
+ statusBar,
138304
+ navBar
138305
+ ] }),
138306
+ /* @__PURE__ */ jsx14("div", { style: { display: "flex", flexDirection: "column", flexGrow: 1 }, children: content }),
138307
+ tabBar
138308
+ ] });
138309
+ }
138310
+ var SAFE_AREA;
138311
+ var init_platformFrame = __esm({
138312
+ "../../core/web-renderer/src/platformFrame.tsx"() {
138313
+ "use strict";
138314
+ init_define_HHP_CATALOG();
138315
+ init_idiom_controls();
138316
+ init_icons();
138317
+ init_tokens2();
138318
+ SAFE_AREA = { ios: { top: 54, bottom: 34 }, material: { top: 36, bottom: 24 } };
138319
+ }
138320
+ });
138321
+
138220
138322
  // ../../core/web-renderer/src/renderToHtml.tsx
138221
138323
  import React21 from "react";
138222
138324
  import { renderToStaticMarkup } from "react-dom/server";
@@ -138250,11 +138352,13 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
138250
138352
  ));
138251
138353
  return FOCUS_STYLE_MARKUP + glassStyleMarkup + scoped;
138252
138354
  };
138355
+ const frameSpec = opts?.platformFrame;
138356
+ const framed = (el2) => frameSpec ? React21.createElement(React21.Fragment, null, platformFrameElement(frameSpec, ctx, el2, (v2) => txt(v2, ctx))) : el2;
138253
138357
  const header = chrome?.stickyHeader;
138254
138358
  const footer = chrome?.stickyFooter;
138255
138359
  const dir = rtl ? { dir: "rtl" } : {};
138256
138360
  if (header || footer) {
138257
- return withRenderStyles(renderToStaticMarkup(
138361
+ return withRenderStyles(renderToStaticMarkup(framed(
138258
138362
  React21.createElement(
138259
138363
  "div",
138260
138364
  // F-22 — same footer pin as ScreenHost: a full-height flex column + margin-top:auto
@@ -138272,22 +138376,23 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
138272
138376
  renderNode(footer, ctx)
138273
138377
  ) : null
138274
138378
  )
138275
- ));
138379
+ )));
138276
138380
  }
138277
138381
  if (rtl) {
138278
- return withRenderStyles(renderToStaticMarkup(
138382
+ return withRenderStyles(renderToStaticMarkup(framed(
138279
138383
  React21.createElement("div", dir, renderNode(payload, ctx))
138280
- ));
138384
+ )));
138281
138385
  }
138282
- return withRenderStyles(renderToStaticMarkup(
138386
+ return withRenderStyles(renderToStaticMarkup(framed(
138283
138387
  React21.createElement(React21.Fragment, null, renderNode(payload, ctx))
138284
- ));
138388
+ )));
138285
138389
  }
138286
138390
  var init_renderToHtml = __esm({
138287
138391
  "../../core/web-renderer/src/renderToHtml.tsx"() {
138288
138392
  "use strict";
138289
138393
  init_define_HHP_CATALOG();
138290
138394
  init_renderNode();
138395
+ init_platformFrame();
138291
138396
  init_env();
138292
138397
  init_glassPreview();
138293
138398
  }
@@ -138432,6 +138537,7 @@ __export(render_descriptor_exports, {
138432
138537
  isObservedTextProp: () => isObservedTextProp,
138433
138538
  launchPngBrowser: () => launchPngBrowser,
138434
138539
  nodeHidden: () => nodeHidden,
138540
+ platformFrameFor: () => platformFrameFor,
138435
138541
  pngAvailable: () => pngAvailable,
138436
138542
  pngPageHtml: () => pngPageHtml,
138437
138543
  renderDescriptorWeb: () => renderDescriptorWeb,
@@ -138715,6 +138821,74 @@ function buildRenderTree(node3, path2 = "$", provider = null, itemScope = void 0
138715
138821
  function isSduiNode(node3) {
138716
138822
  return !!node3 && typeof node3 === "object" && !!node3.body;
138717
138823
  }
138824
+ function platformFrameFor(screenId, descriptor, navigation, homeScreenId, platform = "ios", services2) {
138825
+ const d2 = descriptor ?? {};
138826
+ const bar = d2.topBar ?? {};
138827
+ const str14 = (v2) => typeof v2 === "string" ? v2 : void 0;
138828
+ const visible = (it2) => it2 && typeof it2 === "object" && it2.hiddenUntilResolved !== true;
138829
+ const actions = (Array.isArray(bar.actions) ? bar.actions : []).filter(visible);
138830
+ const items = (Array.isArray(bar.items) ? bar.items : []).filter(visible);
138831
+ const capacity = Math.max(0, 2 - actions.length);
138832
+ const placed = (it2) => str14(it2.placement) ?? "";
138833
+ const trailingFor = (leadingDrawsAvatar) => {
138834
+ let avatarTaken = leadingDrawsAvatar;
138835
+ const eligible = items.filter((it2) => str14(it2.id) && !["leading", "principal", "bottom", "keyboard"].includes(placed(it2))).filter((it2) => platform === "ios" || placed(it2) !== "overflow").filter((it2) => it2.avatar == null || !avatarTaken && (avatarTaken = true));
138836
+ const inline = eligible.filter((it2) => placed(it2) !== "overflow");
138837
+ const more = platform === "ios" && (eligible.length > inline.length || inline.length > capacity);
138838
+ const shown3 = inline.slice(0, Math.max(0, capacity - (more ? 1 : 0)));
138839
+ const button = (it2) => it2.avatar != null ? { avatar: true } : { icon: str14(it2.icon), label: str14(it2.label) ?? (str14(it2.icon) ? void 0 : str14(it2.id)) };
138840
+ return [...actions.map(button), ...shown3.map(button), ...more ? [{ icon: "ellipsis" }] : []];
138841
+ };
138842
+ const surface = resolveSurfaceNav(navigation, "phone");
138843
+ const repoint = (t2) => surface.screenIds && str14(t2.id) && surface.screenIds[str14(t2.id)] ? { ...t2, screenId: surface.screenIds[str14(t2.id)] } : t2;
138844
+ const listOf = (block) => {
138845
+ const list4 = block?.items;
138846
+ return (Array.isArray(list4) ? list4 : []).filter((t2) => !!t2 && typeof t2 === "object").map(repoint);
138847
+ };
138848
+ const shown2 = (t2) => t2.hiddenUntilResolved !== true;
138849
+ const declaredTabs = listOf(navigation?.tabBar);
138850
+ const pickedTabs = surface.destinations ? surface.destinations.map((id) => declaredTabs.find((t2) => str14(t2.id) === id)).filter((t2) => !!t2) : [];
138851
+ const tabs = (pickedTabs.length ? pickedTabs : declaredTabs).filter(shown2);
138852
+ const rootOf2 = (t2) => str14(t2.screenId) ?? str14(t2.id);
138853
+ const drawerItems = listOf(navigation?.drawer).filter(shown2);
138854
+ const kind = surface.navKind || str14(navigation?.navKind) || "bottomTabs";
138855
+ const hasEntries = (block, fallback2 = []) => listOf(block).filter(shown2).length > 0 || fallback2.length > 0 || typeof block?.contentScreenId === "string";
138856
+ const bottomTabs = kind === "drawer" ? !hasEntries(navigation?.drawer) : kind === "sidebar" ? !hasEntries(navigation?.sidebar, tabs) : kind !== "single";
138857
+ const kitBar = navigation?.tabBar?.presentation === "kit";
138858
+ const showTabs = bottomTabs && !kitBar && d2.tabBarVisibility !== "hidden";
138859
+ const own6 = bottomTabs ? tabs.findIndex((t2) => rootOf2(t2) === screenId) : -1;
138860
+ const selected = own6 >= 0 ? own6 : 0;
138861
+ const primaryRoots = kind === "drawer" ? drawerItems.map(rootOf2) : kind === "sidebar" ? (listOf(navigation?.sidebar).length ? listOf(navigation?.sidebar) : tabs).map(rootOf2) : [];
138862
+ const pushed = own6 < 0 && screenId !== homeScreenId && !primaryRoots.includes(screenId);
138863
+ const boundVisibility = (() => {
138864
+ const path2 = str14(bar.visibilityPath);
138865
+ if (!path2?.startsWith("$service:") || !services2) return void 0;
138866
+ let v2 = services2;
138867
+ for (const key3 of path2.slice("$service:".length).split(".")) v2 = v2 && typeof v2 === "object" ? v2[key3] : void 0;
138868
+ return v2;
138869
+ })();
138870
+ const tabRoots = new Set(tabs.map(rootOf2));
138871
+ const hostedDrawer = typeof navigation?.drawer?.contentScreenId === "string";
138872
+ const hasDrawer = kind === "sidebar" ? false : hostedDrawer || (kind === "drawer" ? hasEntries(navigation?.drawer) : kind === "single" ? drawerItems.length > 0 : drawerItems.some((t2) => !tabRoots.has(rootOf2(t2))));
138873
+ const leadingItems = items.filter((it2) => str14(it2.id) && placed(it2) === "leading");
138874
+ const cancel = leadingItems.find((it2) => it2.avatar == null && it2.role === "cancel");
138875
+ const avatar = leadingItems.find((it2) => it2.avatar != null);
138876
+ const fallback = !pushed && hasDrawer ? "menu" : pushed ? "back" : "none";
138877
+ const leading = bar.leading === "none" ? "none" : bar.leading === "back" && pushed ? "back" : bar.leading === "menu" && hasDrawer && (!pushed || platform === "android") ? "menu" : cancel ? platform === "android" ? fallback : "cancel" : !pushed && avatar ? "avatar" : fallback;
138878
+ return {
138879
+ title: d2.title,
138880
+ leading,
138881
+ ...cancel && leading === "cancel" ? { cancelLabel: cancel.label ?? cancel.id } : {},
138882
+ leadingNone: bar.leading === "none",
138883
+ barHidden: (boundVisibility === "visible" || boundVisibility === "hidden" ? boundVisibility : bar.visibility) === "hidden",
138884
+ pushed,
138885
+ hasStickyHeader: d2.stickyHeader != null,
138886
+ // HimalayaScreenHost keeps the bar for ANY authored item (not just those that fit the trailing slot).
138887
+ barHasContent: Array.isArray(bar.actions) && bar.actions.length > 0 || Array.isArray(bar.items) && bar.items.length > 0 || bar.logo != null && bar.logo.placement !== "none" || !pushed && navigation?.topBarLogo != null,
138888
+ trailing: trailingFor(leading === "avatar"),
138889
+ tabs: showTabs ? tabs.map((t2, i2) => ({ label: t2.label ?? t2.id ?? "", icon: str14(t2.icon), selectedIcon: str14(t2.selectedIcon), selected: i2 === selected })) : []
138890
+ };
138891
+ }
138718
138892
  function composeStickyTree(payload, header, footer) {
138719
138893
  if (!header && !footer) return payload;
138720
138894
  const children2 = [];
@@ -138723,7 +138897,7 @@ function composeStickyTree(payload, header, footer) {
138723
138897
  if (footer) children2.push(footer);
138724
138898
  return { id: "screen", type: "ScreenChrome", children: children2 };
138725
138899
  }
138726
- async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, services2 = null, width, isRTL2, idiomContext, assetBaseUrl) {
138900
+ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, services2 = null, width, isRTL2, idiomContext, assetBaseUrl, platformFrame) {
138727
138901
  const desc = descriptor;
138728
138902
  const tooDeep = rawJsonDepthFinding(descriptor);
138729
138903
  if (tooDeep) return { renderable: false, reason: `depth_budget_exceeded: ${tooDeep.message}` };
@@ -138764,7 +138938,7 @@ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, service
138764
138938
  stickyHeader || stickyFooter ? { stickyHeader, stickyFooter } : void 0,
138765
138939
  // #4497 — the agent fast loop is a dev tool: an unknown component type keeps its
138766
138940
  // developer label here (a shipped web app renders nothing for it).
138767
- { ...isRTL2 ? { isRTL: true } : {}, ...idiomContext ? { idiomContext } : {}, ...assetBaseUrl ? { assetBaseUrl } : {}, debugUnknownComponents: true }
138941
+ { ...isRTL2 ? { isRTL: true } : {}, ...idiomContext ? { idiomContext } : {}, ...assetBaseUrl ? { assetBaseUrl } : {}, ...platformFrame ? { platformFrame } : {}, debugUnknownComponents: true }
138768
138942
  );
138769
138943
  } catch (err) {
138770
138944
  return {
@@ -138774,11 +138948,12 @@ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, service
138774
138948
  resolvedRenderTree
138775
138949
  };
138776
138950
  }
138777
- const result = { renderable: true, html, renderTree, resolvedRenderTree, hasStickyFooter: !!stickyFooter };
138951
+ const fillsViewport = !!stickyFooter || !!platformFrame && platformFrame.tabs.length > 0;
138952
+ const result = { renderable: true, html, renderTree, resolvedRenderTree, hasStickyFooter: fillsViewport };
138778
138953
  const nativeOnly = collectNativeOnly(renderTree);
138779
138954
  if (nativeOnly.length) result.nativeOnly = nativeOnly;
138780
138955
  if (wantPng) {
138781
- const png = await renderPng(html, scheme, width, isRTL2, tokens2, idiomContext, !!stickyFooter);
138956
+ const png = await renderPng(html, scheme, width, isRTL2, tokens2, idiomContext, fillsViewport);
138782
138957
  if (png) result.pngBase64 = png;
138783
138958
  else result.pngUnavailable = true;
138784
138959
  }
@@ -138953,6 +139128,7 @@ var init_render_descriptor = __esm({
138953
139128
  init_media_value();
138954
139129
  init_raw_json_depth();
138955
139130
  init_message_format();
139131
+ init_preview_surfaces();
138956
139132
  init_a11y_contract();
138957
139133
  A11Y_MODIFIER_KEYS = [
138958
139134
  "accessibilityLabel",
@@ -148107,6 +148283,7 @@ __export(build_exports2, {
148107
148283
  countingHostAnswers: () => countingHostAnswers,
148108
148284
  countingWixCall: () => countingWixCall,
148109
148285
  declaresHostProvidedIdentity: () => declaresHostProvidedIdentity,
148286
+ drawsPlatformFrame: () => drawsPlatformFrame,
148110
148287
  explicitMinRuntimeVersion: () => explicitMinRuntimeVersion,
148111
148288
  gitSha: () => gitSha,
148112
148289
  idiomContextForRender: () => idiomContextForRender,
@@ -148703,6 +148880,10 @@ function readTokensForLint(preloaded) {
148703
148880
  return void 0;
148704
148881
  }
148705
148882
  }
148883
+ function drawsPlatformFrame(render3) {
148884
+ if (render3?.frame !== true || (render3.surface ?? "phone") !== "phone") return false;
148885
+ return typeof render3.width === "number" && render3.width < 600;
148886
+ }
148706
148887
  function idiomContextForRender(platform, surface) {
148707
148888
  if (platform !== "ios" && platform !== "android") return void 0;
148708
148889
  return { ...IDIOM_CONTEXTS[platform], surface: surface ?? "phone" };
@@ -148780,6 +148961,8 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
148780
148961
  const renderScheme = collect2?.render?.scheme === "dark" ? "dark" : "light";
148781
148962
  const renderPlatform2 = collect2?.render?.platform;
148782
148963
  const renderIdiom = idiomContextForRender(renderPlatform2, collect2?.render?.surface);
148964
+ const drawsFrame = !!renderIdiom && drawsPlatformFrame(collect2?.render);
148965
+ const frameFor2 = (screenId, descriptor, services2) => drawsFrame ? platformFrameFor(screenId, descriptor, preloaded.meta, typeof preloaded.meta.homeScreenId === "string" ? preloaded.meta.homeScreenId : void 0, renderPlatform2, services2) : void 0;
148783
148966
  const compareScheme = collect2?.render?.compareScheme;
148784
148967
  const renderCompare = async (descriptor, services2) => {
148785
148968
  if (!compareScheme || compareScheme === renderScheme) return {};
@@ -149246,7 +149429,7 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
149246
149429
  }
149247
149430
  if (collect2?.render && (!collect2.render.screenId || collect2.render.screenId === screenId)) {
149248
149431
  const { services: services2, liveCalls, liveReturned, liveErrors, mockCalls, mockUnserved, mockBootFailed, liveFailed, liveEmpty, liveRefused } = await renderServicesFor(bundleName, descriptor, screenId);
149249
- const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base);
149432
+ const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base, frameFor2(screenId, descriptor, services2));
149250
149433
  renders.push({ screenId, scheme: renderScheme, ...rr2, ...await renderCompare(descriptor, services2), ...collect2.render.dumpState && services2 ? { serviceState: services2 } : {}, ...liveCalls ? { liveCalls } : {}, ...liveReturned !== void 0 ? { liveReturned } : {}, ...liveFailed ? { liveFailed } : {}, ...liveEmpty ? { liveEmpty } : {}, ...liveRefused ? { liveRefused } : {}, ...liveErrors ? { liveErrors } : {}, ...mockCalls ? { mockCalls, mockUnserved } : {}, ...mockBootFailed ? { mockBootFailed } : {} });
149251
149434
  }
149252
149435
  }
@@ -149289,7 +149472,7 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
149289
149472
  lint.push({ screenId: wantedRender, ok: report9.ok, issues: report9.issues });
149290
149473
  }
149291
149474
  const { services: services2, liveCalls, liveReturned, liveErrors, mockCalls, mockUnserved, mockBootFailed, liveFailed, liveEmpty, liveRefused } = await renderServicesFor(bundleName, descriptor, wantedRender);
149292
- const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base);
149475
+ const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base, frameFor2(wantedRender, descriptor, services2));
149293
149476
  renders.push({ screenId: wantedRender, scheme: renderScheme, ...rr2, ...await renderCompare(descriptor, services2), ...collect2.render.dumpState && services2 ? { serviceState: services2 } : {}, ...liveCalls ? { liveCalls } : {}, ...liveReturned !== void 0 ? { liveReturned } : {}, ...liveFailed ? { liveFailed } : {}, ...liveEmpty ? { liveEmpty } : {}, ...liveRefused ? { liveRefused } : {}, ...liveErrors ? { liveErrors } : {}, ...mockCalls ? { mockCalls, mockUnserved } : {}, ...mockBootFailed ? { mockBootFailed } : {} });
149294
149477
  } else if (res.status === 422) {
149295
149478
  const finding2 = await depthRefusalOf(res);
@@ -216297,6 +216480,7 @@ async function renderCommand(ctx) {
216297
216480
  }
216298
216481
  }
216299
216482
  const platform = renderPlatform(str3(flags.platform));
216483
+ const frame = platform !== void 0 && flags["no-frame"] !== true;
216300
216484
  if (flags.platform !== void 0 && !platform) {
216301
216485
  io2.error(JSON.stringify({ error: `--platform must be ios or android (got "${str3(flags.platform) ?? ""}")` }));
216302
216486
  return 2;
@@ -216335,7 +216519,7 @@ async function renderCommand(ctx) {
216335
216519
  ...hasWorkers ? { tier5Dir: bundleOutDir2(dir) } : {},
216336
216520
  // The settled state is always kept (printed only under --dump-state): it is what says whether
216337
216521
  // the picture landed on the screen's content or on its error, loading or empty state.
216338
- collect: { lint: true, strict, render: { screenId, scheme, png: wantPng, hydrate, dumpState: true, ...live3 ? { live: true } : {}, ...injectedState ? { state: injectedState } : {}, ...injectedInput ? { input: injectedInput } : {}, ...renderWidth ? { width: renderWidth } : {}, ...platform ? { platform } : {}, ...renderSurface ? { surface: renderSurface } : {}, ...flags.rtl === true ? { rtl: true } : {}, ...loadBudgetMs ? { loadBudgetMs } : {}, ...mocks ? { mocks: { rules: mocks.rules, cmsSeed: mocks.cmsSeed, ...mocks.base44Data ? { base44Data: mocks.base44Data } : {} } } : {} } }
216522
+ collect: { lint: true, strict, render: { screenId, scheme, png: wantPng, hydrate, dumpState: true, ...live3 ? { live: true } : {}, ...injectedState ? { state: injectedState } : {}, ...injectedInput ? { input: injectedInput } : {}, ...renderWidth ? { width: renderWidth } : {}, ...platform ? { platform } : {}, ...frame ? { frame: true } : {}, ...renderSurface ? { surface: renderSurface } : {}, ...flags.rtl === true ? { rtl: true } : {}, ...loadBudgetMs ? { loadBudgetMs } : {}, ...mocks ? { mocks: { rules: mocks.rules, cmsSeed: mocks.cmsSeed, ...mocks.base44Data ? { base44Data: mocks.base44Data } : {} } } : {} } }
216339
216523
  });
216340
216524
  const r3 = (outcome.renders ?? [])[0];
216341
216525
  if (!r3) {
@@ -222746,50 +222930,50 @@ var init_preview_assets_generated = __esm({
222746
222930
  init_define_HHP_CATALOG();
222747
222931
  init_preview_assets_format();
222748
222932
  PREVIEW_ASSET_MANIFEST = [
222749
- { key: "assets/DashboardHost-UX_oXg-0.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2984, sha256: "00a6e4bdf5aabd45e4fbce80c52a80f612c4a29f2cca3dc379632bd7877c8c3a" },
222750
- { key: "assets/DevDrawer-D69a3mEn.js", contentType: "application/javascript; charset=utf-8", offset: 2992, length: 16783, sha256: "eebbd86cf618364feb5a2708d3536fe17639b9c6b65783befac0409e2410fc91" },
222751
- { key: "assets/IdiomCompare-CVyS4f2_.js", contentType: "application/javascript; charset=utf-8", offset: 19775, length: 1926, sha256: "bcdf2b27a970d69246fe9880c8dceb4278e313ab9811f66afecc531fa2c2c882" },
222752
- { key: "assets/LightboxViewer-BAcGpdVI.js", contentType: "application/javascript; charset=utf-8", offset: 21701, length: 17379, sha256: "caf7b0817fd41f286085606961287c6bf55689ea37e14f781229a8d3e43fd9cc" },
222753
- { key: "assets/OfflineReadingBar-DHBR8IzQ.js", contentType: "application/javascript; charset=utf-8", offset: 39080, length: 1646, sha256: "a91c67a099a0f498a26e4ab41f169854f20e406c9345a5a1862b114a8e9d91d5" },
222754
- { key: "assets/PhonePreviewControl-Cst2pfF6.js", contentType: "application/javascript; charset=utf-8", offset: 40726, length: 37851, sha256: "b73f6c547be1f23c8f8ab5e51e2a1ae5fa5b94e8d011c211bc381c1dc1c654d8" },
222755
- { key: "assets/SchemeCompare-BmSmvk5t.js", contentType: "application/javascript; charset=utf-8", offset: 78577, length: 1858, sha256: "2e30f0d7b6d5294835adaab2745f4705e0506a6d521051b54957a30818344d4d" },
222756
- { key: "assets/WixFrogTelemetrySink-VQmDQQmY.js", contentType: "application/javascript; charset=utf-8", offset: 80435, length: 3497, sha256: "13436602163cf0c125226fba5a11e680127998f5d963189172ece508198c9613" },
222933
+ { key: "assets/DashboardHost-Dkt8yykH.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2984, sha256: "e826ef5f55e3e6fe6e8b31e1911c6996e1e620c2e0799c317a7f89e918787958" },
222934
+ { key: "assets/DevDrawer-Xew7BiFr.js", contentType: "application/javascript; charset=utf-8", offset: 2992, length: 16783, sha256: "692ccd0572a4862f04962ab4b446c4fa1985d8cfd4416cbdb6b0e077ea82f531" },
222935
+ { key: "assets/IdiomCompare-D3DTQsPc.js", contentType: "application/javascript; charset=utf-8", offset: 19775, length: 1926, sha256: "5dfd234097857e00b518490a26f22cd763db72cd70703680d0d6cfc8e9d79a99" },
222936
+ { key: "assets/LightboxViewer-CJBVb0qZ.js", contentType: "application/javascript; charset=utf-8", offset: 21701, length: 17379, sha256: "9a8dc89a99043771247f7d7ee2bbbf41a8df69c9f2c1408945a08e30944a1f3a" },
222937
+ { key: "assets/OfflineReadingBar-8oyoGONb.js", contentType: "application/javascript; charset=utf-8", offset: 39080, length: 1646, sha256: "5f84a3bd39044fed0e8e96d0de5cab85eed3512ef195951bc25f12ee524412bd" },
222938
+ { key: "assets/PhonePreviewControl-9KM0QxYm.js", contentType: "application/javascript; charset=utf-8", offset: 40726, length: 37851, sha256: "7d2f3b57ebec72ce4c925fcb3a68adec95c1af02c1e4b3cb4a8c2d8f1b25eb86" },
222939
+ { key: "assets/SchemeCompare-Dxkab461.js", contentType: "application/javascript; charset=utf-8", offset: 78577, length: 1858, sha256: "a23c74bd63cc0502387dfaa4ab611e54c997a55cd814a0901b367b74cda7de67" },
222940
+ { key: "assets/WixFrogTelemetrySink-DGrETY8d.js", contentType: "application/javascript; charset=utf-8", offset: 80435, length: 3497, sha256: "43409962b43b1aacb4ffb821e1f9f2775e901049b260e414e8c76ea7c8d7d024" },
222757
222941
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83932, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
222758
222942
  { key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86124, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
222759
- { key: "assets/catalogFontFaces-BowoRlfO.js", contentType: "application/javascript; charset=utf-8", offset: 112170, length: 1111, sha256: "2d8f2d4b7cccd0e7051cdc9fc7f76bf270b490afcaf4ee20960b5c9152b8f8ec" },
222943
+ { key: "assets/catalogFontFaces-DarpOX-8.js", contentType: "application/javascript; charset=utf-8", offset: 112170, length: 1111, sha256: "e2dd72a0beb134687199d4b5728fdbb980a8af81071b31d3cee74c9a653d0603" },
222760
222944
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113281, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
222761
- { key: "assets/files-transfer-Cv7Ehv8o.js", contentType: "application/javascript; charset=utf-8", offset: 115848, length: 6446, sha256: "e8e95a042762e49cd6df2d3c7e4a7778f4e38911d8243ac42d5ceec07af6a24d" },
222945
+ { key: "assets/files-transfer-DSAckwLq.js", contentType: "application/javascript; charset=utf-8", offset: 115848, length: 6446, sha256: "9934ee9b52dda45ddb2f182c76d3cdb75b10f1fff150d94556d12c21bbdfcc6f" },
222762
222946
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122294, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
222763
- { key: "assets/frogApiRules-CThDyGOl.js", contentType: "application/javascript; charset=utf-8", offset: 123466, length: 2207, sha256: "6cc0474affbea9dd521df34955e58cba9a3127cc34ef57511bd138c18dc2557c" },
222947
+ { key: "assets/frogApiRules-CG0L8zVF.js", contentType: "application/javascript; charset=utf-8", offset: 123466, length: 2207, sha256: "5138a3316bd0e68303f18a1cc080171359db321492fec3cf23919ac50ca4b26e" },
222764
222948
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125673, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
222765
222949
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126740, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
222766
222950
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133318, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
222767
- { key: "assets/index-C1YVSkGx.js", contentType: "application/javascript; charset=utf-8", offset: 136022, length: 1565059, sha256: "096d34d704bbbd43452eeeda5afb1b26b5b2a99bd6bfc895257f256539db2bce" },
222768
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1701081, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
222769
- { key: "assets/pdf-CaFRYMot.js", contentType: "application/javascript; charset=utf-8", offset: 1708832, length: 488215, sha256: "6eef5856f65113cbc7504d7f926fe7039c48f614b3b0daf20c0e6eea0315c923" },
222770
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2197047, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
222771
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2197137, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
222772
- { key: "assets/pdfDocument-CsdMOHbU.js", contentType: "application/javascript; charset=utf-8", offset: 3514171, length: 3470, sha256: "ece52451b53e51793249d1bc76f14571678fda9f58a2743d47fe0eb8a7797949" },
222773
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3517641, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
222774
- { key: "assets/webviewBridgeHost-Q0VfzIeF.js", contentType: "application/javascript; charset=utf-8", offset: 3519907, length: 9888, sha256: "f60e717b66afe369d4d965657677e66c7d58339eec2c3b7e9f53af9d1549c74f" },
222775
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3529795, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
222776
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3534405, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
222777
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4022989, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
222778
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4113913, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
222779
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4204897, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
222780
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4295877, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
222781
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4386749, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
222782
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4477729, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
222783
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4586365, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
222784
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4695449, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
222785
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4804497, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
222786
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4912197, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
222787
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5000305, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
222788
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5007123, length: 4924, sha256: "7f7c014ed1bdd122a42f23fb78c31630153a026c264d137ab54d0e8036d4ca76" },
222789
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5012047, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
222790
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5023504, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
222791
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5024675, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
222792
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5047722, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
222951
+ { key: "assets/index-DmB0MJKJ.js", contentType: "application/javascript; charset=utf-8", offset: 136022, length: 1565290, sha256: "a7553f2bd9aba01389289b01059bacd1daa8f8c3503f320ccf95a7ce4487ff1f" },
222952
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1701312, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
222953
+ { key: "assets/pdf-11HKDITS.js", contentType: "application/javascript; charset=utf-8", offset: 1709063, length: 488215, sha256: "0f5533bf4197dc43489701db18378cecdb02db230a0fc2603e764999544513da" },
222954
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2197278, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
222955
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2197368, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
222956
+ { key: "assets/pdfDocument-iMU9yIaT.js", contentType: "application/javascript; charset=utf-8", offset: 3514402, length: 3470, sha256: "3ff2e5acf741af0d65b9ea75b88477bd74cac31cfeb806c93a4991794afb08c8" },
222957
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3517872, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
222958
+ { key: "assets/webviewBridgeHost-vl_MZxfG.js", contentType: "application/javascript; charset=utf-8", offset: 3520138, length: 9888, sha256: "2b14eb62daabb9b8fc1b12010b5c7d182f997aebb04bae249c1276464a7fc15e" },
222959
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3530026, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
222960
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3534636, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
222961
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4023220, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
222962
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4114144, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
222963
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4205128, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
222964
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4296108, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
222965
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4386980, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
222966
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4477960, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
222967
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4586596, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
222968
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4695680, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
222969
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4804728, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
222970
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4912428, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
222971
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5000536, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
222972
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5007354, length: 4924, sha256: "d4354e106e5e5e7184e55323a6fff572f68747b9b25048bfbe4a22bc7af35ac6" },
222973
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5012278, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
222974
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5023735, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
222975
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5024906, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
222976
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5047953, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
222793
222977
  ];
222794
222978
  }
222795
222979
  });
@@ -249443,7 +249627,8 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
249443
249627
  "overwrite",
249444
249628
  "input-evidence",
249445
249629
  "wix-token-stdin",
249446
- "no-key"
249630
+ "no-key",
249631
+ "no-frame"
249447
249632
  ]);
249448
249633
  var SWITCH_FLAGS = new Set([...BOOLEAN_FLAGS].filter((name) => name !== "deep"));
249449
249634
  var SWITCH_CONSEQUENCE = {
@@ -250414,7 +250599,7 @@ var COMMANDS = [
250414
250599
  { name: "ux", summary: "audit or record mobile UX evidence. `audit` checks the public-safe contract, seeded blank acceptance rows, placeholder source copy, app-specific mocks, and iOS/Android audit records. It warns while existing templates migrate; `--strict` promotes missing evidence. `record` stores checks performed on an installed iOS/Android build: `--checks` is required for passed|failed and empty for unavailable, which drove nothing and needs a `--reason` instead. `record` also STAMPS the release it audited (it resolves the id from a build, the same one a push would publish), because an unforced `himi push` of a release with screens refuses when no drive is recorded for THAT release, or when the one that is recorded says `failed` \u2014 the artifact stopped being advice nobody reads (#2955). `unavailable` still satisfies it; only `failed` refuses. An `unavailable` record is the honest close for an agent with no device: `audit` (strict or not) lists it under `disclosedGaps` with a `<platform>-audit-not-run` warning, and `push` names it in `uxNotDriven` \u2014 a disclosed gap, never a pass (#5607).", required: "audit [--content <dir>] [--strict] [--json] | record --content <dir> --platform ios|android --status passed|failed|unavailable [--checks back,keyboard,...] [--reason <text>]" },
250415
250600
  { name: "progress", summary: 'the build JOURNAL an agent keeps for the owner while it works. `himi progress "<what changed>" --step <1-8|name> --image <png>` appends one postcard to .himi/progress.jsonl \u2014 the step is one of the customer journey\'s eight (discover, classify, plan, implement, brand, validate, review, download) \u2014 and COPIES each image, content-addressed, into .himi/history/, because .himi/shots/ is overwritten by every render and cleared by every full `himi test`, so a path into it would later show a different picture than the one the owner was sent. --image repeats. With NO --image, the home screen\'s current shot is attached automatically, only when it is no older than the last source change and not the picture the latest journaled postcard already shows \u2014 and never a shot that landed on loading placeholders, an empty or an error state (.himi/shot-states.json): then the newest home picture of the current source that shows content goes on instead (its .himi/history copy, `imageNote` saying so), or none \u2014 except on the HANDOVER card (`--step review`), where a repeat is the point and it attaches anyway; that card\'s output also names the making-of (`makingOf`, .himi/making-of.html, rebuilt when missing or older than the journal so it ends on this card) and its `next` says to hand it to the owner beside the preview link; `imageAttached` in the output says whether the postcard carries a picture (with `imageNote` saying why not, or which picture went on instead), and `--no-image` sends a text-only postcard. --notify also raises a best-effort desktop notification for an owner who stepped away. A bare `himi progress` prints the journal with the current step and elapsed time \u2014 also how an agent recovers its place after its context was compacted. APPROVALS: `--approve <gate> "<what>"` records one the customer just gave (gates: site-create, connect, private-data, draft, promote, push-signing, qa-build) in .himi/approvals.jsonl, and `--done <gate>` / `--drop <gate>` closes it \u2014 an approval is owed until then, and the chat that held it does not survive a new session. `--brief` prints plain text for a session start: the current step, the last postcard, every open approval, and whether this app\'s agent files are stale \u2014 the SessionStart hook `himi agent-init` installs runs exactly this. The CLI also journals milestones by itself \u2014 the first PNG render of the home screen (for an app a current `himi init` started: once as the template\'s "Starting point" while the source is what init wrote, then once as "First look at your app" after it diverges, Markdown edits not counting; once per app otherwise), a `himi test` crawl whose outcome changed since the last one (its counts or its home picture; an identical re-run writes none, and a repeat names what changed: "The home screen changed since the last crawl." or the changed counts, was \u2192 now), every draft push (with the home picture only when that shot is newer than the last source edit \u2014 otherwise the postcard says why and names `himi render <home> --png`), and ONE rule for a long silence: a successful home `render --png` more than ten minutes after the newest postcard of any kind, with a picture the latest postcard does not show, journals "Still building: here\'s the home screen now." with it (never twice within the window). When a crawl\'s or a draft\'s home picture is the first of an app whose source diverged, "First look at your app" is journaled first, from that shot, once. All are marked `"by": "himi"`; they never move the journey step, carry no link or credential, and step aside (folded out of every reader) when the agent journals the same step or picture within five minutes. Local only: nothing is sent anywhere.', required: '["<message>" [--step <1-8|name>] [--image <png>]\u2026 [--no-image] [--notify]] [--content <dir>] | --approve|--done|--drop <gate> ["<note>"] | --brief' },
250416
250601
  { name: "studio", summary: "open the BUILD BOARD \u2014 one local page the owner can leave open while an agent builds their app, which fills itself in: every screen as it renders (NEW/CHANGED badges, and each earlier version kept for a filmstrip), the journey stepper and the latest postcard from `himi progress`, the validate/test/UX/draft checks as they run, the site next to the app's home screen with its palette, and the navigation the test crawl followed. Writes .himi/studio/index.html and opens it; the page re-reads its state every two seconds, so nothing needs to be served. OPT-IN BY EXISTENCE: until this command (or `himi init`, which makes the board for every app it creates, without opening a browser) has run, no other command touches .himi/studio/ \u2014 after it, render/test/validate/push/icon/site/ux/progress each refresh the board as they finish (best-effort; never fails a command). Every image is a content-addressed copy in .himi/history/, never a live path into .himi/shots/. Local only, no secrets: it never reads a preview token, handover code or control token. --no-open prints the path instead (SSH, CI). `himi studio reel` writes the MAKING-OF: one self-contained HTML file (every image inlined, nothing fetched) with a flipbook of the home screen version by version, captioned by the postcard in effect at the time, the final screens, and every postcard \u2014 sized to stay attachable, thinning frames first. Defaults to .himi/making-of.html (never archived by push), which every successful `himi push --draft` also rebuilds and names as `reel` in its output; --out to put it elsewhere. The output names that file as the one to hand the owner (`handover: {file, hint}` in JSON; two plain lines at a terminal) \u2014 beside the preview link, never instead of it.", required: "[--content <dir>] [--no-open] | reel [--out <file>] [--no-open]" },
250417
- { name: "render", summary: "headless-render a screen with the web renderer: render-tree + diagnostics, optional --png [<file>] (bare: .himi/shots/<id>.png, what the build board shows), --scheme dark, --tree. Local by default (content dir). Pass --remote --app --release to hit GET /v1/preview/\u2026/render on the serve plane after a push. Boots the worker so $service bindings resolve; --static raw bindings; --live real Wix fetches; --mocks (the DEFAULT whenever the app has recorded data; --no-mocks for the offline initial state) runs load() against the app's own recorded data (dev/net-mocks.json from `himi test --record`, then the config's cms seed rows, and the Base44 layer `himi test` uses \u2014 base44.entities seed rows and the analyze book's sample rows \u2014 hermetic, never a request; with neither it paints the initial state, and `mocks: {used: false}` says why), which is what the automatic pictures use, so they show the app's content instead of its offline placeholders; --state injects worker state; --input supplies pre-boot navigation params; --width/--device for PNG viewport; --rtl for dir=rtl + $env:isRTL.", required: "<screenId> [--content <dir>] [--scheme dark] [--png [<file>]] [--tree] [--static] [--live] [--mocks | --no-mocks] [--state <json|file>] [--input <json|file>] [--width <px> | --device <name>] [--platform ios|android] [--rtl] [--remote --app --release]" },
250602
+ { name: "render", summary: "headless-render a screen with the web renderer: render-tree + diagnostics, optional --png [<file>] (bare: .himi/shots/<id>.png, what the build board shows), --scheme dark, --tree. Local by default (content dir). Pass --remote --app --release to hit GET /v1/preview/\u2026/render on the serve plane after a push. Boots the worker so $service bindings resolve; --static raw bindings; --live real Wix fetches; --mocks (the DEFAULT whenever the app has recorded data; --no-mocks for the offline initial state) runs load() against the app's own recorded data (dev/net-mocks.json from `himi test --record`, then the config's cms seed rows, and the Base44 layer `himi test` uses \u2014 base44.entities seed rows and the analyze book's sample rows \u2014 hermetic, never a request; with neither it paints the initial state, and `mocks: {used: false}` says why), which is what the automatic pictures use, so they show the app's content instead of its offline placeholders; --state injects worker state; --input supplies pre-boot navigation params; --width/--device for PNG viewport; --platform ios|android draws that phone's controls and, at a phone width (--device iphone|pixel or --width under 600), the status bar, navigation bar (title, back, trailing items) and tab bar its shell draws (--no-frame for the bare screen); --rtl for dir=rtl + $env:isRTL.", required: "<screenId> [--content <dir>] [--scheme dark] [--png [<file>]] [--tree] [--static] [--live] [--mocks | --no-mocks] [--state <json|file>] [--input <json|file>] [--width <px> | --device <name>] [--platform ios|android [--no-frame]] [--rtl] [--remote --app --release]" },
250418
250603
  { name: "fidelity", summary: "does each HHP screen look like the mockup it was designed from? Per screen and variant (light, dark, rtl, tablet) it captures the free-HTML mockup (hhp.json `mockup`) and the web render with the app's recorded data, scores mockup\u2194web (ImageMagick SSIM, global + worst tile), and asks a fresh model (tools/judges/fidelity) two questions: design (web vs mockup) and parity (native vs web). Native frames come from Himi Player on the devices passed with --ios/--android (and --ios-tablet/--android-tablet for the tablet variant), opened by `himi://app/<app-id>/screen/<screen>`; only those devices are touched, their appearance and language are restored afterwards, and a variant with no device is reported skipped. --serve <port> serves the working copy on 127.0.0.1:<port> as `himi run` does, for a Debug Player built against that origin; an iOS Player built against another origin is skipped with the rebuild to run. pass/warn/fail per row; exit 1 if any row fails. Writes .himi/fidelity/<run>/report.json and a strip PNG per row. --post-pr <n> keeps one plain PR comment up to date. Advisory, not a merge gate; repo-only for now (refuses with code fidelity_outside_repo elsewhere).", required: "[--content <dir>] [--screen <id,\u2026>] [--variant <light,dark,rtl,tablet>] [--ios <udid>] [--android <serial>] [--ios-tablet <udid>] [--android-tablet <serial>] [--app-id <id>] [--release <id>] [--serve <port>] [--no-native] [--json] [--post-pr <n>]" },
250419
250604
  { name: "l10n", summary: "import translations into per-app RFC 0054 catalogs (`apps/<app>/l10n/<tag>.json`). `import --format oneapp <dir>` converts OneApp `messages_<locale>.json` files (flat OneApp key \u2192 ICU MessageFormat string): the OneApp key becomes the catalog row's `key` (what a descriptor references as `$t:<KEY>`), the row id is the extractor's content hash of the source-locale string, and `{{x}}` placeholders become ICU `{x}`. Messages using constructs outside the supported ICU subset (selectordinal, number/date skeletons, plural offset, HTML tags) are kept VERBATIM and listed in the report with key and locale. Merges with an existing catalog \u2014 manual translations and keys survive unless --overwrite; rows the import does not touch survive always. Default locales: every messages_<tag>.json found; --source (default en) names the locale supplying each row's `source` string. Warns when the app's `locale` config does not declare an imported tag, printing the config line to add. Deterministic output: re-running over the same inputs produces no diff.", required: "import --format oneapp <dir> (--app <slug> | --content <app dir>) [--locales en,he] [--source en] [--overwrite] [--json]" },
250420
250605
  { name: "cms", summary: "inspect, provision, and seed the app's CMS (Wix Data) collections, declared as a `cms` block in config.ts. `query` is READ-ONLY \u2014 by default it fetches ONLY the physical ids `config.ts` declares (item counts + schema drift) and reports `siteScanned: false`; it never lists the site, so an UNDECLARED `himi_<app>_` collection this app owns is not reached without `--all`. `--all` SCANS the site \u2014 every collection it lists is labeled `owned`/`adopted`/`foreign`, and it describes every foreign one \u2014 id, non-system field keys + types, and the site's read role \u2014 so an app with no `cms` block at all can DISCOVER a collection to adopt (`--all` is the one case where a missing `cms` block is not 'nothing to do'). Foreign collections are described up to a cap and are never item-counted (`itemCount: null`), because a row count is one query each; `foreign.count` is how many the scan LISTED \u2014 it follows the list endpoint's pages, and `listingIncomplete: true` says when the walk stopped short of the end, with `unlistedCollections` counting what it left out when Wix gave a paging total \u2014 and `foreign.truncated` says how many of those went undescribed, each still NAMED in `foreign.others` (id + displayName), so a collection the site already has is never hidden behind the cap. The scan is OWNER-scoped \u2014 it needs --site <msid> (or WIX_SITE_ID) plus owner auth via `wix token`; a visitor token can read a public collection's ITEMS but can never enumerate collections, so there is no tokenless discovery path. `create` reconciles declared collections additively and idempotently, and REFUSES any id outside the app's `himi_<app>_` namespace, so it is safe against a production site. It reports declared-vs-site `permissionDrift` but never writes permissions unless asked with --apply-permissions, so a field reconcile can't silently revert access control changed in the dashboard. `seed` inserts the git-tracked `seed:` rows into EMPTY owned collections (--force to add to a non-empty one; --ai writes placeholder rows plus a refinement prompt for you to review). Adopted collections (declared by `wixId`) are read-only and never created, updated, or seeded. Site from --site <msid> or WIX_SITE_ID; owner auth via `wix token`.", required: "query|create|seed [--site <msid>] [--content <dir>] [--all] [--dry-run] [--force] [--allow-destructive] [--apply-permissions] [--only <id>] [--ai] [--count <n>]" },
Binary file
@@ -24,7 +24,9 @@ the `header` in sentence case; iPhone uppercases it. Choose one structure and sa
24
24
  in `MOBILE-UX.md`. Per-platform *look* — type face, corner radius, spacing — is the
25
25
  `material` token overlay (see **Idiom overlay** in `himi docs ios-ux`), not a second screen.
26
26
  The overlay may change type face, radius and spacing; it may not change a brand colour.
27
- `himi render --platform android` changes the switch, the segmented button, the section look, and the type face.
27
+ `himi render --platform android` changes the switch, the segmented button, the section look, and the type face,
28
+ and at a phone width (`--device pixel`, or `--width` under 600) draws the status bar, the back arrow on a pushed screen and the Material navigation bar
29
+ (`--no-frame` for the bare screen). Today's Android shell draws no top app bar, so the render draws none. The frame does not draw a top-bar logo, a kit tab bar (`tabBar.presentation: "kit"`), custom tab-bar colours, or labels, icons and visibility the app's nav worker sets; judge those on a simulator.
28
30
  A list or a grid looks the same in the iPhone PNG. That is one descriptor, not a failed render.
29
31
 
30
32
  ## Patterns
@@ -291,7 +291,7 @@
291
291
  "tokenPath",
292
292
  "text"
293
293
  ],
294
- "propsSource": "export interface BadgeProps {\n /** Badge text — binding-aware (\"$item.\"/\"$service:\") on web, iOS and Android. */\n text: string;\n style?: string;\n /** #1055 — explicit color token (overrides `style`). #2286.4a — this names the\n * **FOREGROUND** (text) colour; the pill's fill is derived from it, a **16% tint of\n * this same token** over the surface behind the badge. One token drives both, so\n * choose one with contrast **against `surfacePrimary`**, not against the fill:\n * `accentPrimary` / `success` / `danger` read; an already-pale token such as\n * `accentSoft` paints pale-on-pale and is effectively invisible. The same 16% on web,\n * iOS and Android.\n * A LITERAL token name. `tokenPath` takes the binding — but only the PRE-SUBSTITUTED kind:\n * `$item.<field>` in a list row, which the renderer replaces with a literal before this prop\n * is read. A `$service:` sentinel here is NOT live and is the one shape to avoid: on iOS it\n * is not recognised as a binding and falls back to `token`, and on web it is read once at\n * render and never resubscribed, so a later worker update never repaints it. Drive a\n * worker-driven colour through `modifiers.background` instead — that one IS subscribed on\n * web and bound on native. */\n token?: TokenName;\n /** #1055 — `$service:`/`$item.` binding resolving to a color TOKEN NAME (overrides `token`/`style`). Binding-aware. */\n tokenPath?: string;\n}"
294
+ "propsSource": "export interface BadgeProps {\n /** Badge text — binding-aware (\"$item.\"/\"$service:\") on web, iOS and Android. */\n text: string;\n style?: string;\n /** #1055 — explicit color token (overrides `style`). #2286.4a — this names the\n * **FOREGROUND** (text) colour; the pill's fill is derived from it, a **16% tint of\n * this same token** mixed into an opaque `surfacePrimary`, so a badge on a photo keeps its pill. One token drives both, so\n * choose one with contrast **against `surfacePrimary`**, not against the fill:\n * `accentPrimary` / `success` / `danger` read; an already-pale token such as\n * `accentSoft` paints pale-on-pale and is effectively invisible. The same 16% on web,\n * iOS and Android.\n * A LITERAL token name. `tokenPath` takes the binding — but only the PRE-SUBSTITUTED kind:\n * `$item.<field>` in a list row, which the renderer replaces with a literal before this prop\n * is read. A `$service:` sentinel here is NOT live and is the one shape to avoid: on iOS it\n * is not recognised as a binding and falls back to `token`, and on web it is read once at\n * render and never resubscribed, so a later worker update never repaints it. Drive a\n * worker-driven colour through `modifiers.background` instead — that one IS subscribed on\n * web and bound on native. */\n token?: TokenName;\n /** #1055 — `$service:`/`$item.` binding resolving to a color TOKEN NAME (overrides `token`/`style`). Binding-aware. */\n tokenPath?: string;\n}"
295
295
  },
296
296
  {
297
297
  "name": "Tag",
@@ -301,7 +301,7 @@
301
301
  "tokenPath",
302
302
  "text"
303
303
  ],
304
- "propsSource": "export interface TagProps {\n /** Tag text — binding-aware (\"$item.\"/\"$service:\") on web, iOS and Android. */\n text: string;\n /** #2286.4a — the tag's **FOREGROUND** (text) colour token; default `accentPrimary`.\n * The pill is not a separate colour: its fill is a **14% tint of this same token**\n * over the surface behind it, with a 30% border of it. One token drives all three,\n * so choose one with contrast **against `surfacePrimary`**, not against the fill.\n * That is the whole trap: `accentSoft` (and any other already-pale token) renders\n * near-invisible — pale text on a 14% wash of the same pale colour — while\n * `accentPrimary` / `success` / `danger` read correctly. The same 14% fill and 30%\n * border on web, iOS and Android.\n * A LITERAL token name. `tokenPath` takes the binding — but only the PRE-SUBSTITUTED kind:\n * `$item.<field>` in a list row, which the renderer replaces with a literal before this prop\n * is read. A `$service:` sentinel here is NOT live and is the one shape to avoid: on iOS it\n * is not recognised as a binding and falls back to `token`, and on web it is read once at\n * render and never resubscribed, so a later worker update never repaints it. Drive a\n * worker-driven colour through `modifiers.background` instead — that one IS subscribed on\n * web and bound on native. */\n token?: TokenName;\n /** #1055 — `$service:`/`$item.` binding resolving to a color TOKEN NAME (overrides `token`). Binding-aware. */\n tokenPath?: string;\n}"
304
+ "propsSource": "export interface TagProps {\n /** Tag text — binding-aware (\"$item.\"/\"$service:\") on web, iOS and Android. */\n text: string;\n /** #2286.4a — the tag's **FOREGROUND** (text) colour token; default `accentPrimary`.\n * The pill is not a separate colour: its fill is a **14% tint of this same token**\n * mixed into an opaque `surfacePrimary`, with a 30% border of it. One token drives all three,\n * so choose one with contrast **against `surfacePrimary`**, not against the fill.\n * That is the whole trap: `accentSoft` (and any other already-pale token) renders\n * near-invisible — pale text on a 14% wash of the same pale colour — while\n * `accentPrimary` / `success` / `danger` read correctly. The same 14% fill and 30%\n * border on web, iOS and Android.\n * A LITERAL token name. `tokenPath` takes the binding — but only the PRE-SUBSTITUTED kind:\n * `$item.<field>` in a list row, which the renderer replaces with a literal before this prop\n * is read. A `$service:` sentinel here is NOT live and is the one shape to avoid: on iOS it\n * is not recognised as a binding and falls back to `token`, and on web it is read once at\n * render and never resubscribed, so a later worker update never repaints it. Drive a\n * worker-driven colour through `modifiers.background` instead — that one IS subscribed on\n * web and bound on native. */\n token?: TokenName;\n /** #1055 — `$service:`/`$item.` binding resolving to a color TOKEN NAME (overrides `token`). Binding-aware. */\n tokenPath?: string;\n}"
305
305
  },
306
306
  {
307
307
  "name": "ProgressBar",