@bigbinary/neeto-editor 1.47.95 → 1.47.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor.js +2 -2
- package/dist/EditorContent.js +1 -1
- package/dist/FormikEditor.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{chunk-DYtAbrtZ.js → chunk-DekvPrJI.js} +82 -78
- package/dist/chunk-DekvPrJI.js.map +1 -0
- package/dist/cjs/Editor.cjs.js +2 -2
- package/dist/cjs/EditorContent.cjs.js +1 -1
- package/dist/cjs/FormikEditor.cjs.js +1 -1
- package/dist/cjs/Menu.cjs.js +1 -1
- package/dist/cjs/{chunk-BdXk4fyW.cjs.js → chunk-8T3-Ca_f.cjs.js} +82 -78
- package/dist/cjs/chunk-8T3-Ca_f.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/editor-content.min.css +1 -1
- package/dist/editor-output.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DYtAbrtZ.js.map +0 -1
- package/dist/cjs/chunk-BdXk4fyW.cjs.js.map +0 -1
|
@@ -15710,8 +15710,8 @@ var emojiPickerApi = {
|
|
|
15710
15710
|
fetch: fetch
|
|
15711
15711
|
};
|
|
15712
15712
|
|
|
15713
|
-
function ownKeys$
|
|
15714
|
-
function _objectSpread$
|
|
15713
|
+
function ownKeys$b(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; }
|
|
15714
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15715
15715
|
function _callSuper(t, o, e) { return o = _getPrototypeOf__default.default(o), _possibleConstructorReturn__default.default(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf__default.default(t).constructor) : o.apply(t, e)); }
|
|
15716
15716
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15717
15717
|
var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15764,7 +15764,7 @@ var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
15764
15764
|
return _createClass__default.default(EmojiPickerMenu, [{
|
|
15765
15765
|
key: "componentDidMount",
|
|
15766
15766
|
value: function componentDidMount() {
|
|
15767
|
-
new emojiMart.Picker(_objectSpread$
|
|
15767
|
+
new emojiMart.Picker(_objectSpread$b(_objectSpread$b({}, this.props), {}, {
|
|
15768
15768
|
onEmojiSelect: this.handleSelect,
|
|
15769
15769
|
style: {
|
|
15770
15770
|
maxWidth: "100%"
|
|
@@ -15832,8 +15832,8 @@ var useEditorStore = zustand.create(reactUtils.withImmutableActions(function (se
|
|
|
15832
15832
|
};
|
|
15833
15833
|
}));
|
|
15834
15834
|
|
|
15835
|
-
function ownKeys$
|
|
15836
|
-
function _objectSpread$
|
|
15835
|
+
function ownKeys$a(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; }
|
|
15836
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15837
15837
|
var MenuButton = function MenuButton(_ref) {
|
|
15838
15838
|
var icon = _ref.icon,
|
|
15839
15839
|
command = _ref.command,
|
|
@@ -15852,7 +15852,7 @@ var MenuButton = function MenuButton(_ref) {
|
|
|
15852
15852
|
isActive = _useEditorStore.isActive,
|
|
15853
15853
|
_useEditorStore$disab = _useEditorStore.disabled,
|
|
15854
15854
|
disabled = _useEditorStore$disab === void 0 ? isButtonDisabled : _useEditorStore$disab;
|
|
15855
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button__default.default, _objectSpread$
|
|
15855
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button__default.default, _objectSpread$a({
|
|
15856
15856
|
disabled: disabled,
|
|
15857
15857
|
icon: icon,
|
|
15858
15858
|
className: "neeto-editor-fixed-menu__item",
|
|
@@ -16199,8 +16199,8 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16199
16199
|
});
|
|
16200
16200
|
};
|
|
16201
16201
|
|
|
16202
|
-
function ownKeys$
|
|
16203
|
-
function _objectSpread$
|
|
16202
|
+
function ownKeys$9(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; }
|
|
16203
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16204
16204
|
var createMenuOptions$2 = function createMenuOptions(_ref) {
|
|
16205
16205
|
var tooltips = _ref.tooltips,
|
|
16206
16206
|
editor = _ref.editor,
|
|
@@ -16426,7 +16426,7 @@ var renderOptionButton = function renderOptionButton(_ref4) {
|
|
|
16426
16426
|
active = _ref4.active,
|
|
16427
16427
|
optionName = _ref4.optionName,
|
|
16428
16428
|
highlight = _ref4.highlight;
|
|
16429
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button__default.default, _objectSpread$
|
|
16429
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button__default.default, _objectSpread$9({
|
|
16430
16430
|
className: "neeto-editor-bubble-menu__item",
|
|
16431
16431
|
"data-testid": "neeto-editor-bubble-menu-".concat(optionName, "-option"),
|
|
16432
16432
|
icon: Icon,
|
|
@@ -17362,8 +17362,8 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
17362
17362
|
};
|
|
17363
17363
|
|
|
17364
17364
|
var _excluded$3 = ["type"];
|
|
17365
|
-
function ownKeys$
|
|
17366
|
-
function _objectSpread$
|
|
17365
|
+
function ownKeys$8(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; }
|
|
17366
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17367
17367
|
var Menu$3 = Dropdown__default.default.Menu,
|
|
17368
17368
|
MenuItem$1 = Dropdown__default.default.MenuItem;
|
|
17369
17369
|
var MoreMenu = function MoreMenu(_ref) {
|
|
@@ -17384,18 +17384,18 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
17384
17384
|
var Component = MENU_ELEMENTS[type];
|
|
17385
17385
|
if (type === MENU_ELEMENT_TYPES.BUTTON) {
|
|
17386
17386
|
var Icon = props.icon;
|
|
17387
|
-
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$1.Button, _objectSpread$
|
|
17387
|
+
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$1.Button, _objectSpread$8(_objectSpread$8({
|
|
17388
17388
|
"data-testid": "neeto-editor-fixed-menu-".concat(props.optionName, "-option"),
|
|
17389
17389
|
isActive: editor.isActive(props.optionName),
|
|
17390
17390
|
tabIndex: "-1",
|
|
17391
17391
|
onClick: props.command
|
|
17392
|
-
}, _objectSpread$
|
|
17392
|
+
}, _objectSpread$8(_objectSpread$8(_objectSpread$8({}, generateFocusProps(props.highlight)), props), {}, {
|
|
17393
17393
|
editor: editor
|
|
17394
17394
|
})), {}, {
|
|
17395
17395
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon, {}), " ", props.label]
|
|
17396
17396
|
}), props.optionName);
|
|
17397
17397
|
}
|
|
17398
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
17398
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$8(_objectSpread$8({}, _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
17399
17399
|
editor: editor
|
|
17400
17400
|
}, generateFocusProps(props.highlight))), {}, {
|
|
17401
17401
|
isSecondaryMenu: true
|
|
@@ -17408,8 +17408,8 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
17408
17408
|
|
|
17409
17409
|
var EDITOR_MARKS = [constants.EDITOR_OPTIONS.UNDO, constants.EDITOR_OPTIONS.REDO, "fontSizeOptions", constants.EDITOR_OPTIONS.BOLD, constants.EDITOR_OPTIONS.ITALIC, constants.EDITOR_OPTIONS.UNDERLINE, constants.EDITOR_OPTIONS.LINK, constants.EDITOR_OPTIONS.STRIKETHROUGH, constants.EDITOR_OPTIONS.HIGHLIGHT, constants.EDITOR_OPTIONS.CALLOUT, "bulletList", "orderedList", "todoList", "blockquote", constants.EDITOR_OPTIONS.CODE, "codeBlock", constants.EDITOR_OPTIONS.TABLE, constants.EDITOR_OPTIONS.ATTACHMENTS, constants.EDITOR_OPTIONS.IMAGE_UPLOAD, constants.EDITOR_OPTIONS.VIDEO_UPLOAD, constants.EDITOR_OPTIONS.TEXT_COLOR, constants.EDITOR_OPTIONS.EMOJI, constants.EDITOR_OPTIONS.NEETO_KB_ARTICLE, "mentions"];
|
|
17410
17410
|
|
|
17411
|
-
function ownKeys$
|
|
17412
|
-
function _objectSpread$
|
|
17411
|
+
function ownKeys$7(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; }
|
|
17412
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17413
17413
|
var useEditorState = function useEditorState(_ref) {
|
|
17414
17414
|
var editor = _ref.editor,
|
|
17415
17415
|
neetoKbArticleState = _ref.neetoKbArticleState;
|
|
@@ -17452,7 +17452,7 @@ var useEditorState = function useEditorState(_ref) {
|
|
|
17452
17452
|
var redoOptionState = {
|
|
17453
17453
|
disabled: !editor.can().redo()
|
|
17454
17454
|
};
|
|
17455
|
-
var updatedMarksState = _objectSpread$
|
|
17455
|
+
var updatedMarksState = _objectSpread$7(_objectSpread$7({}, marksState), {}, _defineProperty__default.default(_defineProperty__default.default({}, constants.EDITOR_OPTIONS.UNDO, undoOptionState), constants.EDITOR_OPTIONS.REDO, redoOptionState));
|
|
17456
17456
|
setMarksState(updatedMarksState);
|
|
17457
17457
|
}, [marksState, setMarksState]);
|
|
17458
17458
|
React.useEffect(function () {
|
|
@@ -17522,8 +17522,8 @@ var MenuDynamicVariables = function MenuDynamicVariables(_ref) {
|
|
|
17522
17522
|
};
|
|
17523
17523
|
|
|
17524
17524
|
var _excluded$2 = ["type"];
|
|
17525
|
-
function ownKeys$
|
|
17526
|
-
function _objectSpread$
|
|
17525
|
+
function ownKeys$6(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; }
|
|
17526
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17527
17527
|
var Fixed = function Fixed(_ref) {
|
|
17528
17528
|
var editor = _ref.editor,
|
|
17529
17529
|
options = _ref.options,
|
|
@@ -17658,7 +17658,7 @@ var Fixed = function Fixed(_ref) {
|
|
|
17658
17658
|
props = _objectWithoutProperties__default.default(_ref2, _excluded$2);
|
|
17659
17659
|
var Component = MENU_ELEMENTS[type];
|
|
17660
17660
|
if (!Component) return null;
|
|
17661
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
17661
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$6({}, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
17662
17662
|
editor: editor,
|
|
17663
17663
|
options: options
|
|
17664
17664
|
})), props.optionName);
|
|
@@ -17689,8 +17689,8 @@ var Fixed = function Fixed(_ref) {
|
|
|
17689
17689
|
};
|
|
17690
17690
|
|
|
17691
17691
|
var _excluded$1 = ["icon", "onClick", "disabled", "className", "tooltipProps"];
|
|
17692
|
-
function ownKeys$
|
|
17693
|
-
function _objectSpread$
|
|
17692
|
+
function ownKeys$5(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; }
|
|
17693
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17694
17694
|
var Button = function Button(_ref) {
|
|
17695
17695
|
var _ref$icon = _ref.icon,
|
|
17696
17696
|
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
@@ -17702,16 +17702,16 @@ var Button = function Button(_ref) {
|
|
|
17702
17702
|
tooltipProps = _ref.tooltipProps,
|
|
17703
17703
|
otherProps = _objectWithoutProperties__default.default(_ref, _excluded$1);
|
|
17704
17704
|
var Icon = icon;
|
|
17705
|
-
return /*#__PURE__*/jsxRuntime.jsx(Tooltip__default.default, _objectSpread$
|
|
17705
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip__default.default, _objectSpread$5(_objectSpread$5({
|
|
17706
17706
|
disabled: !tooltipProps,
|
|
17707
17707
|
onClick: function onClick() {
|
|
17708
17708
|
return _onClick();
|
|
17709
17709
|
}
|
|
17710
17710
|
}, tooltipProps), {}, {
|
|
17711
|
-
children: /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread$
|
|
17711
|
+
children: /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread$5(_objectSpread$5({
|
|
17712
17712
|
className: classnames__default.default("ne-headless-btn", _defineProperty__default.default({}, className, className)),
|
|
17713
17713
|
type: "button"
|
|
17714
|
-
}, _objectSpread$
|
|
17714
|
+
}, _objectSpread$5({
|
|
17715
17715
|
disabled: disabled,
|
|
17716
17716
|
onClick: _onClick
|
|
17717
17717
|
}, otherProps)), {}, {
|
|
@@ -17724,8 +17724,8 @@ var Button = function Button(_ref) {
|
|
|
17724
17724
|
};
|
|
17725
17725
|
|
|
17726
17726
|
var _excluded = ["icon", "isOpen", "onClose", "children", "className", "onClick", "buttonProps"];
|
|
17727
|
-
function ownKeys$
|
|
17728
|
-
function _objectSpread$
|
|
17727
|
+
function ownKeys$4(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; }
|
|
17728
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17729
17729
|
var hideOnEsc = {
|
|
17730
17730
|
name: "hideOnEsc",
|
|
17731
17731
|
defaultValue: true,
|
|
@@ -17764,7 +17764,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
17764
17764
|
_useState2 = _slicedToArray__default.default(_useState, 2),
|
|
17765
17765
|
mounted = _useState2[0],
|
|
17766
17766
|
setMounted = _useState2[1];
|
|
17767
|
-
return /*#__PURE__*/jsxRuntime.jsx(Tippy__default.default, _objectSpread$
|
|
17767
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tippy__default.default, _objectSpread$4(_objectSpread$4({
|
|
17768
17768
|
onClose: onClose,
|
|
17769
17769
|
hideOnEsc: true,
|
|
17770
17770
|
interactive: true,
|
|
@@ -17796,7 +17796,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
17796
17796
|
}
|
|
17797
17797
|
}, otherProps), {}, {
|
|
17798
17798
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
17799
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$
|
|
17799
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$4({}, _objectSpread$4({
|
|
17800
17800
|
icon: icon,
|
|
17801
17801
|
onClick: onClick
|
|
17802
17802
|
}, buttonProps)))
|
|
@@ -17869,8 +17869,8 @@ var Option = function Option(_ref) {
|
|
|
17869
17869
|
});
|
|
17870
17870
|
};
|
|
17871
17871
|
|
|
17872
|
-
function ownKeys$
|
|
17873
|
-
function _objectSpread$
|
|
17872
|
+
function ownKeys$3(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; }
|
|
17873
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17874
17874
|
var t = i18n__default.default.t;
|
|
17875
17875
|
var createMenuOptions$1 = function createMenuOptions(_ref) {
|
|
17876
17876
|
var editor = _ref.editor,
|
|
@@ -18021,7 +18021,7 @@ var buildOptionsFromAddonCommands$1 = function buildOptionsFromAddonCommands(_re
|
|
|
18021
18021
|
var to = editor.state.selection.to;
|
|
18022
18022
|
return commands.map(function (option) {
|
|
18023
18023
|
var _option$active;
|
|
18024
|
-
return _objectSpread$
|
|
18024
|
+
return _objectSpread$3(_objectSpread$3({}, option), {}, {
|
|
18025
18025
|
active: (_option$active = option.active) === null || _option$active === void 0 ? void 0 : _option$active.call(option, {
|
|
18026
18026
|
editor: editor
|
|
18027
18027
|
}),
|
|
@@ -18061,8 +18061,8 @@ var buildMenuOptions$1 = function buildMenuOptions(_ref3) {
|
|
|
18061
18061
|
}).filter(Boolean);
|
|
18062
18062
|
};
|
|
18063
18063
|
|
|
18064
|
-
function ownKeys$
|
|
18065
|
-
function _objectSpread$
|
|
18064
|
+
function ownKeys$2(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; }
|
|
18065
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18066
18066
|
var Headless = function Headless(_ref) {
|
|
18067
18067
|
var editor = _ref.editor,
|
|
18068
18068
|
options = _ref.options,
|
|
@@ -18097,7 +18097,7 @@ var Headless = function Headless(_ref) {
|
|
|
18097
18097
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
18098
18098
|
className: classnames__default.default("ne-headless", _defineProperty__default.default({}, className, className)),
|
|
18099
18099
|
children: [allOptions.map(function (option) {
|
|
18100
|
-
return /*#__PURE__*/React.createElement(Option, _objectSpread$
|
|
18100
|
+
return /*#__PURE__*/React.createElement(Option, _objectSpread$2({
|
|
18101
18101
|
editor: editor,
|
|
18102
18102
|
key: option.optionName
|
|
18103
18103
|
}, option));
|
|
@@ -18236,8 +18236,6 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
18236
18236
|
};
|
|
18237
18237
|
var FontSizeOption$1 = /*#__PURE__*/React.memo(FontSizeOption);
|
|
18238
18238
|
|
|
18239
|
-
function ownKeys$2(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; }
|
|
18240
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18241
18239
|
var ColorDot = function ColorDot(_ref) {
|
|
18242
18240
|
var _colorVar$match;
|
|
18243
18241
|
var colorVar = _ref.colorVar,
|
|
@@ -18245,53 +18243,60 @@ var ColorDot = function ColorDot(_ref) {
|
|
|
18245
18243
|
onClick = _ref.onClick,
|
|
18246
18244
|
isTextColor = _ref.isTextColor;
|
|
18247
18245
|
var dotClass = classnames__default.default("neeto-editor-highlight-dropdown__color-dot", {
|
|
18248
|
-
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected
|
|
18249
|
-
"neeto-editor-highlight-dropdown__color-dot--background": !isTextColor
|
|
18246
|
+
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected
|
|
18250
18247
|
});
|
|
18251
|
-
var dotStyle =
|
|
18252
|
-
color: "var(".concat(colorVar, ")")
|
|
18253
|
-
} : {
|
|
18248
|
+
var dotStyle = {
|
|
18254
18249
|
backgroundColor: "var(".concat(colorVar, ")")
|
|
18255
|
-
}
|
|
18250
|
+
};
|
|
18256
18251
|
var colorNumber = ((_colorVar$match = colorVar.match(/\d+$/)) === null || _colorVar$match === void 0 ? void 0 : _colorVar$match[0]) || colorVar;
|
|
18257
18252
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18258
18253
|
onClick: onClick,
|
|
18259
18254
|
className: dotClass,
|
|
18260
18255
|
style: dotStyle,
|
|
18261
|
-
"data-testid": "neeto-editor-highlight-".concat(utils$1.hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber)
|
|
18262
|
-
children: isTextColor && /*#__PURE__*/jsxRuntime.jsx(Typography__default.default, {
|
|
18263
|
-
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
18264
|
-
style: "body2",
|
|
18265
|
-
weight: "semibold",
|
|
18266
|
-
children: "A"
|
|
18267
|
-
})
|
|
18268
|
-
});
|
|
18269
|
-
};
|
|
18270
|
-
|
|
18271
|
-
var ColorDotIcon = function ColorDotIcon(_ref) {
|
|
18272
|
-
var textColor = _ref.textColor,
|
|
18273
|
-
backgroundColor = _ref.backgroundColor;
|
|
18274
|
-
var dotClass = classnames__default.default("neeto-editor-highlight-dropdown__color-dot", {});
|
|
18275
|
-
var dotStyle = {
|
|
18276
|
-
color: "var(".concat(textColor, ")"),
|
|
18277
|
-
backgroundColor: "var(".concat(backgroundColor, ")")
|
|
18278
|
-
};
|
|
18279
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18280
|
-
className: dotClass,
|
|
18281
|
-
style: dotStyle,
|
|
18282
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography__default.default, {
|
|
18283
|
-
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
18284
|
-
style: "body2",
|
|
18285
|
-
weight: "semibold",
|
|
18286
|
-
children: "A"
|
|
18287
|
-
})
|
|
18256
|
+
"data-testid": "neeto-editor-highlight-".concat(utils$1.hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber)
|
|
18288
18257
|
});
|
|
18289
18258
|
};
|
|
18290
18259
|
|
|
18291
18260
|
var COLORS = {
|
|
18292
18261
|
recent: ["--neeto-editor-highlight-bg-yellow-light"],
|
|
18293
|
-
text: [
|
|
18294
|
-
|
|
18262
|
+
text: [
|
|
18263
|
+
// Neutrals
|
|
18264
|
+
"--neeto-editor-highlight-text-11", "--neeto-editor-highlight-text-1", "--neeto-editor-highlight-text-2", "--neeto-editor-highlight-text-12", "--neeto-editor-highlight-text-13", "--neeto-editor-highlight-text-14",
|
|
18265
|
+
// Reds
|
|
18266
|
+
"--neeto-editor-highlight-text-15", "--neeto-editor-highlight-text-10", "--neeto-editor-highlight-text-16",
|
|
18267
|
+
// Oranges / Browns
|
|
18268
|
+
"--neeto-editor-highlight-text-3", "--neeto-editor-highlight-text-4",
|
|
18269
|
+
// Yellows / Golds
|
|
18270
|
+
"--neeto-editor-highlight-text-5", "--neeto-editor-highlight-text-18", "--neeto-editor-highlight-text-17",
|
|
18271
|
+
// Greens
|
|
18272
|
+
"--neeto-editor-highlight-text-6", "--neeto-editor-highlight-text-19", "--neeto-editor-highlight-text-21",
|
|
18273
|
+
// Teals
|
|
18274
|
+
"--neeto-editor-highlight-text-20", "--neeto-editor-highlight-text-24",
|
|
18275
|
+
// Blues
|
|
18276
|
+
"--neeto-editor-highlight-text-23", "--neeto-editor-highlight-text-7", "--neeto-editor-highlight-text-22", "--neeto-editor-highlight-text-25",
|
|
18277
|
+
// Purples
|
|
18278
|
+
"--neeto-editor-highlight-text-27", "--neeto-editor-highlight-text-8", "--neeto-editor-highlight-text-29",
|
|
18279
|
+
// Pinks / Magentas
|
|
18280
|
+
"--neeto-editor-highlight-text-28", "--neeto-editor-highlight-text-26", "--neeto-editor-highlight-text-9"],
|
|
18281
|
+
background: [
|
|
18282
|
+
// Neutrals
|
|
18283
|
+
"--neeto-editor-highlight-bg-11", "--neeto-editor-highlight-bg-12", "--neeto-editor-highlight-bg-13", "--neeto-editor-highlight-bg-14", "--neeto-editor-highlight-bg-3", "--neeto-editor-highlight-bg-2", "--neeto-editor-highlight-bg-15",
|
|
18284
|
+
// Reds
|
|
18285
|
+
"--neeto-editor-highlight-bg-16", "--neeto-editor-highlight-bg-17", "--neeto-editor-highlight-bg-10",
|
|
18286
|
+
// Oranges / Browns
|
|
18287
|
+
"--neeto-editor-highlight-bg-18", "--neeto-editor-highlight-bg-4",
|
|
18288
|
+
// Yellows / Golds
|
|
18289
|
+
"--neeto-editor-highlight-bg-19", "--neeto-editor-highlight-bg-1", "--neeto-editor-highlight-bg-5",
|
|
18290
|
+
// Greens
|
|
18291
|
+
"--neeto-editor-highlight-bg-20", "--neeto-editor-highlight-bg-6",
|
|
18292
|
+
// Teals
|
|
18293
|
+
"--neeto-editor-highlight-bg-21", "--neeto-editor-highlight-bg-24",
|
|
18294
|
+
// Blues
|
|
18295
|
+
"--neeto-editor-highlight-bg-23", "--neeto-editor-highlight-bg-22", "--neeto-editor-highlight-bg-25", "--neeto-editor-highlight-bg-7",
|
|
18296
|
+
// Purples
|
|
18297
|
+
"--neeto-editor-highlight-bg-28", "--neeto-editor-highlight-bg-30", "--neeto-editor-highlight-bg-8",
|
|
18298
|
+
// Pinks / Magentas
|
|
18299
|
+
"--neeto-editor-highlight-bg-29", "--neeto-editor-highlight-bg-26", "--neeto-editor-highlight-bg-27", "--neeto-editor-highlight-bg-9"]
|
|
18295
18300
|
};
|
|
18296
18301
|
|
|
18297
18302
|
var colorSections = [{
|
|
@@ -18354,13 +18359,12 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18354
18359
|
strategy: "fixed",
|
|
18355
18360
|
buttonProps: {
|
|
18356
18361
|
icon: function icon() {
|
|
18357
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
18358
|
-
|
|
18359
|
-
textColor: textColor
|
|
18362
|
+
return /*#__PURE__*/jsxRuntime.jsx(Highlight__default.default, {
|
|
18363
|
+
size: 18
|
|
18360
18364
|
});
|
|
18361
18365
|
},
|
|
18362
18366
|
iconPosition: "left",
|
|
18363
|
-
iconSize:
|
|
18367
|
+
iconSize: 16,
|
|
18364
18368
|
label: /*#__PURE__*/jsxRuntime.jsx(Down__default.default, {
|
|
18365
18369
|
size: 12
|
|
18366
18370
|
}),
|
|
@@ -18389,7 +18393,7 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18389
18393
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default.default, {
|
|
18390
18394
|
className: "neeto-editor-highlight-dropdown__section-title",
|
|
18391
18395
|
style: "body2",
|
|
18392
|
-
weight: "
|
|
18396
|
+
weight: "medium",
|
|
18393
18397
|
children: title
|
|
18394
18398
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18395
18399
|
className: "neeto-editor-highlight-dropdown__color-grid",
|
|
@@ -19058,4 +19062,4 @@ exports.useEditor = useEditor;
|
|
|
19058
19062
|
exports.useEditorState = useEditorState$1;
|
|
19059
19063
|
exports.validateUrl = validateUrl;
|
|
19060
19064
|
exports.wrappingInputRule = wrappingInputRule;
|
|
19061
|
-
//# sourceMappingURL=chunk-
|
|
19065
|
+
//# sourceMappingURL=chunk-8T3-Ca_f.cjs.js.map
|