@bigbinary/neeto-editor 1.47.92 → 1.47.93
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-DTahQyel.js} +46 -78
- package/dist/chunk-DTahQyel.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-CZbZuxub.cjs.js → chunk-C62Rxbt6.cjs.js} +46 -78
- package/dist/cjs/chunk-C62Rxbt6.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-CZbZuxub.cjs.js.map +0 -1
|
@@ -15635,8 +15635,8 @@ var emojiPickerApi = {
|
|
|
15635
15635
|
fetch: fetch
|
|
15636
15636
|
};
|
|
15637
15637
|
|
|
15638
|
-
function ownKeys$
|
|
15639
|
-
function _objectSpread$
|
|
15638
|
+
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; }
|
|
15639
|
+
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(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; }
|
|
15640
15640
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15641
15641
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15642
15642
|
var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15689,7 +15689,7 @@ var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
15689
15689
|
return _createClass(EmojiPickerMenu, [{
|
|
15690
15690
|
key: "componentDidMount",
|
|
15691
15691
|
value: function componentDidMount() {
|
|
15692
|
-
new emojiMart.Picker(_objectSpread$
|
|
15692
|
+
new emojiMart.Picker(_objectSpread$b(_objectSpread$b({}, this.props), {}, {
|
|
15693
15693
|
onEmojiSelect: this.handleSelect,
|
|
15694
15694
|
style: {
|
|
15695
15695
|
maxWidth: "100%"
|
|
@@ -15757,8 +15757,8 @@ var useEditorStore = zustand.create(reactUtils.withImmutableActions(function (se
|
|
|
15757
15757
|
};
|
|
15758
15758
|
}));
|
|
15759
15759
|
|
|
15760
|
-
function ownKeys$
|
|
15761
|
-
function _objectSpread$
|
|
15760
|
+
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; }
|
|
15761
|
+
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(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; }
|
|
15762
15762
|
var MenuButton = function MenuButton(_ref) {
|
|
15763
15763
|
var icon = _ref.icon,
|
|
15764
15764
|
command = _ref.command,
|
|
@@ -15777,7 +15777,7 @@ var MenuButton = function MenuButton(_ref) {
|
|
|
15777
15777
|
isActive = _useEditorStore.isActive,
|
|
15778
15778
|
_useEditorStore$disab = _useEditorStore.disabled,
|
|
15779
15779
|
disabled = _useEditorStore$disab === void 0 ? isButtonDisabled : _useEditorStore$disab;
|
|
15780
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$
|
|
15780
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$a({
|
|
15781
15781
|
disabled: disabled,
|
|
15782
15782
|
icon: icon,
|
|
15783
15783
|
className: "neeto-editor-fixed-menu__item",
|
|
@@ -16124,8 +16124,8 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16124
16124
|
});
|
|
16125
16125
|
};
|
|
16126
16126
|
|
|
16127
|
-
function ownKeys$
|
|
16128
|
-
function _objectSpread$
|
|
16127
|
+
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; }
|
|
16128
|
+
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(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; }
|
|
16129
16129
|
var createMenuOptions$2 = function createMenuOptions(_ref) {
|
|
16130
16130
|
var tooltips = _ref.tooltips,
|
|
16131
16131
|
editor = _ref.editor,
|
|
@@ -16351,7 +16351,7 @@ var renderOptionButton = function renderOptionButton(_ref4) {
|
|
|
16351
16351
|
active = _ref4.active,
|
|
16352
16352
|
optionName = _ref4.optionName,
|
|
16353
16353
|
highlight = _ref4.highlight;
|
|
16354
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$
|
|
16354
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$9({
|
|
16355
16355
|
className: "neeto-editor-bubble-menu__item",
|
|
16356
16356
|
"data-testid": "neeto-editor-bubble-menu-".concat(optionName, "-option"),
|
|
16357
16357
|
icon: Icon,
|
|
@@ -17287,8 +17287,8 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
17287
17287
|
};
|
|
17288
17288
|
|
|
17289
17289
|
var _excluded$3 = ["type"];
|
|
17290
|
-
function ownKeys$
|
|
17291
|
-
function _objectSpread$
|
|
17290
|
+
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; }
|
|
17291
|
+
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(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; }
|
|
17292
17292
|
var Menu$3 = Dropdown$1.Menu,
|
|
17293
17293
|
MenuItem$1 = Dropdown$1.MenuItem;
|
|
17294
17294
|
var MoreMenu = function MoreMenu(_ref) {
|
|
@@ -17309,18 +17309,18 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
17309
17309
|
var Component = MENU_ELEMENTS[type];
|
|
17310
17310
|
if (type === MENU_ELEMENT_TYPES.BUTTON) {
|
|
17311
17311
|
var Icon = props.icon;
|
|
17312
|
-
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$1.Button, _objectSpread$
|
|
17312
|
+
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$1.Button, _objectSpread$8(_objectSpread$8({
|
|
17313
17313
|
"data-testid": "neeto-editor-fixed-menu-".concat(props.optionName, "-option"),
|
|
17314
17314
|
isActive: editor.isActive(props.optionName),
|
|
17315
17315
|
tabIndex: "-1",
|
|
17316
17316
|
onClick: props.command
|
|
17317
|
-
}, _objectSpread$
|
|
17317
|
+
}, _objectSpread$8(_objectSpread$8(_objectSpread$8({}, generateFocusProps(props.highlight)), props), {}, {
|
|
17318
17318
|
editor: editor
|
|
17319
17319
|
})), {}, {
|
|
17320
17320
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon, {}), " ", props.label]
|
|
17321
17321
|
}), props.optionName);
|
|
17322
17322
|
}
|
|
17323
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
17323
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$8(_objectSpread$8({}, _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
17324
17324
|
editor: editor
|
|
17325
17325
|
}, generateFocusProps(props.highlight))), {}, {
|
|
17326
17326
|
isSecondaryMenu: true
|
|
@@ -17333,8 +17333,8 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
17333
17333
|
|
|
17334
17334
|
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"];
|
|
17335
17335
|
|
|
17336
|
-
function ownKeys$
|
|
17337
|
-
function _objectSpread$
|
|
17336
|
+
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; }
|
|
17337
|
+
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(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; }
|
|
17338
17338
|
var useEditorState = function useEditorState(_ref) {
|
|
17339
17339
|
var editor = _ref.editor,
|
|
17340
17340
|
neetoKbArticleState = _ref.neetoKbArticleState;
|
|
@@ -17377,7 +17377,7 @@ var useEditorState = function useEditorState(_ref) {
|
|
|
17377
17377
|
var redoOptionState = {
|
|
17378
17378
|
disabled: !editor.can().redo()
|
|
17379
17379
|
};
|
|
17380
|
-
var updatedMarksState = _objectSpread$
|
|
17380
|
+
var updatedMarksState = _objectSpread$7(_objectSpread$7({}, marksState), {}, _defineProperty(_defineProperty({}, constants.EDITOR_OPTIONS.UNDO, undoOptionState), constants.EDITOR_OPTIONS.REDO, redoOptionState));
|
|
17381
17381
|
setMarksState(updatedMarksState);
|
|
17382
17382
|
}, [marksState, setMarksState]);
|
|
17383
17383
|
React.useEffect(function () {
|
|
@@ -17447,8 +17447,8 @@ var MenuDynamicVariables = function MenuDynamicVariables(_ref) {
|
|
|
17447
17447
|
};
|
|
17448
17448
|
|
|
17449
17449
|
var _excluded$2 = ["type"];
|
|
17450
|
-
function ownKeys$
|
|
17451
|
-
function _objectSpread$
|
|
17450
|
+
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; }
|
|
17451
|
+
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(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; }
|
|
17452
17452
|
var Fixed = function Fixed(_ref) {
|
|
17453
17453
|
var editor = _ref.editor,
|
|
17454
17454
|
options = _ref.options,
|
|
@@ -17583,7 +17583,7 @@ var Fixed = function Fixed(_ref) {
|
|
|
17583
17583
|
props = _objectWithoutProperties(_ref2, _excluded$2);
|
|
17584
17584
|
var Component = MENU_ELEMENTS[type];
|
|
17585
17585
|
if (!Component) return null;
|
|
17586
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
17586
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$6({}, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
17587
17587
|
editor: editor,
|
|
17588
17588
|
options: options
|
|
17589
17589
|
})), props.optionName);
|
|
@@ -17614,8 +17614,8 @@ var Fixed = function Fixed(_ref) {
|
|
|
17614
17614
|
};
|
|
17615
17615
|
|
|
17616
17616
|
var _excluded$1 = ["icon", "onClick", "disabled", "className", "tooltipProps"];
|
|
17617
|
-
function ownKeys$
|
|
17618
|
-
function _objectSpread$
|
|
17617
|
+
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; }
|
|
17618
|
+
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(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; }
|
|
17619
17619
|
var Button = function Button(_ref) {
|
|
17620
17620
|
var _ref$icon = _ref.icon,
|
|
17621
17621
|
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
@@ -17627,16 +17627,16 @@ var Button = function Button(_ref) {
|
|
|
17627
17627
|
tooltipProps = _ref.tooltipProps,
|
|
17628
17628
|
otherProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
17629
17629
|
var Icon = icon;
|
|
17630
|
-
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, _objectSpread$
|
|
17630
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, _objectSpread$5(_objectSpread$5({
|
|
17631
17631
|
disabled: !tooltipProps,
|
|
17632
17632
|
onClick: function onClick() {
|
|
17633
17633
|
return _onClick();
|
|
17634
17634
|
}
|
|
17635
17635
|
}, tooltipProps), {}, {
|
|
17636
|
-
children: /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread$
|
|
17636
|
+
children: /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread$5(_objectSpread$5({
|
|
17637
17637
|
className: classnames("ne-headless-btn", _defineProperty({}, className, className)),
|
|
17638
17638
|
type: "button"
|
|
17639
|
-
}, _objectSpread$
|
|
17639
|
+
}, _objectSpread$5({
|
|
17640
17640
|
disabled: disabled,
|
|
17641
17641
|
onClick: _onClick
|
|
17642
17642
|
}, otherProps)), {}, {
|
|
@@ -17649,8 +17649,8 @@ var Button = function Button(_ref) {
|
|
|
17649
17649
|
};
|
|
17650
17650
|
|
|
17651
17651
|
var _excluded = ["icon", "isOpen", "onClose", "children", "className", "onClick", "buttonProps"];
|
|
17652
|
-
function ownKeys$
|
|
17653
|
-
function _objectSpread$
|
|
17652
|
+
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; }
|
|
17653
|
+
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(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; }
|
|
17654
17654
|
var hideOnEsc = {
|
|
17655
17655
|
name: "hideOnEsc",
|
|
17656
17656
|
defaultValue: true,
|
|
@@ -17689,7 +17689,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
17689
17689
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17690
17690
|
mounted = _useState2[0],
|
|
17691
17691
|
setMounted = _useState2[1];
|
|
17692
|
-
return /*#__PURE__*/jsxRuntime.jsx(Tippy, _objectSpread$
|
|
17692
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tippy, _objectSpread$4(_objectSpread$4({
|
|
17693
17693
|
onClose: onClose,
|
|
17694
17694
|
hideOnEsc: true,
|
|
17695
17695
|
interactive: true,
|
|
@@ -17721,7 +17721,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
17721
17721
|
}
|
|
17722
17722
|
}, otherProps), {}, {
|
|
17723
17723
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
17724
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$
|
|
17724
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$4({}, _objectSpread$4({
|
|
17725
17725
|
icon: icon,
|
|
17726
17726
|
onClick: onClick
|
|
17727
17727
|
}, buttonProps)))
|
|
@@ -17794,8 +17794,8 @@ var Option = function Option(_ref) {
|
|
|
17794
17794
|
});
|
|
17795
17795
|
};
|
|
17796
17796
|
|
|
17797
|
-
function ownKeys$
|
|
17798
|
-
function _objectSpread$
|
|
17797
|
+
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; }
|
|
17798
|
+
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(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; }
|
|
17799
17799
|
var t = i18n.t;
|
|
17800
17800
|
var createMenuOptions$1 = function createMenuOptions(_ref) {
|
|
17801
17801
|
var editor = _ref.editor,
|
|
@@ -17946,7 +17946,7 @@ var buildOptionsFromAddonCommands$1 = function buildOptionsFromAddonCommands(_re
|
|
|
17946
17946
|
var to = editor.state.selection.to;
|
|
17947
17947
|
return commands.map(function (option) {
|
|
17948
17948
|
var _option$active;
|
|
17949
|
-
return _objectSpread$
|
|
17949
|
+
return _objectSpread$3(_objectSpread$3({}, option), {}, {
|
|
17950
17950
|
active: (_option$active = option.active) === null || _option$active === void 0 ? void 0 : _option$active.call(option, {
|
|
17951
17951
|
editor: editor
|
|
17952
17952
|
}),
|
|
@@ -17986,8 +17986,8 @@ var buildMenuOptions$1 = function buildMenuOptions(_ref3) {
|
|
|
17986
17986
|
}).filter(Boolean);
|
|
17987
17987
|
};
|
|
17988
17988
|
|
|
17989
|
-
function ownKeys$
|
|
17990
|
-
function _objectSpread$
|
|
17989
|
+
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; }
|
|
17990
|
+
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(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; }
|
|
17991
17991
|
var Headless = function Headless(_ref) {
|
|
17992
17992
|
var editor = _ref.editor,
|
|
17993
17993
|
options = _ref.options,
|
|
@@ -18022,7 +18022,7 @@ var Headless = function Headless(_ref) {
|
|
|
18022
18022
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
18023
18023
|
className: classnames("ne-headless", _defineProperty({}, className, className)),
|
|
18024
18024
|
children: [allOptions.map(function (option) {
|
|
18025
|
-
return /*#__PURE__*/React.createElement(Option, _objectSpread$
|
|
18025
|
+
return /*#__PURE__*/React.createElement(Option, _objectSpread$2({
|
|
18026
18026
|
editor: editor,
|
|
18027
18027
|
key: option.optionName
|
|
18028
18028
|
}, option));
|
|
@@ -18161,8 +18161,6 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
18161
18161
|
};
|
|
18162
18162
|
var FontSizeOption$1 = /*#__PURE__*/React.memo(FontSizeOption);
|
|
18163
18163
|
|
|
18164
|
-
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; }
|
|
18165
|
-
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(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; }
|
|
18166
18164
|
var ColorDot = function ColorDot(_ref) {
|
|
18167
18165
|
var _colorVar$match;
|
|
18168
18166
|
var colorVar = _ref.colorVar,
|
|
@@ -18170,53 +18168,24 @@ var ColorDot = function ColorDot(_ref) {
|
|
|
18170
18168
|
onClick = _ref.onClick,
|
|
18171
18169
|
isTextColor = _ref.isTextColor;
|
|
18172
18170
|
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {
|
|
18173
|
-
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected
|
|
18174
|
-
"neeto-editor-highlight-dropdown__color-dot--background": !isTextColor
|
|
18171
|
+
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected
|
|
18175
18172
|
});
|
|
18176
|
-
var dotStyle =
|
|
18177
|
-
color: "var(".concat(colorVar, ")")
|
|
18178
|
-
} : {
|
|
18173
|
+
var dotStyle = {
|
|
18179
18174
|
backgroundColor: "var(".concat(colorVar, ")")
|
|
18180
|
-
}
|
|
18175
|
+
};
|
|
18181
18176
|
var colorNumber = ((_colorVar$match = colorVar.match(/\d+$/)) === null || _colorVar$match === void 0 ? void 0 : _colorVar$match[0]) || colorVar;
|
|
18182
18177
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18183
18178
|
onClick: onClick,
|
|
18184
18179
|
className: dotClass,
|
|
18185
18180
|
style: dotStyle,
|
|
18186
|
-
"data-testid": "neeto-editor-highlight-".concat(utils$1.hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber)
|
|
18187
|
-
children: isTextColor && /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
18188
|
-
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
18189
|
-
style: "body2",
|
|
18190
|
-
weight: "semibold",
|
|
18191
|
-
children: "A"
|
|
18192
|
-
})
|
|
18193
|
-
});
|
|
18194
|
-
};
|
|
18195
|
-
|
|
18196
|
-
var ColorDotIcon = function ColorDotIcon(_ref) {
|
|
18197
|
-
var textColor = _ref.textColor,
|
|
18198
|
-
backgroundColor = _ref.backgroundColor;
|
|
18199
|
-
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {});
|
|
18200
|
-
var dotStyle = {
|
|
18201
|
-
color: "var(".concat(textColor, ")"),
|
|
18202
|
-
backgroundColor: "var(".concat(backgroundColor, ")")
|
|
18203
|
-
};
|
|
18204
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18205
|
-
className: dotClass,
|
|
18206
|
-
style: dotStyle,
|
|
18207
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
18208
|
-
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
18209
|
-
style: "body2",
|
|
18210
|
-
weight: "semibold",
|
|
18211
|
-
children: "A"
|
|
18212
|
-
})
|
|
18181
|
+
"data-testid": "neeto-editor-highlight-".concat(utils$1.hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber)
|
|
18213
18182
|
});
|
|
18214
18183
|
};
|
|
18215
18184
|
|
|
18216
18185
|
var COLORS = {
|
|
18217
18186
|
recent: ["--neeto-editor-highlight-bg-yellow-light"],
|
|
18218
|
-
text: ["--neeto-editor-highlight-text-1", "--neeto-editor-highlight-text-2", "--neeto-editor-highlight-text-3", "--neeto-editor-highlight-text-4", "--neeto-editor-highlight-text-5", "--neeto-editor-highlight-text-6", "--neeto-editor-highlight-text-7", "--neeto-editor-highlight-text-8", "--neeto-editor-highlight-text-9", "--neeto-editor-highlight-text-10"],
|
|
18219
|
-
background: ["--neeto-editor-highlight-bg-1", "--neeto-editor-highlight-bg-2", "--neeto-editor-highlight-bg-3", "--neeto-editor-highlight-bg-4", "--neeto-editor-highlight-bg-5", "--neeto-editor-highlight-bg-6", "--neeto-editor-highlight-bg-7", "--neeto-editor-highlight-bg-8", "--neeto-editor-highlight-bg-9", "--neeto-editor-highlight-bg-10"]
|
|
18187
|
+
text: ["--neeto-editor-highlight-text-1", "--neeto-editor-highlight-text-2", "--neeto-editor-highlight-text-3", "--neeto-editor-highlight-text-4", "--neeto-editor-highlight-text-5", "--neeto-editor-highlight-text-6", "--neeto-editor-highlight-text-7", "--neeto-editor-highlight-text-8", "--neeto-editor-highlight-text-9", "--neeto-editor-highlight-text-10", "--neeto-editor-highlight-text-11", "--neeto-editor-highlight-text-12", "--neeto-editor-highlight-text-13", "--neeto-editor-highlight-text-14", "--neeto-editor-highlight-text-15", "--neeto-editor-highlight-text-16", "--neeto-editor-highlight-text-17", "--neeto-editor-highlight-text-18", "--neeto-editor-highlight-text-19", "--neeto-editor-highlight-text-20", "--neeto-editor-highlight-text-21", "--neeto-editor-highlight-text-22", "--neeto-editor-highlight-text-23", "--neeto-editor-highlight-text-24", "--neeto-editor-highlight-text-25", "--neeto-editor-highlight-text-26", "--neeto-editor-highlight-text-27", "--neeto-editor-highlight-text-28", "--neeto-editor-highlight-text-29"],
|
|
18188
|
+
background: ["--neeto-editor-highlight-bg-1", "--neeto-editor-highlight-bg-2", "--neeto-editor-highlight-bg-3", "--neeto-editor-highlight-bg-4", "--neeto-editor-highlight-bg-5", "--neeto-editor-highlight-bg-6", "--neeto-editor-highlight-bg-7", "--neeto-editor-highlight-bg-8", "--neeto-editor-highlight-bg-9", "--neeto-editor-highlight-bg-10", "--neeto-editor-highlight-bg-11", "--neeto-editor-highlight-bg-12", "--neeto-editor-highlight-bg-13", "--neeto-editor-highlight-bg-14", "--neeto-editor-highlight-bg-15", "--neeto-editor-highlight-bg-16", "--neeto-editor-highlight-bg-17", "--neeto-editor-highlight-bg-18", "--neeto-editor-highlight-bg-19", "--neeto-editor-highlight-bg-20", "--neeto-editor-highlight-bg-21", "--neeto-editor-highlight-bg-22", "--neeto-editor-highlight-bg-23", "--neeto-editor-highlight-bg-24", "--neeto-editor-highlight-bg-25", "--neeto-editor-highlight-bg-26", "--neeto-editor-highlight-bg-27", "--neeto-editor-highlight-bg-28", "--neeto-editor-highlight-bg-29"]
|
|
18220
18189
|
};
|
|
18221
18190
|
|
|
18222
18191
|
var colorSections = [{
|
|
@@ -18279,13 +18248,12 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18279
18248
|
strategy: "fixed",
|
|
18280
18249
|
buttonProps: {
|
|
18281
18250
|
icon: function icon() {
|
|
18282
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
18283
|
-
|
|
18284
|
-
textColor: textColor
|
|
18251
|
+
return /*#__PURE__*/jsxRuntime.jsx(Highlight, {
|
|
18252
|
+
size: 18
|
|
18285
18253
|
});
|
|
18286
18254
|
},
|
|
18287
18255
|
iconPosition: "left",
|
|
18288
|
-
iconSize:
|
|
18256
|
+
iconSize: 16,
|
|
18289
18257
|
label: /*#__PURE__*/jsxRuntime.jsx(Down, {
|
|
18290
18258
|
size: 12
|
|
18291
18259
|
}),
|
|
@@ -18314,7 +18282,7 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18314
18282
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
18315
18283
|
className: "neeto-editor-highlight-dropdown__section-title",
|
|
18316
18284
|
style: "body2",
|
|
18317
|
-
weight: "
|
|
18285
|
+
weight: "medium",
|
|
18318
18286
|
children: title
|
|
18319
18287
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18320
18288
|
className: "neeto-editor-highlight-dropdown__color-grid",
|
|
@@ -18983,4 +18951,4 @@ exports.useEditor = useEditor;
|
|
|
18983
18951
|
exports.useEditorState = useEditorState$1;
|
|
18984
18952
|
exports.validateUrl = validateUrl;
|
|
18985
18953
|
exports.wrappingInputRule = wrappingInputRule;
|
|
18986
|
-
//# sourceMappingURL=chunk-
|
|
18954
|
+
//# sourceMappingURL=chunk-C62Rxbt6.cjs.js.map
|