@wix/himalaya-cli 0.1771.0 → 0.1773.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/one-app-page.d.ts +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +46 -8
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{7977d7340513225ef7609b9983b621e2b48c10deb7427e059e595d2fc66f7983.bin → 81b0921a25bdf01f44c9cc524e12b9ae379c49ec12d6238f114bc9f5e82faebf.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +112 -57
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/one-app-to-himi-app.md +7 -4
- package/package.json +2 -2
- package/stdlib/fonts/catalog.json +416 -0
package/dist/cli.mjs
CHANGED
|
@@ -40184,6 +40184,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
40184
40184
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
40185
40185
|
var init_idiom = __esm({
|
|
40186
40186
|
"../../core/ts/src/idiom.ts"() {
|
|
40187
|
+
"use strict";
|
|
40187
40188
|
init_define_HHP_CATALOG();
|
|
40188
40189
|
IDIOM_CONTEXTS = {
|
|
40189
40190
|
ios: { native: ["ios"] },
|
|
@@ -40724,7 +40725,7 @@ var init_tokens2 = __esm({
|
|
|
40724
40725
|
pxToRem = (px) => `${px / REM_ROOT_PX}rem`;
|
|
40725
40726
|
DEFAULT_FONT_STACK = '"Wix Madefor Text", system-ui';
|
|
40726
40727
|
SYSTEM_FONT_STACK = 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
|
|
40727
|
-
SERIF_FAMILY_RE = /\b(georgia|times|garamond|palatino|baskerville|didot|charter|bodoni|caslon|cambria|constantia|rockwell|playfair|merriweather|lora|literata|spectral|fraunces|vollkorn|bitter|serif)\b/i;
|
|
40728
|
+
SERIF_FAMILY_RE = /\b(georgia|times|garamond|palatino|baskerville|didot|charter|bodoni|caslon|cambria|constantia|rockwell|playfair|merriweather|lora|literata|spectral|fraunces|vollkorn|bitter|brygada(?:\s*1918)?|caudex|marcellus|serif)\b/i;
|
|
40728
40729
|
ACTIVITY_RING_TRACK_ALPHA = 0.2;
|
|
40729
40730
|
SPRING_MIN_RESPONSE = 0.05;
|
|
40730
40731
|
SPRING_MAX_RESPONSE = 10;
|
|
@@ -185015,6 +185016,14 @@ var init_js_yaml = __esm({
|
|
|
185015
185016
|
}
|
|
185016
185017
|
});
|
|
185017
185018
|
|
|
185019
|
+
// ../mobile-dist/dist-contract-merge.ts
|
|
185020
|
+
var init_dist_contract_merge = __esm({
|
|
185021
|
+
"../mobile-dist/dist-contract-merge.ts"() {
|
|
185022
|
+
init_define_HHP_CATALOG();
|
|
185023
|
+
init_binding_spellings();
|
|
185024
|
+
}
|
|
185025
|
+
});
|
|
185026
|
+
|
|
185018
185027
|
// ../auth-bake/release-auth.ts
|
|
185019
185028
|
function effectiveAuthProvider(appConfig, capabilities) {
|
|
185020
185029
|
const provider = appConfig.authConfig?.providerId;
|
|
@@ -185025,6 +185034,7 @@ var SHELL_PROVIDER;
|
|
|
185025
185034
|
var init_release_auth = __esm({
|
|
185026
185035
|
"../auth-bake/release-auth.ts"() {
|
|
185027
185036
|
init_define_HHP_CATALOG();
|
|
185037
|
+
init_dist_contract_merge();
|
|
185028
185038
|
SHELL_PROVIDER = "the shell's provider";
|
|
185029
185039
|
}
|
|
185030
185040
|
});
|
|
@@ -250697,52 +250707,52 @@ var init_preview_assets_generated = __esm({
|
|
|
250697
250707
|
init_define_HHP_CATALOG();
|
|
250698
250708
|
init_preview_assets_format();
|
|
250699
250709
|
PREVIEW_ASSET_MANIFEST = [
|
|
250700
|
-
{ key: "assets/DashboardHost-
|
|
250701
|
-
{ key: "assets/DevDrawer-
|
|
250702
|
-
{ key: "assets/IdiomCompare-
|
|
250703
|
-
{ key: "assets/LightboxViewer-
|
|
250704
|
-
{ key: "assets/OfflineReadingBar-
|
|
250705
|
-
{ key: "assets/PhonePreviewControl-
|
|
250706
|
-
{ key: "assets/SchemeCompare-
|
|
250707
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
250710
|
+
{ key: "assets/DashboardHost-BY_6uKms.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "b7fc7fbf02e113a7f2e906b67223a3c3809ce6ec940a1827667b4679805de95c" },
|
|
250711
|
+
{ key: "assets/DevDrawer-KE0x-zka.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "354530320e5e5976656a60e0c500f1346f911bebc0d5eb7aa1cfd98a16a0f9e7" },
|
|
250712
|
+
{ key: "assets/IdiomCompare-ClVCxHLk.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "ce5348e1f57960e5875ca972636d26e850e198b9bd3abcacea53d5940babbf4e" },
|
|
250713
|
+
{ key: "assets/LightboxViewer-oayuQ2Ym.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "9803b8ad4b14720d30a09563819f07302c76951913fea9bd8870b882b275bf5f" },
|
|
250714
|
+
{ key: "assets/OfflineReadingBar-BzMTt79U.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "d177741e44ca9c1dd9babc1e6e9a2b5e478131d350091183a4544063c1ee2c40" },
|
|
250715
|
+
{ key: "assets/PhonePreviewControl-npnEldfi.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "e98c4207ac3cc6443bc705771f650b002df9215d27634e46e40200a55bfe5362" },
|
|
250716
|
+
{ key: "assets/SchemeCompare-C3ZMIJ9z.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "e109e0729f5165465fca6206e93286270e64994d4144e3184a4b85570939478a" },
|
|
250717
|
+
{ key: "assets/WixFrogTelemetrySink-DkVfpG77.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "5323ed0d790d587376d37f483c0c4478deaba39a283b50e56b126a0e6ce1abf4" },
|
|
250708
250718
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
250709
|
-
{ key: "assets/catalog-
|
|
250710
|
-
{ key: "assets/catalogFontFaces-
|
|
250711
|
-
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250712
|
-
{ key: "assets/files-transfer-
|
|
250713
|
-
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250714
|
-
{ key: "assets/frogApiRules-
|
|
250715
|
-
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250716
|
-
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250717
|
-
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250718
|
-
{ key: "assets/index-
|
|
250719
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250720
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250721
|
-
{ key: "assets/pdf-
|
|
250722
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250723
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
250724
|
-
{ key: "assets/pdfDocument-
|
|
250725
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250726
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
250727
|
-
{ key: "assets/webviewBridgeHost-
|
|
250728
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
250729
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
250730
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
250731
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
250732
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
250733
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
250734
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
250735
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
250736
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
250737
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
250738
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
250739
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
250740
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250741
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
250742
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
250743
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
250744
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
250745
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
250719
|
+
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
250720
|
+
{ key: "assets/catalogFontFaces-C8WsNpzn.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "5cbf3505f6554bef6646fc27c0fc34f56f3967669d83869335a9c4a6b8fa09ff" },
|
|
250721
|
+
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
250722
|
+
{ key: "assets/files-transfer-WOF3vR7u.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "331bca2af5943102c970413b8eb3e5a057742a8e58b57a7f6f3ee0ced88debab" },
|
|
250723
|
+
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
250724
|
+
{ key: "assets/frogApiRules-3a3qPGHg.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "318f11eda42cc7d0e44b0ecd5299e6ed61818f9eebf317592deeda55249eb6ea" },
|
|
250725
|
+
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
250726
|
+
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
250727
|
+
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
250728
|
+
{ key: "assets/index-DXJI0CwA.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1602534, sha256: "b42bd535aab90d49e9de9f2040c4286b5d90396af33a500bb481015f47538f7e" },
|
|
250729
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1748158, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
250730
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1755909, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
250731
|
+
{ key: "assets/pdf-wdJ1_6-Z.js", contentType: "application/javascript; charset=utf-8", offset: 1766440, length: 488215, sha256: "81b0921a25bdf01f44c9cc524e12b9ae379c49ec12d6238f114bc9f5e82faebf" },
|
|
250732
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2254655, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
250733
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2254745, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
250734
|
+
{ key: "assets/pdfDocument-DVCFkD0w.js", contentType: "application/javascript; charset=utf-8", offset: 3571779, length: 3470, sha256: "6a86da5521a1dcc4e89e9b181fdcd64c0e5f452433b627ace06bde56a9acce3d" },
|
|
250735
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3575249, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
250736
|
+
{ key: "assets/scrollLinkedRuntime-Ddpy5vyB.js", contentType: "application/javascript; charset=utf-8", offset: 3577515, length: 2278, sha256: "f439e5d3aa0907f59ec20dbe1997ba1e0c48ae4fd4b333e5fe7e3b7dd97edd7c" },
|
|
250737
|
+
{ key: "assets/webviewBridgeHost-CZz2QqMx.js", contentType: "application/javascript; charset=utf-8", offset: 3579793, length: 9889, sha256: "c0a4a24de314669f9aac7ef4e914d9ca6185d2c7762ef1e8dc359cd2656af66b" },
|
|
250738
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3589682, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
250739
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3594292, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
250740
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4082876, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
250741
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4173800, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
250742
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4264784, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
250743
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4355764, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
250744
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4446636, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
250745
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4537616, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
250746
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4646252, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
250747
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4755336, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
250748
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4864384, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
250749
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4972084, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
250750
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5060192, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
250751
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5067010, length: 4924, sha256: "dcea18ced37e1ff077a008d1b7084b07565456040b7d80890101b8096d91d328" },
|
|
250752
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5071934, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
250753
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5083391, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
250754
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5084562, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
250755
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5108865, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
250746
250756
|
];
|
|
250747
250757
|
}
|
|
250748
250758
|
});
|
|
@@ -268515,7 +268525,15 @@ function normalizeWebsiteLinks(nodes2) {
|
|
|
268515
268525
|
}
|
|
268516
268526
|
return changed;
|
|
268517
268527
|
}
|
|
268518
|
-
function
|
|
268528
|
+
function draftImageSrc(data) {
|
|
268529
|
+
const src = data.src ?? data.url;
|
|
268530
|
+
if (typeof src === "string") return src ? { url: src } : void 0;
|
|
268531
|
+
const media = object13(src);
|
|
268532
|
+
if (typeof media.url === "string" && media.url) return { url: media.url };
|
|
268533
|
+
const id = media.id ?? media.file_name;
|
|
268534
|
+
return typeof id === "string" && id ? { id } : void 0;
|
|
268535
|
+
}
|
|
268536
|
+
function draftDocument(value2, skipped) {
|
|
268519
268537
|
const draft = object13(value2);
|
|
268520
268538
|
if (!Array.isArray(draft.blocks) || draft.blocks.length > 5e3) return invalid3();
|
|
268521
268539
|
if (draft.entityMap !== void 0 && (!draft.entityMap || typeof draft.entityMap !== "object" || Array.isArray(draft.entityMap))) return invalid3();
|
|
@@ -268537,10 +268555,22 @@ function draftDocument(value2) {
|
|
|
268537
268555
|
if (ranges.length !== 1) return unsupported();
|
|
268538
268556
|
const entity = object13(entities[String(object13(ranges[0]).key)]);
|
|
268539
268557
|
const data = object13(entity.data);
|
|
268540
|
-
if (entity.type !== "IMAGE" && entity.type !== "wix-draft-plugin-image")
|
|
268541
|
-
|
|
268542
|
-
|
|
268543
|
-
|
|
268558
|
+
if (entity.type !== "IMAGE" && entity.type !== "wix-draft-plugin-image") {
|
|
268559
|
+
const label4 = DRAFT_PLUGIN_LABELS[String(entity.type)] ?? `plugin ${String(entity.type)}`;
|
|
268560
|
+
skipped.set(label4, (skipped.get(label4) ?? 0) + 1);
|
|
268561
|
+
continue;
|
|
268562
|
+
}
|
|
268563
|
+
const src = draftImageSrc(data);
|
|
268564
|
+
if (!src) return invalid3();
|
|
268565
|
+
const size = (key4) => [data[key4], object13(data.src)[key4]].find((v2) => typeof v2 === "number");
|
|
268566
|
+
const [width, height] = [size("width"), size("height")];
|
|
268567
|
+
const alt = data.alt ?? object13(data.metadata).alt;
|
|
268568
|
+
const link4 = object13(object13(data.config).link).url;
|
|
268569
|
+
nodes2.push({ type: "IMAGE", imageData: {
|
|
268570
|
+
image: { src, ...width !== void 0 ? { width } : {}, ...height !== void 0 ? { height } : {} },
|
|
268571
|
+
...typeof alt === "string" ? { altText: alt } : {},
|
|
268572
|
+
...typeof link4 === "string" && link4 ? { link: { url: link4 } } : {}
|
|
268573
|
+
} });
|
|
268544
268574
|
continue;
|
|
268545
268575
|
}
|
|
268546
268576
|
const cuts = [.../* @__PURE__ */ new Set([0, text32.length, ...spans.flatMap((s5) => [Number(s5.offset), Number(s5.offset) + Number(s5.length)])])].sort((a3, b3) => a3 - b3);
|
|
@@ -268567,6 +268597,8 @@ function draftDocument(value2) {
|
|
|
268567
268597
|
const list5 = last?.type === type2 ? last : { type: type2, nodes: [] };
|
|
268568
268598
|
if (last !== list5) nodes2.push(list5);
|
|
268569
268599
|
list5.nodes?.push({ type: "LIST_ITEM", nodes: [paragraph] });
|
|
268600
|
+
} else if (block.type === "blockquote") {
|
|
268601
|
+
nodes2.push({ type: "BLOCKQUOTE", nodes: [paragraph] });
|
|
268570
268602
|
} else if (/^header-(one|two|three|four|five|six)$/.test(String(block.type))) {
|
|
268571
268603
|
nodes2.push({ type: "HEADING", headingData: { level: ["one", "two", "three", "four", "five", "six"].indexOf(String(block.type).slice(7)) + 1 }, nodes: runs });
|
|
268572
268604
|
} else if (block.type === "unstyled" || block.type === "paragraph" || block.type === void 0) nodes2.push(paragraph);
|
|
@@ -268580,6 +268612,7 @@ function decodeOneAppPage(response, expectedPageId) {
|
|
|
268580
268612
|
const raw = body.content;
|
|
268581
268613
|
if (richContentOverLimits(raw, null)) return invalid3();
|
|
268582
268614
|
let document2;
|
|
268615
|
+
const skipped = /* @__PURE__ */ new Map();
|
|
268583
268616
|
const contentType = body.contentType;
|
|
268584
268617
|
if (contentType === "PLAIN_TEXT") document2 = plainTextToRicos(raw);
|
|
268585
268618
|
else if (contentType === "RICH_CONTENT" || contentType === "DRAFTJS") {
|
|
@@ -268590,7 +268623,7 @@ function decodeOneAppPage(response, expectedPageId) {
|
|
|
268590
268623
|
return invalid3();
|
|
268591
268624
|
}
|
|
268592
268625
|
if (richContentOverLimits(raw, parsed)) return invalid3();
|
|
268593
|
-
if (contentType === "DRAFTJS") document2 = draftDocument(parsed);
|
|
268626
|
+
if (contentType === "DRAFTJS") document2 = draftDocument(parsed, skipped);
|
|
268594
268627
|
else {
|
|
268595
268628
|
if (!Array.isArray(object13(parsed).nodes)) return invalid3();
|
|
268596
268629
|
document2 = parsed;
|
|
@@ -268601,6 +268634,8 @@ function decodeOneAppPage(response, expectedPageId) {
|
|
|
268601
268634
|
return typeof n2.type === "string" && n2.type.length > 0 && (n2.type !== "TEXT" || typeof object13(n2.textData).text === "string") && (n2.nodes === void 0 || Array.isArray(n2.nodes) && validNodes(n2.nodes));
|
|
268602
268635
|
});
|
|
268603
268636
|
if (!validNodes(document2.nodes)) return invalid3();
|
|
268637
|
+
const authored2 = document2.nodes.some((n2) => n2.type !== "PARAGRAPH" || (n2.nodes ?? []).some((c2) => c2.type !== "TEXT" || !!c2.textData?.text?.trim()));
|
|
268638
|
+
if (skipped.size && !authored2) return unsupported();
|
|
268604
268639
|
const normalizedWebsiteLinks = normalizeWebsiteLinks(document2.nodes);
|
|
268605
268640
|
let encoded3;
|
|
268606
268641
|
try {
|
|
@@ -268610,9 +268645,17 @@ function decodeOneAppPage(response, expectedPageId) {
|
|
|
268610
268645
|
}
|
|
268611
268646
|
if (encoded3.rejected) return invalid3();
|
|
268612
268647
|
const plainText3 = ricosToPlainText(document2);
|
|
268613
|
-
const authored2 = document2.nodes.some((n2) => n2.type !== "PARAGRAPH" || (n2.nodes ?? []).some((c2) => c2.type !== "TEXT" || !!c2.textData?.text?.trim()));
|
|
268614
268648
|
if (!encoded3.json && authored2) return unsupported();
|
|
268615
|
-
return {
|
|
268649
|
+
return {
|
|
268650
|
+
pageId: expectedPageId,
|
|
268651
|
+
title: typeof content.title === "string" ? content.title : "",
|
|
268652
|
+
contentType,
|
|
268653
|
+
documentJson: encoded3.json,
|
|
268654
|
+
plainText: plainText3,
|
|
268655
|
+
empty: !authored2,
|
|
268656
|
+
normalizedWebsiteLinks,
|
|
268657
|
+
gaps: [...skipped].map(([label4, count3]) => `${label4} (${count3})`)
|
|
268658
|
+
};
|
|
268616
268659
|
}
|
|
268617
268660
|
function oneAppPageSection(page, options2) {
|
|
268618
268661
|
if (!options2.id) throw new Error("oneAppPageSection requires a stable placement id");
|
|
@@ -268624,7 +268667,7 @@ function oneAppPageSection(page, options2) {
|
|
|
268624
268667
|
documentJson: page.documentJson
|
|
268625
268668
|
} } };
|
|
268626
268669
|
}
|
|
268627
|
-
var failure2, object13, invalid3, unsupported, isOneAppPageId;
|
|
268670
|
+
var failure2, object13, invalid3, unsupported, isOneAppPageId, DRAFT_PLUGIN_LABELS;
|
|
268628
268671
|
var init_one_app_page = __esm({
|
|
268629
268672
|
"../../stdlib/flows/screens/src/one-app-page.ts"() {
|
|
268630
268673
|
init_define_HHP_CATALOG();
|
|
@@ -268636,6 +268679,11 @@ var init_one_app_page = __esm({
|
|
|
268636
268679
|
invalid3 = () => failure2("invalid", "The referenced page returned malformed content.");
|
|
268637
268680
|
unsupported = () => failure2("unsupported", "The referenced page uses an unsupported content format.");
|
|
268638
268681
|
isOneAppPageId = (value2) => typeof value2 === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value2);
|
|
268682
|
+
DRAFT_PLUGIN_LABELS = {
|
|
268683
|
+
"wix-draft-plugin-video": "video",
|
|
268684
|
+
"wix-draft-plugin-file-upload": "file download",
|
|
268685
|
+
"wix-draft-plugin-gallery": "gallery"
|
|
268686
|
+
};
|
|
268639
268687
|
}
|
|
268640
268688
|
});
|
|
268641
268689
|
|
|
@@ -268690,7 +268738,10 @@ async function collectOneAppPages(raw, source2, read2) {
|
|
|
268690
268738
|
}
|
|
268691
268739
|
const captured = documents.get(pageId2);
|
|
268692
268740
|
placement.state = captured.state;
|
|
268693
|
-
if (captured.page)
|
|
268741
|
+
if (captured.page) {
|
|
268742
|
+
placement.component = oneAppPageSection(captured.page, { id: `one_app_page_${hash2(placement.sourcePointer).slice(0, 16)}` });
|
|
268743
|
+
if (captured.page.gaps.length) placement.gaps = captured.page.gaps;
|
|
268744
|
+
}
|
|
268694
268745
|
}
|
|
268695
268746
|
return { version: 1, source: source2, placements, documents: [...documents.values()] };
|
|
268696
268747
|
}
|
|
@@ -270749,7 +270800,11 @@ var init_generate2 = __esm({
|
|
|
270749
270800
|
},
|
|
270750
270801
|
pages_section: (id, _s2, _st, index, ctx, elementId) => {
|
|
270751
270802
|
const placement = ctx.placements.get(`${ctx.page.layoutItemId}:${elementId}:${index}`);
|
|
270752
|
-
if (placement?.state === "ready" && placement.component)
|
|
270803
|
+
if (placement?.state === "ready" && placement.component) {
|
|
270804
|
+
const left = arr(placement.gaps).map(str16).filter(Boolean);
|
|
270805
|
+
if (left.length) ctx.gap(elementId, "pages_section", `the Pages document has content the section cannot show (${left.join(", ")}); its text and images are shown without it`);
|
|
270806
|
+
return vstack(`${id}.box`, [placement.component], 0, inset(8, 8));
|
|
270807
|
+
}
|
|
270753
270808
|
return ctx.unsupported(elementId, "pages_section", placement ? `its Pages document is not ready in pages-content.json (state "${str16(placement.state)}")` : "its Pages document is not in pages-content.json: re-run `himi one-app migrate` to collect it");
|
|
270754
270809
|
},
|
|
270755
270810
|
// The site's services as rows that open the service, with a See All button to the services screen. The source section has no settings
|
|
Binary file
|
|
@@ -521,8 +521,9 @@ Apply these interpretation rules:
|
|
|
521
521
|
names (`Lato`); tokens whose names contain title/heading/headline/display/hero use the heading family; other
|
|
522
522
|
typography tokens use the body family. Numeric metrics stay unchanged. Read each
|
|
523
523
|
source heading/body family and check `himi fonts list`; use `himi fonts add <Family>`
|
|
524
|
-
when it is available. A known source family that Himi does not ship (
|
|
525
|
-
|
|
524
|
+
when it is available. A known source family that Himi does not ship (every One App
|
|
525
|
+
font family ships today, so this applies only if the source adds one) is still compared
|
|
526
|
+
with the actual target family.
|
|
526
527
|
Choose an available replacement, such as `$system`, only with the owner's explicit
|
|
527
528
|
instruction; this is an adaptation, never a font match. Sync the coverage ledger
|
|
528
529
|
against the current source evidence, then mark the corresponding `design` requirement
|
|
@@ -895,8 +896,10 @@ or malformed selectors/content), `unsupported`, `forbidden`, `unauthorized`,
|
|
|
895
896
|
`not_found` and `unavailable` remain distinct gaps. A failed document has no
|
|
896
897
|
emitted component. Preserve the gap and resolve it before claiming its coverage;
|
|
897
898
|
never substitute an empty paragraph, demo copy or owner read. Supported DraftJS
|
|
898
|
-
text, styled links, flat lists, headings and images
|
|
899
|
-
|
|
899
|
+
text, styled links, flat lists, headings, quotes and images (including the image plugin's media object) are
|
|
900
|
+
converted. A plugin the app cannot render (file, video, gallery, unknown) is left out: the placement stays `ready`,
|
|
901
|
+
lists it in `gaps` (for example `video (2)`), and `generate` reports it as a `pages_section` gap. A document holding
|
|
902
|
+
only such plugins, and nested lists, remain explicit `unsupported` gaps.
|
|
900
903
|
|
|
901
904
|
This reconstruction captures editorial presentation only. Changing catalogs,
|
|
902
905
|
transactions and member records remain live. It uses the existing cross-platform
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1773.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": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "867ce5320d279afbf966bd34b84f4f4fd7eb94a71bf3acf71d8720fe"
|
|
86
86
|
}
|