Skip to content

Commit

Permalink
v0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
YYsuni committed Jan 17, 2024
1 parent 87746e4 commit 5afc0e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ import 'react18-json-view/src/style.css'
| Name | Type | Default | Description |
| :--------------------------- | :------------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `src` | `JSON Object` | None | This property contains your input JSON |
| `className`(canary) | `string` | None | The CSS class name(s) to apply to the component. |
| `style`(canary) | `JSON Object` | None | An object containing custom style rules to apply to the component. |
| `className` | `string` | None | The CSS class name(s) to apply to the component. |
| `style` | `JSON Object` | None | An object containing custom style rules to apply to the component. |
| `dark` | `boolean` | `false` | Keep in dark mode (Don't forget to import `dark.css`) |
| `theme` | `default` \| `a11y` \| `github` \| `vscode` \| `atom`\|`winter-is-coming` | `'default'` | Color theme |
| `enableClipboard` | `boolean` | `true` | Whether enable clipboard feature. |
| `matchesURL`(canary) | `boolean` | `true` | Show the link icon if value is string and matches URL regex pattern. |
| `urlRegExp`(canary) | `RegExp` | `/^(((ht\|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/` | URL RegExp pattern. |
| `matchesURL` | `boolean` | `true` | Show the link icon if value is string and matches URL regex pattern. |
| `urlRegExp` | `RegExp` | `/^(((ht\|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/` | URL RegExp pattern. |
| `displaySize` | `boolean` \| `integer` \| 'collapsed' \| 'expanded' | `false` | Whether display the size of `Object`, `Array`. |
| `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. |
| `collapseStringMode` | `'directly'` \| `'word'` \| `'address'` | `'directly'` | If the `word` is assigned, the collapsed length will be adjusted to fully display the last word.(English only) |
Expand All @@ -63,7 +63,7 @@ import 'react18-json-view/src/style.css'
| `onDelete` | `function` | - | `(params:{ value: any,indexOrName: string \| number,depth: number,src: any,parentType: 'object' \| 'array'}) => void` |
| `onEdit` | `function` | - | `(params: { newValue: any, oldValue: any, depth: number, src: any, indexOrName: string \| number, parentType: 'object' \| 'array'}) => void` |
| `customizeNode` | `ReactElement`\|`ReactComponent`\|`Options` | - | Highly customize every node. |
| `customizeCopy`(canary) | `(node: any) => any` | internal stringify | Customize copy behavior, only the returned non-empty string will be written to clipboard. |
| `customizeCopy` | `(node: any) => any` | internal stringify | Customize copy behavior, only the returned non-empty string will be written to clipboard. |

### Collapsed function
```ts
Expand Down Expand Up @@ -166,7 +166,7 @@ react-json-view does not support React 18.
- [x] redesign docs
- [x] truncate long strings
- [ ] custom `stringify`
- [x] slpit large array
- [x] split large array


* tree?
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react18-json-view",
"version": "0.2.7-canary.4",
"version": "0.2.7",
"type": "module",
"description": "JSON viewer for react18",
"main": "dist/cjs/index.cjs",
Expand Down

2 comments on commit 5afc0e9

@vercel
Copy link

@vercel vercel bot commented on 5afc0e9 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5afc0e9 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react18-json-view – ./

react18-json-view-git-main-yysuni.vercel.app
react18-json-view-yysuni.vercel.app
react18-json-view.vercel.app

Please sign in to comment.