Skip to content

Commit 5afc0e9

Browse files
committed
v0.2.7
1 parent 87746e4 commit 5afc0e9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ import 'react18-json-view/src/style.css'
4646
| Name | Type | Default | Description |
4747
| :--------------------------- | :------------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4848
| `src` | `JSON Object` | None | This property contains your input JSON |
49-
| `className`(canary) | `string` | None | The CSS class name(s) to apply to the component. |
50-
| `style`(canary) | `JSON Object` | None | An object containing custom style rules to apply to the component. |
49+
| `className` | `string` | None | The CSS class name(s) to apply to the component. |
50+
| `style` | `JSON Object` | None | An object containing custom style rules to apply to the component. |
5151
| `dark` | `boolean` | `false` | Keep in dark mode (Don't forget to import `dark.css`) |
5252
| `theme` | `default` \| `a11y` \| `github` \| `vscode` \| `atom`\|`winter-is-coming` | `'default'` | Color theme |
5353
| `enableClipboard` | `boolean` | `true` | Whether enable clipboard feature. |
54-
| `matchesURL`(canary) | `boolean` | `true` | Show the link icon if value is string and matches URL regex pattern. |
55-
| `urlRegExp`(canary) | `RegExp` | `/^(((ht\|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/` | URL RegExp pattern. |
54+
| `matchesURL` | `boolean` | `true` | Show the link icon if value is string and matches URL regex pattern. |
55+
| `urlRegExp` | `RegExp` | `/^(((ht\|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/` | URL RegExp pattern. |
5656
| `displaySize` | `boolean` \| `integer` \| 'collapsed' \| 'expanded' | `false` | Whether display the size of `Object`, `Array`. |
5757
| `collapseStringsAfterLength` | `integer` | `99` | When an integer value is assigned, strings longer than that length will be truncated and indicated by an ellipsis. To expand or collapse the string content, simply click on the string value. |
5858
| `collapseStringMode` | `'directly'` \| `'word'` \| `'address'` | `'directly'` | If the `word` is assigned, the collapsed length will be adjusted to fully display the last word.(English only) |
@@ -63,7 +63,7 @@ import 'react18-json-view/src/style.css'
6363
| `onDelete` | `function` | - | `(params:{ value: any,indexOrName: string \| number,depth: number,src: any,parentType: 'object' \| 'array'}) => void` |
6464
| `onEdit` | `function` | - | `(params: { newValue: any, oldValue: any, depth: number, src: any, indexOrName: string \| number, parentType: 'object' \| 'array'}) => void` |
6565
| `customizeNode` | `ReactElement`\|`ReactComponent`\|`Options` | - | Highly customize every node. |
66-
| `customizeCopy`(canary) | `(node: any) => any` | internal stringify | Customize copy behavior, only the returned non-empty string will be written to clipboard. |
66+
| `customizeCopy` | `(node: any) => any` | internal stringify | Customize copy behavior, only the returned non-empty string will be written to clipboard. |
6767

6868
### Collapsed function
6969
```ts
@@ -166,7 +166,7 @@ react-json-view does not support React 18.
166166
- [x] redesign docs
167167
- [x] truncate long strings
168168
- [ ] custom `stringify`
169-
- [x] slpit large array
169+
- [x] split large array
170170

171171

172172
* tree?

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react18-json-view",
3-
"version": "0.2.7-canary.4",
3+
"version": "0.2.7",
44
"type": "module",
55
"description": "JSON viewer for react18",
66
"main": "dist/cjs/index.cjs",

0 commit comments

Comments
 (0)