@octanejs/textarea-autosize 0.0.18 → 0.0.20

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.tsrx +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/textarea-autosize",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "react-textarea-autosize for Octane with matching measurement and lifecycle behavior.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -100,7 +100,7 @@
100
100
  "node": ">=22.22.2"
101
101
  },
102
102
  "peerDependencies": {
103
- "octane": "^0.1.51 || ^0.2.0"
103
+ "octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@babel/preset-env": "7.29.7",
@@ -123,7 +123,7 @@
123
123
  "typescript": "^5.9.3",
124
124
  "vite": "^8.1.5",
125
125
  "vitest": "^4.1.10",
126
- "octane": "0.2.0"
126
+ "octane": "0.3.0"
127
127
  },
128
128
  "scripts": {
129
129
  "test": "vitest run --root ../.. --project textarea-autosize --project textarea-autosize-ssr",
package/src/index.tsrx CHANGED
@@ -1,7 +1,7 @@
1
1
  import isBrowser from '#is-browser';
2
2
  import isDevelopment from '#is-development';
3
3
  import { useLayoutEffect, useRef } from 'octane';
4
- import type { JSX } from 'octane/jsx-runtime';
4
+ import type { CSSProperties, JSX } from 'octane/jsx-runtime';
5
5
  import calculateNodeHeight from './calculateNodeHeight.js';
6
6
  import getSizingData, { type SizingData } from './getSizingData.js';
7
7
  import {
@@ -14,7 +14,7 @@ import { noop } from './utils.js';
14
14
 
15
15
  type NativeTextareaProps = JSX.IntrinsicElements['textarea'];
16
16
  type TextareaStyle =
17
- Omit<Exclude<NonNullable<NativeTextareaProps['style']>, string>, 'maxHeight' | 'minHeight'> & {
17
+ Omit<CSSProperties, 'maxHeight' | 'minHeight'> & {
18
18
  height?: number;
19
19
  };
20
20
  type TextareaRef =