feat: add Angular renderer - #244
Conversation
|
@marcushohlbein is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
eaa98e1 to
b68c510
Compare
- Renderer component with focus preservation and repeat scope - Providers: StateProvider, ActionProvider, VisibilityProvider, ValidationProvider - Hooks: useStateStore, useActions, useUIStream, useChatUI - VNode layer: element(), text(), fragment(), component() - Angular example app with full-width layout
b68c510 to
56b3868
Compare
::ng-deep is deprecated. JSON spec styles moved to styles.css to avoid component encapsulation piercing.
- Remove duplicated deepResolveValue function from renderer.ts, now exported from providers/actions.ts - Simplify focus restoration code by removing shadow DOM complexity (84 lines → 40 lines) - Update turbo.json schema URL to use latest version instead of v2-8-20 - Remove flattenToPointers from main @json-render/core exports (still available via store-utils) - Update Angular imports to use flattenToPointers from @json-render/core/store-utils These changes reduce code duplication, simplify maintenance, and improve the public API surface.
|
For anyone landing here looking for Angular support: since this PR is still open, I've shipped a standalone Angular renderer in the meantime: It targets the same renderer contract as the React/Vue/Solid/Svelte packages on top of @marcushohlbein — not trying to compete with your PR; if the maintainers pick this up I'd be glad to help land Angular support upstream (or adapt my package into |
New
@json-render/angularpackage: Brings json-render to Angular. Render JSON specs as Angular-managed DOM with signals, providers, and lightweight VNode registry functions.Includes an Angular example app demonstrating the renderer with a simple card/button setup.