@sproutsocial/seeds-react-menu 1.8.5 → 1.8.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.
@@ -9,21 +9,21 @@ $ tsup --dts
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  CJS dist/index.js 90.52 KB
12
- CJS dist/v2/index.js 71.41 KB
12
+ CJS dist/v2/index.js 71.79 KB
13
13
  CJS dist/index.js.map 176.37 KB
14
- CJS dist/v2/index.js.map 148.47 KB
15
- CJS ⚡️ Build success in 380ms
14
+ CJS dist/v2/index.js.map 149.19 KB
15
+ CJS ⚡️ Build success in 403ms
16
16
  ESM dist/esm/index.js 71.41 KB
17
- ESM dist/esm/v2/index.js 60.86 KB
17
+ ESM dist/esm/v2/index.js 61.25 KB
18
18
  ESM dist/esm/chunk-ROQATIB7.js 9.15 KB
19
19
  ESM dist/esm/index.js.map 152.38 KB
20
- ESM dist/esm/v2/index.js.map 128.83 KB
20
+ ESM dist/esm/v2/index.js.map 129.54 KB
21
21
  ESM dist/esm/chunk-ROQATIB7.js.map 22.93 KB
22
- ESM ⚡️ Build success in 381ms
22
+ ESM ⚡️ Build success in 406ms
23
23
  DTS Build start
24
- DTS ⚡️ Build success in 17567ms
24
+ DTS ⚡️ Build success in 16885ms
25
25
  DTS dist/index.d.ts 39.04 KB
26
- DTS dist/v2/index.d.ts 4.87 KB
26
+ DTS dist/v2/index.d.ts 5.22 KB
27
27
  DTS dist/index.d.mts 39.04 KB
28
- DTS dist/v2/index.d.mts 4.87 KB
29
- Done in 19.14s.
28
+ DTS dist/v2/index.d.mts 5.22 KB
29
+ Done in 18.50s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.8.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 4f91ec2: Expose onPointerDownOutside and onInteractOutside on all v2 menu components
8
+
9
+ Adds `onPointerDownOutside` and `onInteractOutside` props to `BaseSelectProps`,
10
+ making them available on all v2 components: `MultiAutocomplete`, `SingleAutocomplete`,
11
+ `MultiSelect`, `SingleSelect`, `SearchableSelect`, and `SearchableMultiSelect`.
12
+
13
+ These props are forwarded to the internal `Popout`/`Popover.Content`, enabling
14
+ consumers to call `event.preventDefault()` to prevent the popout from dismissing
15
+ when a pointer-down event occurs outside — critical for fixing the Radix
16
+ DismissableLayer conflict that causes a nested `flushSync` crash when any of these
17
+ components are used inside a `ModalV2` (Dialog).
18
+
3
19
  ## 1.8.5
4
20
 
5
21
  ### Patch Changes
@@ -936,7 +936,9 @@ function SingleSelect({
936
936
  triggerButtonProps,
937
937
  menuProps,
938
938
  inputType = "icon",
939
- removePlaceholderItem = false
939
+ removePlaceholderItem = false,
940
+ onPointerDownOutside,
941
+ onInteractOutside
940
942
  }) {
941
943
  const [uncontrolledSelectedItemId, setUncontrolledSelectedItemId] = useState2(null);
942
944
  const [uncontrolledIsOpen, setUncontrolledIsOpen] = useState2(false);
@@ -1042,6 +1044,8 @@ function SingleSelect({
1042
1044
  onCloseAutoFocus: (e) => {
1043
1045
  e.preventDefault();
1044
1046
  },
1047
+ onPointerDownOutside,
1048
+ onInteractOutside,
1045
1049
  content: /* @__PURE__ */ jsx7(
1046
1050
  ComboboxContent,
1047
1051
  {
@@ -1147,7 +1151,9 @@ function MultiSelect({
1147
1151
  triggerButtonProps,
1148
1152
  menuProps,
1149
1153
  inputType = "checkbox",
1150
- shouldOverflow
1154
+ shouldOverflow,
1155
+ onPointerDownOutside,
1156
+ onInteractOutside
1151
1157
  }) {
1152
1158
  const [uncontrolledSelectedItemIds, setUncontrolledSelectedItemIds] = useState3([]);
1153
1159
  const [uncontrolledIsOpen, setUncontrolledIsOpen] = useState3(false);
@@ -1328,6 +1334,8 @@ function MultiSelect({
1328
1334
  onCloseAutoFocus: (e) => {
1329
1335
  e.preventDefault();
1330
1336
  },
1337
+ onPointerDownOutside,
1338
+ onInteractOutside,
1331
1339
  animationConfig: menuAnimationConfig,
1332
1340
  content: /* @__PURE__ */ jsx8(
1333
1341
  ComboboxContent,
@@ -1433,7 +1441,9 @@ function SingleAutocomplete({
1433
1441
  stateReducer = defaultReducer3,
1434
1442
  menuProps,
1435
1443
  inputType = "icon",
1436
- includePlaceholderItem = false
1444
+ includePlaceholderItem = false,
1445
+ onPointerDownOutside,
1446
+ onInteractOutside
1437
1447
  }) {
1438
1448
  const [uncontrolledInputValue, setUncontrolledInputValue] = useState4("");
1439
1449
  const [uncontrolledSelectedItemId, setUncontrolledSelectedItemId] = useState4(null);
@@ -1610,6 +1620,8 @@ function SingleAutocomplete({
1610
1620
  onCloseAutoFocus: (e) => {
1611
1621
  e.preventDefault();
1612
1622
  },
1623
+ onPointerDownOutside,
1624
+ onInteractOutside,
1613
1625
  content: /* @__PURE__ */ jsx9(
1614
1626
  ComboboxContent,
1615
1627
  {
@@ -1715,7 +1727,9 @@ function MultiAutocomplete({
1715
1727
  onIsOpenChange,
1716
1728
  stateReducer = defaultReducer4,
1717
1729
  menuProps,
1718
- inputType = "checkbox"
1730
+ inputType = "checkbox",
1731
+ onPointerDownOutside,
1732
+ onInteractOutside
1719
1733
  }) {
1720
1734
  const [uncontrolledInputValue, setUncontrolledInputValue] = useState5("");
1721
1735
  const [uncontrolledSelectedItemIds, setUncontrolledSelectedItemIds] = useState5([]);
@@ -1934,6 +1948,8 @@ function MultiAutocomplete({
1934
1948
  onCloseAutoFocus: (e) => {
1935
1949
  e.preventDefault();
1936
1950
  },
1951
+ onPointerDownOutside,
1952
+ onInteractOutside,
1937
1953
  animationConfig: menuAnimationConfig,
1938
1954
  content: /* @__PURE__ */ jsx10(
1939
1955
  ComboboxContent,