@wix/himalaya-cli 0.1699.0 → 0.1701.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 CHANGED
@@ -31833,7 +31833,6 @@ function resolveIdiom(tokens2, ctx = {}) {
31833
31833
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
31834
31834
  var init_idiom = __esm({
31835
31835
  "../../core/ts/src/idiom.ts"() {
31836
- "use strict";
31837
31836
  init_define_HHP_CATALOG();
31838
31837
  IDIOM_CONTEXTS = {
31839
31838
  ios: { native: ["ios"] },
@@ -33656,6 +33655,7 @@ function shouldRevealError(args) {
33656
33655
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
33657
33656
  var init_validation = __esm({
33658
33657
  "../../core/ts/src/validation.ts"() {
33658
+ "use strict";
33659
33659
  init_define_HHP_CATALOG();
33660
33660
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
33661
33661
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -233266,8 +233266,8 @@ function scriptNonce() {
233266
233266
  crypto.getRandomValues(raw);
233267
233267
  return btoa(String.fromCharCode(...raw));
233268
233268
  }
233269
- function previewCsp(nonce, allowWasm = false) {
233270
- return `script-src 'self' 'nonce-${nonce}'${allowWasm ? " 'wasm-unsafe-eval'" : ""}; base-uri 'self'; object-src 'none'`;
233269
+ function previewCsp(nonce) {
233270
+ return `script-src 'self' 'nonce-${nonce}' 'wasm-unsafe-eval'; base-uri 'self'; object-src 'none'`;
233271
233271
  }
233272
233272
  function inlineJson(value2) {
233273
233273
  return JSON.stringify(value2).replace(/</g, "\\u003c");
@@ -233289,7 +233289,7 @@ function parserAssetRefs(html, nonce) {
233289
233289
  return `<script nonce="${nonce}">document.write(${js2(tag.slice(0, start))}+new URL(${js2(ref)},document.baseURI).href+${js2(tag.slice(start + ref.length))})</script>`;
233290
233290
  });
233291
233291
  }
233292
- function indexHtml(asset, pathname, creds, handoverAttempted = false, allowWasm = false) {
233292
+ function indexHtml(asset, pathname, creds, handoverAttempted = false) {
233293
233293
  void pathname;
233294
233294
  const nonce = scriptNonce();
233295
233295
  const raw = new TextDecoder().decode(assetBytes(asset));
@@ -233314,7 +233314,7 @@ function indexHtml(asset, pathname, creds, handoverAttempted = false, allowWasm
233314
233314
  headers: {
233315
233315
  "content-type": asset.contentType || "text/html; charset=utf-8",
233316
233316
  "cache-control": creds || handoverAttempted ? "no-store" : "public, max-age=60, stale-while-revalidate=600",
233317
- "content-security-policy": previewCsp(nonce, allowWasm),
233317
+ "content-security-policy": previewCsp(nonce),
233318
233318
  // This document's URL can name a credential: `?pvt=` (still accepted from an embedder such
233319
233319
  // as the dashboard frame) or a `?h=` code before the inline script strips it. The browser
233320
233320
  // default sends the FULL URL as `Referer` on same-origin requests, so every `/v1/*` read,
@@ -233330,7 +233330,7 @@ function previewResponse(pathname, assets, mount = "/preview", creds, handoverAt
233330
233330
  if (key4 === "embed.json") return embedManifest(assets);
233331
233331
  const hit = assets.get(key4);
233332
233332
  if (hit) {
233333
- if (key4 === "index.html") return indexHtml(hit, pathname, creds, handoverAttempted, [...assets.keys()].some((key5) => /(?:^|\/)rive[^/]*\.wasm$/.test(key5)));
233333
+ if (key4 === "index.html") return indexHtml(hit, pathname, creds, handoverAttempted);
233334
233334
  if (key4 === "t5-frame.html" || key4 === "t5-worker-frame.html") {
233335
233335
  return new Response(assetBytes(hit), {
233336
233336
  status: 200,
@@ -233354,7 +233354,7 @@ function previewResponse(pathname, assets, mount = "/preview", creds, handoverAt
233354
233354
  });
233355
233355
  }
233356
233356
  const index = assets.get("index.html");
233357
- if (index) return indexHtml(index, pathname, creds, handoverAttempted, [...assets.keys()].some((key5) => /(?:^|\/)rive[^/]*\.wasm$/.test(key5)));
233357
+ if (index) return indexHtml(index, pathname, creds, handoverAttempted);
233358
233358
  return new Response(JSON.stringify({ error: "preview_not_built" }), {
233359
233359
  status: 503,
233360
233360
  headers: { "content-type": "application/json; charset=utf-8" }
@@ -233685,51 +233685,51 @@ var init_preview_assets_generated = __esm({
233685
233685
  init_define_HHP_CATALOG();
233686
233686
  init_preview_assets_format();
233687
233687
  PREVIEW_ASSET_MANIFEST = [
233688
- { key: "assets/DashboardHost-CL1ZVeP9.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "dd04e2848d4dde95ef70721385bcc188bdb6e93f46061b4e8a5e9bfb738d1667" },
233689
- { key: "assets/DevDrawer-CKaE4GBl.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "6443cf7fe2e682da82db1529f4ba394d01ba279eb5981a9c386c97e8dd0d9a65" },
233690
- { key: "assets/IdiomCompare-CFBaGj85.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "caac69a5f6ca1194630d7c0ed1ca62857ba093a885dfba73de9f78cd3a4707a4" },
233691
- { key: "assets/LightboxViewer-WuFNIyBs.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "52d58968552253f5ef253baa579c5b6021c832b9a82b0a495288fd943f5fcf9c" },
233692
- { key: "assets/OfflineReadingBar-CCfSUDJv.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "90ab0db6a27bb9a4bb0145b67476b6e5d4561e855495b339e24dfbf108e64cef" },
233693
- { key: "assets/PhonePreviewControl-CdKgCnBl.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "be0a9babe9ec3d1f30d6ef2c44fd68f375e730ed30832f58589eebcb9562d20d" },
233694
- { key: "assets/SchemeCompare-BnuT9jyv.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "bd55faa857ac1464d3df91e6be9c0b68c0fafbfe5d60333350ca27606a3b0e2e" },
233695
- { key: "assets/WixFrogTelemetrySink-C296zJ2F.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "b693604f92e5658c2221166736b71187cb77f4e6ad5fd459dfda0d7943c2e75d" },
233688
+ { key: "assets/DashboardHost-Cww4-3T9.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "990a702158a6a3b4f9deba6d856461e4510c5f42e3b08377680b2d83c1a671e5" },
233689
+ { key: "assets/DevDrawer-jtS0SiKA.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "4cc1902acc8f5b0b39c6357670ad00be00c8ea428d9b59f5ffa9772717285dab" },
233690
+ { key: "assets/IdiomCompare-_pIWzfoK.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "c9dbb290320d471ecfe5bdab1b67633da80a58f53cd2343c71d445272f8b66c4" },
233691
+ { key: "assets/LightboxViewer-Ca373Gn3.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "7424d11dae7c6ce06e34d4f6d0386d1a6a169cdf8bc95d03bee5d484f8fb4aff" },
233692
+ { key: "assets/OfflineReadingBar-Dub3ADY3.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "be31421e1a4c3722ba44ccd59af02a7b993050f9f2c946ca93e5f8e7001e3786" },
233693
+ { key: "assets/PhonePreviewControl-C6O4xO1l.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "2744dcf5ae9a48cd7156421dc1d323a8b55285268cf0ce57edab8aa32e79b522" },
233694
+ { key: "assets/SchemeCompare-DniFiOiW.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "c4dad96aaa16985c14f752fdb297eb3975764a6f6ed754c91cbcc50668c135fe" },
233695
+ { key: "assets/WixFrogTelemetrySink-CK6JhRge.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "edee06a467eaf7165cb84d67be289df5ad7e1ac2a0f5ead8e829d4788344e0b5" },
233696
233696
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
233697
233697
  { key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
233698
- { key: "assets/catalogFontFaces-BakUz_0q.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "f20bc46a93fae3e3eb4f226c2d2fe16a12a25065a0d12e64c846c6ef4963883d" },
233698
+ { key: "assets/catalogFontFaces-DGwqfC_s.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "692fa4463db1583ff43f176945550948a9082181ec5ef48157b2a8a3c0a3b01f" },
233699
233699
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
233700
- { key: "assets/files-transfer-Bm9Ez7Qb.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "e414761f4a624655e4529324305c2e85cd59efbb4ffc43e12fb36dcd8b69293e" },
233700
+ { key: "assets/files-transfer-ChF1YnpU.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "6c1184169b75101032cabc318640ca510564e5fc6dad5fda507bcb90c1d68b91" },
233701
233701
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
233702
- { key: "assets/frogApiRules-BdkXoFJX.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "1a5564806cfa4d7e547fc10044695e69c307a62596ff71e1f4c4621e0efb0115" },
233702
+ { key: "assets/frogApiRules-BKCgYNF_.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "306d9c4cb2db3014c19979de8192f297d20f1516f0a154b4d7d5c34e1f6fa7af" },
233703
233703
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
233704
233704
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
233705
233705
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
233706
- { key: "assets/index-_-LaHvup.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1579321, sha256: "500b95e004bf95020e8e898dfb4c9709b3e2c8fe4522aade23268454491bf5d7" },
233707
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1715365, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
233708
- { key: "assets/pdf-CcYPJkiO.js", contentType: "application/javascript; charset=utf-8", offset: 1723116, length: 488215, sha256: "e9b1906565f4cb8a676645db2d50a07fd96ce383e206e8a8b68bf611225479d6" },
233709
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2211331, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
233710
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2211421, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
233711
- { key: "assets/pdfDocument-ND0YJr3w.js", contentType: "application/javascript; charset=utf-8", offset: 3528455, length: 3470, sha256: "adb665991412886977cd4077e02c5c43600bce5796c81cbd3ebe345e6d3ed069" },
233712
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3531925, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
233713
- { key: "assets/scrollLinkedRuntime-DgqEE2Vs.js", contentType: "application/javascript; charset=utf-8", offset: 3534191, length: 2278, sha256: "d0f2018200cc21e7657784177168b72a2f5eda9af85ab4c9c27ff6c8452dd25a" },
233714
- { key: "assets/webviewBridgeHost-ClTBrNq0.js", contentType: "application/javascript; charset=utf-8", offset: 3536469, length: 9889, sha256: "1bd77ca6647699b7b8f3e77bef6c2118b4222f0205d184272fc66497fbc89736" },
233715
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3546358, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
233716
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3550968, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
233717
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4039552, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
233718
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4130476, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
233719
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4221460, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
233720
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4312440, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
233721
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4403312, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
233722
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4494292, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
233723
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4602928, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
233724
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4712012, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
233725
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4821060, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
233726
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4928760, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
233727
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5016868, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
233728
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5023686, length: 4924, sha256: "46d71f0b3291a2754762709ba0f29739df0c0818808c0f0363710ad6d1eae100" },
233729
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5028610, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
233730
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5040067, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
233731
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5041238, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
233732
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5064285, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
233706
+ { key: "assets/index-BabHKMNE.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1579510, sha256: "b36acff959fc1892b808f232a31ae290b3ece44eada3a8674596f42fb5702179" },
233707
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1715554, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
233708
+ { key: "assets/pdf-K68HGbzk.js", contentType: "application/javascript; charset=utf-8", offset: 1723305, length: 488215, sha256: "8155555b873d0194a45cb1fdbd06855900b3943c888ffa129ed48a373a32eb46" },
233709
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2211520, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
233710
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2211610, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
233711
+ { key: "assets/pdfDocument-BCILsKox.js", contentType: "application/javascript; charset=utf-8", offset: 3528644, length: 3470, sha256: "b90f877fe3b9231571d6862ea81e5cc5b444bbe0f7457fc852591fa3a14e34ae" },
233712
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3532114, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
233713
+ { key: "assets/scrollLinkedRuntime-CWEl5Es4.js", contentType: "application/javascript; charset=utf-8", offset: 3534380, length: 2278, sha256: "094749e6859dad51e4afb4a71fd30cfe305224bddbfa70adcbb48883b129909a" },
233714
+ { key: "assets/webviewBridgeHost-B29nQ47t.js", contentType: "application/javascript; charset=utf-8", offset: 3536658, length: 9889, sha256: "3e6881c6f75212a525ad17b65ce7bd3770d1019612f1f0fdb57cda02399dcdbd" },
233715
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3546547, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
233716
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3551157, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
233717
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4039741, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
233718
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4130665, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
233719
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4221649, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
233720
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4312629, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
233721
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4403501, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
233722
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4494481, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
233723
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4603117, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
233724
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4712201, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
233725
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4821249, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
233726
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4928949, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
233727
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5017057, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
233728
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5023875, length: 4924, sha256: "bb1cba940aa248fffb19ecd64405f427e2a2303d643be88c2af87f5703eb94cf" },
233729
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5028799, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
233730
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5040256, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
233731
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5041427, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
233732
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5064474, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
233733
233733
  ];
233734
233734
  }
233735
233735
  });
Binary file
@@ -370,7 +370,8 @@ a single dial metric. *Use a `Badge` for a count, a `Tag` for a category — the
370
370
  **Media** — `Image` (`fillWidth`, `height`, always `contentDescription`); `Video`/`Lottie`/`Rive` for
371
371
  motion media; `Map` for location; `Avatar` for a person; `QrCode` to share a link, ticket or invite
372
372
  as a code generated on the device (bind `valuePath`; keep the payload short, since a literal over the
373
- level's capacity fails validation); `WebView` only when native can't express it.
373
+ level's capacity fails validation); `WebView` only when native can't express it. For a page of the
374
+ customer's own website, use `sitePage(site, { path })` (see §4), not a hand-built `WebView`.
374
375
  *Fill-width media gets a `cornerRadius` so it doesn't fight the card edges.*
375
376
  Images preview by default: a tap opens one full screen and pages through the screen's other images.
376
377
  Opt out with `modifiers.imagePreview: "off"` on an image or subtree that should not open; use `"view"`
@@ -396,6 +397,7 @@ Concrete patterns lifted from real usage:
396
397
  - **A screen that owns its top bar (search beside back)** — set `topBar: { leading: "none" }` and put the row in `stickyHeader`: `hstack([ iconButton({ icon: "arrow_left", accessibilityLabel: "Back", action: { actionId: "nav.back", presentation: "back" } }), withModifiers(textField({ placeholder: "Search", … }), { weight: 1 }) ])`. With **both** set, every shell draws no bar and no back control of its own (iOS hides the system bar, Android floats no chevron and reserves no band, web hides its bar on every look), so the row is the only top bar. `leading: "none"` without a `stickyHeader` keeps the bar's title and trailing actions but drops the back control (and the hamburger, for that screen). System back — hardware, gesture, edge swipe, browser — still pops. Any other `leading` value keeps today's chrome; demo: `gallery_search_topbar`, linked from the gallery's "Lists & data".
397
398
  - **Cell list** — one `Section` with `inset: true` and a `header`, its children the `ListItem` cells; the cells own their own dividers and padding. A schedule, a service menu and a session list are this shape too, not a `Card` around each item.
398
399
  - **Photo tile** — `vstack({ spacing: 6, alignment: "leading", children: [ image({ url, fillWidth: true, aspectRatio: 0.8, contentMode: "fill", placeholder: "surfaceSecondary", contentDescription }) + cornerRadius 8, text(name, "body"), text(price, "callout", { color: "textSecondary" }) ] })` with `modifiers.onTap` on the stack, inside `grid({ columns: 2, columnsMedium: 3, columnsExpanded: 4, spacing: 12 })`. A shelf is the same tile at a fixed `width` (about 110) in `lazyList({ horizontal: true, spacing: 12 })`.
400
+ - **A website page with native UI around it** — `vstack({ children: [ header, sitePage(site, { path: "/book-online" }), stickyBar ] })`, where `site` is the app's `site` block (a `SiteShellConfig`) and `sitePage` comes from `@wix/himalaya/sdui`. It emits a `WebView` with `role: "primary"`, `fill`, its own scrolling, `modifiers.weight: 1` and the site preset as its config (the same URL and behaviour a site-shell tab gets; `webView: { … }` overrides it). `title` becomes the page's accessible name (`modifiers.accessibilityLabel`, which every `WebView` needs); without one the site's host is used. The weight gives the page only the height the header and bar leave. Put it at the screen root or directly in a root `VStack`, `HStack` or `ZStack`, and use one per screen. The validator rejects it inside a `LazyList`, `Pager`, `Carousel` or `CollapsingHeader`, or with its weight removed. To serve a whole site-shell app in this form, use `siteScreens(site, { form: "node" })`; `desugarSiteScreen(descriptor)` converts one Tier-3 site screen.
399
401
  - **Overlay** — `zstack({ alignment: "center", children: [ backdropImage(cornerRadius 12), withModifiers(label, { padding, background: { token: "accentPrimary" }, cornerRadius: 10 }) ] })`.
400
402
  - **Responsive** — `grid({ columns: 1, columnsMedium: 2, spacing: 12 })` for wide cards, 1-up on phone / 2-up on tablet (photo tiles start at 2 on a phone); `splitView({ primary, detail, primaryMaxWidth: 280 })` for master/detail that stacks on a phone; set `contentMaxWidth` in tokens so wide surfaces keep a readable column instead of running edge-to-edge.
401
403
  - **Centered separator, not a flanked divider** — the classic "—— or ——" needs each `divider()` to take equal remaining width, and the HStack row-share only kicks in for controls with an intrinsic fill. **A bare `divider()` inside an HStack is a column separator, not a flanking line**: iOS, macOS, Android, web and React Native all draw it as a thin vertical rule the height of the row that takes no share of the width, which is right for a stats row (`12 | 340 | 87`) and wrong for "—— or ——". For "—— or ——", use a **centered caption**: `hstack({ children: [spacer(), text("or continue with", "caption", { color: "textSecondary" }), spacer()] })`, optionally over a single full-width `divider()`.
@@ -237,6 +237,8 @@ The map comes from what the analysis already reads without owner credentials, be
237
237
  - **Size:** at most 10 pages, with titles capped at 40 characters.
238
238
  - **Chrome:** the site's own header, footer and Wix ads are hidden (the site shell's default).
239
239
 
240
+ Each page becomes a Tier-3 WebView screen today (`siteScreens(site)` in `@wix/himalaya/core`). A second form of the same pages exists: `siteScreens(site, { form: "node" })` serves each one as an SDUI screen whose root is the page as a primary `WebView` node, and `sitePage(site, { path })` (`@wix/himalaya/sdui`) puts one page on a screen beside native UI. The default stays the Tier-3 form, because an app binary built before site-page nodes would draw the node form as a plain embedded WebView. See [Designing Himi screens → a website page with native UI around it](designing-himi-screens.md#4-layout-idioms-recipes-that-read-well).
241
+
240
242
  The block is validated with the shell's own rules before it is written. Only a site shell ever receives it: the analysis leaves it out for any other `--shell`, and the merge drops it for a shell whose committed contract has no `site`. `--apply --shell brandy` without a `site` block in the overlay is refused, because baking would ship the shell's demo site under the customer's brand.
241
243
 
242
244
  When the analysis recognized at least one vertical, `--apply` also patches the shell's baked home
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1699.0",
3
+ "version": "0.1701.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "8d621477be8aac15d733186a16d4a0609c1727d31019847f143e416a"
84
+ "falconPackageHash": "fda19cb089410f3bae29e77e97d4d3448d08182e4d7c25fed03b7754"
85
85
  }