@wix/himalaya-cli 0.1687.0 → 0.1688.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
@@ -16194,7 +16194,6 @@ function webViewOriginAllowed(url, origins) {
16194
16194
  }
16195
16195
  var init_webview_origin = __esm({
16196
16196
  "../../core/ts/src/webview-origin.ts"() {
16197
- "use strict";
16198
16197
  init_define_HHP_CATALOG();
16199
16198
  }
16200
16199
  });
@@ -24837,6 +24836,17 @@ var init_hhp_command = __esm({
24837
24836
  });
24838
24837
 
24839
24838
  // src/hhp.ts
24839
+ var hhp_exports = {};
24840
+ __export(hhp_exports, {
24841
+ compileContentHhp: () => compileContentHhp,
24842
+ fidelityThresholds: () => fidelityThresholds,
24843
+ hhpEditorSettings: () => hhpEditorSettings,
24844
+ initHhpScreen: () => initHhpScreen,
24845
+ localPath: () => localPath,
24846
+ managedRegistry: () => managedRegistry,
24847
+ profileForContent: () => profileForContent,
24848
+ readHhpManifest: () => readHhpManifest
24849
+ });
24840
24850
  import { existsSync as existsSync21, readFileSync as readFileSync22, writeFileSync as writeFileSync12, mkdirSync as mkdirSync14, renameSync as renameSync6, rmSync as rmSync8, lstatSync as lstatSync10, readdirSync as readdirSync15 } from "node:fs";
24841
24851
  import { basename as basename8, dirname as dirname17, resolve as resolve22, relative as relative7, sep as sep10, join as join17 } from "node:path";
24842
24852
  import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
