@seekora-ai/ui-sdk-react 0.2.27 → 0.2.29

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.
@@ -641,6 +641,8 @@ interface CurrentRefinementsProps {
641
641
  style?: React__default.CSSProperties;
642
642
  /** Custom theme */
643
643
  theme?: CurrentRefinementsTheme;
644
+ /** Fields to exclude from display (e.g. ['category'] on collection pages) */
645
+ excludeFields?: string[];
644
646
  }
645
647
  declare const CurrentRefinements: React__default.FC<CurrentRefinementsProps>;
646
648
 
@@ -5099,7 +5099,7 @@ const getVariantClass = (variant, refinementsTheme) => {
5099
5099
  default: return refinementsTheme.item;
5100
5100
  }
5101
5101
  };
5102
- const CurrentRefinements = ({ refinements: refinementsProp, onRefinementClear, onClearAll, renderRefinement, showClearAll = true, variant = 'chips', layout = 'horizontal', fieldColors, renderCloseIcon, className, style, theme: customTheme, }) => {
5102
+ const CurrentRefinements = ({ refinements: refinementsProp, onRefinementClear, onClearAll, renderRefinement, showClearAll = true, variant = 'chips', layout = 'horizontal', fieldColors, renderCloseIcon, className, style, theme: customTheme, excludeFields, }) => {
5103
5103
  const { theme } = useSearchContext();
5104
5104
  const { refinements: stateRefinements, removeRefinement, clearRefinements } = useSearchState();
5105
5105
  const refinementsTheme = customTheme || {};
@@ -5154,8 +5154,13 @@ const CurrentRefinements = ({ refinements: refinementsProp, onRefinementClear, o
5154
5154
  }
5155
5155
  nonRange.push({ field, value: '__range__', displayValue });
5156
5156
  });
5157
- return nonRange;
5158
- }, [refinementsProp, stateRefinementsKey]);
5157
+ const merged = nonRange;
5158
+ if (excludeFields && excludeFields.length > 0) {
5159
+ const excluded = new Set(excludeFields);
5160
+ return merged.filter(r => !excluded.has(r.field));
5161
+ }
5162
+ return merged;
5163
+ }, [refinementsProp, stateRefinementsKey, excludeFields]);
5159
5164
  // Track items for entry/exit animations
5160
5165
  const [visibleItems, setVisibleItems] = useState(new Set());
5161
5166
  const [exitingItems, setExitingItems] = useState(new Set());
@@ -9980,7 +9985,7 @@ function ImageZoom({ src, alt = '', mode = 'both', zoomLevel = 2.5, className, s
9980
9985
  const imageStyle = {
9981
9986
  width: '100%',
9982
9987
  height: '100%',
9983
- objectFit: 'cover',
9988
+ objectFit: style?.objectFit ?? 'cover',
9984
9989
  display: 'block',
9985
9990
  };
9986
9991
  // Compute the indicator rectangle (what portion of the image the zoom panel shows).