@react-hive/honey-layout 3.3.0 → 3.6.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.
@@ -1,4 +1,4 @@
1
- import { ElementType, RefObject } from 'react';
1
+ import { MutableRefObject } from 'react';
2
2
  import { ExecutionContext, StyleFunction } from 'styled-components';
3
3
  import { DataType } from 'csstype';
4
4
  import { HoneyCSSColorProperty, HoneyCSSDimensionNumericValue, HoneyCSSDimensionValue } from './css.types';
@@ -253,9 +253,6 @@ export interface HoneyDimensions {
253
253
  [key: string]: HoneyCSSDimensionValue;
254
254
  }
255
255
  export type HoneyDimensionName = keyof HoneyDimensions;
256
- export type ComponentWithAs<T, P = object> = {
257
- as?: ElementType<P>;
258
- } & T;
259
256
  export type HoneyEffectResultFn<Props extends object> = StyleFunction<Props>;
260
257
  export type HoneyEffect<Config = unknown, Props extends object = object> = (config: Config) => HoneyEffectResultFn<Props>;
261
258
  export type HoneyOverlayId = string;
@@ -309,7 +306,7 @@ export type HoneyActiveOverlay = {
309
306
  /**
310
307
  * Reference to the container element of the overlay.
311
308
  */
312
- containerRef: RefObject<Nullable<HTMLDivElement>>;
309
+ containerRef: MutableRefObject<Nullable<HTMLDivElement>>;
313
310
  /**
314
311
  * Sets the container reference for the overlay.
315
312
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-hive/honey-layout",
3
- "version": "3.3.0",
3
+ "version": "3.6.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "react",
@@ -33,8 +33,8 @@
33
33
  "peerDependencies": {
34
34
  "@mdx-js/react": "3.1.0",
35
35
  "highlight.js": "11.11.1",
36
- "react": "^18.0.0 || ^19.0.0",
37
- "react-dom": "^18.0.0 || ^19.0.0",
36
+ "react": "^18.0.0",
37
+ "react-dom": "^18.0.0",
38
38
  "react-router-dom": "^6.0.0",
39
39
  "styled-components": "^6.0.0"
40
40
  },
@@ -52,17 +52,17 @@
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 || ^19.0.0",
56
- "@types/react-dom": "^18.0.0 || ^19.0.0",
55
+ "@types/react": "^18.0.0",
56
+ "@types/react-dom": "^18.0.0",
57
57
  "@vitejs/plugin-react": "4.3.4",
58
- "eslint": "9.17.0",
58
+ "eslint": "9.18.0",
59
59
  "eslint-plugin-react": "7.37.3",
60
60
  "jest": "29.7.0",
61
61
  "jest-environment-jsdom": "29.7.0",
62
62
  "prettier": "3.4.2",
63
63
  "ts-jest": "29.2.5",
64
64
  "typescript": "5.7.3",
65
- "typescript-eslint": "8.19.1",
65
+ "typescript-eslint": "8.20.0",
66
66
  "vite": "6.0.7",
67
67
  "vite-plugin-checker": "0.8.0",
68
68
  "vite-plugin-dts": "4.5.0"