@wix/himalaya-cli 0.1706.0 → 0.1708.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.
@@ -113,6 +113,7 @@ export interface NavigationConfig {
113
113
  /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */
114
114
  streamPolicy?: StreamPolicy;
115
115
  topBarLogo?: import("@wix/himalaya/core").TopBarLogo;
116
+ topBarTitleAlign?: string;
116
117
  presentationQueue?: boolean;
117
118
  splash?: SplashConfig;
118
119
  locale?: LocaleConfig;
@@ -245,6 +245,9 @@ export interface DerivedAppMeta {
245
245
  /** Forwarded from AppConfig.navigation.topBarLogo — the app-wide logo for tab-stack roots
246
246
  * (RFC 0066 amendment "top-bar gap items"). */
247
247
  topBarLogo?: import("@wix/himalaya/core").TopBarLogo;
248
+ /** Forwarded from AppConfig.navigation.topBarTitleAlign — the app-wide title alignment
249
+ * (RFC 0066 amendment "Title, leading and trailing completion"). */
250
+ topBarTitleAlign?: string;
248
251
  /** Forwarded from AppConfig.navigation.presentationQueue — the opt-in host alert queue (#4662). */
249
252
  presentationQueue?: boolean;
250
253
  /** Forwarded from AppConfig.`splash` — the in-app splash surface. NOTE the
@@ -3037,6 +3037,10 @@ export interface NavigationConfig {
3037
3037
  site?: SiteNavConfig;
3038
3038
  /** RFC 0066 amendment "top-bar gap items" — app-wide logo for tab-stack roots. */
3039
3039
  topBarLogo?: TopBarLogo;
3040
+ /** RFC 0066 amendment "Title, leading and trailing completion" — app-wide title alignment for tab-stack roots:
3041
+ * "" / "auto" (default) | "leading" | "center". The twin of `TopBarConfig.titleAlign`, because a screen's own
3042
+ * `topBar` fully replaces `topBarDefault`. Unknown values read as "auto". */
3043
+ topBarTitleAlign?: string;
3040
3044
  /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav
3041
3045
  * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing
3042
3046
  * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);
@@ -3233,6 +3237,9 @@ export interface NavBadge {
3233
3237
  kind: "dot" | "count";
3234
3238
  valuePath?: string;
3235
3239
  value?: number;
3240
+ /** RFC 0066 amendment "Title, leading and trailing completion" — the noun spoken after the count
3241
+ * ("items" ⇒ "Cart, 3 items"). Unset ⇒ the shell says the bare count. */
3242
+ countLabel?: string;
3236
3243
  }
3237
3244
  /** RFC 0010 (top-bar amendment) — the shell-owned top bar. The shell paints
3238
3245
  * `ScreenDescriptor.title` and computes the leading slot (back XOR menu) from
@@ -3248,7 +3255,8 @@ export interface TopBarConfig {
3248
3255
  style?: string;
3249
3256
  /** RFC 0066 §1 — toolbar items (drawn after the legacy `actions`). */
3250
3257
  items?: ToolbarItem[];
3251
- /** RFC 0066 §1 — "" / "automatic" (default) | "large" | "inline". */
3258
+ /** RFC 0066 §1 — "" / "automatic" (default) | "large" | "inline" | "hidden". `"hidden"` draws no title and keeps
3259
+ * the title as the screen name for screen readers (amendment "Title, leading and trailing completion"). */
3252
3260
  titleDisplay?: string;
3253
3261
  /** RFC 0066 §1 — the literal subtitle (the fallback for `subtitlePath`). */
3254
3262
  subtitle?: string;
@@ -3272,6 +3280,9 @@ export interface TopBarConfig {
3272
3280
  /** RFC 0066 amendment — live `visibility` (`$service:`). Resolves to "visible" | "hidden";
3273
3281
  * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */
3274
3282
  visibilityPath?: string;
3283
+ /** RFC 0066 amendment "Title, leading and trailing completion" — "" / "auto" (default) | "leading" | "center".
3284
+ * Unknown values read as "auto". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */
3285
+ titleAlign?: string;
3275
3286
  }
3276
3287
  /** RFC 0066 §1 (+ its "top-bar gap items" amendment) — one top-bar item. Test id `toolbar.<id>`
3277
3288
  * (`toolbar-<id>` on web and React Native). Every tap carries an existing `Action`
@@ -3302,6 +3313,9 @@ export interface ToolbarItem {
3302
3313
  /** Long press (touch), secondary click (pointer) or the "More options" accessibility action.
3303
3314
  * Never also fires `onTap`; ignored while disabled or loading, in More Actions, and with a `menu`. */
3304
3315
  onLongPress?: Action;
3316
+ /** RFC 0066 amendment "Title, leading and trailing completion" — dot or count overlay. Ignored on an
3317
+ * "overflow" item. `badge.countLabel` is the noun the shell speaks after the count. */
3318
+ badge?: NavBadge;
3305
3319
  }
