@sproutsocial/seeds-react-menu 1.6.3 → 1.6.4

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.
@@ -8,14 +8,14 @@ CLI Target: es2022
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 144.41 KB
12
- CJS dist/index.js.map 372.05 KB
13
- CJS ⚡️ Build success in 434ms
14
- ESM dist/esm/index.js 134.50 KB
15
- ESM dist/esm/index.js.map 370.77 KB
16
- ESM ⚡️ Build success in 488ms
11
+ CJS dist/index.js 144.07 KB
12
+ CJS dist/index.js.map 371.53 KB
13
+ CJS ⚡️ Build success in 640ms
14
+ ESM dist/esm/index.js 134.18 KB
15
+ ESM dist/esm/index.js.map 370.25 KB
16
+ ESM ⚡️ Build success in 643ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 15668ms
18
+ DTS ⚡️ Build success in 17318ms
19
19
  DTS dist/index.d.ts 39.03 KB
20
20
  DTS dist/index.d.mts 39.03 KB
21
- Done in 18.14s.
21
+ Done in 21.11s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 7748350: fix MutiAutocomplete rendering empty state
8
+
3
9
  ## 1.6.3
4
10
 
5
11
  ### Patch Changes
package/dist/esm/index.js CHANGED
@@ -3782,8 +3782,8 @@ var MultiAutocomplete = ({
3782
3782
  [selectedItems]
3783
3783
  );
3784
3784
  const getIsItemVisibleMulti = React19.useCallback(
3785
- (item, inputValue2) => {
3786
- return (showSelectedItemsInDropdown || !selectedItemIds[item.id]) && getIsItemVisible(item, inputValue2);
3785
+ (item, inputValue) => {
3786
+ return (showSelectedItemsInDropdown || !selectedItemIds[item.id]) && getIsItemVisible(item, inputValue);
3787
3787
  },
3788
3788
  [selectedItemIds, showSelectedItemsInDropdown, getIsItemVisible]
3789
3789
  );
@@ -3834,7 +3834,7 @@ var MultiAutocomplete = ({
3834
3834
  externalStateReducer
3835
3835
  ),
3836
3836
  onStateChange(changes) {
3837
- const { type, selectedItem: newSelectedItem, inputValue: inputValue2 } = changes;
3837
+ const { type, selectedItem: newSelectedItem, inputValue } = changes;
3838
3838
  switch (type) {
3839
3839
  // Add the selected item to the selected items list
3840
3840
  case useCombobox3.stateChangeTypes.InputKeyDownEnter:
@@ -3851,19 +3851,12 @@ var MultiAutocomplete = ({
3851
3851
  default:
3852
3852
  break;
3853
3853
  }
3854
- if (inputValue2 !== void 0) updateFilteredItems({ inputValue: inputValue2 });
3854
+ if (inputValue !== void 0) updateFilteredItems({ inputValue });
3855
3855
  onStateChange && onStateChange(changes);
3856
3856
  },
3857
3857
  ...useComboboxProps
3858
3858
  });
3859
- const { isOpen, closeMenu, inputValue } = useComboboxReturnProps;
3860
3859
  const { popoutProps: userPopoutProps } = useComboboxProps;
3861
- React19.useEffect(() => {
3862
- if (!inputValue) return;
3863
- if (allMenuItems && hiddenItemsCount >= allMenuItems.length && isOpen) {
3864
- closeMenu?.();
3865
- }
3866
- }, [hiddenItemsCount, allMenuItems?.length, isOpen, inputValue]);
3867
3860
  return /* @__PURE__ */ jsx23(
3868
3861
  MenuRootComponent,
3869
3862
  {