@dosgato/templating 0.0.37 → 0.0.38

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
@@ -1,3 +1,4 @@
1
+ import { isNotBlank } from 'txstate-utils';
1
2
  import { editBar, newBar } from './editbar.js';
2
3
  import { ResourceProvider } from './provider.js';
3
4
  /**
@@ -160,12 +161,12 @@ export class Component extends ResourceProvider {
160
161
  newBar(areaName, opts = {}) {
161
162
  opts.label ?? (opts.label = this.newLabel(areaName));
162
163
  opts.extraClass ?? (opts.extraClass = this.newClass(areaName));
163
- return newBar(this.path + '.' + areaName, opts);
164
+ return newBar([this.path, 'areas', areaName].filter(isNotBlank).join('.'), opts);
164
165
  }
165
166
  }
166
167
  export class Page extends Component {
167
168
  constructor(page) {
168
- super(page.data, '/', undefined);
169
+ super(page.data, '', undefined);
169
170
  this.pagePath = page.path;
170
171
  }
171
172
  passError(e, path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {