Skip to content

Commit 5d765bb

Browse files
committed
v0.2.9-canary.5
1 parent 96a596a commit 5d765bb

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ import 'react18-json-view/src/style.css'
5454
| `matchesURL` | `boolean` | `true` | Show the link icon if value is string and matches URL regex pattern. |
5555
| `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`. |
57-
| `displayArrayIndex` | `boolean` | `true` | Whether display the index of `Array`. |
57+
| `displayArrayIndex` (canary) | `boolean` | `true` | Whether display the index of `Array`. |
5858
| `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. |
59-
| customizeCollapseStringUI | ` (str_show: string, truncated: boolean) => (JSX.Element \| string)` \| `string` | - | Customize the collapse string UI. |
59+
| `customizeCollapseStringUI` | ` (str_show: string, truncated: boolean) => (JSX.Element \| string)` \| `string` | - | Customize the collapse string UI. |
6060
| `ignoreLargeArray` | `boolean` | `false` | Prevent collapsing large array(length > 100) behavior since v0.2.7 |
6161
| `collapseStringMode` | `'directly'` \| `'word'` \| `'address'` | `'directly'` | If the `word` is assigned, the collapsed length will be adjusted to fully display the last word. |
6262
| `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. |

‎package.json‎

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

‎website/src/contents/display-array-index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function DisplayArrayIndex() {
3131

3232
return (
3333
<>
34-
<h2 className='mt-20 text-lg font-medium'>Display Array Index</h2>
34+
<h2 className='mt-20 text-lg font-medium'>Display Array Index (Canary)</h2>
3535
<ul className='mt-3 flex select-none flex-wrap gap-1'>
3636
{options.map(item => (
3737
<li

0 commit comments

Comments
 (0)