instantsearch.js 4.48.0 → 4.49.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 (114) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/cjs/components/Answers/Answers.js +4 -4
  3. package/cjs/components/Breadcrumb/Breadcrumb.js +4 -6
  4. package/cjs/components/ClearRefinements/ClearRefinements.js +2 -4
  5. package/cjs/components/CurrentRefinements/CurrentRefinements.js +2 -6
  6. package/cjs/components/GeoSearchControls/GeoSearchControls.js +3 -5
  7. package/cjs/components/Hits/Hits.js +2 -2
  8. package/cjs/components/InfiniteHits/InfiniteHits.js +4 -4
  9. package/cjs/components/MenuSelect/MenuSelect.js +2 -4
  10. package/cjs/components/Pagination/Pagination.js +3 -7
  11. package/cjs/components/Panel/Panel.js +2 -6
  12. package/cjs/components/PoweredBy/PoweredBy.js +6 -16
  13. package/cjs/components/RangeInput/RangeInput.js +4 -4
  14. package/cjs/components/RefinementList/RefinementList.js +4 -6
  15. package/cjs/components/Selector/Selector.js +3 -5
  16. package/cjs/components/Slider/Pit.js +2 -6
  17. package/cjs/components/Slider/Slider.js +3 -6
  18. package/cjs/components/Stats/Stats.js +2 -2
  19. package/cjs/connectors/current-refinements/connectCurrentRefinements.js +2 -0
  20. package/cjs/lib/InstantSearch.js +3 -1
  21. package/cjs/lib/utils/index.js +0 -13
  22. package/cjs/lib/version.js +1 -1
  23. package/cjs/widgets/answers/answers.js +7 -7
  24. package/cjs/widgets/breadcrumb/breadcrumb.js +8 -8
  25. package/cjs/widgets/clear-refinements/clear-refinements.js +4 -4
  26. package/cjs/widgets/current-refinements/current-refinements.js +9 -9
  27. package/cjs/widgets/geo-search/geo-search.js +11 -11
  28. package/cjs/widgets/hierarchical-menu/defaultTemplates.js +4 -4
  29. package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +14 -14
  30. package/cjs/widgets/hits/hits.js +5 -5
  31. package/cjs/widgets/hits-per-page/hits-per-page.js +4 -4
  32. package/cjs/widgets/infinite-hits/infinite-hits.js +9 -9
  33. package/cjs/widgets/menu/defaultTemplates.js +4 -4
  34. package/cjs/widgets/menu/menu.js +11 -11
  35. package/cjs/widgets/menu-select/menu-select.js +5 -5
  36. package/cjs/widgets/numeric-menu/numeric-menu.js +9 -9
  37. package/cjs/widgets/pagination/pagination.js +13 -13
  38. package/cjs/widgets/panel/panel.js +10 -10
  39. package/cjs/widgets/powered-by/powered-by.js +4 -4
  40. package/cjs/widgets/query-rule-custom-data/query-rule-custom-data.js +2 -2
  41. package/cjs/widgets/range-input/range-input.js +10 -10
  42. package/cjs/widgets/range-slider/range-slider.js +3 -3
  43. package/cjs/widgets/rating-menu/defaultTemplates.js +6 -6
  44. package/cjs/widgets/rating-menu/rating-menu.js +13 -13
  45. package/cjs/widgets/refinement-list/defaultTemplates.js +5 -5
  46. package/cjs/widgets/refinement-list/refinement-list.js +23 -23
  47. package/cjs/widgets/relevant-sort/relevant-sort.js +4 -4
  48. package/cjs/widgets/search-box/search-box.js +10 -10
  49. package/cjs/widgets/sort-by/sort-by.js +4 -4
  50. package/cjs/widgets/stats/stats.js +3 -3
  51. package/cjs/widgets/toggle-refinement/toggle-refinement.js +5 -5
  52. package/cjs/widgets/voice-search/voice-search.js +4 -4
  53. package/dist/instantsearch.development.js +263 -324
  54. package/dist/instantsearch.development.js.map +1 -1
  55. package/dist/instantsearch.production.min.js +2 -2
  56. package/dist/instantsearch.production.min.js.map +1 -1
  57. package/es/components/Answers/Answers.js +4 -4
  58. package/es/components/Breadcrumb/Breadcrumb.js +4 -6
  59. package/es/components/ClearRefinements/ClearRefinements.js +2 -4
  60. package/es/components/CurrentRefinements/CurrentRefinements.js +2 -4
  61. package/es/components/GeoSearchControls/GeoSearchControls.js +3 -5
  62. package/es/components/Hits/Hits.js +1 -1
  63. package/es/components/InfiniteHits/InfiniteHits.js +3 -3
  64. package/es/components/InternalHighlight/InternalHighlight.d.ts +0 -1
  65. package/es/components/MenuSelect/MenuSelect.js +2 -4
  66. package/es/components/Pagination/Pagination.js +2 -4
  67. package/es/components/Panel/Panel.js +2 -6
  68. package/es/components/PoweredBy/PoweredBy.js +6 -16
  69. package/es/components/RangeInput/RangeInput.js +2 -2
  70. package/es/components/RefinementList/RefinementList.js +4 -6
  71. package/es/components/Selector/Selector.js +1 -1
  72. package/es/components/Slider/Pit.js +2 -4
  73. package/es/components/Slider/Slider.js +3 -6
  74. package/es/components/Stats/Stats.js +1 -1
  75. package/es/connectors/current-refinements/connectCurrentRefinements.js +2 -0
  76. package/es/lib/InstantSearch.js +3 -1
  77. package/es/lib/utils/index.d.ts +0 -1
  78. package/es/lib/utils/index.js +0 -1
  79. package/es/lib/version.d.ts +1 -1
  80. package/es/lib/version.js +1 -1
  81. package/es/widgets/answers/answers.js +1 -1
  82. package/es/widgets/breadcrumb/breadcrumb.js +1 -1
  83. package/es/widgets/clear-refinements/clear-refinements.js +1 -1
  84. package/es/widgets/current-refinements/current-refinements.js +1 -1
  85. package/es/widgets/geo-search/geo-search.js +1 -1
  86. package/es/widgets/hierarchical-menu/defaultTemplates.js +2 -2
  87. package/es/widgets/hierarchical-menu/hierarchical-menu.js +1 -1
  88. package/es/widgets/hits/hits.js +1 -1
  89. package/es/widgets/hits-per-page/hits-per-page.js +1 -1
  90. package/es/widgets/infinite-hits/infinite-hits.js +1 -1
  91. package/es/widgets/menu/defaultTemplates.js +1 -1
  92. package/es/widgets/menu/menu.js +1 -1
  93. package/es/widgets/menu-select/menu-select.js +1 -1
  94. package/es/widgets/numeric-menu/numeric-menu.js +1 -1
  95. package/es/widgets/pagination/pagination.js +1 -1
  96. package/es/widgets/panel/panel.js +1 -1
  97. package/es/widgets/powered-by/powered-by.js +1 -1
  98. package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +1 -1
  99. package/es/widgets/range-input/range-input.js +1 -1
  100. package/es/widgets/range-slider/range-slider.js +1 -1
  101. package/es/widgets/rating-menu/defaultTemplates.js +2 -2
  102. package/es/widgets/rating-menu/rating-menu.js +1 -1
  103. package/es/widgets/refinement-list/defaultTemplates.js +1 -1
  104. package/es/widgets/refinement-list/refinement-list.js +1 -1
  105. package/es/widgets/relevant-sort/relevant-sort.js +1 -1
  106. package/es/widgets/search-box/search-box.js +1 -1
  107. package/es/widgets/sort-by/sort-by.js +1 -1
  108. package/es/widgets/stats/stats.js +1 -1
  109. package/es/widgets/toggle-refinement/toggle-refinement.js +1 -1
  110. package/es/widgets/voice-search/voice-search.js +1 -1
  111. package/package.json +3 -5
  112. package/cjs/lib/utils/cx.js +0 -10
  113. package/es/lib/utils/cx.d.ts +0 -1
  114. package/es/lib/utils/cx.js +0 -3
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
10
10
  import connectHierarchicalMenu from "../../connectors/hierarchical-menu/connectHierarchicalMenu.js";
