@dosgato/templating 0.0.88 → 0.0.89

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.
@@ -66,6 +66,27 @@ export interface UITemplate {
66
66
  * preview image.
67
67
  */
68
68
  icon?: IconOrSVG;
69
+ /**
70
+ * Add buttons to the page bar in the page editing UI when editing pages with this
71
+ * template. Only applies to page templates.
72
+ *
73
+ * When clicked, the button will send a message to the page iframe. The message content
74
+ * will contain the label, like this:
75
+ *
76
+ * { action: 'pagebar', label: 'yourlabel' }
77
+ *
78
+ * There should be code, generated by this template, that listens for such a message and
79
+ * takes your desired action.
80
+ */
81
+ pageBarButtons?: {
82
+ icon?: IconOrSVG;
83
+ label: string;
84
+ /**
85
+ * Set true if the button should only appear as an icon. `label` is still required for
86
+ * screen reader support.
87
+ */
88
+ hideLabel?: boolean;
89
+ }[];
69
90
  }
70
91
  /**
71
92
  * This is a type for the data that will be passed to dialog Svelte components as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {