@wix/himalaya-cli 0.1556.0 → 0.1558.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 (53) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +6 -4
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/media/src/index.d.ts +1 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +2 -2
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +1 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-media.mjs +1 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-rich-content.mjs +1 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores-collections.mjs +1 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +1 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-video.mjs +1 -0
  10. package/dist/cli.mjs +22575 -22024
  11. package/dist/preview-assets.generated.bin +0 -0
  12. package/guides/getting-started.md +4 -1
  13. package/guides/himi-json-output.md +13 -0
  14. package/guides/himi-skill.md +4 -1
  15. package/guides/one-app-to-himi-app.md +25 -6
  16. package/guides/sdk-reference.json +2 -2
  17. package/guides/skill.md +4 -1
  18. package/guides/splash-screens.md +22 -1
  19. package/package.json +2 -2
  20. package/templates/beauty-salon/tier5-src/_shared/himi-media.ts +29 -0
  21. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +3 -4
  22. package/templates/branded-lite/tier5-src/_shared/himi-media.ts +29 -0
  23. package/templates/branded-lite/tier5-src/himi-branded-lite-group/index.ts +3 -6
  24. package/templates/branded-lite/tier5-src/himi-branded-lite-groups/index.ts +2 -15
  25. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +3 -4
  26. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +3 -9
  27. package/templates/branded-lite/tier5-src/himi-branded-lite-programs/index.ts +1 -9
  28. package/templates/community-club/tier5-src/_shared/himi-media.ts +29 -0
  29. package/templates/community-club/tier5-src/himi-branded-lite-group/index.ts +3 -6
  30. package/templates/community-club/tier5-src/himi-branded-lite-groups/index.ts +2 -15
  31. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +3 -4
  32. package/templates/events-meetups/tier5-src/_shared/himi-media.ts +29 -0
  33. package/templates/events-meetups/tier5-src/himi-branded-lite-group/index.ts +3 -6
  34. package/templates/events-meetups/tier5-src/himi-branded-lite-groups/index.ts +2 -15
  35. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +3 -4
  36. package/templates/gym-fitness/tier5-src/_shared/himi-media.ts +29 -0
  37. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +3 -4
  38. package/templates/nonprofit-cause/tier5-src/_shared/himi-media.ts +29 -0
  39. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group/index.ts +3 -6
  40. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-groups/index.ts +2 -15
  41. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +3 -4
  42. package/templates/podcast-creator/tier5-src/_shared/himi-media.ts +29 -0
  43. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +3 -4
  44. package/templates/portfolio-creative/tier5-src/_shared/himi-media.ts +29 -0
  45. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +3 -4
  46. package/templates/restaurant/tier5-src/_shared/himi-media.ts +29 -0
  47. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +3 -4
  48. package/templates/retail-store/tier5-src/_shared/himi-media.ts +29 -0
  49. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +3 -4
  50. package/templates/yoga-studio/tier5-src/_shared/himi-media.ts +29 -0
  51. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +3 -4
  52. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +3 -9
  53. package/templates/yoga-studio/tier5-src/himi-branded-lite-programs/index.ts +1 -9
@@ -3211,12 +3211,14 @@ export interface SplashConfig {
3211
3211
  /** Hard ceiling on the readiness hold, ms — a stuck boot can never wedge the
3212
3212
  * UI. 0 / absent ⇒ 3000. Clamped client-side to [0, 8000]. */
3213
3213
  maxHoldMs?: number;
3214
- /** RFC 0062 — what readiness waits for beyond the seed. Absent / "" ⇒ seeded is
3215
- * enough. "first_content" ⇒ also the first WebView page (a site shell), still
3216
- * under `maxHoldMs`. Unknown coalesces to "" on device. */
3214
+ /** RFC 0062 — what readiness waits for beyond the seed. Absent / "" ⇒ the first
3215
+ * screen's paint, where the shell mounts its content under the splash (every shell
3216
+ * built on `HimalayaLaunchGate` / `awaitingFirstScreen`), else the seed alone.
3217
+ * "seeded" ⇒ the seed alone, always. "first_content" ⇒ the first WebView page (a
3218
+ * site shell). All still under `maxHoldMs`. Unknown coalesces to "" on device. */
3217
3219
  readySignal?: SplashReadySignal;
3218
3220
  }
3219
- export type SplashReadySignal = "" | "first_content";
3221
+ export type SplashReadySignal = "" | "seeded" | "first_content";
3220
3222
  export interface DeepLinkPattern {
3221
3223
  /** e.g. "wix-owner://blog/post/:id" */
3222
3224
  pattern: string;
@@ -20,7 +20,7 @@ export declare const WIX_DETAIL_IMAGE: WixImageSize;
20
20
  * measured at 2.4MB versus 220KB for the same 1000px render. JPEG at q85 is ~18x
21
21
  * smaller than the original across the amit1 catalog (50.5MB -> 2.7MB).
22
22
  *
23
- * Wix image handles and bare media ids are resolved before sizing. Existing `fit`
23
+ * Wix image handles, relative `media/<id>` paths and bare media ids are resolved before sizing. Existing `fit`
24
24
  * and `fill` transforms are rebuilt inside the requested pixel budget — scaled to
25
25
  * the transform's OWN aspect ratio, never upscaled — while their framing
26
26
  * parameters remain intact. Other transform modes and non-Wix HTTP(S) URLs stay
@@ -7976,7 +7976,7 @@ function validateSiteNav(site) {
7976
7976
  var SPLASH_MIN_VISIBLE_MS_MAX = 2e3;
7977
7977
  var SPLASH_MAX_HOLD_MS_MAX = 8e3;
7978
7978
  var SPLASH_LAYOUTS = ["centered", "centeredStacked", "logoOnly"];
7979
- var SPLASH_READY_SIGNALS = ["", "first_content"];
7979
+ var SPLASH_READY_SIGNALS = ["", "seeded", "first_content"];
7980
7980
  function validateA11y(a11y) {
7981
7981
  if (!a11y || typeof a11y !== "object" || Array.isArray(a11y)) {
7982
7982
  throw new Error('defineApp: a11y must be an object like { enforce: "warn" }.');
@@ -8112,7 +8112,7 @@ function validateSplash(splash, colors, tokensPath) {
8112
8112
  }
8113
8113
  if (splash.readySignal !== void 0 && !SPLASH_READY_SIGNALS.includes(splash.readySignal)) {
8114
8114
  throw new Error(
8115
- `defineApp: splash.readySignal "${splash.readySignal}" is not one of "", "first_content".`
8115
+ `defineApp: splash.readySignal "${splash.readySignal}" is not one of "", "seeded", "first_content".`
8116
8116
  );
8117
8117
  }
8118
8118
  for (const [field, value, max] of [
@@ -12,6 +12,7 @@ function wixMediaId(reference) {
12
12
  return WIX_IMAGE.exec(reference)?.[1] ?? (reference.includes("/") || reference.includes(":") ? "" : reference);
13
13
  }
14
14
  function resolveWixMediaReference(reference) {
15
+ if (/^\/?media\/[^/]/.test(reference)) return `https://static.wixstatic.com/${reference.replace(/^\//, "")}`;
15
16
  const mediaId = wixMediaId(reference);
16
17
  return mediaId ? `https://static.wixstatic.com/media/${mediaId}` : reference;
17
18
  }
@@ -13,6 +13,7 @@ function wixMediaId(reference) {
13
13
  return WIX_IMAGE.exec(reference)?.[1] ?? (reference.includes("/") || reference.includes(":") ? "" : reference);
14
14
  }
15
15
  function resolveWixMediaReference(reference) {
16
+ if (/^\/?media\/[^/]/.test(reference)) return `https://static.wixstatic.com/${reference.replace(/^\//, "")}`;
16
17
  const mediaId = wixMediaId(reference);
17
18
  return mediaId ? `https://static.wixstatic.com/media/${mediaId}` : reference;
18
19
  }
@@ -13,6 +13,7 @@ function wixMediaId(reference) {
13
13
  return WIX_IMAGE.exec(reference)?.[1] ?? (reference.includes("/") || reference.includes(":") ? "" : reference);
14
14
  }
15
15
  function resolveWixMediaReference(reference) {
16
+ if (/^\/?media\/[^/]/.test(reference)) return `https://static.wixstatic.com/${reference.replace(/^\//, "")}`;
16
17
  const mediaId = wixMediaId(reference);
17
18
  return mediaId ? `https://static.wixstatic.com/media/${mediaId}` : reference;
18
19
  }
@@ -12,6 +12,7 @@ function wixMediaId(reference) {
12
12
  return WIX_IMAGE.exec(reference)?.[1] ?? (reference.includes("/") || reference.includes(":") ? "" : reference);
13
13
  }
14
14
  function resolveWixMediaReference(reference) {
15
+ if (/^\/?media\/[^/]/.test(reference)) return `https://static.wixstatic.com/${reference.replace(/^\//, "")}`;
15
16
  const mediaId = wixMediaId(reference);
16
17
  return mediaId ? `https://static.wixstatic.com/media/${mediaId}` : reference;
17
18
  }
@@ -252,6 +252,7 @@ function wixMediaId(reference) {
252
252
  return WIX_IMAGE.exec(reference)?.[1] ?? (reference.includes("/") || reference.includes(":") ? "" : reference);
253
253
  }
254
254
  function resolveWixMediaReference(reference) {
255
+ if (/^\/?media\/[^/]/.test(reference)) return `https://static.wixstatic.com/${reference.replace(/^\//, "")}`;
255
256
  const mediaId = wixMediaId(reference);
256
257
  return mediaId ? `https://static.wixstatic.com/media/${mediaId}` : reference;
257
258
  }
@@ -12,6 +12,7 @@ function wixMediaId(reference) {
12
12
  return WIX_IMAGE.exec(reference)?.[1] ?? (reference.includes("/") || reference.includes(":") ? "" : reference);
13
13
  }
14
14
  function resolveWixMediaReference(reference) {
15
+ if (/^\/?media\/[^/]/.test(reference)) return `https://static.wixstatic.com/${reference.replace(/^\//, "")}`;
15
16
  const mediaId = wixMediaId(reference);
16
17
  return mediaId ? `https://static.wixstatic.com/media/${mediaId}` : reference;
17
18
  }