AI-native design editor. Open-source Figma alternative.
fix: restore structured override exports
Danila Poyarkov1c8f802570d2
diff --git a/packages/core/src/design-jsx/renderer.ts b/packages/core/src/design-jsx/renderer.tsindex e9f82c390..b5ea11743 100644--- a/packages/core/src/design-jsx/renderer.ts+++ b/packages/core/src/design-jsx/renderer.ts@@ -1,10 +1,11 @@-import type {- ComponentPropertyDefinition,- SceneGraph,- SceneNode,- NodeType+import {+ setInstanceOverride,+ type ComponentPropertyDefinition,+ type NodeType,+ type SceneGraph,+ type SceneNode} from '@open-pencil/scene-graph'-import { setInstanceOverride } from '@open-pencil/scene-graph'+import type { Color } from '@open-pencil/scene-graph/primitives'import { parseColor } from '#core/color'import type { RenderOptions } from '#core/design-jsx/types'diff --git a/packages/core/src/editor/components/properties.ts b/packages/core/src/editor/components/properties.tsindex e62ca65d3..29dd1889b 100644--- a/packages/core/src/editor/components/properties.ts+++ b/packages/core/src/editor/components/properties.ts@@ -1,4 +1,5 @@import {+ applyComponentPropertyValue,cloneInstanceOverrideState,componentPropertyDefinitions,findComponentPropertyTarget,diff --git a/packages/scene-graph/src/index.ts b/packages/scene-graph/src/index.tsindex b70a31577..04095beec 100644--- a/packages/scene-graph/src/index.ts+++ b/packages/scene-graph/src/index.ts@@ -11,6 +11,14 @@ export {INSTANCE_SYNC_TEXT_PROPS,recordInstanceOverride} from './instances'+export {+ clearInstanceOverrides,+ cloneInstanceOverrideState,+ forEachInstanceOverride,+ getInstanceOverride,+ setInstanceOverride,+ type InstanceOverrideState+} from './instance-overrides'export * from './snap'export * from './export-scale'export * from './coordinate'diff --git a/tests/engine/scene-graph/clone/node-props.test.ts b/tests/engine/scene-graph/clone/node-props.test.tsindex a068a79ce..b7039aeb8 100644--- a/tests/engine/scene-graph/clone/node-props.test.ts+++ b/tests/engine/scene-graph/clone/node-props.test.ts@@ -2,11 +2,6 @@ import { describe, expect, test } from 'bun:test'import { SceneGraph, type SceneNode } from '@open-pencil/core'import { getInstanceOverride, setInstanceOverride } from '@open-pencil/scene-graph'-import {- createInstanceOverrideState,- getInstanceOverride,- setInstanceOverride-} from '@open-pencil/scene-graph'import { cloneNodeProps } from '@open-pencil/scene-graph/copy'function pageId(graph: SceneGraph): string {@@ -132,7 +127,6 @@ describe('cloneNodeProps deep-copies overrides values', () => {const clone = graph.cloneTree(instance.id, page)if (!clone) throw new Error('clone failed')const clonedInstance = graph.getNode(clone.id)- const overrideKey = 'fills'const cloneOverrideVal = getInstanceOverride(clonedInstance.instanceOverrides,clonedInstance.id,diff --git a/tests/engine/scene-graph/components/properties.test.ts b/tests/engine/scene-graph/components/properties.test.tsindex d3143b3f9..759cff1fd 100644--- a/tests/engine/scene-graph/components/properties.test.ts+++ b/tests/engine/scene-graph/components/properties.test.ts@@ -2,7 +2,6 @@ import { describe, expect, test } from 'bun:test'import {applyComponentPropertyValue,- getInstanceOverride,componentPropertyDefinitions,componentPropertyOwners,findComponentPropertyTarget,