@wix/himalaya-cli 0.1604.0 → 0.1606.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
@@ -15065,7 +15065,6 @@ function webViewOriginAllowed(url, origins) {
15065
15065
  }
15066
15066
  var init_webview_origin = __esm({
15067
15067
  "../../core/ts/src/webview-origin.ts"() {
15068
- "use strict";
15069
15068
  init_define_HHP_CATALOG();
15070
15069
  }
15071
15070
  });
@@ -183404,12 +183403,23 @@ function previewCredentialsJs(creds) {
183404
183403
  function stripHandoverParamJs() {
183405
183404
  return '(function(){window.__himalayaHandoverFailed__=true;try{var u=new URL(location.href);if(u.searchParams.has("h")){u.searchParams.delete("h");history.replaceState(null,"",u.pathname+u.search+u.hash)}}catch(e){}})();';
183406
183405
  }
183406
+ function parserAssetRefs(html, nonce) {
183407
+ const js2 = (s2) => JSON.stringify(s2).replace(/</g, "\\u003c");
183408
+ return html.replace(/<script\b[^>]*>\s*<\/script>|<link\b[^>]*>/gi, (tag) => {
183409
+ const attr3 = /\b(?:src|href)=(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(tag);
183410
+ if (!attr3) return tag;
183411
+ const ref = attr3[1] ?? attr3[2] ?? attr3[3];
183412
+ if (!/^(?:\.\/)?assets\//.test(ref)) return tag;
183413
+ const start = attr3.index + attr3[0].indexOf(ref);
183414
+ 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>`;
183415
+ });
183416
+ }
183407
183417
  function indexHtml(asset, pathname, creds, handoverAttempted = false, allowWasm = false) {
183408
183418
  void pathname;
183409
183419
  const nonce = scriptNonce();
183410
183420
  const raw = new TextDecoder().decode(assetBytes(asset));
183411
183421
  const head3 = `<script nonce="${nonce}">${PREVIEW_BASE_JS}</script><script nonce="${nonce}">${PREVIEW_ENTRY_RECOVERY_JS}</script>` + (creds ? `<script nonce="${nonce}">${previewCredentialsJs(creds)}</script>` : handoverAttempted ? `<script nonce="${nonce}">${stripHandoverParamJs()}</script>` : "");
183412
- const html = raw.replace(/(=|url\()(["']?)\/preview\//g, "$1$2").replace(/<head(\s[^>]*)?>/i, (tag) => `${tag}${head3}`);
183422
+ const html = parserAssetRefs(raw.replace(/(=|url\()(["']?)\/preview\//g, "$1$2"), nonce).replace(/<head(\s[^>]*)?>/i, (tag) => `${tag}${head3}`);
183413
183423
  return new Response(html, {
183414
183424
  status: 200,
183415
183425
  // The shell only changes on an artifact deploy, and everything it loads is
@@ -183800,44 +183810,44 @@ var init_preview_assets_generated = __esm({
183800
183810
  init_define_HHP_CATALOG();
183801
183811
  init_preview_assets_format();
183802
183812
  PREVIEW_ASSET_MANIFEST = [
183803
- { key: "assets/DashboardHost-CEBpBObS.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2971, sha256: "194b736fc9a86ba8276d269811ca790ed52b229b47c4555fb63cb2198af53f48" },
183804
- { key: "assets/DevDrawer-uzQCfqE2.js", contentType: "application/javascript; charset=utf-8", offset: 2979, length: 16783, sha256: "03bc464dbd479b715f4f08217753f5eafb6726c3421d7c460f2bc425bae4eec9" },
183805
- { key: "assets/IdiomCompare-DyYGHizT.js", contentType: "application/javascript; charset=utf-8", offset: 19762, length: 1926, sha256: "e2ad46f7e9daa653da190162d17c3c613c4647e67f381c1d291bc688d0e5d406" },
183806
- { key: "assets/LightboxViewer-DWzwOzwg.js", contentType: "application/javascript; charset=utf-8", offset: 21688, length: 8171, sha256: "6492fd20cfc48db80b58d9725ac92558adc6a84fc038d1bab360f25b0331fcd2" },
183807
- { key: "assets/OfflineReadingBar-DVNFthXe.js", contentType: "application/javascript; charset=utf-8", offset: 29859, length: 1707, sha256: "50a5764fab00aca9e1b0af6551cd635f94d8dc26199492bd82ae29d1b7286955" },
183808
- { key: "assets/PhonePreviewControl-35dJ1iZb.js", contentType: "application/javascript; charset=utf-8", offset: 31566, length: 37768, sha256: "80ff868a49a490811753d4d12ba0b390142ff6b5ddc266947e8cfadbcd86854d" },
183809
- { key: "assets/SchemeCompare-CQznjOL6.js", contentType: "application/javascript; charset=utf-8", offset: 69334, length: 1858, sha256: "4540c9568c814bbc5521b7337e4841c16d48c0244ba2cb2b1bd88ef32cd45b32" },
183810
- { key: "assets/WixFrogTelemetrySink-CGDOaFQw.js", contentType: "application/javascript; charset=utf-8", offset: 71192, length: 3165, sha256: "211ade53145b59b513bd269b904e25b03134c604d394c9c69896fcb1439705e1" },
183813
+ { key: "assets/DashboardHost-CJ5nUJvd.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2971, sha256: "2c79a4e0eebd2818290eddc68977b66f8b9c002ef5394da129b0c39c2241b146" },
183814
+ { key: "assets/DevDrawer-D5vDBKOO.js", contentType: "application/javascript; charset=utf-8", offset: 2979, length: 16783, sha256: "cc7bea1bba3b1ca0b289ad2ba1f6cf707c9cb8b7b3793cd688d4f13b438161b0" },
183815
+ { key: "assets/IdiomCompare-B_JqFhqI.js", contentType: "application/javascript; charset=utf-8", offset: 19762, length: 1926, sha256: "9a67e56e8be14212317c37ddbad01f45abc8d067035d36a7ac09ea9b18ed66a8" },
183816
+ { key: "assets/LightboxViewer-DMmNCE-4.js", contentType: "application/javascript; charset=utf-8", offset: 21688, length: 8171, sha256: "741d887005f4ca57fb4eaf6d888928ac88e55c6c75822511e91d27696d697905" },
183817
+ { key: "assets/OfflineReadingBar-B9oxjdFO.js", contentType: "application/javascript; charset=utf-8", offset: 29859, length: 1707, sha256: "29f6dcfe9ce5ca8895179480704a0c179f4bbdbe3450965acb7cda2c0fbb82e6" },
183818
+ { key: "assets/PhonePreviewControl-C9x15i_a.js", contentType: "application/javascript; charset=utf-8", offset: 31566, length: 37768, sha256: "e4b919af05e8d6af965680b1bde5d22742075eef94b099a0c3cf7442fda1cb0d" },
183819
+ { key: "assets/SchemeCompare-BF1gYB8o.js", contentType: "application/javascript; charset=utf-8", offset: 69334, length: 1858, sha256: "4338755b3c59a46715e28829f95bfa14d9c5c0671c98fc993777d78de97fdd8a" },
183820
+ { key: "assets/WixFrogTelemetrySink-LsIa2qSg.js", contentType: "application/javascript; charset=utf-8", offset: 71192, length: 3165, sha256: "f20c33c7d781b52b677758aa9eab6b928a9c97265ddba5fcbd126116f792f5ed" },
183811
183821
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 74357, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
183812
- { key: "assets/files-transfer-DrDuPSUh.js", contentType: "application/javascript; charset=utf-8", offset: 76549, length: 6446, sha256: "c6b0b85dfd90a86ed4989040cdfaff30fe169bb91cb52928e13d8e916f95674a" },
183822
+ { key: "assets/files-transfer-DdfDiTU7.js", contentType: "application/javascript; charset=utf-8", offset: 76549, length: 6446, sha256: "71bc00e35b4e995994e4cb611cb8dd9736b78596f6fa3f6f2bf0dcd0b851ec0b" },
183813
183823
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 82995, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
183814
183824
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 89573, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
183815
- { key: "assets/index-hchXMFoQ.js", contentType: "application/javascript; charset=utf-8", offset: 92277, length: 1494691, sha256: "20e599aca1ae4eaad4be69b096f64f856c626a41e22f534fb618a40e1520e895" },
183816
- { key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset: 1586968, length: 7624, sha256: "29dfba5b56f79a0b84d6b04d84d87617454baeba03c225f682ab2ab7ae2d5016" },
183817
- { key: "assets/pdf-DR3F_KpR.js", contentType: "application/javascript; charset=utf-8", offset: 1594592, length: 488199, sha256: "21fe5e373cd532459a97c7b22676de3f119b7faf63c946598f34154668846daa" },
183818
- { key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 2082791, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
183819
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2082864, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
183820
- { key: "assets/pdfDocument-DfO2lYMs.js", contentType: "application/javascript; charset=utf-8", offset: 3399898, length: 3453, sha256: "9450272aabf00ce5c5457a524542730b0b1a170a767a7448ee491f1c6e8bac36" },
183821
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3403351, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
183822
- { key: "assets/webviewBridgeHost-CCdXyNs2.js", contentType: "application/javascript; charset=utf-8", offset: 3405617, length: 9888, sha256: "760042ac8ef57833ebce2abe3ec1370b3ce08eece817694ef5573f107222bfc6" },
183823
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3415505, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
183824
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3420115, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
183825
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3908699, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
183826
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3999623, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
183827
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4090607, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
183828
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4181587, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
183829
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4272459, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
183830
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4363439, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
183831
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4472075, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
183832
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4581159, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
183833
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4690207, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
183834
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4797907, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
183835
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4886015, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
183836
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4892833, length: 5037, sha256: "7f402c56168cb2a6b7e9ac9058e0e3d3c8b61f663e6918f161ba01b0aba62c4c" },
183837
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4897870, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
183838
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4909327, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
183839
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4910498, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
183840
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 4933545, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
183825
+ { key: "assets/index-O9hDihry.js", contentType: "application/javascript; charset=utf-8", offset: 92277, length: 1495275, sha256: "65d5fb61d736220dffb2e31aa4eabbef963d5799fc346b8eeb11a53343071ea0" },
183826
+ { key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset: 1587552, length: 7624, sha256: "29dfba5b56f79a0b84d6b04d84d87617454baeba03c225f682ab2ab7ae2d5016" },
183827
+ { key: "assets/pdf-VfhzBa6N.js", contentType: "application/javascript; charset=utf-8", offset: 1595176, length: 488215, sha256: "cef689a3d399e3c071f78bd48d66724f0564ea2614683378d74c2f6a6477e0d3" },
183828
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2083391, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
183829
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2083481, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
183830
+ { key: "assets/pdfDocument-DNqUWMY0.js", contentType: "application/javascript; charset=utf-8", offset: 3400515, length: 3470, sha256: "285ae36db1d3af09cae93108278a83e2388d104aeb1317717ab0b223bac6e737" },
183831
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3403985, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
183832
+ { key: "assets/webviewBridgeHost-DBpkiSiL.js", contentType: "application/javascript; charset=utf-8", offset: 3406251, length: 9888, sha256: "08c093827a52bdfc381ba0a73dc7a5d5ac6681637db4a8b57ab00aa0e4ab3f1f" },
183833
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3416139, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
183834
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3420749, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
183835
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3909333, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
183836
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4000257, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
183837
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4091241, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
183838
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4182221, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
183839
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4273093, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
183840
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4364073, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
183841
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4472709, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
183842
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4581793, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
183843
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4690841, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
183844
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4798541, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
183845
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4886649, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
183846
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4893467, length: 4924, sha256: "b314df7501aac4f7ef691f44e29e5bfa323924474d3e0d1fc566f7a2003a9e76" },
183847
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4898391, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
183848
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4909848, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
183849
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4911019, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
183850
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 4934066, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
183841
183851
  ];
183842
183852
  }
183843
183853
  });
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1604.0",
3
+ "version": "0.1606.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": [
@@ -72,5 +72,5 @@
72
72
  "artifactId": "himalaya-cli"
73
73
  }
74
74
  },
75
- "falconPackageHash": "d9895ee47dde266d1046d74260972f2c9428e600431befd9b0e4ddc6"
75
+ "falconPackageHash": "d39364e0b5bb8ee230970f6ee80476f872e1b56e4cccfe4d76dbc4c3"
76
76
  }