Skip to content

Commit

Permalink
rollback react-textarea-autosize
Browse files Browse the repository at this point in the history
  • Loading branch information
berekuk committed Jul 1, 2023
1 parent 97408f0 commit 84a092b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"framer-motion": "^10.12.18",
"react-colorful": "^5.6.1",
"react-hook-form": "^7.45.1",
"react-textarea-autosize": "^8.5.0",
"react-textarea-autosize": "8.4.1",
"react-use": "^17.4.0"
},
"devDependencies": {
Expand Down
7 changes: 6 additions & 1 deletion packages/ui/src/forms/styled/StyledTextArea.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { TextareaHTMLAttributes, forwardRef } from "react";
import TextareaAutosize from "react-textarea-autosize";
import ImportedTextareaAutosize from "react-textarea-autosize";
import { clsx } from "clsx";

// ESM hack; can be removed after we upgrade to >8.5.0
// but that depends on https://github.com/Andarist/react-textarea-autosize/issues/379
const TextareaAutosize =
ImportedTextareaAutosize as unknown as typeof ImportedTextareaAutosize.default;

export type StyledTextAreaProps = Omit<
TextareaHTMLAttributes<HTMLTextAreaElement>,
"className" | "style"
Expand Down
17 changes: 2 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4509,7 +4509,7 @@ __metadata:
react-colorful: ^5.6.1
react-dom: ^18.2.0
react-hook-form: ^7.45.1
react-textarea-autosize: ^8.5.0
react-textarea-autosize: 8.4.1
react-use: ^17.4.0
rollup-plugin-node-builtins: ^2.1.2
storybook: ^7.0.24
Expand Down Expand Up @@ -19627,7 +19627,7 @@ __metadata:
languageName: node
linkType: hard

"react-textarea-autosize@npm:^8.3.2":
"react-textarea-autosize@npm:8.4.1, react-textarea-autosize@npm:^8.3.2":
version: 8.4.1
resolution: "react-textarea-autosize@npm:8.4.1"
dependencies:
Expand All @@ -19640,19 +19640,6 @@ __metadata:
languageName: node
linkType: hard

"react-textarea-autosize@npm:^8.5.0":
version: 8.5.0
resolution: "react-textarea-autosize@npm:8.5.0"
dependencies:
"@babel/runtime": ^7.20.13
use-composed-ref: ^1.3.0
use-latest: ^1.2.1
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: c5fde6100b74277d75a796a7b3b2287759ed16173c34b58cfa541bca474a09d23e7695f6c9aab4e9b5f35cb4f05792d5e0fb669d926efba536f82c7b7b75e5e4
languageName: node
linkType: hard

"react-transition-group@npm:^4.3.0":
version: 4.4.5
resolution: "react-transition-group@npm:4.4.5"
Expand Down

0 comments on commit 84a092b

Please sign in to comment.