react-textarea-autosize
Advanced tools
Comparing version 8.3.4 to 8.4.0
# react-textarea-autosize | ||
## 8.4.0 | ||
### Minor Changes | ||
- [#354](https://github.com/Andarist/react-textarea-autosize/pull/354) [`41d10b2`](https://github.com/Andarist/react-textarea-autosize/commit/41d10b2c5c8f9b8040fe208d09cdb60863fa0f29) Thanks [@Andarist](https://github.com/Andarist)! - `exports` field has been added to the `package.json` manifest. | ||
Thanks to this, the package now includes a `worker` condition that can be utilized by properly configured bundlers when targeting worker-like environments. It fixes the issue with browser-specific files being prioritized by some bundlers when targeting workers. | ||
## 8.3.4 | ||
@@ -4,0 +12,0 @@ |
import { SizingData } from './getSizingData'; | ||
export declare type CalculatedNodeHeights = number[]; | ||
export default function calculateNodeHeight(sizingData: SizingData, value: string, minRows?: number, maxRows?: number): CalculatedNodeHeights; |
declare const forceHiddenStyles: (node: HTMLElement) => void; | ||
export default forceHiddenStyles; |
@@ -0,0 +0,0 @@ declare const SIZING_STYLE: readonly ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width", "wordBreak"]; |
export { default as useComposedRef } from 'use-composed-ref'; | ||
export declare const useWindowResizeListener: (listener: (event: UIEvent) => any) => void; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ export declare const noop: () => void; |
{ | ||
"name": "react-textarea-autosize", | ||
"description": "textarea component for React which grows with content", | ||
"version": "8.3.4", | ||
"version": "8.4.0", | ||
"keywords": [ | ||
@@ -20,5 +20,15 @@ "autosize", | ||
"browser": { | ||
"./dist/react-textarea-autosize.cjs.js": "./dist/react-textarea-autosize.browser.cjs.js", | ||
"./dist/react-textarea-autosize.esm.js": "./dist/react-textarea-autosize.browser.esm.js" | ||
}, | ||
"exports": { | ||
".": { | ||
"module": { | ||
"worker": "./dist/react-textarea-autosize.worker.esm.js", | ||
"browser": "./dist/react-textarea-autosize.browser.esm.js", | ||
"default": "./dist/react-textarea-autosize.esm.js" | ||
}, | ||
"default": "./dist/react-textarea-autosize.cjs.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": false, | ||
@@ -64,3 +74,3 @@ "files": [ | ||
"@changesets/cli": "^2.22.0", | ||
"@preconstruct/cli": "^2.0.5", | ||
"@preconstruct/cli": "^2.2.2", | ||
"@testing-library/jest-dom": "^5.9.0", | ||
@@ -93,3 +103,14 @@ "@testing-library/react": "^10.1.0", | ||
}, | ||
"packageManager": "yarn@3.1.1" | ||
"packageManager": "yarn@3.1.1", | ||
"preconstruct": { | ||
"exports": { | ||
"envConditions": [ | ||
"browser", | ||
"worker" | ||
] | ||
}, | ||
"___experimentalFlags_WILL_CHANGE_IN_PATCH": { | ||
"exports": true | ||
} | ||
} | ||
} |
53439
902