You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add beforeCopy callback to Copied component #78
- Add beforeCopy prop to JsonViewProps with rich context parameters (copyText, keyName, value, parentValue, expandKey, keys)
- Implement beforeCopy support in Copied component only (not affecting other section components)
- Support three-level priority: component prop > section prop > global prop
- Add CopiedSectionElement type for section-level beforeCopy customization
- Include comprehensive example showing different usage patterns
- Allow users to transform copied text based on context information
Breaking changes: None
New features:
- JsonView beforeCopy prop for global copy transformation
- JsonView.Copied beforeCopy prop for component-level customization
- Rich context parameters for advanced copy transformations
0 commit comments