@wix/himalaya-cli 0.1837.0 → 0.1839.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 +33 -9
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -8453,7 +8453,6 @@ function assertExternalUrl(site, value2, where) {
|
|
|
8453
8453
|
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, SITE_MEMBER_PAGE_SCREENS, SITE_MEMBER_CART_SCREENS, SITE_MEMBER_ONLY_SCREENS;
|
|
8454
8454
|
var init_site_shell = __esm({
|
|
8455
8455
|
"../../core/ts/src/site-shell.ts"() {
|
|
8456
|
-
"use strict";
|
|
8457
8456
|
init_define_HHP_CATALOG();
|
|
8458
8457
|
init_himi_package();
|
|
8459
8458
|
init_icon_catalog_generated();
|
|
@@ -18912,7 +18911,6 @@ function buttonVariant(style) {
|
|
|
18912
18911
|
var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_SIZES, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty2, own2, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
|
|
18913
18912
|
var init_tokens = __esm({
|
|
18914
18913
|
"../../core/ts/src/tokens.ts"() {
|
|
18915
|
-
"use strict";
|
|
18916
18914
|
init_define_HHP_CATALOG();
|
|
18917
18915
|
SYSTEM_FONT_FAMILY = "$system";
|
|
18918
18916
|
TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
|
|
@@ -42867,6 +42865,7 @@ function shouldRevealError(args) {
|
|
|
42867
42865
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
42868
42866
|
var init_validation = __esm({
|
|
42869
42867
|
"../../core/ts/src/validation.ts"() {
|
|
42868
|
+
"use strict";
|
|
42870
42869
|
init_define_HHP_CATALOG();
|
|
42871
42870
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
42872
42871
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -147751,26 +147750,26 @@ function buildRenderTree(node3, path2 = "$", provider = null, itemScope = void 0
|
|
|
147751
147750
|
}
|
|
147752
147751
|
}
|
|
147753
147752
|
if (type2 === "EmptyState") {
|
|
147754
|
-
const
|
|
147753
|
+
const painted3 = (raw) => {
|
|
147755
147754
|
if (typeof raw !== "string") return void 0;
|
|
147756
147755
|
const r3 = resolveTreeScalar(raw, provider, itemScope);
|
|
147757
147756
|
const s5 = typeof r3 === "string" ? r3 : typeof r3 === "number" ? String(r3) : void 0;
|
|
147758
147757
|
return s5 !== void 0 && s5.trim() !== "" ? s5 : void 0;
|
|
147759
147758
|
};
|
|
147760
|
-
const subtitle =
|
|
147759
|
+
const subtitle = painted3(props2.subtitle);
|
|
147761
147760
|
if (subtitle !== void 0) values.subtitle = subtitle;
|
|
147762
|
-
const actionLabel = props2.action != null ?
|
|
147761
|
+
const actionLabel = props2.action != null ? painted3(props2.actionLabel) : void 0;
|
|
147763
147762
|
if (actionLabel !== void 0) values.actionLabel = actionLabel;
|
|
147764
147763
|
}
|
|
147765
147764
|
if (type2 === "ErrorState") {
|
|
147766
|
-
const
|
|
147765
|
+
const painted3 = (raw) => {
|
|
147767
147766
|
if (typeof raw !== "string") return void 0;
|
|
147768
147767
|
const r3 = resolveTreeScalar(raw, provider, itemScope);
|
|
147769
147768
|
return typeof r3 === "string" && r3.trim() !== "" ? r3 : void 0;
|
|
147770
147769
|
};
|
|
147771
|
-
const body2 =
|
|
147770
|
+
const body2 = painted3(props2.body);
|
|
147772
147771
|
if (body2 !== void 0) values.body = body2;
|
|
147773
|
-
const ctaLabel = props2.cta != null ?
|
|
147772
|
+
const ctaLabel = props2.cta != null ? painted3(props2.ctaLabel) : void 0;
|
|
147774
147773
|
if (ctaLabel !== void 0) values.ctaLabel = ctaLabel;
|
|
147775
147774
|
}
|
|
147776
147775
|
const template = props2.template;
|
|
@@ -147839,10 +147838,35 @@ function buildRenderTree(node3, path2 = "$", provider = null, itemScope = void 0
|
|
|
147839
147838
|
}
|
|
147840
147839
|
}
|
|
147841
147840
|
};
|
|
147842
|
-
|
|
147841
|
+
const painted2 = provider && type2 === "FragmentSlot" ? paintedFragmentCase(props2, provider, itemScope) : null;
|
|
147842
|
+
if (painted2 !== null) {
|
|
147843
|
+
for (const [key4, value2] of Object.entries(props2)) {
|
|
147844
|
+
if (key4 !== "cases") {
|
|
147845
|
+
visit(value2, `${id}.${key4}`);
|
|
147846
|
+
continue;
|
|
147847
|
+
}
|
|
147848
|
+
value2.forEach((fragment, i2) => {
|
|
147849
|
+
const content = fragment?.content;
|
|
147850
|
+
const child3 = isSduiNode(content) ? buildRenderTree(content, `${id}/${type2}`, provider, itemScope, includeRawProps, env, a11yHidden) : null;
|
|
147851
|
+
if (!child3) return;
|
|
147852
|
+
if (i2 !== painted2) child3.hidden = true;
|
|
147853
|
+
children2.push(child3);
|
|
147854
|
+
});
|
|
147855
|
+
}
|
|
147856
|
+
} else visit(props2, id);
|
|
147843
147857
|
if (children2.length) out2.children = children2;
|
|
147844
147858
|
return out2;
|
|
147845
147859
|
}
|
|
147860
|
+
function paintedFragmentCase(props2, provider, itemScope) {
|
|
147861
|
+
const cases = props2.cases;
|
|
147862
|
+
const casePath = props2.casePath ?? props2.case_path;
|
|
147863
|
+
if (!Array.isArray(cases) || !cases.length || typeof casePath !== "string" || isEnvExpr(casePath)) return null;
|
|
147864
|
+
const idOf = (fragment) => fragment?.id;
|
|
147865
|
+
const answer = casePath.startsWith("$app:") ? provider.value(casePath) : resolveTreeScalar(casePath, provider, itemScope);
|
|
147866
|
+
const picked = cases.findIndex((fragment) => idOf(fragment) === answer);
|
|
147867
|
+
const fallback = cases.findIndex((fragment) => idOf(fragment) === (props2.defaultCase ?? props2.default_case));
|
|
147868
|
+
return picked >= 0 ? picked : Math.max(fallback, 0);
|
|
147869
|
+
}
|
|
147846
147870
|
function isSduiNode(node3) {
|
|
147847
147871
|
return !!node3 && typeof node3 === "object" && !!node3.body;
|
|
147848
147872
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1839.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": "ddd15fbd07e89ff3e77da9e06144cacb790ea08de6ae86d44909ff6a"
|
|
86
86
|
}
|