@uiw/react-json-view 2.0.0-alpha.12 → 2.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -110,7 +110,7 @@ Object.keys(_symbol).forEach(function (key) {
110
110
  }
111
111
  });
112
112
  });
113
- var _excluded = ["className", "style", "value", "children", "collapsed", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand"];
113
+ var _excluded = ["className", "style", "value", "children", "collapsed", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied"];
114
114
  var JsonView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
115
115
  var _props$className = props.className,
116
116
  className = _props$className === void 0 ? '' : _props$className,
@@ -133,6 +133,7 @@ var JsonView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
133
133
  _props$objectSortKeys = props.objectSortKeys,
134
134
  objectSortKeys = _props$objectSortKeys === void 0 ? false : _props$objectSortKeys,
135
135
  onExpand = props.onExpand,
136
+ onCopied = props.onCopied,
136
137
  elmProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
137
138
  var defaultStyle = (0, _objectSpread2["default"])({
138
139
  lineHeight: 1.4,
@@ -152,6 +153,7 @@ var JsonView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
152
153
  enableClipboard: enableClipboard,
153
154
  shortenTextAfterLength: shortenTextAfterLength,
154
155
  highlightUpdates: highlightUpdates,
156
+ onCopied: onCopied,
155
157
  onExpand: onExpand
156
158
  },
157
159
  initialTypes: {
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["className", "style", "value", "children", "collapsed", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand"];
3
+ var _excluded = ["className", "style", "value", "children", "collapsed", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied"];
4
4
  import { forwardRef } from 'react';
5
5
  import { Provider } from './store';
6
6
  import { Container } from './Container';
@@ -53,7 +53,8 @@ var JsonView = /*#__PURE__*/forwardRef((props, ref) => {
53
53
  enableClipboard = true,
54
54
  displayDataTypes = true,
55
55
  objectSortKeys = false,
56
- onExpand
56
+ onExpand,
57
+ onCopied
57
58
  } = props,
58
59
  elmProps = _objectWithoutPropertiesLoose(props, _excluded);
59
60
  var defaultStyle = _extends({
@@ -74,6 +75,7 @@ var JsonView = /*#__PURE__*/forwardRef((props, ref) => {
74
75
  enableClipboard,
75
76
  shortenTextAfterLength,
76
77
  highlightUpdates,
78
+ onCopied,
77
79
  onExpand
78
80
  },
79
81
  initialTypes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiw/react-json-view",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.13",
4
4
  "description": "JSON viewer for react.",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",