@wix/himalaya-cli 0.1942.0 → 0.1944.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.
@@ -3705,7 +3705,12 @@ export interface SplashConfig {
3705
3705
  /** #4675 — how the surface leaves once the app is ready. Absent / "fade" ⇒ a short crossfade into the first
3706
3706
  * screen. "cut" ⇒ gone on the next frame, as a React Native app that hides its splash does. Unknown fades. */
3707
3707
  exitTransition?: SplashExitTransition;
3708
+ /** #6676 — the status-bar content over the splash while it shows: "light-content" (white glyphs) or
3709
+ * "dark-content", React Native's `barStyle` values. Absent / "" ⇒ the system's own. iOS and Android; the web
3710
+ * host has no status bar. */
3711
+ statusBarStyle?: SplashStatusBarStyle;
3708
3712
  }
3713
+ export type SplashStatusBarStyle = "" | "light-content" | "dark-content";
3709
3714
  export type SplashExitTransition = "" | "fade" | "cut";
3710
3715
  export type SplashReadySignal = "" | "seeded" | "first_content";
3711
3716
  export interface DeepLinkPattern {
@@ -8586,6 +8586,7 @@ var SPLASH_MAX_HOLD_MS_MAX = 8e3;
8586
8586
  var SPLASH_LAYOUTS = ["centered", "centeredStacked", "logoOnly"];
8587
8587
  var SPLASH_READY_SIGNALS = ["", "seeded", "first_content"];
8588
8588
  var SPLASH_EXIT_TRANSITIONS = ["", "fade", "cut"];
8589
+ var SPLASH_STATUS_BAR_STYLES = ["", "light-content", "dark-content"];
8589
8590
  function validateA11y(a11y) {
8590
8591
  if (!a11y || typeof a11y !== "object" || Array.isArray(a11y)) {
8591
8592
  throw new Error('defineApp: a11y must be an object like { enforce: "warn" }.');
@@ -8729,6 +8730,11 @@ function validateSplash(splash, colors, tokensPath) {
8729
8730
  `defineApp: splash.exitTransition "${splash.exitTransition}" is not one of "", "fade", "cut".`
8730
8731
  );
8731
8732
  }
8733
+ if (splash.statusBarStyle !== void 0 && !SPLASH_STATUS_BAR_STYLES.includes(splash.statusBarStyle)) {
8734
+ throw new Error(
8735
+ `defineApp: splash.statusBarStyle "${splash.statusBarStyle}" is not one of "", "light-content", "dark-content".`
8736
+ );
8737
+ }
8732
8738
  for (const [field, value, max] of [
8733
8739
  ["logoWidth", splash.logoWidth, 1024],
8734
8740
  ["minVisibleMs", splash.minVisibleMs, SPLASH_MIN_VISIBLE_MS_MAX],
package/dist/cli.mjs CHANGED
@@ -23239,6 +23239,7 @@ var init_vocabulary_floor = __esm({
23239
23239
  { field: "TopBarConfig.accessory", since: V, paths: ["navigation:topBarDefault.accessory", "screen:topBar.accessory"] },
23240
23240
  { field: "PushRoute.passQuery", since: V, paths: ["navigation:push.routes.passQuery"] },
23241
23241
  { field: "SplashConfig.exitTransition", since: V, paths: ["navigation:splash.exitTransition"] },
23242
+ { field: "SplashConfig.statusBarStyle", since: V, paths: ["navigation:splash.statusBarStyle"] },
23242
23243
  { field: "HStackProps.alignBaseline", since: V, paths: ["HStack:alignBaseline"] },
23243
23244
  { field: "HStackProps.wrap", since: V, paths: ["HStack:wrap"] },
23244
23245
  { field: "HStackProps.lineSpacing", since: V, paths: ["HStack:lineSpacing"] },
@@ -44306,7 +44307,6 @@ function resolveIdiom(tokens2, ctx = {}) {
44306
44307
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
44307
44308
  var init_idiom = __esm({
44308
44309
  "../../core/ts/src/idiom.ts"() {
44309
- "use strict";
44310
44310
  init_define_HHP_CATALOG();
44311
44311
  IDIOM_CONTEXTS = {
44312
44312
  ios: { native: ["ios"] },
@@ -178091,6 +178091,7 @@ __export(template_trim_exports, {
178091
178091
  routeMatcher: () => routeMatcher,
178092
178092
  runTemplateTrim: () => runTemplateTrim,
178093
178093
  trimCapabilities: () => trimCapabilities,
178094
+ trimLineScans: () => trimLineScans,
178094
178095
  workersInUse: () => workersInUse
178095
178096
  });
178096
178097
  import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync26, readdirSync as readdirSync30, readFileSync as readFileSync58, renameSync as renameSync10, rmSync as rmSync15, statSync as statSync17, writeFileSync as writeFileSync22 } from "node:fs";
@@ -178274,7 +178275,7 @@ function jsonString(literal4, what) {
178274
178275
  try {
178275
178276
  return JSON.parse(literal4);
178276
178277
  } catch (e2) {
178277
- throw new TrimRefusal(`${what} ${literal4} is not a valid JSON string (${e2.message}) \u2014 trim reads the shape \`himi init\` writes; fix the literal or trim by hand (\`himi docs trim-a-template\`)`);
178278
+ throw new TrimRefusal(`${typeof what === "function" ? what() : what} ${literal4} is not a valid JSON string (${e2.message}) \u2014 trim reads the shape \`himi init\` writes; fix the literal or trim by hand (\`himi docs trim-a-template\`)`);
178278
178279
  }
178279
178280
  }
178280
178281
  function bracketEnd(src, open6) {
@@ -178343,7 +178344,7 @@ function parseApp(dev, config) {
178343
178344
  `dev/index.ts line ${lineOf2(dev, pos)}: expected a \`"<screenId>": {\` entry of the SCREENS map \u2014 every screen must be a plain JSON entry inside the \`SCREENS\` literal (no spread, call, computed key or runtime merge such as Object.assign); write generated screens with \`himi template screens --upsert --from <screens.json>\``
178344
178345
  );
178345
178346
  }
178346
- const id = jsonString(m2[1], `dev/index.ts line ${lineOf2(dev, pos)}: the SCREENS key`);
178347
+ const id = jsonString(m2[1], () => `dev/index.ts line ${lineOf2(dev, pos)}: the SCREENS key`);
178347
178348
  const open6 = pos + m2[0].length - 1;
178348
178349
  const close = objectEnd(dev, open6);
178349
178350
  if (close < 0 || dev.slice(close, close + 2) !== ",\n") {
@@ -178374,8 +178375,8 @@ function parseApp(dev, config) {
178374
178375
  TENTRY.lastIndex = pos;
178375
178376
  const m2 = TENTRY.exec(dev);
178376
178377
  if (!m2) throw new TrimRefusal(`dev/index.ts line ${lineOf2(dev, pos)}: expected a \`{ pattern: \u2026, display: \u2026, template: {\u2026} },\` entry of TEMPLATED`);
178377
- const pattern = jsonString(m2[1], `dev/index.ts line ${lineOf2(dev, pos)}: the TEMPLATED pattern`);
178378
- const display = jsonString(m2[2], `dev/index.ts line ${lineOf2(dev, pos)}: the TEMPLATED display`);
178378
+ const pattern = jsonString(m2[1], () => `dev/index.ts line ${lineOf2(dev, pos)}: the TEMPLATED pattern`);
178379
+ const display = jsonString(m2[2], () => `dev/index.ts line ${lineOf2(dev, pos)}: the TEMPLATED display`);
178379
178380
  const lineEnd = dev.indexOf("\n", pos);
178380
178381
  const tk = dev.indexOf("template: {", pos);
178381
178382
  if (tk < 0 || tk > lineEnd) throw new TrimRefusal(`dev/index.ts: the templated route ${display} has no \`template: {\` on its first line`);
@@ -179261,7 +179262,7 @@ function summarize2(errors) {
179261
179262
  const shown3 = errors.slice(0, 5).map(one2).join("; ");
179262
179263
  return errors.length > 5 ? `${shown3}; and ${errors.length - 5} more` : shown3;
179263
179264
  }
179264
- var TrimRefusal, LIT, ATOM, QUANT, CAP, SAFE_ROUTE_PATTERN, lineOf2, isStatic, WORKER_OPEN, entryLabel, isNode6, asItems, NAV_SCREEN_KEYS, WORKER_SCREEN_PARAMS, sorted, refuse3, plural;
179265
+ var TrimRefusal, LIT, ATOM, QUANT, CAP, SAFE_ROUTE_PATTERN, lineScans, trimLineScans, lineOf2, isStatic, WORKER_OPEN, entryLabel, isNode6, asItems, NAV_SCREEN_KEYS, WORKER_SCREEN_PARAMS, sorted, refuse3, plural;
179265
179266
  var init_template_trim = __esm({
179266
179267
  "src/template-trim.ts"() {
179267
179268
  init_define_HHP_CATALOG();
@@ -179288,7 +179289,12 @@ var init_template_trim = __esm({
179288
179289
  SAFE_ROUTE_PATTERN = new RegExp(
179289
179290
  String.raw`^\^${LIT}(?:${CAP}${LIT}|\(\?:(?:${LIT}|\[(?:[^\]\\[]|\\.)+\])${CAP}\)\?)?\$$`
179290
179291
  );
179291
- lineOf2 = (src, at2) => src.slice(0, at2).split("\n").length;
179292
+ lineScans = 0;
179293
+ trimLineScans = () => lineScans;
179294
+ lineOf2 = (src, at2) => {
179295
+ lineScans += 1;
179296
+ return src.slice(0, at2).split("\n").length;
179297
+ };
179292
179298
  isStatic = (id) => typeof id === "string" && id !== "" && !id.startsWith("$");
179293
179299
  WORKER_OPEN = /^tier5\.[A-Za-z0-9_]+\.openMember$/;
179294
179300
  entryLabel = (entry) => {
@@ -1618,7 +1618,7 @@
1618
1618
  "name": "SplashConfig",
1619
1619
  "kind": "interface",
1620
1620
  "jsdoc": "/**\n * The IN-APP splash — the brand surface between the OS splash handing off and the\n * app being ready. The *OS* splash is generated at build time from the same\n * `splash` block in config.ts and can never be OTA (iOS reads `UILaunchScreen`\n * before any app code runs); this layer is OTA. Artwork stays baked in the binary\n * — `logoAsset` / `backgroundImageAsset` name a baked asset, so only the\n * composition travels.\n */",
1621
- "decl": "export interface SplashConfig {\n /** Master switch / kill-switch. Absent or false ⇒ no surface. */\n enabled?: boolean;\n /** Background color TOKEN name (e.g. \"accentPrimary\"). */\n backgroundColor?: TokenName;\n /** Gradient token name; wins over `backgroundColor`. */\n backgroundGradient?: TokenName;\n /** BAKED asset name for a full-bleed background image; wins over color/gradient. */\n backgroundImageAsset?: string;\n /** BAKED asset name for the centered logo (e.g. \"LaunchLogo\"). */\n logoAsset?: string;\n /** Logo width in pt/dp. 0 / absent ⇒ 96. */\n logoWidth?: number;\n /** Optional wordmark line. NOTE: a literal string, so an OTA edit bypasses\n * localization (same caveat as `NavTabItem.label`). */\n caption?: string;\n /** Typography token for the caption. Absent ⇒ \"title1\". */\n captionStyle?: TokenName;\n /** Color token for the caption. Absent ⇒ \"textOnAccent\". */\n captionColor?: TokenName;\n /** Absent / unknown ⇒ \"centered\". */\n layout?: SplashLayout;\n /** Anti-flash floor, ms. Clamped client-side to [0, 2000]. */\n minVisibleMs?: number;\n /** Hard ceiling on the readiness hold, ms — a stuck boot can never wedge the\n * UI. 0 / absent ⇒ 3000. Clamped client-side to [0, 8000]. */\n maxHoldMs?: number;\n /** What readiness waits for beyond the seed. Absent / \"\" ⇒ the first\n * screen's paint, where the shell mounts its content under the splash (every shell\n * built on `HimalayaLaunchGate` / `awaitingFirstScreen`), else the seed alone.\n * \"seeded\" ⇒ the seed alone, always. \"first_content\" ⇒ the first WebView page (a\n * site shell). All still under `maxHoldMs`. Unknown coalesces to \"\" on device. */\n readySignal?: SplashReadySignal;\n /** #4675 — how the surface leaves once the app is ready. Absent / \"fade\" ⇒ a short crossfade into the first\n * screen. \"cut\" ⇒ gone on the next frame, as a React Native app that hides its splash does. Unknown fades. */\n exitTransition?: SplashExitTransition;\n}",
1621
+ "decl": "export interface SplashConfig {\n /** Master switch / kill-switch. Absent or false ⇒ no surface. */\n enabled?: boolean;\n /** Background color TOKEN name (e.g. \"accentPrimary\"). */\n backgroundColor?: TokenName;\n /** Gradient token name; wins over `backgroundColor`. */\n backgroundGradient?: TokenName;\n /** BAKED asset name for a full-bleed background image; wins over color/gradient. */\n backgroundImageAsset?: string;\n /** BAKED asset name for the centered logo (e.g. \"LaunchLogo\"). */\n logoAsset?: string;\n /** Logo width in pt/dp. 0 / absent ⇒ 96. */\n logoWidth?: number;\n /** Optional wordmark line. NOTE: a literal string, so an OTA edit bypasses\n * localization (same caveat as `NavTabItem.label`). */\n caption?: string;\n /** Typography token for the caption. Absent ⇒ \"title1\". */\n captionStyle?: TokenName;\n /** Color token for the caption. Absent ⇒ \"textOnAccent\". */\n captionColor?: TokenName;\n /** Absent / unknown ⇒ \"centered\". */\n layout?: SplashLayout;\n /** Anti-flash floor, ms. Clamped client-side to [0, 2000]. */\n minVisibleMs?: number;\n /** Hard ceiling on the readiness hold, ms — a stuck boot can never wedge the\n * UI. 0 / absent ⇒ 3000. Clamped client-side to [0, 8000]. */\n maxHoldMs?: number;\n /** What readiness waits for beyond the seed. Absent / \"\" ⇒ the first\n * screen's paint, where the shell mounts its content under the splash (every shell\n * built on `HimalayaLaunchGate` / `awaitingFirstScreen`), else the seed alone.\n * \"seeded\" ⇒ the seed alone, always. \"first_content\" ⇒ the first WebView page (a\n * site shell). All still under `maxHoldMs`. Unknown coalesces to \"\" on device. */\n readySignal?: SplashReadySignal;\n /** #4675 — how the surface leaves once the app is ready. Absent / \"fade\" ⇒ a short crossfade into the first\n * screen. \"cut\" ⇒ gone on the next frame, as a React Native app that hides its splash does. Unknown fades. */\n exitTransition?: SplashExitTransition;\n /** #6676 — the status-bar content over the splash while it shows: \"light-content\" (white glyphs) or\n * \"dark-content\", React Native's `barStyle` values. Absent / \"\" ⇒ the system's own. iOS and Android; the web\n * host has no status bar. */\n statusBarStyle?: SplashStatusBarStyle;\n}",
1622
1622
  "verificationChecked": true
1623
1623
  },
1624
1624
  {
@@ -151,6 +151,7 @@ splash: {
151
151
  maxHoldMs: 3000, // hard ceiling, clamped ≤ 8000
152
152
  readySignal: "", // "" | "seeded" | "first_content" — see "Readiness, not a timer"
153
153
  exitTransition: "", // "" / "fade" (crossfade) | "cut" (gone on the next frame); unknown fades
154
+ statusBarStyle: "", // "" (the system's own) | "light-content" | "dark-content"; unknown keeps the system's — see "Status-bar content"
154
155
  }
155
156
  ```
156
157
 
@@ -168,8 +169,19 @@ A `splashScreenId` pointing at an OTA descriptor fails at exactly the moment it'
168
169
  render the generic `ProgressView` + literal `"Loading…"` on precisely the launch we're fixing.
169
170
  It would also invert boot ordering (`applyProdServeFromCache` and `LocaleStore.initShared` must
170
171
  precede any fetch) and put descriptor-shaped payload inside `NavigationConfig`, where a single
171
- strict-decode throw disables **all** OTA. Proto field 15+ is reserved should that ever change
172
- (13 is `ready_signal`, 14 is `exit_transition`).
172
+ strict-decode throw disables **all** OTA. Proto field 16+ is reserved should that ever change
173
+ (13 is `ready_signal`, 14 is `exit_transition`, 15 is `status_bar_style`).
174
+
175
+ ### Status-bar content
176
+
177
+ `statusBarStyle` (proto field 15, `status_bar_style`) sets the status-bar content drawn over the in-app splash, with React
178
+ Native's `barStyle` values: `"light-content"` (white glyphs) or `"dark-content"`. `""` and any unknown value keep the
179
+ system's own style, and `defineApp` rejects a typo in source. iOS shows it through an overlay window owned by
180
+ `StatusBarStyleStore` while the splash shows; Android writes the window's status-bar appearance while it shows, and the
181
+ shell's own icon setters defer to it, then re-apply their choice when the splash leaves. Where splashes overlap, the newest
182
+ owner wins and the one before it takes over when it leaves. The web host has no app-drawn status bar, so it is N/A there.
183
+ It does not reach the OS launch screen or Android's system splash (build-time themes), nor branded-lite's own T5 splash
184
+ surface.
173
185
 
174
186
  ### Readiness, not a timer
175
187
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1942.0",
3
+ "version": "0.1944.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": "d45ce3f49eb61d265595976e686a71ff22bdb89dd15947333349fc50"
85
+ "falconPackageHash": "ecec34da115f48850558e24b293216cd7d95715e508db4a5eb036b01"
86
86
  }