react-codemirror-merge
Advanced tools
Comparing version
import React from 'react'; | ||
import { MergeConfig } from '@codemirror/merge'; | ||
import { MergeConfig, DirectMergeConfig } from '@codemirror/merge'; | ||
import { Original } from './Original'; | ||
@@ -15,2 +15,6 @@ import { Modified } from './Modified'; | ||
destroyRerender?: boolean; | ||
/** | ||
* An optional root. Only necessary if the view is mounted in a shadow root or a document other than the global `document` object. | ||
*/ | ||
root?: DirectMergeConfig['root']; | ||
} | ||
@@ -17,0 +21,0 @@ declare const InternalCodeMirror: React.ForwardRefExoticComponent<CodeMirrorMergeProps & React.RefAttributes<CodeMirrorMergeRef>>; |
@@ -18,3 +18,3 @@ "use strict"; | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _excluded = ["className", "children", "orientation", "revertControls", "highlightChanges", "gutter", "collapseUnchanged", "destroyRerender", "renderRevertControl", "diffConfig"], | ||
var _excluded = ["className", "children", "orientation", "revertControls", "highlightChanges", "gutter", "collapseUnchanged", "destroyRerender", "renderRevertControl", "diffConfig", "root"], | ||
_excluded2 = ["modified", "modifiedExtension", "original", "originalExtension", "theme", "dispatch"]; | ||
@@ -33,2 +33,3 @@ var Internal = exports.Internal = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) { | ||
diffConfig = props.diffConfig, | ||
root = props.root, | ||
elmProps = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
@@ -52,3 +53,4 @@ var _useStore = (0, _store.useStore)(), | ||
renderRevertControl: renderRevertControl, | ||
diffConfig: diffConfig | ||
diffConfig: diffConfig, | ||
root: root | ||
}; | ||
@@ -55,0 +57,0 @@ (0, _react.useImperativeHandle)(ref, function () { |
import React from 'react'; | ||
import { MergeConfig } from '@codemirror/merge'; | ||
import { MergeConfig, DirectMergeConfig } from '@codemirror/merge'; | ||
import { Original } from './Original'; | ||
@@ -15,2 +15,6 @@ import { Modified } from './Modified'; | ||
destroyRerender?: boolean; | ||
/** | ||
* An optional root. Only necessary if the view is mounted in a shadow root or a document other than the global `document` object. | ||
*/ | ||
root?: DirectMergeConfig['root']; | ||
} | ||
@@ -17,0 +21,0 @@ declare const InternalCodeMirror: React.ForwardRefExoticComponent<CodeMirrorMergeProps & React.RefAttributes<CodeMirrorMergeRef>>; |
import _extends from "@babel/runtime/helpers/extends"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
var _excluded = ["className", "children", "orientation", "revertControls", "highlightChanges", "gutter", "collapseUnchanged", "destroyRerender", "renderRevertControl", "diffConfig"], | ||
var _excluded = ["className", "children", "orientation", "revertControls", "highlightChanges", "gutter", "collapseUnchanged", "destroyRerender", "renderRevertControl", "diffConfig", "root"], | ||
_excluded2 = ["modified", "modifiedExtension", "original", "originalExtension", "theme", "dispatch"]; | ||
@@ -22,3 +22,4 @@ import React, { useEffect, useImperativeHandle, useRef } from 'react'; | ||
renderRevertControl, | ||
diffConfig | ||
diffConfig, | ||
root | ||
} = props, | ||
@@ -45,3 +46,4 @@ elmProps = _objectWithoutPropertiesLoose(props, _excluded); | ||
renderRevertControl, | ||
diffConfig | ||
diffConfig, | ||
root | ||
}; | ||
@@ -48,0 +50,0 @@ useImperativeHandle(ref, () => ({ |
{ | ||
"name": "react-codemirror-merge", | ||
"version": "4.23.12", | ||
"version": "4.23.13", | ||
"description": "CodeMirror merge view for React.", | ||
@@ -46,3 +46,3 @@ "homepage": "https://uiwjs.github.io/react-codemirror", | ||
"@codemirror/merge": "^6.1.2", | ||
"@uiw/react-codemirror": "4.23.12" | ||
"@uiw/react-codemirror": "4.23.13" | ||
}, | ||
@@ -49,0 +49,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59525
1.21%1268
1.44%+ Added
+ Added
- Removed
- Removed