Skip to content

Commit b4b5eb3

Browse files
committed
0.25.0
1 parent e6b9ee5 commit b4b5eb3

File tree

5 files changed

+34
-34
lines changed

5 files changed

+34
-34
lines changed

docs/API.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Textarea component with some extra props. See [RichTextareaProps](interfaces/Ric
4141

4242
#### Defined in
4343

44-
node_modules/@types/react/index.d.ts:395
44+
[src/textarea.tsx:128](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/textarea.tsx#L128)
4545

4646
___
4747

@@ -65,7 +65,7 @@ Input component with some extra props. See [RichInputProps](interfaces/RichInput
6565

6666
#### Defined in
6767

68-
node_modules/@types/react/index.d.ts:395
68+
[src/input.tsx:138](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/input.tsx#L138)
6969

7070
___
7171

@@ -89,7 +89,7 @@ The priority is descending order.
8989

9090
#### Defined in
9191

92-
[src/renderers.tsx:17](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/renderers.tsx#L17)
92+
[src/renderers.tsx:17](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/renderers.tsx#L17)
9393

9494
## Type Aliases
9595

@@ -99,7 +99,7 @@ The priority is descending order.
9999

100100
#### Defined in
101101

102-
[src/renderers.tsx:4](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/renderers.tsx#L4)
102+
[src/renderers.tsx:4](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/renderers.tsx#L4)
103103

104104
___
105105

@@ -123,7 +123,7 @@ ___
123123

124124
#### Defined in
125125

126-
[src/types.ts:1](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/types.ts#L1)
126+
[src/types.ts:1](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/types.ts#L1)
127127

128128
___
129129

@@ -133,4 +133,4 @@ ___
133133

134134
#### Defined in
135135

136-
[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/types.ts#L3)
136+
[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/types.ts#L3)

docs/interfaces/RichInputProps.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ undefined
4545

4646
#### Defined in
4747

48-
[src/input.tsx:120](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/input.tsx#L120)
48+
[src/input.tsx:120](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/input.tsx#L120)
4949

5050
___
5151

@@ -63,20 +63,26 @@ undefined
6363

6464
#### Defined in
6565

66-
[src/input.tsx:125](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/input.tsx#L125)
66+
[src/input.tsx:125](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/input.tsx#L125)
6767

6868
___
6969

7070
### onSelectionChange
7171

7272
`Optional` **onSelectionChange**: (`pos`: [`CaretPosition`](../API.md#caretposition)) => `void`
7373

74+
Called when selection in textarea changes. It gives position of caret at the time, which is useful to position menu.
75+
76+
**`Default Value`**
77+
78+
```ts
79+
undefined
80+
```
81+
7482
#### Type declaration
7583

7684
▸ (`pos`): `void`
7785

78-
Called when selection in textarea changes. It gives position of caret at the time, which is useful to position menu.
79-
8086
##### Parameters
8187

8288
| Name | Type |
@@ -87,12 +93,6 @@ Called when selection in textarea changes. It gives position of caret at the tim
8793

8894
`void`
8995

90-
**`Default Value`**
91-
92-
```ts
93-
undefined
94-
```
95-
9696
#### Defined in
9797

98-
[src/input.tsx:130](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/input.tsx#L130)
98+
[src/input.tsx:130](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/input.tsx#L130)

docs/interfaces/RichTextareaProps.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ undefined
4444

4545
#### Defined in
4646

47-
[src/textarea.tsx:110](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/textarea.tsx#L110)
47+
[src/textarea.tsx:110](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/textarea.tsx#L110)
4848

4949
___
5050

@@ -64,20 +64,26 @@ undefined
6464

6565
#### Defined in
6666

67-
[src/textarea.tsx:117](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/textarea.tsx#L117)
67+
[src/textarea.tsx:117](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/textarea.tsx#L117)
6868

6969
___
7070

7171
### onSelectionChange
7272

7373
`Optional` **onSelectionChange**: (`pos`: [`CaretPosition`](../API.md#caretposition)) => `void`
7474

75+
Called when selection in textarea changes. It gives position of caret at the time, which is useful to position menu.
76+
77+
**`Default Value`**
78+
79+
```ts
80+
undefined
81+
```
82+
7583
#### Type declaration
7684

7785
▸ (`pos`): `void`
7886

79-
Called when selection in textarea changes. It gives position of caret at the time, which is useful to position menu.
80-
8187
##### Parameters
8288

8389
| Name | Type |
@@ -88,12 +94,6 @@ Called when selection in textarea changes. It gives position of caret at the tim
8894

8995
`void`
9096

91-
**`Default Value`**
92-
93-
```ts
94-
undefined
95-
```
96-
9797
#### Defined in
9898

99-
[src/textarea.tsx:122](https://github.com/inokawa/rich-textarea/blob/2ecc1e7/src/textarea.tsx#L122)
99+
[src/textarea.tsx:122](https://github.com/inokawa/rich-textarea/blob/e6b9ee587a2bd4f3cd7a426ae978b00325eb167c/src/textarea.tsx#L122)

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rich-textarea",
3-
"version": "0.24.4",
3+
"version": "0.25.0",
44
"description": "A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.",
55
"main": "lib/index.cjs",
66
"module": "lib/index.js",

0 commit comments

Comments
 (0)