Socket
Socket
Sign inDemoInstall

@uiw/react-codemirror

Package Overview
Dependencies
Maintainers
2
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-codemirror - npm Package Compare versions

Comparing version 4.21.12 to 4.21.13

2

cjs/index.d.ts

@@ -6,2 +6,4 @@ import React from 'react';

import { Statistics } from './utils';
export * from '@codemirror/view';
export * from '@codemirror/state';
export * from '@uiw/codemirror-extensions-basic-setup';

@@ -8,0 +10,0 @@ export * from './useCodeMirror';

@@ -27,2 +27,26 @@ "use strict";

var _jsxRuntime = require("react/jsx-runtime");
var _view = require("@codemirror/view");
Object.keys(_view).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _view[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _view[key];
}
});
});
var _state = require("@codemirror/state");
Object.keys(_state).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _state[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _state[key];
}
});
});
var _codemirrorExtensionsBasicSetup = require("@uiw/codemirror-extensions-basic-setup");

@@ -29,0 +53,0 @@ Object.keys(_codemirrorExtensionsBasicSetup).forEach(function (key) {

16

cjs/useCodeMirror.js

@@ -30,15 +30,15 @@ "use strict";

_props$height = props.height,
height = _props$height === void 0 ? '' : _props$height,
height = _props$height === void 0 ? null : _props$height,
_props$minHeight = props.minHeight,
minHeight = _props$minHeight === void 0 ? '' : _props$minHeight,
minHeight = _props$minHeight === void 0 ? null : _props$minHeight,
_props$maxHeight = props.maxHeight,
maxHeight = _props$maxHeight === void 0 ? '' : _props$maxHeight,
_props$placeholder = props.placeholder,
placeholderStr = _props$placeholder === void 0 ? '' : _props$placeholder,
maxHeight = _props$maxHeight === void 0 ? null : _props$maxHeight,
_props$width = props.width,
width = _props$width === void 0 ? '' : _props$width,
width = _props$width === void 0 ? null : _props$width,
_props$minWidth = props.minWidth,
minWidth = _props$minWidth === void 0 ? '' : _props$minWidth,
minWidth = _props$minWidth === void 0 ? null : _props$minWidth,
_props$maxWidth = props.maxWidth,
maxWidth = _props$maxWidth === void 0 ? '' : _props$maxWidth,
maxWidth = _props$maxWidth === void 0 ? null : _props$maxWidth,
_props$placeholder = props.placeholder,
placeholderStr = _props$placeholder === void 0 ? '' : _props$placeholder,
_props$editable = props.editable,

@@ -45,0 +45,0 @@ editable = _props$editable === void 0 ? true : _props$editable,

@@ -6,2 +6,4 @@ import React from 'react';

import { Statistics } from './utils';
export * from '@codemirror/view';
export * from '@codemirror/state';
export * from '@uiw/codemirror-extensions-basic-setup';

@@ -8,0 +10,0 @@ export * from './useCodeMirror';

@@ -7,2 +7,4 @@ import _extends from "@babel/runtime/helpers/extends";

import { jsx as _jsx } from "react/jsx-runtime";
export * from '@codemirror/view';
export * from '@codemirror/state';
export * from '@uiw/codemirror-extensions-basic-setup';

@@ -9,0 +11,0 @@ export * from './useCodeMirror';

@@ -19,9 +19,9 @@ import { useEffect, useState } from 'react';

theme = 'light',
height = '',
minHeight = '',
maxHeight = '',
height = null,
minHeight = null,
maxHeight = null,
width = null,
minWidth = null,
maxWidth = null,
placeholder: placeholderStr = '',
width = '',
minWidth = '',
maxWidth = '',
editable = true,

@@ -28,0 +28,0 @@ readOnly = false,

{
"name": "@uiw/react-codemirror",
"version": "4.21.12",
"version": "4.21.13",
"description": "CodeMirror component for React.",

@@ -43,3 +43,3 @@ "homepage": "https://uiwjs.github.io/react-codemirror",

"@codemirror/theme-one-dark": "^6.0.0",
"@uiw/codemirror-extensions-basic-setup": "4.21.12",
"@uiw/codemirror-extensions-basic-setup": "4.21.13",
"codemirror": "^6.0.0"

@@ -46,0 +46,0 @@ },

@@ -27,9 +27,9 @@ import { useEffect, useState } from 'react';

theme = 'light',
height = '',
minHeight = '',
maxHeight = '',
height = null,
minHeight = null,
maxHeight = null,
width = null,
minWidth = null,
maxWidth = null,
placeholder: placeholderStr = '',
width = '',
minWidth = '',
maxWidth = '',
editable = true,

@@ -36,0 +36,0 @@ readOnly = false,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc