diff --git a/README.md b/README.md index 2f3b1ec..1cbbea0 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ import 'react18-json-view/src/style.css' | `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` | `(node: any) => any` | internal stringify | Customize copy behavior, only the returned non-empty string will be written to clipboard. | -| `CopyComponent` (canary) | `React.FC` \/ `React.Component` `<{ onClick: (event: React.MouseEvent) => void; className: string }>` | - | Customize copy icon. | +| `CopyComponent` \/ `DoneComponent` \/ `CancelComponent` (canary) | `React.FC` \/ `React.Component` `<{ onClick: (event: React.MouseEvent) => void; className: string ; style: React.CSSProperties}>` | - | Customize copy icon. | | `CopiedComponent` (canary) | `React.FC` \/ `React.Component` `<{ className: string; style: React.CSSProperties }>` | - | Customize copied icon. | ### Collapsed function diff --git a/package.json b/package.json index 6655f48..9b7445d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react18-json-view", - "version": "0.2.9-canary.1", + "version": "0.2.9-canary.2", "type": "module", "description": "JSON viewer for react18", "main": "dist/cjs/index.cjs",