@wix/himalaya-cli 0.1698.0 → 0.1700.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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{ab6f9bab7a27f9f93870fea2f2ab43e1fd6fa32bbe0299cf71515434f45fbb65.bin → 8155555b873d0194a45cb1fdbd06855900b3943c888ffa129ed48a373a32eb46.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +46 -44
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -31832,6 +31832,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
31832
31832
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
31833
31833
|
var init_idiom = __esm({
|
|
31834
31834
|
"../../core/ts/src/idiom.ts"() {
|
|
31835
|
+
"use strict";
|
|
31835
31836
|
init_define_HHP_CATALOG();
|
|
31836
31837
|
IDIOM_CONTEXTS = {
|
|
31837
31838
|
ios: { native: ["ios"] },
|
|
@@ -33654,6 +33655,7 @@ function shouldRevealError(args) {
|
|
|
33654
33655
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
33655
33656
|
var init_validation = __esm({
|
|
33656
33657
|
"../../core/ts/src/validation.ts"() {
|
|
33658
|
+
"use strict";
|
|
33657
33659
|
init_define_HHP_CATALOG();
|
|
33658
33660
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
33659
33661
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -233264,8 +233266,8 @@ function scriptNonce() {
|
|
|
233264
233266
|
crypto.getRandomValues(raw);
|
|
233265
233267
|
return btoa(String.fromCharCode(...raw));
|
|
233266
233268
|
}
|
|
233267
|
-
function previewCsp(nonce
|
|
233268
|
-
return `script-src 'self' 'nonce-${nonce}'
|
|
233269
|
+
function previewCsp(nonce) {
|
|
233270
|
+
return `script-src 'self' 'nonce-${nonce}' 'wasm-unsafe-eval'; base-uri 'self'; object-src 'none'`;
|
|
233269
233271
|
}
|
|
233270
233272
|
function inlineJson(value2) {
|
|
233271
233273
|
return JSON.stringify(value2).replace(/</g, "\\u003c");
|
|
@@ -233287,7 +233289,7 @@ function parserAssetRefs(html, nonce) {
|
|
|
233287
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>`;
|
|
233288
233290
|
});
|
|
233289
233291
|
}
|
|
233290
|
-
function indexHtml(asset, pathname, creds, handoverAttempted = false
|
|
233292
|
+
function indexHtml(asset, pathname, creds, handoverAttempted = false) {
|
|
233291
233293
|
void pathname;
|
|
233292
233294
|
const nonce = scriptNonce();
|
|
233293
233295
|
const raw = new TextDecoder().decode(assetBytes(asset));
|
|
@@ -233312,7 +233314,7 @@ function indexHtml(asset, pathname, creds, handoverAttempted = false, allowWasm
|
|
|
233312
233314
|
headers: {
|
|
233313
233315
|
"content-type": asset.contentType || "text/html; charset=utf-8",
|
|
233314
233316
|
"cache-control": creds || handoverAttempted ? "no-store" : "public, max-age=60, stale-while-revalidate=600",
|
|
233315
|
-
"content-security-policy": previewCsp(nonce
|
|
233317
|
+
"content-security-policy": previewCsp(nonce),
|
|
233316
233318
|
// This document's URL can name a credential: `?pvt=` (still accepted from an embedder such
|
|
233317
233319
|
// as the dashboard frame) or a `?h=` code before the inline script strips it. The browser
|
|
233318
233320
|
// default sends the FULL URL as `Referer` on same-origin requests, so every `/v1/*` read,
|
|
@@ -233328,7 +233330,7 @@ function previewResponse(pathname, assets, mount = "/preview", creds, handoverAt
|
|
|
233328
233330
|
if (key4 === "embed.json") return embedManifest(assets);
|
|
233329
233331
|
const hit = assets.get(key4);
|
|
233330
233332
|
if (hit) {
|
|
233331
|
-
if (key4 === "index.html") return indexHtml(hit, pathname, creds, handoverAttempted
|
|
233333
|
+
if (key4 === "index.html") return indexHtml(hit, pathname, creds, handoverAttempted);
|
|
233332
233334
|
if (key4 === "t5-frame.html" || key4 === "t5-worker-frame.html") {
|
|
233333
233335
|
return new Response(assetBytes(hit), {
|
|
233334
233336
|
status: 200,
|
|
@@ -233352,7 +233354,7 @@ function previewResponse(pathname, assets, mount = "/preview", creds, handoverAt
|
|
|
233352
233354
|
});
|
|
233353
233355
|
}
|
|
233354
233356
|
const index = assets.get("index.html");
|
|
233355
|
-
if (index) return indexHtml(index, pathname, creds, handoverAttempted
|
|
233357
|
+
if (index) return indexHtml(index, pathname, creds, handoverAttempted);
|
|
233356
233358
|
return new Response(JSON.stringify({ error: "preview_not_built" }), {
|
|
233357
233359
|
status: 503,
|
|
233358
233360
|
headers: { "content-type": "application/json; charset=utf-8" }
|
|
@@ -233683,51 +233685,51 @@ var init_preview_assets_generated = __esm({
|
|
|
233683
233685
|
init_define_HHP_CATALOG();
|
|
233684
233686
|
init_preview_assets_format();
|
|
233685
233687
|
PREVIEW_ASSET_MANIFEST = [
|
|
233686
|
-
{ key: "assets/DashboardHost-
|
|
233687
|
-
{ key: "assets/DevDrawer-
|
|
233688
|
-
{ key: "assets/IdiomCompare-
|
|
233689
|
-
{ key: "assets/LightboxViewer-
|
|
233690
|
-
{ key: "assets/OfflineReadingBar-
|
|
233691
|
-
{ key: "assets/PhonePreviewControl-
|
|
233692
|
-
{ key: "assets/SchemeCompare-
|
|
233693
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
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" },
|
|
233694
233696
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
233695
233697
|
{ key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
|
|
233696
|
-
{ key: "assets/catalogFontFaces-
|
|
233698
|
+
{ key: "assets/catalogFontFaces-DGwqfC_s.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "692fa4463db1583ff43f176945550948a9082181ec5ef48157b2a8a3c0a3b01f" },
|
|
233697
233699
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
233698
|
-
{ key: "assets/files-transfer-
|
|
233700
|
+
{ key: "assets/files-transfer-ChF1YnpU.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "6c1184169b75101032cabc318640ca510564e5fc6dad5fda507bcb90c1d68b91" },
|
|
233699
233701
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
233700
|
-
{ key: "assets/frogApiRules-
|
|
233702
|
+
{ key: "assets/frogApiRules-BKCgYNF_.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "306d9c4cb2db3014c19979de8192f297d20f1516f0a154b4d7d5c34e1f6fa7af" },
|
|
233701
233703
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
233702
233704
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
233703
233705
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
233704
|
-
{ key: "assets/index-
|
|
233705
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233706
|
-
{ key: "assets/pdf-
|
|
233707
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233708
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
233709
|
-
{ key: "assets/pdfDocument-
|
|
233710
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233711
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
233712
|
-
{ key: "assets/webviewBridgeHost-
|
|
233713
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
233714
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
233715
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
233716
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
233717
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
233718
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
233719
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
233720
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
233721
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
233722
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
233723
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
233724
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
233725
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233726
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
233727
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
233728
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
233729
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
233730
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
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" }
|
|
233731
233733
|
];
|
|
233732
233734
|
}
|
|
233733
233735
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1700.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": "
|
|
84
|
+
"falconPackageHash": "836e3ad41dda397042f6f4d7951a32e520bfaac1758fae01e781ca02"
|
|
85
85
|
}
|