@wix/himalaya-cli 0.954.0 → 0.956.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 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -5261,6 +5261,7 @@ function resolveTranslation(value, catalog, sourceCatalog) {
|
|
|
5261
5261
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
5262
5262
|
var init_bindings = __esm({
|
|
5263
5263
|
"../../core/ts/src/bindings.ts"() {
|
|
5264
|
+
"use strict";
|
|
5264
5265
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
5265
5266
|
BINDING_SIGIL_RE = new RegExp(
|
|
5266
5267
|
`^\\$(?:${BINDING_SIGILS.filter((s) => s !== "t").join("|")})\\b|^\\$t:`
|
|
@@ -18546,6 +18547,7 @@ function shouldRevealError(args) {
|
|
|
18546
18547
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
18547
18548
|
var init_validation = __esm({
|
|
18548
18549
|
"../../core/ts/src/validation.ts"() {
|
|
18550
|
+
"use strict";
|
|
18549
18551
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
18550
18552
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
18551
18553
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -21970,6 +21972,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
21970
21972
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
21971
21973
|
var init_worker_subtree = __esm({
|
|
21972
21974
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
21975
|
+
"use strict";
|
|
21973
21976
|
init_worker_subtree_safe_types_generated();
|
|
21974
21977
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
21975
21978
|
maxEncodedBytes: 65536,
|
|
@@ -46298,6 +46301,33 @@ function withDerivedAccents(tokensOverlay, wst) {
|
|
|
46298
46301
|
colors.textOnAccent = keepCrawledLight(family.textOnAccent, tokensOverlay.colors?.textOnAccent);
|
|
46299
46302
|
return { ...tokensOverlay, colors };
|
|
46300
46303
|
}
|
|
46304
|
+
function mergedArm(colors, name, arm, fallback) {
|
|
46305
|
+
const value = colors[name];
|
|
46306
|
+
if (typeof value === "string" && value.trim() !== "") return value;
|
|
46307
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
46308
|
+
const scheme = value;
|
|
46309
|
+
for (const candidate of [scheme[arm], scheme.light]) {
|
|
46310
|
+
if (typeof candidate === "string" && candidate.trim() !== "") return candidate;
|
|
46311
|
+
}
|
|
46312
|
+
}
|
|
46313
|
+
return fallback;
|
|
46314
|
+
}
|
|
46315
|
+
function alignAccentsToSurfaces(mergedColors, overlayColors) {
|
|
46316
|
+
const primary = lightArm2(overlayColors?.accentPrimary);
|
|
46317
|
+
if (!primary) return mergedColors;
|
|
46318
|
+
const secondary = lightArm2(overlayColors?.accentSecondary) ?? deriveSecondaryAccent(primary);
|
|
46319
|
+
const colors = { ...mergedColors };
|
|
46320
|
+
const family = deriveAccentFamily(primary, secondary, {
|
|
46321
|
+
light: mergedArm(colors, "surfacePrimary", "light", "#FFFFFF"),
|
|
46322
|
+
dark: mergedArm(colors, "surfacePrimary", "dark", "#0D1117"),
|
|
46323
|
+
highContrast: mergedArm(colors, "surfacePrimary", "highContrast", "#000000")
|
|
46324
|
+
});
|
|
46325
|
+
colors.accentPrimary = family.accentPrimary;
|
|
46326
|
+
colors.accentSecondary = family.accentSecondary;
|
|
46327
|
+
colors.accentSurface = family.accentSurface;
|
|
46328
|
+
colors.textOnAccent = family.textOnAccent;
|
|
46329
|
+
return colors;
|
|
46330
|
+
}
|
|
46301
46331
|
function deriveBranding(input) {
|
|
46302
46332
|
const primaryColor = lightArm2(input.tokensOverlay.colors?.accentPrimary);
|
|
46303
46333
|
const secondaryColor = secondBrandColour(input.wst) ?? (primaryColor ? deriveSecondaryAccent(primaryColor) : void 0);
|
|
@@ -48833,6 +48863,10 @@ async function applyOverlays(input) {
|
|
|
48833
48863
|
if (existsSync52(pkgTokens) && (tokens.colors || tokens.typography)) {
|
|
48834
48864
|
const cur = JSON.parse(readFileSync62(pkgTokens, "utf8"));
|
|
48835
48865
|
const merged = deepMerge3(cur, tokens);
|
|
48866
|
+
const mergedColors = merged.colors;
|
|
48867
|
+
if (mergedColors && typeof mergedColors === "object" && !Array.isArray(mergedColors)) {
|
|
48868
|
+
merged.colors = alignAccentsToSurfaces(mergedColors, tokens.colors);
|
|
48869
|
+
}
|
|
48836
48870
|
writeFileSync21(pkgTokens, JSON.stringify(merged, null, 2) + "\n");
|
|
48837
48871
|
wrote.push(pkgTokens);
|
|
48838
48872
|
}
|
|
@@ -48949,6 +48983,7 @@ var init_apply2 = __esm({
|
|
|
48949
48983
|
init_icon();
|
|
48950
48984
|
init_brandable_shells();
|
|
48951
48985
|
init_customer_build();
|
|
48986
|
+
init_branding_derive();
|
|
48952
48987
|
init_home_descriptor();
|
|
48953
48988
|
STAGED = ".himi/brand";
|
|
48954
48989
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.956.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": [
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"artifactId": "himalaya-cli"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"falconPackageHash": "
|
|
67
|
+
"falconPackageHash": "fb07bf20632ab00e2803dd1051fa69df3a13555e1691547c243d156c"
|
|
68
68
|
}
|