@dosgato/templating 0.0.145 → 0.0.146
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.d.ts +1 -0
- package/dist/component.js +4 -0
- package/dist/uitemplate.d.ts +4 -0
- package/package.json +1 -1
package/dist/component.d.ts
CHANGED
|
@@ -631,6 +631,7 @@ export declare abstract class Page<DataType extends PageData = any, FetchedType
|
|
|
631
631
|
* Get a URL for the current page with a different extension
|
|
632
632
|
*/
|
|
633
633
|
variationUrl(extension: string): string;
|
|
634
|
+
logError(e: Error): void;
|
|
634
635
|
protected passError(e: Error, path: string): void;
|
|
635
636
|
constructor(page: PageRecord<DataType>, editMode: boolean, extension: string);
|
|
636
637
|
}
|
package/dist/component.js
CHANGED
|
@@ -288,6 +288,10 @@ export class Page extends Component {
|
|
|
288
288
|
variationUrl(extension) {
|
|
289
289
|
return (this.url === '/' ? '/.root' : this.url.replace(/\.[^/]+$/, '')) + '.' + extension;
|
|
290
290
|
}
|
|
291
|
+
logError(e) {
|
|
292
|
+
this.hadError = true;
|
|
293
|
+
console.error(`Unrecoverable issue occurred during render of ${this.pageInfo.path}. Page template threw the following error:`, e);
|
|
294
|
+
}
|
|
291
295
|
passError(e, path) {
|
|
292
296
|
console.warn(`Recoverable issue occured during render of ${this.pageInfo.path}. Component at ${path} threw the following error:`, e);
|
|
293
297
|
}
|
package/dist/uitemplate.d.ts
CHANGED
|
@@ -276,6 +276,10 @@ export interface UIConfig {
|
|
|
276
276
|
* Optional CMS logo to be placed in the top left of the admin UI.
|
|
277
277
|
*/
|
|
278
278
|
logo?: IconOrSVG;
|
|
279
|
+
/**
|
|
280
|
+
* Page title for the <head>
|
|
281
|
+
*/
|
|
282
|
+
title?: string;
|
|
279
283
|
/**
|
|
280
284
|
* If you would like to collect more information about assets from editors, you may provide a dialog
|
|
281
285
|
* here. The data collected will be available when you retrieve assets.
|