@yahoo/uds-create-cli 5.95.2 → 5.96.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yahoo/uds-create-cli",
3
- "version": "5.95.2",
3
+ "version": "5.96.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.95.2",
36
- "@yahoo/uds-create-loader": "5.95.2",
37
- "@yahoo/uds-create-types": "5.95.2",
38
- "@yahoo/uds-create-utils": "5.95.2",
35
+ "@yahoo/uds-create-config": "5.96.0",
36
+ "@yahoo/uds-create-loader": "5.96.0",
37
+ "@yahoo/uds-create-types": "5.96.0",
38
+ "@yahoo/uds-create-utils": "5.96.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": 20261112154943,
56
56
  "optionalDependencies": {
57
- "@yahoo/uds-create-cli-darwin-arm64": "5.95.2",
58
- "@yahoo/uds-create-cli-darwin-x64": "5.95.2",
59
- "@yahoo/uds-create-cli-linux-arm64": "5.95.2",
60
- "@yahoo/uds-create-cli-linux-x64": "5.95.2",
61
- "@yahoo/uds-create-cli-linux-arm64-musl": "5.95.2",
62
- "@yahoo/uds-create-cli-linux-x64-musl": "5.95.2"
57
+ "@yahoo/uds-create-cli-darwin-arm64": "5.96.0",
58
+ "@yahoo/uds-create-cli-darwin-x64": "5.96.0",
59
+ "@yahoo/uds-create-cli-linux-arm64": "5.96.0",
60
+ "@yahoo/uds-create-cli-linux-x64": "5.96.0",
61
+ "@yahoo/uds-create-cli-linux-arm64-musl": "5.96.0",
62
+ "@yahoo/uds-create-cli-linux-x64-musl": "5.96.0"
63
63
  }
64
64
  }
@@ -86189,6 +86189,11 @@ function convertLinkedTokenValue({ path: path2, value, sourcePlatform, destinati
86189
86189
  if (LENGTH_GROUPS.has(group)) {
86190
86190
  if (typeof value === "number") return value;
86191
86191
  if (group === "size" && typeof value === "string" && (value === "auto" || /^-?(?:\d+(?:\.\d+)?|\.\d+)%$/.test(value))) return value;
86192
+ if (group === "size" && typeof value === "string" && [
86193
+ "min-content",
86194
+ "max-content",
86195
+ "fit-content"
86196
+ ].includes(value)) throw new Error(`[uds] Linked native size token "${path2}" has unsupported CSS intrinsic sizing value ${JSON.stringify(value)}. Use an explicit native layout: replacing it with auto alone can stretch a component in a column parent. Account for parent direction, label shrink, and caller width/minWidth/maxWidth.`);
86192
86197
  const match = typeof value === "string" ? LENGTH.exec(value) : null;
86193
86198
  if (!match) throw unsupported("native", path2, value, "a px or rem length");
86194
86199
  if (match[2] === "rem" && remBase === void 0) throw new Error(`[uds] Linked native token "${path2}" has value ${JSON.stringify(value)}, but its source has no fixed root font size for rem conversion.`);
@@ -89250,9 +89255,17 @@ function forwardRoutes(decl) {
89250
89255
  function routedPropIn(config2, layers, decl) {
89251
89256
  const layerKey = refPath(decl.target);
89252
89257
  if (!layerKey) return void 0;
89253
- const target2 = refPath(layers?.[layerKey]);
89254
- if (!target2) return void 0;
89255
- return resolveComponentProps(config2, target2)[intoName(decl.into)];
89258
+ const element2 = layers?.[layerKey];
89259
+ if (!isRef2(element2) || kindOf2(element2) !== "component") return void 0;
89260
+ const owner = config2.configFor(element2);
89261
+ if (!owner) return void 0;
89262
+ const landed = resolveComponentProps(owner, pathOf2(element2))[intoName(decl.into)];
89263
+ const source = sourceOf2(element2);
89264
+ return source === void 0 ? landed : qualifyRefs({
89265
+ value: landed,
89266
+ source,
89267
+ owns: (kind) => owner.ownedKinds().includes(kind)
89268
+ });
89256
89269
  }
89257
89270
  function carriesContent(config2, layers, decl) {
89258
89271
  if (decl?.type === "slot") return !isValueSlot(decl);
@@ -98036,7 +98049,12 @@ var Config = class Config2 {
98036
98049
  continue;
98037
98050
  }
98038
98051
  for (const nested of collectRefs(includeExtensionBases ? entity.toJSON() : source.dependencyBody(kindOf2(target2), entity.toJSON()))) {
98039
- if (sourceOf2(nested) !== void 0) continue;
98052
+ if (sourceOf2(nested) !== void 0) {
98053
+ if (!source.entityOf(kindOf2(nested))?.answeredHere) continue;
98054
+ const local = source.resolve(kindOf2(nested), pathOf2(nested));
98055
+ if (local) queue.push(`${kindOf2(nested)}:${local.path}`);
98056
+ continue;
98057
+ }
98040
98058
  queue.push(`${kindOf2(nested)}:${pathOf2(nested)}`);
98041
98059
  }
98042
98060
  const names = source.entityOf(kindOf2(target2))?.nameEdges?.(entity.toJSON()) ?? [];