Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-textarea-code-editor

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-textarea-code-editor - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

lib/cjs/index.js

@@ -68,2 +68,5 @@ "use strict";

var textRef = (0, _react.useRef)(null);
(0, _react.useImperativeHandle)(ref, function () {
return textRef.current;
});
var contentStyle = {

@@ -120,2 +123,2 @@ paddingTop: padding,

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJfIiwidmFsdWUiLCJwYWRkaW5nIiwibWluSGVpZ2h0IiwicGxhY2Vob2xkZXIiLCJsYW5ndWFnZSIsImNsYXNzTmFtZSIsInN0eWxlIiwib25DaGFuZ2UiLCJvdGhlciIsInNldFZhbHVlIiwidGV4dFJlZiIsImNvbnRlbnRTdHlsZSIsInBhZGRpbmdUb3AiLCJwYWRkaW5nUmlnaHQiLCJwYWRkaW5nQm90dG9tIiwicGFkZGluZ0xlZnQiLCJodG1sU3RyIiwiU3RyaW5nIiwicHJlVmlldyIsInN0eWxlcyIsImVkaXRvciIsIl9faHRtbCIsImNvbnRhaW5lciIsImV2biIsIm9uS2V5RG93biIsInRleHRhcmVhIiwiV2Via2l0VGV4dEZpbGxDb2xvciIsInRhcmdldCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFHQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ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gICAgICAgLi4uKHBsYWNlaG9sZGVyICYmICF2YWx1ZSA/IHsgV2Via2l0VGV4dEZpbGxDb2xvcjogJ2luaGVyaXQnIH0gOiB7fSksXG4gICAgICAgIH19XG4gICAgICAgIHJlZj17dGV4dFJlZn1cbiAgICAgICAgb25DaGFuZ2U9eyhldm4pID0+IHtcbiAgICAgICAgICBzZXRWYWx1ZShldm4udGFyZ2V0LnZhbHVlKTtcbiAgICAgICAgICBvbkNoYW5nZSAmJiBvbkNoYW5nZShldm4pO1xuICAgICAgICB9fVxuICAgICAgICBjbGFzc05hbWU9e2Ake3ByZWZpeENsc30tdGV4dGB9XG4gICAgICAgIHZhbHVlPXt2YWx1ZX1cbiAgICAgIC8+XG4gICAgICB7cHJlVmlld31cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJfIiwidmFsdWUiLCJwYWRkaW5nIiwibWluSGVpZ2h0IiwicGxhY2Vob2xkZXIiLCJsYW5ndWFnZSIsImNsYXNzTmFtZSIsInN0eWxlIiwib25DaGFuZ2UiLCJvdGhlciIsInNldFZhbHVlIiwidGV4dFJlZiIsImN1cnJlbnQiLCJjb250ZW50U3R5bGUiLCJwYWRkaW5nVG9wIiwicGFkZGluZ1JpZ2h0IiwicGFkZGluZ0JvdHRvbSIsInBhZGRpbmdMZWZ0IiwiaHRtbFN0ciIsIlN0cmluZyIsInByZVZpZXciLCJzdHlsZXMiLCJlZGl0b3IiLCJfX2h0bWwiLCJjb250YWluZXIiLCJldm4iLCJvbktleURvd24iLCJ0ZXh0YXJlYSIsIldlYmtpdFRleHRGaWxsQ29sb3IiLCJ0YXJnZXQiXSwibWFwcGluZ3MiOiI7Ozs7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iAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyfVxuICAgICAgICBvbktleURvd249eyhldm4pID0+IHtcbiAgICAgICAgICBzaG9ydGN1dHMoZXZuKTtcbiAgICAgICAgICBvdGhlci5vbktleURvd24gJiYgb3RoZXIub25LZXlEb3duKGV2bik7XG4gICAgICAgIH19XG4gICAgICAgIHN0eWxlPXt7XG4gICAgICAgICAgLi4uc3R5bGVzLmVkaXRvcixcbiAgICAgICAgICAuLi5zdHlsZXMudGV4dGFyZWEsXG4gICAgICAgICAgLi4uY29udGVudFN0eWxlLFxuICAgICAgICAgIG1pbkhlaWdodCxcbiAgICAgICAgICAuLi4ocGxhY2Vob2xkZXIgJiYgIXZhbHVlID8geyBXZWJraXRUZXh0RmlsbENvbG9yOiAnaW5oZXJpdCcgfSA6IHt9KSxcbiAgICAgICAgfX1cbiAgICAgICAgcmVmPXt0ZXh0UmVmfVxuICAgICAgICBvbkNoYW5nZT17KGV2bikgPT4ge1xuICAgICAgICAgIHNldFZhbHVlKGV2bi50YXJnZXQudmFsdWUpO1xuICAgICAgICAgIG9uQ2hhbmdlICYmIG9uQ2hhbmdlKGV2bik7XG4gICAgICAgIH19XG4gICAgICAgIGNsYXNzTmFtZT17YCR7cHJlZml4Q2xzfS10ZXh0YH1cbiAgICAgICAgdmFsdWU9e3ZhbHVlfVxuICAgICAgLz5cbiAgICAgIHtwcmVWaWV3fVxuICAgIDwvZGl2PlxuICApO1xufSk7XG4iXX0=

2

lib/cjs/SelectionText.d.ts

@@ -11,2 +11,4 @@ export declare class SelectionText {

getLineStartNumber(): number;
/** Indent on new lines */
getIndentText(): string;
lineStarInstert(text?: string): this;

@@ -13,0 +15,0 @@ lineStarRemove(text?: string): void;

@@ -75,3 +75,16 @@ "use strict";

}
/** Indent on new lines */
}, {
key: "getIndentText",
value: function getIndentText() {
var start = this.getLineStartNumber();
var str = this.getSelectedValue(start);
var indent = '';
str.replace(/(^(\s)+)/, function (str, old) {
return indent = old;
});
return indent;
}
}, {
key: "lineStarInstert",

@@ -129,2 +142,2 @@ value: function lineStarInstert() {

exports.SelectionText = SelectionText;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9TZWxlY3Rpb25UZXh0LnRzIl0sIm5hbWVzIjpbIlNlbGVjdGlvblRleHQiLCJlbG0iLCJzdGFydCIsImVuZCIsInZhbHVlIiwic2VsZWN0aW9uU3RhcnQiLCJzZWxlY3Rpb25FbmQiLCJpc05hTiIsInRleHQiLCJmb2N1cyIsInNldFJhbmdlVGV4dCIsInBvc2l0aW9uIiwic2xpY2UiLCJjaGFyQXQiLCJvbGRTdGFydCIsImdldExpbmVTdGFydE51bWJlciIsInN0ciIsImdldFNlbGVjdGVkVmFsdWUiLCJpbnNlcnRUZXh0Iiwic3BsaXQiLCJtYXAiLCJ0eHQiLCJqb2luIiwibGVuZ3RoIiwicmVnIiwiUmVnRXhwIiwibmV3U3RhcnQiLCJ0ZXN0IiwicmVwbGFjZSIsImV2ZW50IiwiRXZlbnQiLCJidWJibGVzIiwiY2FuY2VsYWJsZSIsImRpc3BhdGNoRXZlbnQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7SUFBYUEsYTtBQUtYLHlCQUFZQyxHQUFaLEVBQXNDO0FBQUE7QUFBQSxTQUp0Q0EsR0FJc0M7QUFBQSxTQUh0Q0MsS0FHc0M7QUFBQSxTQUZ0Q0MsR0FFc0M7QUFBQSxTQUR0Q0MsS0FDc0M7QUFDcEMsUUFBUUMsY0FBUixHQUF5Q0osR0FBekMsQ0FBUUksY0FBUjtBQUFBLFFBQXdCQyxZQUF4QixHQUF5Q0wsR0FBekMsQ0FBd0JLLFlBQXhCO0FBQ0EsU0FBS0wsR0FBTCxHQUFXQSxHQUFYO0FBQ0EsU0FBS0MsS0FBTCxHQUFhRyxjQUFiO0FBQ0EsU0FBS0YsR0FBTCxHQUFXRyxZQUFYO0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oYF4ke3RleHR9YCwgJ2cnKTtcbiAgICAgIGxldCBuZXdTdGFydCA9IG9sZFN0YXJ0IC0gdGV4dC5sZW5ndGg7XG4gICAgICBpZiAoIXJlZy50ZXN0KHN0cikpIHtcbiAgICAgICAgbmV3U3RhcnQgPSBvbGRTdGFydDtcbiAgICAgIH1cbiAgICAgIHRoaXMucG9zaXRpb24oc3RhcnQsIHRoaXMuZW5kKVxuICAgICAgICAuaW5zZXJ0VGV4dChcbiAgICAgICAgICBzdHJcbiAgICAgICAgICAgIC5zcGxpdCgnXFxuJylcbiAgICAgICAgICAgIC5tYXAoKHR4dCkgPT4gdHh0LnJlcGxhY2UocmVnLCAnJykpXG4gICAgICAgICAgICAuam9pbignXFxuJyksXG4gICAgICAgIClcbiAgICAgICAgLnBvc2l0aW9uKG5ld1N0YXJ0LCB0aGlzLmVuZCk7XG4gICAgfVxuICB9XG4gIC8qKiBOb3RpZnkgYW55IHBvc3NpYmxlIGxpc3RlbmVycyBvZiB0aGUgY2hhbmdlICovXG4gIG5vdGlmeUNoYW5nZSgpIHtcbiAgICBjb25zdCBldmVudCA9IG5ldyBFdmVudCgnaW5wdXQnLCB7IGJ1YmJsZXM6IHRydWUsIGNhbmNlbGFibGU6IGZhbHNlIH0pO1xuICAgIHRoaXMuZWxtLmRpc3BhdGNoRXZlbnQoZXZlbnQpO1xuICB9XG59XG4iXX0=

@@ -29,2 +29,7 @@ "use strict";

api.notifyChange();
} else if (e.code && e.code.toLowerCase() === 'enter') {
(0, _utils.stopPropagation)(e);
var indent = "\n".concat(api.getIndentText());
api.insertText(indent).position(api.start + indent.length, api.start + indent.length);
api.notifyChange();
}

@@ -34,2 +39,2 @@ }

module.exports = exports.default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaG9ydGN1dHMudHMiXSwibmFtZXMiOlsic2hvcnRjdXRzIiwiZSIsImFwaSIsIlNlbGVjdGlvbl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O1xuICAgIH1cbiAgICBhcGkubm90aWZ5Q2hhbmdlKCk7XG4gIH0gZWxzZSBpZiAoZS5jb2RlICYmIGUuY29kZS50b0xvd2VyQ2FzZSgpID09PSAnZW50ZXInKSB7XG4gICAgc3RvcFByb3BhZ2F0aW9uKGUpO1xuICAgIGNvbnN0IGluZGVudCA9IGBcXG4ke2FwaS5nZXRJbmRlbnRUZXh0KCl9YDtcbiAgICBhcGkuaW5zZXJ0VGV4dChpbmRlbnQpLnBvc2l0aW9uKGFwaS5zdGFydCArIGluZGVudC5sZW5ndGgsIGFwaS5zdGFydCArIGluZGVudC5sZW5ndGgpO1xuICAgIGFwaS5ub3RpZnlDaGFuZ2UoKTtcbiAgfVxufVxuIl19

@@ -6,3 +6,3 @@ import _extends from "@babel/runtime/helpers/extends";

var _excluded = ["prefixCls", "value", "padding", "minHeight", "placeholder", "language", "className", "style", "onChange"];
import React, { useEffect, useMemo, useRef, useState } from 'react';
import React, { useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
import { processHtml, htmlEncode } from './utils';

@@ -37,2 +37,5 @@ import shortcuts from './shortcuts';

var textRef = useRef(null);
useImperativeHandle(ref, function () {
return textRef.current;
});
var contentStyle = {

@@ -87,2 +90,2 @@ paddingTop: padding,

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJ1c2VFZmZlY3QiLCJ1c2VNZW1vIiwidXNlUmVmIiwidXNlU3RhdGUiLCJwcm9jZXNzSHRtbCIsImh0bWxFbmNvZGUiLCJzaG9ydGN1dHMiLCJzdHlsZXMiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJfIiwidmFsdWUiLCJwYWRkaW5nIiwibWluSGVpZ2h0IiwicGxhY2Vob2xkZXIiLCJsYW5ndWFnZSIsImNsYXNzTmFtZSIsInN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ICAgIGF1dG9DYXBpdGFsaXplPVwib2ZmXCJcbiAgICAgICAgey4uLm90aGVyfVxuICAgICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJ9XG4gICAgICAgIG9uS2V5RG93bj17KGV2bikgPT4ge1xuICAgICAgICAgIHNob3J0Y3V0cyhldm4pO1xuICAgICAgICAgIG90aGVyLm9uS2V5RG93biAmJiBvdGhlci5vbktleURvd24oZXZuKTtcbiAgICAgICAgfX1cbiAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAuLi5zdHlsZXMuZWRpdG9yLFxuICAgICAgICAgIC4uLnN0eWxlcy50ZXh0YXJlYSxcbiAgICAgICAgICAuLi5jb250ZW50U3R5bGUsXG4gICAgICAgICAgbWluSGVpZ2h0LFxuICAgICAgICAgIC4uLihwbGFjZWhvbGRlciAmJiAhdmFsdWUgPyB7IFdlYmtpdFRleHRGaWxsQ29sb3I6ICdpbmhlcml0JyB9IDoge30pLFxuICAgICAgICB9fVxuICAgICAgICByZWY9e3RleHRSZWZ9XG4gICAgICAgIG9uQ2hhbmdlPXsoZXZuKSA9PiB7XG4gICAgICAgICAgc2V0VmFsdWUoZXZuLnRhcmdldC52YWx1ZSk7XG4gICAgICAgICAgb25DaGFuZ2UgJiYgb25DaGFuZ2UoZXZuKTtcbiAgICAgICAgfX1cbiAgICAgICAgY2xhc3NOYW1lPXtgJHtwcmVmaXhDbHN9LXRleHRgfVxuICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAvPlxuICAgICAge3ByZVZpZXd9XG4gICAgPC9kaXY+XG4gICk7XG59KTtcbiJdfQ==

@@ -11,2 +11,4 @@ export declare class SelectionText {

getLineStartNumber(): number;
/** Indent on new lines */
getIndentText(): string;
lineStarInstert(text?: string): this;

@@ -13,0 +15,0 @@ lineStarRemove(text?: string): void;

@@ -65,3 +65,16 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

}
/** Indent on new lines */
}, {
key: "getIndentText",
value: function getIndentText() {
var start = this.getLineStartNumber();
var str = this.getSelectedValue(start);
var indent = '';
str.replace(/(^(\s)+)/, function (str, old) {
return indent = old;
});
return indent;
}
}, {
key: "lineStarInstert",

@@ -118,2 +131,2 @@ value: function lineStarInstert() {

}();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9TZWxlY3Rpb25UZXh0LnRzIl0sIm5hbWVzIjpbIlNlbGVjdGlvblRleHQiLCJlbG0iLCJzdGFydCIsImVuZCIsInZhbHVlIiwic2VsZWN0aW9uU3RhcnQiLCJzZWxlY3Rpb25FbmQiLCJpc05hTiIsInRleHQiLCJmb2N1cyIsInNldFJhbmdlVGV4dCIsInBvc2l0aW9uIiwic2xpY2UiLCJjaGFyQXQiLCJvbGRTdGFydCIsImdldExpbmVTdGFydE51bWJlciIsInN0ciIsImdldFNlbGVjdGVkVmFsdWUiLCJpbnNlcnRUZXh0Iiwic3BsaXQiLCJtYXAiLCJ0eHQiLCJqb2luIiwibGVuZ3RoIiwicmVnIiwiUmVnRXhwIiwibmV3U3RhcnQiLCJ0ZXN0IiwicmVwbGFjZSIsImV2ZW50IiwiRXZlbnQiLCJidWJibGVzIiwiY2FuY2VsYWJsZSIsImRpc3BhdGNoRXZlbnQiXSwibWFwcGluZ3MiOiI7O0FBQUEsV0FBYUEsYUFBYjtBQUtFLHlCQUFZQyxHQUFaLEVBQXNDO0FBQUE7O0FBQUEsU0FKdENBLEdBSXNDO0FBQUEsU0FIdENDLEtBR3NDO0FBQUEsU0FGdENDLEdBRXNDO0FBQUEsU0FEdENDLEtBQ3NDO0FBQ3BDLFFBQVFDLGNBQVIsR0FBeUNKLEdBQXpDLENBQVFJLGNBQVI7QUFBQSxRQUF3QkMsWUFBeEIsR0FBeUNMLEdBQXpDLENBQXdCSyxZQUF4QjtBQUNBLFNBQUtMLEdBQUwsR0FBV0EsR0FBWDtBQUNBLFNBQUtDLEtBQUwsR0FBYUcsY0F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uZXcgUmVnRXhwKGBeJHt0ZXh0fWAsICdnJyk7XG4gICAgICBsZXQgbmV3U3RhcnQgPSBvbGRTdGFydCAtIHRleHQubGVuZ3RoO1xuICAgICAgaWYgKCFyZWcudGVzdChzdHIpKSB7XG4gICAgICAgIG5ld1N0YXJ0ID0gb2xkU3RhcnQ7XG4gICAgICB9XG4gICAgICB0aGlzLnBvc2l0aW9uKHN0YXJ0LCB0aGlzLmVuZClcbiAgICAgICAgLmluc2VydFRleHQoXG4gICAgICAgICAgc3RyXG4gICAgICAgICAgICAuc3BsaXQoJ1xcbicpXG4gICAgICAgICAgICAubWFwKCh0eHQpID0+IHR4dC5yZXBsYWNlKHJlZywgJycpKVxuICAgICAgICAgICAgLmpvaW4oJ1xcbicpLFxuICAgICAgICApXG4gICAgICAgIC5wb3NpdGlvbihuZXdTdGFydCwgdGhpcy5lbmQpO1xuICAgIH1cbiAgfVxuICAvKiogTm90aWZ5IGFueSBwb3NzaWJsZSBsaXN0ZW5lcnMgb2YgdGhlIGNoYW5nZSAqL1xuICBub3RpZnlDaGFuZ2UoKSB7XG4gICAgY29uc3QgZXZlbnQgPSBuZXcgRXZlbnQoJ2lucHV0JywgeyBidWJibGVzOiB0cnVlLCBjYW5jZWxhYmxlOiBmYWxzZSB9KTtcbiAgICB0aGlzLmVsbS5kaXNwYXRjaEV2ZW50KGV2ZW50KTtcbiAgfVxufVxuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9TZWxlY3Rpb25UZXh0LnRzIl0sIm5hbWVzIjpbIlNlbGVjdGlvblRleHQiLCJlbG0iLCJzdGFydCIsImVuZCIsInZhbHVlIiwic2VsZWN0aW9uU3RhcnQiLCJzZWxlY3Rpb25FbmQiLCJpc05hTiIsInRleHQiLCJmb2N1cyIsInNldFJhbmdlVGV4dCIsInBvc2l0aW9uIiwic2xpY2UiLCJjaGFyQXQiLCJnZXRMaW5lU3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ation } from './utils';

api.notifyChange();
} else if (e.code && e.code.toLowerCase() === 'enter') {
stopPropagation(e);
var indent = "\n".concat(api.getIndentText());
api.insertText(indent).position(api.start + indent.length, api.start + indent.length);
api.notifyChange();
}
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaG9ydGN1dHMudHMiXSwibmFtZXMiOlsic3RvcFByb3BhZ2F0aW9uIiwiU2VsZWN0aW9uVGV4dCIsInNob3J0Y3V0cyIsImUiLCJhcGkiLCJ0YXJnZXQiLCJjb2RlIiwidG9Mb3dlckNhc2UiLCJzdGFydCIsImVuZCIsImluc2VydFRleHQiLCJwb3NpdGlvbiIsImdldFNlbGVjdGVkVmFsdWUiLCJpbmRleE9mIiwic2hpZnRLZXkiLCJsaW5lU3RhclJlbW92ZSIsImxpbmVTdGFySW5zdGVydCIsIm5vdGlmeUNoYW5nZSJdLCJtYXBwaW5ncyI6IkFBQUEsU0FBU0EsZUFBVCxRQUFnQyxTQUFoQztBQUNBLFNBQVNDLGFBQVQsUUFBOEIsaUJBQTlCO0FBRUEsZUFBZSxTQUFTQyxTQUFULENBQW1CQyxDQUFuQixFQUFnRTtBQUM3RSxNQUFNQyxHQUFHLEdBQUcsSUFBSUgsYUFBSixDQUFrQkUsQ0FBQyxDQUFDRSxNQUFwQixDQUFaOztBQUNBLE1BQUlGLENBQUMsQ0FBQ0csSUFBRixJQUFVSCxDQUFDLENBQUNHLElBQUYsQ0FBT0MsV0FBUCxPQUF5QixLQUF2QyxFQUE4QztBQUM1Q1AsSUFBQUEsZUFBZSxDQUFDRyxDQUFELENBQWY7O0FBQ0EsUUFBSUMsR0FBRyxDQUFDSSxLQUFKLEtBQWNKLEdBQUcsQ0FBQ0ssR0FBdEIsRUFBMkI7QUFDekJMLE1BQUFBLEdBQUcsQ0FBQ00sVUFBSixDQUFlLElBQWYsRUFBcUJDLFFBQXJCLENBQThCUCxHQUFHLENBQU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ID09PSAndGFiJykge1xuICAgIHN0b3BQcm9wYWdhdGlvbihlKTtcbiAgICBpZiAoYXBpLnN0YXJ0ID09PSBhcGkuZW5kKSB7XG4gICAgICBhcGkuaW5zZXJ0VGV4dCgnICAnKS5wb3NpdGlvbihhcGkuc3RhcnQgKyAyLCBhcGkuZW5kICsgMik7XG4gICAgfSBlbHNlIGlmIChhcGkuZ2V0U2VsZWN0ZWRWYWx1ZSgpLmluZGV4T2YoJ1xcbicpID4gLTEgJiYgZS5zaGlmdEtleSkge1xuICAgICAgYXBpLmxpbmVTdGFyUmVtb3ZlKCcgICcpO1xuICAgIH0gZWxzZSBpZiAoYXBpLmdldFNlbGVjdGVkVmFsdWUoKS5pbmRleE9mKCdcXG4nKSA+IC0xKSB7XG4gICAgICBhcGkubGluZVN0YXJJbnN0ZXJ0KCcgICcpO1xuICAgIH0gZWxzZSB7XG4gICAgICBhcGkuaW5zZXJ0VGV4dCgnICAnKS5wb3NpdGlvbihhcGkuc3RhcnQgKyAyLCBhcGkuZW5kKTtcbiAgICB9XG4gICAgYXBpLm5vdGlmeUNoYW5nZSgpO1xuICB9IGVsc2UgaWYgKGUuY29kZSAmJiBlLmNvZGUudG9Mb3dlckNhc2UoKSA9PT0gJ2VudGVyJykge1xuICAgIHN0b3BQcm9wYWdhdGlvbihlKTtcbiAgICBjb25zdCBpbmRlbnQgPSBgXFxuJHthcGkuZ2V0SW5kZW50VGV4dCgpfWA7XG4gICAgYXBpLmluc2VydFRleHQoaW5kZW50KS5wb3NpdGlvbihhcGkuc3RhcnQgKyBpbmRlbnQubGVuZ3RoLCBhcGkuc3RhcnQgKyBpbmRlbnQubGVuZ3RoKTtcbiAgICBhcGkubm90aWZ5Q2hhbmdlKCk7XG4gIH1cbn1cbiJdfQ==
{
"name": "@uiw/react-textarea-code-editor",
"version": "1.1.0",
"version": "1.2.0",
"description": "A simple code editor with syntax highlighting.",

@@ -58,6 +58,6 @@ "homepage": "https://uiwjs.github.io/react-textarea-code-editor/",

"@testing-library/react": "12.0.0",
"@types/testing-library__jest-dom": "5.14.0",
"@types/react": "17.0.11",
"@types/react-dom": "17.0.8",
"@types/react-test-renderer": "17.0.1",
"@types/testing-library__jest-dom": "5.14.0",
"@uiw/react-github-corners": "1.4.0",

@@ -64,0 +64,0 @@ "@uiw/react-markdown-preview": "3.1.1",

@@ -47,2 +47,10 @@ export class SelectionText {

}
/** Indent on new lines */
getIndentText() {
const start = this.getLineStartNumber();
const str = this.getSelectedValue(start);
let indent = '';
str.replace(/(^(\s)+)/, (str, old) => (indent = old));
return indent;
}
lineStarInstert(text: string = '') {

@@ -49,0 +57,0 @@ if (text) {

@@ -18,3 +18,8 @@ import { stopPropagation } from './utils';

api.notifyChange();
} else if (e.code && e.code.toLowerCase() === 'enter') {
stopPropagation(e);
const indent = `\n${api.getIndentText()}`;
api.insertText(indent).position(api.start + indent.length, api.start + indent.length);
api.notifyChange();
}
}

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

  • 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