openpencil/packages/core
Danila Poyarkov 204b225c64 Split instance-overrides.ts into focused modules
Break the 781-line single-function file into a kiwi/instance-overrides/
folder with domain files:

- types.ts — shared types and OverrideContext
- index.ts — thin orchestrator (99 lines)
- populate.ts — populate empty instances from components
- resolve.ts — componentId root, override target, repopulateInstance
- symbol-overrides.ts — apply kiwi symbolOverrides
- sync.ts — transitive sync through clone chains
- props.ts — component property assignments
- dsd.ts — derived symbol data (pre-computed sizes)

The shared closure state (6 maps) is now bundled in OverrideContext,
passed explicitly to all functions. No behavior change.

Fixes: complexity lint error (was 25, max 20), prefer-optional-chain,
nested ternary parentheses, import() type annotation.
2026-03-14 10:36:48 +03:00
..
src Split instance-overrides.ts into focused modules 2026-03-14 10:36:48 +03:00
package.json Address PR #94 review: dedup, replace hand-rolled code, cleanup 2026-03-13 14:46:18 +03:00
tsconfig.json Fix core tsconfig: add ESNext and DOM libs for npm publish 2026-03-04 01:58:37 +03:00