@dosgato/templating 0.0.10 → 0.0.14

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/component.js CHANGED
@@ -83,9 +83,8 @@ class Component extends provider_1.ResourceProvider {
83
83
  * continue. You generally do not need to use this function, just throw when appropriate.
84
84
  */
85
85
  logError(e) {
86
- var _a;
87
86
  this.hadError = true;
88
- (_a = this.parent) === null || _a === void 0 ? void 0 : _a.passError(e, this.path);
87
+ this.passError(e, this.path);
89
88
  }
90
89
  // helper function for recursively passing the error up until it reaches the page
91
90
  passError(e, path) {
@@ -102,13 +101,13 @@ class Component extends provider_1.ResourceProvider {
102
101
  * need any async data to make this determination, be sure to fetch it during the fetch phase.
103
102
  */
104
103
  cssBlocks() {
105
- return this.constructor.cssBlocks().keys();
104
+ return Array.from(this.constructor.cssBlocks.keys());
106
105
  }
107
106
  /**
108
107
  * Same as cssBlocks() but for javascript.
109
108
  */
110
109
  jsBlocks() {
111
- return this.constructor.jsBlocks().keys();
110
+ return Array.from(this.constructor.jsBlocks.keys());
112
111
  }
113
112
  }
114
113
  exports.Component = Component;
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './apitemplate';
2
2
  export * from './component';
3
3
  export * from './links';
4
4
  export * from './provider';
5
+ export * from './uitemplate';
package/dist/index.js CHANGED
@@ -18,3 +18,4 @@ __exportStar(require("./apitemplate"), exports);
18
18
  __exportStar(require("./component"), exports);
19
19
  __exportStar(require("./links"), exports);
20
20
  __exportStar(require("./provider"), exports);
21
+ __exportStar(require("./uitemplate"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.10",
3
+ "version": "0.0.14",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "exports": {
6
6
  "require": "./dist/index.js",