Commit bbc927f
committed
refactor: extract framework-agnostic core into @a2ui/core package
Extract the data processing, type definitions, guards, and message
handling logic from @a2ui/lit into a new @a2ui/core package. This
enables React, Vue, and other framework developers to integrate A2UI
without reimplementing core functionality.
The new @a2ui/core package includes:
- A2uiMessageProcessor for processing server-to-client messages
- Type definitions for all A2UI components and primitives
- Type guards for runtime type checking
- Event type definitions
The @a2ui/lit and @a2ui/angular packages now depend on @a2ui/core
and re-export its types for backwards compatibility.1 parent 21c6d27 commit bbc927f
29 files changed
Lines changed: 3794 additions & 1820 deletions
File tree
- renderers
- angular
- core
- src
- events
- guards
- processor
- types
- lit
- src/0.8
- data
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments