@wix/himalaya-cli 0.1982.0 → 0.1983.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.
Files changed (60) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/launch-manifest.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +33 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/splash-timeline.d.ts +48 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +70 -7
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +2 -1
  7. package/dist/browser-plane/assets.json +5 -5
  8. package/dist/browser-plane/preview-deferred/{4a6f910bf580b4fbc462abad75f9f9a8274914d66d468efef11bb741e11f834e.bin → dd1ab57b35f99c571d48e6f87b0b43cb84e090091d517c830ea4f3dc02631fbd.bin} +1 -1
  9. package/dist/browser-plane/sw.js +6 -6
  10. package/dist/cli.mjs +1007 -807
  11. package/dist/preview-assets.generated.bin +0 -0
  12. package/guides/sdk-reference.json +1 -1
  13. package/guides/splash-screens.md +107 -41
  14. package/package.json +2 -2
  15. package/templates/beauty-salon/config.ts +13 -3
  16. package/templates/beauty-salon/dev/index.ts +6 -6
  17. package/templates/beauty-salon/tokens.json +5 -0
  18. package/templates/beauty-salon-owner/config.ts +2 -1
  19. package/templates/branded-lite/config.ts +13 -3
  20. package/templates/branded-lite/dev/index.ts +6 -6
  21. package/templates/branded-lite/tokens.json +1 -0
  22. package/templates/community-club/config.ts +13 -3
  23. package/templates/community-club/dev/index.ts +6 -6
  24. package/templates/community-club/tokens.json +5 -0
  25. package/templates/community-club-owner/config.ts +2 -1
  26. package/templates/events-meetups/config.ts +13 -3
  27. package/templates/events-meetups/dev/index.ts +6 -6
  28. package/templates/events-meetups/tokens.json +5 -0
  29. package/templates/events-meetups-owner/config.ts +2 -1
  30. package/templates/gym-fitness/config.ts +13 -3
  31. package/templates/gym-fitness/dev/index.ts +6 -6
  32. package/templates/gym-fitness/tokens.json +5 -0
  33. package/templates/gym-fitness-owner/config.ts +2 -1
  34. package/templates/nonprofit-cause/config.ts +13 -3
  35. package/templates/nonprofit-cause/dev/index.ts +6 -6
  36. package/templates/nonprofit-cause/tokens.json +5 -0
  37. package/templates/nonprofit-cause-owner/config.ts +2 -1
  38. package/templates/owner-lite/config.ts +2 -1
  39. package/templates/personal-fitness-trainer/dev/index.ts +6 -6
  40. package/templates/personal-fitness-trainer/tokens.json +5 -0
  41. package/templates/podcast-creator/config.ts +13 -3
  42. package/templates/podcast-creator/dev/index.ts +6 -6
  43. package/templates/podcast-creator/tokens.json +5 -0
  44. package/templates/podcast-creator-owner/config.ts +2 -1
  45. package/templates/portfolio-creative/config.ts +13 -3
  46. package/templates/portfolio-creative/dev/index.ts +6 -6
  47. package/templates/portfolio-creative/tokens.json +5 -0
  48. package/templates/portfolio-creative-owner/config.ts +2 -1
  49. package/templates/restaurant/config.ts +13 -3
  50. package/templates/restaurant/dev/index.ts +6 -6
  51. package/templates/restaurant/tokens.json +5 -0
  52. package/templates/restaurant-owner/config.ts +2 -1
  53. package/templates/retail-store/config.ts +13 -3
  54. package/templates/retail-store/dev/index.ts +6 -6
  55. package/templates/retail-store/tokens.json +5 -0
  56. package/templates/retail-store-owner/config.ts +2 -1
  57. package/templates/yoga-studio/config.ts +13 -3
  58. package/templates/yoga-studio/dev/index.ts +6 -6
  59. package/templates/yoga-studio/tokens.json +5 -0
  60. package/templates/yoga-studio-owner/config.ts +2 -1
Binary file
@@ -1646,7 +1646,7 @@
1646
1646
  "name": "SplashConfig",
1647
1647
  "kind": "interface",
1648
1648
  "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 */",
