@wix/himalaya-cli 0.1815.0 → 0.1816.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/{b01b55d664ce9b920b5074a3f660141e38190a446fb008677740736d22b5d759.bin → 6a6533b17d5be5f57674406c5399ebd5b4474e0db8ef92bc117ce36d9cf38c5e.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +54 -45
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -48873,7 +48873,7 @@ function snackbarImageUrl(raw) {
|
|
|
48873
48873
|
const authority = trimmed.slice(url.protocol.length);
|
|
48874
48874
|
return url.protocol === "https:" && url.hostname && authority.startsWith("//") && !authority.startsWith("///") ? trimmed : void 0;
|
|
48875
48875
|
}
|
|
48876
|
-
var SNACKBAR_TONE_TOKENS, TONES, SNACKBAR_LIMITS;
|
|
48876
|
+
var SNACKBAR_TONE_TOKENS, SNACKBAR_TONE_FALLBACKS, TONES, SNACKBAR_LIMITS;
|
|
48877
48877
|
var init_snackbarRules = __esm({
|
|
48878
48878
|
"../../core/web-renderer/src/snackbarRules.ts"() {
|
|
48879
48879
|
init_define_HHP_CATALOG();
|
|
@@ -48884,6 +48884,13 @@ var init_snackbarRules = __esm({
|
|
|
48884
48884
|
danger: "danger",
|
|
48885
48885
|
foreground: "textOnAccent"
|
|
48886
48886
|
};
|
|
48887
|
+
SNACKBAR_TONE_FALLBACKS = {
|
|
48888
|
+
info: "#1c1f26",
|
|
48889
|
+
success: "#116329",
|
|
48890
|
+
warning: "#7D5300",
|
|
48891
|
+
danger: "#B42318",
|
|
48892
|
+
foreground: "#ffffff"
|
|
48893
|
+
};
|
|
48887
48894
|
TONES = ["info", "success", "warning", "danger"];
|
|
48888
48895
|
SNACKBAR_LIMITS = {
|
|
48889
48896
|
/** The message is clamped to this many lines, ellipsised. */
|
|
@@ -142298,8 +142305,8 @@ var init_renderNode = __esm({
|
|
|
142298
142305
|
{
|
|
142299
142306
|
message: txt(props2.message, ctx),
|
|
142300
142307
|
tone,
|
|
142301
|
-
background: ctx.color(SNACKBAR_TONE_TOKENS[tone],
|
|
142302
|
-
foreground: ctx.color(SNACKBAR_TONE_TOKENS.foreground,
|
|
142308
|
+
background: ctx.color(SNACKBAR_TONE_TOKENS[tone], SNACKBAR_TONE_FALLBACKS[tone]),
|
|
142309
|
+
foreground: ctx.color(SNACKBAR_TONE_TOKENS.foreground, SNACKBAR_TONE_FALLBACKS.foreground),
|
|
142303
142310
|
fontFamily: bodyFont(ctx),
|
|
142304
142311
|
radius: ctx.radius("md", 10),
|
|
142305
142312
|
imageRadius: ctx.radius("sm", 6),
|
|
@@ -252656,52 +252663,52 @@ var init_preview_assets_generated = __esm({
|
|
|
252656
252663
|
init_define_HHP_CATALOG();
|
|
252657
252664
|
init_preview_assets_format();
|
|
252658
252665
|
PREVIEW_ASSET_MANIFEST = [
|
|
252659
|
-
{ key: "assets/DashboardHost-
|
|
252660
|
-
{ key: "assets/DevDrawer-
|
|
252661
|
-
{ key: "assets/IdiomCompare-
|
|
252662
|
-
{ key: "assets/LightboxViewer-
|
|
252663
|
-
{ key: "assets/OfflineReadingBar-
|
|
252664
|
-
{ key: "assets/PhonePreviewControl-
|
|
252665
|
-
{ key: "assets/SchemeCompare-
|
|
252666
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
252666
|
+
{ key: "assets/DashboardHost-BTuxidUs.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "0609e12596a679945ac827246fe7066a018f9b5f5efd1ca242cbb1346ef1ef82" },
|
|
252667
|
+
{ key: "assets/DevDrawer-BYork7D7.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "6cb51fec21877078c3e829afcc4b51cb334fdb0e1a3a4539f48bf42e33809f10" },
|
|
252668
|
+
{ key: "assets/IdiomCompare-CJTqirki.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "2ee7606f089027c39149473aed1f88aba8f788026bf3ddddc076cb3d166b630c" },
|
|
252669
|
+
{ key: "assets/LightboxViewer-BtGlQvVn.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "c0fd11c539f233095e6cd18bca66a25dfbd120b56bd63494c791359e4251dfe8" },
|
|
252670
|
+
{ key: "assets/OfflineReadingBar-DsTSKkNB.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "1f9534fbfb50e03c042b2e4ed0ce13e9cd6b0f89a66e420a8fd6fbaff19de8cd" },
|
|
252671
|
+
{ key: "assets/PhonePreviewControl-DAykTQyN.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "c6b8156190c8e2c28dda6e255299317495031e5895427953af3e3aa340a625e1" },
|
|
252672
|
+
{ key: "assets/SchemeCompare-BhxAlMkT.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "e9760c460c87179f53ef8702b6533774b9caaa266d7dcbfd7c57552e0dfcb29b" },
|
|
252673
|
+
{ key: "assets/WixFrogTelemetrySink-CBDK6t3t.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "f1fba34ca7fa3ce315c4e166b1ac1dd4ebffd9d624d8613007ce46fbd56f8248" },
|
|
252667
252674
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
252668
252675
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
252669
|
-
{ key: "assets/catalogFontFaces-
|
|
252676
|
+
{ key: "assets/catalogFontFaces-ClufIOZz.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "955c7a159e117dff175d47148d1e680f747527f40296f1ae101079eb32805864" },
|
|
252670
252677
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
252671
|
-
{ key: "assets/files-transfer-
|
|
252678
|
+
{ key: "assets/files-transfer-BKq34gdo.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "082f93fab59deb398c5706edbcceb943bf119ec62b770c18af433a27d717f809" },
|
|
252672
252679
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
252673
|
-
{ key: "assets/frogApiRules-
|
|
252680
|
+
{ key: "assets/frogApiRules-D49qZOFJ.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "2adc1477ed6b13c3a92049d5d0e8f597e9e58b6a6dda1f4729b18c6b9416d413" },
|
|
252674
252681
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
252675
252682
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
252676
252683
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
252677
|
-
{ key: "assets/index-
|
|
252678
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252679
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252680
|
-
{ key: "assets/pdf-
|
|
252681
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252682
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
252683
|
-
{ key: "assets/pdfDocument-
|
|
252684
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252685
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
252686
|
-
{ key: "assets/webviewBridgeHost-
|
|
252687
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
252688
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
252689
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
252690
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252691
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
252692
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
252693
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252694
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
252695
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252696
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
252697
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
252698
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252699
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252700
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
252701
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
252702
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
252703
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
252704
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
252684
|
+
{ key: "assets/index-B3Umiitd.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1609815, sha256: "f848c849705f99e533cc6520de90c1f64296d8d5d3074bbf974d0271aa3e9f76" },
|
|
252685
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1755439, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
252686
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1763190, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
252687
|
+
{ key: "assets/pdf-DJ2HpPVo.js", contentType: "application/javascript; charset=utf-8", offset: 1773721, length: 488215, sha256: "6a6533b17d5be5f57674406c5399ebd5b4474e0db8ef92bc117ce36d9cf38c5e" },
|
|
252688
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2261936, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
252689
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2262026, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
252690
|
+
{ key: "assets/pdfDocument-Bu_w7BfF.js", contentType: "application/javascript; charset=utf-8", offset: 3579060, length: 3470, sha256: "6bc05e35d64bd4474a9981ea2cd43efd74d85ca0ecccc56925be65031595b4a6" },
|
|
252691
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3582530, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
252692
|
+
{ key: "assets/scrollLinkedRuntime-CJUtSbja.js", contentType: "application/javascript; charset=utf-8", offset: 3584796, length: 2278, sha256: "d9ba5bf78d6b5e9ccbdd87de46f686dadd56ed1e49a501cacfab102e756519ab" },
|
|
252693
|
+
{ key: "assets/webviewBridgeHost-B6bMich3.js", contentType: "application/javascript; charset=utf-8", offset: 3587074, length: 9889, sha256: "2fc7fba364acb60002a7ac66d1a8ae89f25e2766a3c2198d2dfce2e5b1d13956" },
|
|
252694
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3596963, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
252695
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3601573, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
252696
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4090157, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
252697
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4181081, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
252698
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4272065, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
252699
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4363045, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
252700
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4453917, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
252701
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4544897, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
252702
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4653533, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
252703
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4762617, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
252704
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4871665, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
252705
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4979365, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
252706
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5067473, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
252707
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5074291, length: 4924, sha256: "74c98d9f6b2f194fbe0aed2ce9ced28c4750267ffb2de81708b0cbe5943087f1" },
|
|
252708
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5079215, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
252709
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5090672, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
252710
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5091843, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
252711
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5116146, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
252705
252712
|
];
|
|
252706
252713
|
}
|
|
252707
252714
|
});
|
|
@@ -291886,15 +291893,17 @@ async function loginCommand(ctx) {
|
|
|
291886
291893
|
if (providerFlag && providerFlag !== "wix") {
|
|
291887
291894
|
try {
|
|
291888
291895
|
const meta = await fetch(`${ownerIssue.replace(/\/$/, "")}/.well-known/oauth-authorization-server`, { signal: AbortSignal.timeout(5e3) });
|
|
291889
|
-
const
|
|
291890
|
-
|
|
291896
|
+
const doc = meta.ok ? await meta.json() : void 0;
|
|
291897
|
+
const base2 = doc?.himi_federated_browser_base ?? doc?.issuer;
|
|
291898
|
+
if (typeof base2 === "string" && /^(https:\/\/[^/]+|http:\/\/(127\.0\.0\.1|localhost)(:\d+)?(\/|$))/.test(base2)) forwardBase = base2;
|
|
291891
291899
|
} catch {
|
|
291892
291900
|
}
|
|
291893
291901
|
}
|
|
291894
291902
|
let result;
|
|
291895
291903
|
try {
|
|
291896
291904
|
result = await browserLogin2({
|
|
291897
|
-
|
|
291905
|
+
// A federated sign-in also STARTS on that base, for the same reason it returns there.
|
|
291906
|
+
ownerIssue: forwardBase ?? ownerIssue,
|
|
291898
291907
|
...forwardBase ? { forwardBase } : {},
|
|
291899
291908
|
noOpen: !!flags["no-open"],
|
|
291900
291909
|
log: (line) => io2.error(line),
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1816.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": "c7f34109aa1220f43a6769ceb4e2f574f8f2d0596ad017a82c5fa0a7"
|
|
86
86
|
}
|