@yahoo/uds-create-cli 5.99.0 → 5.99.2

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.99.0",
3
+ "version": "5.99.2",
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.99.0",
36
- "@yahoo/uds-create-loader": "5.99.0",
37
- "@yahoo/uds-create-types": "5.99.0",
38
- "@yahoo/uds-create-utils": "5.99.0",
35
+ "@yahoo/uds-create-config": "5.99.2",
36
+ "@yahoo/uds-create-loader": "5.99.2",
37
+ "@yahoo/uds-create-types": "5.99.2",
38
+ "@yahoo/uds-create-utils": "5.99.2",
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": 20261113131930,
56
56
  "optionalDependencies": {
57
- "@yahoo/uds-create-cli-darwin-arm64": "5.99.0",
58
- "@yahoo/uds-create-cli-darwin-x64": "5.99.0",
59
- "@yahoo/uds-create-cli-linux-arm64": "5.99.0",
60
- "@yahoo/uds-create-cli-linux-x64": "5.99.0",
61
- "@yahoo/uds-create-cli-linux-arm64-musl": "5.99.0",
62
- "@yahoo/uds-create-cli-linux-x64-musl": "5.99.0"
57
+ "@yahoo/uds-create-cli-darwin-arm64": "5.99.2",
58
+ "@yahoo/uds-create-cli-darwin-x64": "5.99.2",
59
+ "@yahoo/uds-create-cli-linux-arm64": "5.99.2",
60
+ "@yahoo/uds-create-cli-linux-x64": "5.99.2",
61
+ "@yahoo/uds-create-cli-linux-arm64-musl": "5.99.2",
62
+ "@yahoo/uds-create-cli-linux-x64-musl": "5.99.2"
63
63
  }
64
64
  }
@@ -79657,7 +79657,7 @@ function bagKeyIssue(config2, key2, declared2, { cssBehind = true } = {}) {
79657
79657
  if (!cssBehind || declared2?.has(key2) || config2.resolve("style-property", key2)) return;
79658
79658
  const behind = stylePropertyBehind(config2, key2);
79659
79659
  if (behind) return `\`${key2}\` is the CSS property behind the style property \`${behind}\`; a layer key is the style-prop name, \`${behind}\`.`;
79660
- if (isCssProperty(key2)) return `\`${key2}\` is a CSS property, and this system has no style property that sets it, so it would be passed to the element as an attribute and paint nothing. Declare one \u2014 \`{ "kind": "style-property", "operation": "create", "path": "${key2}", "data": { "properties": ["${kebabCase(key2)}"], "values": [] } }\` with keywords or a token group ref in \`values\` \u2014 expose it on the primitive as \`{ "type": "styleProperty", "value": { "__ref": "style-property:${key2}" } }\`, then set it here by one of its values.`;
79660
+ if (config2.name !== "react-native-system" && isCssProperty(key2)) return `\`${key2}\` is a CSS property, and this system has no style property that sets it, so it would be passed to the element as an attribute and paint nothing. Declare one \u2014 \`{ "kind": "style-property", "operation": "create", "path": "${key2}", "data": { "properties": ["${kebabCase(key2)}"], "values": [] } }\` with keywords or a token group ref in \`values\` \u2014 expose it on the primitive as \`{ "type": "styleProperty", "value": { "__ref": "style-property:${key2}" } }\`, then set it here by one of its values.`;
79661
79661
  }
79662
79662
  function isModifierBlock(config2, key2, value) {
79663
79663
  return key2.startsWith("_") && config2.resolve("modifier", key2.slice(1)) !== void 0 && typeof value === "object" && value !== null && !Array.isArray(value) && !isRef2(value);
@@ -87319,6 +87319,8 @@ function styleBagValue({ config: config2, declaration, name = "<prop>", glyphLib
87319
87319
  if (declaration?.type === "slot" && !isValueSlot(declaration)) return external_exports.union([domain2, external_exports.never()], { error: () => `\`${name}\` is a slot, so a rule may set it to a string of content and nothing else. A glyph or a nested element is an anatomy node under the layer's node \u2014 \`{ "element": { "__ref": "icon:<library>/<Name>" }, "visible": { "$state": "<prop>", "eq": "<value>" } }\` to show one per variant value \u2014 and the instance's own content arrives through the prop.` });
87320
87320
  if (!isRef2(bound) || kindOf2(bound.__ref) !== "style-property") return domain2;
87321
87321
  const property = pathOf2(bound.__ref);
87322
+ const properties = config2.resolve("style-property", property)?.toJSON().properties;
87323
+ const nativeFlex = config2.name === "react-native-system" && Array.isArray(properties) && properties.length === 1 && properties[0] === "flex";
87322
87324
  return external_exports.union([
87323
87325
  domain2,
87324
87326
  oklchColor,
@@ -87326,7 +87328,8 @@ function styleBagValue({ config: config2, declaration, name = "<prop>", glyphLib
87326
87328
  gradient,
87327
87329
  shadowValue,
87328
87330
  refSchema,
87329
- ...config2.name === "react-native-system" ? [nativeStyleArray] : []
87331
+ ...config2.name === "react-native-system" ? [nativeStyleArray] : [],
87332
+ ...nativeFlex ? [nativeFlexValue] : []
87330
87333
  ], { error: (issue2) => {
87331
87334
  const leaves2 = stylePropValueLeaves(config2, property);
87332
87335
  if (typeof issue2.input === "number" && leaves2.includes(String(issue2.input))) return `\`${name}\`: \`${issue2.input}\` names a value as a string, so write \`'${issue2.input}'\`. A number names only a value the style property declares as a number.`;