@yahoo/uds-create-config 2.20.0 → 2.21.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/dist/Config.d.ts +34 -29
- package/dist/Config.js +102 -74
- package/dist/Token.d.ts +8 -1
- package/dist/Token.js +13 -11
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/registry-aliases.d.ts +33 -0
- package/dist/registry-aliases.js +27 -0
- package/dist/registry-dir.d.ts +2 -2
- package/dist/registry-dir.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +16 -22
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1025,27 +1025,21 @@ interface SerializedPlaygroundOptions {
|
|
|
1025
1025
|
port?: number;
|
|
1026
1026
|
}
|
|
1027
1027
|
/**
|
|
1028
|
-
* One
|
|
1029
|
-
*
|
|
1030
|
-
*
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
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
|
|
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 `
|
|
1048
|
-
type
|
|
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
|
-
*
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1105
|
-
*
|
|
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
|
-
|
|
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,
|
|
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.
|
|
3
|
+
"version": "2.21.0",
|
|
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.
|
|
76
|
-
"@yahoo/uds-create-utils": "2.
|
|
75
|
+
"@yahoo/uds-create-types": "2.21.0",
|
|
76
|
+
"@yahoo/uds-create-utils": "2.21.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/types": "^7.29.0",
|