@sproutsocial/seeds-react-menu 1.10.3 → 1.10.5

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,22 +8,22 @@ $ tsup --dts
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
+ CJS dist/index.js 91.81 KB
12
+ CJS dist/v2/index.js 73.13 KB
13
+ CJS dist/index.js.map 178.88 KB
14
+ CJS dist/v2/index.js.map 152.10 KB
15
+ CJS ⚡️ Build success in 62ms
11
16
  ESM dist/esm/index.js 72.69 KB
12
- ESM dist/esm/v2/index.js 62.49 KB
13
17
  ESM dist/esm/chunk-ROQATIB7.js 9.15 KB
14
- ESM dist/esm/v2/index.js.map 132.28 KB
18
+ ESM dist/esm/v2/index.js 62.59 KB
15
19
  ESM dist/esm/index.js.map 154.90 KB
16
20
  ESM dist/esm/chunk-ROQATIB7.js.map 22.93 KB
17
- ESM ⚡️ Build success in 50ms
18
- CJS dist/index.js 91.81 KB
19
- CJS dist/v2/index.js 73.04 KB
20
- CJS dist/index.js.map 178.88 KB
21
- CJS dist/v2/index.js.map 151.90 KB
22
- CJS ⚡️ Build success in 51ms
21
+ ESM dist/esm/v2/index.js.map 132.48 KB
22
+ ESM ⚡️ Build success in 62ms
23
23
  DTS Build start
24
- DTS ⚡️ Build success in 4979ms
24
+ DTS ⚡️ Build success in 5341ms
25
25
  DTS dist/index.d.ts 39.08 KB
26
26
  DTS dist/v2/index.d.ts 5.55 KB
27
27
  DTS dist/index.d.mts 39.08 KB
28
28
  DTS dist/v2/index.d.mts 5.55 KB
29
- Done in 5.66s.
29
+ Done in 6.07s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.10.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1f9a473]
8
+ - @sproutsocial/seeds-react-theme@3.6.1
9
+ - @sproutsocial/seeds-react-box@1.1.15
10
+ - @sproutsocial/seeds-react-icon@2.3.1
11
+ - @sproutsocial/seeds-react-label@1.0.15
12
+ - @sproutsocial/seeds-react-token-input@1.4.32
13
+ - @sproutsocial/seeds-react-checkbox@1.3.27
14
+ - @sproutsocial/seeds-react-input@1.5.10
15
+ - @sproutsocial/seeds-react-popout@2.4.31
16
+ - @sproutsocial/seeds-react-button@1.4.3
17
+ - @sproutsocial/seeds-react-switch@1.2.26
18
+ - @sproutsocial/seeds-react-radio@1.3.15
19
+
20
+ ## 1.10.4
21
+
22
+ ### Patch Changes
23
+
24
+ - d7658f1: Fix React crash when MultiAutocomplete is used inside Radix-based containers
25
+
26
+ **seeds-react-token-input**: Wrap TokenInput class component with `React.forwardRef` so the standard `ref` prop resolves to the root Container DOM node instead of the class instance. This fixes a `TypeError: contains is not a function` crash in Radix UI's `onInteractOutside` handler, which expects `triggerRef` to be a DOM element. The existing `innerRef` prop continues to forward to the underlying `<input>`.
27
+
28
+ **seeds-react-menu**: Add `{ suppressRefError: true }` to all `getMenuProps` calls in v2 `ComboboxContent` (virtualized, normal, and grouped variants). This suppresses false-positive dev-mode errors from downshift when the menu popout is closed and the menu ref is not attached to a DOM node. This matches the existing pattern used in v1 menu components.
29
+
30
+ - Updated dependencies [d7658f1]
31
+ - @sproutsocial/seeds-react-token-input@1.4.31
32
+
3
33
  ## 1.10.3
4
34
 
5
35
  ### Patch Changes
@@ -616,7 +616,10 @@ var VirtualizedComboboxContent = ({
616
616
  }
617
617
  }, [highlightedIndex, rowVirtualizer]);
618
618
  const virtualItems = rowVirtualizer.getVirtualItems();
619
- const menuProps = getMenuProps({ ref: containerRef });
619
+ const menuProps = getMenuProps(
620
+ { ref: containerRef },
621
+ { suppressRefError: true }
622
+ );
620
623
  return /* @__PURE__ */ jsx6("div", { ...menuProps, ...rest, children: !hasItems && EmptyState ? /* @__PURE__ */ jsx6("div", { style: { padding: "16px" }, children: EmptyState }) : /* @__PURE__ */ jsx6(
621
624
  StyledMenuContent,
622
625
  {
@@ -735,7 +738,7 @@ var NormalComboboxContent = ({
735
738
  ...rest
736
739
  }) => {
737
740
  const hasItems = items.some((item) => !isGroupHeading(item));
738
- const menuProps = getMenuProps();
741
+ const menuProps = getMenuProps({}, { suppressRefError: true });
739
742
  return /* @__PURE__ */ jsx6("div", { ...menuProps, ...rest, children: !hasItems && EmptyState ? /* @__PURE__ */ jsx6("div", { style: { padding: "16px" }, children: EmptyState }) : /* @__PURE__ */ jsx6(
740
743
  StyledMenuContent,
741
744
  {
@@ -828,7 +831,7 @@ var GroupedComboboxContent = ({
828
831
  ...rest
829
832
  }) => {
830
833
  const hasItems = items.some((item) => !isGroupHeading(item));
831
- const menuProps = getMenuProps();
834
+ const menuProps = getMenuProps({}, { suppressRefError: true });
832
835
  const groupedItems = groupItems(
833
836
  items,
834
837
  groupBy,