@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
|
@@ -15633,8 +15633,8 @@ var emojiPickerApi = {
|
|
|
15633
15633
|
fetch: fetch
|
|
15634
15634
|
};
|
|
15635
15635
|
|
|
15636
|
-
function ownKeys$
|
|
15637
|
-
function _objectSpread$
|
|
15636
|
+
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; }
|
|
15637
|
+
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; }
|
|
15638
15638
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15639
15639
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15640
15640
|
var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15687,7 +15687,7 @@ var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
15687
15687
|
return _createClass(EmojiPickerMenu, [{
|
|
15688
15688
|
key: "componentDidMount",
|
|
15689
15689
|
value: function componentDidMount() {
|
|
15690
|
-
new Picker(_objectSpread$
|
|
15690
|
+
new Picker(_objectSpread$b(_objectSpread$b({}, this.props), {}, {
|
|
15691
15691
|
onEmojiSelect: this.handleSelect,
|
|
15692
15692
|
style: {
|
|
15693
15693
|
maxWidth: "100%"
|
|
@@ -15755,8 +15755,8 @@ var useEditorStore = create(withImmutableActions(function (set) {
|
|
|
15755
15755
|
};
|
|
15756
15756
|
}));
|
|
15757
15757
|
|
|
15758
|
-
function ownKeys$
|
|
15759
|
-
function _objectSpread$
|
|
15758
|
+
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; }
|
|
15759
|
+
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; }
|
|
15760
15760
|
var MenuButton = function MenuButton(_ref) {
|
|
15761
15761
|
var icon = _ref.icon,
|
|
15762
15762
|
command = _ref.command,
|
|
@@ -15775,7 +15775,7 @@ var MenuButton = function MenuButton(_ref) {
|
|
|
15775
15775
|
isActive = _useEditorStore.isActive,
|
|
15776
15776
|
_useEditorStore$disab = _useEditorStore.disabled,
|
|
15777
15777
|
disabled = _useEditorStore$disab === void 0 ? isButtonDisabled : _useEditorStore$disab;
|
|
15778
|
-
return /*#__PURE__*/jsx(Button$1, _objectSpread$
|
|
15778
|
+
return /*#__PURE__*/jsx(Button$1, _objectSpread$a({
|
|
15779
15779
|
disabled: disabled,
|
|
15780
15780
|
icon: icon,
|
|
15781
15781
|
className: "neeto-editor-fixed-menu__item",
|
|
@@ -16122,8 +16122,8 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16122
16122
|
});
|
|
16123
16123
|
};
|
|
16124
16124
|
|
|
16125
|
-
function ownKeys$
|
|
16126
|
-
function _objectSpread$
|
|
16125
|
+
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; }
|
|
16126
|
+
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; }
|
|
16127
16127
|
var createMenuOptions$2 = function createMenuOptions(_ref) {
|
|
16128
16128
|
var tooltips = _ref.tooltips,
|
|
16129
16129
|
editor = _ref.editor,
|
|
@@ -16349,7 +16349,7 @@ var renderOptionButton = function renderOptionButton(_ref4) {
|
|
|
16349
16349
|
active = _ref4.active,
|
|
16350
16350
|
optionName = _ref4.optionName,
|
|
16351
16351
|
highlight = _ref4.highlight;
|
|
16352
|
-
return /*#__PURE__*/jsx(Button$1, _objectSpread$
|
|
16352
|
+
return /*#__PURE__*/jsx(Button$1, _objectSpread$9({
|
|
16353
16353
|
className: "neeto-editor-bubble-menu__item",
|
|
16354
16354
|
"data-testid": "neeto-editor-bubble-menu-".concat(optionName, "-option"),
|
|
16355
16355
|
icon: Icon,
|
|
@@ -17285,8 +17285,8 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
17285
17285
|
};
|
|
17286
17286
|
|
|
17287
17287
|
var _excluded$3 = ["type"];
|
|
17288
|
-
function ownKeys$
|
|
17289
|
-
function _objectSpread$
|
|
17288
|
+
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; }
|
|
17289
|
+
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; }
|
|
17290
17290
|
var Menu$3 = Dropdown$1.Menu,
|
|
17291
17291
|
MenuItem$1 = Dropdown$1.MenuItem;
|
|
17292
17292
|
var MoreMenu = function MoreMenu(_ref) {
|
|
@@ -17307,18 +17307,18 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
17307
17307
|
var Component = MENU_ELEMENTS[type];
|
|
17308
17308
|
if (type === MENU_ELEMENT_TYPES.BUTTON) {
|
|
17309
17309
|
var Icon = props.icon;
|
|
17310
|
-
return /*#__PURE__*/jsxs(MenuItem$1.Button, _objectSpread$
|
|
17310
|
+
return /*#__PURE__*/jsxs(MenuItem$1.Button, _objectSpread$8(_objectSpread$8({
|
|
17311
17311
|
"data-testid": "neeto-editor-fixed-menu-".concat(props.optionName, "-option"),
|
|
17312
17312
|
isActive: editor.isActive(props.optionName),
|
|
17313
17313
|
tabIndex: "-1",
|
|
17314
17314
|
onClick: props.command
|
|
17315
|
-
}, _objectSpread$
|
|
17315
|
+
}, _objectSpread$8(_objectSpread$8(_objectSpread$8({}, generateFocusProps(props.highlight)), props), {}, {
|
|
17316
17316
|
editor: editor
|
|
17317
17317
|
})), {}, {
|
|
17318
17318
|
children: [/*#__PURE__*/jsx(Icon, {}), " ", props.label]
|
|
17319
17319
|
}), props.optionName);
|
|
17320
17320
|
}
|
|
17321
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
17321
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$8(_objectSpread$8({}, _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
17322
17322
|
editor: editor
|
|
17323
17323
|
}, generateFocusProps(props.highlight))), {}, {
|
|
17324
17324
|
isSecondaryMenu: true
|
|
@@ -17331,8 +17331,8 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
17331
17331
|
|
|
17332
17332
|
var EDITOR_MARKS = [EDITOR_OPTIONS.UNDO, EDITOR_OPTIONS.REDO, "fontSizeOptions", EDITOR_OPTIONS.BOLD, EDITOR_OPTIONS.ITALIC, EDITOR_OPTIONS.UNDERLINE, EDITOR_OPTIONS.LINK, EDITOR_OPTIONS.STRIKETHROUGH, EDITOR_OPTIONS.HIGHLIGHT, EDITOR_OPTIONS.CALLOUT, "bulletList", "orderedList", "todoList", "blockquote", EDITOR_OPTIONS.CODE, "codeBlock", EDITOR_OPTIONS.TABLE, EDITOR_OPTIONS.ATTACHMENTS, EDITOR_OPTIONS.IMAGE_UPLOAD, EDITOR_OPTIONS.VIDEO_UPLOAD, EDITOR_OPTIONS.TEXT_COLOR, EDITOR_OPTIONS.EMOJI, EDITOR_OPTIONS.NEETO_KB_ARTICLE, "mentions"];
|
|
17333
17333
|
|
|
17334
|
-
function ownKeys$
|
|
17335
|
-
function _objectSpread$
|
|
17334
|
+
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; }
|
|
17335
|
+
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; }
|
|
17336
17336
|
var useEditorState = function useEditorState(_ref) {
|
|
17337
17337
|
var editor = _ref.editor,
|
|
17338
17338
|
neetoKbArticleState = _ref.neetoKbArticleState;
|
|
@@ -17375,7 +17375,7 @@ var useEditorState = function useEditorState(_ref) {
|
|
|
17375
17375
|
var redoOptionState = {
|
|
17376
17376
|
disabled: !editor.can().redo()
|
|
17377
17377
|
};
|
|
17378
|
-
var updatedMarksState = _objectSpread$
|
|
17378
|
+
var updatedMarksState = _objectSpread$7(_objectSpread$7({}, marksState), {}, _defineProperty(_defineProperty({}, EDITOR_OPTIONS.UNDO, undoOptionState), EDITOR_OPTIONS.REDO, redoOptionState));
|
|
17379
17379
|
setMarksState(updatedMarksState);
|
|
17380
17380
|
}, [marksState, setMarksState]);
|
|
17381
17381
|
useEffect(function () {
|
|
@@ -17445,8 +17445,8 @@ var MenuDynamicVariables = function MenuDynamicVariables(_ref) {
|
|
|
17445
17445
|
};
|
|
17446
17446
|
|
|
17447
17447
|
var _excluded$2 = ["type"];
|
|
17448
|
-
function ownKeys$
|
|
17449
|
-
function _objectSpread$
|
|
17448
|
+
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; }
|
|
17449
|
+
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; }
|
|
17450
17450
|
var Fixed = function Fixed(_ref) {
|
|
17451
17451
|
var editor = _ref.editor,
|
|
17452
17452
|
options = _ref.options,
|
|
@@ -17581,7 +17581,7 @@ var Fixed = function Fixed(_ref) {
|
|
|
17581
17581
|
props = _objectWithoutProperties(_ref2, _excluded$2);
|
|
17582
17582
|
var Component = MENU_ELEMENTS[type];
|
|
17583
17583
|
if (!Component) return null;
|
|
17584
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
17584
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$6({}, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
17585
17585
|
editor: editor,
|
|
17586
17586
|
options: options
|
|
17587
17587
|
})), props.optionName);
|
|
@@ -17612,8 +17612,8 @@ var Fixed = function Fixed(_ref) {
|
|
|
17612
17612
|
};
|
|
17613
17613
|
|
|
17614
17614
|
var _excluded$1 = ["icon", "onClick", "disabled", "className", "tooltipProps"];
|
|
17615
|
-
function ownKeys$
|
|
17616
|
-
function _objectSpread$
|
|
17615
|
+
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; }
|
|
17616
|
+
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; }
|
|
17617
17617
|
var Button = function Button(_ref) {
|
|
17618
17618
|
var _ref$icon = _ref.icon,
|
|
17619
17619
|
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
@@ -17625,16 +17625,16 @@ var Button = function Button(_ref) {
|
|
|
17625
17625
|
tooltipProps = _ref.tooltipProps,
|
|
17626
17626
|
otherProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
17627
17627
|
var Icon = icon;
|
|
17628
|
-
return /*#__PURE__*/jsx(Tooltip, _objectSpread$
|
|
17628
|
+
return /*#__PURE__*/jsx(Tooltip, _objectSpread$5(_objectSpread$5({
|
|
17629
17629
|
disabled: !tooltipProps,
|
|
17630
17630
|
onClick: function onClick() {
|
|
17631
17631
|
return _onClick();
|
|
17632
17632
|
}
|
|
17633
17633
|
}, tooltipProps), {}, {
|
|
17634
|
-
children: /*#__PURE__*/jsx("button", _objectSpread$
|
|
17634
|
+
children: /*#__PURE__*/jsx("button", _objectSpread$5(_objectSpread$5({
|
|
17635
17635
|
className: classnames("ne-headless-btn", _defineProperty({}, className, className)),
|
|
17636
17636
|
type: "button"
|
|
17637
|
-
}, _objectSpread$
|
|
17637
|
+
}, _objectSpread$5({
|
|
17638
17638
|
disabled: disabled,
|
|
17639
17639
|
onClick: _onClick
|
|
17640
17640
|
}, otherProps)), {}, {
|
|
@@ -17647,8 +17647,8 @@ var Button = function Button(_ref) {
|
|
|
17647
17647
|
};
|
|
17648
17648
|
|
|
17649
17649
|
var _excluded = ["icon", "isOpen", "onClose", "children", "className", "onClick", "buttonProps"];
|
|
17650
|
-
function ownKeys$
|
|
17651
|
-
function _objectSpread$
|
|
17650
|
+
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; }
|
|
17651
|
+
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; }
|
|
17652
17652
|
var hideOnEsc = {
|
|
17653
17653
|
name: "hideOnEsc",
|
|
17654
17654
|
defaultValue: true,
|
|
@@ -17687,7 +17687,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
17687
17687
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17688
17688
|
mounted = _useState2[0],
|
|
17689
17689
|
setMounted = _useState2[1];
|
|
17690
|
-
return /*#__PURE__*/jsx(Tippy, _objectSpread$
|
|
17690
|
+
return /*#__PURE__*/jsx(Tippy, _objectSpread$4(_objectSpread$4({
|
|
17691
17691
|
onClose: onClose,
|
|
17692
17692
|
hideOnEsc: true,
|
|
17693
17693
|
interactive: true,
|
|
@@ -17719,7 +17719,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
17719
17719
|
}
|
|
17720
17720
|
}, otherProps), {}, {
|
|
17721
17721
|
children: /*#__PURE__*/jsx("span", {
|
|
17722
|
-
children: /*#__PURE__*/jsx(Button, _objectSpread$
|
|
17722
|
+
children: /*#__PURE__*/jsx(Button, _objectSpread$4({}, _objectSpread$4({
|
|
17723
17723
|
icon: icon,
|
|
17724
17724
|
onClick: onClick
|
|
17725
17725
|
}, buttonProps)))
|
|
@@ -17792,8 +17792,8 @@ var Option = function Option(_ref) {
|
|
|
17792
17792
|
});
|
|
17793
17793
|
};
|
|
17794
17794
|
|
|
17795
|
-
function ownKeys$
|
|
17796
|
-
function _objectSpread$
|
|
17795
|
+
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; }
|
|
17796
|
+
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; }
|
|
17797
17797
|
var t = i18n.t;
|
|
17798
17798
|
var createMenuOptions$1 = function createMenuOptions(_ref) {
|
|
17799
17799
|
var editor = _ref.editor,
|
|
@@ -17944,7 +17944,7 @@ var buildOptionsFromAddonCommands$1 = function buildOptionsFromAddonCommands(_re
|
|
|
17944
17944
|
var to = editor.state.selection.to;
|
|
17945
17945
|
return commands.map(function (option) {
|
|
17946
17946
|
var _option$active;
|
|
17947
|
-
return _objectSpread$
|
|
17947
|
+
return _objectSpread$3(_objectSpread$3({}, option), {}, {
|
|
17948
17948
|
active: (_option$active = option.active) === null || _option$active === void 0 ? void 0 : _option$active.call(option, {
|
|
17949
17949
|
editor: editor
|
|
17950
17950
|
}),
|
|
@@ -17984,8 +17984,8 @@ var buildMenuOptions$1 = function buildMenuOptions(_ref3) {
|
|
|
17984
17984
|
}).filter(Boolean);
|
|
17985
17985
|
};
|
|
17986
17986
|
|
|
17987
|
-
function ownKeys$
|
|
17988
|
-
function _objectSpread$
|
|
17987
|
+
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; }
|
|
17988
|
+
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; }
|
|
17989
17989
|
var Headless = function Headless(_ref) {
|
|
17990
17990
|
var editor = _ref.editor,
|
|
17991
17991
|
options = _ref.options,
|
|
@@ -18020,7 +18020,7 @@ var Headless = function Headless(_ref) {
|
|
|
18020
18020
|
return /*#__PURE__*/jsxs("div", {
|
|
18021
18021
|
className: classnames("ne-headless", _defineProperty({}, className, className)),
|
|
18022
18022
|
children: [allOptions.map(function (option) {
|
|
18023
|
-
return /*#__PURE__*/createElement(Option, _objectSpread$
|
|
18023
|
+
return /*#__PURE__*/createElement(Option, _objectSpread$2({
|
|
18024
18024
|
editor: editor,
|
|
18025
18025
|
key: option.optionName
|
|
18026
18026
|
}, option));
|
|
@@ -18159,8 +18159,6 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
18159
18159
|
};
|
|
18160
18160
|
var FontSizeOption$1 = /*#__PURE__*/memo(FontSizeOption);
|
|
18161
18161
|
|
|
18162
|
-
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; }
|
|
18163
|
-
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; }
|
|
18164
18162
|
var ColorDot = function ColorDot(_ref) {
|
|
18165
18163
|
var _colorVar$match;
|
|
18166
18164
|
var colorVar = _ref.colorVar,
|
|
@@ -18168,53 +18166,24 @@ var ColorDot = function ColorDot(_ref) {
|
|
|
18168
18166
|
onClick = _ref.onClick,
|
|
18169
18167
|
isTextColor = _ref.isTextColor;
|
|
18170
18168
|
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {
|
|
18171
|
-
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected
|
|
18172
|
-
"neeto-editor-highlight-dropdown__color-dot--background": !isTextColor
|
|
18169
|
+
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected
|
|
18173
18170
|
});
|
|
18174
|
-
var dotStyle =
|
|
18175
|
-
color: "var(".concat(colorVar, ")")
|
|
18176
|
-
} : {
|
|
18171
|
+
var dotStyle = {
|
|
18177
18172
|
backgroundColor: "var(".concat(colorVar, ")")
|
|
18178
|
-
}
|
|
18173
|
+
};
|
|
18179
18174
|
var colorNumber = ((_colorVar$match = colorVar.match(/\d+$/)) === null || _colorVar$match === void 0 ? void 0 : _colorVar$match[0]) || colorVar;
|
|
18180
18175
|
return /*#__PURE__*/jsx("div", {
|
|
18181
18176
|
onClick: onClick,
|
|
18182
18177
|
className: dotClass,
|
|
18183
18178
|
style: dotStyle,
|
|
18184
|
-
"data-testid": "neeto-editor-highlight-".concat(hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber)
|
|
18185
|
-
children: isTextColor && /*#__PURE__*/jsx(Typography, {
|
|
18186
|
-
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
18187
|
-
style: "body2",
|
|
18188
|
-
weight: "semibold",
|
|
18189
|
-
children: "A"
|
|
18190
|
-
})
|
|
18191
|
-
});
|
|
18192
|
-
};
|
|
18193
|
-
|
|
18194
|
-
var ColorDotIcon = function ColorDotIcon(_ref) {
|
|
18195
|
-
var textColor = _ref.textColor,
|
|
18196
|
-
backgroundColor = _ref.backgroundColor;
|
|
18197
|
-
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {});
|
|
18198
|
-
var dotStyle = {
|
|
18199
|
-
color: "var(".concat(textColor, ")"),
|
|
18200
|
-
backgroundColor: "var(".concat(backgroundColor, ")")
|
|
18201
|
-
};
|
|
18202
|
-
return /*#__PURE__*/jsx("div", {
|
|
18203
|
-
className: dotClass,
|
|
18204
|
-
style: dotStyle,
|
|
18205
|
-
children: /*#__PURE__*/jsx(Typography, {
|
|
18206
|
-
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
18207
|
-
style: "body2",
|
|
18208
|
-
weight: "semibold",
|
|
18209
|
-
children: "A"
|
|
18210
|
-
})
|
|
18179
|
+
"data-testid": "neeto-editor-highlight-".concat(hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber)
|
|
18211
18180
|
});
|
|
18212
18181
|
};
|
|
18213
18182
|
|
|
18214
18183
|
var COLORS = {
|
|
18215
18184
|
recent: ["--neeto-editor-highlight-bg-yellow-light"],
|
|
18216
|
-
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"],
|
|
18217
|
-
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"]
|
|
18185
|
+
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"],
|
|
18186
|
+
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"]
|
|
18218
18187
|
};
|
|
18219
18188
|
|
|
18220
18189
|
var colorSections = [{
|
|
@@ -18277,13 +18246,12 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18277
18246
|
strategy: "fixed",
|
|
18278
18247
|
buttonProps: {
|
|
18279
18248
|
icon: function icon() {
|
|
18280
|
-
return /*#__PURE__*/jsx(
|
|
18281
|
-
|
|
18282
|
-
textColor: textColor
|
|
18249
|
+
return /*#__PURE__*/jsx(Highlight, {
|
|
18250
|
+
size: 18
|
|
18283
18251
|
});
|
|
18284
18252
|
},
|
|
18285
18253
|
iconPosition: "left",
|
|
18286
|
-
iconSize:
|
|
18254
|
+
iconSize: 16,
|
|
18287
18255
|
label: /*#__PURE__*/jsx(Down, {
|
|
18288
18256
|
size: 12
|
|
18289
18257
|
}),
|
|
@@ -18312,7 +18280,7 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18312
18280
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
18313
18281
|
className: "neeto-editor-highlight-dropdown__section-title",
|
|
18314
18282
|
style: "body2",
|
|
18315
|
-
weight: "
|
|
18283
|
+
weight: "medium",
|
|
18316
18284
|
children: title
|
|
18317
18285
|
}), /*#__PURE__*/jsx("div", {
|
|
18318
18286
|
className: "neeto-editor-highlight-dropdown__color-grid",
|
|
@@ -18929,4 +18897,4 @@ var Menu = function Menu(props) {
|
|
|
18929
18897
|
};
|
|
18930
18898
|
|
|
18931
18899
|
export { getChangedRanges as A, findChildrenInRange as B, CALLOUT_TYPES as C, DecorationSet as D, Extension as E, getMarksBetween as F, getAttributes as G, highlightFocussedNode as H, InputRule as I, resetFocussedNode as J, findParentNodeClosestToPos as K, validateUrl as L, Menu as M, Node as N, BubbleMenu as O, PasteRule as P, getLinkPopoverPosition as Q, ReactNodeViewRenderer as R, getMarkType as S, getMarkRange as T, useEditor as U, useEditorState$1 as V, MenuDynamicVariables as W, EditorContent as X, MediaUploader as Y, LinkAddPopOver as Z, EditorView as _, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, callOrReturn as e, getExtensionField as f, getMarkAttributes as g, getNodeType as h, isNodeSelection as i, getNodeAtPosition as j, keydownHandler as k, isNodeActive as l, mergeAttributes as m, nodeInputRule as n, isAtStartOfNode as o, isAtEndOfNode as p, NodeViewWrapper as q, NodeViewContent as r, findChildren as s, textblockTypeInputRule as t, escapeForRegEx as u, ReactRenderer as v, wrappingInputRule as w, EmojiPickerMenu as x, emojiPickerApi as y, combineTransactionSteps as z };
|
|
18932
|
-
//# sourceMappingURL=chunk-
|
|
18900
|
+
//# sourceMappingURL=chunk-DTahQyel.js.map
|