@wix/himalaya-cli 0.1943.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
@@ -3964,6 +3964,7 @@ var init_himi_package = __esm({
3964
3964
  var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
3965
3965
  var init_icon_catalog_generated = __esm({
3966
3966
  "../../core/ts/src/icon-catalog.generated.ts"() {
3967
+ "use strict";
3967
3968
  init_define_HHP_CATALOG();
3968
3969
  ICON_VIEW_BOX = 24;
3969
3970
  ICON_STROKE_WIDTH = 2;
@@ -23238,6 +23239,7 @@ var init_vocabulary_floor = __esm({
23238
23239
  { field: "TopBarConfig.accessory", since: V, paths: ["navigation:topBarDefault.accessory", "screen:topBar.accessory"] },
23239
23240
  { field: "PushRoute.passQuery", since: V, paths: ["navigation:push.routes.passQuery"] },
23240
23241
  { field: "SplashConfig.exitTransition", since: V, paths: ["navigation:splash.exitTransition"] },
23242
+ { field: "SplashConfig.statusBarStyle", since: V, paths: ["navigation:splash.statusBarStyle"] },
23241
23243
  { field: "HStackProps.alignBaseline", since: V, paths: ["HStack:alignBaseline"] },
23242
23244
  { field: "HStackProps.wrap", since: V, paths: ["HStack:wrap"] },
23243
23245
  { field: "HStackProps.lineSpacing", since: V, paths: ["HStack:lineSpacing"] },
@@ -44305,7 +44307,6 @@ function resolveIdiom(tokens2, ctx = {}) {
44305
44307
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
44306
44308
  var init_idiom = __esm({
44307
44309
  "../../core/ts/src/idiom.ts"() {
44308
- "use strict";
44309
44310
  init_define_HHP_CATALOG();
44310
44311
  IDIOM_CONTEXTS = {
44311
44312
  ios: { native: ["ios"] },
@@ -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.1943.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": "11669eba46d47d326aad2fc291ac3db4d64a7469549b319ca54b58ae"
85
+ "falconPackageHash": "ecec34da115f48850558e24b293216cd7d95715e508db4a5eb036b01"
86
86
  }