@wix/himalaya-cli 0.1699.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/{e9b1906565f4cb8a676645db2d50a07fd96ce383e206e8a8b68bf611225479d6.bin → 8155555b873d0194a45cb1fdbd06855900b3943c888ffa129ed48a373a32eb46.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +45 -45
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -16198,7 +16198,6 @@ function webViewOriginAllowed(url, origins) {
|
|
|
16198
16198
|
}
|
|
16199
16199
|
var init_webview_origin = __esm({
|
|
16200
16200
|
"../../core/ts/src/webview-origin.ts"() {
|
|
16201
|
-
"use strict";
|
|
16202
16201
|
init_define_HHP_CATALOG();
|
|
16203
16202
|
}
|
|
16204
16203
|
});
|
|
@@ -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
|
|
233270
|
-
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'`;
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
233689
|
-
{ key: "assets/DevDrawer-
|
|
233690
|
-
{ key: "assets/IdiomCompare-
|
|
233691
|
-
{ key: "assets/LightboxViewer-
|
|
233692
|
-
{ key: "assets/OfflineReadingBar-
|
|
233693
|
-
{ key: "assets/PhonePreviewControl-
|
|
233694
|
-
{ key: "assets/SchemeCompare-
|
|
233695
|
-
{ 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" },
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
233707
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233708
|
-
{ key: "assets/pdf-
|
|
233709
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233710
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
233711
|
-
{ key: "assets/pdfDocument-
|
|
233712
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233713
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
233714
|
-
{ key: "assets/webviewBridgeHost-
|
|
233715
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
233716
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
233717
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
233718
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
233719
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
233720
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
233721
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
233722
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
233723
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
233724
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
233725
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
233726
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
233727
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
233728
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
233729
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
233730
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
233731
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
233732
|
-
{ 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" }
|
|
233733
233733
|
];
|
|
233734
233734
|
}
|
|
233735
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
|
}
|