11
11
  import defaultTemplates from "./defaultTemplates.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import connectHits from "../../connectors/hits/connectHits.js";
10
10
  import Hits from "../../components/Hits/Hits.js";
11
11
  import defaultTemplates from "./defaultTemplates.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import Selector from "../../components/Selector/Selector.js";
10
10
  import connectHitsPerPage from "../../connectors/hits-per-page/connectHitsPerPage.js";
11
11
  import { getContainerNode, createDocumentationMessageGenerator, find } from "../../lib/utils/index.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import InfiniteHits from "../../components/InfiniteHits/InfiniteHits.js";
10
10
  import connectInfiniteHits from "../../connectors/infinite-hits/connectInfiniteHits.js";
11
11
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -1,6 +1,6 @@
1
1
  import { h } from 'preact';
2
2
  import { formatNumber } from "../../lib/formatNumber.js";
3
- import { cx } from "../../lib/utils/index.js";
3
+ import { cx } from '@algolia/ui-components-shared';
4
4
  var defaultTemplates = {
5
5
  item: function item(_ref) {
6
6
  var cssClasses = _ref.cssClasses,
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
10
10
  import connectMenu from "../../connectors/menu/connectMenu.js";
11
11
  import defaultTemplates from "./defaultTemplates.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import connectMenu from "../../connectors/menu/connectMenu.js";
10
10
  import MenuSelect from "../../components/MenuSelect/MenuSelect.js";
11
11
  import defaultTemplates from "./defaultTemplates.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
10
10
  import connectNumericMenu from "../../connectors/numeric-menu/connectNumericMenu.js";
11
11
  import defaultTemplates from "./defaultTemplates.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import Pagination from "../../components/Pagination/Pagination.js";
10
10
  import connectPagination from "../../connectors/pagination/connectPagination.js";
11
11
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import { createDocumentationMessageGenerator, getContainerNode, getObjectType, warning } from "../../lib/utils/index.js";
10
10
  import { component } from "../../lib/suit.js";
11
11
  import Panel from "../../components/Panel/Panel.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import PoweredBy from "../../components/PoweredBy/PoweredBy.js";
10
10
  import connectPoweredBy from "../../connectors/powered-by/connectPoweredBy.js";
11
11
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
10
10
  import { component } from "../../lib/suit.js";
11
11
  import connectQueryRules from "../../connectors/query-rules/connectQueryRules.js";
@@ -17,7 +17,7 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
 
19
19
  import { h, render } from 'preact';
20
- import cx from 'classnames';
20
+ import { cx } from '@algolia/ui-components-shared';
21
21
  import RangeInput from "../../components/RangeInput/RangeInput.js";
22
22
  import connectRange from "../../connectors/range/connectRange.js";
23
23
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -17,7 +17,7 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
 
19
19
  import { h, render } from 'preact';
20
- import cx from 'classnames';
20
+ import { cx } from '@algolia/ui-components-shared';
21
21
  import Slider from "../../components/Slider/Slider.js";
22
22
  import connectRange from "../../connectors/range/connectRange.js";
23
23
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -1,6 +1,6 @@
1
1
  import { h } from 'preact';
2
2
  import { formatNumber } from "../../lib/formatNumber.js";
3
- import { cx } from "../../lib/utils/index.js";
3
+ import { cx } from '@algolia/ui-components-shared';
4
4
 
5
5
  function ItemWrapper(_ref) {
6
6
  var children = _ref.children,
@@ -39,7 +39,7 @@ var defaultTemplates = {
39
39
  }, stars.map(function (isFull, index) {
40
40
  return h("svg", {
41
41
  key: index,
42
- className: cx([cx(cssClasses.starIcon), cx(isFull ? cssClasses.fullStarIcon : cssClasses.emptyStarIcon)]),
42
+ className: cx(cssClasses.starIcon, isFull ? cssClasses.fullStarIcon : cssClasses.emptyStarIcon),
43
43
  "aria-hidden": "true",
44
44
  width: "24",
45
45
  height: "24"
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
10
10
  import connectRatingMenu from "../../connectors/rating-menu/connectRatingMenu.js";
11
11
  import defaultTemplates from "./defaultTemplates.js";
@@ -1,6 +1,6 @@
1
1
  import { h } from 'preact';
2
2
  import { formatNumber } from "../../lib/formatNumber.js";
3
- import { cx } from "../../lib/utils/index.js";
3
+ import { cx } from '@algolia/ui-components-shared';
4
4
  var defaultTemplates = {
5
5
  item: function item(_ref) {
6
6
  var cssClasses = _ref.cssClasses,
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
10
10
  import connectRefinementList from "../../connectors/refinement-list/connectRefinementList.js";
11
11
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
10
10
  import { component } from "../../lib/suit.js";
11
11
  import connectRelevantSort from "../../connectors/relevant-sort/connectRelevantSort.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
10
10
  import { component } from "../../lib/suit.js";
11
11
  import connectSearchBox from "../../connectors/search-box/connectSearchBox.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import Selector from "../../components/Selector/Selector.js";
10
10
  import connectSortBy from "../../connectors/sort-by/connectSortBy.js";
11
11
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import Stats from "../../components/Stats/Stats.js";
10
10
  import connectStats from "../../connectors/stats/connectStats.js";
11
11
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import ToggleRefinement from "../../components/ToggleRefinement/ToggleRefinement.js";
10
10
  import connectToggleRefinement from "../../connectors/toggle-refinement/connectToggleRefinement.js";
11
11
  import defaultTemplates from "./defaultTemplates.js";
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import { h, render } from 'preact';
8
- import cx from 'classnames';
8
+ import { cx } from '@algolia/ui-components-shared';
9
9
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
10
10
  import { component } from "../../lib/suit.js";
11
11
  import connectVoiceSearch from "../../connectors/voice-search/connectVoiceSearch.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instantsearch.js",
3
- "version": "4.48.0",
3
+ "version": "4.49.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",
@@ -53,13 +53,12 @@
53
53
  ],
54
54
  "dependencies": {
55
55
  "@algolia/events": "^4.0.1",
56
- "@algolia/ui-components-highlight-vdom": "^1.1.2",
57
- "@algolia/ui-components-shared": "^1.1.2",
56
+ "@algolia/ui-components-highlight-vdom": "^1.2.1",
57
+ "@algolia/ui-components-shared": "^1.2.1",
58
58
  "@types/google.maps": "^3.45.3",
59
59
  "@types/hogan.js": "^3.0.0",
60
60
  "@types/qs": "^6.5.3",
61
61
  "algoliasearch-helper": "^3.11.1",
62
- "classnames": "^2.2.5",
63
62
  "hogan.js": "^3.0.2",
64
63
  "htm": "^3.0.0",
65
64
  "preact": "^10.10.0",
@@ -83,7 +82,6 @@
83
82
  "@testing-library/dom": "8.18.1",
84
83
  "@testing-library/jest-dom": "5.16.5",
85
84
  "@testing-library/preact": "3.2.2",
86
- "@types/classnames": "^2.2.7",
87
85
  "@types/enzyme": "^3.1.15",
88
86
  "@types/jest": "^27.0.1",
89
87
  "@types/jsdom": "^16.2.13",
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.cx = cx;
7
-
8
- function cx(cssClasses) {
9
- return Array.isArray(cssClasses) ? cssClasses.filter(Boolean).join(' ') : cssClasses || '';
10
- }
@@ -1 +0,0 @@
1
- export declare function cx(cssClasses?: string | string[] | undefined): string;
@@ -1,3 +0,0 @@
1
- export function cx(cssClasses) {
2
- return Array.isArray(cssClasses) ? cssClasses.filter(Boolean).join(' ') : cssClasses || '';
3
- }