Skip to content

Commit feb4ed3

Browse files
committed
0.26.0
1 parent cf673fc commit feb4ed3

File tree

5 files changed

+39
-16
lines changed

5 files changed

+39
-16
lines changed

docs/API.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [RichTextarea](API.md#richtextarea)
88
- [experimental\_RichInput](API.md#experimental_richinput)
99
- [createRegexRenderer](API.md#createregexrenderer)
10+
- [createCSSCustomHighlightRenderer](API.md#createcsscustomhighlightrenderer)
1011

1112
### Interfaces
1213

@@ -41,7 +42,7 @@ Textarea component with some extra props. See [RichTextareaProps](interfaces/Ric
4142

4243
#### Defined in
4344

44-
[src/textarea.tsx:128](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/textarea.tsx#L128)
45+
[src/textarea.tsx:128](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/textarea.tsx#L128)
4546

4647
___
4748

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

6667
#### Defined in
6768

68-
[src/input.tsx:138](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/input.tsx#L138)
69+
[src/input.tsx:138](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/input.tsx#L138)
6970

7071
___
7172

@@ -81,15 +82,37 @@ The priority is descending order.
8182

8283
| Name | Type |
8384
| :------ | :------ |
84-
| `matchers` | [`RegExp`, [`StyleOrRender`](API.md#styleorrender)][] |
85+
| `matchers` | [regex: RegExp, style: StyleOrRender][] |
8586

8687
#### Returns
8788

8889
[`Renderer`](API.md#renderer)
8990

9091
#### Defined in
9192

92-
[src/renderers.tsx:17](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/renderers.tsx#L17)
93+
[src/renderers/regex/index.tsx:19](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/renderers/regex/index.tsx#L19)
94+
95+
___
96+
97+
### createCSSCustomHighlightRenderer
98+
99+
**createCSSCustomHighlightRenderer**(`matchers`): [`Renderer`](API.md#renderer)
100+
101+
[createRegexRenderer](API.md#createregexrenderer) but rendered with [CSS Custom Highlight API](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API).
102+
103+
#### Parameters
104+
105+
| Name | Type |
106+
| :------ | :------ |
107+
| `matchers` | [regex: RegExp, style: string][] |
108+
109+
#### Returns
110+
111+
[`Renderer`](API.md#renderer)
112+
113+
#### Defined in
114+
115+
[src/renderers/regex/index.tsx:159](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/renderers/regex/index.tsx#L159)
93116

94117
## Type Aliases
95118

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

100123
#### Defined in
101124

102-
[src/renderers.tsx:4](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/renderers.tsx#L4)
125+
[src/renderers/regex/index.tsx:6](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/renderers/regex/index.tsx#L6)
103126

104127
___
105128

@@ -123,7 +146,7 @@ ___
123146

124147
#### Defined in
125148

126-
[src/types.ts:1](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/types.ts#L1)
149+
[src/types.ts:1](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/types.ts#L1)
127150

128151
___
129152

@@ -133,4 +156,4 @@ ___
133156

134157
#### Defined in
135158

136-
[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/types.ts#L3)
159+
[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/types.ts#L3)

docs/interfaces/RichInputProps.md

Lines changed: 3 additions & 3 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/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/input.tsx#L120)
48+
[src/input.tsx:120](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/input.tsx#L120)
4949

5050
___
5151

@@ -63,7 +63,7 @@ undefined
6363

6464
#### Defined in
6565

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

6868
___
6969

@@ -95,4 +95,4 @@ undefined
9595

9696
#### Defined in
9797

98-
[src/input.tsx:130](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/input.tsx#L130)
98+
[src/input.tsx:130](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/input.tsx#L130)

docs/interfaces/RichTextareaProps.md

Lines changed: 3 additions & 3 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/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/textarea.tsx#L110)
47+
[src/textarea.tsx:110](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/textarea.tsx#L110)
4848

4949
___
5050

@@ -64,7 +64,7 @@ undefined
6464

6565
#### Defined in
6666

67-
[src/textarea.tsx:117](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/textarea.tsx#L117)
67+
[src/textarea.tsx:117](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/textarea.tsx#L117)
6868

6969
___
7070

@@ -96,4 +96,4 @@ undefined
9696

9797
#### Defined in
9898

99-
[src/textarea.tsx:122](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/textarea.tsx#L122)
99+
[src/textarea.tsx:122](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/textarea.tsx#L122)

package-lock.json

Lines changed: 2 additions & 2 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.25.2",
3+
"version": "0.26.0",
44
"description": "A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.",
55
"main": "lib/index.js",
66
"module": "lib/index.mjs",

0 commit comments

Comments
 (0)