@wix/himalaya-cli 0.824.0 → 0.825.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 +26 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -33841,6 +33841,17 @@ function buildRenderTree(node, path = "$", provider = null, itemScope = void 0,
|
|
|
33841
33841
|
if (r !== void 0 && r !== null) values[key2] = typeof r === "object" ? JSON.stringify(r) : String(r);
|
|
33842
33842
|
}
|
|
33843
33843
|
}
|
|
33844
|
+
const valuePath = props.valuePath;
|
|
33845
|
+
const asText3 = VALUE_PATH_TEXT.get(type);
|
|
33846
|
+
if (typeof valuePath === "string" && asText3 && (valuePath.startsWith("$service:") || /^\$item\.[^.]/.test(valuePath))) {
|
|
33847
|
+
const r = resolveTreeScalar(valuePath, provider, itemScope);
|
|
33848
|
+
const text2 = asText3(r, props);
|
|
33849
|
+
if (text2 !== void 0) values.value = text2;
|
|
33850
|
+
else if (r !== void 0 && r !== null) {
|
|
33851
|
+
delete values.value;
|
|
33852
|
+
}
|
|
33853
|
+
}
|
|
33854
|
+
if (type === "OtpInput" && props.secure === true) delete values.value;
|
|
33844
33855
|
collectComponentMediaValues(type, props, { provider, itemScope, values, insideMediaProperty: false });
|
|
33845
33856
|
collectResolvedMediaValues(modifiers, "modifiers", {
|
|
33846
33857
|
provider,
|
|
@@ -34048,13 +34059,27 @@ async function renderPngBatch(items) {
|
|
|
34048
34059
|
});
|
|
34049
34060
|
}
|
|
34050
34061
|
}
|
|
34051
|
-
var TREE_TEXT_VALUE_PROPS, MEDIA_PLAYER_QUEUE_PROPERTIES, NATIVE_ONLY_TYPES;
|
|
34062
|
+
var TREE_TEXT_VALUE_PROPS, asStringOrNumber, asStringOnly, asOtpCode, VALUE_PATH_TEXT, MEDIA_PLAYER_QUEUE_PROPERTIES, NATIVE_ONLY_TYPES;
|
|
34052
34063
|
var init_render_descriptor = __esm({
|
|
34053
34064
|
"../../core/dev-server/src/render-descriptor.ts"() {
|
|
34054
34065
|
init_FakeServiceProvider();
|
|
34055
34066
|
init_env();
|
|
34056
34067
|
init_media_value();
|
|
34057
34068
|
TREE_TEXT_VALUE_PROPS = /* @__PURE__ */ new Set(["text", "title", "label", "value", "placeholder", "message"]);
|
|
34069
|
+
asStringOrNumber = (v) => typeof v === "string" ? v : typeof v === "number" ? String(v) : void 0;
|
|
34070
|
+
asStringOnly = (v) => typeof v === "string" ? v : void 0;
|
|
34071
|
+
asOtpCode = (v, props) => {
|
|
34072
|
+
const whole = asStringOrNumber(v, props);
|
|
34073
|
+
if (whole === void 0) return void 0;
|
|
34074
|
+
const len = typeof props.length === "number" ? props.length : 6;
|
|
34075
|
+
return whole.slice(0, Math.max(0, len));
|
|
34076
|
+
};
|
|
34077
|
+
VALUE_PATH_TEXT = /* @__PURE__ */ new Map([
|
|
34078
|
+
["TextField", asStringOrNumber],
|
|
34079
|
+
["RichTextField", asStringOrNumber],
|
|
34080
|
+
["OtpInput", asOtpCode],
|
|
34081
|
+
["ColorPicker", asStringOnly]
|
|
34082
|
+
]);
|
|
34058
34083
|
MEDIA_PLAYER_QUEUE_PROPERTIES = /* @__PURE__ */ new Set(["items", "itemsPath", "items_path"]);
|
|
34059
34084
|
NATIVE_ONLY_TYPES = /* @__PURE__ */ new Set(["Map", "Video", "Lottie", "Rive", "WebView"]);
|
|
34060
34085
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.825.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": [
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"artifactId": "himalaya-cli"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"falconPackageHash": "
|
|
66
|
+
"falconPackageHash": "5e06eccfd54f4a4994881cefcb68da9d51e6dccb06e0b6b2fd095790"
|
|
67
67
|
}
|