Skip to content

Commit 9c9b70e

Browse files
committed
v0.2.8
1 parent 1f25c99 commit 9c9b70e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ import 'react18-json-view/src/style.css'
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
| customizeCollapseStringUI | ` (str_show: string, truncated: boolean) => (JSX.Element \| string)` \| `string` | - | Customize the collapse string UI. |
59-
| `ignoreLargeArray`(canary) | `boolean` | `false` | Prevent collapsing large array(length > 100) behavior since v0.2.7 |
60-
| `collapseStringMode` | `'directly'` \| `'word'` \| `'address'` | `'directly'` | If the `word` is assigned, the collapsed length will be adjusted to fully display the last word.(English only) |
59+
| `ignoreLargeArray` | `boolean` | `false` | Prevent collapsing large array(length > 100) behavior since v0.2.7 |
60+
| `collapseStringMode` | `'directly'` \| `'word'` \| `'address'` | `'directly'` | If the `word` is assigned, the collapsed length will be adjusted to fully display the last word. |
6161
| `collapsed` | `boolean` \| `integer` \| `function` | `false` | When set to true(false), all nodes will be (not) collapsed by default. When using an integer value, it will collapse at a specific depth. The collapsed also can be a function. |
6262
| `collapseObjectsAfterLength` | `integer` | `99` | When an integer value is assigned, the object and array will initially collapse. |
6363
| `editable` | `boolean` \| {add?: `boolean`, edit?: `boolean`, delete?: `boolean`} | `false` | When set to true, you can add, edit, or delete the property, and the actions will trigger onAdd, onEdit, or onDelete. Options is available. |
@@ -106,7 +106,7 @@ import 'react18-json-view/src/style.css'
106106

107107
The editor uses `eval(<input-value>)`. While in edit mode, you can enter `({})` or `([])`, which will cause the result of eval to become a new object or array.
108108

109-
> canary: `{}` and `[]` will be auto convert to `({})`,`([])`
109+
> `{}` and `[]` will be auto convert to `({})`,`([])`
110110
### How the editor works
111111

112112
This component does not perform any cloning operations, so every step of the operation is carried out on the original object. If cloning is required, please handle it yourself.

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.8-canary.6",
3+
"version": "0.2.8",
44
"type": "module",
55
"description": "JSON viewer for react18",
66
"main": "dist/cjs/index.cjs",

website/src/contents/editable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function Editable() {
8888
<code className='mx-0.5 rounded bg-slate-200 px-1 py-0.5 font-mono text-sm dark:bg-slate-600'>{`([])`}</code>,
8989
which will cause the result of eval to become a new object or array.
9090
</p>
91-
<p>canary: `{}` and `[]` will be auto convert to `({})`,`([])`</p>
91+
<p>`{}` and `[]` will be auto convert to `({})`,`([])`</p>
9292
<h3 className='mt-6 text-lg font-medium'>How the editor works</h3>
9393
<p>
9494
This component does not perform any cloning operations, so every step of the operation is carried out on the

0 commit comments

Comments
 (0)