@dosgato/templating 0.0.127 → 0.0.129

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.
@@ -311,7 +311,7 @@ export declare abstract class Component<DataType extends ComponentData = any, Fe
311
311
  static newBar: (path: string, opts: NewBarOpts) => string;
312
312
  constructor(data: DataType, path: string, parent: Component | undefined, editMode: boolean, extension: string);
313
313
  areas: Map<string, Component<any, any, ContextBase>[]>;
314
- data: Omit<DataType, 'areas'>;
314
+ data: DataType;
315
315
  fetched: FetchedType;
316
316
  renderCtx: RenderContextType;
317
317
  path: string;
@@ -66,7 +66,7 @@ export interface UITemplate {
66
66
  * anotherArea: [componentData3]
67
67
  * }
68
68
  */
69
- defaultContent?: Record<string, ComponentData[]>;
69
+ defaultContent?: Record<string, ComponentData[]> | ((data: ComponentData) => Record<string, ComponentData[]>);
70
70
  /**
71
71
  * if present this SVG will be used when presenting users with
72
72
  * an array of choices of templates to create. Ideally it should look
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.127",
3
+ "version": "0.0.129",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {