feat: add editor state API and data resource selector examples#334
Open
M1r1k wants to merge 1 commit into
Open
feat: add editor state API and data resource selector examples#334M1r1k wants to merge 1 commit into
M1r1k wants to merge 1 commit into
Conversation
Backport mesh-playground changes from uniformdev/platform#14254 to the mesh-integration reference app: - Replace canvas-editor-tools with canvasEditorTools using the new EditorStateApi to walk and update the composition/entry tree - Add canvasEditorToolsTranslation example demonstrating machine translation across locales via the editor state API - Add dataResourceSelector example showing custom data resource selection UI replacing the default JSON tree viewer - Register dataResourceSelectorUrl on the default archetype and add new editor tools (translation tool, composition-only tool) to the manifest Co-authored-by: Cursor <cursoragent@cursor.com>
✅ Deploy Preview for context-edge canceled.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
OriginalEXE
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backports mesh-playground reference changes from uniformdev/platform#14254 to the
mesh-integrationexample app:canvasEditorTools.tsx— Replaces the oldcanvas-editor-tools.tsxwith a new example using theEditorStateApito walk the composition/entry tree, inspect nodes, and update properties programmaticallycanvasEditorToolsTranslation.tsx— Example translation tool that walks the entire tree, reads values in a source locale, and writes translated values to a target locale usingeditorState.exportTree(),enableLocale(),setCurrentLocale(), andupdateNodeProperty()dataResourceSelector.tsx— Custom data resource selection UI that replaces the default JSON tree viewer when binding dynamic tokens. Registered viadataResourceSelectorUrlon the data archetypemesh-manifest.reference.json— AddeddataResourceSelectorUrlto the default archetype, updated editor tool URLs to camelCase, registered the translation tool and a composition-only editor toolTest plan
canvasEditorToolslocation renders the tree walkersetValueMade with Cursor