@sproutsocial/seeds-react-menu 1.6.5 → 1.6.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.
@@ -1,21 +1,21 @@
1
1
  yarn run v1.22.22
2
2
  $ tsup --dts
3
- CLI Building entry: src/index.ts
4
- CLI Using tsconfig: tsconfig.json
5
- CLI tsup v8.0.2
6
- CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-menu/tsup.config.ts
7
- CLI Target: es2022
8
- CLI Cleaning output folder
9
- CJS Build start
10
- ESM Build start
11
- CJS dist/index.js 144.07 KB
12
- CJS dist/index.js.map 371.53 KB
13
- CJS ⚡️ Build success in 266ms
14
- ESM dist/esm/index.js 134.18 KB
15
- ESM dist/esm/index.js.map 370.25 KB
16
- ESM ⚡️ Build success in 302ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 6527ms
19
- DTS dist/index.d.ts 39.03 KB
20
- DTS dist/index.d.mts 39.03 KB
21
- Done in 7.44s.
3
+ CLI Building entry: src/index.ts
4
+ CLI Using tsconfig: tsconfig.json
5
+ CLI tsup v8.5.0
6
+ CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-menu/tsup.config.ts
7
+ CLI Target: es2022
8
+ CLI Cleaning output folder
9
+ CJS Build start
10
+ ESM Build start
11
+ CJS dist/index.js 144.31 KB
12
+ CJS dist/index.js.map 372.00 KB
13
+ CJS ⚡️ Build success in 487ms
14
+ ESM dist/esm/index.js 134.35 KB
15
+ ESM dist/esm/index.js.map 370.71 KB
16
+ ESM ⚡️ Build success in 489ms
17
+ DTS Build start
18
+ DTS ⚡️ Build success in 17672ms
19
+ DTS dist/index.d.ts 39.03 KB
20
+ DTS dist/index.d.mts 39.03 KB
21
+ Done in 20.70s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 8011a74: Remove useId to correct react 16/17 support
8
+
9
+ ## 1.6.6
10
+
11
+ ### Patch Changes
12
+
13
+ - 22e1111: Update internal dependencies to their latest versions
14
+ - Updated dependencies [22e1111]
15
+ - @sproutsocial/seeds-react-button@1.2.2
16
+ - @sproutsocial/seeds-react-checkbox@1.3.2
17
+ - @sproutsocial/seeds-react-input@1.4.4
18
+ - @sproutsocial/seeds-react-popout@2.4.3
19
+ - @sproutsocial/seeds-react-radio@1.3.1
20
+ - @sproutsocial/seeds-react-switch@1.2.2
21
+ - @sproutsocial/seeds-react-theme@3.0.1
22
+ - @sproutsocial/seeds-react-token-input@1.4.3
23
+ - @sproutsocial/seeds-react-box@1.1.3
24
+ - @sproutsocial/seeds-react-label@1.0.2
25
+ - @sproutsocial/seeds-react-icon@1.1.3
26
+
3
27
  ## 1.6.5
4
28
 
5
29
  ### 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,