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

react-texteditor-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-texteditor-toolkit - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

28

dist/TextEditor.js

@@ -8,3 +8,3 @@ "use strict";

exports["default"] = TextEditor;
var _react = require("react");
var _react = _interopRequireWildcard(require("react"));
var _FormatBold = _interopRequireDefault(require("@mui/icons-material/FormatBold"));

@@ -21,2 +21,4 @@ var _Link = _interopRequireDefault(require("@mui/icons-material/Link"));

function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }

@@ -158,5 +160,5 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }

var defaultToolBarStyle = _objectSpread({}, headerStyle);
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
style: defaultToolBarStyle
}, /*#__PURE__*/React.createElement(_FormatBold["default"], {
}, /*#__PURE__*/_react["default"].createElement(_FormatBold["default"], {
onClick: function onClick() {

@@ -168,3 +170,3 @@ if (!readOnly) applyFormat("bold");

title: "Bold"
}), /*#__PURE__*/React.createElement(_FormatItalic["default"], {
}), /*#__PURE__*/_react["default"].createElement(_FormatItalic["default"], {
onClick: function onClick() {

@@ -176,3 +178,3 @@ if (!readOnly) applyFormat("italic");

title: "Italic"
}), /*#__PURE__*/React.createElement(_Link["default"], {
}), /*#__PURE__*/_react["default"].createElement(_Link["default"], {
onClick: function onClick() {

@@ -184,3 +186,3 @@ if (!readOnly) applyFormat("underline");

title: "Underline"
}), /*#__PURE__*/React.createElement(_FormatListBulleted["default"], {
}), /*#__PURE__*/_react["default"].createElement(_FormatListBulleted["default"], {
onClick: function onClick() {

@@ -192,3 +194,3 @@ if (!readOnly) applyFormat("insertUnorderedList");

title: "Bullet List"
}), /*#__PURE__*/React.createElement(_FormatListNumbered["default"], {
}), /*#__PURE__*/_react["default"].createElement(_FormatListNumbered["default"], {
onClick: function onClick() {

@@ -200,3 +202,3 @@ if (!readOnly) applyFormat("insertOrderedList");

title: "Numbered List"
}), /*#__PURE__*/React.createElement(_FormatAlignLeft["default"], {
}), /*#__PURE__*/_react["default"].createElement(_FormatAlignLeft["default"], {
onClick: function onClick() {

@@ -208,3 +210,3 @@ if (!readOnly) applyFormat("justifyLeft");

title: "Align Left"
}), /*#__PURE__*/React.createElement(_FormatAlignCenter["default"], {
}), /*#__PURE__*/_react["default"].createElement(_FormatAlignCenter["default"], {
onClick: function onClick() {

@@ -216,3 +218,3 @@ if (!readOnly) applyFormat("justifyCenter");

title: "Align Center"
}), /*#__PURE__*/React.createElement(_FormatAlignRight["default"], {
}), /*#__PURE__*/_react["default"].createElement(_FormatAlignRight["default"], {
onClick: function onClick() {

@@ -224,3 +226,3 @@ if (!readOnly) applyFormat("justifyRight");

title: "Align Right"
}), /*#__PURE__*/React.createElement(_TextFormat["default"], {
}), /*#__PURE__*/_react["default"].createElement(_TextFormat["default"], {
onClick: function onClick() {

@@ -232,3 +234,3 @@ if (!readOnly) toggleCapitalization();

title: "Toggle Capitalization"
}), /*#__PURE__*/React.createElement(_Clear["default"], {
}), /*#__PURE__*/_react["default"].createElement(_Clear["default"], {
onClick: function onClick() {

@@ -240,3 +242,3 @@ if (!readOnly) clearFormatting();

title: "Clear Format"
})), /*#__PURE__*/React.createElement("div", {
})), /*#__PURE__*/_react["default"].createElement("div", {
ref: contentRef,

@@ -243,0 +245,0 @@ contentEditable: !readOnly,

{
"name": "react-texteditor-toolkit",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple text editor component with formatting options using React.",

@@ -5,0 +5,0 @@ "main": "dist/TextEditor.js",

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