instantsearch.js 4.33.2 → 4.37.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.
Files changed (274) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +2 -1
  3. package/cjs/components/Answers/Answers.js +1 -1
  4. package/cjs/components/Breadcrumb/Breadcrumb.js +1 -1
  5. package/cjs/components/ClearRefinements/ClearRefinements.js +1 -1
  6. package/cjs/components/CurrentRefinements/CurrentRefinements.js +3 -3
  7. package/cjs/components/GeoSearchControls/GeoSearchControls.js +3 -3
  8. package/cjs/components/Hits/Hits.js +1 -1
  9. package/cjs/components/InfiniteHits/InfiniteHits.js +1 -1
  10. package/cjs/components/MenuSelect/MenuSelect.js +3 -3
  11. package/cjs/components/Pagination/Pagination.js +71 -161
  12. package/cjs/components/Pagination/PaginationLink.js +26 -13
  13. package/cjs/components/Panel/Panel.js +1 -1
  14. package/cjs/components/QueryRuleCustomData/QueryRuleCustomData.js +1 -1
  15. package/cjs/components/RangeInput/RangeInput.js +1 -1
  16. package/cjs/components/RefinementList/RefinementList.js +6 -6
  17. package/cjs/components/RefinementList/RefinementListItem.js +1 -1
  18. package/cjs/components/RelevantSort/RelevantSort.js +1 -1
  19. package/cjs/components/SearchBox/SearchBox.js +9 -10
  20. package/cjs/components/Slider/Slider.js +5 -5
  21. package/cjs/components/Stats/Stats.js +1 -1
  22. package/cjs/components/Template/Template.js +3 -3
  23. package/cjs/components/ToggleRefinement/ToggleRefinement.js +1 -1
  24. package/cjs/components/VoiceSearch/VoiceSearch.js +1 -1
  25. package/cjs/connectors/answers/connectAnswers.js +10 -10
  26. package/cjs/connectors/autocomplete/connectAutocomplete.js +11 -10
  27. package/cjs/connectors/breadcrumb/connectBreadcrumb.js +5 -5
  28. package/cjs/connectors/clear-refinements/connectClearRefinements.js +9 -9
  29. package/cjs/connectors/configure/connectConfigure.js +8 -8
  30. package/cjs/connectors/configure-related-items/connectConfigureRelatedItems.js +5 -5
  31. package/cjs/connectors/current-refinements/connectCurrentRefinements.js +6 -6
  32. package/cjs/connectors/dynamic-widgets/connectDynamicWidgets.js +35 -10
  33. package/cjs/connectors/geo-search/connectGeoSearch.js +11 -11
  34. package/cjs/connectors/hierarchical-menu/connectHierarchicalMenu.js +6 -6
  35. package/cjs/connectors/hits/connectHits.js +11 -11
  36. package/cjs/connectors/hits/connectHitsWithInsights.js +3 -3
  37. package/cjs/connectors/hits-per-page/connectHitsPerPage.js +6 -6
  38. package/cjs/connectors/index.js +31 -31
  39. package/cjs/connectors/infinite-hits/connectInfiniteHits.js +13 -13
  40. package/cjs/connectors/infinite-hits/connectInfiniteHitsWithInsights.js +3 -3
  41. package/cjs/connectors/menu/connectMenu.js +5 -5
  42. package/cjs/connectors/numeric-menu/connectNumericMenu.js +7 -7
  43. package/cjs/connectors/pagination/Paginator.js +3 -3
  44. package/cjs/connectors/pagination/connectPagination.js +8 -8
  45. package/cjs/connectors/powered-by/connectPoweredBy.js +5 -5
  46. package/cjs/connectors/query-rules/connectQueryRules.js +7 -7
  47. package/cjs/connectors/range/connectRange.js +27 -27
  48. package/cjs/connectors/rating-menu/connectRatingMenu.js +6 -6
  49. package/cjs/connectors/refinement-list/connectRefinementList.js +8 -8
  50. package/cjs/connectors/relevant-sort/connectRelevantSort.js +3 -3
  51. package/cjs/connectors/search-box/connectSearchBox.js +8 -7
  52. package/cjs/connectors/sort-by/connectSortBy.js +8 -7
  53. package/cjs/connectors/stats/connectStats.js +8 -8
  54. package/cjs/connectors/toggle-refinement/connectToggleRefinement.js +12 -12
  55. package/cjs/connectors/voice-search/connectVoiceSearch.js +6 -6
  56. package/cjs/helpers/get-insights-anonymous-user-token.js +2 -2
  57. package/cjs/helpers/highlight.js +4 -4
  58. package/cjs/helpers/index.js +6 -6
  59. package/cjs/helpers/insights.js +4 -4
  60. package/cjs/helpers/reverseHighlight.js +5 -5
  61. package/cjs/helpers/reverseSnippet.js +5 -5
  62. package/cjs/helpers/snippet.js +4 -4
  63. package/cjs/index.js +9 -9
  64. package/cjs/lib/InstantSearch.js +44 -23
  65. package/cjs/lib/createHelpers.js +6 -6
  66. package/cjs/lib/infiniteHitsCache/index.js +1 -1
  67. package/cjs/lib/infiniteHitsCache/sessionStorage.js +4 -4
  68. package/cjs/lib/insights/client.js +5 -5
  69. package/cjs/lib/insights/index.js +2 -2
  70. package/cjs/lib/insights/listener.js +3 -3
  71. package/cjs/lib/routers/history.js +6 -6
  72. package/cjs/lib/routers/index.js +1 -1
  73. package/cjs/lib/stateMappings/index.js +2 -2
  74. package/cjs/lib/utils/checkIndexUiState.js +3 -3
  75. package/cjs/lib/utils/checkRendering.js +1 -1
  76. package/cjs/lib/utils/concatHighlightedParts.js +1 -1
  77. package/cjs/lib/utils/createSendEventForFacet.js +1 -1
  78. package/cjs/lib/utils/createSendEventForHits.js +1 -1
  79. package/cjs/lib/utils/detect-insights-client.js +1 -1
  80. package/cjs/lib/utils/escape-highlight.js +2 -2
  81. package/cjs/lib/utils/getContainerNode.js +1 -1
  82. package/cjs/lib/utils/getHighlightFromSiblings.js +1 -1
  83. package/cjs/lib/utils/getHighlightedParts.js +1 -1
  84. package/cjs/lib/utils/getRefinements.js +2 -2
  85. package/cjs/lib/utils/index.js +48 -48
  86. package/cjs/lib/utils/logger.js +1 -1
  87. package/cjs/lib/utils/mergeSearchParameters.js +2 -2
  88. package/cjs/lib/utils/prepareTemplateProps.js +1 -1
  89. package/cjs/lib/utils/reverseHighlightedParts.js +1 -1
  90. package/cjs/lib/version.js +1 -1
  91. package/cjs/middlewares/createInsightsMiddleware.js +11 -11
  92. package/cjs/middlewares/createMetadataMiddleware.js +2 -2
  93. package/cjs/middlewares/createRouterMiddleware.js +4 -4
  94. package/cjs/middlewares/index.js +3 -3
  95. package/cjs/types/index.js +14 -14
  96. package/cjs/widgets/analytics/analytics.js +3 -3
  97. package/cjs/widgets/answers/answers.js +8 -8
  98. package/cjs/widgets/breadcrumb/breadcrumb.js +8 -8
  99. package/cjs/widgets/clear-refinements/clear-refinements.js +8 -8
  100. package/cjs/widgets/configure/configure.js +3 -3
  101. package/cjs/widgets/configure-related-items/configure-related-items.js +3 -3
  102. package/cjs/widgets/current-refinements/current-refinements.js +6 -6
  103. package/cjs/widgets/dynamic-widgets/dynamic-widgets.js +14 -11
  104. package/cjs/widgets/geo-search/GeoSearchRenderer.js +3 -3
  105. package/cjs/widgets/geo-search/geo-search.js +9 -9
  106. package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +8 -8
  107. package/cjs/widgets/hits/hits.js +11 -11
  108. package/cjs/widgets/hits-per-page/hits-per-page.js +7 -7
  109. package/cjs/widgets/index/index.js +26 -8
  110. package/cjs/widgets/index.js +36 -36
  111. package/cjs/widgets/infinite-hits/infinite-hits.js +11 -11
  112. package/cjs/widgets/menu/menu.js +8 -8
  113. package/cjs/widgets/menu-select/menu-select.js +8 -8
  114. package/cjs/widgets/numeric-menu/numeric-menu.js +8 -8
  115. package/cjs/widgets/pagination/pagination.js +7 -7
  116. package/cjs/widgets/panel/panel.js +7 -7
  117. package/cjs/widgets/powered-by/powered-by.js +6 -6
  118. package/cjs/widgets/query-rule-context/query-rule-context.js +4 -4
  119. package/cjs/widgets/query-rule-custom-data/query-rule-custom-data.js +6 -6
  120. package/cjs/widgets/range-input/range-input.js +7 -7
  121. package/cjs/widgets/range-slider/range-slider.js +6 -6
  122. package/cjs/widgets/rating-menu/rating-menu.js +8 -8
  123. package/cjs/widgets/refinement-list/refinement-list.js +10 -10
  124. package/cjs/widgets/relevant-sort/relevant-sort.js +7 -7
  125. package/cjs/widgets/search-box/search-box.js +7 -7
  126. package/cjs/widgets/sort-by/sort-by.js +6 -6
  127. package/cjs/widgets/stats/defaultTemplates.js +1 -1
  128. package/cjs/widgets/stats/stats.js +7 -7
  129. package/cjs/widgets/toggle-refinement/toggle-refinement.js +8 -8
  130. package/cjs/widgets/voice-search/voice-search.js +7 -7
  131. package/dist/instantsearch.development.d.ts +23 -2
  132. package/dist/instantsearch.development.js +383 -376
  133. package/dist/instantsearch.development.js.map +1 -1
  134. package/dist/instantsearch.development.min.d.ts +23 -2
  135. package/dist/instantsearch.production.d.ts +23 -2
  136. package/dist/instantsearch.production.min.d.ts +23 -2
  137. package/dist/instantsearch.production.min.js +2 -2
  138. package/dist/instantsearch.production.min.js.map +1 -1
  139. package/es/components/Answers/Answers.js +1 -1
  140. package/es/components/Breadcrumb/Breadcrumb.js +1 -1
  141. package/es/components/ClearRefinements/ClearRefinements.js +1 -1
  142. package/es/components/CurrentRefinements/CurrentRefinements.js +1 -1
  143. package/es/components/GeoSearchControls/GeoSearchControls.js +3 -3
  144. package/es/components/Hits/Hits.js +1 -1
  145. package/es/components/InfiniteHits/InfiniteHits.js +1 -1
  146. package/es/components/MenuSelect/MenuSelect.js +2 -2
  147. package/es/components/Pagination/Pagination.d.ts +4 -11
  148. package/es/components/Pagination/Pagination.js +72 -162
  149. package/es/components/Pagination/PaginationLink.d.ts +10 -11
  150. package/es/components/Pagination/PaginationLink.js +23 -13
  151. package/es/components/Panel/Panel.js +1 -1
  152. package/es/components/QueryRuleCustomData/QueryRuleCustomData.js +1 -1
  153. package/es/components/RangeInput/RangeInput.js +1 -1
  154. package/es/components/RefinementList/RefinementList.js +4 -4
  155. package/es/components/RefinementList/RefinementListItem.js +1 -1
  156. package/es/components/RelevantSort/RelevantSort.js +1 -1
  157. package/es/components/SearchBox/SearchBox.js +5 -6
  158. package/es/components/Slider/Slider.js +3 -3
  159. package/es/components/Stats/Stats.js +1 -1
  160. package/es/components/Template/Template.js +1 -1
  161. package/es/components/ToggleRefinement/ToggleRefinement.js +1 -1
  162. package/es/components/VoiceSearch/VoiceSearch.js +1 -1
  163. package/es/connectors/answers/connectAnswers.js +1 -1
  164. package/es/connectors/autocomplete/connectAutocomplete.js +3 -2
  165. package/es/connectors/breadcrumb/connectBreadcrumb.js +1 -1
  166. package/es/connectors/clear-refinements/connectClearRefinements.js +1 -1
  167. package/es/connectors/configure/connectConfigure.js +1 -1
  168. package/es/connectors/configure-related-items/connectConfigureRelatedItems.js +2 -2
  169. package/es/connectors/current-refinements/connectCurrentRefinements.js +1 -1
  170. package/es/connectors/dynamic-widgets/connectDynamicWidgets.d.ts +14 -0
  171. package/es/connectors/dynamic-widgets/connectDynamicWidgets.js +31 -6
  172. package/es/connectors/geo-search/connectGeoSearch.js +1 -1
  173. package/es/connectors/hierarchical-menu/connectHierarchicalMenu.js +1 -1
  174. package/es/connectors/hits/connectHits.js +1 -1
  175. package/es/connectors/hits/connectHitsWithInsights.js +2 -2
  176. package/es/connectors/hits-per-page/connectHitsPerPage.js +1 -1
  177. package/es/connectors/index.js +30 -30
  178. package/es/connectors/infinite-hits/connectInfiniteHits.js +2 -2
  179. package/es/connectors/infinite-hits/connectInfiniteHitsWithInsights.js +2 -2
  180. package/es/connectors/menu/connectMenu.js +1 -1
  181. package/es/connectors/numeric-menu/connectNumericMenu.js +1 -1
  182. package/es/connectors/pagination/Paginator.js +1 -1
  183. package/es/connectors/pagination/connectPagination.js +5 -5
  184. package/es/connectors/powered-by/connectPoweredBy.js +1 -1
  185. package/es/connectors/query-rules/connectQueryRules.js +1 -1
  186. package/es/connectors/range/connectRange.js +1 -1
  187. package/es/connectors/rating-menu/connectRatingMenu.js +1 -1
  188. package/es/connectors/refinement-list/connectRefinementList.js +1 -1
  189. package/es/connectors/relevant-sort/connectRelevantSort.js +1 -1
  190. package/es/connectors/search-box/connectSearchBox.js +5 -4
  191. package/es/connectors/sort-by/connectSortBy.js +3 -2
  192. package/es/connectors/stats/connectStats.js +5 -5
  193. package/es/connectors/toggle-refinement/connectToggleRefinement.js +2 -2
  194. package/es/connectors/voice-search/connectVoiceSearch.js +2 -2
  195. package/es/helpers/get-insights-anonymous-user-token.js +1 -1
  196. package/es/helpers/highlight.js +2 -2
  197. package/es/helpers/index.js +10 -10
  198. package/es/helpers/insights.js +1 -1
  199. package/es/helpers/reverseHighlight.js +2 -2
  200. package/es/helpers/reverseSnippet.js +2 -2
  201. package/es/helpers/snippet.js +2 -2
  202. package/es/index.js +6 -6
  203. package/es/lib/InstantSearch.d.ts +3 -3
  204. package/es/lib/InstantSearch.js +29 -8
  205. package/es/lib/createHelpers.js +1 -1
  206. package/es/lib/infiniteHitsCache/index.js +1 -1
  207. package/es/lib/infiniteHitsCache/sessionStorage.js +1 -1
  208. package/es/lib/insights/client.js +1 -1
  209. package/es/lib/insights/index.js +2 -2
  210. package/es/lib/insights/listener.js +2 -2
  211. package/es/lib/routers/history.js +1 -1
  212. package/es/lib/routers/index.js +1 -1
  213. package/es/lib/stateMappings/index.js +2 -2
  214. package/es/lib/utils/checkIndexUiState.js +3 -3
  215. package/es/lib/utils/checkRendering.js +1 -1
  216. package/es/lib/utils/concatHighlightedParts.js +1 -1
  217. package/es/lib/utils/createSendEventForFacet.js +1 -1
  218. package/es/lib/utils/createSendEventForHits.js +1 -1
  219. package/es/lib/utils/detect-insights-client.js +1 -1
  220. package/es/lib/utils/escape-highlight.js +2 -2
  221. package/es/lib/utils/getContainerNode.js +1 -1
  222. package/es/lib/utils/getHighlightFromSiblings.js +1 -1
  223. package/es/lib/utils/getHighlightedParts.js +1 -1
  224. package/es/lib/utils/getRefinements.js +2 -2
  225. package/es/lib/utils/index.js +48 -48
  226. package/es/lib/utils/logger.js +1 -1
  227. package/es/lib/utils/mergeSearchParameters.js +2 -2
  228. package/es/lib/utils/prepareTemplateProps.js +1 -1
  229. package/es/lib/utils/reverseHighlightedParts.js +1 -1
  230. package/es/lib/version.d.ts +1 -1
  231. package/es/lib/version.js +1 -1
  232. package/es/middlewares/createInsightsMiddleware.js +3 -3
  233. package/es/middlewares/createMetadataMiddleware.js +1 -1
  234. package/es/middlewares/createRouterMiddleware.js +3 -3
  235. package/es/middlewares/index.js +3 -3
  236. package/es/package.json +1 -0
  237. package/es/types/index.js +14 -14
  238. package/es/types/results.d.ts +7 -0
  239. package/es/widgets/analytics/analytics.js +1 -1
  240. package/es/widgets/answers/answers.js +5 -5
  241. package/es/widgets/breadcrumb/breadcrumb.js +5 -5
  242. package/es/widgets/clear-refinements/clear-refinements.js +5 -5
  243. package/es/widgets/configure/configure.js +2 -2
  244. package/es/widgets/configure-related-items/configure-related-items.js +2 -2
  245. package/es/widgets/current-refinements/current-refinements.js +4 -4
  246. package/es/widgets/dynamic-widgets/dynamic-widgets.js +11 -8
  247. package/es/widgets/geo-search/GeoSearchRenderer.js +2 -2
  248. package/es/widgets/geo-search/geo-search.js +6 -6
  249. package/es/widgets/hierarchical-menu/hierarchical-menu.js +5 -5
  250. package/es/widgets/hits/hits.js +6 -6
  251. package/es/widgets/hits-per-page/hits-per-page.js +4 -4
  252. package/es/widgets/index/index.js +21 -3
  253. package/es/widgets/index.js +34 -34
  254. package/es/widgets/infinite-hits/infinite-hits.js +6 -6
  255. package/es/widgets/menu/menu.js +5 -5
  256. package/es/widgets/menu-select/menu-select.js +5 -5
  257. package/es/widgets/numeric-menu/numeric-menu.js +5 -5
  258. package/es/widgets/pagination/pagination.js +4 -4
  259. package/es/widgets/panel/panel.js +3 -3
  260. package/es/widgets/powered-by/powered-by.js +4 -4
  261. package/es/widgets/query-rule-context/query-rule-context.js +2 -2
  262. package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +4 -4
  263. package/es/widgets/range-input/range-input.js +4 -4
  264. package/es/widgets/range-slider/range-slider.js +4 -4
  265. package/es/widgets/rating-menu/rating-menu.js +5 -5
  266. package/es/widgets/refinement-list/refinement-list.js +6 -6
  267. package/es/widgets/relevant-sort/relevant-sort.js +5 -5
  268. package/es/widgets/search-box/search-box.js +5 -5
  269. package/es/widgets/sort-by/sort-by.js +4 -4
  270. package/es/widgets/stats/defaultTemplates.js +1 -1
  271. package/es/widgets/stats/stats.js +4 -4
  272. package/es/widgets/toggle-refinement/toggle-refinement.js +5 -5
  273. package/es/widgets/voice-search/voice-search.js +5 -5
  274. package/package.json +10 -6
