@dosgato/templating 1.1.0 → 1.1.1

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.
@@ -52,9 +52,9 @@ export interface ComponentExtras extends PageExtras {
52
52
  page: PageData;
53
53
  /**
54
54
  * The component data before validation. Will be present during migration but equal to the
55
- * data already being passed to the migration.
55
+ * data already being passed to the migration. Undefined for a new component.
56
56
  */
57
- currentData: ComponentData;
57
+ currentData?: ComponentData;
58
58
  }
59
59
  export interface DataExtras {
60
60
  /** A function for executing a graphql query to acquire more information than is already at hand. */
@@ -65,6 +65,11 @@ export interface DataExtras {
65
65
  dataFolderId?: string;
66
66
  /** The id of the data entry itself. NOTE: will be null during page creation. */
67
67
  dataId?: string;
68
+ /**
69
+ * The data before validation. Will be present during migration but equal to the
70
+ * data already being passed to the migration. Undefined for a new data entry.
71
+ */
72
+ currentData?: DataData;
68
73
  }
69
74
  /**
70
75
  * This interface lays out the structure the API needs for each template in the system.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {