@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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +30 -0
- package/dist/esm/v2/index.js +6 -3
- package/dist/esm/v2/index.js.map +1 -1
- package/dist/v2/index.js +6 -3
- package/dist/v2/index.js.map +1 -1
- package/package.json +13 -13
- package/src/v2/Common-V2/ComboboxContent.tsx +6 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,22 +8,22 @@ $ tsup --dts
|
|
|
8
8
|
[34mCLI[39m Cleaning output folder
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m91.81 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/v2/index.js [22m[32m73.13 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m178.88 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/v2/index.js.map [22m[32m152.10 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 62ms
|
|
11
16
|
[32mESM[39m [1mdist/esm/index.js [22m[32m72.69 KB[39m
|
|
12
|
-
[32mESM[39m [1mdist/esm/v2/index.js [22m[32m62.49 KB[39m
|
|
13
17
|
[32mESM[39m [1mdist/esm/chunk-ROQATIB7.js [22m[32m9.15 KB[39m
|
|
14
|
-
[32mESM[39m [1mdist/esm/v2/index.js
|
|
18
|
+
[32mESM[39m [1mdist/esm/v2/index.js [22m[32m62.59 KB[39m
|
|
15
19
|
[32mESM[39m [1mdist/esm/index.js.map [22m[32m154.90 KB[39m
|
|
16
20
|
[32mESM[39m [1mdist/esm/chunk-ROQATIB7.js.map [22m[32m22.93 KB[39m
|
|
17
|
-
[32mESM[39m
|
|
18
|
-
[
|
|
19
|
-
[32mCJS[39m [1mdist/v2/index.js [22m[32m73.04 KB[39m
|
|
20
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m178.88 KB[39m
|
|
21
|
-
[32mCJS[39m [1mdist/v2/index.js.map [22m[32m151.90 KB[39m
|
|
22
|
-
[32mCJS[39m ⚡️ Build success in 51ms
|
|
21
|
+
[32mESM[39m [1mdist/esm/v2/index.js.map [22m[32m132.48 KB[39m
|
|
22
|
+
[32mESM[39m ⚡️ Build success in 62ms
|
|
23
23
|
[34mDTS[39m Build start
|
|
24
|
-
[32mDTS[39m ⚡️ Build success in
|
|
24
|
+
[32mDTS[39m ⚡️ Build success in 5341ms
|
|
25
25
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m39.08 KB[39m
|
|
26
26
|
[32mDTS[39m [1mdist/v2/index.d.ts [22m[32m5.55 KB[39m
|
|
27
27
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m39.08 KB[39m
|
|
28
28
|
[32mDTS[39m [1mdist/v2/index.d.mts [22m[32m5.55 KB[39m
|
|
29
|
-
Done in
|
|
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
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -616,7 +616,10 @@ var VirtualizedComboboxContent = ({
|
|
|
616
616
|
}
|
|
617
617
|
}, [highlightedIndex, rowVirtualizer]);
|
|
618
618
|
const virtualItems = rowVirtualizer.getVirtualItems();
|
|
619
|
-
const menuProps = getMenuProps(
|
|
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,
|