@wix/himalaya-cli 0.1288.0 → 0.1289.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/cli.mjs +31 -29
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +83 -478
- package/templates/beauty-salon/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/beauty-salon/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/branded-lite/dev/index.ts +83 -479
- package/templates/branded-lite/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/branded-lite/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/community-club/dev/index.ts +83 -479
- package/templates/community-club/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/community-club/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/events-meetups/dev/index.ts +83 -479
- package/templates/events-meetups/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/events-meetups/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/gym-fitness/dev/index.ts +83 -478
- package/templates/gym-fitness/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/gym-fitness/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/nonprofit-cause/dev/index.ts +83 -479
- package/templates/nonprofit-cause/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/podcast-creator/dev/index.ts +83 -479
- package/templates/podcast-creator/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/podcast-creator/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/portfolio-creative/dev/index.ts +83 -478
- package/templates/portfolio-creative/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/restaurant/dev/index.ts +83 -478
- package/templates/restaurant/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/restaurant/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/retail-store/dev/index.ts +83 -478
- package/templates/retail-store/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/retail-store/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +1 -17
- package/templates/yoga-studio/dev/index.ts +83 -478
- package/templates/yoga-studio/tier5-src/_shared/himi-layouts.ts +13 -34
- package/templates/yoga-studio/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +1 -17
package/dist/cli.mjs
CHANGED
|
@@ -7528,7 +7528,6 @@ function buttonVariant(style) {
|
|
|
7528
7528
|
var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty, own, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
|
|
7529
7529
|
var init_tokens = __esm({
|
|
7530
7530
|
"../../core/ts/src/tokens.ts"() {
|
|
7531
|
-
"use strict";
|
|
7532
7531
|
SYSTEM_FONT_FAMILY = "$system";
|
|
7533
7532
|
TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
|
|
7534
7533
|
BUTTON_MIN_HIT_TARGET = 44;
|
|
@@ -125876,7 +125875,9 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
|
|
|
125876
125875
|
return withFocusRing(renderToStaticMarkup(
|
|
125877
125876
|
React10.createElement(
|
|
125878
125877
|
"div",
|
|
125879
|
-
|
|
125878
|
+
// F-22 — same footer pin as ScreenHost: a full-height flex column + margin-top:auto
|
|
125879
|
+
// keeps the footer at the bottom edge even when the payload is short.
|
|
125880
|
+
{ "data-testid": "screen-host", ...dir, ...footer ? { style: { display: "flex", flexDirection: "column", minHeight: "100%", flexGrow: 1 } } : {} },
|
|
125880
125881
|
header ? React10.createElement(
|
|
125881
125882
|
"div",
|
|
125882
125883
|
{ "data-testid": "sticky-header", style: { position: "sticky", top: 0, zIndex: 10 } },
|
|
@@ -125885,7 +125886,7 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
|
|
|
125885
125886
|
renderNode(payload, ctx),
|
|
125886
125887
|
footer ? React10.createElement(
|
|
125887
125888
|
"div",
|
|
125888
|
-
{ "data-testid": "sticky-footer", style: { position: "sticky", bottom: 0, zIndex: 10 } },
|
|
125889
|
+
{ "data-testid": "sticky-footer", style: { position: "sticky", bottom: 0, zIndex: 10, marginTop: "auto" } },
|
|
125889
125890
|
renderNode(footer, ctx)
|
|
125890
125891
|
) : null
|
|
125891
125892
|
)
|
|
@@ -126316,11 +126317,11 @@ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, service
|
|
|
126316
126317
|
resolvedRenderTree
|
|
126317
126318
|
};
|
|
126318
126319
|
}
|
|
126319
|
-
const result = { renderable: true, html, renderTree, resolvedRenderTree };
|
|
126320
|
+
const result = { renderable: true, html, renderTree, resolvedRenderTree, hasStickyFooter: !!stickyFooter };
|
|
126320
126321
|
const nativeOnly = collectNativeOnly(renderTree);
|
|
126321
126322
|
if (nativeOnly.length) result.nativeOnly = nativeOnly;
|
|
126322
126323
|
if (wantPng) {
|
|
126323
|
-
const png = await renderPng(html, scheme, width, isRTL, tokens2, idiomContext);
|
|
126324
|
+
const png = await renderPng(html, scheme, width, isRTL, tokens2, idiomContext, !!stickyFooter);
|
|
126324
126325
|
if (png) result.pngBase64 = png;
|
|
126325
126326
|
else result.pngUnavailable = true;
|
|
126326
126327
|
}
|
|
@@ -126337,8 +126338,8 @@ async function withRetry2(op, attempts = 2) {
|
|
|
126337
126338
|
}
|
|
126338
126339
|
throw lastErr;
|
|
126339
126340
|
}
|
|
126340
|
-
async function renderPng(html, scheme, width, isRTL, tokens2, idiomContext) {
|
|
126341
|
-
const out2 = await renderPngBatch([{ html, scheme, width, isRTL, tokens: tokens2, idiomContext }]);
|
|
126341
|
+
async function renderPng(html, scheme, width, isRTL, tokens2, idiomContext, hasStickyFooter) {
|
|
126342
|
+
const out2 = await renderPngBatch([{ html, scheme, width, isRTL, tokens: tokens2, idiomContext, hasStickyFooter }]);
|
|
126342
126343
|
return out2?.[0] ?? null;
|
|
126343
126344
|
}
|
|
126344
126345
|
function setPngFontCss(source) {
|
|
@@ -126353,7 +126354,8 @@ async function pngPageHtml(item) {
|
|
|
126353
126354
|
} catch {
|
|
126354
126355
|
faces = "";
|
|
126355
126356
|
}
|
|
126356
|
-
|
|
126357
|
+
const fill = item.hasStickyFooter ? "html,body{height:100%}" : "";
|
|
126358
|
+
return `<!doctype html><html${item.isRTL ? ' dir="rtl"' : ""}><head><meta charset="utf-8"><style>${faces}${fill}body{font-family:${HOST_PAGE_FONT}}</style></head><body style="margin:0">${item.html}</body></html>`;
|
|
126357
126359
|
}
|
|
126358
126360
|
function isMissingPlaywrightExecutable(error) {
|
|
126359
126361
|
const message = error?.message ?? "";
|
|
@@ -141508,9 +141510,9 @@ async function runShotsPass(opts) {
|
|
|
141508
141510
|
} : {}
|
|
141509
141511
|
}) : null;
|
|
141510
141512
|
const rr2 = await opts.deps.renderDescriptorWeb(baked.descriptor, opts.tokens, scheme, false, state, opts.width);
|
|
141511
|
-
if (rr2.renderable && rr2.html) shots.push({ screenId: baked.screenId, html: rr2.html, state: screenStateOf(state, rr2.html, { offline: unserved > 0 }) });
|
|
141513
|
+
if (rr2.renderable && rr2.html) shots.push({ screenId: baked.screenId, html: rr2.html, hasStickyFooter: rr2.hasStickyFooter === true, state: screenStateOf(state, rr2.html, { offline: unserved > 0 }) });
|
|
141512
141514
|
}
|
|
141513
|
-
const pngs = await opts.deps.renderPngBatch(shots.map((x2) => ({ html: x2.html, scheme, tokens: opts.tokens, ...opts.width ? { width: opts.width } : {} })));
|
|
141515
|
+
const pngs = await opts.deps.renderPngBatch(shots.map((x2) => ({ html: x2.html, scheme, tokens: opts.tokens, hasStickyFooter: x2.hasStickyFooter, ...opts.width ? { width: opts.width } : {} })));
|
|
141514
141516
|
if (pngs === null) return { dir: opts.outDir, written: [], unavailable: true };
|
|
141515
141517
|
if (opts.clearDir) opts.deps.clearDir?.(opts.outDir);
|
|
141516
141518
|
const written = [];
|
|
@@ -147517,25 +147519,25 @@ var init_preview_assets_generated = __esm({
|
|
|
147517
147519
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
147518
147520
|
init_preview_assets_format();
|
|
147519
147521
|
PREVIEW_ASSET_MANIFEST = [
|
|
147520
|
-
{ key: "assets/index-
|
|
147521
|
-
{ key: "assets/pdf-
|
|
147522
|
-
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
147523
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
147524
|
-
{ key: "assets/pdfDocument-
|
|
147525
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
147526
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
147527
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
147528
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
147529
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
147530
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
147531
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
147532
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
147533
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
147534
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
147535
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
147536
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
147537
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
147538
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
147522
|
+
{ key: "assets/index-inRyaNS3.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1234921, sha256: "9dc616f8a40d24211d502568ecf217f23b6b0390523ddf7f08eb43b8b0664a62" },
|
|
147523
|
+
{ key: "assets/pdf-BE0I2-C4.js", contentType: "application/javascript; charset=utf-8", offset: 1234929, length: 488199, sha256: "95b3eadf0b3e9e50bcc41d728ad734cc4df1737db717b2a0f305f1afaaefc869" },
|
|
147524
|
+
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1723128, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
|
|
147525
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1723201, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
147526
|
+
{ key: "assets/pdfDocument-B6UZ6ras.js", contentType: "application/javascript; charset=utf-8", offset: 3040235, length: 2858, sha256: "4cea9a70944887fc2ac63db7894b92c2892afd9df2ffeaec7597614ffef9c3dc" },
|
|
147527
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3043093, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
147528
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3047703, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
147529
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3536287, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
147530
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3627211, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
147531
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3718195, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
147532
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3809175, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
147533
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 3900047, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
147534
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 3991027, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
147535
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4099663, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
147536
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4208747, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
147537
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4317795, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
147538
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4425495, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
147539
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4513603, length: 4947, sha256: "6fef2379e9e57f7a76f7486e3ef1d9b6dc7efc6b359ffbc0284898b5e73f6d3a" },
|
|
147540
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4518550, length: 17344, sha256: "d057298d75e7373e5e2c4d11b7d1bcbea88e03af555ba63d97641c78509c58e4" }
|
|
147539
147541
|
];
|
|
147540
147542
|
}
|
|
147541
147543
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1289.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": [
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"artifactId": "himalaya-cli"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
"falconPackageHash": "
|
|
73
|
+
"falconPackageHash": "927c616bcdd27b53757703589d0c469b58e2b4a987b8bb99d31c65ee"
|
|
74
74
|
}
|