Commit 98fc29a
authored
feat(web_core): add
* feat(web_core): bump version to 0.8.6 with expression and formatDate updates
- Update logical functions (`and`, `or`) to require the `values` array argument, removing deprecated individual arguments.
- Update `formatDate` to require `format` parameter, utilizing `date-fns`.
- Update expressions and math schemas with a preprocess layer for cleaner `null` layout to `undefined` coercion.
- Update guards and data-context tests for expanded v0.9 safety checks.
* Update package locks
* feat(web_core): Implement error reporting in DataContext
- Added SurfaceModel.dispatchError to format and emit error events conforming to v0.9 generic error schema.
- Updated DataContext.resolveDynamicValue and evaluateFunctionReactive to capture A2uiExpressionError & ZodError, dispatching to surface and returning fallbacks to avoid crashes.
- Updated ComponentContext and test suites (data-context, basic_functions, function_execution) to align with return-instead-of-throw design.
- All tests passing green.
* Update renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions.test.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* refactor(web_core): replace email validation with more robust regex
Updated the `EmailImplementation` to use a restricting regex requiring a 2-char TLD and standard valid characters. Increased the test coverage in `basic_functions.test.ts` for multiple email formats and fixed an unrelated issue in the `divide` test that was causing test failures due to strict type checking.
* docs(web_core): clarify action context resolution is non-recursive by design
Updated the comment in `resolveAction` to explain that its one-level non-recursive behavior aligns with the schema spec, which requires values to be single `DynamicValue` types and restricts arbitrary nesting.
* Cleaning up test, converting an Error to A2uiExpressionError
* Bump patch versionresolveAction and improve error handling (a2ui-project#856)1 parent 93b98bb commit 98fc29a
32 files changed
Lines changed: 1485 additions & 533 deletions
File tree
- renderers
- angular
- lit
- markdown/markdown-it
- web_core
- src
- v0_8
- data
- schema
- styles
- v0_9
- basic_catalog
- expressions
- functions
- catalog
- rendering
- state
- test
- samples/client
- angular
- lit
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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 | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | | - | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| |||
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 | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
0 commit comments