From 0d594735ceb304c60a4a33f1dcbbc71280200990 Mon Sep 17 00:00:00 2001 From: Aymeric Giraudet Date: Tue, 16 Apr 2024 16:49:51 +0200 Subject: [PATCH] feat(types): add `banners` in `renderingContent` --- packages/client-search/src/types/Settings.ts | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/packages/client-search/src/types/Settings.ts b/packages/client-search/src/types/Settings.ts index 9a2199d46..c763eacbc 100644 --- a/packages/client-search/src/types/Settings.ts +++ b/packages/client-search/src/types/Settings.ts @@ -358,6 +358,49 @@ export type Settings = { }; }; }; + /** + * Defining UI widget configuration + */ + readonly widgets?: { + /** + * Configuration for banners + */ + readonly banners?: ReadonlyArray<{ + /** + * Configuration for the banner image + */ + readonly image: { + /** + * Set of possible URLs of the banner image + */ + readonly urls: ReadonlyArray<{ + /** + * URL of the banner image + */ + readonly url: string; + }>; + /** + * Alt text of the banner image + */ + readonly title?: string; + }; + /** + * Configuration for the banner click navigation + */ + readonly link?: { + /** + * URL to navigate to when the banner is clicked + */ + readonly url?: string; + /** + * Target of the navigation + * - `_blank` opens the URL in a new tab + * - `_self` opens the URL in the same tab + */ + readonly target?: '_blank' | '_self'; + }; + }>; + }; }; /**