1649
- "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}",
1649
+ "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 /** The native surface's look. \"system\" ⇒ white in light mode, black in dark mode; \"light\" ⇒\n * always white; \"dark\" ⇒ always black; absent / \"token\" ⇒ `backgroundColor` (and the gradient\n * or image) as before. The OS launch screen is generated from the same value, so the two\n * match. Unknown coalesces to \"token\" on device. */\n appearance?: SplashAppearance;\n /** \"circle\" ⇒ the Android launch-icon crop on every surface: the logo's central 2/3 inside a\n * circle of `logoWidth`. Absent ⇒ drawn as is. */\n logoShape?: SplashLogoShape;\n /** The optional T5 stage (, \"The T5 stage\"). Absent ⇒ the native\n * surface is the whole splash. */\n extended?: SplashExtended;\n}",
1650
1650
  "verificationChecked": true
1651
1651
  },
1652
1652
  {
@@ -148,13 +148,30 @@ splash: {
148
148
  caption: "Himalaya Demo",
149
149
  layout: "centeredStacked", // centered | centeredStacked | logoOnly
150
150
  minVisibleMs: 600, // anti-flash floor, clamped ≤ 2000
151
- maxHoldMs: 3000, // hard ceiling, clamped ≤ 8000
152
- readySignal: "", // "" | "seeded" | "first_content" — see "Readiness, not a timer"
151
+ maxHoldMs: 5000, // hard ceiling, clamped ≤ 8000 (a T5 stage needs afterMs < maxHoldMs − 1500)
152
+ readySignal: "", // "" | "seeded" | "first_content" | "first_screen" — see "Readiness, not a timer"
153
153
  exitTransition: "", // "" / "fade" (crossfade) | "cut" (gone on the next frame); unknown fades
154
154
  statusBarStyle: "", // "" (the system's own) | "light-content" | "dark-content"; unknown keeps the system's — see "Status-bar content"
155
+ appearance: "token", // "system" (white light / black dark) | "light" | "dark" | "token" (the colour above)
156
+ logoShape: "circle", // the Android launch-icon crop on every surface; absent ⇒ drawn as is
157
+ extended: { // optional T5 stage — see "The launch timeline"
158
+ screenId: "my_splash", // a served Tier-5 screen whose first frame equals this surface
159
+ afterMs: 2000, crossfadeMs: 300, minDwellMs: 600,
160
+ },
155
161
  }
156
162
  ```
157
163
 
164
+ `appearance` other than `"token"` paints the plain launch colour — no gradient, no image — and the
165
+ generated OS launch screen uses the same colour, so the two are one still frame. `logoShape:
166
+ "circle"` draws the logo's central 2/3 inside a circle of `logoWidth`, which is what Android's launch
167
+ mask shows; configs from before the field keep that crop for the `branded_lite_app_icon` asset by
168
+ name. Web draws both the same way (`"system"` follows the host's scheme: a preview's `?colorScheme=` pin,
169
+ the app's theme, then the browser's). Android 12+'s launch mask is a 192dp circle, so there the
170
+ generated OS icon and the in-app logo are both drawn at most 192dp: a wider `logoWidth` would otherwise
171
+ jump at the handoff. Before Android 12 the same holds for an app on AndroidX `core-splashscreen`
172
+ (Branded Lite), whose backport shows the same icon. Without it the OS launch window is only a colour,
173
+ and the logo keeps its size.
174
+
158
175
  Background precedence is **image > gradient > colour**. The image is drawn at once, where a gradient eases in
159
176
  over the OS layer's solid colour; an image that does not resolve (an Android drawable that is not baked, a
160
177
  web host that cannot load the name) falls back to the gradient or colour. Artwork stays on the binary floor —
@@ -169,12 +186,14 @@ A `splashScreenId` pointing at an OTA descriptor fails at exactly the moment it'
169
186
  render the generic `ProgressView` + literal `"Loading…"` on precisely the launch we're fixing.
170
187
  It would also invert boot ordering (`applyProdServeFromCache` and `LocaleStore.initShared` must
171
188
  precede any fetch) and put descriptor-shaped payload inside `NavigationConfig`, where a single
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`).
189
+ strict-decode throw disables **all** OTA. The optional T5 stage below is the bounded exception: it
190
+ is a *second* stage behind the native surface, never the first frame, so an empty cache or a 404
191
+ leaves the native surface showing (proto field 13 is `ready_signal`, 14 `exit_transition`, 15 `status_bar_style`, and
192
+ 16–18 are `appearance`, `logo_shape`, `extended`).
174
193
 