3306
3320
  /** RFC 0066 amendment — an avatar item. Images are absolute https URLs (resolve a Wix
3307
3321
  * media id with `wixMediaUrl` before publishing). */
@@ -457,6 +457,9 @@ export declare const screenDescriptorSchema: {
457
457
  readonly visibilityPath: {
458
458
  readonly type: "string";
459
459
  };
460
+ readonly titleAlign: {
461
+ readonly type: "string";
462
+ };
460
463
  };
461
464
  };
462
465
  readonly searchableConfig: {
@@ -604,6 +607,9 @@ export declare const screenDescriptorSchema: {
604
607
  readonly onLongPress: {
605
608
  readonly $ref: "#/$defs/action";
606
609
  };
610
+ readonly badge: {
611
+ readonly $ref: "#/$defs/navBadge";
612
+ };
607
613
  };
608
614
  };
609
615
  readonly toolbarAvatar: {
@@ -751,6 +757,9 @@ export declare const screenDescriptorSchema: {
751
757
  readonly value: {
752
758
  readonly type: "integer";
753
759
  };
760
+ readonly countLabel: {
761
+ readonly type: "string";
762
+ };
754
763
  };
755
764
  };
756
765
  readonly edgeInsets: {
@@ -1976,6 +1985,9 @@ export declare const widgetSnapshotSchema: {
1976
1985
  readonly visibilityPath: {
1977
1986
  readonly type: "string";
1978
1987
  };
1988
+ readonly titleAlign: {
1989
+ readonly type: "string";
1990
+ };
1979
1991
  };
1980
1992
  };
1981
1993
  readonly searchableConfig: {
@@ -2123,6 +2135,9 @@ export declare const widgetSnapshotSchema: {
2123
2135
  readonly onLongPress: {
2124
2136
  readonly $ref: "#/$defs/action";
2125
2137
  };
2138
+ readonly badge: {
2139
+ readonly $ref: "#/$defs/navBadge";
2140
+ };
2126
2141
  };
2127
2142
  };
2128
2143
  readonly toolbarAvatar: {
@@ -2270,6 +2285,9 @@ export declare const widgetSnapshotSchema: {
2270
2285
  readonly value: {
2271
2286
  readonly type: "integer";
2272
2287
  };
2288
+ readonly countLabel: {
2289
+ readonly type: "string";
2290
+ };
2273
2291
  };
2274
2292
  };
2275
2293
  readonly edgeInsets: {
@@ -9141,7 +9141,9 @@ var screenDescriptorSchema = {
9141
9141
  scrollBehavior: { type: "string" },
9142
9142
  dirtyPath: { type: "string" },
9143
9143
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
9144
- visibilityPath: { type: "string" }
9144
+ visibilityPath: { type: "string" },
9145
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
9146
+ titleAlign: { type: "string" }
9145
9147
  }
9146
9148
  },
9147
9149
  // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
