@sproutsocial/seeds-react-menu 1.6.6 → 1.6.8

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,14 +8,14 @@ $ tsup --dts
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/esm/index.js 134.18 KB
12
- ESM dist/esm/index.js.map 370.25 KB
13
- ESM ⚡️ Build success in 646ms
14
- CJS dist/index.js 144.07 KB
15
- CJS dist/index.js.map 371.53 KB
16
- CJS ⚡️ Build success in 646ms
11
+ CJS dist/index.js 144.31 KB
12
+ CJS dist/index.js.map 372.00 KB
13
+ CJS ⚡️ Build success in 660ms
14
+ ESM dist/esm/index.js 134.35 KB
15
+ ESM dist/esm/index.js.map 370.71 KB
16
+ ESM ⚡️ Build success in 660ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 16470ms
18
+ DTS ⚡️ Build success in 17062ms
19
19
  DTS dist/index.d.ts 39.03 KB
20
20
  DTS dist/index.d.mts 39.03 KB
21
- Done in 19.79s.
21
+ Done in 20.53s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [47580c4]
8
+ - @sproutsocial/seeds-react-theme@3.1.0
9
+ - @sproutsocial/seeds-react-box@1.1.4
10
+ - @sproutsocial/seeds-react-icon@1.1.4
11
+ - @sproutsocial/seeds-react-label@1.0.3
12
+ - @sproutsocial/seeds-react-token-input@1.4.4
13
+ - @sproutsocial/seeds-react-checkbox@1.3.3
14
+ - @sproutsocial/seeds-react-input@1.4.5
15
+ - @sproutsocial/seeds-react-popout@2.4.4
16
+ - @sproutsocial/seeds-react-button@1.2.3
17
+ - @sproutsocial/seeds-react-switch@1.2.3
18
+ - @sproutsocial/seeds-react-radio@1.3.2
19
+
20
+ ## 1.6.7
21
+
22
+ ### Patch Changes
23
+
24
+ - 8011a74: Remove useId to correct react 16/17 support
25
+
3
26
  ## 1.6.6
4
27
 
5
28
  ### Patch Changes
package/dist/esm/index.js CHANGED
@@ -4000,9 +4000,10 @@ var AutocompleteSelect = (props) => {
4000
4000
  };
4001
4001
 
4002
4002
  // src/NestedMenu/NestedMenu.tsx
4003
- import { useId, useEffect as useEffect4, useState, useRef as useRef2 } from "react";
4003
+ import { useEffect as useEffect4, useState, useRef as useRef2 } from "react";
4004
4004
  import { AnimatePresence as AnimatePresence2, motion as motion3 } from "motion/react";
4005
4005
  import { useSelect as useSelect6 } from "downshift";
4006
+ import uniqueId from "lodash.uniqueid";
4006
4007
 
4007
4008
  // src/reducers/nestedMenuStateReducer.tsx
4008
4009
  import { useCombobox as useCombobox4, useSelect as useSelect5 } from "downshift";
@@ -4244,6 +4245,14 @@ var NestedMenuPopout = ({
4244
4245
 
4245
4246
  // src/NestedMenu/NestedMenu.tsx
4246
4247
  import { jsx as jsx34, jsxs as jsxs7 } from "react/jsx-runtime";
4248
+ var useId = () => {
4249
+ const [id, setId] = useState();
4250
+ useEffect4(() => {
4251
+ const uId = uniqueId();
4252
+ setId(uId);
4253
+ }, []);
4254
+ return id;
4255
+ };
4247
4256
  var NestedMenu = ({
4248
4257
  initialMenuId,
4249
4258
  menus,
@@ -4262,8 +4271,8 @@ var NestedMenu = ({
4262
4271
  const { defaultDownshiftProps, ...restDefaults } = useDownshiftDefaults({
4263
4272
  isCombobox: false
4264
4273
  });
4265
- const uniqueId = useId();
4266
- const nestedMenuId = externalNestedMenuId ?? `nested-menu-${uniqueId}`;
4274
+ const uniqueId2 = useId();
4275
+ const nestedMenuId = externalNestedMenuId ?? `nested-menu-${uniqueId2}`;
4267
4276
  const [hasLoadedOnce, setHasLoadedOnce] = useState(false);
4268
4277
  const useSelectReturnProps = useSelect6({
4269
4278
  ...defaultDownshiftProps.select,