@reventlessdev/reventless-spec 3.0.0-alpha.105 → 3.0.0-alpha.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/components/StateAnnotations.res +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 3.0.0-alpha.106 (2026-08-09)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **ppx,spec,core:** [@live](https://github.com/live) on state declarations → top-level x-reventless-live schema key ([0f38f38](https://github.com/ReventlessDev/reventless-core/commit/0f38f38dc83c38da2fde6615b89a98cd7fda6fed))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
# 3.0.0-alpha.105 (2026-08-09)
|
|
7
14
|
|
|
8
15
|
**Note:** Version bump only for package @reventlessdev/reventless-spec
|
package/package.json
CHANGED
|
@@ -5,7 +5,8 @@ Spec describing the structural annotations declared on the fields of an
|
|
|
5
5
|
`@compositeId`, `@subId`, `@compositeSubId`, `@index`), a visibility
|
|
6
6
|
annotation (`@hidden`, `@summary`), a hierarchical-rendering annotation
|
|
7
7
|
(`@drillTarget`, `@collapsed`), a server-query opt-in annotation
|
|
8
|
-
(`@scan`, `@scanSort`),
|
|
8
|
+
(`@scan`, `@scanSort`), a UI-list annotation (`@status`, `@groupBy`), or a
|
|
9
|
+
type-level live-updates annotation (`@live` on the `state` declaration).
|
|
9
10
|
Downstream consumers (UI, MCP, codegen) read the
|
|
10
11
|
spec to surface field roles in JSON Schema as `x-reventless-*` extension
|
|
11
12
|
properties.
|
|
@@ -86,6 +87,15 @@ type stateAnnotationSpec = {
|
|
|
86
87
|
the default case is omitted to keep schemas compact.
|
|
87
88
|
*/
|
|
88
89
|
visibility: option<string>,
|
|
90
|
+
/**
|
|
91
|
+
Component-level live-updates hint from `@live(true | false)` on the
|
|
92
|
+
`@schema type state` declaration (PPX-emitted). `SuryToJsonSchema.deriveObjectSchema`
|
|
93
|
+
emits top-level `x-reventless-live: bool` when present; absent annotation ⇒
|
|
94
|
+
key absent ⇒ the consumer's own default applies. The framework only
|
|
95
|
+
transports the declaration — UI consumers decide whether a live-updates
|
|
96
|
+
control is offered (`true`) or hidden (`false`) for the view.
|
|
97
|
+
*/
|
|
98
|
+
live: option<bool>,
|
|
89
99
|
}
|
|
90
100
|
|
|
91
101
|
/** Sury metadata ID used to attach a `stateAnnotationSpec` to a state schema. */
|