@@ -9206,7 +9208,8 @@ var screenDescriptorSchema = {
9206
9208
  loadingPath: { type: "string" },
9207
9209
  avatar: { $ref: "#/$defs/toolbarAvatar" },
9208
9210
  labelPath: { type: "string" },
9209
- onLongPress: { $ref: "#/$defs/action" }
9211
+ onLongPress: { $ref: "#/$defs/action" },
9212
+ badge: { $ref: "#/$defs/navBadge" }
9210
9213
  }
9211
9214
  },
9212
9215
  toolbarAvatar: {
@@ -9282,7 +9285,8 @@ var screenDescriptorSchema = {
9282
9285
  properties: {
9283
9286
  kind: { type: "string", enum: ["dot", "count"] },
9284
9287
  valuePath: { type: "string" },
9285
- value: { type: "integer" }
9288
+ value: { type: "integer" },
9289
+ countLabel: { type: "string" }
9286
9290
  }
9287
9291
  },
9288
9292
  edgeInsets: {
@@ -7253,7 +7253,9 @@ var screenDescriptorSchema = {
7253
7253
  scrollBehavior: { type: "string" },
7254
7254
  dirtyPath: { type: "string" },
7255
7255
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
7256
- visibilityPath: { type: "string" }
7256
+ visibilityPath: { type: "string" },
7257
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
7258
+ titleAlign: { type: "string" }
7257
7259
  }
7258
7260
  },
7259
7261
  // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
@@ -7318,7 +7320,8 @@ var screenDescriptorSchema = {
7318
7320
  loadingPath: { type: "string" },
7319
7321
  avatar: { $ref: "#/$defs/toolbarAvatar" },
7320
7322
  labelPath: { type: "string" },
7321
- onLongPress: { $ref: "#/$defs/action" }
7323
+ onLongPress: { $ref: "#/$defs/action" },
7324
+ badge: { $ref: "#/$defs/navBadge" }
7322
7325
  }
7323
7326
  },
