@wix/himalaya-cli 0.1057.0 → 0.1058.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 +34 -23
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -22812,6 +22812,7 @@ function shouldRevealError(args) {
|
|
|
22812
22812
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
22813
22813
|
var init_validation = __esm({
|
|
22814
22814
|
"../../core/ts/src/validation.ts"() {
|
|
22815
|
+
"use strict";
|
|
22815
22816
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
22816
22817
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
22817
22818
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -26412,6 +26413,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
26412
26413
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
26413
26414
|
var init_worker_subtree = __esm({
|
|
26414
26415
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
26416
|
+
"use strict";
|
|
26415
26417
|
init_worker_subtree_safe_types_generated();
|
|
26416
26418
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
26417
26419
|
maxEncodedBytes: 65536,
|
|
@@ -28379,7 +28381,10 @@ function renderInner(node, ctx) {
|
|
|
28379
28381
|
case "Badge": {
|
|
28380
28382
|
const _bt = boundTokenName(props.tokenPath, props.token, ctx);
|
|
28381
28383
|
const c = _bt ? C(_bt, "#116DFF") : sevColor(ctx, props.style ?? "info");
|
|
28382
|
-
|
|
28384
|
+
const liveCount = typeof props.text === "string" && /^\$(?:service|flag)\b/.test(props.text);
|
|
28385
|
+
const badgeLabel = modifiers?.accessibilityLabel;
|
|
28386
|
+
const badgeRole = liveCount ? "status" : typeof badgeLabel === "string" && badgeLabel.trim() !== "" ? "img" : void 0;
|
|
28387
|
+
return /* @__PURE__ */ jsx6("span", { role: badgeRole, style: { display: "inline-flex", alignItems: "center", padding: "3px 9px", borderRadius: 999, fontSize: 12, fontWeight: 700, fontFamily: bodyFont(ctx), background: `color-mix(in srgb, ${c} 16%, ${C("surfacePrimary", "#fff")})`, color: c, ...wrap }, children: ctx.empty ? "" : txt(props.text, ctx) || "Badge" });
|
|
28383
28388
|
}
|
|
28384
28389
|
case "Tag": {
|
|
28385
28390
|
const c = C(boundTokenName(props.tokenPath, props.token, ctx) ?? "accentPrimary", "#116DFF");
|
|
@@ -30298,21 +30303,22 @@ var init_renderNode = __esm({
|
|
|
30298
30303
|
opacity: disabled(at) ? 0.4 : 1,
|
|
30299
30304
|
userSelect: "none"
|
|
30300
30305
|
});
|
|
30306
|
+
const named = { [ROLE_WHEN_NAMED]: "group" };
|
|
30301
30307
|
if (ctx.empty) {
|
|
30302
|
-
return /* @__PURE__ */ jsxs3("div", { style: box, children: [
|
|
30308
|
+
return /* @__PURE__ */ jsxs3("div", { ...named, style: box, children: [
|
|
30303
30309
|
/* @__PURE__ */ jsx6("span", { style: btn("min"), children: "\u2212" }),
|
|
30304
30310
|
/* @__PURE__ */ jsx6("b", { style: { fontSize: 16, minWidth: 24, textAlign: "center", color: C("textPrimary", "#111") }, children: "\u2014" }),
|
|
30305
30311
|
/* @__PURE__ */ jsx6("span", { style: btn("max"), children: "+" })
|
|
30306
30312
|
] });
|
|
30307
30313
|
}
|
|
30308
30314
|
if (!ctx.onAction) {
|
|
30309
|
-
return /* @__PURE__ */ jsxs3("div", { style: box, children: [
|
|
30315
|
+
return /* @__PURE__ */ jsxs3("div", { ...named, style: box, children: [
|
|
30310
30316
|
/* @__PURE__ */ jsx6("span", { style: btn("min"), children: "\u2212" }),
|
|
30311
30317
|
/* @__PURE__ */ jsx6("b", { style: { fontSize: 16, minWidth: 24, textAlign: "center", color: C("textPrimary", "#111") }, children: value }),
|
|
30312
30318
|
/* @__PURE__ */ jsx6("span", { style: btn("max"), children: "+" })
|
|
30313
30319
|
] });
|
|
30314
30320
|
}
|
|
30315
|
-
return /* @__PURE__ */ jsxs3("div", { style: box, children: [
|
|
30321
|
+
return /* @__PURE__ */ jsxs3("div", { ...named, style: box, children: [
|
|
30316
30322
|
/* @__PURE__ */ jsx6("button", { type: "button", "aria-label": "Decrease", disabled: disabled("min"), onClick: () => bump(-step), style: { ...btn("min"), font: "inherit" }, children: "\u2212" }),
|
|
30317
30323
|
/* @__PURE__ */ jsx6("b", { style: { fontSize: 16, minWidth: 24, textAlign: "center", color: C("textPrimary", "#111"), fontVariantNumeric: "tabular-nums" }, children: value }),
|
|
30318
30324
|
/* @__PURE__ */ jsx6("button", { type: "button", "aria-label": "Increase", disabled: disabled("max"), onClick: () => bump(step), style: { ...btn("max"), font: "inherit" }, children: "+" })
|
|
@@ -30525,10 +30531,11 @@ var init_renderNode = __esm({
|
|
|
30525
30531
|
const imageUrl = isBinding(props.imageUrl) ? boundUrl : props.imageUrl;
|
|
30526
30532
|
const initials = isBinding(props.initials) ? boundInitials : props.initials;
|
|
30527
30533
|
const size = props.size ?? 48;
|
|
30534
|
+
const a11y = { [ROLE_WHEN_NAMED]: "img", [SELF_RENDERED_LEAF]: true };
|
|
30528
30535
|
if (typeof imageUrl === "string" && imageUrl) {
|
|
30529
|
-
return /* @__PURE__ */ jsx6("img", { src: resolveAssetUrl(imageUrl, ctx.assetBaseUrl), alt: "", style: { width: size, height: size, borderRadius: "50%", objectFit: "cover", flex: "none", ...wrap } });
|
|
30536
|
+
return /* @__PURE__ */ jsx6("img", { ...a11y, src: resolveAssetUrl(imageUrl, ctx.assetBaseUrl), alt: "", style: { width: size, height: size, borderRadius: "50%", objectFit: "cover", flex: "none", ...wrap } });
|
|
30530
30537
|
}
|
|
30531
|
-
return /* @__PURE__ */ jsx6("div", { style: { width: size, height: size, borderRadius: "50%", background: C("accentPrimary", "#116DFF"), color: C("textOnAccent", "#fff"), display: "grid", placeItems: "center", fontWeight: 600, fontSize: size * 0.4, fontFamily: bodyFont(ctx), flex: "none", ...wrap }, children: (asText2(initials) || "?").slice(0, 2).toUpperCase() });
|
|
30538
|
+
return /* @__PURE__ */ jsx6("div", { ...a11y, style: { width: size, height: size, borderRadius: "50%", background: C("accentPrimary", "#116DFF"), color: C("textOnAccent", "#fff"), display: "grid", placeItems: "center", fontWeight: 600, fontSize: size * 0.4, fontFamily: bodyFont(ctx), flex: "none", ...wrap }, children: (asText2(initials) || "?").slice(0, 2).toUpperCase() });
|
|
30532
30539
|
});
|
|
30533
30540
|
IconNode = withExtras("IconNode", ({ props, ctx, wrap }) => {
|
|
30534
30541
|
const C = ctx.color;
|
|
@@ -30833,7 +30840,11 @@ var init_renderNode = __esm({
|
|
|
30833
30840
|
const shown2 = avatars.slice(0, maxVisible);
|
|
30834
30841
|
const overflow = props.overflowCount || Math.max(0, avatars.length - maxVisible);
|
|
30835
30842
|
const shift = Math.round(size * (1 - (props.overlapRatio ?? 0.67)));
|
|
30836
|
-
|
|
30843
|
+
const caption = useBoundString(props.caption, ctx).trim();
|
|
30844
|
+
const count = shown2.length + overflow;
|
|
30845
|
+
const countText = count > 0 ? `${count} ${count === 1 ? "person" : "people"}` : "";
|
|
30846
|
+
const groupName = [caption, countText].filter(Boolean).join(", ");
|
|
30847
|
+
return /* @__PURE__ */ jsxs3("div", { role: "group", "aria-label": groupName || void 0, "data-a11y-value": countText || void 0, ...{ [SELF_RENDERED_LEAF]: true }, style: { width: "100%", ...wrap }, children: [
|
|
30837
30848
|
/* @__PURE__ */ jsxs3("div", { style: { display: "flex" }, children: [
|
|
30838
30849
|
shown2.map((a, i) => {
|
|
30839
30850
|
const ring = props.ringGradient ? ctx.gradient(props.ringGradient) : void 0;
|
|
@@ -31662,7 +31673,7 @@ var init_renderNode = __esm({
|
|
|
31662
31673
|
/* @__PURE__ */ jsxs3("div", { style: { position: "relative", height: Math.min(props.expandedHeight ?? 120, 160), borderRadius: ctx.radius("md", 10), overflow: "hidden", background: imageUrl ? void 0 : `linear-gradient(135deg, ${C("accentPrimary", "#116DFF")}, ${C("accentSecondary", "#0E5FE3")})` }, children: [
|
|
31663
31674
|
imageUrl && /* @__PURE__ */ jsx6("img", { src: imageUrl, alt: "", style: { width: "100%", height: "100%", objectFit: "cover" } }),
|
|
31664
31675
|
/* @__PURE__ */ jsxs3("div", { style: { position: "absolute", left: 14, bottom: 12, color: "#fff", textShadow: "0 1px 4px rgba(0,0,0,.5)" }, children: [
|
|
31665
|
-
/* @__PURE__ */ jsx6("div", { style: { fontFamily: ctx.font("title1").family || ctx.idiom && ctx.idiom !== "base" ? fontStack(ctx.font("title1").family, ctx.idiom) : '"Wix Madefor Display", system-ui', fontWeight: 700, fontSize: 20 }, children: txt(props.title, ctx) }),
|
|
31676
|
+
/* @__PURE__ */ jsx6("div", { role: "heading", "aria-level": 2, style: { fontFamily: ctx.font("title1").family || ctx.idiom && ctx.idiom !== "base" ? fontStack(ctx.font("title1").family, ctx.idiom) : '"Wix Madefor Display", system-ui', fontWeight: 700, fontSize: 20 }, children: txt(props.title, ctx) }),
|
|
31666
31677
|
props.subtitle && /* @__PURE__ */ jsx6("div", { style: { fontSize: 13, opacity: 0.9 }, children: txt(props.subtitle, ctx) })
|
|
31667
31678
|
] })
|
|
31668
31679
|
] }),
|
|
@@ -52457,21 +52468,21 @@ var init_preview_assets_generated = __esm({
|
|
|
52457
52468
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
52458
52469
|
init_preview_assets_format();
|
|
52459
52470
|
PREVIEW_ASSET_MANIFEST = [
|
|
52460
|
-
{ key: "assets/index-
|
|
52461
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
52462
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
52463
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
52464
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
52465
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
52466
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
52467
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
52468
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
52469
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
52470
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
52471
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
52472
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
52473
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
52474
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
52471
|
+
{ key: "assets/index-zgMUMszy.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1058954, sha256: "f7d0a27ec7c0241f1ab3bbda5a83b3d0195f95c0cefbda2125289ce966b6f2da" },
|
|
52472
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 1058962, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
52473
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 1063572, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
52474
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 1552156, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
52475
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 1643080, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
52476
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 1734064, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
52477
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 1825044, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
52478
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 1915916, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
52479
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 2006896, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
52480
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 2115532, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
52481
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 2224616, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
52482
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 2333664, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
52483
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 2441364, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
52484
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 2529472, length: 4947, sha256: "b2015f4f6ddcb285a96284836207d8e60d0bf4de727b072c4a3b48e919f5067a" },
|
|
52485
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 2534419, length: 17209, sha256: "dffc9718e2faa63ae2cc919e0a842f585ed565aaaa7c53778e90379442c731b6" }
|
|
52475
52486
|
];
|
|
52476
52487
|
}
|
|
52477
52488
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1058.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": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "5c9836ce71d9e3a64159782eaa83ac1acaa09e2857cb96725813b91b"
|
|
69
69
|
}
|