-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(autocomplete-core): add
insights
option to enable the Insights…
… plugin (#1121)
- Loading branch information
1 parent
efb27ce
commit c9d06fd
Showing
53 changed files
with
444 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
packages/autocomplete-core/src/types/AutocompleteSubscribers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
export * from './AutocompleteApi'; | ||
export * from './AutocompleteCollection'; | ||
export * from './AutocompleteContext'; | ||
export * from './AutocompleteEnvironment'; | ||
export * from './AutocompleteOptions'; | ||
export * from './AutocompleteSource'; | ||
export * from './AutocompletePropGetters'; | ||
export * from './AutocompletePlugin'; | ||
export * from './AutocompleteReshape'; | ||
export * from './AutocompleteSetters'; | ||
export * from './AutocompleteState'; | ||
export * from '@algolia/autocomplete-shared/dist/esm/core'; | ||
export * from './AutocompleteStore'; | ||
export * from './AutocompleteSubscribers'; | ||
|
||
import { CreateAlgoliaInsightsPluginParams } from '@algolia/autocomplete-plugin-algolia-insights'; | ||
import { | ||
AutocompleteOptions as _AutocompleteOptions, | ||
BaseItem, | ||
} from '@algolia/autocomplete-shared/dist/esm/core'; | ||
|
||
export interface AutocompleteOptions<TItem extends BaseItem> | ||
extends _AutocompleteOptions<TItem> { | ||
/** | ||
* Whether to enable the Insights plugin and load the Insights library if it has not been loaded yet. | ||
* | ||
* See [**autocomplete-plugin-algolia-insights**](https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-plugin-algolia-insights/) for more information. | ||
* | ||
* @default false | ||
* @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-insights | ||
*/ | ||
insights?: CreateAlgoliaInsightsPluginParams | boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.