Skip to content

Commit

Permalink
0.24.3
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Nov 27, 2023
1 parent c7423d9 commit fd043e2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
62 changes: 31 additions & 31 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- [Renderer](API.md#renderer)
- [CaretPosition](API.md#caretposition)

## Component
## Functions

### RichTextarea

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

#### Defined in

node_modules/@types/react/index.d.ts:428
node_modules/@types/react/index.d.ts:395

___

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

#### Defined in

node_modules/@types/react/index.d.ts:428
node_modules/@types/react/index.d.ts:395

## Other
___

### createRegexRenderer

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

An utility to create renderer function with regex.

The priority is descending order.

#### Parameters

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

#### Returns

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

#### Defined in

[src/renderers.tsx:17](https://github.com/inokawa/rich-textarea/blob/c7423d9/src/renderers.tsx#L17)

## Type Aliases

### StyleOrRender

Ƭ **StyleOrRender**: `React.CSSProperties` \| (`props`: { `children`: `React.ReactNode` ; `value`: `string` ; `key?`: `string` }) => `React.ReactNode`

#### Defined in

[src/renderers.tsx:4](https://github.com/inokawa/rich-textarea/blob/6fd4c20/src/renderers.tsx#L4)
[src/renderers.tsx:4](https://github.com/inokawa/rich-textarea/blob/c7423d9/src/renderers.tsx#L4)

___

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

#### Defined in

[src/types.ts:1](https://github.com/inokawa/rich-textarea/blob/6fd4c20/src/types.ts#L1)
[src/types.ts:1](https://github.com/inokawa/rich-textarea/blob/c7423d9/src/types.ts#L1)

___

Expand All @@ -109,28 +133,4 @@ ___

#### Defined in

[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/6fd4c20/src/types.ts#L3)

___

### createRegexRenderer

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

An utility to create renderer function with regex.

The priority is descending order.

#### Parameters

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

#### Returns

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

#### Defined in

[src/renderers.tsx:17](https://github.com/inokawa/rich-textarea/blob/6fd4c20/src/renderers.tsx#L17)
[src/types.ts:3](https://github.com/inokawa/rich-textarea/blob/c7423d9/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/6fd4c20/src/input.tsx#L120)
[src/input.tsx:120](https://github.com/inokawa/rich-textarea/blob/c7423d9/src/input.tsx#L120)

___

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

#### Defined in

[src/input.tsx:125](https://github.com/inokawa/rich-textarea/blob/6fd4c20/src/input.tsx#L125)
[src/input.tsx:125](https://github.com/inokawa/rich-textarea/blob/c7423d9/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/6fd4c20/src/input.tsx#L130)
[src/input.tsx:130](https://github.com/inokawa/rich-textarea/blob/c7423d9/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/6fd4c20/src/textarea.tsx#L110)
[src/textarea.tsx:110](https://github.com/inokawa/rich-textarea/blob/c7423d9/src/textarea.tsx#L110)

___

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

#### Defined in

[src/textarea.tsx:117](https://github.com/inokawa/rich-textarea/blob/6fd4c20/src/textarea.tsx#L117)
[src/textarea.tsx:117](https://github.com/inokawa/rich-textarea/blob/c7423d9/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/6fd4c20/src/textarea.tsx#L122)
[src/textarea.tsx:122](https://github.com/inokawa/rich-textarea/blob/c7423d9/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.24.2",
"version": "0.24.3",
"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 fd043e2

Please sign in to comment.