@@ -31719,6 +31729,7 @@ function resolveIdiom(tokens2, ctx = {}) {
31719
31729
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
31720
31730
  var init_idiom = __esm({
31721
31731
  "../../core/ts/src/idiom.ts"() {
31732
+ "use strict";
31722
31733
  init_define_HHP_CATALOG();
31723
31734
  IDIOM_CONTEXTS = {
31724
31735
  ios: { native: ["ios"] },
@@ -33541,7 +33552,6 @@ function shouldRevealError(args) {
33541
33552
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
33542
33553
  var init_validation = __esm({
33543
33554
  "../../core/ts/src/validation.ts"() {
33544
- "use strict";
33545
33555
  init_define_HHP_CATALOG();
33546
33556
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
33547
33557
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -139230,6 +139240,8 @@ __export(src_exports2, {
139230
139240
  useBoundValue: () => useBoundValue,
139231
139241
  useImageSource: () => useImageSource,
139232
139242
  videoObjectFit: () => videoObjectFit,
139243
+ webViewOriginAllowed: () => webViewOriginAllowed,
139244
+ webViewWebConfig: () => webViewWebConfig,
139233
139245
  webviewFrameSandbox: () => webviewFrameSandbox,
139234
139246
  withAssetPin: () => withAssetPin
139235
139247
  });
@@ -166545,6 +166557,10 @@ var init_studio_reel = __esm({
166545
166557
  });
166546
166558
 
166547
166559
  // src/home-screen-id.ts
166560
+ var home_screen_id_exports = {};
166561
+ __export(home_screen_id_exports, {
166562
+ homeScreenIdOf: () => homeScreenIdOf
166563
+ });
166548
166564
  import { readFileSync as readFileSync62 } from "node:fs";
166549
166565
  import { join as join49 } from "node:path";
166550
166566
  function homeScreenIdOf(dir) {
@@ -233404,51 +233420,51 @@ var init_preview_assets_generated = __esm({
233404
233420
  init_define_HHP_CATALOG();
233405
233421
  init_preview_assets_format();
233406
233422
  PREVIEW_ASSET_MANIFEST = [
233407
- { key: "assets/DashboardHost-v9fmv0Et.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "15026004c8c4552639d3754548396dd9e40f5fc1a05f1f75c3101e7bebd8de34" },
233408
- { key: "assets/DevDrawer-DcyqtjWE.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "5a030aa2bc58091486d51092a82bd8dd2bc362c80d6bb620abb9393adece22ed" },
233409
- { key: "assets/IdiomCompare-pFhSIGdT.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "481094dcddad65310c34033fb1dc34c3a5cfa68285df3389c8b685b497106d0a" },
233410
- { key: "assets/LightboxViewer-CqyTJ1gZ.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "fbe88897c52328683ae45b5c89b7dc878865db75240a5d5a9b612d9375394895" },
233411
- { key: "assets/OfflineReadingBar-BwR3446W.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "cb7cd8fe39df5d4de23205ca5c89f78ddec85678d8a3ad1f394d361870625169" },
233412
- { key: "assets/PhonePreviewControl-CWICogy5.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "7a35812af68bcedec8ef5bc7f97c16799e7df5a4feaabdbeff01c74655ed26fb" },
233413
- { key: "assets/SchemeCompare-RABtZO5D.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "3120a4b904abb67c7141f89e141a2c05c51ab9cef73c7f3e8df9ca487bf86188" },
233414
- { key: "assets/WixFrogTelemetrySink-gJoGyDay.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "36d51cff83174e1b90693514a0f08b628aaacf942d934fbe3e4ed2e89a3a980a" },
233423
+ { key: "assets/DashboardHost-BTPAAl2m.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "a1aa4177400efc29d5e2219aecf6eb04af087c5a8536536922504018f1915689" },
233424
+ { key: "assets/DevDrawer-Bw89CaVH.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "5a73fd656f47dc18a27fbdfa37e7d733aa3b130d74d5ca6b768beb0a5871f3ff" },
233425
+ { key: "assets/IdiomCompare-DuFE7uqc.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "ff03724ab3d8e05137243c2769affb1c4bbe1f7f1f3a486828ebf969c6230432" },
233426
+ { key: "assets/LightboxViewer-F7s5L8c3.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "c5c11b3e204e5fec07826ab662568a2f3e0a8ea450a2375bcf1571c6f59ba4cf" },
233427
+ { key: "assets/OfflineReadingBar-BdrSWpOl.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "7816a708521ef3492cd589038fa22836cb52b3bc44983946bac81d47c13db96e" },
233428
+ { key: "assets/PhonePreviewControl-BM9R6Ra4.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "48cc7bc1c9961bbbdf00efea1190fc3c88bb48b6d4573eb724d83e9529732433" },
233429
+ { key: "assets/SchemeCompare-u2oyrIiV.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "356247b96e718bfb96deb8cbc44712ef9e3fa3308cb5ddb3d2c8749b937bcc40" },
233430
+ { key: "assets/WixFrogTelemetrySink-DL8vZ7Mj.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "94d0483d4661f6cb1e2c6dcd05f11bea5248e257e721b35572b4c7600afa53ab" },
233415
233431
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
233416
233432
  { key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
233417
- { key: "assets/catalogFontFaces-DRI6Totp.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "86e3b3b55855894986a2b0cacf5d4478a97333728e30bc27a0dca39ff17b6dc9" },
233433
+ { key: "assets/catalogFontFaces-Cz_RHV0V.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "4091936a4d776f446922c405e979e99828eedc65525894e3bfd3fa98066fd099" },
233418
233434
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
233419
- { key: "assets/files-transfer-CgJ5TL7H.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "f97c0dba60f886b2f26168e35ed26a465148ef1649b7851b4508043c817773ab" },
233435
+ { key: "assets/files-transfer-DCgsSBhl.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "a83d6fc677f89d6d17f0bf8f8055daa2c88f7f02d5510a93838f5e88516f9d5c" },
233420
233436
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
233421
- { key: "assets/frogApiRules-E8MLZzyV.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "84df9fe5e2b09f7686c46d489efe13ef4919a3c56a5cfe5d3b627cf1d6035108" },
233437
+ { key: "assets/frogApiRules-BTIaUm13.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "6f6c6037d1dd4d212d145d5c8d91db82e3647a874b80068129dd5d0180f33768" },
233422
233438
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
233423
233439
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
233424
233440
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
233425
- { key: "assets/index-bR6fpWk8.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1577217, sha256: "49447985156ef24ab9f67030617e374a62e600f72a7d45a3d23047753a997063" },
233426
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1713261, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
233427
- { key: "assets/pdf-OU8sfX9O.js", contentType: "application/javascript; charset=utf-8", offset: 1721012, length: 488215, sha256: "57502d1ccdd006393a9208cfe9383df0fbe1e7b523c69c17c2e39eae20f1f6db" },
233428
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2209227, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
233429
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2209317, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
233430
- { key: "assets/pdfDocument-CyfStCZC.js", contentType: "application/javascript; charset=utf-8", offset: 3526351, length: 3470, sha256: "736632d4bdc00f819a3977c407116ddcc25aee7a272403f4eff68f5cbf348c8e" },
233431
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3529821, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
233432
- { key: "assets/scrollLinkedRuntime-RLNqE6fq.js", contentType: "application/javascript; charset=utf-8", offset: 3532087, length: 2278, sha256: "b017f886a44a07e6c3c966d5f0100ef620a8e92287986b736f45ab2dfdae4ce6" },
233433
- { key: "assets/webviewBridgeHost-BzzqJ8mF.js", contentType: "application/javascript; charset=utf-8", offset: 3534365, length: 9889, sha256: "ab498a8a7574118a6acb8ddec5b6ca4733e604340ed0308f7cf931ba512b6b40" },
233434
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3544254, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
233435
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3548864, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
233436
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4037448, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
233437
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4128372, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
233438
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4219356, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
233439
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4310336, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
233440
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4401208, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
233441
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4492188, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
233442
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4600824, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
233443
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4709908, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
233444
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4818956, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
233445
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4926656, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
233446
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5014764, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
233447
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5021582, length: 4924, sha256: "41a5f2c8f1dd625af105d6c23253968f394dbd02ef4cf1513cb9bbc07cfaf1b6" },
233448
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5026506, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
233449
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5037963, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
233450
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5039134, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
233451
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5062181, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
233441
+ { key: "assets/index-1f_UDNEx.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1578133, sha256: "8db5252888571e27b507e8a23ae3f60f3cf7c091c2a79e28cc768b1f0921f502" },
233442
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1714177, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
233443
+ { key: "assets/pdf-DLJpSIDx.js", contentType: "application/javascript; charset=utf-8", offset: 1721928, length: 488215, sha256: "ecd0318450055d47467996fb81c979e6d067dafd7f726b0d5965625090eac3b1" },
233444
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2210143, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
233445
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2210233, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
233446
+ { key: "assets/pdfDocument-BOua-q2i.js", contentType: "application/javascript; charset=utf-8", offset: 3527267, length: 3470, sha256: "d3272bf2739acfc2854f5cb7d60ad915d9409929025d9a3d8ed4b689ce6ae1b7" },
233447
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3530737, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
233448
+ { key: "assets/scrollLinkedRuntime-BjIquFo9.js", contentType: "application/javascript; charset=utf-8", offset: 3533003, length: 2278, sha256: "2664f593bd7bcd172426cc8de8f429516a45ca4ceef9b1f82fe1009dd9b542d0" },
233449
+ { key: "assets/webviewBridgeHost-CBZaBeU-.js", contentType: "application/javascript; charset=utf-8", offset: 3535281, length: 9889, sha256: "da60fe8e749666f6da192727410c4c2c367aad3b5616b275144efb736f35a537" },
233450
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3545170, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
233451
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3549780, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
233452
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4038364, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
233453
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4129288, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
233454
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4220272, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
233455
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4311252, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
233456
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4402124, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
233457
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4493104, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
233458
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4601740, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
233459
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4710824, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
233460
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4819872, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
233461
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4927572, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
233462
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5015680, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
233463
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5022498, length: 4924, sha256: "b4a917328bb4dab899498b09c17940ca27f8d8142743cf02613cc293720e90aa" },
233464
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5027422, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
233465
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5038879, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
233466
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5040050, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
233467
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5063097, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
233452
233468
  ];
233453
233469
  }
233454
233470
  });
@@ -259932,10 +259948,28 @@ __export(run_exports2, {
259932
259948
  rowStatus: () => rowStatus,
259933
259949
  rtlVariant: () => rtlVariant,
259934
259950
  runFidelity: () => runFidelity,
259935
- runId: () => runId
259951
+ runId: () => runId,
259952
+ unlinkableScreens: () => unlinkableScreens
259936
259953
  });
259937
259954
  import { mkdirSync as mkdirSync64, writeFileSync as writeFileSync71 } from "node:fs";
259938
259955
  import { basename as basename38, join as join178 } from "node:path";
259956
+ function unlinkableScreens(config, screens, home2) {
259957
+ const navigation = config?.navigation;
259958
+ const linkables = Array.isArray(navigation?.linkableScreens) ? navigation.linkableScreens : [];
259959
+ if (!linkables.length || home2 === null) return {};
259960
+ const items = Array.isArray(navigation?.tabBar?.items) ? navigation.tabBar.items : [];
259961
+ const opens = new Set([
259962
+ ...items.map((i2) => i2?.screenId),
259963
+ ...linkables.filter((l3) => l3?.isPublic === true).map((l3) => l3.screenId),
259964
+ home2
259965
+ ].filter((id) => typeof id === "string"));
259966
+ const out2 = {};
259967
+ for (const screen of screens) {
259968
+ if (opens.has(screen)) continue;
259969
+ out2[screen] = `a link cannot open ${screen} in the Player: it is not a tab root, so it needs a linkableScreens entry with isPublic: true (config.ts navigation)`;
259970
+ }
259971
+ return out2;
259972
+ }
259939
259973
  function rtlVariant(config) {
259940
259974
  const locale = config?.locale;
259941
259975
  const pinned = locale?.pin === true && typeof locale.default === "string" && coerceSupportedLocale(locale.default) !== void 0;
@@ -260017,7 +260051,9 @@ async function runFidelity(root, opts = {}) {
260017
260051
  error = { code: e2.code, message: e2.message };
260018
260052
  }
260019
260053
  frames.push(webFrames.get(screen) ?? { surface: "web", screen, variant, skipped: { reason: "no web frame" } });
260020
- if (native) frames.push(...await native(screen, entry, variant, framesDir));
260054
+ const unlinkable = native && opts.unlinkable && Object.hasOwn(opts.unlinkable, screen) ? opts.unlinkable[screen] : void 0;
260055
+ if (unlinkable) frames.push(...["ios", "android"].map((surface) => ({ surface, screen, variant, skipped: { reason: unlinkable } })));
260056
+ else if (native) frames.push(...await native(screen, entry, variant, framesDir));
260021
260057
  const scores = [];
260022
260058
  const m2 = frames.find((f2) => f2.surface === "mockup"), w2 = frames.find((f2) => f2.surface === "web");
260023
260059
  if (m2?.file && w2?.file && !m2.noReference) scores.push(await score(m2.file, w2.file, { surfaces: ["mockup", "web"] }));
@@ -260523,13 +260559,19 @@ async function fidelityCommand(ctx) {
260523
260559
  }
260524
260560
  }
260525
260561
  let rtl;
260526
- if (!variants.length || variants.includes("rtl")) {
260527
- const { rtlVariant: rtlVariant2 } = await Promise.resolve().then(() => (init_run3(), run_exports2));
260562
+ let unlinkable;
260563
+ const wantsRtl = !variants.length || variants.includes("rtl");
260564
+ if (wantsRtl || named3.length) {
260565
+ const { rtlVariant: rtlVariant2, unlinkableScreens: unlinkableScreens2 } = await Promise.resolve().then(() => (init_run3(), run_exports2));
260528
260566
  const { loadAppConfigModule: loadAppConfigModule2 } = await Promise.resolve().then(() => (init_app_config_loader(), app_config_loader_exports));
260567
+ const { readHhpManifest: readHhpManifest2 } = await Promise.resolve().then(() => (init_hhp(), hhp_exports));
260568
+ const { homeScreenIdOf: homeScreenIdOf2 } = await Promise.resolve().then(() => (init_home_screen_id(), home_screen_id_exports));
260529
260569
  try {
260530
- rtl = rtlVariant2(await loadAppConfigModule2(dir));
260570
+ const config = await loadAppConfigModule2(dir);
260571
+ if (wantsRtl) rtl = rtlVariant2(config);
260572
+ if (named3.length && servePort !== void 0) unlinkable = unlinkableScreens2(config, Object.keys(readHhpManifest2(dir)?.screens ?? {}), homeScreenIdOf2(dir));
260531
260573
  } catch (e2) {
260532
- rtl = { skipped: `config.ts did not load: ${e2.message.split("\n")[0]}` };
260574
+ if (wantsRtl) rtl = { skipped: `config.ts did not load: ${e2.message.split("\n")[0]}` };
260533
260575
  }
260534
260576
  }
260535
260577
  let plane;
@@ -260563,7 +260605,7 @@ async function fidelityCommand(ctx) {
260563
260605
  }
260564
260606
  let report9;
260565
260607
  try {
260566
- report9 = await runFidelity2(dir, { judgeDir, screens: list3(flags.screen), variants, ...native !== void 0 ? { native } : {}, ...rtl ? { rtl } : {} });
260608
+ report9 = await runFidelity2(dir, { judgeDir, screens: list3(flags.screen), variants, ...native !== void 0 ? { native } : {}, ...rtl ? { rtl } : {}, ...unlinkable ? { unlinkable } : {} });
260567
260609
  } catch (e2) {
260568
260610
  const code2 = e2.code;
260569
260611
  if (code2 === "fidelity_not_hhp" || code2 === "fidelity_unknown_screen") {
Binary file
package/guides/hhp.md CHANGED
@@ -218,7 +218,7 @@ himi fidelity --content <dir> [--screen a,b] [--variant light,dark,rtl,tablet] [
218
218
  For each screen and variant (`light`, `dark`, `rtl`, `tablet`), the command does four things:
219
219
 
220
220
  1. **Captures the mockup.** It draws the page in Chromium at the variant's width. Dark mode is drawn by emulating `prefers-color-scheme`. RTL is drawn by setting `dir=rtl` on the page.
221
- 2. **Captures the web render** from the app's recorded data, as `himi render` does by default. Native frames come from Himi Player on the devices you pass: `--ios <udid>` and `--android <serial>`, plus `--ios-tablet` and `--android-tablet` for the tablet variant. Only those devices are touched. For each variant the command sets dark or light appearance and, for `rtl`, the app's right-to-left language (iOS `AppleLanguages`, Android per-app locale, API 33+). It opens `himi://app/<app>/screen/<screen>` and captures once two frames match, the frame is not a blank or loading page, and, on Android, the Player is the app in front rather than the launcher. A screen that has not settled that way after 30 seconds is reported `skipped` as `capture_unsettled`, never judged. Every setting it changed is restored afterwards, also on Ctrl-C. A variant with no device is reported `skipped`, never passed. Without `--release <id>` or `--serve <port>` the Player shows the app's **live** release, not your working copy. `--serve <port>` serves the working copy on `127.0.0.1:<port>` as `himi run` does, so native and web render the same release. The Player reads a local origin only from a Debug build that compiled it in (see [View your package on a device](himi-player-implementation.md#view-your-package-on-a-device)): build it with `HIMALAYA_API_BASE_URL_INFO=http://127.0.0.1:<port>` on iOS and `-PhimalayaDevServeBaseUrl=http://10.0.2.2:<port>` on Android. An iOS device whose Player reads another origin is skipped with the rebuild to run. Android's origin cannot be read back from the installed app, so check that build yourself. A screen that declares `params` is skipped natively for now, because the Player's deep link does not carry them yet. On a fresh iOS simulator, open one `himi://` link by hand first and accept iOS's "Open in Himi Player?" prompt: the command cannot answer it, and until it is accepted every iOS capture shows the prompt.
221
+ 2. **Captures the web render** from the app's recorded data, as `himi render` does by default. Native frames come from Himi Player on the devices you pass: `--ios <udid>` and `--android <serial>`, plus `--ios-tablet` and `--android-tablet` for the tablet variant. Only those devices are touched. For each variant the command sets dark or light appearance and, for `rtl`, the app's right-to-left language (iOS `AppleLanguages`, Android per-app locale, API 33+). It opens `himi://app/<app>/screen/<screen>` and captures once two frames match, the frame is not a blank or loading page, and, on Android, the Player is the app in front rather than the launcher. A screen that has not settled that way after 30 seconds is reported `skipped` as `capture_unsettled`, never judged. Every setting it changed is restored afterwards, also on Ctrl-C. A variant with no device is reported `skipped`, never passed. Without `--release <id>` or `--serve <port>` the Player shows the app's **live** release, not your working copy. `--serve <port>` serves the working copy on `127.0.0.1:<port>` as `himi run` does, so native and web render the same release. The Player reads a local origin only from a Debug build that compiled it in (see [View your package on a device](himi-player-implementation.md#view-your-package-on-a-device)): build it with `HIMALAYA_API_BASE_URL_INFO=http://127.0.0.1:<port>` on iOS and `-PhimalayaDevServeBaseUrl=http://10.0.2.2:<port>` on Android. An iOS device whose Player reads another origin is skipped with the rebuild to run. Android's origin cannot be read back from the installed app, so check that build yourself. A screen that declares `params` is skipped natively for now, because the Player's deep link does not carry them yet. With `--serve`, a screen a link cannot open is skipped natively too, with the reason: when config.ts declares `navigation.linkableScreens`, the Player opens only a tab root, the home screen, or a linkable screen marked `isPublic: true`, and stays on home for any other. On a fresh iOS simulator, open one `himi://` link by hand first and accept iOS's "Open in Himi Player?" prompt: the command cannot answer it, and until it is accepted every iOS capture shows the prompt.
222
222
  3. **Scores mockup↔web** with ImageMagick SSIM, globally and per tile. The worst tile says where the screens differ most.
223
223
  4. **Asks a fresh model** two questions, using the repo's fidelity judge prompt. The model never ran in the session that wrote the app.
224
224
  - **Design:** does WEB look like the MOCKUP? This judges the port.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1687.0",
3
+ "version": "0.1688.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": "e061a08ef9ff1a948677e0bc655d65e090a452c105f1920e9fabfc0f"
84
+ "falconPackageHash": "471d5c7197bc21b1d437b2c4367c046318006125cc3d270167644e6b"
85
85
  }