@dosgato/templating 0.0.132 → 0.0.133
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 +1 -1
- package/dist/uitemplate.d.ts +7 -6
- package/package.json +1 -1
package/dist/component.js
CHANGED
|
@@ -286,7 +286,7 @@ export class Page extends Component {
|
|
|
286
286
|
* Get a URL for the current page with a different extension
|
|
287
287
|
*/
|
|
288
288
|
variationUrl(extension) {
|
|
289
|
-
return
|
|
289
|
+
return (this.url === '/' ? '/.root' : this.url.replace(/\.[^/]+$/, '')) + '.' + extension;
|
|
290
290
|
}
|
|
291
291
|
passError(e, path) {
|
|
292
292
|
console.warn(`Recoverable issue occured during render of ${this.pageInfo.path}. Component at ${path} threw the following error:`, e);
|
package/dist/uitemplate.d.ts
CHANGED
|
@@ -124,6 +124,12 @@ export declare function dialogQuery<T = any>(query: string, variables?: any): Pr
|
|
|
124
124
|
export interface TracingEnvironment {
|
|
125
125
|
tracingServer: string;
|
|
126
126
|
}
|
|
127
|
+
export interface TracingInterface {
|
|
128
|
+
init?: (env: TracingEnvironment) => void;
|
|
129
|
+
startTransaction?: (name: string, details: any, env?: TracingEnvironment) => void;
|
|
130
|
+
endTransaction?: (name: string, details: any, env?: TracingEnvironment) => void;
|
|
131
|
+
event?: (name: string, details: any, env?: TracingEnvironment) => void;
|
|
132
|
+
}
|
|
127
133
|
/**
|
|
128
134
|
* A type for the config object that should be exported from a CMS instance's admin/local/index.js
|
|
129
135
|
* to configure how that instance should work.
|
|
@@ -187,11 +193,6 @@ export interface UIConfig {
|
|
|
187
193
|
* here. The data collected will be available when you retrieve assets.
|
|
188
194
|
*/
|
|
189
195
|
assetMetaDialog?: UITemplate['dialog'];
|
|
190
|
-
tracing?:
|
|
191
|
-
init?: (env: TracingEnvironment) => void;
|
|
192
|
-
startTransaction?: (name: string, details: any, env?: TracingEnvironment) => void;
|
|
193
|
-
endTransaction?: (name: string, details: any, env?: TracingEnvironment) => void;
|
|
194
|
-
event?: (name: string, details: any, env?: TracingEnvironment) => void;
|
|
195
|
-
};
|
|
196
|
+
tracing?: TracingInterface;
|
|
196
197
|
}
|
|
197
198
|
export {};
|