@yahoo/uds-create-config 2.20.0 → 2.21.1

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/types.d.ts CHANGED
@@ -1025,27 +1025,21 @@ interface SerializedPlaygroundOptions {
1025
1025
  port?: number;
1026
1026
  }
1027
1027
  /**
1028
- * One linked system's declaration in `registerLinkedComponents` — components
1029
- * this config pulls in from another system, pinned to an exact published
1030
- * version. The record key (the linked system's database UUID) is the identity;
1031
- * `name` is the system's display name captured at link time so review surfaces
1032
- * can show "Yahoo OS" instead of a UUID. The source system renaming itself
1033
- * does not orphan the link.
1028
+ * One pinned source system in `registerLinkedSystems` — the version anchor
1029
+ * every linked value from that system validates against. The record key (the
1030
+ * source system's database UUID) is the identity; `name` is the system's
1031
+ * display-name snapshot at link time, used for review surfaces and to derive
1032
+ * the registry folder slug — the source system renaming itself does not
1033
+ * orphan the pin.
1034
1034
  */
1035
- interface LinkedSystemEntry {
1035
+ interface LinkedSystemPin {
1036
1036
  /** Display-name snapshot of the linked system at link time. Never identity. */
1037
1037
  name: string;
1038
1038
  /** Exact published version of the linked system (`'1.3.1'`) — no ranges. */
1039
1039
  version: string;
1040
- /**
1041
- * Bare component names linked from the source system (`['Button', 'Box']`),
1042
- * or `'all'` to link every component the source system publishes without
1043
- * naming them — components added to the source later are covered too.
1044
- */
1045
- components: string[] | 'all';
1046
1040
  }
1047
- /** Input to `registerLinkedComponents`, keyed by the linked system's UUID. */
1048
- type LinkedComponentsInput = Record<string, LinkedSystemEntry>;
1041
+ /** Input to `registerLinkedSystems`, keyed by the linked system's UUID. */
1042
+ type LinkedSystemsInput = Record<string, LinkedSystemPin>;
1049
1043
  /**
1050
1044
  * `Config.toJSON()` produces this shape. Mirrors authored fields exactly
1051
1045
  * — derived data is never serialized. The `{ __kind, ref }` marker shape
@@ -1098,13 +1092,13 @@ interface SerializedConfig {
1098
1092
  */
1099
1093
  playgroundOptions?: SerializedPlaygroundOptions;
1100
1094
  /**
1101
- * Components linked from other systems via `registerLinkedComponents`,
1102
- * keyed by the source system's database UUID. A data-only declaration —
1103
- * no layer/prop specs ride along (those live in the source system's own
1104
- * artifacts). Optional — old `config.json` files without it hydrate to an
1105
- * empty map; no `schemaVersion` bump.
1095
+ * Source systems pinned via `registerLinkedSystems`, keyed by the source
1096
+ * system's database UUID. Every linked value in the config validates
1097
+ * against its pin (systemId present, version matching). Optional — old
1098
+ * `config.json` files without it hydrate to an empty map; no
1099
+ * `schemaVersion` bump.
1106
1100
  */
1107
- linkedComponents?: Record<string, LinkedSystemEntry>;
1101
+ linkedSystems?: Record<string, LinkedSystemPin>;
1108
1102
  }
1109
1103
  //#endregion
1110
- export { AnyStylePropDefinition, ArbitraryEntry, ArbitrarySpec, BaseStyles, BuildOptions, CanvasRole, CanvasRoleEntry, CanvasRoleEntryInput, CanvasRolesDefinition, CanvasRolesDefinitionInput, CanvasRolesInputConstraint, ComponentDefinition, ComponentGroupDefinition, ComponentMetadata, ComponentMotionValue, CompositeStyleDefinition, CompositeStyleObject, CompoundPropsEntry, CssMotionDefinition, CssMotionFields, CssSlotMotion, FontAssetMember, GlobalStylesDef, JsMotionDefinition, JsMotionFields, JsSlotMotion, LayerInput, LinkedComponentsInput, LinkedSystemEntry, LiteralFor, ModeDefinition, ModeOptionDefinition, ModifierDefinition, MotionDefinitionInput, MotionDragBox, MotionKeyframes, MotionMetadata, MotionState, MotionStateKeyframe, MotionTransition, MotionVariants, MotionViewportOptions, OpacityPairSpec, PlaygroundOptions, PlaygroundPage, PlaygroundSpec, PreviewDefinition, PropBinding, RefElement, RefTag, RootTag, SerializedAssetGroup, SerializedComponent, SerializedComponentGroup, SerializedConfig, SerializedFontAssetGroup, SerializedIconAssetGroup, SerializedPlaygroundOptions, SerializedTokenGroup, SlotMotion, StylePropDefinition, StylePropMetadata, StylePropProperty, SystemLink, TokenDefinition, TokenDefinitionFor, TokenGroupDefinition, TokenGroupDefinitionFor, TokenModifierKey, TokenModifierValue, TokenType, TokenValue, ValuesEntry };
1104
+ export { AnyStylePropDefinition, ArbitraryEntry, ArbitrarySpec, BaseStyles, BuildOptions, CanvasRole, CanvasRoleEntry, CanvasRoleEntryInput, CanvasRolesDefinition, CanvasRolesDefinitionInput, CanvasRolesInputConstraint, ComponentDefinition, ComponentGroupDefinition, ComponentMetadata, ComponentMotionValue, CompositeStyleDefinition, CompositeStyleObject, CompoundPropsEntry, CssMotionDefinition, CssMotionFields, CssSlotMotion, FontAssetMember, GlobalStylesDef, JsMotionDefinition, JsMotionFields, JsSlotMotion, LayerInput, LinkedSystemPin, LinkedSystemsInput, LiteralFor, ModeDefinition, ModeOptionDefinition, ModifierDefinition, MotionDefinitionInput, MotionDragBox, MotionKeyframes, MotionMetadata, MotionState, MotionStateKeyframe, MotionTransition, MotionVariants, MotionViewportOptions, OpacityPairSpec, PlaygroundOptions, PlaygroundPage, PlaygroundSpec, PreviewDefinition, PropBinding, RefElement, RefTag, RootTag, SerializedAssetGroup, SerializedComponent, SerializedComponentGroup, SerializedConfig, SerializedFontAssetGroup, SerializedIconAssetGroup, SerializedPlaygroundOptions, SerializedTokenGroup, SlotMotion, StylePropDefinition, StylePropMetadata, StylePropProperty, SystemLink, TokenDefinition, TokenDefinitionFor, TokenGroupDefinition, TokenGroupDefinitionFor, TokenModifierKey, TokenModifierValue, TokenType, TokenValue, ValuesEntry };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yahoo/uds-create-config",
3
- "version": "2.20.0",
3
+ "version": "2.21.1",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "files": [
@@ -72,8 +72,8 @@
72
72
  "dependencies": {
73
73
  "@babel/parser": "^7.29.0",
74
74
  "motion": "^12.35.0",
75
- "@yahoo/uds-create-types": "2.20.0",
76
- "@yahoo/uds-create-utils": "2.20.0"
75
+ "@yahoo/uds-create-types": "2.21.1",
76
+ "@yahoo/uds-create-utils": "2.21.1"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@babel/types": "^7.29.0",