175
194
  ### Status-bar content
176
195
 
177
- `statusBarStyle` (proto field 15, `status_bar_style`) sets the status-bar content drawn over the in-app splash, with React
196
+ `statusBarStyle` (proto field 15, `status_bar_style`; runtime 1.13.0) sets the status-bar content drawn over the in-app splash, with React
178
197
  Native's `barStyle` values: `"light-content"` (white glyphs) or `"dark-content"`. `""` and any unknown value keep the
179
198
  system's own style, and `defineApp` rejects a typo in source. iOS shows it through an overlay window owned by
180
199
  `StatusBarStyleStore` while the splash shows; Android writes the window's status-bar appearance while it shows, and the
@@ -248,11 +267,12 @@ Two seams, and only one of them needs work:
248
267
  resolve the same colour token — Android fades a declared gradient over this opaque base in 400 ms.
249
268
  The *content* also eases in, so `HimalayaSplashView` / `HimalayaSplash` ease the
250
269
  logo and caption in over `contentFadeInMs`.
251
- - **In-app surface → real content.** Fades out over a fixed `exitFadeMs` (350 ms), via
252
- `.splashExitAnimation(ready:splash:)` on iOS and `HimalayaSplashHost` on Android. `exitTransition: "cut"`
253
- drops the fade on every gate (iOS, Android, the web host's `LaunchGate`, and branded-lite's own), so the
254
- first screen shows on the next frame, as a React Native app that hides its splash does. A shell with its
255
- own gate passes its `SplashConfig` to `splashExitAnimation(ready:splash:)` so the config drives the exit.
270
+ - **In-app surface → real content.** Fades out over a fixed `exitFadeMs` (250 ms, ease-out), via
271
+ `.splashExitAnimation(ready:splash:)` on iOS and `HimalayaSplashHost` / `HimalayaLaunchSplash` on Android.
272
+ `exitTransition: "cut"` drops the fade on every gate (iOS, Android, the web host's `LaunchGate`, and
273
+ Branded Lite, which runs the core gates), so the first screen shows on the next frame, as a React Native app
274
+ that hides its splash does. A shell with its own gate passes its `SplashConfig` to
275
+ `splashExitAnimation(ready:splash:)` so the config drives the exit.
256
276
 
257
277
  The splash content is centred on the **whole screen** on every surface (iOS ignores the vertical safe-area
258
278
  insets for it), so an app's own launch storyboard should centre its logo on the root view, not the safe
@@ -284,6 +304,50 @@ animation. `setOnExitAnimationListener` only *customises* that, and using it wou
284
304
  adding `androidx.core:core-splashscreen` to every app — which Phase 1 deliberately avoided
285
305
  — plus the footgun that forgetting `provider.remove()` means the splash never leaves.
286
306
 
