@yahoo/uds-create-cli 5.90.3 → 5.91.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/package.json +11 -11
- package/subprocess/transform-runner.mjs +43 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-create-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.91.0",
|
|
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.
|
|
36
|
-
"@yahoo/uds-create-loader": "5.
|
|
37
|
-
"@yahoo/uds-create-types": "5.
|
|
38
|
-
"@yahoo/uds-create-utils": "5.
|
|
35
|
+
"@yahoo/uds-create-config": "5.91.0",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.91.0",
|
|
37
|
+
"@yahoo/uds-create-types": "5.91.0",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.91.0",
|
|
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": 20261109214535,
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@yahoo/uds-create-cli-darwin-arm64": "5.
|
|
58
|
-
"@yahoo/uds-create-cli-darwin-x64": "5.
|
|
59
|
-
"@yahoo/uds-create-cli-linux-arm64": "5.
|
|
60
|
-
"@yahoo/uds-create-cli-linux-x64": "5.
|
|
61
|
-
"@yahoo/uds-create-cli-linux-arm64-musl": "5.
|
|
62
|
-
"@yahoo/uds-create-cli-linux-x64-musl": "5.
|
|
57
|
+
"@yahoo/uds-create-cli-darwin-arm64": "5.91.0",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.91.0",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.91.0",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.91.0",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.91.0",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.91.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -83624,6 +83624,28 @@ function referencedPropName(target2) {
|
|
|
83624
83624
|
const name = member.slice(6);
|
|
83625
83625
|
return name && !name.includes("/") ? name : void 0;
|
|
83626
83626
|
}
|
|
83627
|
+
function endOf({ config: config2, component, prop }) {
|
|
83628
|
+
const ownedAt = (path2, name) => {
|
|
83629
|
+
const owner = propOwner(config2, path2, name) ?? path2;
|
|
83630
|
+
return {
|
|
83631
|
+
component: owner,
|
|
83632
|
+
prop: name,
|
|
83633
|
+
decl: resolveComponentProps(config2, owner)[name]
|
|
83634
|
+
};
|
|
83635
|
+
};
|
|
83636
|
+
let at = ownedAt(component, prop);
|
|
83637
|
+
const seen = /* @__PURE__ */ new Set();
|
|
83638
|
+
while (isPlainObject2(at.decl) && at.decl.type === "forward") {
|
|
83639
|
+
const { into } = at.decl;
|
|
83640
|
+
if (!isRef2(into) || splitRef2(into).kind !== "component") break;
|
|
83641
|
+
const next = referencedPropName(into);
|
|
83642
|
+
const here = spaceOf(at.component, at.prop);
|
|
83643
|
+
if (!next || seen.has(here)) break;
|
|
83644
|
+
seen.add(here);
|
|
83645
|
+
at = ownedAt(pathOf2(into), next);
|
|
83646
|
+
}
|
|
83647
|
+
return at;
|
|
83648
|
+
}
|
|
83627
83649
|
function spaceOf(component, prop) {
|
|
83628
83650
|
return `${component}#props/${prop}`;
|
|
83629
83651
|
}
|
|
@@ -83635,20 +83657,32 @@ function idProps({ config: config2, path: path2 }) {
|
|
|
83635
83657
|
const hit = cache.get(component);
|
|
83636
83658
|
if (hit) return hit;
|
|
83637
83659
|
const found = [];
|
|
83638
|
-
for (const
|
|
83660
|
+
for (const prop of Object.keys(resolveComponentProps(config2, component))) {
|
|
83661
|
+
const end = endOf({
|
|
83662
|
+
config: config2,
|
|
83663
|
+
component,
|
|
83664
|
+
prop
|
|
83665
|
+
});
|
|
83666
|
+
const { decl } = end;
|
|
83639
83667
|
if (!isPlainObject2(decl) || decl.type !== "string") continue;
|
|
83640
83668
|
const unique3 = decl.uniqueId === true;
|
|
83641
83669
|
const target2 = isRef2(decl.uniqueIdRef) ? decl.uniqueIdRef : void 0;
|
|
83642
83670
|
const referenced = target2 ? referencedPropName(target2) : void 0;
|
|
83643
|
-
if (target2 && referenced)
|
|
83644
|
-
|
|
83645
|
-
|
|
83646
|
-
|
|
83647
|
-
|
|
83648
|
-
|
|
83649
|
-
|
|
83671
|
+
if (target2 && referenced) {
|
|
83672
|
+
const named = endOf({
|
|
83673
|
+
config: config2,
|
|
83674
|
+
component: pathOf2(target2),
|
|
83675
|
+
prop: referenced
|
|
83676
|
+
});
|
|
83677
|
+
found.push({
|
|
83678
|
+
prop,
|
|
83679
|
+
space: spaceOf(named.component, named.prop),
|
|
83680
|
+
unique: unique3,
|
|
83681
|
+
ref: true
|
|
83682
|
+
});
|
|
83683
|
+
} else if (unique3) found.push({
|
|
83650
83684
|
prop,
|
|
83651
|
-
space: spaceOf(component, prop),
|
|
83685
|
+
space: spaceOf(end.component, end.prop),
|
|
83652
83686
|
unique: unique3,
|
|
83653
83687
|
ref: false
|
|
83654
83688
|
});
|