@wix/himalaya-cli 0.1671.0 → 0.1672.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -2
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{6eef5856f65113cbc7504d7f926fe7039c48f614b3b0daf20c0e6eea0315c923.bin → cf2ac6865a1e6be5cccec4f2538bf18bbbf121a5f5971ad46212bf3a848ec35c.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +239 -54
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/android-ux.md +3 -1
- package/guides/component-reference.json +2 -2
- package/guides/component-reference.md +2 -2
- package/guides/designing-himi-screens.md +3 -1
- package/guides/ios-ux.md +6 -4
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -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
|
|
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,
|
|
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-
|
|
222750
|
-
{ key: "assets/DevDrawer-
|
|
222751
|
-
{ key: "assets/IdiomCompare-
|
|
222752
|
-
{ key: "assets/LightboxViewer-
|
|
222753
|
-
{ key: "assets/OfflineReadingBar-
|
|
222754
|
-
{ key: "assets/PhonePreviewControl
|
|
222755
|
-
{ key: "assets/SchemeCompare-
|
|
222756
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
222933
|
+
{ key: "assets/DashboardHost-DDz6f3jr.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2984, sha256: "92e4c2c5643f3328cc5bcca0fe7c34407165aaabb03da833fa70b34f6260b259" },
|
|
222934
|
+
{ key: "assets/DevDrawer-DAnNrvEw.js", contentType: "application/javascript; charset=utf-8", offset: 2992, length: 16783, sha256: "ca7af545f6ea02aa6f5fe1b899ef14869f986a9cd9fd8edf4f135be1a138a5ff" },
|
|
222935
|
+
{ key: "assets/IdiomCompare-CAAg4GVY.js", contentType: "application/javascript; charset=utf-8", offset: 19775, length: 1926, sha256: "e07c76f50e7effab208c7fcbe2ea52d3bd09690f3bfe9b147dc7c6a386f8adfb" },
|
|
222936
|
+
{ key: "assets/LightboxViewer-ChAgn09C.js", contentType: "application/javascript; charset=utf-8", offset: 21701, length: 17379, sha256: "9a71c33960f1f70ac815ae036973cd29f54ed0ff9ae531390cf49cd438919dca" },
|
|
222937
|
+
{ key: "assets/OfflineReadingBar-BHKyn3fS.js", contentType: "application/javascript; charset=utf-8", offset: 39080, length: 1646, sha256: "4a0aefd8ead269c3298e61740ff6dace56fc13cffef1fec5f98ee588eeead296" },
|
|
222938
|
+
{ key: "assets/PhonePreviewControl--6eecl2m.js", contentType: "application/javascript; charset=utf-8", offset: 40726, length: 37851, sha256: "75ee5e75479639d3a699f0d7adc550c9ed8454a7263342f6cefe0f48359fefbd" },
|
|
222939
|
+
{ key: "assets/SchemeCompare-BfqXx-sZ.js", contentType: "application/javascript; charset=utf-8", offset: 78577, length: 1858, sha256: "ef033da3c8e879d3e84c7c710920eb8f1dbea6b07f9cbb295bfc89aae239bd65" },
|
|
222940
|
+
{ key: "assets/WixFrogTelemetrySink-9xk0fLVA.js", contentType: "application/javascript; charset=utf-8", offset: 80435, length: 3497, sha256: "a6958aa7f82c3ce12493581b715d3c89361d5ec881a6df93259f0c6b29935650" },
|
|
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-
|
|
222943
|
+
{ key: "assets/catalogFontFaces-B0R6HIow.js", contentType: "application/javascript; charset=utf-8", offset: 112170, length: 1111, sha256: "dff6e6ed0237ed2e4604e979ed1058d5683bf3b5ac89489e9cb30cf7e5e0bc78" },
|
|
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-
|
|
222945
|
+
{ key: "assets/files-transfer-CV9voERK.js", contentType: "application/javascript; charset=utf-8", offset: 115848, length: 6446, sha256: "78929714c922287b1c317482c623d2195500d2c5320b6e6f958754f4399e759d" },
|
|
222762
222946
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122294, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
222763
|
-
{ key: "assets/frogApiRules-
|
|
222947
|
+
{ key: "assets/frogApiRules-Dkw51eux.js", contentType: "application/javascript; charset=utf-8", offset: 123466, length: 2207, sha256: "cee7129a49db038aeb53c17fc767d0dcc1fcafdf587c68c96c662d05f8d7f47d" },
|
|
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-
|
|
222768
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
222769
|
-
{ key: "assets/pdf-
|
|
222770
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
222771
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
222772
|
-
{ key: "assets/pdfDocument-
|
|
222773
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
222774
|
-
{ key: "assets/webviewBridgeHost-
|
|
222775
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
222776
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
222777
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
222778
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
222779
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
222780
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
222781
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
222782
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
222783
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
222784
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
222785
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
222786
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
222787
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
222788
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
222789
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
222790
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
222791
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
222792
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
222951
|
+
{ key: "assets/index-DZUhelsx.js", contentType: "application/javascript; charset=utf-8", offset: 136022, length: 1565244, sha256: "0d4eec4ac4f25fb0581d3cf5e8d255a829447f083f29e8152a1995e85df9bc9e" },
|
|
222952
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1701266, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
222953
|
+
{ key: "assets/pdf-DralfB9K.js", contentType: "application/javascript; charset=utf-8", offset: 1709017, length: 488215, sha256: "cf2ac6865a1e6be5cccec4f2538bf18bbbf121a5f5971ad46212bf3a848ec35c" },
|
|
222954
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2197232, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
222955
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2197322, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
222956
|
+
{ key: "assets/pdfDocument-C16eHcfe.js", contentType: "application/javascript; charset=utf-8", offset: 3514356, length: 3470, sha256: "960cd697ed1610c82fbe3491a7791c13a65f451d7a1f31e9ea075bb182e23586" },
|
|
222957
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3517826, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
222958
|
+
{ key: "assets/webviewBridgeHost-CJa2wzlM.js", contentType: "application/javascript; charset=utf-8", offset: 3520092, length: 9888, sha256: "fa9c023ed92286ba845dc67038e4a2341592c9e94655d7429fb8b64cc46eae7d" },
|
|
222959
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3529980, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
222960
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3534590, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
222961
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4023174, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
222962
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4114098, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
222963
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4205082, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
222964
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4296062, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
222965
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4386934, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
222966
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4477914, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
222967
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4586550, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
222968
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4695634, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
222969
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4804682, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
222970
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4912382, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
222971
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5000490, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
222972
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5007308, length: 4924, sha256: "f177622464ce1d149de7d3c019d4f4e0f00e09ed97f462f099244fa70098f3cc" },
|
|
222973
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5012232, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
222974
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5023689, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
222975
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5024860, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
|
|
222976
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5047907, 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
|
package/guides/android-ux.md
CHANGED
|
@@ -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**
|
|
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 *
|
|
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",
|
|
@@ -758,7 +758,7 @@ export interface BadgeProps {
|
|
|
758
758
|
style?: string;
|
|
759
759
|
/** #1055 — explicit color token (overrides `style`). #2286.4a — this names the
|
|
760
760
|
* **FOREGROUND** (text) colour; the pill's fill is derived from it, a **16% tint of
|
|
761
|
-
* this same token**
|
|
761
|
+
* this same token** mixed into an opaque `surfacePrimary`, so a badge on a photo keeps its pill. One token drives both, so
|
|
762
762
|
* choose one with contrast **against `surfacePrimary`**, not against the fill:
|
|
763
763
|
* `accentPrimary` / `success` / `danger` read; an already-pale token such as
|
|
764
764
|
* `accentSoft` paints pale-on-pale and is effectively invisible. The same 16% on web,
|
|
@@ -784,7 +784,7 @@ export interface TagProps {
|
|
|
784
784
|
text: string;
|
|
785
785
|
/** #2286.4a — the tag's **FOREGROUND** (text) colour token; default `accentPrimary`.
|
|
786
786
|
* The pill is not a separate colour: its fill is a **14% tint of this same token**
|
|
787
|
-
*
|
|
787
|
+
* mixed into an opaque `surfacePrimary`, with a 30% border of it. One token drives all three,
|
|
788
788
|
* so choose one with contrast **against `surfacePrimary`**, not against the fill.
|
|
789
789
|
* That is the whole trap: `accentSoft` (and any other already-pale token) renders
|
|
790
790
|
* near-invisible — pale text on a 14% wash of the same pale colour — while
|