@antelopejs/interface-dms-builder 0.2.3 → 0.2.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/dist/catalog.d.ts CHANGED
@@ -81,6 +81,12 @@ export interface BlockTypeDescriptor {
81
81
  shapeSource: ShapeSource;
82
82
  description?: string;
83
83
  controllerArg?: boolean;
84
+ initialChildren?: BlockInitialChild[];
85
+ }
86
+ export interface BlockInitialChild {
87
+ id: string;
88
+ type: string;
89
+ options: Record<string, unknown>;
84
90
  }
85
91
  export interface DataTypeDescriptor {
86
92
  id: string;
package/docs/3.catalog.md CHANGED
@@ -42,6 +42,7 @@ The catalog is cached. `RefreshSourceIndex` with no scope drops that cache; see
42
42
  | `shapeSource` | `ShapeSource` | How the emit shape was determined. |
43
43
  | `description` | `string` | A human-readable description of the block. |
44
44
  | `controllerArg` | `boolean` | `true` when the factory takes a leading controller-class argument before its options object. |
45
+ | `initialChildren` | `BlockInitialChild[]` | The children a new block of this type starts with, as the DMS's own helper places them in code (a `PageToolbar`'s `LiveToggle` and `PeriodSelector`, with the options of `pageToolbar()`). Each has an `id` (the child id roles name it by), a `type` (a catalog key) and its `options`. Absent for most types. |
45
46
 
46
47
  Only a `container` block can hold children, so it is the check to make before passing a block's path as `AddBlockInput.parent`.
47
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/interface-dms-builder",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "AntelopeJS interface for the DMS builder: create and edit pages, blocks, resources and queries in a DMS project from another module.",
5
5
  "keywords": [
6
6
  "antelopejs",