@wix/himalaya-cli 0.1918.0 → 0.1920.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.
@@ -3649,7 +3649,11 @@ export interface SplashConfig {
3649
3649
  * "seeded" ⇒ the seed alone, always. "first_content" ⇒ the first WebView page (a
3650
3650
  * site shell). All still under `maxHoldMs`. Unknown coalesces to "" on device. */
3651
3651
  readySignal?: SplashReadySignal;
3652
+ /** #4675 — how the surface leaves once the app is ready. Absent / "fade" ⇒ a short crossfade into the first
3653
+ * screen. "cut" ⇒ gone on the next frame, as a React Native app that hides its splash does. Unknown fades. */
3654
+ exitTransition?: SplashExitTransition;
3652
3655
  }
3656
+ export type SplashExitTransition = "" | "fade" | "cut";
3653
3657
  export type SplashReadySignal = "" | "seeded" | "first_content";
3654
3658
  export interface DeepLinkPattern {
3655
3659
  /** e.g. "wix-owner://blog/post/:id" */
@@ -8585,6 +8585,7 @@ var SPLASH_MIN_VISIBLE_MS_MAX = 2e3;
8585
8585
  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
+ var SPLASH_EXIT_TRANSITIONS = ["", "fade", "cut"];
8588
8589
  function validateA11y(a11y) {
8589
8590
  if (!a11y || typeof a11y !== "object" || Array.isArray(a11y)) {
8590
8591
  throw new Error('defineApp: a11y must be an object like { enforce: "warn" }.');
@@ -8723,6 +8724,11 @@ function validateSplash(splash, colors, tokensPath) {
8723
8724
  `defineApp: splash.readySignal "${splash.readySignal}" is not one of "", "seeded", "first_content".`
8724
8725
  );
8725
8726
  }
8727
+ if (splash.exitTransition !== void 0 && !SPLASH_EXIT_TRANSITIONS.includes(splash.exitTransition)) {
8728
+ throw new Error(
8729
+ `defineApp: splash.exitTransition "${splash.exitTransition}" is not one of "", "fade", "cut".`
8730
+ );
8731
+ }
8726
8732
  for (const [field, value, max] of [
8727
8733
  ["logoWidth", splash.logoWidth, 1024],
8728
8734
  ["minVisibleMs", splash.minVisibleMs, SPLASH_MIN_VISIBLE_MS_MAX],
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2810913
5
+ "bytes": 2811317
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/f49f080474576cc282d00b55aa2661b18ec25fd0def3772c29bb773887a0fda2.bin",
24
+ "name": "preview-deferred/d9e187d7c90304afc1cc68bdb1391f0827037645d3f6f22f7fcfd63b01daee18.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-DSKm1gnl.js",
82
+ "key": "assets/pdf-CS2sEXK4.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "f49f080474576cc282d00b55aa2661b18ec25fd0def3772c29bb773887a0fda2",
85
- "file": "preview-deferred/f49f080474576cc282d00b55aa2661b18ec25fd0def3772c29bb773887a0fda2.bin"
84
+ "sha256": "d9e187d7c90304afc1cc68bdb1391f0827037645d3f6f22f7fcfd63b01daee18",
85
+ "file": "preview-deferred/d9e187d7c90304afc1cc68bdb1391f0827037645d3f6f22f7fcfd63b01daee18.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",