@yahoo/uds-create-cli 5.89.2 → 5.89.4
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/package.json +11 -11
- package/subprocess/transform-runner.mjs +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-create-cli",
|
|
3
|
-
"version": "5.89.
|
|
3
|
+
"version": "5.89.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
33
33
|
"@orpc/client": "^1.13.9",
|
|
34
34
|
"@orpc/contract": "^1.13.9",
|
|
35
|
-
"@yahoo/uds-create-config": "5.89.
|
|
36
|
-
"@yahoo/uds-create-loader": "5.89.
|
|
37
|
-
"@yahoo/uds-create-types": "5.89.
|
|
38
|
-
"@yahoo/uds-create-utils": "5.89.
|
|
35
|
+
"@yahoo/uds-create-config": "5.89.4",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.89.4",
|
|
37
|
+
"@yahoo/uds-create-types": "5.89.4",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.89.4",
|
|
39
39
|
"esbuild": "^0.27.4",
|
|
40
40
|
"ts-morph": "^27.0.2",
|
|
41
41
|
"get-tsconfig": "^4.10.0",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
"udsSchemaVersion": 20261109144822,
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@yahoo/uds-create-cli-darwin-arm64": "5.89.
|
|
58
|
-
"@yahoo/uds-create-cli-darwin-x64": "5.89.
|
|
59
|
-
"@yahoo/uds-create-cli-linux-arm64": "5.89.
|
|
60
|
-
"@yahoo/uds-create-cli-linux-x64": "5.89.
|
|
61
|
-
"@yahoo/uds-create-cli-linux-arm64-musl": "5.89.
|
|
62
|
-
"@yahoo/uds-create-cli-linux-x64-musl": "5.89.
|
|
57
|
+
"@yahoo/uds-create-cli-darwin-arm64": "5.89.4",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.89.4",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.89.4",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.89.4",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.89.4",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.89.4"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -79771,6 +79771,15 @@ function propValueDomain(config2, decl) {
|
|
|
79771
79771
|
}
|
|
79772
79772
|
return null;
|
|
79773
79773
|
}
|
|
79774
|
+
var BRACKETED = /^\[[\s\S]*\]$/;
|
|
79775
|
+
function propAcceptsValue(config2, decl, value) {
|
|
79776
|
+
const styleProp = decl.type === "styleProperty" && isRef2(decl.value) ? config2.resolve("style-property", splitRef2(decl.value.__ref).qualifiedPath) : void 0;
|
|
79777
|
+
const arbitrary = Boolean(styleProp?.body.arbitrary);
|
|
79778
|
+
if (arbitrary && BRACKETED.test(value)) return true;
|
|
79779
|
+
const domain2 = propValueDomain(config2, decl);
|
|
79780
|
+
if (domain2) return domain2.accepts(value);
|
|
79781
|
+
return !arbitrary;
|
|
79782
|
+
}
|
|
79774
79783
|
function glyphLibrariesOf(domain2) {
|
|
79775
79784
|
return (refListOf(domain2) ?? (isRef2(domain2) ? [domain2.__ref] : [])).filter((ref2) => kindOf2(ref2) === "icon" && memberOf2(ref2) === void 0).map(pathOf2);
|
|
79776
79785
|
}
|
|
@@ -79934,12 +79943,13 @@ function validateComponentProps(config2, componentPath, props) {
|
|
|
79934
79943
|
}
|
|
79935
79944
|
continue;
|
|
79936
79945
|
}
|
|
79946
|
+
if (propAcceptsValue(config2, decl, String(value))) continue;
|
|
79937
79947
|
const domain2 = propValueDomain(config2, decl);
|
|
79938
|
-
if (domain2
|
|
79948
|
+
if (domain2) {
|
|
79939
79949
|
const shown = domain2.leaves.slice(0, 8).map((leaf) => `'${leaf}'`).join(" | ");
|
|
79940
79950
|
const more = domain2.leaves.length > 8 ? " | \u2026" : "";
|
|
79941
79951
|
errors.push(`\`${name}\`: '${value}' not one of ${shown}${more}`);
|
|
79942
|
-
}
|
|
79952
|
+
} else errors.push(`\`${name}\`: '${value}' is written in brackets, '[${value}]'`);
|
|
79943
79953
|
}
|
|
79944
79954
|
return errors;
|
|
79945
79955
|
}
|