Split Avatar React into renderer and editor exports - #38
Merged
Conversation
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.
Display-only React consumers currently retain the full Avatar editor and its inlined preview assets. Add independent
@oneworks/avatar-react/rendererand/editorexports with complete/renderer.cssand/editor.cssstylesheets, while preserving the root API andstyle.css.Vite now emits ESM entries, shared chunks, and relative hashed SVG assets. Renderer imports do not reach editor code or preview images. Applications can load the editor and its CSS with dynamic imports. The editor no longer preloads all 32 base previews during idle time, and its project icon resolves relative to the package. Existing React/Web/Vue APIs remain available. Bilingual package guides and the Avatar Skill explain the new integration. All four SDK manifests are prepared for
1.0.0-rc.9; npm publication is separate.Validation:
/plugins/generation-a/: startup loaded only shell/React (144,218 B JS), display action loaded renderer/model/CSS with no SVG/editor requests, editor action loaded editor/CSS and four visible previews plus the project icon. Close/reopen added no requests. Every SDK graph request returned 200; the temporary HTML fixture's unrelated automatic/favicon.icorequest returned 404. This is browser package evidence, not native CordisX startup timing.9664cc68104e68528bb4dc573495e5ce3bbf402efound no blockers. Full diff whitespace checks and Skill validation pass. CI supplies the full repository gate.