@dosgato/templating 0.0.108 → 0.0.109

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.
@@ -100,6 +100,11 @@ export interface UITemplate {
100
100
  * screen reader support.
101
101
  */
102
102
  hideLabel?: boolean;
103
+ /**
104
+ * In case the button is irrelevant for certain pages, you may provide a function
105
+ * that uses the page data and path to decide whether to show the button.
106
+ */
107
+ shouldAppear?: (data: PageData, path: string) => boolean;
103
108
  }[];
104
109
  }
105
110
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.108",
3
+ "version": "0.0.109",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {