Skip to content

Commit

Permalink
fix(atomic-react): deprecate analytics from atomic search interface (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lakhdar authored Aug 29, 2024
1 parent bc6cb1f commit fbb90fb
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ type ExecuteSearch = HTMLAtomicSearchInterfaceElement['executeFirstSearch'];
* The properties of the AtomicSearchInterface component
*/
interface WrapperProps
extends Omit<JSX.AtomicSearchInterface, 'i18n' | 'pipeline' | 'searchHub'> {
extends Omit<
JSX.AtomicSearchInterface,
'i18n' | 'pipeline' | 'searchHub' | 'analytics'
> {
/**
* An optional callback function that can be used to control the execution of the first query.
*
Expand All @@ -33,6 +36,10 @@ interface WrapperProps
* @deprecated This option has no effect. Rather, set the search hub through the `engine` `search` configuration.
*/
searchHub?: string;
/**
* @deprecated This option has no effect. Rather, set the analytics through the `engine` `analytics` `enabled` configuration.
*/
analytics?: boolean;
}

const DefaultProps: Required<Pick<WrapperProps, 'onReady' | 'localization'>> = {
Expand Down

0 comments on commit fbb90fb

Please sign in to comment.