307
+ ### The launch timeline (the T5 stage)
308
+
309
+ Every moment of a launch comes from one pure function, `SplashTimeline.stage(config, input, now)`
310
+ (Swift and Kotlin, with a TypeScript reference). Its cases live in one shared table of launches
311
+ (`splash-stage-vectors.json`), which all three replay, so the platforms cannot drift. The core
312
+ gate (`HimalayaLaunchGate` on iOS/macOS, `rememberSplashStage` + `HimalayaLaunchSplash` on Android)
313
+ draws what it returns and wakes at its `nextTickMs`. `BootReadiness.stage(config, …)` feeds it the
314
+ launch's own facts.
315
+
316
+ | Stage | When | What shows |
317
+ |---|---|---|
318
+ | `native` | from the first frame | the native surface — pixel-identical to the OS launch screen when the config declares a plain `appearance` and the launch screen is generated from it |
319
+ | (Home mounts) | at the seed | nothing new: Home loads **under** the native surface |
320
+ | `exiting` | ready: the first screen painted (`markFirstScreen`, or its error shown) and `minVisibleMs` passed; or `maxHoldMs` | the surface fades to the painted first screen, 250 ms ease-out |
321
+ | `nativeToT5` | not ready at `extended.afterMs` (default 2000): the T5 stage mounts under the native surface; when it reports `splash.presented` | the native surface cross-fades out over 300 ms, `cubic-bezier(0.42, 0, 0.58, 1)` |
322
+ | `t5` | after the cross-fade | the T5 stage |
323
+ | `exiting` (from T5) | ready, the cross-fade ended **and** the stage showed `minDwellMs` (600), or `maxHoldMs`, whichever is first | the stage fades to the first screen, 250 ms ease-out |
324
+
325
+ Rules the table encodes:
326
+
327
+ - **Before `extended.afterMs` (2 s by default) the T5 stage is never mounted and its worker never starts.** Its descriptor and
328
+ artwork are prefetched from the seed, so its first frame is the real artwork when it does mount.
329
+ - **Latest start: `maxHoldMs − 1500`.** A stage that has not presented by then is unmounted and the
330
+ native surface stays; so does one that fails (404, unreadable, artwork unavailable) — no late switch.
331
+ `defineApp` rejects an `extended` block whose window is empty (`afterMs` at or after `maxHoldMs − 1500`;
332
+ with the default `afterMs` of 2000 and the default ceiling of 3000 ms it always is), since such a stage
333
+ could never show. The ceiling also caps the stage's dwell: a stage presented late leaves at `maxHoldMs`
334
+ even if it has not shown for `minDwellMs`.
335
+ - **Once the splash starts to leave it never covers the app again** in that launch, even if a served
336
+ `splash` refresh moves readiness later (a higher `minVisibleMs`, a switch to `first_content`).
337
+ `BootReadiness.stage` latches it, like `effectiveReady`.
338
+ - The stage's **first frame must equal the native surface** (same canvas, icon size, centre and crop),
339
+ so only what the stage adds animates in.
340
+ - The ceiling is unchanged. `splash_timeout` reports a launch the ceiling released, and
341
+ `splash_stage` (`stage: native_only | t5`, `exitMs`, `t5StartMs`, `byDeadline`) reports every launch once.
342
+ - **Reduce Motion and the determinism seam** turn every fade into a cut; the timings stay.
343
+ - `readySignal: "first_screen"` names the gate's rule explicitly: wait for the first screen even where
344
+ `awaitingFirstScreen` is not passed. Use it only with a shell that mounts its content **under** the
345
+ splash (the core gate does); a shell that mounts content only after the splash leaves never paints a
346
+ first screen, so every launch would hold until `maxHoldMs`.
347
+ - The **slow-boot seam** `determinism.firstScreenDelayMs` (a launch-manifest directive, debug builds
348
+ only) counts the first screen as painted no earlier than that many ms after launch, so a capture
349
+ can show the T5 stage on a fast device.
350
+
287
351
  ### Flipping it live
288
352
 
289
353
  `splash` is an **operational** overlay key ([RFC 0013](../core/schema/RFC/0013-ota-config-unification.md)),
@@ -398,35 +462,38 @@ Note that the `splash` accessibility id / `testTag` on some apps today belongs t
398
462
 
399
463
  #### Branded-lite T5 splash (iOS, Android and macOS)
400
464
 
