From 31e099003b2a430fa8c648b5f846bf034cfa6519 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Fri, 28 Jan 2022 19:52:13 -0800 Subject: [PATCH] Allow image configuration to be overridden. --- README.md | 6 +++--- src/types.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4bbdacb8..c9261299 100644 --- a/README.md +++ b/README.md @@ -342,9 +342,9 @@ image: | Option | Default | Overridable | Description | | - | - | - | - | -| `src` | | :heavy_multiplication_x: | [embedded image](https://www.flickr.com/photos/dianasch/47543120431) | A static image URL for use with the `image` [view](#views). Note that a `t=[timestsamp]` query parameter will be automatically added to this URL such that the image will not be cached by the browser. | -| `refresh_seconds` | 0 | :heavy_multiplication_x: | The number of seconds after which to refresh the image. `0` implies no refreshing. | -| `actions` | | :heavy_multiplication_x: | Actions to use for the `image` view. See [actions](#actions) below.| +| `src` | | :white_check_mark: | [embedded image](https://www.flickr.com/photos/dianasch/47543120431) | A static image URL for use with the `image` [view](#views). Note that a `t=[timestsamp]` query parameter will be automatically added to this URL such that the image will not be cached by the browser. | +| `refresh_seconds` | 0 | :white_check_mark: | The number of seconds after which to refresh the image. `0` implies no refreshing. | +| `actions` | | :white_check_mark: | Actions to use for the `image` view. See [actions](#actions) below.| ### Dimension Options diff --git a/src/types.ts b/src/types.ts index d2fe26d4..060017df 100644 --- a/src/types.ts +++ b/src/types.ts @@ -669,6 +669,7 @@ const dimensionsConfigSchema = z const overrideConfigurationSchema = z.object({ live: deepRemoveDefaults(liveOverridableConfigSchema).optional(), menu: deepRemoveDefaults(menuConfigSchema).optional(), + image: deepRemoveDefaults(imageConfigSchema).optional(), }); export type OverrideConfigurationKey = keyof z.infer;