@wix/himalaya-cli 0.1288.0 → 0.1290.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 (47) hide show
  1. package/dist/cli.mjs +32 -28
  2. package/dist/preview-assets.generated.bin +0 -0
  3. package/package.json +2 -2
  4. package/templates/beauty-salon/dev/index.ts +83 -478
  5. package/templates/beauty-salon/tier5-src/_shared/himi-layouts.ts +13 -34
  6. package/templates/beauty-salon/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  7. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +1 -17
  8. package/templates/branded-lite/dev/index.ts +83 -479
  9. package/templates/branded-lite/tier5-src/_shared/himi-layouts.ts +13 -34
  10. package/templates/branded-lite/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  11. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +1 -17
  12. package/templates/community-club/dev/index.ts +83 -479
  13. package/templates/community-club/tier5-src/_shared/himi-layouts.ts +13 -34
  14. package/templates/community-club/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  15. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +1 -17
  16. package/templates/events-meetups/dev/index.ts +83 -479
  17. package/templates/events-meetups/tier5-src/_shared/himi-layouts.ts +13 -34
  18. package/templates/events-meetups/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  19. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +1 -17
  20. package/templates/gym-fitness/dev/index.ts +83 -478
  21. package/templates/gym-fitness/tier5-src/_shared/himi-layouts.ts +13 -34
  22. package/templates/gym-fitness/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  23. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +1 -17
  24. package/templates/nonprofit-cause/dev/index.ts +83 -479
  25. package/templates/nonprofit-cause/tier5-src/_shared/himi-layouts.ts +13 -34
  26. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  27. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +1 -17
  28. package/templates/podcast-creator/dev/index.ts +83 -479
  29. package/templates/podcast-creator/tier5-src/_shared/himi-layouts.ts +13 -34
  30. package/templates/podcast-creator/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  31. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +1 -17
  32. package/templates/portfolio-creative/dev/index.ts +83 -478
  33. package/templates/portfolio-creative/tier5-src/_shared/himi-layouts.ts +13 -34
  34. package/templates/portfolio-creative/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  35. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +1 -17
  36. package/templates/restaurant/dev/index.ts +83 -478
  37. package/templates/restaurant/tier5-src/_shared/himi-layouts.ts +13 -34
  38. package/templates/restaurant/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  39. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +1 -17
  40. package/templates/retail-store/dev/index.ts +83 -478
  41. package/templates/retail-store/tier5-src/_shared/himi-layouts.ts +13 -34
  42. package/templates/retail-store/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  43. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +1 -17
  44. package/templates/yoga-studio/dev/index.ts +83 -478
  45. package/templates/yoga-studio/tier5-src/_shared/himi-layouts.ts +13 -34
  46. package/templates/yoga-studio/tier5-src/himi-branded-lite-appearance/index.ts +58 -77
  47. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +1 -17
package/dist/cli.mjs CHANGED
@@ -28773,6 +28773,7 @@ function shouldRevealError(args) {
28773
28773
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
28774
28774
  var init_validation = __esm({
28775
28775
  "../../core/ts/src/validation.ts"() {
28776
+ "use strict";
28776
28777
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
28777
28778
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
28778
28779
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -125876,7 +125877,9 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
125876
125877
  return withFocusRing(renderToStaticMarkup(
125877
125878
  React10.createElement(
125878
125879
  "div",
125879
- { "data-testid": "screen-host", ...dir },
125880
+ // F-22 — same footer pin as ScreenHost: a full-height flex column + margin-top:auto
125881
+ // keeps the footer at the bottom edge even when the payload is short.
125882
+ { "data-testid": "screen-host", ...dir, ...footer ? { style: { display: "flex", flexDirection: "column", minHeight: "100%", flexGrow: 1 } } : {} },
125880
125883
  header ? React10.createElement(
125881
125884
  "div",
125882
125885
  { "data-testid": "sticky-header", style: { position: "sticky", top: 0, zIndex: 10 } },
@@ -125885,7 +125888,7 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
125885
125888
  renderNode(payload, ctx),
125886
125889
  footer ? React10.createElement(
125887
125890
  "div",
125888
- { "data-testid": "sticky-footer", style: { position: "sticky", bottom: 0, zIndex: 10 } },
125891
+ { "data-testid": "sticky-footer", style: { position: "sticky", bottom: 0, zIndex: 10, marginTop: "auto" } },
125889
125892
  renderNode(footer, ctx)
125890
125893
  ) : null
125891
125894
  )
@@ -126316,11 +126319,11 @@ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, service
126316
126319
  resolvedRenderTree
126317
126320
  };
126318
126321
  }
126319
- const result = { renderable: true, html, renderTree, resolvedRenderTree };
126322
+ const result = { renderable: true, html, renderTree, resolvedRenderTree, hasStickyFooter: !!stickyFooter };
126320
126323
  const nativeOnly = collectNativeOnly(renderTree);
126321
126324
  if (nativeOnly.length) result.nativeOnly = nativeOnly;
126322
126325
  if (wantPng) {
126323
- const png = await renderPng(html, scheme, width, isRTL, tokens2, idiomContext);
126326
+ const png = await renderPng(html, scheme, width, isRTL, tokens2, idiomContext, !!stickyFooter);
126324
126327
  if (png) result.pngBase64 = png;
126325
126328
  else result.pngUnavailable = true;
126326
126329
  }
@@ -126337,8 +126340,8 @@ async function withRetry2(op, attempts = 2) {
126337
126340
  }
126338
126341
  throw lastErr;
126339
126342
  }
126340
- async function renderPng(html, scheme, width, isRTL, tokens2, idiomContext) {
126341
- const out2 = await renderPngBatch([{ html, scheme, width, isRTL, tokens: tokens2, idiomContext }]);
126343
+ async function renderPng(html, scheme, width, isRTL, tokens2, idiomContext, hasStickyFooter) {
126344
+ const out2 = await renderPngBatch([{ html, scheme, width, isRTL, tokens: tokens2, idiomContext, hasStickyFooter }]);
126342
126345
  return out2?.[0] ?? null;
126343
126346
  }
126344
126347
  function setPngFontCss(source) {
@@ -126353,7 +126356,8 @@ async function pngPageHtml(item) {
126353
126356
  } catch {
126354
126357
  faces = "";
126355
126358
  }
126356
- return `<!doctype html><html${item.isRTL ? ' dir="rtl"' : ""}><head><meta charset="utf-8"><style>${faces}body{font-family:${HOST_PAGE_FONT}}</style></head><body style="margin:0">${item.html}</body></html>`;
126359
+ const fill = item.hasStickyFooter ? "html,body{height:100%}" : "";
126360
+ 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
126361
  }
126358
126362
  function isMissingPlaywrightExecutable(error) {
126359
126363
  const message = error?.message ?? "";
@@ -141508,9 +141512,9 @@ async function runShotsPass(opts) {
141508
141512
  } : {}
141509
141513
  }) : null;
141510
141514
  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 }) });
141515
+ 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
141516
  }
141513
- const pngs = await opts.deps.renderPngBatch(shots.map((x2) => ({ html: x2.html, scheme, tokens: opts.tokens, ...opts.width ? { width: opts.width } : {} })));
141517
+ 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
141518
  if (pngs === null) return { dir: opts.outDir, written: [], unavailable: true };
141515
141519
  if (opts.clearDir) opts.deps.clearDir?.(opts.outDir);
141516
141520
  const written = [];
@@ -147517,25 +147521,25 @@ var init_preview_assets_generated = __esm({
147517
147521
  "../../packages/serve/src/preview-assets.generated.ts"() {
147518
147522
  init_preview_assets_format();
147519
147523
  PREVIEW_ASSET_MANIFEST = [
147520
- { key: "assets/index-C1BOKgEl.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1233862, sha256: "bf7973c8776a50b514dd47cb1ba0813658274f4604b74c29a666a13b63630fcb" },
147521
- { key: "assets/pdf-nW54Zt8m.js", contentType: "application/javascript; charset=utf-8", offset: 1233870, length: 488199, sha256: "389f3ff819e70116c2f8a6e09a042a4548479b19b2c5b2f4641f697b5495dfe6" },
147522
- { key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1722069, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
147523
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1722142, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
147524
- { key: "assets/pdfDocument-DC7vQpq0.js", contentType: "application/javascript; charset=utf-8", offset: 3039176, length: 2858, sha256: "0eed7fd01c84816ac91459f223f770c06e614d5bf00ecc15c2e75372074a794d" },
147525
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3042034, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
147526
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3046644, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
147527
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3535228, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
147528
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3626152, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
147529
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3717136, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
147530
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3808116, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
147531
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 3898988, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
147532
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 3989968, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
147533
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4098604, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
147534
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4207688, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
147535
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4316736, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
147536
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4424436, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
147537
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4512544, length: 4947, sha256: "ba8ef2bfec69fc7aae1d8e26e0de3addd4ab818457dde425e7a07221667578aa" },
147538
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4517491, length: 17344, sha256: "d057298d75e7373e5e2c4d11b7d1bcbea88e03af555ba63d97641c78509c58e4" }
147524
+ { key: "assets/index-inRyaNS3.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1234921, sha256: "9dc616f8a40d24211d502568ecf217f23b6b0390523ddf7f08eb43b8b0664a62" },
147525
+ { key: "assets/pdf-BE0I2-C4.js", contentType: "application/javascript; charset=utf-8", offset: 1234929, length: 488199, sha256: "95b3eadf0b3e9e50bcc41d728ad734cc4df1737db717b2a0f305f1afaaefc869" },
147526
+ { key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1723128, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
147527
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1723201, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
147528
+ { key: "assets/pdfDocument-B6UZ6ras.js", contentType: "application/javascript; charset=utf-8", offset: 3040235, length: 2858, sha256: "4cea9a70944887fc2ac63db7894b92c2892afd9df2ffeaec7597614ffef9c3dc" },
147529
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3043093, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
147530
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3047703, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
147531
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3536287, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
147532
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3627211, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
147533
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3718195, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
147534
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3809175, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
147535
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 3900047, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
147536
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 3991027, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
147537
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4099663, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
147538
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4208747, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
147539
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4317795, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
147540
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4425495, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
147541
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4513603, length: 4947, sha256: "6fef2379e9e57f7a76f7486e3ef1d9b6dc7efc6b359ffbc0284898b5e73f6d3a" },
147542
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4518550, length: 17344, sha256: "d057298d75e7373e5e2c4d11b7d1bcbea88e03af555ba63d97641c78509c58e4" }
147539
147543
  ];
147540
147544
  }
147541
147545
  });
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1288.0",
3
+ "version": "0.1290.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": "bd42a46efc6acd928d281e34114e4264f6040b60689689d098b49ab3"
73
+ "falconPackageHash": "c97234dd8f725db70423ad2197125eccd1fbb0703bb9eec829de8bf7"
74
74
  }