@cratis/event-models 0.172.2 → 0.172.4
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/README.md +1 -1
- package/dist/Properties/index.d.ts +1 -0
- package/dist/Properties/requireNewProperties.d.ts +2 -0
- package/dist/index.js +1391 -1360
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ Each callback receives the **complete `JsonSchema`**, from `@cratis/components/S
|
|
|
85
85
|
|
|
86
86
|
Clicking a card opens its properties-only editor only when its callback exists and its slice and board are editable. Existing `BoardActions` card `onActivate` callbacks take precedence, allowing a host to open its advanced editor instead. No rules, concurrency, projection or constraint editors are included by default.
|
|
87
87
|
|
|
88
|
-
The shared tree supports adding, renaming, retyping and removing properties, nested objects and arrays, and concepts. `id` remains protected. Command schemas offer an identifier
|
|
88
|
+
The shared tree supports adding, renaming, retyping and removing properties, nested objects and arrays, and concepts. `id` remains protected. Command schemas offer an identifier. Event schemas offer required flags, and a property added to an event is required until the user makes it optional, because Cratis events have no optional properties. Commands and read models offer no required flags. The `PropertiesOnly` board story demonstrates all three callbacks without Studio.
|
|
89
89
|
|
|
90
90
|
### Reusable editor components
|
|
91
91
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './PropertySchemaCard';
|
|
2
2
|
export * from './PropertySchemaDialog';
|
|
3
3
|
export * from './propertySchemaChangeHandler';
|
|
4
|
+
export * from './requireNewProperties';
|
|
4
5
|
export * from './TypeBadge';
|
|
5
6
|
export * from './schemaProperties';
|
|
6
7
|
export * from './SchemaTooltipProperties';
|