@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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/launch-manifest.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +33 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/splash-timeline.d.ts +48 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +70 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +2 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{4a6f910bf580b4fbc462abad75f9f9a8274914d66d468efef11bb741e11f834e.bin → dd1ab57b35f99c571d48e6f87b0b43cb84e090091d517c830ea4f3dc02631fbd.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +1007 -807
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/sdk-reference.json +1 -1
- package/guides/splash-screens.md +107 -41
- package/package.json +2 -2
- package/templates/beauty-salon/config.ts +13 -3
- package/templates/beauty-salon/dev/index.ts +6 -6
- package/templates/beauty-salon/tokens.json +5 -0
- package/templates/beauty-salon-owner/config.ts +2 -1
- package/templates/branded-lite/config.ts +13 -3
- package/templates/branded-lite/dev/index.ts +6 -6
- package/templates/branded-lite/tokens.json +1 -0
- package/templates/community-club/config.ts +13 -3
- package/templates/community-club/dev/index.ts +6 -6
- package/templates/community-club/tokens.json +5 -0
- package/templates/community-club-owner/config.ts +2 -1
- package/templates/events-meetups/config.ts +13 -3
- package/templates/events-meetups/dev/index.ts +6 -6
- package/templates/events-meetups/tokens.json +5 -0
- package/templates/events-meetups-owner/config.ts +2 -1
- package/templates/gym-fitness/config.ts +13 -3
- package/templates/gym-fitness/dev/index.ts +6 -6
- package/templates/gym-fitness/tokens.json +5 -0
- package/templates/gym-fitness-owner/config.ts +2 -1
- package/templates/nonprofit-cause/config.ts +13 -3
- package/templates/nonprofit-cause/dev/index.ts +6 -6
- package/templates/nonprofit-cause/tokens.json +5 -0
- package/templates/nonprofit-cause-owner/config.ts +2 -1
- package/templates/owner-lite/config.ts +2 -1
- package/templates/personal-fitness-trainer/dev/index.ts +6 -6
- package/templates/personal-fitness-trainer/tokens.json +5 -0
- package/templates/podcast-creator/config.ts +13 -3
- package/templates/podcast-creator/dev/index.ts +6 -6
- package/templates/podcast-creator/tokens.json +5 -0
- package/templates/podcast-creator-owner/config.ts +2 -1
- package/templates/portfolio-creative/config.ts +13 -3
- package/templates/portfolio-creative/dev/index.ts +6 -6
- package/templates/portfolio-creative/tokens.json +5 -0
- package/templates/portfolio-creative-owner/config.ts +2 -1
- package/templates/restaurant/config.ts +13 -3
- package/templates/restaurant/dev/index.ts +6 -6
- package/templates/restaurant/tokens.json +5 -0
- package/templates/restaurant-owner/config.ts +2 -1
- package/templates/retail-store/config.ts +13 -3
- package/templates/retail-store/dev/index.ts +6 -6
- package/templates/retail-store/tokens.json +5 -0
- package/templates/retail-store-owner/config.ts +2 -1
- package/templates/yoga-studio/config.ts +13 -3
- package/templates/yoga-studio/dev/index.ts +6 -6
- package/templates/yoga-studio/tokens.json +5 -0
- 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
|
{
|
package/guides/splash-screens.md
CHANGED
|
@@ -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:
|
|
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.
|
|
173
|
-
|
|
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
|
|
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` (
|
|
252
|
-
`.splashExitAnimation(ready:splash:)` on iOS and `HimalayaSplashHost` on Android.
|
|
253
|
-
drops the fade on every gate (iOS, Android, the web host's `LaunchGate`, and
|
|
254
|
-
first screen shows on the next frame, as a React Native app
|
|
255
|
-
own gate passes its `SplashConfig` to
|
|
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
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
The
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
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
|
|
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.
|
|
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": "
|
|
85
|
+
"falconPackageHash": "a8c4fdc216eddbbbbb3d6ab04fce3521cfead1529915eee6b9c3408b"
|
|
86
86
|
}
|
|
@@ -52,15 +52,25 @@ export default defineApp({
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
designTokensPath: "./tokens.json",
|
|
55
|
-
//
|
|
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":
|
|
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":
|
|
96
|
-
"height":
|
|
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":
|
|
110
|
-
"height":
|
|
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":
|
|
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": "
|
|
234
|
+
"token": "launchSurface"
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -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
|
-
//
|
|
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
|
-
//
|
|
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":
|
|
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":
|
|
96
|
-
"height":
|
|
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":
|
|
110
|
-
"height":
|
|
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":
|
|
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": "
|
|
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
|
-
//
|
|
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":
|
|
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":
|
|
96
|
-
"height":
|
|
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":
|
|
110
|
-
"height":
|
|
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":
|
|
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": "
|
|
234
|
+
"token": "launchSurface"
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -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
|
-
//
|
|
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
|
-
//
|
|
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":
|
|
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":
|
|
96
|
-
"height":
|
|
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":
|
|
110
|
-
"height":
|
|
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":
|
|
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": "
|
|
234
|
+
"token": "launchSurface"
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -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
|
-
//
|
|
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",
|