@dosgato/templating 0.0.3 → 0.0.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.
@@ -48,6 +48,16 @@ export interface APITemplate {
48
48
  * names.
49
49
  */
50
50
  validate: (data: any) => Promise<Record<string, string[]>>;
51
+ /**
52
+ * Hard-coded properties that may be set on page templates to influence the rendering of
53
+ * components on the page. For instance, a set of color choices that are customized for
54
+ * each template design. Components on the page may refer to the color information stored
55
+ * in the template during dialogs and while rendering. Changing to a different page template
56
+ * could then result in different color choices for components like buttons.
57
+ *
58
+ * Must be null for non-page templates.
59
+ */
60
+ templateProperties?: any;
51
61
  }
52
62
  /**
53
63
  * In dosgato CMS, the data in the database is not altered except during user activity. This
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "exports": {
6
6
  "require": "./dist/index.js",