Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[visual-editor] Add Fancy JSON component #2414

Merged
merged 3 commits into from
Jul 3, 2024
Merged

[visual-editor] Add Fancy JSON component #2414

merged 3 commits into from
Jul 3, 2024

Conversation

aomarks
Copy link
Member

@aomarks aomarks commented Jul 3, 2024

Add fancy-json component for rendering JSON with configurable annotations.

You give it a JSON value, and a list of annotations. The annotations are JSON paths (e.g. ["schema", "properties", 2, "type"]) and some CSS part name. As we render values, we wrap them in <span part="<PART>"> so that the parent component can then choose how to style those sub-trees.

Part of #2298

Copy link

changeset-bot bot commented Jul 3, 2024

🦋 Changeset detected

Latest commit: 1f8ebc2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@google-labs/visual-editor Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aomarks aomarks enabled auto-merge (squash) July 3, 2024 22:34
@aomarks aomarks merged commit fa2d1ab into main Jul 3, 2024
10 checks passed
@aomarks aomarks deleted the fancy-json branch July 3, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant