@frsource/autoresize-textarea 2.0.23 → 2.0.24
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.
- package/README.md +8 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -58,14 +58,20 @@ pnpm add @frsource/autoresize-textarea
|
|
|
58
58
|
```ts
|
|
59
59
|
import { attach } from "@frsource/autoresize-textarea";
|
|
60
60
|
const textarea = document.querySelector("textarea");
|
|
61
|
-
attach(textarea);
|
|
61
|
+
const { detach } = attach(textarea);
|
|
62
|
+
|
|
63
|
+
// detach plugin whenever you want (e.g. on component unmount)
|
|
64
|
+
// detach();
|
|
62
65
|
```
|
|
63
66
|
|
|
64
67
|
### UMD
|
|
65
68
|
|
|
66
69
|
```js
|
|
67
70
|
const textarea = document.querySelector("textarea");
|
|
68
|
-
window.autoresizeTextarea.attach(textarea);
|
|
71
|
+
const { detach } = window.autoresizeTextarea.attach(textarea);
|
|
72
|
+
|
|
73
|
+
// detach plugin whenever you want (e.g. on component unmount)
|
|
74
|
+
// detach();
|
|
69
75
|
```
|
|
70
76
|
|
|
71
77
|
For working example, check out [our demo](https://www.frsource.org/autoresize-textarea).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frsource/autoresize-textarea",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.24",
|
|
4
4
|
"description": "Minimalistic plugin to autosize your textareas! 💪",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@semantic-release/changelog": "6.0.3",
|
|
48
48
|
"@semantic-release/commit-analyzer": "11.1.0",
|
|
49
49
|
"@semantic-release/git": "10.0.1",
|
|
50
|
-
"@semantic-release/github": "9.2.
|
|
50
|
+
"@semantic-release/github": "9.2.3",
|
|
51
51
|
"@semantic-release/npm": "11.0.1",
|
|
52
52
|
"@semantic-release/release-notes-generator": "12.1.0",
|
|
53
53
|
"@typescript-eslint/eslint-plugin": "6.9.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"packageManager": "pnpm@8.10.
|
|
67
|
+
"packageManager": "pnpm@8.10.3",
|
|
68
68
|
"files": [
|
|
69
69
|
"dist",
|
|
70
70
|
"package.json"
|