@dosgato/templating 1.1.5 → 1.1.7
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 -1
- package/dist/uitemplate.d.ts +7 -2
- package/package.json +1 -1
package/dist/component.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export declare abstract class Component<DataType extends ComponentData = any, Fe
|
|
|
87
87
|
* The extension will NOT include the preceding dot. In the case of an extended extension like
|
|
88
88
|
* '.js.map', you should receive 'js.map'.
|
|
89
89
|
*/
|
|
90
|
-
shouldFetchVariation(extension: string):
|
|
90
|
+
shouldFetchVariation(extension: string): boolean;
|
|
91
91
|
/**
|
|
92
92
|
* Some components may be inheritable to subpages within the same site. For instance, a site's
|
|
93
93
|
* social media links may appear on every page's footer. To accomplish this in your template,
|
package/dist/uitemplate.d.ts
CHANGED
|
@@ -301,9 +301,14 @@ export interface UIConfig {
|
|
|
301
301
|
logout?: (environmentConfig: any, token: string) => void;
|
|
302
302
|
};
|
|
303
303
|
/**
|
|
304
|
-
* Optional CMS logo to be placed in the top left of the admin UI.
|
|
304
|
+
* Optional CMS logo to be placed in the top left of the admin UI. Function can be used if the logo depends
|
|
305
|
+
* on the environment.
|
|
305
306
|
*/
|
|
306
|
-
logo?: IconOrSVG;
|
|
307
|
+
logo?: IconOrSVG | ((environmentConfig: any) => IconOrSVG) | undefined;
|
|
308
|
+
/**
|
|
309
|
+
* Optional favicon. Function can be used if the favicon depends on the environment.
|
|
310
|
+
*/
|
|
311
|
+
favicon?: string | ((environmentConfig: any) => string) | undefined;
|
|
307
312
|
/**
|
|
308
313
|
* Optional function to determine whether the admin UI is running in a non-PROD environment
|
|
309
314
|
* like QUAL or DEV or STAGING or whatever identifier you want to use.
|