@sproutsocial/seeds-react-menu 1.16.4 → 1.16.6
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 +11 -11
- package/CHANGELOG.md +28 -0
- package/dist/esm/v3/index.js +5 -1
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/v3/index.js +5 -1
- package/dist/v3/index.js.map +1 -1
- package/package.json +5 -5
- package/src/v3/ModalStories.stories.tsx +112 -0
- package/src/v3/SeedsPortal.tsx +19 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,26 +10,26 @@ $ tsup --dts
|
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[32mCJS[39m [1mdist/index.js [22m[32m92.65 KB[39m
|
|
12
12
|
[32mCJS[39m [1mdist/v2/index.js [22m[32m73.18 KB[39m
|
|
13
|
-
[32mCJS[39m [1mdist/v3/index.js [22m[32m121.
|
|
14
|
-
[32mCJS[39m [1mdist/v2/index.js.map [22m[32m152.19 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/v3/index.js [22m[32m121.51 KB[39m
|
|
15
14
|
[32mCJS[39m [1mdist/index.js.map [22m[32m180.28 KB[39m
|
|
16
|
-
[32mCJS[39m [1mdist/
|
|
17
|
-
[32mCJS[39m
|
|
15
|
+
[32mCJS[39m [1mdist/v2/index.js.map [22m[32m152.19 KB[39m
|
|
16
|
+
[32mCJS[39m [1mdist/v3/index.js.map [22m[32m213.07 KB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 92ms
|
|
18
18
|
[32mESM[39m [1mdist/esm/index.js [22m[32m73.60 KB[39m
|
|
19
|
-
[32mESM[39m [1mdist/esm/v3/index.js [22m[32m107.78 KB[39m
|
|
20
|
-
[32mESM[39m [1mdist/esm/chunk-ROQATIB7.js [22m[32m9.15 KB[39m
|
|
21
19
|
[32mESM[39m [1mdist/esm/v2/index.js [22m[32m62.63 KB[39m
|
|
20
|
+
[32mESM[39m [1mdist/esm/v3/index.js [22m[32m108.01 KB[39m
|
|
21
|
+
[32mESM[39m [1mdist/esm/chunk-ROQATIB7.js [22m[32m9.15 KB[39m
|
|
22
|
+
[32mESM[39m [1mdist/esm/v2/index.js.map [22m[32m132.57 KB[39m
|
|
22
23
|
[32mESM[39m [1mdist/esm/index.js.map [22m[32m156.29 KB[39m
|
|
23
|
-
[32mESM[39m [1mdist/esm/v3/index.js.map [22m[32m212.20 KB[39m
|
|
24
24
|
[32mESM[39m [1mdist/esm/chunk-ROQATIB7.js.map [22m[32m22.93 KB[39m
|
|
25
|
-
[32mESM[39m [1mdist/esm/
|
|
26
|
-
[32mESM[39m ⚡️ Build success in
|
|
25
|
+
[32mESM[39m [1mdist/esm/v3/index.js.map [22m[32m213.12 KB[39m
|
|
26
|
+
[32mESM[39m ⚡️ Build success in 94ms
|
|
27
27
|
[34mDTS[39m Build start
|
|
28
|
-
[32mDTS[39m ⚡️ Build success in
|
|
28
|
+
[32mDTS[39m ⚡️ Build success in 7359ms
|
|
29
29
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m39.12 KB[39m
|
|
30
30
|
[32mDTS[39m [1mdist/v2/index.d.ts [22m[32m5.55 KB[39m
|
|
31
31
|
[32mDTS[39m [1mdist/v3/index.d.ts [22m[32m23.92 KB[39m
|
|
32
32
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m39.12 KB[39m
|
|
33
33
|
[32mDTS[39m [1mdist/v2/index.d.mts [22m[32m5.55 KB[39m
|
|
34
34
|
[32mDTS[39m [1mdist/v3/index.d.mts [22m[32m23.92 KB[39m
|
|
35
|
-
Done in 8.
|
|
35
|
+
Done in 8.15s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-menu
|
|
2
2
|
|
|
3
|
+
## 1.16.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 42605a5: Fix ActionMenu portal container in webpack Module Federation (MFE) contexts.
|
|
8
|
+
|
|
9
|
+
When a remote MFE chunk loads its own copy of `seeds-react-portal`, the
|
|
10
|
+
`DisablePortalToBodyContext` object identity differs from the host's copy.
|
|
11
|
+
This caused `useSeedsPortalContainer` to always read `false` even when a
|
|
12
|
+
Modal/Drawer/PeekIn had provided `true`, so the menu portaled to
|
|
13
|
+
`document.body` and escaped the dialog's focus/pointer-events boundary.
|
|
14
|
+
|
|
15
|
+
The hook now falls back to a DOM walk (`closest("[role='dialog']")`) from
|
|
16
|
+
the anchor ref when the context value is false, matching the same behaviour
|
|
17
|
+
the context would have triggered.
|
|
18
|
+
|
|
19
|
+
## 1.16.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [235938d]
|
|
24
|
+
- Updated dependencies [c19788f]
|
|
25
|
+
- Updated dependencies [5b5b1bd]
|
|
26
|
+
- @sproutsocial/seeds-react-radio@1.3.27
|
|
27
|
+
- @sproutsocial/seeds-react-input@1.5.31
|
|
28
|
+
- @sproutsocial/seeds-react-switch@1.2.43
|
|
29
|
+
- @sproutsocial/seeds-react-token-input@1.4.53
|
|
30
|
+
|
|
3
31
|
## 1.16.4
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -11,7 +11,11 @@ function useSeedsPortalContainer() {
|
|
|
11
11
|
const containerRef = React.useRef(null);
|
|
12
12
|
const [portalContainer, setPortalContainer] = React.useState(void 0);
|
|
13
13
|
React.useEffect(() => {
|
|
14
|
-
if (
|
|
14
|
+
if (!containerRef.current) return;
|
|
15
|
+
const insideDialog = disablePortalToBody || // Fallback for cross-chunk MFE scenarios where context identity differs:
|
|
16
|
+
// detect the dialog boundary directly from the DOM.
|
|
17
|
+
!!containerRef.current.closest("[role='dialog']");
|
|
18
|
+
if (insideDialog) {
|
|
15
19
|
const dialogContent = containerRef.current.closest("[role='dialog']");
|
|
16
20
|
setPortalContainer(dialogContent ?? containerRef.current);
|
|
17
21
|
}
|