Skip to content

Commit ba19acc

Browse files
tylerpinaclaude
andauthored
fix: align DesignPropertyValue with upstream schema refactor [DX-990] (#3014)
* fix: remove pointer variant from DesignPropertyValue, add ComponentTreeDesignPropertyValue [DX-990] DesignPropertyValue is now the canonical base (ManualDesignValue | DesignTokenValue only), matching upstream DesignPropertyValueSchema post INTEG-3511. New ComponentTreeDesignPropertyValue union covers pointer and dimensioned as siblings at the tree-node level. ComponentNode.designProperties updated accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: comments removed --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 89e52b0 commit ba19acc

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

lib/entities/component-type.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,28 +78,25 @@ export type DesignTokenValue = {
7878
value: string
7979
}
8080

81-
// For designProperties[].defaultValue (definition level)
82-
// Upstream: DesignPropertyValueSchema (schema line 86-91)
8381
export type DesignPropertyDefinitionValue = ManualDesignValue | DesignTokenValue
8482

85-
// For componentTree node designProperties (tree-node level)
86-
// Upstream: ComponentTreeDesignPropertyValueSchema (schema line 101-104)
87-
export type DesignPropertyValue =
88-
| ManualDesignValue
89-
| DesignTokenValue
90-
| DesignPropertyPointerValue
91-
| Record<string, ManualDesignValue | DesignTokenValue | DesignPropertyPointerValue>
83+
export type DesignPropertyValue = ManualDesignValue | DesignTokenValue
9284

9385
export type DimensionedDesignPropertyValue = Record<string, DesignPropertyValue>
9486

87+
export type ComponentTreeDesignPropertyValue =
88+
| DesignPropertyValue
89+
| DesignPropertyPointerValue
90+
| DimensionedDesignPropertyValue
91+
9592
// Tree node types for component tree
9693
export type ComponentNode = {
9794
id: string
9895
name?: string
9996
nodeType: 'Component'
10097
componentTypeId: string
10198
contentProperties: Record<string, ContentPropertyPointerValue | unknown> | string
102-
designProperties: Record<string, DesignPropertyValue>
99+
designProperties: Record<string, ComponentTreeDesignPropertyValue>
103100
slots: Record<string, TreeNode[]>
104101
contentBindings?: string
105102
}

0 commit comments

Comments
 (0)