You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-codemirror-merge

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-codemirror-merge - npm Package Compare versions

Comparing version

to
4.23.13

6

cjs/index.d.ts
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>>;

6

cjs/Internal.js

@@ -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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.