@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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +6 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/media/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-media.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-rich-content.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores-collections.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-video.mjs +1 -0
- package/dist/cli.mjs +22575 -22024
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/getting-started.md +4 -1
- package/guides/himi-json-output.md +13 -0
- package/guides/himi-skill.md +4 -1
- package/guides/one-app-to-himi-app.md +25 -6
- package/guides/sdk-reference.json +2 -2
- package/guides/skill.md +4 -1
- package/guides/splash-screens.md +22 -1
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/branded-lite/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-group/index.ts +3 -6
- package/templates/branded-lite/tier5-src/himi-branded-lite-groups/index.ts +2 -15
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +3 -9
- package/templates/branded-lite/tier5-src/himi-branded-lite-programs/index.ts +1 -9
- package/templates/community-club/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/community-club/tier5-src/himi-branded-lite-group/index.ts +3 -6
- package/templates/community-club/tier5-src/himi-branded-lite-groups/index.ts +2 -15
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/events-meetups/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-group/index.ts +3 -6
- package/templates/events-meetups/tier5-src/himi-branded-lite-groups/index.ts +2 -15
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/gym-fitness/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/nonprofit-cause/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group/index.ts +3 -6
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-groups/index.ts +2 -15
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/podcast-creator/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/portfolio-creative/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/restaurant/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/retail-store/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/yoga-studio/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +3 -4
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +3 -9
- package/templates/yoga-studio/tier5-src/himi-branded-lite-programs/index.ts +1 -9
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -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 / "" ⇒
|
|
3215
|
-
*
|
|
3216
|
-
*
|
|
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
|
}
|