@wix/himalaya-cli 0.1798.0 → 0.1800.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/cli.mjs CHANGED
@@ -19121,11 +19121,47 @@ var init_validator = __esm({
19121
19121
  dirtyPath: { type: "string" },
19122
19122
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
19123
19123
  visibilityPath: { type: "string" },
19124
- // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
19125
- titleAlign: { type: "string" }
19124
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17).
19125
+ titleAlign: { type: "string" },
19126
+ // RFC 0066 amendment "Bar types, styles, search, save and modes" (fields 16, 18–20).
19127
+ coverTone: { type: "string" },
19128
+ solidAfter: { $ref: "#/$defs/topBarScrollEdge" },
19129
+ selection: { $ref: "#/$defs/topBarSelection" },
19130
+ edit: { $ref: "#/$defs/topBarEdit" }
19126
19131
  }
19127
19132
  },
19128
- // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
19133
+ topBarScrollEdge: {
19134
+ type: "object",
19135
+ additionalProperties: false,
19136
+ properties: {
19137
+ nodeId: { type: "string" },
19138
+ offset: { type: "number" }
19139
+ }
19140
+ },
19141
+ topBarSelection: {
19142
+ type: "object",
19143
+ additionalProperties: false,
19144
+ properties: {
19145
+ activePath: { type: "string" },
19146
+ countPath: { type: "string" },
19147
+ titleFormat: { type: "string" },
19148
+ onClose: { $ref: "#/$defs/action" },
19149
+ items: { type: "array", items: { $ref: "#/$defs/toolbarItem" } },
19150
+ selectAll: { $ref: "#/$defs/toolbarItem" }
19151
+ }
19152
+ },
19153
+ topBarEdit: {
19154
+ type: "object",
19155
+ additionalProperties: false,
19156
+ properties: {
19157
+ activePath: { type: "string" },
19158
+ onEdit: { $ref: "#/$defs/action" },
19159
+ onDone: { $ref: "#/$defs/action" },
19160
+ onCancel: { $ref: "#/$defs/action" }
19161
+ }
19162
+ },
19163
+ // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15) + RFC 0066 amendment "Bar types, styles,
19164
+ // search, save and modes" (16–20). `placement` and the results state stay free strings.
19129
19165
  searchableConfig: {
19130
19166
  type: "object",
19131
19167
  additionalProperties: false,
@@ -19144,7 +19180,12 @@ var init_validator = __esm({
19144
19180
  onSuggestionTap: { $ref: "#/$defs/action" },
19145
19181
  scopes: { type: "array", items: { $ref: "#/$defs/searchScope" } },
19146
19182
  scopePath: { type: "string" },
19147
- onScopeChange: { $ref: "#/$defs/action" }
19183
+ onScopeChange: { $ref: "#/$defs/action" },
19184
+ recentsPath: { type: "string" },
19185
+ onRecentTap: { $ref: "#/$defs/action" },
19186
+ onClearRecents: { $ref: "#/$defs/action" },
19187
+ resultsStatePath: { type: "string" },
19188
+ onRetry: { $ref: "#/$defs/action" }
19148
19189
  }
19149
19190
  },
19150
19191
  searchSuggestion: {
@@ -19190,7 +19231,9 @@ var init_validator = __esm({
19190
19231
  onLongPress: { $ref: "#/$defs/action" },
19191
19232
  badge: { $ref: "#/$defs/navBadge" },
19192
19233
  // RFC 0066 amendment "Top-bar avatar strip" (field 16) — the AvatarStrip props, drawn in the bar.
19193
- avatarStrip: { $ref: "#/$defs/toolbarAvatarStrip" }
19234
+ avatarStrip: { $ref: "#/$defs/toolbarAvatarStrip" },
19235
+ // RFC 0066 amendment "Bar types, styles, search, save and modes" (field 17).
19236
+ onLoadingTimeout: { $ref: "#/$defs/action" }
19194
19237
  }
19195
19238
  },
19196
19239
  // The proto `AvatarStripProps` as a toolbar item carries it. `caption`, `ringGradient` and `onTap` are
@@ -20224,7 +20267,13 @@ var init_declared_navigation_lint = __esm({
20224
20267
  "onRemove",
20225
20268
  "onCreate",
20226
20269
  "onCancel",
20227
- "onSubmit"
20270
+ "onSubmit",
20271
+ // RFC 0066 amendment "Bar types, styles, search, save and modes": the mode buttons and the recent-search rows.
20272
+ "onClose",
20273
+ "onEdit",
20274
+ "onDone",
20275
+ "onRecentTap",
20276
+ "onClearRecents"
20228
20277
  ]);
20229
20278
  tapField = (at2) => {
20230
20279
  const m2 = /(?:^|\.)([A-Za-z]+)(?:\[\d+\])?\.actionId$/.exec(at2);
@@ -23898,6 +23947,47 @@ function topBarFindings(descriptor) {
23898
23947
  out2.push({ path: `topBar.items[${idx}].badge`, ruleCode: "top_bar_badge_on_overflow", message: `An item in More Actions (${i2.placement === "overflow" ? '`placement: "overflow"`' : "moved there because the bar has more than two trailing slots (R2)"}) has a \`badge\`, and the menu row draws none. Move the item to a visible slot, or put the count in its \`label\`` });
23899
23948
  }
23900
23949
  });
23950
+ const setStr = (v2) => typeof v2 === "string" && v2 !== "";
23951
+ if (setStr(b3.coverTone)) {
23952
+ if (b3.style !== "immersive") {
23953
+ out2.push({ path: "topBar.coverTone", ruleCode: "top_bar_cover_tone_not_immersive", message: `\`coverTone\` is set, but \`style\` is ${JSON.stringify(b3.style ?? "")}, not "immersive". Only an immersive bar floats over a cover image, so every shell ignores the tone. Set \`style: "immersive"\`, or remove \`coverTone\`` });
23954
+ }
23955
+ if (!TOP_BAR_COVER_TONE_VALUES.has(b3.coverTone)) {
23956
+ out2.push({ path: "topBar.coverTone", ruleCode: "top_bar_unknown_cover_tone", message: `\`coverTone\` ${JSON.stringify(b3.coverTone)} is not a known value, so every shell reads it as "dark" (white icons). Use "dark" or "light"` });
23957
+ }
23958
+ }
23959
+ const solidAfter = b3.solidAfter;
23960
+ if (solidAfter && typeof solidAfter === "object" && !Array.isArray(solidAfter)) {
23961
+ if (!TOP_BAR_SCROLL_STYLES.has(String(b3.style ?? ""))) {
23962
+ out2.push({ path: "topBar.solidAfter", ruleCode: "top_bar_solid_after_opaque", message: `\`solidAfter\` is set, but \`style\` is ${JSON.stringify(b3.style ?? "")}. An opaque bar is solid from the start, so it is ignored. Set \`style: "transparent"\` or \`"immersive"\`, or remove \`solidAfter\`` });
23963
+ }
23964
+ const nodeId = solidAfter.nodeId;
23965
+ if (setStr(nodeId) && !nodeId.includes("$") && !componentNodes(descriptor).some((v2) => v2.node.id === nodeId)) {
23966
+ const raw = solidAfter.offset;
23967
+ const fallback = typeof raw === "number" && Number.isFinite(raw) ? Math.max(0, raw) : 0;
23968
+ const what = fallback === 0 ? "so the bar starts to fill as soon as the screen scrolls" : `so the bar stays clear for ${fallback}pt of scroll and then fades in, whatever the hero's height`;
23969
+ out2.push({ path: "topBar.solidAfter.nodeId", ruleCode: "top_bar_solid_after_unknown_node", message: `\`solidAfter.nodeId\` ${JSON.stringify(nodeId)} names no component on this screen. Every shell falls back to offset ${fallback}, ${what}. Give the hero image (or the node whose bottom edge ends the clear bar) this \`id\`` });
23970
+ }
23971
+ }
23972
+ const block = (v2) => v2 && typeof v2 === "object" && !Array.isArray(v2) ? v2 : null;
23973
+ for (const mode of ["selection", "edit"]) {
23974
+ const m2 = block(b3[mode]);
23975
+ if (m2 && !setStr(m2.activePath)) {
23976
+ out2.push({ path: `topBar.${mode}`, ruleCode: "top_bar_mode_no_active_path", message: `\`${mode}\` has no \`activePath\`, so the mode is never on and no shell draws it. Bind \`activePath\` to a \`$service:\` bool that the worker sets while the screen is in ${mode === "selection" ? "selection" : "edit"} mode` });
23977
+ }
23978
+ }
23979
+ const sel = block(b3.selection);
23980
+ const timed = [
23981
+ ...items.map((i2, idx) => [`topBar.items[${idx}]`, i2]),
23982
+ ...Array.isArray(sel?.items) ? sel.items.map((i2, idx) => [`topBar.selection.items[${idx}]`, i2]) : [],
23983
+ ...sel?.selectAll != null ? [["topBar.selection.selectAll", sel.selectAll]] : []
23984
+ ];
23985
+ for (const [at2, raw] of timed) {
23986
+ const i2 = raw;
23987
+ if (i2 && typeof i2 === "object" && i2.onLoadingTimeout != null && !setStr(i2.loadingPath)) {
23988
+ out2.push({ path: `${at2}.onLoadingTimeout`, ruleCode: "top_bar_loading_timeout_no_loading_path", message: "`onLoadingTimeout` is set on an item with no `loadingPath`. The 30-second timer runs only while `loadingPath` is truthy, so it never fires. Bind `loadingPath` to the busy flag of this item's own action (the save, the delete)" });
23989
+ }
23990
+ }
23901
23991
  const notHttps = (v2) => {
23902
23992
  if (typeof v2 !== "string" || v2 === "") return false;
23903
23993
  if (!/^https:\/\/[^/?#\s]/i.test(v2)) return true;
@@ -23967,6 +24057,16 @@ function topBarFindings(descriptor) {
23967
24057
  if (scopeKeys.length > 0) {
23968
24058
  out2.push({ path: `topBar.searchable.${scopeKeys[0]}`, ruleCode: "top_bar_search_scopes_not_drawn", message: `Search scopes are on the wire for a later release: no shell draws ${scopeKeys.join(", ")} yet (RFC 0010). Draw scope controls as the screen's own content` });
23969
24059
  }
24060
+ const stateKeys = ["resultsStatePath", "recentsPath"].filter((k3) => setStr(s5[k3]));
24061
+ if (stateKeys.length > 0 && s5.onChange == null && s5.onSubmit == null) {
24062
+ out2.push({ path: `topBar.searchable.${stateKeys[0]}`, ruleCode: "top_bar_search_states_no_query", message: `\`${stateKeys.join("`, `")}\` ${stateKeys.length > 1 ? "are" : "is"} set on a search with no \`onChange\` or \`onSubmit\`, so no query reaches the worker and the states never change. Add the handler that runs the search` });
24063
+ }
24064
+ if (s5.onRetry != null && !setStr(s5.resultsStatePath)) {
24065
+ out2.push({ path: "topBar.searchable.onRetry", ruleCode: "top_bar_search_retry_no_state", message: "`onRetry` is set with no `resultsStatePath`. Try Again shows only in the error state, which `resultsStatePath` reports, so it never shows. Bind `resultsStatePath`" });
24066
+ }
24067
+ if ((s5.onRecentTap != null || s5.onClearRecents != null) && !setStr(s5.recentsPath)) {
24068
+ out2.push({ path: `topBar.searchable.${s5.onRecentTap != null ? "onRecentTap" : "onClearRecents"}`, ruleCode: "top_bar_search_recents_no_path", message: "`onRecentTap` / `onClearRecents` is set with no `recentsPath`, so no recent search is drawn and nothing can be tapped or cleared. Bind `recentsPath`" });
24069
+ }
23970
24070
  for (const key4 of TOP_BAR_SEARCH_BINDINGS) {
23971
24071
  const v2 = s5[key4];
23972
24072
  if (typeof v2 === "string" && v2.startsWith("$local:")) {
@@ -25146,7 +25246,7 @@ function validateAppWebViewInstances(screens, opts) {
25146
25246
  ];
25147
25247
  return webViewEmbeddedIssues(findings).map((issue3, i2) => ({ ...issue3, screenId: findings[i2].screenId }));
25148
25248
  }
25149
- var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, BUNDLE_FILENAME, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NESTED_COMPONENT_SLOTS, NESTED_SLOT_DECODE_KILL, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_NESTED_SCALARS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, TOP_BAR_TITLE_ALIGN_VALUES, TOP_BAR_TITLE_DISPLAY_VALUES, TOP_BAR_SEARCH_BINDINGS, TOP_BAR_SEARCH_GATE, PRESS_PROPS, PRESS_OWNING_SLOTS, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, ORIENTATION_NAMES, DEFAULT_ENVELOPE, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
25249
+ var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, BUNDLE_FILENAME, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NESTED_COMPONENT_SLOTS, NESTED_SLOT_DECODE_KILL, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_NESTED_SCALARS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, TOP_BAR_TITLE_ALIGN_VALUES, TOP_BAR_TITLE_DISPLAY_VALUES, TOP_BAR_COVER_TONE_VALUES, TOP_BAR_SCROLL_STYLES, TOP_BAR_SEARCH_BINDINGS, TOP_BAR_SEARCH_GATE, PRESS_PROPS, PRESS_OWNING_SLOTS, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, ORIENTATION_NAMES, DEFAULT_ENVELOPE, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
25150
25250
  var init_validate_descriptor_core = __esm({
25151
25251
  "../../core/dev-server/src/validate-descriptor.core.ts"() {
25152
25252
  init_define_HHP_CATALOG();
@@ -26344,7 +26444,9 @@ var init_validate_descriptor_core = __esm({
26344
26444
  TOP_BAR_NON_TRAILING = /* @__PURE__ */ new Set(["leading", "principal", "bottom", "keyboard", "overflow"]);
26345
26445
  TOP_BAR_TITLE_ALIGN_VALUES = /* @__PURE__ */ new Set(["", "auto", "leading", "center"]);
26346
26446
  TOP_BAR_TITLE_DISPLAY_VALUES = /* @__PURE__ */ new Set(["", "automatic", "large", "inline", "hidden"]);
26347
- TOP_BAR_SEARCH_BINDINGS = ["valuePath", "focusPath", "loadingPath", "suggestionsPath", "scopePath"];
26447
+ TOP_BAR_COVER_TONE_VALUES = /* @__PURE__ */ new Set(["", "dark", "light"]);
26448
+ TOP_BAR_SCROLL_STYLES = /* @__PURE__ */ new Set(["transparent", "immersive"]);
26449
+ TOP_BAR_SEARCH_BINDINGS = ["valuePath", "focusPath", "loadingPath", "suggestionsPath", "scopePath", "recentsPath", "resultsStatePath"];
26348
26450
  TOP_BAR_SEARCH_GATE = "$env:topBarSearch";
26349
26451
  PRESS_PROPS = /* @__PURE__ */ new Set(["action", "onTap"]);
26350
26452
  PRESS_OWNING_SLOTS = /* @__PURE__ */ new Set(["anchor", "submitButton"]);
@@ -40431,7 +40533,6 @@ function resolveIdiom(tokens2, ctx = {}) {
40431
40533
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
40432
40534
  var init_idiom = __esm({
40433
40535
  "../../core/ts/src/idiom.ts"() {
40434
- "use strict";
40435
40536
  init_define_HHP_CATALOG();
40436
40537
  IDIOM_CONTEXTS = {
40437
40538
  ios: { native: ["ios"] },
@@ -48610,7 +48711,7 @@ function useTopAnchorReport(root, anchors, report9, content) {
48610
48711
  if (live4.current.anchors) t2.jump(ms2);
48611
48712
  }, [t2]);
48612
48713
  }
48613
- var TOP_ANCHOR_TOLERANCE_PX, TOP_ANCHOR_SETTLE_MS, TOP_ANCHOR_JUMP_GRACE_MS, ANCHOR_JUMP_MS, SCROLL_SLACK_PX, tweens, INTERRUPTS, PROGRAMMATIC_SCROLL_EVENT, TopAnchorTracker;
48714
+ var TOP_ANCHOR_TOLERANCE_PX, TOP_ANCHOR_SETTLE_MS, TOP_ANCHOR_JUMP_GRACE_MS, ANCHOR_JUMP_MS, SCROLL_SLACK_PX, tweens, INTERRUPTS, TabRootReselectContext, PROGRAMMATIC_SCROLL_EVENT, TopAnchorTracker;
48614
48715
  var init_scrollAnchors = __esm({
48615
48716
  "../../core/web-renderer/src/scrollAnchors.ts"() {
48616
48717
  init_define_HHP_CATALOG();
@@ -48623,6 +48724,7 @@ var init_scrollAnchors = __esm({
48623
48724
  SCROLL_SLACK_PX = 16;
48624
48725
  tweens = /* @__PURE__ */ new WeakMap();
48625
48726
  INTERRUPTS = ["wheel", "touchstart", "pointerdown", "keydown"];
48727
+ TabRootReselectContext = React8.createContext(void 0);
48626
48728
  PROGRAMMATIC_SCROLL_EVENT = "himalaya:programmatic-scroll";
48627
48729
  TopAnchorTracker = class {
48628
48730
  constructor(read2, report9) {
@@ -180760,6 +180862,33 @@ var init_surface_lint = __esm({
180760
180862
  }
180761
180863
  });
180762
180864
 
180865
+ // ../../core/ts/src/top-bar-fill.ts
180866
+ function topBarFill(color) {
180867
+ const fill2 = color.slice(0, 7).toUpperCase();
180868
+ const light = contrastRatio4(fill2, TOP_BAR_LIGHT_FOREGROUND);
180869
+ const dark = contrastRatio4(fill2, TOP_BAR_DARK_FOREGROUND);
180870
+ const foreground = light >= dark ? TOP_BAR_LIGHT_FOREGROUND : TOP_BAR_DARK_FOREGROUND;
180871
+ const drawn = deriveAccentText(fill2, foreground);
180872
+ return {
180873
+ fill: fill2,
180874
+ foreground,
180875
+ ratio: round2(Math.max(light, dark)),
180876
+ drawn,
180877
+ drawnRatio: round2(contrastRatio4(drawn, foreground)),
180878
+ nudged: drawn !== fill2
180879
+ };
180880
+ }
180881
+ var TOP_BAR_DARK_FOREGROUND, TOP_BAR_LIGHT_FOREGROUND, round2;
180882
+ var init_top_bar_fill = __esm({
180883
+ "../../core/ts/src/top-bar-fill.ts"() {
180884
+ init_define_HHP_CATALOG();
180885
+ init_brand_color_math();
180886
+ TOP_BAR_DARK_FOREGROUND = "#1A1B20";
180887
+ TOP_BAR_LIGHT_FOREGROUND = "#FFFFFF";
180888
+ round2 = (n2) => Math.round(n2 * 100) / 100;
180889
+ }
180890
+ });
180891
+
180763
180892
  // src/token-lint.ts
180764
180893
  import { existsSync as existsSync68, readFileSync as readFileSync74 } from "node:fs";
180765
180894
  import { join as join64 } from "node:path";
@@ -180994,6 +181123,8 @@ function tokenColorIssues(dir, tokensPathOverride) {
180994
181123
  }
180995
181124
  const base2 = contrastFindings(colors);
180996
181125
  for (const f2 of base2) (f2.invisible ? error : warn4)(`${tokensPath}: ${f2.render(f2.schemes)}`);
181126
+ for (const message5 of topBarFillWarnings(colors)) warn4(`${tokensPath}: ${message5}`);
181127
+ const baseBarKeys = topBarFillNudgedKeys(colors);
180997
181128
  if (idiom !== null && typeof idiom === "object" && !Array.isArray(idiom)) {
180998
181129
  const seen = new Set(base2.flatMap((f2) => f2.schemes.map((s5) => `${f2.key}|${s5}`)));
180999
181130
  for (const [overlay, layer] of Object.entries(idiom)) {
@@ -181004,10 +181135,39 @@ function tokenColorIssues(dir, tokensPathOverride) {
181004
181135
  const added = f2.schemes.filter((s5) => !seen.has(`${f2.key}|${s5}`));
181005
181136
  if (added.length) (f2.invisible ? error : warn4)(`${tokensPath}: under the idiom.${overlay} overlay, ${f2.render(added)}`);
181006
181137
  }
181138
+ for (const message5 of topBarFillWarnings(merged, baseBarKeys)) {
181139
+ warn4(`${tokensPath}: under the idiom.${overlay} overlay, ${message5}`);
181140
+ }
181007
181141
  }
181008
181142
  }
181009
181143
  return issues;
181010
181144
  }
181145
+ function topBarFillNudgedKeys(colors) {
181146
+ const keys2 = /* @__PURE__ */ new Set();
181147
+ for (const scheme of SCHEMES) {
181148
+ const hex2 = schemeValue(colors.accentPrimary, scheme);
181149
+ if (hex2 && topBarFill(hex2).nudged) keys2.add(`${topBarFill(hex2).fill}|${scheme}`);
181150
+ }
181151
+ return keys2;
181152
+ }
181153
+ function topBarFillWarnings(colors, already = /* @__PURE__ */ new Set()) {
181154
+ const token = colors.accentPrimary;
181155
+ const byValue = /* @__PURE__ */ new Map();
181156
+ for (const scheme of SCHEMES) {
181157
+ const hex2 = schemeValue(token, scheme);
181158
+ if (hex2 && !already.has(`${topBarFill(hex2).fill}|${scheme}`)) byValue.set(hex2, [...byValue.get(hex2) ?? [], scheme]);
181159
+ }
181160
+ const out2 = [];
181161
+ for (const [hex2, schemes] of byValue) {
181162
+ const fill2 = topBarFill(hex2);
181163
+ if (!fill2.nudged) continue;
181164
+ const where = schemes.length === SCHEMES.length ? "" : ` (in ${schemes.join(" / ")})`;
181165
+ out2.push(
181166
+ `colors.accentPrimary ${fill2.fill}${where} reaches only ${fill2.ratio.toFixed(2)}:1 with ${fill2.foreground} text, under ${AA_TEXT}:1. A brand top bar draws ${fill2.drawn} instead (${fill2.drawnRatio.toFixed(2)}:1; RFC 0066 S-CONTR). ${TOP_BAR_LOW_CONTRAST_MESSAGE}`
181167
+ );
181168
+ }
181169
+ return out2;
181170
+ }
181011
181171
  function schemeValue(token, scheme) {
181012
181172
  let v2 = token;
181013
181173
  if (token !== null && typeof token === "object" && !Array.isArray(token)) {
@@ -181172,7 +181332,7 @@ function accentOnSurfacesFor(fgName, role, colors, declared, findings) {
181172
181332
  }
181173
181333
  }
181174
181334
  }
181175
- var INTEGER_TOKEN_FIELDS, INTEGER_TOKEN_MAPS, AA_TEXT, INVISIBLE_TEXT, CONTRAST_PAIRS, SCHEMES, channels3, toHex2, mixHex, onLightSide, SURFACE_TEXT_USE, SURFACE_TEXT_TOKENS;
181335
+ var INTEGER_TOKEN_FIELDS, INTEGER_TOKEN_MAPS, TOP_BAR_LOW_CONTRAST_MESSAGE, AA_TEXT, INVISIBLE_TEXT, CONTRAST_PAIRS, SCHEMES, channels3, toHex2, mixHex, onLightSide, SURFACE_TEXT_USE, SURFACE_TEXT_TOKENS;
181176
181336
  var init_token_lint = __esm({
181177
181337
  "src/token-lint.ts"() {
181178
181338
  init_define_HHP_CATALOG();
@@ -181180,12 +181340,14 @@ var init_token_lint = __esm({
181180
181340
  init_token_colors();
181181
181341
  init_idiom();
181182
181342
  init_brand_color_math();
181343
+ init_top_bar_fill();
181183
181344
  INTEGER_TOKEN_FIELDS = [
181184
181345
  { group: "typography", field: "size", unit: "points" },
181185
181346
  { group: "typography", field: "weight", unit: "a font weight such as 400 or 700" },
181186
181347
  { group: "motions", field: "duration", unit: "milliseconds" }
181187
181348
  ];
181188
181349
  INTEGER_TOKEN_MAPS = ["spacing", "radius"];
181350
+ TOP_BAR_LOW_CONTRAST_MESSAGE = "Text on this color may be hard to read. We adjusted the top bar so members can read it.";
181189
181351
  AA_TEXT = 4.5;
181190
181352
  INVISIBLE_TEXT = 1.5;
181191
181353
  CONTRAST_PAIRS = [
@@ -190240,6 +190402,21 @@ __export(nav_lint_exports, {
190240
190402
  navSharedIdErrors: () => navSharedIdErrors,
190241
190403
  pushRouteAdvisories: () => pushRouteAdvisories
190242
190404
  });
190405
+ function screenOnlyDefaultMessage(key4, value2) {
190406
+ const at2 = `navigation.topBarDefault.${key4}`;
190407
+ switch (key4) {
190408
+ case "scrollBehavior":
190409
+ return `${at2} ${JSON.stringify(value2)} makes the bar of EVERY screen that sets no \`topBar\` hide on scroll, forms and presented screens included. Set \`topBar.scrollBehavior\` on the screens that scroll long content.`;
190410
+ case "coverTone":
190411
+ case "solidAfter":
190412
+ return `${at2} describes one screen's cover image (its tone, or the node the bar turns solid after), but the default is copied onto every screen that sets no \`topBar\`, and those have a different hero or none. Set \`topBar.${key4}\` on the screen that draws the cover.`;
190413
+ case "selection":
190414
+ case "edit":
190415
+ return `${at2} is a mode bound to one screen's state: the default is copied onto every screen that sets no \`topBar\`, and each would resolve its \`activePath\` against its own worker. Set \`topBar.${key4}\` on the screen that has the mode.`;
190416
+ default:
190417
+ return `${at2} is a binding to one screen's state: the default is copied onto every screen that sets no \`topBar\`, and each would resolve it against its own worker. Set \`topBar.${key4}\` on the screen that owns the value.`;
190418
+ }
190419
+ }
190243
190420
  async function navIssues(dir, strict) {
190244
190421
  const issues = [];
190245
190422
  const push = (severity, ruleCode, message5) => issues.push({ screen: null, pass: "nav", severity, message: message5, ruleCode });
@@ -190384,11 +190561,8 @@ async function navIssues(dir, strict) {
190384
190561
  if (isPlainObject4(topBarDefault)) {
190385
190562
  for (const key4 of SCREEN_ONLY_TOP_BAR_KEYS) {
190386
190563
  const value2 = topBarDefault[key4];
190387
- if (value2 === void 0 || value2 === null || value2 === "" || key4 === "scrollBehavior" && value2 === "pinned") continue;
190388
- warn4(
190389
- "nav-topbar-default-screen-field",
190390
- key4 === "scrollBehavior" ? `navigation.topBarDefault.scrollBehavior ${JSON.stringify(value2)} makes the bar of EVERY screen that sets no \`topBar\` hide on scroll, forms and presented screens included. Set \`topBar.scrollBehavior\` on the screens that scroll long content.` : `navigation.topBarDefault.${key4} is a binding to one screen's state: the default is copied onto every screen that sets no \`topBar\`, and each would resolve it against its own worker. Set \`topBar.${key4}\` on the screen that owns the value.`
190391
- );
190564
+ if (value2 === void 0 || value2 === null || value2 === "" || key4 === "scrollBehavior" && value2 === "pinned" || key4 === "coverTone" && value2 === "dark") continue;
190565
+ warn4("nav-topbar-default-screen-field", screenOnlyDefaultMessage(key4, value2));
190392
190566
  }
190393
190567
  }
190394
190568
  if (isPlainObject4(topBarDefault)) {
@@ -190647,7 +190821,7 @@ var init_nav_lint = __esm({
190647
190821
  "deepLinkPatterns",
190648
190822
  "linkableScreens"
190649
190823
  ];
190650
- SCREEN_ONLY_TOP_BAR_KEYS = ["scrollBehavior", "dirtyPath", "visibilityPath"];
190824
+ SCREEN_ONLY_TOP_BAR_KEYS = ["scrollBehavior", "dirtyPath", "visibilityPath", "coverTone", "solidAfter", "selection", "edit"];
190651
190825
  isPlainObject4 = (v2) => typeof v2 === "object" && v2 !== null && !Array.isArray(v2);
190652
190826
  itemCount = (v2) => isPlainObject4(v2) && Array.isArray(v2.items) ? v2.items.length : 0;
190653
190827
  }
@@ -252334,52 +252508,52 @@ var init_preview_assets_generated = __esm({
252334
252508
  init_define_HHP_CATALOG();
252335
252509
  init_preview_assets_format();
252336
252510
  PREVIEW_ASSET_MANIFEST = [
252337
- { key: "assets/DashboardHost-iWB1D0G-.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "ddd6497d54e91ef1f2f558b78cba1939afa992e95e419434b3d039ded8de4587" },
252338
- { key: "assets/DevDrawer-DxfoHZ2P.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "4353c792736def2ef9515472c4d16d221af46fa45b8a59802bc7d00dcbf42060" },
252339
- { key: "assets/IdiomCompare-CQxZzR5U.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "b3d2d4a5bf35560322396a37f3136e6133e97242f8e22f495535d927b22b0867" },
252340
- { key: "assets/LightboxViewer-Wj9tI6vI.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "39266eed67fb4c75db30930a225b92369c926be0e226e42f9ed7fe6b7dbedd38" },
252341
- { key: "assets/OfflineReadingBar-CGlQvBgQ.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "6e77ee5c7f781520a23f8650f025661423a688491114b9b9bc746e6545406ead" },
252342
- { key: "assets/PhonePreviewControl-9rmkn2Am.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "a60955ca9a4c76b75e5b71e37f7787fea3f98f8913e758250031b5a09a5f7f73" },
252343
- { key: "assets/SchemeCompare-R7WOFvfW.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "89df5e6c0b84e091cbbbd74030f19a1ab98d8298d0b16cf8f673181c2aec7cde" },
252344
- { key: "assets/WixFrogTelemetrySink-YQziXZOT.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "592a60f3cb495b54df653d32da649d5e9017063826904937e6c916663584914f" },
252511
+ { key: "assets/DashboardHost-DFvYR_Ix.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "6a1475b97e2b21bfa0e8f1d592f962b648d4d9e17640812d87575faf3e171686" },
252512
+ { key: "assets/DevDrawer-CWSX1Ebc.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "206191ecb7c9a4eb675b0dff29f9c1ae30397eab98f2f2bf1d04899ac2d6ad15" },
252513
+ { key: "assets/IdiomCompare-Cp5DxlEi.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "d181d9dc6cdd63008515fd5b489d4447709d622c5cb2da07571431bbcee1976f" },
252514
+ { key: "assets/LightboxViewer-CtVbTMrR.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "5871215107bfb10c4dd44ce8169d3d49db96629f25ae1ee1193ab9c75a21c86a" },
252515
+ { key: "assets/OfflineReadingBar-Z2Enx0ux.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "403f228473126cb683c334f0d9f169d6727fe8620e831ad06872b4d8eca28de8" },
252516
+ { key: "assets/PhonePreviewControl-fkQk6apN.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "fe88f1ae8b399ada0156f62794c6d8d93514bf99c436a484d8a5283c09e1f965" },
252517
+ { key: "assets/SchemeCompare-B_Up8z-h.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "ea857cbaa4121cc39ef75482698302c5d712d62a6197bb920a43251c632f018d" },
252518
+ { key: "assets/WixFrogTelemetrySink-_UTBesIB.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "466c93d0e15012f677b6f8974dbc499267465598114eda5a478f3e80a9b6b652" },
252345
252519
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
252346
252520
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
252347
- { key: "assets/catalogFontFaces-BNrxSUTY.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "96fbdddb02ff607e60fec344fd6b167b56d9718c50d4962fc85ebe91e121835a" },
252521
+ { key: "assets/catalogFontFaces-PKCHGq_D.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "45f7e3c1bbf409d6b908999cbd188659e3099c719009a65adf6237f7c03093c5" },
252348
252522
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
252349
- { key: "assets/files-transfer-DQuBeOsj.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "52ad2aebbc50e15bcff424091fb45f753d4799e2f8667d4f6bde667d996dc7b1" },
252523
+ { key: "assets/files-transfer-DHSm5EHW.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "8dc14e392d0892898906c61c153690ca66832ea23a82215aa3bd800c01bca0da" },
252350
252524
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
252351
- { key: "assets/frogApiRules-MvlYmuXW.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "dda66e6e01e291ca07318e1d870f08ea97122e557d8b8d9f30bd7c0554c8f194" },
252525
+ { key: "assets/frogApiRules-CO3whtzQ.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "ac334911e2afde99011b84abd2f3b790632f04e5bc80b94e05ec27f15363bcf2" },
252352
252526
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
252353
252527
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
252354
252528
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
252355
- { key: "assets/index-DE5WqMBQ.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1606374, sha256: "4249d0ce3f4f26d96155148f82bb16f3f7cc6843f709d86459362d5bb37ee88b" },
252356
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1751998, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
252357
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1759749, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
252358
- { key: "assets/pdf-D87DNAnY.js", contentType: "application/javascript; charset=utf-8", offset: 1770280, length: 488215, sha256: "7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff" },
252359
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2258495, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
252360
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2258585, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
252361
- { key: "assets/pdfDocument-Cub0MmQ6.js", contentType: "application/javascript; charset=utf-8", offset: 3575619, length: 3470, sha256: "9e5039380b5a9f3ee067878fe1ebb4ecd087175cd6011425989c9a10d56e3d80" },
252362
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3579089, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
252363
- { key: "assets/scrollLinkedRuntime-DdzXc-ot.js", contentType: "application/javascript; charset=utf-8", offset: 3581355, length: 2278, sha256: "a4beba535daa7e934636fbe0f5d9323faa3283c8ce63a78f3a12ff6499419478" },
252364
- { key: "assets/webviewBridgeHost-BKR4cEOR.js", contentType: "application/javascript; charset=utf-8", offset: 3583633, length: 9889, sha256: "3c2a064294f196809b8d8af016cf50cd0243d55114b6b7b3cb3845264f5442c6" },
252365
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3593522, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
252366
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3598132, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
252367
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4086716, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
252368
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4177640, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
252369
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4268624, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
252370
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4359604, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
252371
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4450476, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
252372
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4541456, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
252373
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4650092, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
252374
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4759176, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
252375
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4868224, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
252376
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4975924, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
252377
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5064032, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
252378
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5070850, length: 4924, sha256: "b913f48efafdb08cbf23a8df2913158afdd520c64316e81611d185430ad39d45" },
252379
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5075774, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
252380
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5087231, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
252381
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5088402, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
252382
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5112705, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
252529
+ { key: "assets/index-CFAJoBGQ.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1606778, sha256: "ef315bed82314b8232d9786fe848d835bede301f0b38064fef2081fc419c58bb" },
252530
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1752402, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
252531
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1760153, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
252532
+ { key: "assets/pdf-D6kY5CbD.js", contentType: "application/javascript; charset=utf-8", offset: 1770684, length: 488215, sha256: "ec390e530da7eb0a2f0efa0267b2fb63e1c4f79d4695418e4a97274d92816788" },
252533
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2258899, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
252534
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2258989, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
252535
+ { key: "assets/pdfDocument-CGSVXA4R.js", contentType: "application/javascript; charset=utf-8", offset: 3576023, length: 3470, sha256: "16aeafef72d959dc529deb265a4d0908022bf737faf271ff12af4bf59765ddef" },
252536
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3579493, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
252537
+ { key: "assets/scrollLinkedRuntime-hj6Cb4dI.js", contentType: "application/javascript; charset=utf-8", offset: 3581759, length: 2278, sha256: "5938c23f1be10904a20685753fb7ab8abe0a08813f5ebde46600a3e6413f9341" },
252538
+ { key: "assets/webviewBridgeHost-BlgT2QYX.js", contentType: "application/javascript; charset=utf-8", offset: 3584037, length: 9889, sha256: "6aa153df190d36655635a516780ca8f038e171ed5c9336c483a1716e6d05fba8" },
252539
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3593926, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
252540
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3598536, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
252541
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4087120, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
252542
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4178044, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
252543
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4269028, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
252544
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4360008, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
252545
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4450880, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
252546
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4541860, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
252547
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4650496, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
252548
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4759580, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
252549
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4868628, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
252550
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4976328, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
252551
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5064436, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
252552
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5071254, length: 4924, sha256: "ffb6f7bb906b3ffe35257f76d71f7d23d5cee7f4e5e2d852b48ad0c10d3392d4" },
252553
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5076178, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
252554
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5087635, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
252555
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5088806, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
252556
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5113109, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
252383
252557
  ];
252384
252558
  }
252385
252559
  });
Binary file
@@ -421,6 +421,13 @@ Concrete patterns lifted from real usage:
421
421
  - **Row with a leading label and trailing detail** — `hstack({ spacing: 8, children: [ icon, text, spacer(), trailingText ] })`. The `spacer()` does the push; don't hand-pad.
422
422
  - **Fill-width controls share a row** — put fill-width controls in **one** `HStack` and let them share it (weight/flex), rather than stacking `fillMaxWidth` elements. This is a real iOS↔Android parity requirement, not a preference — a full-width control alone in an HStack renders differently across platforms.
423
423
  - **A screen that owns its top bar (search beside back)** — set `topBar: { leading: "none" }` and put the row in `stickyHeader`: `hstack([ iconButton({ icon: "arrow_left", accessibilityLabel: "Back", action: { actionId: "nav.back", presentation: "back" } }), withModifiers(textField({ placeholder: "Search", … }), { weight: 1 }) ])`. With **both** set, every shell draws no bar and no back control of its own (iOS hides the system bar, Android floats no chevron and reserves no band, web hides its bar on every look), so the row is the only top bar. `leading: "none"` without a `stickyHeader` keeps the bar's title and trailing actions but drops the back control (and the hamburger, for that screen). System back — hardware, gesture, edge swipe, browser — still pops. Any other `leading` value keeps today's chrome; demo: `gallery_search_topbar`, linked from the gallery's "Lists & data".
424
+ - **Top-bar styles and modes (contract only for now — check the status table before you rely on one)** — the bar, not your content, draws these; declare them on `topBar`:
425
+ - *Root titles:* `titleDisplay: "large"` on a tab root (a large title that collapses as you scroll; lists), `"inline"` for short task screens. `""` keeps today's look.
426
+ - *Cover:* `style: "immersive"` with your hero as the first content node, plus `coverTone: "dark"` (white icons, the default) or `"light"` — pick it from the image under the bar, not the theme. Add `solidAfter: { nodeId: "<hero id>" }` to turn the bar solid once the hero scrolls away; `style: "transparent"` alone fills over the first 8pt.
427
+ - *Brand fill:* `background: { token: "accentPrimary" }`. The shell picks white or `#1A1B20` text and darkens or lightens a mid-tone just enough for 4.5:1; `himi validate` says so when your brand colour needs it.
428
+ - *Search states:* bind `searchable.recentsPath` (recent queries while the field is empty) and `searchable.resultsStatePath` (`"empty"` / `"error"`); the bar draws "No results" and the error with Try Again (`onRetry`). Do not draw these in the page.
429
+ - *Still saving:* give Save an `onLoadingTimeout` next to its `loadingPath`; the shell shows "Still saving…" at 10 s and calls it at 30 s so the worker can show the failed state.
430
+ - *Modes:* `selection: { activePath, countPath, onClose, items }` for bulk actions ("3 selected"), `edit: { activePath, onEdit, onDone, onCancel }` with `dirtyPath` for in-place editing. Bind each `activePath` to a worker bool; the bar swaps itself while it is true.
424
431
  - **Cell list** — one `Section` with `inset: true` and a `header`, its children the `ListItem` cells; the cells own their own dividers and padding. A schedule, a service menu and a session list are this shape too, not a `Card` around each item.
425
432
  - **Photo tile** — `vstack({ spacing: 6, alignment: "leading", children: [ image({ url, fillWidth: true, aspectRatio: 0.8, contentMode: "fill", placeholder: "surfaceSecondary", contentDescription }) + cornerRadius 8, text(name, "body"), text(price, "callout", { color: "textSecondary" }) ] })` with `modifiers.onTap` on the stack, inside `grid({ columns: 2, columnsMedium: 3, columnsExpanded: 4, spacing: 12 })`. A shelf is the same tile at a fixed `width` (about 110) in `lazyList({ horizontal: true, spacing: 12 })`.
426
433
  - **A website page with native UI around it** — `vstack({ children: [ header, sitePage(site, { path: "/book-online" }), stickyBar ] })`, where `site` is the app's `site` block (a `SiteShellConfig`) and `sitePage` comes from `@wix/himalaya/sdui`. It emits a `WebView` with `role: "primary"`, `fill`, its own scrolling, `modifiers.weight: 1` and the site preset as its config (the same URL and behaviour a site-shell tab gets; `webView: { … }` overrides it). `title` becomes the page's accessible name (`modifiers.accessibilityLabel`, which every `WebView` needs); without one the site's host is used. The weight gives the page only the height the header and bar leave. Put it at the screen root or directly in a root `VStack`, `HStack` or `ZStack`, and use one per screen. The validator rejects it inside a `LazyList`, `Pager`, `Carousel` or `CollapsingHeader`, or with its weight removed. A site-shell app already gets this form: `siteScreens(site)` gives each page both forms in one descriptor, the Tier-3 screen every app binary renders plus this tree in `payload`, which a newer binary draws instead. To put native UI around one page of a site-shell app and keep it working on older binaries, use `dualFormSiteScreen(defineSiteTab(site, page), vstack({ children: [ header, sitePage(site, { path: page.path, title: page.title }), stickyBar ] }))`. The page inside must load the same URL, with the same config and the same native capability scope (`capabilitiesRequired`), as the Tier-3 screen; `sitePage` scopes a page to no capability, as a site tab is. The validator checks all three (`dual_form_mismatch`), and the screen can carry no `logicBundle`. Older binaries draw only the Tier-3 page, without the header and bar. `siteScreens(site, { form: "node" })` serves the node form alone, for an app whose binaries all support it, and `desugarSiteScreen(descriptor)` converts one Tier-3 site screen. To let native UI follow the page (a cart badge, the page title), give the screen a `logicBundle` that declares `"webview"` and write `sitePage(site, { path, bridge: "worker" })`: the page talks to the worker through `@wix/himalaya/webview-page`, and the worker answers with `@himalaya/webview` ([webview-page-sdk.md](webview-page-sdk.md#a-site-page-that-talks-to-its-screens-worker)). Such a screen carries a worker, so it is a node-form screen (`sdui_layout`), not a dual-form one.
@@ -1604,7 +1604,7 @@
1604
1604
  "name": "TopBarConfig",
1605
1605
  "kind": "interface",
1606
1606
  "jsdoc": "/** The shell-owned top bar. The shell paints\n * `ScreenDescriptor.title` and computes the leading slot (back XOR menu) from\n * nav depth; this adds the trailing action cluster + leading/style overrides.\n * Lives on `ScreenDescriptor.topBar` (authoritative) and\n * `NavigationConfig.topBarDefault` (app-level fallback, fully replaced). */",
1607
- "decl": "export interface TopBarConfig {\n /** Trailing (right-edge) actions, authored order = leading→trailing. */\n actions?: TopBarAction[];\n /** Leading override: \"\" | \"auto\" (shell-computed) | \"back\" | \"menu\" | \"none\". */\n leading?: string;\n /** Content-under-bar: \"\" | \"opaque\" (default) | \"transparent\" | \"immersive\". */\n style?: string;\n /** Toolbar items (drawn after the legacy `actions`). */\n items?: ToolbarItem[];\n /** \"\" / \"automatic\" (default) | \"large\" | \"inline\" | \"hidden\". `\"hidden\"` draws no title and keeps\n * the title as the screen name for screen readers (amendment \"Title, leading and trailing completion\"). */\n titleDisplay?: string;\n /** The literal subtitle (the fallback for `subtitlePath`). */\n subtitle?: string;\n /** \"\" / \"visible\" (default) | \"hidden\". */\n visibility?: string;\n /** Bar fill token. iOS 26 keeps the system glass (amendment R12). */\n background?: TokenRef;\n /** \"Native top-bar search\" — the screen's search, drawn by whoever draws its bar natively (an embed's host\n * today: iOS `himalayaEmbedSearch`, Android `ProvideHimalayaEmbedSearch`). Read per screen only. */\n searchable?: SearchableConfig;\n /** amendment — the screen's logo; overrides `NavigationConfig.topBarLogo`. */\n logo?: TopBarLogo;\n /** amendment — the title as a menu. */\n titleMenu?: TopBarTitleMenu;\n /** amendment — live subtitle (`$service:`); `subtitle` is the fallback. */\n subtitlePath?: string;\n /** amendment — \"\" / \"pinned\" (default) | \"hide_on_scroll\". */\n scrollBehavior?: string;\n /** amendment — truthy ⇒ leaving the presentation asks to discard. Unset/unresolved ⇒ false. */\n dirtyPath?: string;\n /** amendment — live `visibility` (`$service:`). Resolves to \"visible\" | \"hidden\";\n * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */\n visibilityPath?: string;\n /** amendment \"Title, leading and trailing completion\" — \"\" / \"auto\" (default) | \"leading\" | \"center\".\n * Unknown values read as \"auto\". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */\n titleAlign?: string;\n}",
1607
+ "decl": "export interface TopBarConfig {\n /** Trailing (right-edge) actions, authored order = leading→trailing. */\n actions?: TopBarAction[];\n /** Leading override: \"\" | \"auto\" (shell-computed) | \"back\" | \"menu\" | \"none\". */\n leading?: string;\n /** Content-under-bar: \"\" | \"opaque\" (default) | \"transparent\" | \"immersive\". */\n style?: string;\n /** Toolbar items (drawn after the legacy `actions`). */\n items?: ToolbarItem[];\n /** \"\" / \"automatic\" (default) | \"large\" | \"inline\" | \"hidden\". `\"hidden\"` draws no title and keeps\n * the title as the screen name for screen readers (amendment \"Title, leading and trailing completion\"). */\n titleDisplay?: string;\n /** The literal subtitle (the fallback for `subtitlePath`). */\n subtitle?: string;\n /** \"\" / \"visible\" (default) | \"hidden\". */\n visibility?: string;\n /** Bar fill token. iOS 26 keeps the system glass (amendment R12). */\n background?: TokenRef;\n /** \"Native top-bar search\" — the screen's search, drawn by whoever draws its bar natively (an embed's host\n * today: iOS `himalayaEmbedSearch`, Android `ProvideHimalayaEmbedSearch`). Read per screen only. */\n searchable?: SearchableConfig;\n /** amendment — the screen's logo; overrides `NavigationConfig.topBarLogo`. */\n logo?: TopBarLogo;\n /** amendment — the title as a menu. */\n titleMenu?: TopBarTitleMenu;\n /** amendment — live subtitle (`$service:`); `subtitle` is the fallback. */\n subtitlePath?: string;\n /** amendment — \"\" / \"pinned\" (default) | \"hide_on_scroll\". */\n scrollBehavior?: string;\n /** amendment — truthy ⇒ leaving the presentation asks to discard. Unset/unresolved ⇒ false. */\n dirtyPath?: string;\n /** amendment — live `visibility` (`$service:`). Resolves to \"visible\" | \"hidden\";\n * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */\n visibilityPath?: string;\n /** amendment \"Title, leading and trailing completion\" — \"\" / \"auto\" (default) | \"leading\" | \"center\".\n * Unknown values read as \"auto\". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */\n titleAlign?: string;\n /** amendment \"Bar types, styles, search, save and modes\" — the tone of the cover image under an\n * `style: \"immersive\"` bar: \"\" / \"dark\" (default, white icons) | \"light\" (`#1A1B20` icons). Unknown ⇒ \"dark\". */\n coverTone?: string;\n /** amendment \"Bar types, styles, search, save and modes\" (cover to solid) — a transparent or immersive bar stays\n * clear until this edge, then fades to its fill over 24pt. Unset ⇒ the 0→8pt ramp of a transparent bar. */\n solidAfter?: TopBarScrollEdge;\n /** amendment \"Bar types, styles, search, save and modes\" — selection mode. */\n selection?: TopBarSelection;\n /** amendment \"Bar types, styles, search, save and modes\" — edit mode. Uses `dirtyPath`. */\n edit?: TopBarEdit;\n}",
1608
1608
  "verificationChecked": true
1609
1609
  },
1610
1610
  {
@@ -1681,7 +1681,7 @@
1681
1681
  "name": "ToolbarItem",
1682
1682
  "kind": "interface",
1683
1683
  "jsdoc": "/** One top-bar item. Test id `toolbar.<id>`\n * (`toolbar-<id>` on web and React Native). Every tap carries an existing `Action`\n *. Bindings are `$service:` sentinels resolved by the screen host. */",
1684
- "decl": "export interface ToolbarItem {\n id: string;\n /** \"leading\" | \"trailing\" (default) | \"principal\" | \"bottom\" | \"keyboard\" | \"overflow\". */\n placement?: string;\n /** Text button when there is no icon; the accessible name always. */\n label?: string;\n icon?: IconRef;\n onTap?: Action;\n /** \"\" | \"cancel\" | \"confirm\" | \"destructive\". */\n role?: string;\n disabled?: boolean;\n /** OR'd with `disabled`. For Save, bind \"nothing to save\" (e.g. `cannotSave`), never the dirty flag. */\n disabledPath?: string;\n /** Non-empty ⇒ the item opens a menu. */\n menu?: MenuItem[];\n /** \"principal\" only: a custom title view. */\n content?: Component;\n /** Truthy ⇒ a progress indicator replaces the item. Unset/unresolved ⇒ false. */\n loadingPath?: string;\n /** Set ⇒ the item draws an avatar; `label` stays the accessible name (\"Profile\" by default). */\n avatar?: ToolbarAvatar;\n /** Live label; `label` is the fallback. */\n labelPath?: string;\n /** Long press (touch), secondary click (pointer) or the \"More options\" accessibility action.\n * Never also fires `onTap`; ignored while disabled or loading, in More Actions, and with a `menu`. */\n onLongPress?: Action;\n /** amendment \"Title, leading and trailing completion\" — dot or count overlay. Ignored on an\n * \"overflow\" item. `badge.countLabel` is the noun the shell speaks after the count. */\n badge?: NavBadge;\n /** amendment \"Top-bar avatar strip\" — set ⇒ the item draws overlapping circular avatars\n * instead of its icon or label: size 20 and 3 visible plus a \"+N\" bubble unless set. `label` stays the\n * accessible name (\"Members, 5\"). The strip's `caption`, `ringGradient` and `onTap` are ignored in the bar:\n * the item's `onTap` and `onLongPress` fire. `avatarsPath` resolves on the screen, like the other\n * top-bar bindings. An \"overflow\" item draws its label row instead. */\n avatarStrip?: AvatarStripProps;\n}",
1684
+ "decl": "export interface ToolbarItem {\n id: string;\n /** \"leading\" | \"trailing\" (default) | \"principal\" | \"bottom\" | \"keyboard\" | \"overflow\". */\n placement?: string;\n /** Text button when there is no icon; the accessible name always. */\n label?: string;\n icon?: IconRef;\n onTap?: Action;\n /** \"\" | \"cancel\" | \"confirm\" | \"destructive\". */\n role?: string;\n disabled?: boolean;\n /** OR'd with `disabled`. For Save, bind \"nothing to save\" (e.g. `cannotSave`), never the dirty flag. */\n disabledPath?: string;\n /** Non-empty ⇒ the item opens a menu. */\n menu?: MenuItem[];\n /** \"principal\" only: a custom title view. */\n content?: Component;\n /** Truthy ⇒ a progress indicator replaces the item. Unset/unresolved ⇒ false. */\n loadingPath?: string;\n /** Set ⇒ the item draws an avatar; `label` stays the accessible name (\"Profile\" by default). */\n avatar?: ToolbarAvatar;\n /** Live label; `label` is the fallback. */\n labelPath?: string;\n /** Long press (touch), secondary click (pointer) or the \"More options\" accessibility action.\n * Never also fires `onTap`; ignored while disabled or loading, in More Actions, and with a `menu`. */\n onLongPress?: Action;\n /** amendment \"Title, leading and trailing completion\" — dot or count overlay. Ignored on an\n * \"overflow\" item. `badge.countLabel` is the noun the shell speaks after the count. */\n badge?: NavBadge;\n /** amendment \"Top-bar avatar strip\" — set ⇒ the item draws overlapping circular avatars\n * instead of its icon or label: size 20 and 3 visible plus a \"+N\" bubble unless set. `label` stays the\n * accessible name (\"Members, 5\"). The strip's `caption`, `ringGradient` and `onTap` are ignored in the bar:\n * the item's `onTap` and `onLongPress` fire. `avatarsPath` resolves on the screen, like the other\n * top-bar bindings. An \"overflow\" item draws its label row instead. */\n avatarStrip?: AvatarStripProps;\n /** amendment \"Bar types, styles, search, save and modes\" — with `loadingPath` truthy for 30 s the shell\n * stops the spinner and dispatches this; the worker shows the failed state. Unset ⇒ the spinner stays.\n * \"Still saving…\" shows under the bar at 10 s either way. */\n onLoadingTimeout?: Action;\n}",
1685
1685
  "verificationChecked": true
1686
1686
  },
1687
1687
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1798.0",
3
+ "version": "0.1800.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "ee96a4e66af18835d2727dec98b62fd9900b6cc66be874d7587556d2"
85
+ "falconPackageHash": "69b6e5032ee503e212d5d13fca9d6d106a0e85a1d66e128549eb2681"
86
86
  }