@wix/himalaya-cli 0.1502.0 → 0.1504.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 +35 -29
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/splash-screens.md +4 -1
- package/package.json +2 -2
- package/templates/branded-lite/dev/index.ts +52 -2149
- package/templates/branded-lite/tier5-src/business-chat/index.ts +22 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +0 -71
package/dist/cli.mjs
CHANGED
|
@@ -22150,6 +22150,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
22150
22150
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
22151
22151
|
var init_idiom = __esm({
|
|
22152
22152
|
"../../core/ts/src/idiom.ts"() {
|
|
22153
|
+
"use strict";
|
|
22153
22154
|
IDIOM_CONTEXTS = {
|
|
22154
22155
|
ios: { native: ["ios"] },
|
|
22155
22156
|
android: { native: ["material"] },
|
|
@@ -30787,12 +30788,17 @@ function iconGlyph(name) {
|
|
|
30787
30788
|
const key3 = name.toLowerCase().replace(/[_.\s-]/g, "");
|
|
30788
30789
|
return ICON_GLYPHS[key3] ?? "\xB7";
|
|
30789
30790
|
}
|
|
30791
|
+
function avatarInitials(initials) {
|
|
30792
|
+
const Segmenter = Intl.Segmenter;
|
|
30793
|
+
const characters = Segmenter ? Array.from(new Segmenter(void 0, { granularity: "grapheme" }).segment(initials), (part3) => part3.segment) : [...initials];
|
|
30794
|
+
return characters.slice(0, 2).join("").toUpperCase();
|
|
30795
|
+
}
|
|
30790
30796
|
function avatarCircle(initials, size, color, fill = false, fontFamily = '"Wix Madefor Text", system-ui') {
|
|
30791
30797
|
let h2 = 0;
|
|
30792
30798
|
for (let i2 = 0; i2 < initials.length; i2++) h2 = (h2 * 31 + initials.charCodeAt(i2)) % 360;
|
|
30793
30799
|
const bg = fill ? `hsl(${h2}, 55%, 55%)` : color("surfaceTertiary", "#e6e6e6");
|
|
30794
30800
|
const fg = fill ? "#fff" : color("textPrimary", "#111");
|
|
30795
|
-
return /* @__PURE__ */ jsx2("div", { style: { width: size, height: size, borderRadius: "50%", background: bg, color: fg, display: "grid", placeItems: "center", fontWeight: 700, fontSize: size * 0.36, fontFamily, flex: "none" }, children: initials
|
|
30801
|
+
return /* @__PURE__ */ jsx2("div", { style: { width: size, height: size, borderRadius: "50%", background: bg, color: fg, display: "grid", placeItems: "center", fontWeight: 700, fontSize: size * 0.36, fontFamily, flex: "none" }, children: avatarInitials(initials) });
|
|
30796
30802
|
}
|
|
30797
30803
|
var BINDING_SIGIL2, isBinding, isNodeLike, MD_ESCAPE, MD_ESCAPES, mdEsc, MD_INLINE, CODE_STYLE, ICON_GLYPHS, ICON_GLYPH_NAMES;
|
|
30798
30804
|
var init_helpers = __esm({
|
|
@@ -121375,7 +121381,7 @@ var init_renderNode = __esm({
|
|
|
121375
121381
|
if (typeof imageUrl === "string" && imageUrl) {
|
|
121376
121382
|
return /* @__PURE__ */ jsx11("img", { ...a11y, src: resolveAssetUrl(imageUrl, ctx.assetBaseUrl), alt: "", style: { width: size, height: size, borderRadius: "50%", objectFit: "cover", flex: "none", ...wrap } });
|
|
121377
121383
|
}
|
|
121378
|
-
return /* @__PURE__ */ jsx11("div", { ...a11y, style: { width: size, height: size, borderRadius: "50%", background: C2("accentPrimary", "#116DFF"), color: C2("textOnAccent", "#fff"), display: "grid", placeItems: "center", fontWeight: 600, fontSize: size * 0.4, fontFamily: bodyFont(ctx), flex: "none", ...wrap }, children: (asText2(initials) || "?")
|
|
121384
|
+
return /* @__PURE__ */ jsx11("div", { ...a11y, style: { width: size, height: size, borderRadius: "50%", background: C2("accentPrimary", "#116DFF"), color: C2("textOnAccent", "#fff"), display: "grid", placeItems: "center", fontWeight: 600, fontSize: size * 0.4, fontFamily: bodyFont(ctx), flex: "none", ...wrap }, children: avatarInitials(asText2(initials) || "?") });
|
|
121379
121385
|
});
|
|
121380
121386
|
IconNode = withExtras("IconNode", ({ props, ctx, wrap }) => {
|
|
121381
121387
|
const C2 = ctx.color;
|
|
@@ -165105,33 +165111,33 @@ var init_preview_assets_generated = __esm({
|
|
|
165105
165111
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
165106
165112
|
init_preview_assets_format();
|
|
165107
165113
|
PREVIEW_ASSET_MANIFEST = [
|
|
165108
|
-
{ key: "assets/DashboardHost-
|
|
165109
|
-
{ key: "assets/DevDrawer-
|
|
165110
|
-
{ key: "assets/IdiomCompare-
|
|
165111
|
-
{ key: "assets/LightboxViewer-
|
|
165112
|
-
{ key: "assets/PhonePreviewControl-
|
|
165113
|
-
{ key: "assets/SchemeCompare-
|
|
165114
|
-
{ key: "assets/index-
|
|
165115
|
-
{ key: "assets/pdf-
|
|
165116
|
-
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
165117
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
165118
|
-
{ key: "assets/pdfDocument-
|
|
165119
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
165120
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
165121
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
165122
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
165123
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
165124
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
165125
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
165126
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
165127
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
165128
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
165129
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
165130
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
165131
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
165132
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
165133
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
165134
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
165114
|
+
{ key: "assets/DashboardHost-lyHYXHuD.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2916, sha256: "d714aaba06f8832b04b089fba6db6a70218f08a5ea412486af05e7ae6be4f3bf" },
|
|
165115
|
+
{ key: "assets/DevDrawer-DFjJakFH.js", contentType: "application/javascript; charset=utf-8", offset: 2924, length: 16744, sha256: "451195288ed7538b5837eb2728db9e238b79994bada3c0da2d68cc724180c309" },
|
|
165116
|
+
{ key: "assets/IdiomCompare-BS8D62MN.js", contentType: "application/javascript; charset=utf-8", offset: 19668, length: 1892, sha256: "2733ff1ba2fb1a7db4acbf792d658aa5351b97b7f66d76d05bc0636d2ae5b9a6" },
|
|
165117
|
+
{ key: "assets/LightboxViewer-BA8NnNMt.js", contentType: "application/javascript; charset=utf-8", offset: 21560, length: 8132, sha256: "a6d325a705486aeec5b75074b105f4c96f247b6c658831d0ee9931eb9850394a" },
|
|
165118
|
+
{ key: "assets/PhonePreviewControl-IcIGz4PD.js", contentType: "application/javascript; charset=utf-8", offset: 29692, length: 37729, sha256: "b19a2f60077f23fa575957ef829eaf6025a310401afed4993903e15ec73eabfb" },
|
|
165119
|
+
{ key: "assets/SchemeCompare-DV8FUeO3.js", contentType: "application/javascript; charset=utf-8", offset: 67421, length: 1824, sha256: "66b0b48bbe708ff7c09734cf74ab537292b812b0fecb5b0dc7d326bde35575df" },
|
|
165120
|
+
{ key: "assets/index-CVbkvo-O.js", contentType: "application/javascript; charset=utf-8", offset: 69245, length: 1311557, sha256: "63f6534405cc00ea45d6dd48fee69bffba89d343493a3169ef75055f4f8e5e77" },
|
|
165121
|
+
{ key: "assets/pdf-D7kp5epP.js", contentType: "application/javascript; charset=utf-8", offset: 1380802, length: 488199, sha256: "3cf5f09fe2432fdc0cfe85bfc66956c8abac0862cf17d942caeeba19111b2c33" },
|
|
165122
|
+
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1869001, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
|
|
165123
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1869074, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
165124
|
+
{ key: "assets/pdfDocument-C_peMth9.js", contentType: "application/javascript; charset=utf-8", offset: 3186108, length: 3379, sha256: "e7525980a1a991d29caba74a158a21fcd926bacbab64ce5bd2d177ffa199df1c" },
|
|
165125
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3189487, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
165126
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3191753, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
165127
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3196363, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
165128
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3684947, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
165129
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3775871, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
165130
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3866855, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
165131
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3957835, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
165132
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4048707, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
165133
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4139687, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
165134
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4248323, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
165135
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4357407, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
165136
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4466455, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
165137
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4574155, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
165138
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4662263, length: 6748, sha256: "4a92459977d7cefa1a6a7e020c3a63509737f083b3f2773557c1a5771665811a" },
|
|
165139
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4669011, length: 4947, sha256: "dbe3e83a81c236caac3350f4e59823c980a304e29e51f8866c562d3ee7ceddad" },
|
|
165140
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4673958, length: 18080, sha256: "937286e50af2fc4e44f7fb35b277f35254e5eb24a3d364a70cfa914d4286d0d9" }
|
|
165135
165141
|
];
|
|
165136
165142
|
}
|
|
165137
165143
|
});
|
|
Binary file
|
package/guides/splash-screens.md
CHANGED
|
@@ -365,7 +365,10 @@ requires a new binary; changing the served block alone only changes the in-app l
|
|
|
365
365
|
A declared `splash.backgroundColor` now overrides branded-lite's provisioning
|
|
366
366
|
primary color for the native launch background, in both light and dark appearance.
|
|
367
367
|
Without it the provisioning color remains the default. For a gradient, set this
|
|
368
|
-
token to
|
|
368
|
+
token to the gradient's middle colour: its centre colour, or a token mixing the
|
|
369
|
+
two centre colours. If that mix turns grey (for example, pink + mint), choose the
|
|
370
|
+
more vivid of those colours instead, so the flat launch screen looks like most of
|
|
371
|
+
the gradient. Android and iOS/macOS paint that solid color first and fade the
|
|
369
372
|
gradient over it in 400 ms (immediate with reduce motion or Determinism).
|
|
370
373
|
The Android branded-lite shell mounts its first screen beneath the splash after
|
|
371
374
|
seeding and dismisses after that screen draws a descriptor (including a worker's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1504.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": [
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"artifactId": "himalaya-cli"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"falconPackageHash": "
|
|
74
|
+
"falconPackageHash": "ebbb3a7d9d752a3f9c5ae0a0677702ad8d203de8fb71f67488b18121"
|
|
75
75
|
}
|