@coveo/headless 3.29.0-pre.7d643108f4 → 3.29.0-pre.85da7d6f22

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.
@@ -800,7 +800,7 @@ var import_bueno5 = require("@coveo/bueno");
800
800
  var import_toolkit7 = require("@reduxjs/toolkit");
801
801
 
802
802
  // src/utils/version.ts
803
- var VERSION = "3.29.0-pre.7d643108f4";
803
+ var VERSION = "3.29.0-pre.85da7d6f22";
804
804
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
805
805
 
806
806
  // src/features/configuration/configuration-actions.ts
@@ -1149,7 +1149,7 @@ var import_bueno6 = require("@coveo/bueno");
1149
1149
  var import_toolkit4 = require("@reduxjs/toolkit");
1150
1150
 
1151
1151
  // src/utils/version.ts
1152
- var VERSION = "3.29.0-pre.7d643108f4";
1152
+ var VERSION = "3.29.0-pre.85da7d6f22";
1153
1153
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
1154
1154
 
1155
1155
  // src/features/configuration/configuration-actions.ts
@@ -15928,13 +15928,6 @@ function buildCategoryFacet(engine, options) {
15928
15928
  isForFieldSuggestions: false
15929
15929
  });
15930
15930
  const getRequest = () => facetRequestSelector(engine[stateKey], facetId2);
15931
- const findDeepestSelectedChildren = (values) => {
15932
- const selectedValue = values.find((value) => value.state === "selected");
15933
- if (selectedValue) {
15934
- return findDeepestSelectedChildren(selectedValue.children);
15935
- }
15936
- return values;
15937
- };
15938
15931
  return {
15939
15932
  deselectAll,
15940
15933
  isValueSelected,
@@ -15942,11 +15935,10 @@ function buildCategoryFacet(engine, options) {
15942
15935
  toggleSelect,
15943
15936
  showMoreValues() {
15944
15937
  const { initialNumberOfValues, values, numberOfValues: numberOfValues2 } = getRequest();
15945
- const currentLevelValues = findDeepestSelectedChildren(values);
15946
15938
  if (!initialNumberOfValues && !numberOfValues2) {
15947
15939
  return;
15948
15940
  }
15949
- const newNumberOfValues = currentLevelValues.length + (initialNumberOfValues ?? numberOfValues2);
15941
+ const newNumberOfValues = values.length + (initialNumberOfValues ?? numberOfValues2);
15950
15942
  dispatch(
15951
15943
  updateCategoryFacetNumberOfValues({
15952
15944
  facetId: facetId2,