@@ -7,10 +7,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7
7
  /** @jsx h */
8
8
  import { h, render } from 'preact';
9
9
  import cx from 'classnames';
10
- import Selector from '../../components/Selector/Selector';
11
- import connectSortBy from '../../connectors/sort-by/connectSortBy';
12
- import { getContainerNode, createDocumentationMessageGenerator } from '../../lib/utils';
13
- import { component } from '../../lib/suit';
10
+ import Selector from "../../components/Selector/Selector.js";
11
+ import connectSortBy from "../../connectors/sort-by/connectSortBy.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { component } from "../../lib/suit.js";
14
14
  var withUsage = createDocumentationMessageGenerator({
15
15
  name: 'sort-by'
16
16
  });
@@ -1 +1 @@
1
- export { defaultTemplates as default } from './stats';
1
+ export { defaultTemplates as default } from "./stats.js";
@@ -7,10 +7,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7
7
  /** @jsx h */
8
8
  import { h, render } from 'preact';
9
9
  import cx from 'classnames';
10
- import Stats from '../../components/Stats/Stats';
11
- import connectStats from '../../connectors/stats/connectStats';
12
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from '../../lib/utils';
13
- import { component } from '../../lib/suit';
10
+ import Stats from "../../components/Stats/Stats.js";
11
+ import connectStats from "../../connectors/stats/connectStats.js";
12
+ import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { component } from "../../lib/suit.js";
14
14
  var withUsage = createDocumentationMessageGenerator({
15
15
  name: 'stats'
16
16
  });
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7
7
  /** @jsx h */
8
8
  import { h, render } from 'preact';
9
9
  import cx from 'classnames';
10
- import ToggleRefinement from '../../components/ToggleRefinement/ToggleRefinement';
11
- import connectToggleRefinement from '../../connectors/toggle-refinement/connectToggleRefinement';
12
- import defaultTemplates from './defaultTemplates';
13
- import { getContainerNode, prepareTemplateProps, createDocumentationMessageGenerator } from '../../lib/utils';
14
- import { component } from '../../lib/suit';
10
+ import ToggleRefinement from "../../components/ToggleRefinement/ToggleRefinement.js";
11
+ import connectToggleRefinement from "../../connectors/toggle-refinement/connectToggleRefinement.js";
12
+ import defaultTemplates from "./defaultTemplates.js";
13
+ import { getContainerNode, prepareTemplateProps, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
14
+ import { component } from "../../lib/suit.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'toggle-refinement'
17
17
  });
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7
7
  /** @jsx h */
8
8
  import { h, render } from 'preact';
9
9
  import cx from 'classnames';
10
- import { getContainerNode, createDocumentationMessageGenerator } from '../../lib/utils';
11
- import { component } from '../../lib/suit';
12
- import connectVoiceSearch from '../../connectors/voice-search/connectVoiceSearch';
13
- import VoiceSearchComponent from '../../components/VoiceSearch/VoiceSearch';
14
- import defaultTemplates from './defaultTemplates';
10
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
11
+ import { component } from "../../lib/suit.js";
12
+ import connectVoiceSearch from "../../connectors/voice-search/connectVoiceSearch.js";
13
+ import VoiceSearchComponent from "../../components/VoiceSearch/VoiceSearch.js";
14
+ import defaultTemplates from "./defaultTemplates.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'voice-search'
17
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instantsearch.js",
3
- "version": "4.33.2",
3
+ "version": "4.37.0",
4
4
  "description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",
