diff --git a/apps/www/package.json b/apps/www/package.json index d3279bb2f..85462e2c8 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -166,6 +166,7 @@ "react-player": "2.16.0", "react-resizable-panels": "^2.0.22", "react-syntax-highlighter": "^15.5.0", + "react-textarea-autosize": "^8.5.5", "react-tweet": "^3.2.1", "react-wrap-balancer": "^1.1.1", "remark-emoji": "5.0.1", diff --git a/apps/www/src/registry/registry-ui.ts b/apps/www/src/registry/registry-ui.ts index 8a7587cb1..b4c78c8eb 100644 --- a/apps/www/src/registry/registry-ui.ts +++ b/apps/www/src/registry/registry-ui.ts @@ -1081,7 +1081,7 @@ export const uiNodes: Registry = [ type: 'registry:ui', }, { - dependencies: ['@udecode/plate-math'], + dependencies: ['@udecode/plate-math', 'react-textarea-autosize'], doc: { description: 'Displays a LaTeX equation element with an editable popover for inputting and rendering mathematical expressions.', diff --git a/templates/plate-playground-template/package.json b/templates/plate-playground-template/package.json index 29c8201a4..350577a94 100644 --- a/templates/plate-playground-template/package.json +++ b/templates/plate-playground-template/package.json @@ -75,6 +75,7 @@ "@udecode/plate-toggle": "41.0.0", "@udecode/plate-trailing-block": "41.0.0", "@uploadthing/react": "7.1.0", + "react-textarea-autosize": "^8.5.5", "ai": "^4.0.21", "class-variance-authority": "0.7.1", "clsx": "^2.1.1", diff --git a/templates/plate-playground-template/pnpm-lock.yaml b/templates/plate-playground-template/pnpm-lock.yaml index 8a3cb3019..1a8ce2f9c 100644 --- a/templates/plate-playground-template/pnpm-lock.yaml +++ b/templates/plate-playground-template/pnpm-lock.yaml @@ -248,6 +248,9 @@ importers: react-resizable-panels: specifier: ^2.1.7 version: 2.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-textarea-autosize: + specifier: ^8.5.5 + version: 8.5.6(@types/react@18.3.12)(react@18.3.1) react-tweet: specifier: ^3.2.1 version: 3.2.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) diff --git a/yarn.lock b/yarn.lock index 6b1fdadd5..d39ac3279 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18689,6 +18689,19 @@ __metadata: languageName: node linkType: hard +"react-textarea-autosize@npm:^8.5.5": + version: 8.5.6 + resolution: "react-textarea-autosize@npm:8.5.6" + dependencies: + "@babel/runtime": "npm:^7.20.13" + use-composed-ref: "npm:^1.3.0" + use-latest: "npm:^1.2.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/652d290d316c55a253507ecf65ca27f2162801dace10c715f2241203e81d82e9de6d282095b758b26c6bc9e1af9ca552cab5c3a361b230e5fcf25bec31e1bd25 + languageName: node + linkType: hard + "react-tracked@npm:^1.7.11": version: 1.7.14 resolution: "react-tracked@npm:1.7.14" @@ -22909,6 +22922,7 @@ __metadata: react-player: "npm:2.16.0" react-resizable-panels: "npm:^2.0.22" react-syntax-highlighter: "npm:^15.5.0" + react-textarea-autosize: "npm:^8.5.5" react-tweet: "npm:^3.2.1" react-wrap-balancer: "npm:^1.1.1" rehype: "npm:^12.0.1"