401
- When `splash.enabled` is true, the standalone Branded Lite native hosts can render
402
- `himi_branded_splash` above the existing native in-app splash. The system launch
403
- screen stays binary-owned. After seeding and artwork readiness, the hosts mount
404
- the T5 region first. Home mounts after the T5 presentation animation finishes, so
405
- its startup work cannot consume the entrance animation's first frames
406
- (JavaScriptCore on iOS and WebView construction/rendering on Android).
407
- Dismissal then waits for Home's first content.
408
- `maxHoldMs` always takes priority, including a missing or unresponsive worker.
409
- A failed descriptor/bundle keeps the native fallback and releases the T5 wait.
410
- The splash worker never marks Home ready.
411
-
412
- On Android the OS exit provider stays above Compose until the native splash
413
- has actually drawn. Composition alone is too early and can expose a blank icon gap.
414
- The pre-draw keep condition is released at composition so this cannot deadlock drawing.
415
- Before mounting the worker screens, the host awaits removal of the OS exit provider.
416
- Otherwise WebView startup can block Android's splash transfer past its deadline and
417
- trigger the default 20dp window-shift animation, even with identical icon bounds.
418
- The wait ends immediately on removal, skips Activity recreation, and has a one-second
419
- ceiling for launches with no system splash callback.
420
- The native surface remains visible while the region loads and if its descriptor
421
- or bundle fails. Set `splash.logoAsset: "branded_lite_app_icon"`, `logoWidth: 192`
422
- and `minVisibleMs: 0` for an immediate native icon that matches Android's OS crop.
423
- Once the worker is ready, the T5 screen paints its own opaque background and content.
424
- The native artwork cannot leak through when T5 hides its icon. The native hosts
425
- suppress the region's default spinner. The region tears its worker down on dismissal
426
- and does not occupy a warm-worker pool slot. The standalone macOS host uses the
427
- same T5 handoff. The web host keeps its existing startup surface and resolves the
428
- `branded_lite_app_icon` alias through the current app's web icon URL; it does not
429
- mount the native T5 handoff.
465
+ Branded Lite (and every template generated from it) declares one native splash: `appearance:
466
+ "system"`, the app icon at `logoWidth: 96` with `logoShape: "circle"`, `readySignal: "first_screen"`,
467
+ `layout: "logoOnly"`, `minVisibleMs: 0`, a `maxHoldMs: 5000` ceiling (the default 3000 would leave the
468
+ stage no window), and the T5 stage `extended: { screenId: "himi_branded_splash", afterMs: 2000,
469
+ crossfadeMs: 300, minDwellMs: 600 }`. Its three shells draw it through the **core** gate (see "The launch timeline");
470
+ they hand the gate only the stage's content (`BrandedSplashStage`): prefetch the descriptor and
471
+ artwork through the renderer's own image cache, then mount `himi_branded_splash` while the gate says
472
+ so. Home mounts under the native surface at the seed; it no longer waits for the T5 handoff.
473
+
474
+ The OS launch screen is generated by the customer build (the `iosLaunchImage` /
475
+ `androidLaunchImage` layout flags) from the same block: the launch colour is
476
+ white in light mode and black in dark mode, iOS gets `UILaunchScreen.UIImageName: HimalayaLaunchIcon`
477
+ (three renditions of the icon at 96 pt, central 2/3 in a circle), and Android's
478
+ `windowSplashScreenAnimatedIcon` names `himalaya_launch_icon_art`: the same circle at a third of the
479
+ 288 dp splash-icon canvas. One renderer (`splash-icon.ts`) draws both.
480
+
481
+ The `himi_branded_splash` descriptor's first frame is the native surface: its canvas is the
482
+ `launchSurface` token (`#FFFFFF` / `#000000`), its icon is 96 pt with the same circle and crop, and
483
+ the brand gradient fades in behind the pinned icon. The worker contract is unchanged
484
+ (`splash.presented` when its first frame drew). An older binary reads the same descriptor: it keeps
485
+ its own 192 pt handoff and cross-fades into the 96 pt icon.
486
+
487
+ On Android the OS exit provider stays above Compose until the native surface has actually drawn
488
+ (`HimalayaLaunchSplash`'s `onNativeDrawn`). Composition alone is too early and can expose a blank
489
+ icon gap. The pre-draw keep condition is released at composition so this cannot deadlock drawing.
490
+ Before mounting the worker screens, the host awaits removal of the OS exit provider. Otherwise
491
+ WebView startup can block Android's splash transfer past its deadline and trigger the default 20dp
492
+ window-shift animation, even with identical icon bounds. The wait ends immediately on removal, skips
493
+ Activity recreation, and has a one-second ceiling for launches with no system splash callback. While
494
+ the splash shows, the system bars' contrast follows its canvas (dark icons on white, light on black).
495
+ The region tears its worker down when the stage leaves and does not occupy a warm-worker pool slot.
496
+ The web host has no native launch splash and does not mount the T5 stage.
430
497
 
431
498
  #### Editing from an agent or Containers
432
499
 
@@ -566,8 +633,7 @@ clip of that diameter, revealing the central two-thirds of the source artwork
566
633
  (1.5× scale), matching Android 12+'s launch-icon crop. A width of 192 matches the
567
634
  Android OS circle for branded-lite's current launch drawable. Other logo assets
568
635
  retain their square bounds and original fit; other apps' logos are unchanged.
569
- This does not resize Android's OS-controlled icon slot. Web retains its current
570
- square app-icon presentation.
636
+ This does not resize Android's OS-controlled icon slot. Web draws the same circle crop.
571
637
  Omitting `logoAsset` retains existing behavior: no in-app logo; the OS uses the
572
638
  launcher icon. An empty value also produces no in-app logo on iOS, macOS and web.
573
639
  Android 12+ always reserves an icon slot: the build emits a transparent splash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1982.0",
3
+ "version": "0.1983.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": "44f1faaf78bdb9f7da3a5059535ca16df371212bb07fe7f29c53956a"
85
+ "falconPackageHash": "a8c4fdc216eddbbbbb3d6ab04fce3521cfead1529915eee6b9c3408b"
86
86
  }