5
5
  "homepage": "https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/",
6
6
  "types": "es/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "build": "yarn run build:cjs && yarn run build:es && yarn run build:umd && yarn run build:types",
26
26
  "build:umd": "rm -rf dist && BABEL_ENV=umd rollup --config scripts/rollup/config.js",
27
27
  "build:cjs": "rm -rf cjs && BABEL_ENV=cjs babel src --extensions '.js,.ts,.tsx' --out-dir cjs/ --ignore 'src/index.es.ts','**/__tests__','**/__mocks__' --quiet",
28
- "build:es": "rm -rf es && BABEL_ENV=es babel src --extensions '.js,.ts,.tsx' --out-dir es/ --ignore 'src/index.es.ts','**/__tests__','**/__mocks__' --quiet && BABEL_ENV=es babel src/index.es.ts --out-file es/index.js --quiet",
28
+ "build:es": "rm -rf es && BABEL_ENV=es babel src --extensions '.js,.ts,.tsx' --out-dir es/ --ignore 'src/index.es.ts','**/__tests__','**/__mocks__' --quiet && BABEL_ENV=es babel src/index.es.ts --out-file es/index.js --quiet && echo '{\"type\":\"module\"}' > es/package.json",
29
29
  "build:types": "./scripts/typescript/extract.js",
