@algolia/autocomplete-core 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /*! @algolia/autocomplete-core 1.13.0 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
1
+ /*! @algolia/autocomplete-core 1.14.0 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -291,7 +291,7 @@
291
291
  return undefined;
292
292
  }
293
293
 
294
- var version = '1.13.0';
294
+ var version = '1.14.0';
295
295
 
296
296
  var userAgents = [{
297
297
  segment: 'autocomplete-core',
@@ -822,6 +822,7 @@
822
822
  function createAlgoliaInsightsPlugin(options) {
823
823
  var _getOptions = getOptions(options),
824
824
  providedInsightsClient = _getOptions.insightsClient,
825
+ insightsInitParams = _getOptions.insightsInitParams,
825
826
  onItemsChange = _getOptions.onItemsChange,
826
827
  onSelectEvent = _getOptions.onSelect,
827
828
  onActiveEvent = _getOptions.onActive,
@@ -859,6 +860,11 @@
859
860
  if (!insightsClient) {
860
861
  return {};
861
862
  }
863
+ if (insightsInitParams) {
864
+ insightsClient('init', _objectSpread({
865
+ partial: true
866
+ }, insightsInitParams));
867
+ }
862
868
  var insights = createSearchInsightsApi(insightsClient);
863
869
  var previousItems = createRef([]);
864
870
  var debouncedOnStateChange = debounce(function (_ref3) {