Skip to content

Commit

Permalink
0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed May 19, 2024
1 parent cf673fc commit feb4ed3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 16 deletions.
37 changes: 30 additions & 7 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [RichTextarea](API.md#richtextarea)
- [experimental\_RichInput](API.md#experimental_richinput)
- [createRegexRenderer](API.md#createregexrenderer)
- [createCSSCustomHighlightRenderer](API.md#createcsscustomhighlightrenderer)

### Interfaces

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

#### Defined in

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

___

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

#### Defined in

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

___

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

| Name | Type |
| :------ | :------ |
| `matchers` | [`RegExp`, [`StyleOrRender`](API.md#styleorrender)][] |
| `matchers` | [regex: RegExp, style: StyleOrRender][] |

#### Returns

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

#### Defined in

[src/renderers.tsx:17](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/renderers.tsx#L17)
[src/renderers/regex/index.tsx:19](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/renderers/regex/index.tsx#L19)

___

### createCSSCustomHighlightRenderer

**createCSSCustomHighlightRenderer**(`matchers`): [`Renderer`](API.md#renderer)

[createRegexRenderer](API.md#createregexrenderer) but rendered with [CSS Custom Highlight API](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API).

#### Parameters

| Name | Type |
| :------ | :------ |
| `matchers` | [regex: RegExp, style: string][] |

#### Returns

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

#### Defined in

[src/renderers/regex/index.tsx:159](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/renderers/regex/index.tsx#L159)

## Type Aliases

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

#### Defined in

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

___

Expand All @@ -123,7 +146,7 @@ ___

#### Defined in

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

___

Expand All @@ -133,4 +156,4 @@ ___

#### Defined in

[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/types.ts#L3)
[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/types.ts#L3)
6 changes: 3 additions & 3 deletions docs/interfaces/RichInputProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ undefined

#### Defined in

[src/input.tsx:120](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/input.tsx#L120)
[src/input.tsx:120](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/input.tsx#L120)

___

Expand All @@ -63,7 +63,7 @@ undefined

#### Defined in

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

___

Expand Down Expand Up @@ -95,4 +95,4 @@ undefined

#### Defined in

[src/input.tsx:130](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/input.tsx#L130)
[src/input.tsx:130](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/input.tsx#L130)
6 changes: 3 additions & 3 deletions docs/interfaces/RichTextareaProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ undefined

#### Defined in

[src/textarea.tsx:110](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/textarea.tsx#L110)
[src/textarea.tsx:110](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/textarea.tsx#L110)

___

Expand All @@ -64,7 +64,7 @@ undefined

#### Defined in

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

___

Expand Down Expand Up @@ -96,4 +96,4 @@ undefined

#### Defined in

[src/textarea.tsx:122](https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/textarea.tsx#L122)
[src/textarea.tsx:122](https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/textarea.tsx#L122)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rich-textarea",
"version": "0.25.2",
"version": "0.26.0",
"description": "A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down

0 comments on commit feb4ed3

Please sign in to comment.