@dosgato/templating 1.1.12 → 1.1.13

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.
@@ -304,7 +304,7 @@ export interface UIConfig {
304
304
  * Optional CMS logo to be placed in the top left of the admin UI. Function can be used if the logo depends
305
305
  * on the environment.
306
306
  */
307
- logo?: IconOrSVG | ((environmentConfig: any) => IconOrSVG) | undefined;
307
+ logo?: IconOrSVG | ((environmentConfig: any) => IconOrSVG | undefined) | undefined;
308
308
  /**
309
309
  * Optional favicon. Function can be used if the favicon depends on the environment.
310
310
  */
@@ -317,6 +317,14 @@ export interface UIConfig {
317
317
  * which environment they are working in.
318
318
  */
319
319
  environmentTitle?: (environmentConfig: any) => string | undefined;
320
+ /**
321
+ * Optional function to determine whether the admin UI is running in a non-PROD environment
322
+ * like QUAL or DEV or STAGING using a distinctive background color for the top navigation area.
323
+ *
324
+ * Lighter colors work best if used in conjunction with the environmentTitle function and to maintain
325
+ * sufficient contrast with the text and icons.
326
+ */
327
+ environmentBackgroundColor?: (environmentConfig: any) => string | undefined;
320
328
  /**
321
329
  * Page title for the <head>
322
330
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {