Skip to content

Commit 0d59473

Browse files
feat(types): add banners in renderingContent
1 parent f49a6bc commit 0d59473

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

packages/client-search/src/types/Settings.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,49 @@ export type Settings = {
358358
};
359359
};
360360
};
361+
/**
362+
* Defining UI widget configuration
363+
*/
364+
readonly widgets?: {
365+
/**
366+
* Configuration for banners
367+
*/
368+
readonly banners?: ReadonlyArray<{
369+
/**
370+
* Configuration for the banner image
371+
*/
372+
readonly image: {
373+
/**
374+
* Set of possible URLs of the banner image
375+
*/
376+
readonly urls: ReadonlyArray<{
377+
/**
378+
* URL of the banner image
379+
*/
380+
readonly url: string;
381+
}>;
382+
/**
383+
* Alt text of the banner image
384+
*/
385+
readonly title?: string;
386+
};
387+
/**
388+
* Configuration for the banner click navigation
389+
*/
390+
readonly link?: {
391+
/**
392+
* URL to navigate to when the banner is clicked
393+
*/
394+
readonly url?: string;
395+
/**
396+
* Target of the navigation
397+
* - `_blank` opens the URL in a new tab
398+
* - `_self` opens the URL in the same tab
399+
*/
400+
readonly target?: '_blank' | '_self';
401+
};
402+
}>;
403+
};
361404
};
362405

363406
/**

0 commit comments

Comments
 (0)