@sproutsocial/seeds-react-menu 1.16.5 → 1.16.7

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.
@@ -9,27 +9,27 @@ $ tsup --dts
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  CJS dist/index.js 92.65 KB
12
- CJS dist/v3/index.js 121.28 KB
12
+ CJS dist/v3/index.js 121.51 KB
13
13
  CJS dist/v2/index.js 73.18 KB
14
14
  CJS dist/index.js.map 180.28 KB
15
- CJS dist/v3/index.js.map 212.15 KB
15
+ CJS dist/v3/index.js.map 213.07 KB
16
16
  CJS dist/v2/index.js.map 152.19 KB
17
- CJS ⚡️ Build success in 102ms
17
+ CJS ⚡️ Build success in 106ms
18
18
  ESM dist/esm/index.js 73.60 KB
19
19
  ESM dist/esm/chunk-ROQATIB7.js 9.15 KB
20
20
  ESM dist/esm/v2/index.js 62.63 KB
21
- ESM dist/esm/v3/index.js 107.78 KB
21
+ ESM dist/esm/v3/index.js 108.01 KB
22
22
  ESM dist/esm/index.js.map 156.29 KB
23
23
  ESM dist/esm/chunk-ROQATIB7.js.map 22.93 KB
24
24
  ESM dist/esm/v2/index.js.map 132.57 KB
25
- ESM dist/esm/v3/index.js.map 212.20 KB
26
- ESM ⚡️ Build success in 103ms
25
+ ESM dist/esm/v3/index.js.map 213.12 KB
26
+ ESM ⚡️ Build success in 106ms
27
27
  DTS Build start
28
- DTS ⚡️ Build success in 7288ms
28
+ DTS ⚡️ Build success in 7213ms
29
29
  DTS dist/index.d.ts 39.12 KB
30
30
  DTS dist/v2/index.d.ts 5.55 KB
31
31
  DTS dist/v3/index.d.ts 23.92 KB
32
32
  DTS dist/index.d.mts 39.12 KB
33
33
  DTS dist/v2/index.d.mts 5.55 KB
34
34
  DTS dist/v3/index.d.mts 23.92 KB
35
- Done in 8.03s.
35
+ Done in 7.97s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.16.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d21ae54]
8
+ - @sproutsocial/seeds-react-theme@4.2.1
9
+ - @sproutsocial/seeds-react-button@2.2.5
10
+ - @sproutsocial/seeds-react-box@1.1.25
11
+ - @sproutsocial/seeds-react-icon@2.4.4
12
+ - @sproutsocial/seeds-react-label@1.0.27
13
+ - @sproutsocial/seeds-react-token-input@1.4.54
14
+ - @sproutsocial/seeds-react-input@1.5.32
15
+ - @sproutsocial/seeds-react-popout@2.5.13
16
+ - @sproutsocial/seeds-react-checkbox@1.3.46
17
+ - @sproutsocial/seeds-react-switch@1.2.44
18
+ - @sproutsocial/seeds-react-radio@1.3.28
19
+
20
+ ## 1.16.6
21
+
22
+ ### Patch Changes
23
+
24
+ - 42605a5: Fix ActionMenu portal container in webpack Module Federation (MFE) contexts.
25
+
26
+ When a remote MFE chunk loads its own copy of `seeds-react-portal`, the
27
+ `DisablePortalToBodyContext` object identity differs from the host's copy.
28
+ This caused `useSeedsPortalContainer` to always read `false` even when a
29
+ Modal/Drawer/PeekIn had provided `true`, so the menu portaled to
30
+ `document.body` and escaped the dialog's focus/pointer-events boundary.
31
+
32
+ The hook now falls back to a DOM walk (`closest("[role='dialog']")`) from
33
+ the anchor ref when the context value is false, matching the same behaviour
34
+ the context would have triggered.
35
+
3
36
  ## 1.16.5
4
37
 
5
38
  ### Patch Changes
@@ -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 (disablePortalToBody && containerRef.current) {
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
  }