mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 13:05:08 +09:00
Here bit less straightfforward as lexical<>instances conversion is not very straightfforward because lexical represents a few instances with its formats. To solve conversion complexity used almost same ancestor traverser as before but finish once eiditing node is reached. Pass instance selector for each webstudio-component ot identify selected and editing instances.
Webstudio SDK
Webstudio SDK is a TypeScript API that lets you use your Webstudio site or some components in your custom codebase or just render a complete Remix Document. It is currently under development, but feel free to play with the the current landing site