@coveo/headless 3.27.4-pre.2d3a8a3c7b → 3.27.5-pre.45e1413037

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.27.4-pre.2d3a8a3c7b";
803
+ var VERSION = "3.27.5-pre.45e1413037";
804
804
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
805
805
 
806
806
  // src/features/configuration/configuration-actions.ts
@@ -1170,7 +1170,7 @@ var import_bueno7 = require("@coveo/bueno");
1170
1170
  var import_toolkit4 = require("@reduxjs/toolkit");
1171
1171
 
1172
1172
  // src/utils/version.ts
1173
- var VERSION = "3.27.4-pre.2d3a8a3c7b";
1173
+ var VERSION = "3.27.5-pre.45e1413037";
1174
1174
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
1175
1175
 
1176
1176
  // src/features/configuration/configuration-actions.ts
@@ -14093,7 +14093,7 @@ function buildCoreCommerceFacet(engine, props) {
14093
14093
  },
14094
14094
  showMoreValues() {
14095
14095
  const numberInState = getRequest()?.numberOfValues ?? 0;
14096
- const initialNumberOfValues = getRequest()?.initialNumberOfValues ?? 0;
14096
+ const initialNumberOfValues = getRequest()?.initialNumberOfValues ?? 1;
14097
14097
  const numberToNextMultipleOfConfigured = initialNumberOfValues - numberInState % initialNumberOfValues;
14098
14098
  const numberOfValues2 = numberInState + numberToNextMultipleOfConfigured;
14099
14099
  dispatch(updateCoreFacetNumberOfValues({ facetId: facetId2, numberOfValues: numberOfValues2 }));
@@ -14103,7 +14103,7 @@ function buildCoreCommerceFacet(engine, props) {
14103
14103
  dispatch(props.options.fetchProductsActionCreator());
14104
14104
  },
14105
14105
  showLessValues() {
14106
- const initialNumberOfValues = getRequest()?.initialNumberOfValues ?? 0;
14106
+ const initialNumberOfValues = getRequest()?.initialNumberOfValues ?? 1;
14107
14107
  const newNumberOfValues = Math.max(
14108
14108
  initialNumberOfValues,
14109
14109
  getNumberOfActiveValues()
@@ -14134,12 +14134,7 @@ function loadCommerceFacetReducers(engine) {
14134
14134
  return true;
14135
14135
  }
14136
14136
  var canShowLessValues = (request) => {
14137
- if (!request) {
14138
- return false;
14139
- }
14140
- const initialNumberOfValues = request.initialNumberOfValues;
14141
- const hasIdleValues = !!request.values.find((v) => v.state === "idle");
14142
- return (initialNumberOfValues ?? 0) < (request.numberOfValues ?? 0) && hasIdleValues;
14137
+ return !!request && request.values.length > (request.initialNumberOfValues ?? 1) && request.values.some((v) => v.state === "idle");
14143
14138
  };
14144
14139
  var getCoreFacetState = (facetId2, request, response, isLoading) => {
14145
14140
  return {