30
30
  "doctoc": "doctoc --no-title --maxlevel 3 README.md CONTRIBUTING.md",
31
31
  "storybook": "start-storybook --quiet --port 6006 --ci --static-dir .storybook/static",
@@ -43,6 +43,7 @@
43
43
  "test:e2e:saucelabs": "wdio wdio.saucelabs.conf.js",
44
44
  "test:size": "bundlesize",
45
45
  "test:argos": "argos upload functional-tests/screenshots --token $ARGOS_TOKEN || true",
46
+ "test:exports": "node test/module/is-es-module.mjs",
46
47
  "release": "shipjs prepare"
47
48
  },
48
49
  "files": [
@@ -55,11 +56,11 @@
55
56
  "@types/google.maps": "^3.45.3",
56
57
  "@types/hogan.js": "^3.0.0",
57
58
  "@types/qs": "^6.5.3",
58
- "algoliasearch-helper": "^3.6.2",
59
+ "algoliasearch-helper": "^3.7.0",
59
60
  "classnames": "^2.2.5",
60
- "events": "^1.1.0",
61
+ "@algolia/events": "^4.0.1",
61
62
  "hogan.js": "^3.0.2",
62
- "preact": "^10.0.0",
63
+ "preact": "^10.6.0",
63
64
  "qs": "^6.5.1 < 6.10",
64
65
  "search-insights": "^2.1.0"
65
66
  },
@@ -144,13 +145,16 @@
144
145
  "typescript": "4.3.5",
145
146
  "webpack": "4.41.5"
146
147
  },
148
+ "peerDependencies": {
149
+ "algoliasearch": ">= 3.1 < 5"
150
+ },
147
151
  "resolutions": {
148
152
  "places.js/algoliasearch": "3.35.0"
149
153
  },
150
154
  "bundlesize": [
151
155
  {
152
156
  "path": "./dist/instantsearch.production.min.js",
153
- "maxSize": "69.25 kB"
157
+ "maxSize": "70.00 kB"
154
158
  },
155
159
  {
156
160
  "path": "./dist/instantsearch.development.js",