7324
7327
  toolbarAvatar: {
@@ -7394,7 +7397,8 @@ var screenDescriptorSchema = {
7394
7397
  properties: {
7395
7398
  kind: { type: "string", enum: ["dot", "count"] },
7396
7399
  valuePath: { type: "string" },
7397
- value: { type: "integer" }
7400
+ value: { type: "integer" },
7401
+ countLabel: { type: "string" }
7398
7402
  }
7399
7403
  },
7400
7404
  edgeInsets: {
@@ -9609,6 +9613,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
9609
9613
  site: config.navigation?.site,
9610
9614
  streamPolicy: config.navigation?.streamPolicy,
9611
9615
  topBarLogo: config.navigation?.topBarLogo,
9616
+ topBarTitleAlign: config.navigation?.topBarTitleAlign,
9612
9617
  presentationQueue: config.navigation?.presentationQueue,
9613
9618
  splash: config.splash,
9614
9619
  locale: config.locale,
package/dist/cli.mjs CHANGED
@@ -10835,6 +10835,7 @@ function deriveAppMeta(name, m2, platforms = {}, provisioning = {}) {
10835
10835
  site: config.navigation?.site,
10836
10836
  streamPolicy: config.navigation?.streamPolicy,
10837
10837
  topBarLogo: config.navigation?.topBarLogo,
10838
+ topBarTitleAlign: config.navigation?.topBarTitleAlign,
10838
10839
  presentationQueue: config.navigation?.presentationQueue,
10839
10840
  splash: config.splash,
10840
10841
  locale: config.locale,
@@ -13651,7 +13652,6 @@ function buttonVariant(style) {
13651
13652
  var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_SIZES, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty2, own2, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
13652
13653
  var init_tokens = __esm({
13653
13654
  "../../core/ts/src/tokens.ts"() {
13654
- "use strict";
13655
13655
  init_define_HHP_CATALOG();
13656
13656
  SYSTEM_FONT_FAMILY = "$system";
13657
13657
  TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
@@ -14184,7 +14184,9 @@ var init_validator = __esm({
14184
14184
  scrollBehavior: { type: "string" },
14185
14185
  dirtyPath: { type: "string" },
14186
14186
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
14187
- visibilityPath: { type: "string" }
14187
+ visibilityPath: { type: "string" },
14188
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
14189
+ titleAlign: { type: "string" }
14188
14190
  }
14189
14191
  },
14190
14192
  // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
@@ -14249,7 +14251,8 @@ var init_validator = __esm({
14249
14251
  loadingPath: { type: "string" },
14250
14252
  avatar: { $ref: "#/$defs/toolbarAvatar" },
14251
14253
  labelPath: { type: "string" },
14252
- onLongPress: { $ref: "#/$defs/action" }
14254
+ onLongPress: { $ref: "#/$defs/action" },
14255
+ badge: { $ref: "#/$defs/navBadge" }
14253
14256
  }
14254
14257
  },
14255
14258
  toolbarAvatar: {
@@ -14325,7 +14328,8 @@ var init_validator = __esm({
14325
14328
  properties: {
14326
14329
  kind: { type: "string", enum: ["dot", "count"] },
14327
14330
  valuePath: { type: "string" },
14328
- value: { type: "integer" }
14331
+ value: { type: "integer" },
14332
+ countLabel: { type: "string" }
14329
14333
  }
14330
14334
  },
14331
14335
  edgeInsets: {
@@ -19329,6 +19333,28 @@ function topBarFindings(descriptor) {
19329
19333
  out2.push({ path: `topBar.items[${idx}].onLongPress`, message: "An item with a `menu` ignores `onLongPress`: the menu owns the press. Add the action to the menu, or remove the menu" });
19330
19334
  }
19331
19335
  });
19336
+ const avatarIdx = items.flatMap((i2, idx) => i2 && typeof i2 === "object" && i2.avatar != null ? [idx] : []);
19337
+ if (avatarIdx.length > 1) {
19338
+ out2.push({ path: `topBar.items[${avatarIdx[1]}].avatar`, ruleCode: "top_bar_two_avatars", message: `The top bar declares ${avatarIdx.length} avatar items. The guideline shows one avatar in a bar, and the shell draws all of them. Keep the one that opens the profile and make the others plain icon items` });
19339
+ }
19340
+ if (typeof b3.titleAlign === "string" && !TOP_BAR_TITLE_ALIGN_VALUES.has(b3.titleAlign)) {
19341
+ out2.push({ path: "topBar.titleAlign", ruleCode: "top_bar_unknown_title_align", message: `\`titleAlign\` ${JSON.stringify(b3.titleAlign)} is not a known value, so every shell reads it as "auto". Use "auto", "leading" or "center"` });
19342
+ }
19343
+ if (typeof b3.titleDisplay === "string" && !TOP_BAR_TITLE_DISPLAY_VALUES.has(b3.titleDisplay)) {
19344
+ out2.push({ path: "topBar.titleDisplay", ruleCode: "top_bar_unknown_title_display", message: `\`titleDisplay\` ${JSON.stringify(b3.titleDisplay)} is not a known value, so every shell reads it as "automatic". Use "automatic", "large", "inline" or "hidden"` });
19345
+ }
19346
+ if (b3.titleDisplay === "hidden") {
19347
+ for (const key4 of ["subtitle", "subtitlePath"]) {
19348
+ if (typeof b3[key4] === "string" && b3[key4] !== "") {
19349
+ out2.push({ path: `topBar.${key4}`, ruleCode: "top_bar_hidden_title_subtitle", message: `\`${key4}\` is set with \`titleDisplay: "hidden"\`. A hidden title draws no title, and the subtitle sits under the title, so it is not drawn. Remove the subtitle, or show the title` });
19350
+ }
19351
+ }
19352
+ }
19353
+ items.forEach((i2, idx) => {
19354
+ if (i2 && typeof i2 === "object" && i2.badge != null && (i2.placement === "overflow" || movedByR2.has(i2))) {
19355
+ 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\`` });
19356
+ }
19357
+ });
19332
19358
  const notHttps = (v2) => {
19333
19359
  if (typeof v2 !== "string" || v2 === "") return false;
19334
19360
  if (!/^https:\/\/[^/?#\s]/i.test(v2)) return true;
@@ -20391,7 +20417,7 @@ function validateAppWebViewInstances(screens) {
20391
20417
  const findings = webViewEmbeddedAppFindings(screens);
20392
20418
  return webViewEmbeddedIssues(findings).map((issue3, i2) => ({ ...issue3, screenId: findings[i2].screenId }));
20393
20419
  }
20394
- 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, 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_SEARCH_BINDINGS, TOP_BAR_SEARCH_GATE, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
20420
+ 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, 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, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
20395
20421
  var init_validate_descriptor_core = __esm({
20396
20422
  "../../core/dev-server/src/validate-descriptor.core.ts"() {
20397
20423
  init_define_HHP_CATALOG();
@@ -21572,6 +21598,8 @@ var init_validate_descriptor_core = __esm({
21572
21598
  UNSAFE_TO_RECURSE_DEPTH = 128;
21573
21599
  TOP_BAR_TRAILING_LIMIT = 2;
21574
21600
  TOP_BAR_NON_TRAILING = /* @__PURE__ */ new Set(["leading", "principal", "bottom", "keyboard", "overflow"]);
21601
+ TOP_BAR_TITLE_ALIGN_VALUES = /* @__PURE__ */ new Set(["", "auto", "leading", "center"]);
21602
+ TOP_BAR_TITLE_DISPLAY_VALUES = /* @__PURE__ */ new Set(["", "automatic", "large", "inline", "hidden"]);
21575
21603
  TOP_BAR_SEARCH_BINDINGS = ["valuePath", "focusPath", "loadingPath", "suggestionsPath", "scopePath"];
21576
21604
  TOP_BAR_SEARCH_GATE = "$env:topBarSearch";
21577
21605
  TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS = /* @__PURE__ */ new Set(["single", "drawer", "sidebar"]);
@@ -32479,6 +32507,7 @@ function deriveNavigationConfig(app2, bundleCtx) {
32479
32507
  if (app2.site !== void 0) config.site = app2.site;
32480
32508
  if (app2.streamPolicy !== void 0) config.streamPolicy = app2.streamPolicy;
32481
32509
  if (app2.topBarLogo !== void 0) config.topBarLogo = app2.topBarLogo;
32510
+ if (app2.topBarTitleAlign !== void 0) config.topBarTitleAlign = app2.topBarTitleAlign;
32482
32511
  if (app2.presentationQueue !== void 0) config.presentationQueue = app2.presentationQueue;
32483
32512
  if (app2.splash !== void 0) config.splash = app2.splash;
32484
32513
  if (app2.locale !== void 0) config.locale = app2.locale;
@@ -33003,6 +33032,7 @@ function resolveIdiom(tokens2, ctx = {}) {
33003
33032
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
33004
33033
  var init_idiom = __esm({
33005
33034
  "../../core/ts/src/idiom.ts"() {
33035
+ "use strict";
33006
33036
  init_define_HHP_CATALOG();
33007
33037
  IDIOM_CONTEXTS = {
33008
33038
  ios: { native: ["ios"] },
@@ -34825,6 +34855,7 @@ function shouldRevealError(args) {
34825
34855
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
34826
34856
  var init_validation = __esm({
34827
34857
  "../../core/ts/src/validation.ts"() {
34858
+ "use strict";
34828
34859
  init_define_HHP_CATALOG();
34829
34860
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
34830
34861
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -177920,6 +177951,15 @@ async function navIssues(dir, strict) {
177920
177951
  );
177921
177952
  }
177922
177953
  }
177954
+ if (isPlainObject2(topBarDefault)) {
177955
+ const align = topBarDefault.titleAlign;
177956
+ if (typeof align === "string" && align !== "" && align !== "auto") {
177957
+ warn4(
177958
+ "nav-topbar-default-title-align",
177959
+ `navigation.topBarDefault.titleAlign ${JSON.stringify(align)} applies only to screens that set no \`topBar\`: a screen's own \`topBar\` fully replaces the default, so the title would align differently from screen to screen. Set \`navigation.topBarTitleAlign\` for the whole app, and \`topBar.titleAlign\` on a screen that differs.`
177960
+ );
177961
+ }
177962
+ }
177923
177963
  const navKind = nav.navKind;
177924
177964
  const effectiveBottomTabs = navKind === void 0 || navKind === "bottomTabs" || typeof navKind !== "string" || !NAV_KINDS.has(navKind);
177925
177965
  const declaresOtherChrome = itemCount(nav.drawer) > 0 || itemCount(nav.sidebar) > 0;
@@ -178128,6 +178168,7 @@ var init_nav_lint = __esm({
178128
178168
  "streamPolicy",
178129
178169
  "site",
178130
178170
  "topBarLogo",
178171
+ "topBarTitleAlign",
178131
178172
  "presentationQueue",
178132
178173
  "scheme",
178133
178174
  "deepLinkPatterns",
@@ -178155,6 +178196,7 @@ var init_nav_lint = __esm({
178155
178196
  "streamPolicy",
178156
178197
  "site",
178157
178198
  "topBarLogo",
178199
+ "topBarTitleAlign",
178158
178200
  "presentationQueue",
178159
178201
  "scheme",
178160
178202
  "deepLinkPatterns",
@@ -1471,7 +1471,7 @@
1471
1471
  "name": "NavigationConfig",
1472
1472
  "kind": "interface",
1473
1473
  "jsdoc": "/** Per-app navigation/deep-link config, served OTA at GET /v1/app-config/:appName. */",
1474
- "decl": "export interface NavigationConfig {\n /** Tab-bar structure (which tabs; their icons/labels/badges). */\n tabBar?: TabBarConfig;\n /** Slide-in drawer / hamburger-menu destinations. */\n drawer?: DrawerConfig;\n /** Navigation chrome the shell draws.\n * Omitted ⇒ \"bottomTabs\". The shell (not the descriptor) reads this. */\n navKind?: NavKind;\n /** Destinations for \"sidebar\" mode.\n * Absent ⇒ the shell derives the rail from `tabBar.items`. */\n sidebar?: SidebarConfig;\n /** App-level default top bar; a per-screen\n * `ScreenDescriptor.topBar` fully replaces it (override, not merge). */\n topBarDefault?: TopBarConfig;\n /** The post-OS-splash brand surface (see `SplashConfig`). Absent / not enabled\n * ⇒ today's behavior. Operational per (live-flippable). */\n splash?: SplashConfig;\n /** App-level default locale. Operational per so a Hebrew (or Spanish)\n * branded app can pin RTL/l10n OTA without a launch flag. `default` is a\n * BCP-47 primary subtag; clients coerce unknown tags rather than failing the\n * envelope. `pin: true` skips the device/browser language; in-app `locale.set`\n * still wins. Absent ⇒ today's device-then-en behavior. */\n locale?: LocaleConfig;\n /** Effective orientations, resolved INSIDE\n * the binary's build-time envelope (config.ts `orientationEnvelope`). The\n * envelope is the ceiling and can never be OTA (iOS reads the plist before\n * any app code runs); this narrows within it. Always intersected with the\n * envelope — it can never widen it. Absent/empty ⇒ the envelope itself. */\n orientation?: OrientationConfig;\n /** Per-surface nav projection, keyed by catalog\n * surface id (`phone` | `tablet` | `desktop` | `mac` | `watch` | `wear` | `rn`).\n * Keyed the way `orientation` is keyed by device family and narrowed the same\n * way: a key outside the app's `platforms.json` envelope is DROPPED, never\n * honored (see `resolveSurfaceNav`). Absent key ⇒ that surface uses the default\n * projection, so an app that never thinks about surfaces is unaffected. */\n surfaces?: Record<string, SurfaceNavConfig>;\n /** The APP-LEVEL nav worker\n * that feeds every `*Path` binding on `NavTabItem` / `DrawerItem` /\n * `TopBarAction`. App-level, not a screen's worker, because chrome outlives\n * every screen: a cart badge must survive leaving the cart, and a flag-hidden\n * tab must stay hidden three pushes deep in another stack. Absent ⇒ paths stay\n * unresolved and the literals render — the worker enriches, it never gates. */\n navLogicBundle?: LogicBundleRef;\n /** Which nav badges ALSO drive the OS app-icon\n * badge. Each entry is `\"<kind>:<id>\"` (`tab` | `drawer` | `topBarAction`, the\n * spelling `navKey` uses); the icon shows the SUM of those slots' resolved counts.\n * Empty/absent ⇒ no mirroring. An entry naming a slot this build does not have is\n * ignored, never a blanked badge. Requires the `push` capability — `defineApp`\n * rejects the combination, because the badge would be set and never shown. */\n appIconBadgeSources?: string[];\n /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */\n streamPolicy?: StreamPolicy;\n /** A site shell's URL space. A push tap, app link or\n * custom-scheme link whose URL is an https page on one of `site.origins` opens the\n * screen owning its path, and that screen's WebView loads the full URL. Absent ⇒\n * links resolve as before. Build it with `siteNavConfig()` from\n * `@himalaya/core/site-shell`; resolution is `resolveSiteLink()`. */\n site?: SiteNavConfig;\n /** amendment \"top-bar gap items\" — app-wide logo for tab-stack roots. */\n topBarLogo?: TopBarLogo;\n /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav\n * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing\n * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);\n * identical consecutive alerts show once. An inline `AlertDialog` component never enters the\n * queue. Absent ⇒ today's behaviour. */\n presentationQueue?: boolean;\n scheme: string;\n deepLinkPatterns: DeepLinkPattern[];\n linkableScreens: LinkableScreen[];\n}",
1474
+ "decl": "export interface NavigationConfig {\n /** Tab-bar structure (which tabs; their icons/labels/badges). */\n tabBar?: TabBarConfig;\n /** Slide-in drawer / hamburger-menu destinations. */\n drawer?: DrawerConfig;\n /** Navigation chrome the shell draws.\n * Omitted ⇒ \"bottomTabs\". The shell (not the descriptor) reads this. */\n navKind?: NavKind;\n /** Destinations for \"sidebar\" mode.\n * Absent ⇒ the shell derives the rail from `tabBar.items`. */\n sidebar?: SidebarConfig;\n /** App-level default top bar; a per-screen\n * `ScreenDescriptor.topBar` fully replaces it (override, not merge). */\n topBarDefault?: TopBarConfig;\n /** The post-OS-splash brand surface (see `SplashConfig`). Absent / not enabled\n * ⇒ today's behavior. Operational per (live-flippable). */\n splash?: SplashConfig;\n /** App-level default locale. Operational per so a Hebrew (or Spanish)\n * branded app can pin RTL/l10n OTA without a launch flag. `default` is a\n * BCP-47 primary subtag; clients coerce unknown tags rather than failing the\n * envelope. `pin: true` skips the device/browser language; in-app `locale.set`\n * still wins. Absent ⇒ today's device-then-en behavior. */\n locale?: LocaleConfig;\n /** Effective orientations, resolved INSIDE\n * the binary's build-time envelope (config.ts `orientationEnvelope`). The\n * envelope is the ceiling and can never be OTA (iOS reads the plist before\n * any app code runs); this narrows within it. Always intersected with the\n * envelope — it can never widen it. Absent/empty ⇒ the envelope itself. */\n orientation?: OrientationConfig;\n /** Per-surface nav projection, keyed by catalog\n * surface id (`phone` | `tablet` | `desktop` | `mac` | `watch` | `wear` | `rn`).\n * Keyed the way `orientation` is keyed by device family and narrowed the same\n * way: a key outside the app's `platforms.json` envelope is DROPPED, never\n * honored (see `resolveSurfaceNav`). Absent key ⇒ that surface uses the default\n * projection, so an app that never thinks about surfaces is unaffected. */\n surfaces?: Record<string, SurfaceNavConfig>;\n /** The APP-LEVEL nav worker\n * that feeds every `*Path` binding on `NavTabItem` / `DrawerItem` /\n * `TopBarAction`. App-level, not a screen's worker, because chrome outlives\n * every screen: a cart badge must survive leaving the cart, and a flag-hidden\n * tab must stay hidden three pushes deep in another stack. Absent ⇒ paths stay\n * unresolved and the literals render — the worker enriches, it never gates. */\n navLogicBundle?: LogicBundleRef;\n /** Which nav badges ALSO drive the OS app-icon\n * badge. Each entry is `\"<kind>:<id>\"` (`tab` | `drawer` | `topBarAction`, the\n * spelling `navKey` uses); the icon shows the SUM of those slots' resolved counts.\n * Empty/absent ⇒ no mirroring. An entry naming a slot this build does not have is\n * ignored, never a blanked badge. Requires the `push` capability — `defineApp`\n * rejects the combination, because the badge would be set and never shown. */\n appIconBadgeSources?: string[];\n /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */\n streamPolicy?: StreamPolicy;\n /** A site shell's URL space. A push tap, app link or\n * custom-scheme link whose URL is an https page on one of `site.origins` opens the\n * screen owning its path, and that screen's WebView loads the full URL. Absent ⇒\n * links resolve as before. Build it with `siteNavConfig()` from\n * `@himalaya/core/site-shell`; resolution is `resolveSiteLink()`. */\n site?: SiteNavConfig;\n /** amendment \"top-bar gap items\" — app-wide logo for tab-stack roots. */\n topBarLogo?: TopBarLogo;\n /** amendment \"Title, leading and trailing completion\" — app-wide title alignment for tab-stack roots:\n * \"\" / \"auto\" (default) | \"leading\" | \"center\". The twin of `TopBarConfig.titleAlign`, because a screen's own\n * `topBar` fully replaces `topBarDefault`. Unknown values read as \"auto\". */\n topBarTitleAlign?: string;\n /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav\n * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing\n * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);\n * identical consecutive alerts show once. An inline `AlertDialog` component never enters the\n * queue. Absent ⇒ today's behaviour. */\n presentationQueue?: boolean;\n scheme: string;\n deepLinkPatterns: DeepLinkPattern[];\n linkableScreens: LinkableScreen[];\n}",
1475
1475
  "verificationChecked": true
1476
1476
  },
1477
1477
  {
@@ -1520,7 +1520,7 @@
1520
1520
  "name": "TopBarConfig",
1521
1521
  "kind": "interface",
1522
1522
  "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). */",
1523
- "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\". */\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}",
1523
+ "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}",
1524
1524
  "verificationChecked": true
1525
1525
  },
1526
1526
  {
@@ -1597,7 +1597,7 @@
1597
1597
  "name": "ToolbarItem",
1598
1598
  "kind": "interface",
1599
1599
  "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. */",
1600
- "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}",
1600
+ "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}",
1601
1601
  "verificationChecked": true
1602
1602
  },
1603
1603
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1706.0",
3
+ "version": "0.1708.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "a8ff6c23b87a7adee87de8a45f32de1ce322c86e19b36149115bbad3"
84
+ "falconPackageHash": "1810894eb1012098dc1b0a2ed960adebf1b3b33436a7092551f8bdb7"
85
85
  }