@@ -52,15 +52,25 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // Native fallback; the T5 splash descriptor owns the editable launch appearance.
55
+ // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
+ // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
56
57
  splash: {
57
58
  "enabled": true,
59
+ "appearance": "system",
58
60
  "backgroundColor": "accentPrimary",
59
61
  "logoAsset": "branded_lite_app_icon",
60
- "logoWidth": 192,
62
+ "logoWidth": 96,
63
+ "logoShape": "circle",
61
64
  "layout": "logoOnly",
65
+ "readySignal": "first_screen",
62
66
  "minVisibleMs": 0,
63
- "maxHoldMs": 5000
67
+ "maxHoldMs": 5000,
68
+ "extended": {
69
+ "screenId": "himi_branded_splash",
70
+ "afterMs": 2000,
71
+ "crossfadeMs": 300,
72
+ "minDwellMs": 600
73
+ }
64
74
  },
65
75
  navigation: {
66
76
  "navLogicBundle": {
@@ -92,8 +92,8 @@ const SCREENS = runtimeSetting({
92
92
  "type": "Image",
93
93
  "props": {
94
94
  "asset": "branded_lite_app_icon",
95
- "width": 192,
96
- "height": 192,
95
+ "width": 96,
96
+ "height": 96,
97
97
  "contentMode": "fit"
98
98
  }
99
99
  },
@@ -106,8 +106,8 @@ const SCREENS = runtimeSetting({
106
106
  }
107
107
  },
108
108
  "modifiers": {
109
- "width": 192,
110
- "height": 192,
109
+ "width": 96,
110
+ "height": 96,
111
111
  "clipShape": "circle",
112
112
  "accessibilityRole": "decorative",
113
113
  "hiddenPath": "$service:splash.iconHidden",
@@ -192,7 +192,7 @@ const SCREENS = runtimeSetting({
192
192
  "weight": 1,
193
193
  "fillMaxWidth": true,
194
194
  "padding": {
195
- "top": 120,
195
+ "top": 72,
196
196
  "bottom": 24,
197
197
  "leading": 24,
198
198
  "trailing": 24
@@ -231,7 +231,7 @@ const SCREENS = runtimeSetting({
231
231
  "actionId": "tier5.splash.present"
232
232
  },
233
233
  "background": {
234
- "token": "accentPrimary"
234
+ "token": "launchSurface"
235
235
  }
236
236
  }
237
237
  }
@@ -15,6 +15,11 @@
15
15
  "dark": "#1D1D1D",
16
16
  "highContrast": "#111111"
17
17
  },
18
+ "launchSurface": {
19
+ "light": "#FFFFFF",
20
+ "dark": "#000000",
21
+ "highContrast": "#000000"
22
+ },
18
23
  "surfaceSubtle": {
19
24
  "light": "#F7F7F4",
20
25
  "dark": "#111111",
@@ -39,7 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // Native fallback; the T5 splash descriptor owns the editable launch appearance.
42
+ // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
+ // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
43
44
  splash: {
44
45
  "enabled": true,
45
46
  "backgroundColor": "accentPrimary",
@@ -52,15 +52,25 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // Native fallback; the T5 splash descriptor owns the editable launch appearance.
55
+ // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
+ // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
56
57
  splash: {
57
58
  "enabled": true,
59
+ "appearance": "system",
58
60
  "backgroundColor": "accentPrimary",
59
61
  "logoAsset": "branded_lite_app_icon",
60
- "logoWidth": 192,
62
+ "logoWidth": 96,
63
+ "logoShape": "circle",
61
64
  "layout": "logoOnly",
65
+ "readySignal": "first_screen",
62
66
  "minVisibleMs": 0,
63
- "maxHoldMs": 5000
67
+ "maxHoldMs": 5000,
68
+ "extended": {
69
+ "screenId": "himi_branded_splash",
70
+ "afterMs": 2000,
71
+ "crossfadeMs": 300,
72
+ "minDwellMs": 600
73
+ }
64
74
  },
65
75
  navigation: {
66
76
  "navLogicBundle": {
@@ -92,8 +92,8 @@ const SCREENS = runtimeSetting({
92
92
  "type": "Image",
93
93
  "props": {
94
94
  "asset": "branded_lite_app_icon",
95
- "width": 192,
96
- "height": 192,
95
+ "width": 96,
96
+ "height": 96,
97
97
  "contentMode": "fit"
98
98
  }
99
99
  },
@@ -106,8 +106,8 @@ const SCREENS = runtimeSetting({
106
106
  }
107
107
  },
108
108
  "modifiers": {
109
- "width": 192,
110
- "height": 192,
109
+ "width": 96,
110
+ "height": 96,
111
111
  "clipShape": "circle",
112
112
  "accessibilityRole": "decorative",
113
113
  "hiddenPath": "$service:splash.iconHidden",
@@ -192,7 +192,7 @@ const SCREENS = runtimeSetting({
192
192
  "weight": 1,
193
193
  "fillMaxWidth": true,
194
194
  "padding": {
195
- "top": 120,
195
+ "top": 72,
196
196
  "bottom": 24,
197
197
  "leading": 24,
198
198
  "trailing": 24
@@ -231,7 +231,7 @@ const SCREENS = runtimeSetting({
231
231
  "actionId": "tier5.splash.present"
232
232
  },
233
233
  "background": {
234
- "token": "accentPrimary"
234
+ "token": "launchSurface"
235
235
  }
236
236
  }
237
237
  }
@@ -3,6 +3,7 @@
3
3
  "surfacePrimary": { "light": "#FFFFFF", "dark": "#0D1117", "highContrast": "#000000" },
4
4
  "surfaceSecondary": { "light": "#F4F7F8", "dark": "#161B22", "highContrast": "#111111" },
5
5
  "surfaceElevated": { "light": "#FFFFFF", "dark": "#1D2228", "highContrast": "#111111" },
6
+ "launchSurface": { "light": "#FFFFFF", "dark": "#000000", "highContrast": "#000000" },
6
7
  "surfaceSubtle": { "light": "#F8FAF9", "dark": "#121821", "highContrast": "#111111" },
7
8
  "surfaceTertiary": { "light": "#E9EEF0", "dark": "#232A32", "highContrast": "#1A1A1A" },
8
9
  "textPrimary": { "light": "#1F2328", "dark": "#E6EDF3", "highContrast": "#FFFFFF" },
@@ -52,15 +52,25 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // Native fallback; the T5 splash descriptor owns the editable launch appearance.
55
+ // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
+ // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
56
57
  splash: {
57
58
  "enabled": true,
59
+ "appearance": "system",
58
60
  "backgroundColor": "accentPrimary",
59
61
  "logoAsset": "branded_lite_app_icon",
60
- "logoWidth": 192,
62
+ "logoWidth": 96,
63
+ "logoShape": "circle",
61
64
  "layout": "logoOnly",
65
+ "readySignal": "first_screen",
62
66
  "minVisibleMs": 0,
63
- "maxHoldMs": 5000
67
+ "maxHoldMs": 5000,
68
+ "extended": {
69
+ "screenId": "himi_branded_splash",
70
+ "afterMs": 2000,
71
+ "crossfadeMs": 300,
72
+ "minDwellMs": 600
73
+ }
64
74
  },
65
75
  navigation: {
66
76
  "navKind": "responsive",
@@ -92,8 +92,8 @@ const SCREENS = runtimeSetting({
92
92
  "type": "Image",
93
93
  "props": {
94
94
  "asset": "branded_lite_app_icon",
95
- "width": 192,
96
- "height": 192,
95
+ "width": 96,
96
+ "height": 96,
97
97
  "contentMode": "fit"
98
98
  }
99
99
  },
@@ -106,8 +106,8 @@ const SCREENS = runtimeSetting({
106
106
  }
107
107
  },
108
108
  "modifiers": {
109
- "width": 192,
110
- "height": 192,
109
+ "width": 96,
110
+ "height": 96,
111
111
  "clipShape": "circle",
112
112
  "accessibilityRole": "decorative",
113
113
  "hiddenPath": "$service:splash.iconHidden",
@@ -192,7 +192,7 @@ const SCREENS = runtimeSetting({
192
192
  "weight": 1,
193
193
  "fillMaxWidth": true,
194
194
  "padding": {
195
- "top": 120,
195
+ "top": 72,
196
196
  "bottom": 24,
197
197
  "leading": 24,
198
198
  "trailing": 24
@@ -231,7 +231,7 @@ const SCREENS = runtimeSetting({
231
231
  "actionId": "tier5.splash.present"
232
232
  },
233
233
  "background": {
234
- "token": "accentPrimary"
234
+ "token": "launchSurface"
235
235
  }
236
236
  }
237
237
  }
@@ -15,6 +15,11 @@
15
15
  "dark": "#342138",
16
16
  "highContrast": "#111111"
17
17
  },
18
+ "launchSurface": {
19
+ "light": "#FFFFFF",
20
+ "dark": "#000000",
21
+ "highContrast": "#000000"
22
+ },
18
23
  "surfaceSubtle": {
19
24
  "light": "#FFEBF2",
20
25
  "dark": "#231825",
@@ -39,7 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // Native fallback; the T5 splash descriptor owns the editable launch appearance.
42
+ // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
+ // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
43
44
  splash: {
44
45
  "enabled": true,
45
46
  "backgroundColor": "accentPrimary",
@@ -52,15 +52,25 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // Native fallback; the T5 splash descriptor owns the editable launch appearance.
55
+ // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
+ // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
56
57
  splash: {
57
58
  "enabled": true,
59
+ "appearance": "system",
58
60
  "backgroundColor": "accentPrimary",
59
61
  "logoAsset": "branded_lite_app_icon",
60
- "logoWidth": 192,
62
+ "logoWidth": 96,
63
+ "logoShape": "circle",
61
64
  "layout": "logoOnly",
65
+ "readySignal": "first_screen",
62
66
  "minVisibleMs": 0,
63
- "maxHoldMs": 5000
67
+ "maxHoldMs": 5000,
68
+ "extended": {
69
+ "screenId": "himi_branded_splash",
70
+ "afterMs": 2000,
71
+ "crossfadeMs": 300,
72
+ "minDwellMs": 600
73
+ }
64
74
  },
65
75
  navigation: {
66
76
  "navKind": "responsive",
@@ -92,8 +92,8 @@ const SCREENS = runtimeSetting({
92
92
  "type": "Image",
93
93
  "props": {
94
94
  "asset": "branded_lite_app_icon",
95
- "width": 192,
96
- "height": 192,
95
+ "width": 96,
96
+ "height": 96,
97
97
  "contentMode": "fit"
98
98
  }
99
99
  },
@@ -106,8 +106,8 @@ const SCREENS = runtimeSetting({
106
106
  }
107
107
  },
108
108
  "modifiers": {
109
- "width": 192,
110
- "height": 192,
109
+ "width": 96,
110
+ "height": 96,
111
111
  "clipShape": "circle",
112
112
  "accessibilityRole": "decorative",
113
113
  "hiddenPath": "$service:splash.iconHidden",
@@ -192,7 +192,7 @@ const SCREENS = runtimeSetting({
192
192
  "weight": 1,
193
193
  "fillMaxWidth": true,
194
194
  "padding": {
195
- "top": 120,
195
+ "top": 72,
196
196
  "bottom": 24,
197
197
  "leading": 24,
198
198
  "trailing": 24
@@ -231,7 +231,7 @@ const SCREENS = runtimeSetting({
231
231
  "actionId": "tier5.splash.present"
232
232
  },
233
233
  "background": {
234
- "token": "accentPrimary"
234
+ "token": "launchSurface"
235
235
  }
236
236
  }
237
237
  }
@@ -15,6 +15,11 @@
15
15
  "dark": "#1A2032",
16
16
  "highContrast": "#111111"
17
17
  },
18
+ "launchSurface": {
19
+ "light": "#FFFFFF",
20
+ "dark": "#000000",
21
+ "highContrast": "#000000"
22
+ },
18
23
  "surfaceSubtle": {
19
24
  "light": "#F0F3FD",
20
25
  "dark": "#0F1322",
@@ -39,7 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // Native fallback; the T5 splash descriptor owns the editable launch appearance.
42
+ // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
+ // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
43
44
  splash: {
44
45
  "enabled": true,
45
46
  "backgroundColor": "accentPrimary",