@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.
- package/dist/apitemplate.d.ts +10 -0
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/apitemplate.d.ts
CHANGED
|
@@ -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.
|
|
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];
|