@react-hive/honey-layout 3.2.0 → 3.4.0

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/dist/utils.d.ts CHANGED
@@ -65,17 +65,18 @@ export declare const convertHexToHexWithAlpha: (hex: string, alpha: number) => H
65
65
  * @returns {string} The generated media query string.
66
66
  */
67
67
  export declare const media: (rules: HoneyCSSMediaRule[]) => string;
68
+ type HTMLElementTransformationValues = {
69
+ translateX: number;
70
+ translateY: number;
71
+ };
68
72
  /**
69
73
  * Get various transformation values from the transformation matrix of an element.
70
74
  *
71
75
  * @param {HTMLElement} element - The element with a transformation applied.
72
76
  *
73
- * @returns An object containing transformation values.
77
+ * @returns {HTMLElementTransformationValues} An object containing transformation values.
74
78
  */
75
- export declare const getTransformationValues: (element: HTMLElement) => {
76
- translateX: number;
77
- translateY: number;
78
- };
79
+ export declare const getTransformationValues: (element: HTMLElement) => HTMLElementTransformationValues;
79
80
  /**
80
81
  * Recursively converts a nested list structure into a flat list. It excludes the nested list key from the result
81
82
  * while adding hierarchical metadata, such as `depthLevel`, `parentId`, and `totalNestedItems` to each flattened item.
@@ -166,3 +167,4 @@ export declare const filterFlattenedItems: <OriginItem extends object, NestedLis
166
167
  * ```
167
168
  */
168
169
  export declare const searchFlattenedItems: <OriginItem extends object, NestedListKey extends string>(flattenedItems: HoneyFlattenedItem<OriginItem, NestedListKey>[], itemIdKey: KeysWithNonArrayValues<OriginItem>, valueKey: KeysWithStringValues<OriginItem>, searchQuery: string) => HoneyFlattenedItem<OriginItem, NestedListKey>[];
170
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-hive/honey-layout",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "react",
@@ -33,10 +33,10 @@
33
33
  "peerDependencies": {
34
34
  "@mdx-js/react": "3.1.0",
35
35
  "highlight.js": "11.11.1",
36
- "react": ">=18.0.0",
37
- "react-dom": ">=18.0.0",
38
- "react-router-dom": "6.28.0",
39
- "styled-components": "6.1.14"
36
+ "react": "^18.0.0",
37
+ "react-dom": "^18.0.0",
38
+ "react-router-dom": "^6.0.0",
39
+ "styled-components": "^6.0.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "@emotion/is-prop-valid": "1.3.1",
@@ -45,15 +45,15 @@
45
45
  "lodash.merge": "4.6.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@eslint/js": "^9.17.0",
48
+ "@eslint/js": "9.17.0",
49
49
  "@mdx-js/rollup": "3.1.0",
50
50
  "@testing-library/react": "16.1.0",
51
51
  "@types/jest": "29.5.14",
52
52
  "@types/lodash.debounce": "4.0.9",
53
53
  "@types/lodash.merge": "4.6.9",
54
54
  "@types/mdx": "2.0.13",
55
- "@types/react": ">=18.0.0",
56
- "@types/react-dom": ">=18.0.0",
55
+ "@types/react": "^18.0.0",
56
+ "@types/react-dom": "^18.0.0",
57
57
  "@vitejs/plugin-react": "4.3.4",
58
58
  "eslint": "9.17.0",
59
59
  "eslint-plugin-react": "7.37.3",