@wix/himalaya-cli 0.1789.0 → 0.1791.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/{bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066.bin → 83e211fe9fba65cca1fac7a0d552fbd3ba2873496f1c6117d5ac561d489ac839.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +121 -48
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +3 -3
- package/guides/releasing-with-himi-serve.md +11 -6
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -4411,6 +4411,7 @@ var init_himi_package = __esm({
|
|
|
4411
4411
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
4412
4412
|
var init_icon_catalog_generated = __esm({
|
|
4413
4413
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
4414
|
+
"use strict";
|
|
4414
4415
|
init_define_HHP_CATALOG();
|
|
4415
4416
|
ICON_VIEW_BOX = 24;
|
|
4416
4417
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -8377,6 +8378,7 @@ function assertExternalUrl(site, value2, where) {
|
|
|
8377
8378
|
var WIX_FREE_SITE_HOST_SUFFIXES, SITE_KINDS, SITE_LAYOUTS, SITE_PAGE_TITLES, SITE_TOP_BAR_MAX_ACTIONS, SITE_BUILTIN_NATIVE_SCREENS, SITE_PRIVATE_NATIVE_SCREENS, SITE_SHELL_MAX_TABS, SITE_SCREEN_PREFIX, SITE_PAGE_SCREEN_ID, BASE44_ORIGINS, PAGE_ID, SITE_PAGE_NODE_ID, SITE_SCREEN_FORMS, SITE_NODE_SCREEN_RENDERER, PLACEMENTS, ICONS;
|
|
8378
8379
|
var init_site_shell = __esm({
|
|
8379
8380
|
"../../core/ts/src/site-shell.ts"() {
|
|
8381
|
+
"use strict";
|
|
8380
8382
|
init_define_HHP_CATALOG();
|
|
8381
8383
|
init_himi_package();
|
|
8382
8384
|
init_icon_catalog_generated();
|
|
@@ -42160,6 +42162,7 @@ function shouldRevealError(args) {
|
|
|
42160
42162
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
42161
42163
|
var init_validation = __esm({
|
|
42162
42164
|
"../../core/ts/src/validation.ts"() {
|
|
42165
|
+
"use strict";
|
|
42163
42166
|
init_define_HHP_CATALOG();
|
|
42164
42167
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
42165
42168
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -50387,6 +50390,18 @@ function classifyEmbedUrl(url, pageOrigin = currentOrigin()) {
|
|
|
50387
50390
|
function isWebviewUrlAllowed(url) {
|
|
50388
50391
|
return webviewFrameSandbox(url, [], null) !== null;
|
|
50389
50392
|
}
|
|
50393
|
+
function webViewFrameUrl(url, config) {
|
|
50394
|
+
if (!config.wixSite) return url;
|
|
50395
|
+
let parsed;
|
|
50396
|
+
try {
|
|
50397
|
+
parsed = new URL(url);
|
|
50398
|
+
} catch {
|
|
50399
|
+
return url;
|
|
50400
|
+
}
|
|
50401
|
+
if (parsed.protocol !== "https:" && parsed.protocol !== "http:" || parsed.searchParams.has(WIX_MOBILE_VIEW_PARAM)) return url;
|
|
50402
|
+
parsed.searchParams.set(WIX_MOBILE_VIEW_PARAM, "true");
|
|
50403
|
+
return parsed.href;
|
|
50404
|
+
}
|
|
50390
50405
|
function webViewWebConfig(raw) {
|
|
50391
50406
|
const c2 = asRecord(raw);
|
|
50392
50407
|
const media = asRecord(c2.media);
|
|
@@ -50417,7 +50432,12 @@ function webViewWebConfig(raw) {
|
|
|
50417
50432
|
disableContextMenu,
|
|
50418
50433
|
loadingText: nonEmpty3(c2.loadingText),
|
|
50419
50434
|
showProgressBar: c2.showProgressBar === true,
|
|
50420
|
-
coverBandColor: nonEmpty3(c2.coverBandColor)
|
|
50435
|
+
coverBandColor: nonEmpty3(c2.coverBandColor),
|
|
50436
|
+
// The adapter names the site's kind when there is one: a Base44 page always carries "base44" from its
|
|
50437
|
+
// preset, and a page override that turns a Wix hider on does not make it a Wix site. With no adapter
|
|
50438
|
+
// (a Wix site without the member bridge), the Wix-only hiders are the marker; a "web" site has them
|
|
50439
|
+
// forced off (site-shell enforceSiteKind).
|
|
50440
|
+
wixSite: c2.hostedSiteAdapter === "wix" || (c2.hostedSiteAdapter === void 0 || c2.hostedSiteAdapter === "") && (c2.hideWixAds === true || c2.hideHostedSiteMenu === true)
|
|
50421
50441
|
};
|
|
50422
50442
|
}
|
|
50423
50443
|
function maskInertHtml(html) {
|
|
@@ -50441,13 +50461,14 @@ function injectIntoInlineHtml(html, config, scrollEnabled = true) {
|
|
|
50441
50461
|
if (tail) out2 += tail;
|
|
50442
50462
|
return out2;
|
|
50443
50463
|
}
|
|
50444
|
-
var NETWORK_SCHEMES, SITE_PAGE_FRAME_GRANTS, asRecord, nonEmpty3, scriptBody;
|
|
50464
|
+
var NETWORK_SCHEMES, SITE_PAGE_FRAME_GRANTS, WIX_MOBILE_VIEW_PARAM, asRecord, nonEmpty3, scriptBody;
|
|
50445
50465
|
var init_webviewFrame = __esm({
|
|
50446
50466
|
"../../core/web-renderer/src/webviewFrame.ts"() {
|
|
50447
50467
|
init_define_HHP_CATALOG();
|
|
50448
50468
|
init_webview_origin();
|
|
50449
50469
|
NETWORK_SCHEMES = /* @__PURE__ */ new Set(["http:", "https:"]);
|
|
50450
50470
|
SITE_PAGE_FRAME_GRANTS = ["allow-popups", "allow-forms"];
|
|
50471
|
+
WIX_MOBILE_VIEW_PARAM = "showMobileView";
|
|
50451
50472
|
asRecord = (v2) => v2 && typeof v2 === "object" ? v2 : {};
|
|
50452
50473
|
nonEmpty3 = (v2) => typeof v2 === "string" && v2.length > 0 ? v2 : void 0;
|
|
50453
50474
|
scriptBody = (js2) => js2.replace(/<\/(script)/gi, "<\\/$1");
|
|
@@ -140694,7 +140715,7 @@ var init_renderNode = __esm({
|
|
|
140694
140715
|
const scrollEnabled = typeof props2.scrollEnabled === "boolean" ? props2.scrollEnabled : primary;
|
|
140695
140716
|
const htmlStr = rawHtml != null ? injectIntoInlineHtml(rawHtml, config, scrollEnabled) : void 0;
|
|
140696
140717
|
const urlAllowed = urlStr != null && (config.allowedOrigins.length === 0 || webViewOriginAllowed(urlStr, config.allowedOrigins));
|
|
140697
|
-
const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(urlStr, primary ? SITE_PAGE_FRAME_GRANTS : []) : null;
|
|
140718
|
+
const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(webViewFrameUrl(urlStr, config), primary ? SITE_PAGE_FRAME_GRANTS : []) : null;
|
|
140698
140719
|
const boundHeight = useResolvedScalar(props2.heightPath != null && isBinding(props2.heightPath) ? props2.heightPath : void 0, ctx);
|
|
140699
140720
|
const fill2 = props2.fill === true || primary;
|
|
140700
140721
|
const h2 = typeof boundHeight === "number" && boundHeight > 0 ? boundHeight : typeof props2.height === "number" && props2.height > 0 ? props2.height : void 0;
|
|
@@ -145830,6 +145851,7 @@ __export(src_exports2, {
|
|
|
145830
145851
|
useBoundValue: () => useBoundValue,
|
|
145831
145852
|
useImageSource: () => useImageSource,
|
|
145832
145853
|
videoObjectFit: () => videoObjectFit,
|
|
145854
|
+
webViewFrameUrl: () => webViewFrameUrl,
|
|
145833
145855
|
webViewOriginAllowed: () => webViewOriginAllowed,
|
|
145834
145856
|
webViewWebConfig: () => webViewWebConfig,
|
|
145835
145857
|
webviewFrameSandbox: () => webviewFrameSandbox,
|
|
@@ -252279,52 +252301,52 @@ var init_preview_assets_generated = __esm({
|
|
|
252279
252301
|
init_define_HHP_CATALOG();
|
|
252280
252302
|
init_preview_assets_format();
|
|
252281
252303
|
PREVIEW_ASSET_MANIFEST = [
|
|
252282
|
-
{ key: "assets/DashboardHost-
|
|
252283
|
-
{ key: "assets/DevDrawer-
|
|
252284
|
-
{ key: "assets/IdiomCompare-
|
|
252285
|
-
{ key: "assets/LightboxViewer-
|
|
252286
|
-
{ key: "assets/OfflineReadingBar-
|
|
252287
|
-
{ key: "assets/PhonePreviewControl-
|
|
252288
|
-
{ key: "assets/SchemeCompare-
|
|
252289
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
252304
|
+
{ key: "assets/DashboardHost-gbsDp2_X.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "306b50240082bb2d359f820b79fb09007b302879ef729e3f26302e6c254ed211" },
|
|
252305
|
+
{ key: "assets/DevDrawer-C8JEsMu2.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "aa5f51e09f2ea4e11b6e0184c7bee70e2488be5c55780a0ca5094fe15880a3fd" },
|
|
252306
|
+
{ key: "assets/IdiomCompare-DQYhacXY.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "834d92dc323118e5beb81316afd519976b34cd38c31712ad7aad2038ea4e611f" },
|
|
252307
|
+
{ key: "assets/LightboxViewer-VsvfJvNa.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "470dd1a297cef286c982a2f01590de610da91a2f6427ca7715378cfab224afcb" },
|
|
252308
|
+
{ key: "assets/OfflineReadingBar-D4sHSaqS.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "bfd99085657c2f14ccb0f7cf576a428c4dbbe5c6cfd08bb8d7308248ba699d74" },
|
|
252309
|
+
{ key: "assets/PhonePreviewControl-B6SWkSvi.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "6902f4b9831eaadbb135ad19032c5222617cdda78711673e827f69a40ad17592" },
|
|
252310
|
+
{ key: "assets/SchemeCompare-DGynvl70.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "a7ce03c2976688d237f894c0691bbaeb57b36dd2be642d86db33025b0acfbb0f" },
|
|
252311
|
+
{ key: "assets/WixFrogTelemetrySink-ktKeAG5R.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "0832e52aca49ec6fa475d2cdd351109de1cab3195075dd6adee736fb39306dd4" },
|
|
252290
252312
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
252291
252313
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
252292
|
-
{ key: "assets/catalogFontFaces-
|
|
252314
|
+
{ key: "assets/catalogFontFaces-OWyQlCSM.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "a6fe2525c5b6cc9e80042de8a5e8610d06b16dbc66fb38632f573e68d254652b" },
|
|
252293
252315
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
252294
|
-
{ key: "assets/files-transfer-
|
|
252316
|
+
{ key: "assets/files-transfer-B0DOdcV4.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "396b8ea7be41f4bb94d7868ed856fec504a5200d260744f5936baeef60e624ec" },
|
|
252295
252317
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
252296
|
-
{ key: "assets/frogApiRules-
|
|
252318
|
+
{ key: "assets/frogApiRules-BmEnR5aZ.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "4d96d0a35516325b708c62eb1ad670344f8c96d4696952c86e61c0930e3a600c" },
|
|
252297
252319
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
252298
252320
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
252299
252321
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
252300
|
-
{ key: "assets/index-
|
|
252301
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252302
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252303
|
-
{ key: "assets/pdf-
|
|
252304
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252305
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
252306
|
-
{ key: "assets/pdfDocument-
|
|
252307
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252308
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
252309
|
-
{ key: "assets/webviewBridgeHost-
|
|
252310
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
252311
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
252312
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
252313
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252314
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
252315
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
252316
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252317
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
252318
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252319
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
252320
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
252321
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252322
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252323
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
252324
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
252325
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
252326
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
252327
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
252322
|
+
{ key: "assets/index-Db2UBDAc.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1604250, sha256: "c6e819a8a24a7bce0ac0d6e254097b9438d96ca9d66768cf52c7d7038995f4bb" },
|
|
252323
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1749874, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
252324
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1757625, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
252325
|
+
{ key: "assets/pdf-C3BFq-CJ.js", contentType: "application/javascript; charset=utf-8", offset: 1768156, length: 488215, sha256: "83e211fe9fba65cca1fac7a0d552fbd3ba2873496f1c6117d5ac561d489ac839" },
|
|
252326
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2256371, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
252327
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2256461, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
252328
|
+
{ key: "assets/pdfDocument-CNuYg9Fw.js", contentType: "application/javascript; charset=utf-8", offset: 3573495, length: 3470, sha256: "1793fdb0dc7728620b81dee55e6a3ec0a68070571538d0e93aadab59e26042db" },
|
|
252329
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3576965, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
252330
|
+
{ key: "assets/scrollLinkedRuntime-a1Xbqnij.js", contentType: "application/javascript; charset=utf-8", offset: 3579231, length: 2278, sha256: "7f6d84306da06aa1a921ba45c181ba17f5526813cef8820f9a41f555e1ade934" },
|
|
252331
|
+
{ key: "assets/webviewBridgeHost-ChyJ8ked.js", contentType: "application/javascript; charset=utf-8", offset: 3581509, length: 9889, sha256: "314e5da4ad0f3525b342008fc50cb4ceb270d786fc7da54c6485864b7cda8e10" },
|
|
252332
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3591398, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
252333
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3596008, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
252334
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4084592, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
252335
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4175516, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
252336
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4266500, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
252337
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4357480, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
252338
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4448352, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
252339
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4539332, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
252340
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4647968, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
252341
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4757052, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
252342
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4866100, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
252343
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4973800, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
252344
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5061908, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
252345
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5068726, length: 4924, sha256: "0c703da0596f67c571b0ec1a84710204f75df4e571d299038ebf22fb6e8070ab" },
|
|
252346
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5073650, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
252347
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5085107, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
252348
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5086278, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
252349
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5110581, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
252328
252350
|
];
|
|
252329
252351
|
}
|
|
252330
252352
|
});
|
|
@@ -253228,6 +253250,11 @@ async function runStoreHandoff(pos, flags, io2, deps = {}) {
|
|
|
253228
253250
|
const asked = (text19(flags.scope) ?? "read").split(",").map((s5) => s5.trim()).filter(Boolean);
|
|
253229
253251
|
const scope3 = handoff ? void 0 : normalizeRelopsScope(platform === "android" ? [...asked, ...RELOPS_ANDROID_SCOPES] : asked);
|
|
253230
253252
|
if (!handoff && !scope3) throw new UsageError6(`--scope is "read" or "read,submit" (allowed: ${RELOPS_SCOPES.join(", ")}; every scope needs read)`);
|
|
253253
|
+
const poolPackage = text19(flags["pool-package"]);
|
|
253254
|
+
if (flags["pool-package"] !== void 0 && (handoff || platform !== "android")) throw new UsageError6("--pool-package is for `store relops request --platform android`");
|
|
253255
|
+
if (flags["pool-package"] !== void 0 && (!poolPackage || !isAndroidPackageName(poolPackage) || isWixPackageName(poolPackage) || hasStorePackagePrefix(poolPackage))) {
|
|
253256
|
+
throw new UsageError6(`--pool-package needs your own Google Play package: a valid name, outside Wix's namespaces and not ${STORE_PACKAGE_PREFIX}.* (a ${STORE_PACKAGE_PREFIX}.* package is saved with himi store app set)`);
|
|
253257
|
+
}
|
|
253231
253258
|
const appleAppIds = (text19(flags["apple-app-id"]) ?? "").split(",").map((s5) => s5.trim()).filter(Boolean);
|
|
253232
253259
|
if (appleAppIds.some((id) => !/^[0-9]{6,20}$/.test(id))) throw new UsageError6("--apple-app-id is the App Store Connect app id (digits)");
|
|
253233
253260
|
if (!handoff && appleAppIds.length) throw new UsageError6("--apple-app-id is for `store handoff`");
|
|
@@ -253245,7 +253272,7 @@ async function runStoreHandoff(pos, flags, io2, deps = {}) {
|
|
|
253245
253272
|
session = owner.session;
|
|
253246
253273
|
}
|
|
253247
253274
|
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
253248
|
-
if (!handoff) return await requestConsent({ app: app2, site, scope: scope3, session, flags, io: io2, deps, fetchImpl });
|
|
253275
|
+
if (!handoff) return await requestConsent({ app: app2, site, scope: scope3, ...poolPackage ? { poolPackage } : {}, session, flags, io: io2, deps, fetchImpl });
|
|
253249
253276
|
const built = await buildLocalHandoff({ dir, file: file2, appleAppIds, deps, io: io2 });
|
|
253250
253277
|
if (!built.ok) return fail9(io2, built.code, built.error, built.extra);
|
|
253251
253278
|
const { bundle, summary: summary2 } = built;
|
|
@@ -253328,10 +253355,11 @@ async function requestConsent(o2) {
|
|
|
253328
253355
|
const ask4 = o2.deps.ask === void 0 ? process.stdin.isTTY && process.stderr.isTTY ? ttyAsk2() : void 0 : o2.deps.ask ?? void 0;
|
|
253329
253356
|
if (!ask4) return fail9(io2, "confirmation_required", "this grants Wix Release Operations staff access to the app; confirm at a terminal, or pass --yes", { app: app2, site, scope: scope3 });
|
|
253330
253357
|
io2.error(`This lets Wix Release Operations staff ${scope3.map((s5) => SCOPE_WORDS[s5]).join(", and ")} \u2014 for app ${app2} on site ${site}.`);
|
|
253358
|
+
if (o2.poolPackage) io2.error(`It also names ${o2.poolPackage}, your own Google Play app, as the one Wix's closed-test pool may test for this app.`);
|
|
253331
253359
|
const answer = (await ask4(`Type the app id (${app2}) or "yes" to agree:`)).trim();
|
|
253332
253360
|
if (answer !== app2 && answer.toLowerCase() !== "yes") return fail9(io2, "consent_declined", "not confirmed; nothing was recorded", { app: app2, site });
|
|
253333
253361
|
}
|
|
253334
|
-
const r3 = await recordRelopsConsent({ app: app2, site, scope: scope3, session: o2.session, fetchImpl: o2.fetchImpl });
|
|
253362
|
+
const r3 = await recordRelopsConsent({ app: app2, site, scope: scope3, ...o2.poolPackage ? { poolPackage: o2.poolPackage } : {}, session: o2.session, fetchImpl: o2.fetchImpl });
|
|
253335
253363
|
if (!r3.ok) return fail9(io2, "consent_failed", r3.error, r3.extra);
|
|
253336
253364
|
io2.log(JSON.stringify({ ok: true, ...r3.consent }));
|
|
253337
253365
|
return 0;
|
|
@@ -253340,13 +253368,13 @@ async function recordRelopsConsent(o2) {
|
|
|
253340
253368
|
const { app: app2, site, scope: scope3 } = o2;
|
|
253341
253369
|
let r3;
|
|
253342
253370
|
try {
|
|
253343
|
-
r3 = await postPlane(o2.session, RELOPS_CONSENT_PATH, { app: app2, site, scope: scope3 }, o2.fetchImpl);
|
|
253371
|
+
r3 = await postPlane(o2.session, RELOPS_CONSENT_PATH, { app: app2, site, scope: scope3, ...o2.poolPackage ? { poolPackage: o2.poolPackage } : {} }, o2.fetchImpl);
|
|
253344
253372
|
} catch {
|
|
253345
253373
|
return { ok: false, error: "could not reach the publishing service; nothing was recorded", extra: { next: "check your network and himi login, then run this again" } };
|
|
253346
253374
|
}
|
|
253347
253375
|
if (r3.status !== 201 || typeof r3.body.consentId !== "string") return { ok: false, error: "the publishing service did not record the consent", extra: planeRefusal(r3) };
|
|
253348
253376
|
const b3 = r3.body;
|
|
253349
|
-
return { ok: true, consent: { consentId: b3.consentId, msid: b3.msid ?? site, appId: b3.appId ?? app2, ...typeof b3.accountId === "string" ? { accountId: b3.accountId } : {}, at: b3.at, scope: b3.scope ?? scope3 } };
|
|
253377
|
+
return { ok: true, consent: { consentId: b3.consentId, msid: b3.msid ?? site, appId: b3.appId ?? app2, ...typeof b3.accountId === "string" ? { accountId: b3.accountId } : {}, at: b3.at, scope: b3.scope ?? scope3, ...typeof b3.poolPackage === "string" ? { poolPackage: b3.poolPackage } : {} } };
|
|
253350
253378
|
}
|
|
253351
253379
|
var STORE_HANDOFF_USAGE, STORE_HANDOFF_PATH, RELOPS_CONSENT_PATH, STORE_HANDOFF_CODES, text19, SITE_RE5, UsageError6, PARAM_ALLOW, MAX_TEXT3, MAX_LIST, isObj5, clean, num4, def, lc2, postPlane, SCOPE_WORDS;
|
|
253352
253380
|
var init_store_handoff = __esm({
|
|
@@ -253355,7 +253383,8 @@ var init_store_handoff = __esm({
|
|
|
253355
253383
|
init_store_handoff_bundle();
|
|
253356
253384
|
init_store_host();
|
|
253357
253385
|
init_store_google_host();
|
|
253358
|
-
|
|
253386
|
+
init_containers_builder();
|
|
253387
|
+
STORE_HANDOFF_USAGE = "himi store handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>[,<id>]] [--out <file> | --dry-run] | himi store relops request [--dir <app>] [--app <id> --site <msid>] [--platform ios|android [--pool-package <package>]] [--scope read|read,submit] [--yes]";
|
|
253359
253388
|
STORE_HANDOFF_PATH = "/v1/admin/site/store-handoff";
|
|
253360
253389
|
RELOPS_CONSENT_PATH = "/v1/admin/site/relops-consent";
|
|
253361
253390
|
STORE_HANDOFF_CODES = [
|
|
@@ -294546,6 +294575,48 @@ function tailLast(o2) {
|
|
|
294546
294575
|
const { reminder, doNowAgain, ...rest } = o2;
|
|
294547
294576
|
return { ...rest, ...reminder !== void 0 ? { reminder } : {}, ...doNowAgain !== void 0 ? { doNowAgain } : {} };
|
|
294548
294577
|
}
|
|
294578
|
+
var NO_REFRESH_COMMANDS = /* @__PURE__ */ new Set([
|
|
294579
|
+
"login",
|
|
294580
|
+
"logout",
|
|
294581
|
+
"validate",
|
|
294582
|
+
"init",
|
|
294583
|
+
"run",
|
|
294584
|
+
"test",
|
|
294585
|
+
"pack",
|
|
294586
|
+
"build",
|
|
294587
|
+
"guide",
|
|
294588
|
+
"app-docs",
|
|
294589
|
+
// The offline guide command and its aliases.
|
|
294590
|
+
"docs",
|
|
294591
|
+
"components",
|
|
294592
|
+
"sdk",
|
|
294593
|
+
"capabilities",
|
|
294594
|
+
"skills",
|
|
294595
|
+
"agent-init",
|
|
294596
|
+
"icons",
|
|
294597
|
+
"icon",
|
|
294598
|
+
"fonts",
|
|
294599
|
+
"tokens",
|
|
294600
|
+
"surfaces",
|
|
294601
|
+
"fidelity",
|
|
294602
|
+
"ux",
|
|
294603
|
+
"studio",
|
|
294604
|
+
"eject",
|
|
294605
|
+
"import",
|
|
294606
|
+
"l10n",
|
|
294607
|
+
"hhp",
|
|
294608
|
+
"progress",
|
|
294609
|
+
"upgrade",
|
|
294610
|
+
"refresh-update-cache",
|
|
294611
|
+
"whoami",
|
|
294612
|
+
"publish-size"
|
|
294613
|
+
]);
|
|
294614
|
+
function shouldRefreshBeforeCommand(command, flags, env = process.env) {
|
|
294615
|
+
if (!command || NO_REFRESH_COMMANDS.has(command) || flags.help === true) return false;
|
|
294616
|
+
if (command === "render" && flags.remote !== true) return false;
|
|
294617
|
+
if (typeof flags["control-token"] === "string" && flags["control-token"] || env.HIMI_CONTROL_TOKEN) return false;
|
|
294618
|
+
return true;
|
|
294619
|
+
}
|
|
294549
294620
|
async function runCommand2(argv, io2, deps) {
|
|
294550
294621
|
const { _: pos, flags } = parseFlags(argv);
|
|
294551
294622
|
const flagErrors = switchFlagErrors(argv);
|
|
@@ -294829,7 +294900,7 @@ himi v${cliVersion()} \u2014 run \`himi --version\`. If authoring commands fail
|
|
|
294829
294900
|
runReleasePatch,
|
|
294830
294901
|
patchBlastRadius
|
|
294831
294902
|
};
|
|
294832
|
-
if (command
|
|
294903
|
+
if (shouldRefreshBeforeCommand(command, flags)) {
|
|
294833
294904
|
try {
|
|
294834
294905
|
const { refreshStoredLogin: refreshStoredLogin2 } = await Promise.resolve().then(() => (init_login_refresh(), login_refresh_exports));
|
|
294835
294906
|
const renewed = await refreshStoredLogin2(targetName2());
|
|
@@ -295008,6 +295079,7 @@ export {
|
|
|
295008
295079
|
ConfigLoadError,
|
|
295009
295080
|
GIT_FLAG_STORE_HALF_WRITE_NOTE,
|
|
295010
295081
|
GIT_FLAG_STORE_NOTE,
|
|
295082
|
+
NO_REFRESH_COMMANDS,
|
|
295011
295083
|
PLACEHOLDER_CLIENT_ID,
|
|
295012
295084
|
PLACEHOLDER_SITE_URL,
|
|
295013
295085
|
PREVIEW_HANDOVER_NOTE,
|
|
@@ -295097,6 +295169,7 @@ export {
|
|
|
295097
295169
|
serveUnreachableHint,
|
|
295098
295170
|
servesAll,
|
|
295099
295171
|
shellShaDivergenceWarnings,
|
|
295172
|
+
shouldRefreshBeforeCommand,
|
|
295100
295173
|
spawnUpdateRefresh,
|
|
295101
295174
|
staleUpdateLockFile,
|
|
295102
295175
|
switchFlagErrors,
|
|
Binary file
|
|
@@ -48,7 +48,7 @@ A `429` while polling is not a failure: the CLI backs off by the plane's `retryA
|
|
|
48
48
|
|
|
49
49
|
**Signing in without a Wix account.** Where the plane offers it, the device page also lets a person sign in another way (Base44 first). The success envelope then carries `credential: "federated"`, `provider` (e.g. `"base44"`), `sub` as `<provider>:<id>`, and `limits` (what such an account cannot do yet); a Wix sign-in carries `provider: "wix"` and its own `credential` (`self-serve`, …). `--provider <id>` adds `provider=<id>` to `verificationUriComplete` so the page can skip its choice (`--provider wix` does today); it goes on the start, never on `--resume`, and `--provider <non-wix> --site` exits 2 with `code: "site_requires_wix_account"`. When a site was requested and the sign-in was not a Wix account, the login still succeeds and `site.error` is `"site_requires_wix_account"`, with a `site.hint` naming the Wix login that connects the site.
|
|
50
50
|
|
|
51
|
-
**Renewing a login without a Wix account.** `himi login --browser --provider <id>` (and a device login, when the person signs in that way) also receives the plane's refresh token. It is stored beside the control token in `serve-targets.json` (owner-only) and never printed; the success envelope says `refreshable: true`. Before
|
|
51
|
+
**Renewing a login without a Wix account.** `himi login --browser --provider <id>` (and a device login, when the person signs in that way) also receives the plane's refresh token. It is stored beside the control token in `serve-targets.json` (owner-only) and never printed; the success envelope says `refreshable: true`. Before a command that can present the stored login (every command except `login`/`logout` and the offline ones — `validate`, `init`, `run`, `test`, `pack`, the guide commands and the other local tools listed in `NO_REFRESH_COMMANDS`), an expired stored federated token is renewed from it (one request, rotating the refresh token); `himi mcp` tools run through the same path, so they keep reusing the login. A failed renewal is a stderr line `{ warning: "login_refresh_failed", code, error, hint }` (`code` is `login_expired`, `federated_disabled` or `refresh_unavailable`) and the command goes on with what is stored. `himi push` that gets 401 on such a login renews once and retries the publish once; `--control-token` and `HIMI_CONTROL_TOKEN` are never renewed.
|
|
52
52
|
|
|
53
53
|
### `himi login --device --site`: `site.error` codes
|
|
54
54
|
|
|
@@ -1113,7 +1113,7 @@ these codes. None of them prints a token.
|
|
|
1113
1113
|
|
|
1114
1114
|
## `himi store handoff` and `himi store relops request` codes
|
|
1115
1115
|
|
|
1116
|
-
Both print one JSON envelope: the result on stdout (`ok: true`, with `handoffId` or `consentId`), or a failure on
|
|
1116
|
+
Both print one JSON envelope: the result on stdout (`ok: true`, with `handoffId` or `consentId`, and `poolPackage` when one was named), or a failure on
|
|
1117
1117
|
stderr with one of these codes. A refusal from the publishing service keeps its own code in `planeCode` and its HTTP
|
|
1118
1118
|
`status`.
|
|
1119
1119
|
|
|
@@ -1129,7 +1129,7 @@ stderr with one of these codes. A refusal from the publishing service keeps its
|
|
|
1129
1129
|
| `bundle_contains_secret` | Something secret-shaped survived the clean-up, so the bundle was not sent. |
|
|
1130
1130
|
| `confirmation_required` | `relops request` without a terminal needs `--yes`. Nothing was sent. |
|
|
1131
1131
|
| `consent_declined` | You did not confirm at the terminal. Nothing was sent. |
|
|
1132
|
-
| `handoff_failed` / `consent_failed` | The publishing service refused or could not be reached; `planeCode` and `status` say which. |
|
|
1132
|
+
| `handoff_failed` / `consent_failed` | The publishing service refused or could not be reached; `planeCode` and `status` say which (`invalid_pool_package`: the `--pool-package` name was refused). |
|
|
1133
1133
|
|
|
1134
1134
|
## `himi store relops request|end --platform android --seat-email` and `himi store google create-app` codes
|
|
1135
1135
|
|
|
@@ -235,13 +235,17 @@ RelOps drives it with `himi store relops pool add|status|end [--all-himi]` (see
|
|
|
235
235
|
|
|
236
236
|
The gate, every call audited (`reason: store_pool_refused`, the code in `storeAppStatus`, with the underlying cause on
|
|
237
237
|
5xx): a RelOps login on `HIMI_RELOPS_ACCOUNTS` (anyone else, the owner included: 403 `relops_only`; the sweep also takes
|
|
238
|
-
the operator static credential).
|
|
239
|
-
|
|
240
|
-
toggle opened per user, or closed again, never strands an entry on the pool. Add and status need the owner's
|
|
238
|
+
the operator static credential). There is no feature toggle: emptying `HIMI_RELOPS_ACCOUNTS` (read live) stops new adds
|
|
239
|
+
with no deploy. Add and status need the owner's
|
|
241
240
|
`play-console` consent under 90 days (403 `relops_consent_required`); **end and teardown need no consent** (they only
|
|
242
241
|
cancel Himi's own entries, which reduces exposure, so RelOps can always end). Add holds at most `HIMI_POOL_MAX_ACTIVE`
|
|
243
242
|
(default 5) open entries (429 `store_pool_full`), reserved atomically on the index row before the service is called.
|
|
244
|
-
The package is
|
|
243
|
+
The package is never taken from the request: it is the Containers app's saved `himi.*` package for the site the app
|
|
244
|
+
holds, or, for an owner-signed app with none, the `poolPackage` the owner named in their live `play-console` consent
|
|
245
|
+
(`himi store relops request --platform android --pool-package <package>`; 400 `invalid_pool_package` for a Wix-reserved, `himi.*`
|
|
246
|
+
or malformed name, or without `play-console`). The add answers `packageSource: store-app | owner-consent`, the row keeps
|
|
247
|
+
both, and the audit line carries the package. End and the sweep use the row's package; the sweep cancels an
|
|
248
|
+
owner-consent row (`app_unclaimed`) once the owner's live consent no longer names that package.
|
|
245
249
|
|
|
246
250
|
Himi's own table lives in cloudStore (`himi/store-pool/<app>/<msid>` plus the index row `himi/store-pool/index`): package,
|
|
247
251
|
msid, addedBy, addedAt, deadline (addedAt + 21 days), state `adding | active | ending | archived | stuck | failed`.
|
|
@@ -267,8 +271,9 @@ so the sweep is an internal route: schedule a daily `POST /v1/admin/store-pool/s
|
|
|
267
271
|
Config: `HIMI_POOL_MAX_ACTIVE`, `HIMI_POOL_TESTER_GROUP` (the Google Group owners add to track `alpha`),
|
|
268
272
|
`HIMI_POOL_ALERT_CHANNEL` (posted by the `MREBOT_SLACK_TOKEN` bot; unset: a log line). The closed-testing client
|
|
269
273
|
calls with Himalaya's service identity, which needs
|
|
270
|
-
`MOBILE_APPS.BRANDED_GOOGLE_CLOSED_TESTING_{CREATE,GET,UPDATE}` (restart uses UPDATE).
|
|
271
|
-
|
|
274
|
+
`MOBILE_APPS.BRANDED_GOOGLE_CLOSED_TESTING_{CREATE,GET,UPDATE}` (restart uses UPDATE). The client is the generated
|
|
275
|
+
`@wix/ambassador-wma-branded-google-closed-testing-v1-tested-app`; with no client or cloudStore wired, the routes answer
|
|
276
|
+
503 `store_pool_unconfigured`.
|
|
272
277
|
|
|
273
278
|
## Patching one item of a release
|
|
274
279
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1791.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": "b1e4f6b29f897edb559a3eeda5db714e028eebc3941ef7a1defdef70"
|
|
86
86
|
}
|