@bigbinary/neeto-editor 1.47.0 → 1.47.2
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/Editor.js.map +1 -1
- package/dist/EditorContent.js +2 -2
- package/dist/EditorContent.js.map +1 -1
- package/dist/FormikEditor.js +2 -2
- package/dist/Menu.js +2 -2
- package/dist/{chunk-BWTtXW7N.js → chunk-BQ6gyl4W.js} +276 -97
- package/dist/chunk-BQ6gyl4W.js.map +1 -0
- package/dist/{chunk-BsDiILIW.js → chunk-LYwOO_bQ.js} +6 -2
- package/dist/{chunk-BsDiILIW.js.map → chunk-LYwOO_bQ.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +2 -2
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +2 -2
- package/dist/cjs/EditorContent.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +2 -2
- package/dist/cjs/Menu.cjs.js +2 -2
- package/dist/cjs/{chunk-DutgnIWp.cjs.js → chunk-BxEO1Xq_.cjs.js} +276 -97
- package/dist/cjs/chunk-BxEO1Xq_.cjs.js.map +1 -0
- package/dist/cjs/{chunk-W-ChuMj0.cjs.js → chunk-Dlwo4bBb.cjs.js} +6 -1
- package/dist/cjs/{chunk-W-ChuMj0.cjs.js.map → chunk-Dlwo4bBb.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +4 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/utils.cjs.js +1 -1
- package/dist/editor-stats.html +19 -1
- package/dist/index.js +3 -3
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +2 -0
- package/dist/chunk-BWTtXW7N.js.map +0 -1
- package/dist/cjs/chunk-DutgnIWp.cjs.js.map +0 -1
|
@@ -20,6 +20,7 @@ import { hyphenate, isNotPresent, noop, isNotEmpty, findBy, filterBy } from '@bi
|
|
|
20
20
|
import 'tippy.js/dist/svg-arrow.css';
|
|
21
21
|
import Link from '@bigbinary/neeto-icons/Link';
|
|
22
22
|
import Column from '@bigbinary/neeto-icons/Column';
|
|
23
|
+
import Down from '@bigbinary/neeto-icons/Down';
|
|
23
24
|
import Dropdown$1 from '@bigbinary/neetoui/Dropdown';
|
|
24
25
|
import { useTranslation } from 'react-i18next';
|
|
25
26
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
@@ -73,7 +74,6 @@ import { a as getAugmentedNamespace } from './chunk-E-ZsRS8r.js';
|
|
|
73
74
|
import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
74
75
|
import { shallow } from 'zustand/shallow';
|
|
75
76
|
import { create } from 'zustand';
|
|
76
|
-
import Down from '@bigbinary/neeto-icons/Down';
|
|
77
77
|
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
78
78
|
import Tippy from '@tippyjs/react';
|
|
79
79
|
import File$1 from '@bigbinary/neeto-icons/File';
|
|
@@ -9992,7 +9992,7 @@ function getAttributesFromExtensions(extensions) {
|
|
|
9992
9992
|
return extensionAttributes;
|
|
9993
9993
|
}
|
|
9994
9994
|
|
|
9995
|
-
function getNodeType
|
|
9995
|
+
function getNodeType(nameOrType, schema) {
|
|
9996
9996
|
if (typeof nameOrType === 'string') {
|
|
9997
9997
|
if (!schema.nodes[nameOrType]) {
|
|
9998
9998
|
throw Error(`There is no node type named '${nameOrType}'. Maybe you forgot to add the extension?`);
|
|
@@ -10845,7 +10845,7 @@ class ExtensionManager {
|
|
|
10845
10845
|
options: extension.options,
|
|
10846
10846
|
storage: extension.storage,
|
|
10847
10847
|
editor,
|
|
10848
|
-
type: getNodeType
|
|
10848
|
+
type: getNodeType(extension.name, this.schema),
|
|
10849
10849
|
};
|
|
10850
10850
|
const addNodeView = getExtensionField(extension, 'addNodeView', context);
|
|
10851
10851
|
if (!addNodeView) {
|
|
@@ -11192,7 +11192,7 @@ const deleteCurrentNode = () => ({ tr, dispatch }) => {
|
|
|
11192
11192
|
};
|
|
11193
11193
|
|
|
11194
11194
|
const deleteNode = typeOrName => ({ tr, state, dispatch }) => {
|
|
11195
|
-
const type = getNodeType
|
|
11195
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
11196
11196
|
const $pos = tr.selection.$anchor;
|
|
11197
11197
|
for (let depth = $pos.depth; depth > 0; depth -= 1) {
|
|
11198
11198
|
const node = $pos.node(depth);
|
|
@@ -11780,7 +11780,7 @@ const keyboardShortcut = name => ({ editor, view, tr, dispatch, }) => {
|
|
|
11780
11780
|
|
|
11781
11781
|
function isNodeActive(state, typeOrName, attributes = {}) {
|
|
11782
11782
|
const { from, to, empty } = state.selection;
|
|
11783
|
-
const type = typeOrName ? getNodeType
|
|
11783
|
+
const type = typeOrName ? getNodeType(typeOrName, state.schema) : null;
|
|
11784
11784
|
const nodeRanges = [];
|
|
11785
11785
|
state.doc.nodesBetween(from, to, (node, pos) => {
|
|
11786
11786
|
if (node.isText) {
|
|
@@ -11811,7 +11811,7 @@ function isNodeActive(state, typeOrName, attributes = {}) {
|
|
|
11811
11811
|
}
|
|
11812
11812
|
|
|
11813
11813
|
const lift = (typeOrName, attributes = {}) => ({ state, dispatch }) => {
|
|
11814
|
-
const type = getNodeType
|
|
11814
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
11815
11815
|
const isActive = isNodeActive(state, type, attributes);
|
|
11816
11816
|
if (!isActive) {
|
|
11817
11817
|
return false;
|
|
@@ -11824,7 +11824,7 @@ const liftEmptyBlock = () => ({ state, dispatch }) => {
|
|
|
11824
11824
|
};
|
|
11825
11825
|
|
|
11826
11826
|
const liftListItem = typeOrName => ({ state, dispatch }) => {
|
|
11827
|
-
const type = getNodeType
|
|
11827
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
11828
11828
|
return liftListItem$1(type)(state, dispatch);
|
|
11829
11829
|
};
|
|
11830
11830
|
|
|
@@ -11875,7 +11875,7 @@ const resetAttributes = (typeOrName, attributes) => ({ tr, state, dispatch }) =>
|
|
|
11875
11875
|
return false;
|
|
11876
11876
|
}
|
|
11877
11877
|
if (schemaType === 'node') {
|
|
11878
|
-
nodeType = getNodeType
|
|
11878
|
+
nodeType = getNodeType(typeOrName, state.schema);
|
|
11879
11879
|
}
|
|
11880
11880
|
if (schemaType === 'mark') {
|
|
11881
11881
|
markType = getMarkType(typeOrName, state.schema);
|
|
@@ -12137,7 +12137,7 @@ function getText(node, options) {
|
|
|
12137
12137
|
}
|
|
12138
12138
|
|
|
12139
12139
|
function getNodeAttributes(state, typeOrName) {
|
|
12140
|
-
const type = getNodeType
|
|
12140
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12141
12141
|
const { from, to } = state.selection;
|
|
12142
12142
|
const nodes = [];
|
|
12143
12143
|
state.doc.nodesBetween(from, to, node => {
|
|
@@ -12600,7 +12600,7 @@ const setMeta = (key, value) => ({ tr }) => {
|
|
|
12600
12600
|
};
|
|
12601
12601
|
|
|
12602
12602
|
const setNode = (typeOrName, attributes = {}) => ({ state, dispatch, chain }) => {
|
|
12603
|
-
const type = getNodeType
|
|
12603
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12604
12604
|
// TODO: use a fallback like insertContent?
|
|
12605
12605
|
if (!type.isTextblock) {
|
|
12606
12606
|
console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.');
|
|
@@ -12646,7 +12646,7 @@ const setTextSelection = position => ({ tr, dispatch }) => {
|
|
|
12646
12646
|
};
|
|
12647
12647
|
|
|
12648
12648
|
const sinkListItem = typeOrName => ({ state, dispatch }) => {
|
|
12649
|
-
const type = getNodeType
|
|
12649
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12650
12650
|
return sinkListItem$1(type)(state, dispatch);
|
|
12651
12651
|
};
|
|
12652
12652
|
|
|
@@ -12727,7 +12727,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr, state, dispatch, editor
|
|
|
12727
12727
|
|
|
12728
12728
|
const splitListItem = (typeOrName, overrideAttrs = {}) => ({ tr, state, dispatch, editor, }) => {
|
|
12729
12729
|
var _a;
|
|
12730
|
-
const type = getNodeType
|
|
12730
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12731
12731
|
const { $from, $to } = state.selection;
|
|
12732
12732
|
// @ts-ignore
|
|
12733
12733
|
// eslint-disable-next-line
|
|
@@ -12854,8 +12854,8 @@ const joinListForwards = (tr, listType) => {
|
|
|
12854
12854
|
};
|
|
12855
12855
|
const toggleList = (listTypeOrName, itemTypeOrName, keepMarks, attributes = {}) => ({ editor, tr, state, dispatch, chain, commands, can, }) => {
|
|
12856
12856
|
const { extensions, splittableMarks } = editor.extensionManager;
|
|
12857
|
-
const listType = getNodeType
|
|
12858
|
-
const itemType = getNodeType
|
|
12857
|
+
const listType = getNodeType(listTypeOrName, state.schema);
|
|
12858
|
+
const itemType = getNodeType(itemTypeOrName, state.schema);
|
|
12859
12859
|
const { selection, storedMarks } = state;
|
|
12860
12860
|
const { $from, $to } = selection;
|
|
12861
12861
|
const range = $from.blockRange($to);
|
|
@@ -12926,8 +12926,8 @@ const toggleMark = (typeOrName, attributes = {}, options = {}) => ({ state, comm
|
|
|
12926
12926
|
};
|
|
12927
12927
|
|
|
12928
12928
|
const toggleNode = (typeOrName, toggleTypeOrName, attributes = {}) => ({ state, commands }) => {
|
|
12929
|
-
const type = getNodeType
|
|
12930
|
-
const toggleType = getNodeType
|
|
12929
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12930
|
+
const toggleType = getNodeType(toggleTypeOrName, state.schema);
|
|
12931
12931
|
const isActive = isNodeActive(state, type, attributes);
|
|
12932
12932
|
if (isActive) {
|
|
12933
12933
|
return commands.setNode(toggleType);
|
|
@@ -12936,7 +12936,7 @@ const toggleNode = (typeOrName, toggleTypeOrName, attributes = {}) => ({ state,
|
|
|
12936
12936
|
};
|
|
12937
12937
|
|
|
12938
12938
|
const toggleWrap = (typeOrName, attributes = {}) => ({ state, commands }) => {
|
|
12939
|
-
const type = getNodeType
|
|
12939
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12940
12940
|
const isActive = isNodeActive(state, type, attributes);
|
|
12941
12941
|
if (isActive) {
|
|
12942
12942
|
return commands.lift(type);
|
|
@@ -13022,7 +13022,7 @@ const updateAttributes = (typeOrName, attributes = {}) => ({ tr, state, dispatch
|
|
|
13022
13022
|
return false;
|
|
13023
13023
|
}
|
|
13024
13024
|
if (schemaType === 'node') {
|
|
13025
|
-
nodeType = getNodeType
|
|
13025
|
+
nodeType = getNodeType(typeOrName, state.schema);
|
|
13026
13026
|
}
|
|
13027
13027
|
if (schemaType === 'mark') {
|
|
13028
13028
|
markType = getMarkType(typeOrName, state.schema);
|
|
@@ -13057,12 +13057,12 @@ const updateAttributes = (typeOrName, attributes = {}) => ({ tr, state, dispatch
|
|
|
13057
13057
|
};
|
|
13058
13058
|
|
|
13059
13059
|
const wrapIn = (typeOrName, attributes = {}) => ({ state, dispatch }) => {
|
|
13060
|
-
const type = getNodeType
|
|
13060
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
13061
13061
|
return wrapIn$1(type, attributes)(state, dispatch);
|
|
13062
13062
|
};
|
|
13063
13063
|
|
|
13064
13064
|
const wrapInList = (typeOrName, attributes = {}) => ({ state, dispatch }) => {
|
|
13065
|
-
const type = getNodeType
|
|
13065
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
13066
13066
|
return wrapInList$1(type, attributes)(state, dispatch);
|
|
13067
13067
|
};
|
|
13068
13068
|
|
|
@@ -15699,8 +15699,8 @@ var emojiPickerApi = {
|
|
|
15699
15699
|
fetch: fetch
|
|
15700
15700
|
};
|
|
15701
15701
|
|
|
15702
|
-
function ownKeys$
|
|
15703
|
-
function _objectSpread$
|
|
15702
|
+
function ownKeys$c(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; }
|
|
15703
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15704
15704
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15705
15705
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15706
15706
|
var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15752,7 +15752,7 @@ var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
15752
15752
|
return _createClass$1(EmojiPickerMenu, [{
|
|
15753
15753
|
key: "componentDidMount",
|
|
15754
15754
|
value: function componentDidMount() {
|
|
15755
|
-
new Picker(_objectSpread$
|
|
15755
|
+
new Picker(_objectSpread$c(_objectSpread$c({}, this.props), {}, {
|
|
15756
15756
|
onEmojiSelect: this.handleSelect,
|
|
15757
15757
|
style: {
|
|
15758
15758
|
maxWidth: "100%"
|
|
@@ -15810,8 +15810,8 @@ var useEditorStore = create(withImmutableActions(function (set) {
|
|
|
15810
15810
|
};
|
|
15811
15811
|
}));
|
|
15812
15812
|
|
|
15813
|
-
function ownKeys$
|
|
15814
|
-
function _objectSpread$
|
|
15813
|
+
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; }
|
|
15814
|
+
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; }
|
|
15815
15815
|
var MenuButton = function MenuButton(_ref) {
|
|
15816
15816
|
var icon = _ref.icon,
|
|
15817
15817
|
command = _ref.command,
|
|
@@ -15830,7 +15830,7 @@ var MenuButton = function MenuButton(_ref) {
|
|
|
15830
15830
|
isActive = _useEditorStore.isActive,
|
|
15831
15831
|
_useEditorStore$disab = _useEditorStore.disabled,
|
|
15832
15832
|
disabled = _useEditorStore$disab === void 0 ? isButtonDisabled : _useEditorStore$disab;
|
|
15833
|
-
return /*#__PURE__*/jsx(Button$1, _objectSpread$
|
|
15833
|
+
return /*#__PURE__*/jsx(Button$1, _objectSpread$b({
|
|
15834
15834
|
disabled: disabled,
|
|
15835
15835
|
icon: icon,
|
|
15836
15836
|
className: "neeto-editor-fixed-menu__item",
|
|
@@ -16006,7 +16006,6 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16006
16006
|
autoFocus: true,
|
|
16007
16007
|
"data-cy": "neeto-editor-fixed-menu-table-option-input",
|
|
16008
16008
|
min: "1",
|
|
16009
|
-
placeholder: t("neetoEditor.placeholders.rows"),
|
|
16010
16009
|
type: "number",
|
|
16011
16010
|
value: rows,
|
|
16012
16011
|
onChange: withEventTargetValue(setRows)
|
|
@@ -16019,7 +16018,6 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16019
16018
|
}), /*#__PURE__*/jsx("input", {
|
|
16020
16019
|
"data-cy": "neeto-editor-bubble-menu-table-option-input",
|
|
16021
16020
|
min: "1",
|
|
16022
|
-
placeholder: t("neetoEditor.placeholders.columns"),
|
|
16023
16021
|
type: "number",
|
|
16024
16022
|
value: columns,
|
|
16025
16023
|
onChange: withEventTargetValue(setColumns)
|
|
@@ -16029,11 +16027,13 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16029
16027
|
children: [/*#__PURE__*/jsx(Button$1, {
|
|
16030
16028
|
"data-cy": "neeto-editor-bubble-menu-table-option-create-button",
|
|
16031
16029
|
icon: Check,
|
|
16030
|
+
size: "small",
|
|
16032
16031
|
style: "secondary",
|
|
16033
16032
|
onClick: handleSubmit
|
|
16034
16033
|
}), /*#__PURE__*/jsx(Button$1, {
|
|
16035
16034
|
"data-cy": "neeto-editor-bubble-menu-table-option-create-button",
|
|
16036
16035
|
icon: Close,
|
|
16036
|
+
size: "small",
|
|
16037
16037
|
style: "secondary",
|
|
16038
16038
|
onClick: handleClose
|
|
16039
16039
|
})]
|
|
@@ -16041,8 +16041,8 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16041
16041
|
});
|
|
16042
16042
|
};
|
|
16043
16043
|
|
|
16044
|
-
function ownKeys$
|
|
16045
|
-
function _objectSpread$
|
|
16044
|
+
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; }
|
|
16045
|
+
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; }
|
|
16046
16046
|
var createMenuOptions$2 = function createMenuOptions(_ref) {
|
|
16047
16047
|
var tooltips = _ref.tooltips,
|
|
16048
16048
|
editor = _ref.editor,
|
|
@@ -16219,8 +16219,9 @@ var buildBubbleMenuOptions = function buildBubbleMenuOptions(_ref2) {
|
|
|
16219
16219
|
var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
16220
16220
|
var editor = _ref3.editor,
|
|
16221
16221
|
options = _ref3.options;
|
|
16222
|
-
var textOptions = _defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
16222
|
+
var textOptions = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EDITOR_OPTIONS.H1, {
|
|
16223
16223
|
optionName: "Heading 1",
|
|
16224
|
+
icon: TextH1,
|
|
16224
16225
|
active: editor.isActive("heading", {
|
|
16225
16226
|
level: 1
|
|
16226
16227
|
}),
|
|
@@ -16231,6 +16232,7 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16231
16232
|
}
|
|
16232
16233
|
}), EDITOR_OPTIONS.H2, {
|
|
16233
16234
|
optionName: "Heading 2",
|
|
16235
|
+
icon: TextH2,
|
|
16234
16236
|
active: editor.isActive("heading", {
|
|
16235
16237
|
level: 2
|
|
16236
16238
|
}),
|
|
@@ -16241,6 +16243,7 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16241
16243
|
}
|
|
16242
16244
|
}), EDITOR_OPTIONS.H3, {
|
|
16243
16245
|
optionName: "Heading 3",
|
|
16246
|
+
icon: TextH3,
|
|
16244
16247
|
active: editor.isActive("heading", {
|
|
16245
16248
|
level: 3
|
|
16246
16249
|
}),
|
|
@@ -16249,20 +16252,9 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16249
16252
|
level: 3
|
|
16250
16253
|
}).run();
|
|
16251
16254
|
}
|
|
16252
|
-
}), EDITOR_OPTIONS.LIST_ORDERED, {
|
|
16253
|
-
optionName: "Ordered List",
|
|
16254
|
-
active: editor.isActive("orderedList"),
|
|
16255
|
-
command: function command() {
|
|
16256
|
-
return editor.chain().focus().toggleOrderedList().run();
|
|
16257
|
-
}
|
|
16258
|
-
}), EDITOR_OPTIONS.LIST_BULLETS, {
|
|
16259
|
-
optionName: "Bulleted List",
|
|
16260
|
-
active: editor.isActive("bulletList"),
|
|
16261
|
-
command: function command() {
|
|
16262
|
-
return editor.chain().focus().toggleBulletList().run();
|
|
16263
|
-
}
|
|
16264
16255
|
}), EDITOR_OPTIONS.PARAGRAPH, {
|
|
16265
16256
|
optionName: "Text",
|
|
16257
|
+
icon: TextP,
|
|
16266
16258
|
active: editor.isActive("paragraph"),
|
|
16267
16259
|
command: function command() {
|
|
16268
16260
|
return editor.chain().focus().setNode("paragraph").run();
|
|
@@ -16275,9 +16267,9 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16275
16267
|
});
|
|
16276
16268
|
return result;
|
|
16277
16269
|
};
|
|
16278
|
-
var
|
|
16270
|
+
var getNodeIcon = function getNodeIcon(options) {
|
|
16279
16271
|
var _options$find;
|
|
16280
|
-
return ((_options$find = options.find(prop("active"))) === null || _options$find === void 0 ? void 0 : _options$find.
|
|
16272
|
+
return ((_options$find = options.find(prop("active"))) === null || _options$find === void 0 ? void 0 : _options$find.icon) || TextP;
|
|
16281
16273
|
};
|
|
16282
16274
|
var renderOptionButton = function renderOptionButton(_ref4) {
|
|
16283
16275
|
var tooltip = _ref4.tooltip,
|
|
@@ -16286,16 +16278,16 @@ var renderOptionButton = function renderOptionButton(_ref4) {
|
|
|
16286
16278
|
active = _ref4.active,
|
|
16287
16279
|
optionName = _ref4.optionName,
|
|
16288
16280
|
highlight = _ref4.highlight;
|
|
16289
|
-
return /*#__PURE__*/jsx(Button$1, _objectSpread$
|
|
16281
|
+
return /*#__PURE__*/jsx(Button$1, _objectSpread$a({
|
|
16282
|
+
className: "neeto-editor-bubble-menu__item",
|
|
16290
16283
|
"data-cy": "neeto-editor-bubble-menu-".concat(optionName, "-option"),
|
|
16291
16284
|
icon: Icon,
|
|
16292
|
-
size: "
|
|
16285
|
+
size: "medium",
|
|
16293
16286
|
style: active ? "secondary" : "text",
|
|
16294
16287
|
tooltipProps: {
|
|
16295
16288
|
content: tooltip,
|
|
16296
16289
|
position: "bottom",
|
|
16297
|
-
theme: "dark"
|
|
16298
|
-
delay: [500]
|
|
16290
|
+
theme: "dark"
|
|
16299
16291
|
},
|
|
16300
16292
|
onClick: command
|
|
16301
16293
|
}, generateFocusProps(highlight)), optionName);
|
|
@@ -16409,7 +16401,8 @@ var TextColorOption = function TextColorOption(_ref) {
|
|
|
16409
16401
|
buttonProps: {
|
|
16410
16402
|
tabIndex: -1,
|
|
16411
16403
|
tooltipProps: {
|
|
16412
|
-
content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label
|
|
16404
|
+
content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label,
|
|
16405
|
+
position: "bottom"
|
|
16413
16406
|
},
|
|
16414
16407
|
className: "neeto-editor-fixed-menu__item neeto-editor-text-color-option"
|
|
16415
16408
|
},
|
|
@@ -16491,7 +16484,7 @@ var Options = function Options(_ref) {
|
|
|
16491
16484
|
editor: editor,
|
|
16492
16485
|
options: options
|
|
16493
16486
|
});
|
|
16494
|
-
var
|
|
16487
|
+
var Icon = getNodeIcon(dropdownOptions);
|
|
16495
16488
|
var isEmojiActive = options.includes(EDITOR_OPTIONS.EMOJI);
|
|
16496
16489
|
var isTextColorOptionActive = options.includes(EDITOR_OPTIONS.TEXT_COLOR);
|
|
16497
16490
|
var isLinkActive = options.includes(EDITOR_OPTIONS.LINK);
|
|
@@ -16535,15 +16528,36 @@ var Options = function Options(_ref) {
|
|
|
16535
16528
|
children: [/*#__PURE__*/jsx(Dropdown$1, {
|
|
16536
16529
|
buttonSize: "small",
|
|
16537
16530
|
buttonStyle: "text",
|
|
16538
|
-
label:
|
|
16531
|
+
label: Icon,
|
|
16539
16532
|
strategy: "fixed",
|
|
16533
|
+
buttonProps: {
|
|
16534
|
+
icon: Icon,
|
|
16535
|
+
iconPosition: "left",
|
|
16536
|
+
iconSize: 22,
|
|
16537
|
+
label: /*#__PURE__*/jsx(Down, {
|
|
16538
|
+
size: 12
|
|
16539
|
+
}),
|
|
16540
|
+
"data-cy": "neeto-editor-fixed-menu-font-size-option",
|
|
16541
|
+
style: "text",
|
|
16542
|
+
size: "small",
|
|
16543
|
+
className: "neeto-editor-bubble-menu__item neeto-editor-font-size__wrapper"
|
|
16544
|
+
},
|
|
16540
16545
|
children: /*#__PURE__*/jsx(Menu, {
|
|
16546
|
+
className: "neeto-ui-flex neeto-ui-gap-1 neeto-editor-menu-font-size-options",
|
|
16541
16547
|
children: dropdownOptions.map(function (_ref2) {
|
|
16542
16548
|
var optionName = _ref2.optionName,
|
|
16543
|
-
command = _ref2.command
|
|
16549
|
+
command = _ref2.command,
|
|
16550
|
+
Icon = _ref2.icon;
|
|
16544
16551
|
return /*#__PURE__*/jsx(MenuItem.Button, {
|
|
16552
|
+
className: "neeto-editor-menu-font-size-options__item-btn",
|
|
16553
|
+
tooltipProps: {
|
|
16554
|
+
content: optionName,
|
|
16555
|
+
position: "bottom"
|
|
16556
|
+
},
|
|
16545
16557
|
onClick: command,
|
|
16546
|
-
children:
|
|
16558
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
16559
|
+
size: 22
|
|
16560
|
+
})
|
|
16547
16561
|
}, optionName);
|
|
16548
16562
|
})
|
|
16549
16563
|
})
|
|
@@ -16627,7 +16641,7 @@ var Bubble = function Bubble(_ref) {
|
|
|
16627
16641
|
setIsLinkOptionActive(false);
|
|
16628
16642
|
setIsTableOptionActive(false);
|
|
16629
16643
|
},
|
|
16630
|
-
theme: "neeto-editor-bubble-menu",
|
|
16644
|
+
theme: "light neeto-editor-bubble-menu-tippy-box",
|
|
16631
16645
|
maxWidth: 500
|
|
16632
16646
|
},
|
|
16633
16647
|
children: /*#__PURE__*/jsx(Options, {
|
|
@@ -18099,8 +18113,8 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
18099
18113
|
};
|
|
18100
18114
|
|
|
18101
18115
|
var _excluded$3 = ["type"];
|
|
18102
|
-
function ownKeys$
|
|
18103
|
-
function _objectSpread$
|
|
18116
|
+
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; }
|
|
18117
|
+
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; }
|
|
18104
18118
|
var Menu$3 = Dropdown$1.Menu,
|
|
18105
18119
|
MenuItem$1 = Dropdown$1.MenuItem;
|
|
18106
18120
|
var MoreMenu = function MoreMenu(_ref) {
|
|
@@ -18121,18 +18135,18 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
18121
18135
|
var Component = MENU_ELEMENTS[type];
|
|
18122
18136
|
if (type === MENU_ELEMENT_TYPES.BUTTON) {
|
|
18123
18137
|
var Icon = props.icon;
|
|
18124
|
-
return /*#__PURE__*/jsxs(MenuItem$1.Button, _objectSpread$
|
|
18138
|
+
return /*#__PURE__*/jsxs(MenuItem$1.Button, _objectSpread$9(_objectSpread$9({
|
|
18125
18139
|
"data-cy": "neeto-editor-fixed-menu-".concat(props.optionName, "-option"),
|
|
18126
18140
|
isActive: editor.isActive(props.optionName),
|
|
18127
18141
|
tabIndex: "-1",
|
|
18128
18142
|
onClick: props.command
|
|
18129
|
-
}, _objectSpread$
|
|
18143
|
+
}, _objectSpread$9(_objectSpread$9(_objectSpread$9({}, generateFocusProps(props.highlight)), props), {}, {
|
|
18130
18144
|
editor: editor
|
|
18131
18145
|
})), {}, {
|
|
18132
18146
|
children: [/*#__PURE__*/jsx(Icon, {}), " ", props.label]
|
|
18133
18147
|
}), props.optionName);
|
|
18134
18148
|
}
|
|
18135
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
18149
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$9(_objectSpread$9({}, _objectSpread$9(_objectSpread$9({}, props), {}, {
|
|
18136
18150
|
editor: editor
|
|
18137
18151
|
}, generateFocusProps(props.highlight))), {}, {
|
|
18138
18152
|
isSecondaryMenu: true
|
|
@@ -18145,8 +18159,8 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
18145
18159
|
|
|
18146
18160
|
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, "bulletList", "orderedList", "blockquote", EDITOR_OPTIONS.CODE, "codeBlock", EDITOR_OPTIONS.TABLE, EDITOR_OPTIONS.ATTACHMENTS, EDITOR_OPTIONS.IMAGE_UPLOAD, EDITOR_OPTIONS.VIDEO_UPLOAD, EDITOR_OPTIONS.VIDEO_EMBED, EDITOR_OPTIONS.TEXT_COLOR, EDITOR_OPTIONS.EMOJI, "mentions"];
|
|
18147
18161
|
|
|
18148
|
-
function ownKeys$
|
|
18149
|
-
function _objectSpread$
|
|
18162
|
+
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; }
|
|
18163
|
+
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; }
|
|
18150
18164
|
var useEditorState = function useEditorState(_ref) {
|
|
18151
18165
|
var editor = _ref.editor;
|
|
18152
18166
|
var _useEditorStore = useEditorStore(function (store) {
|
|
@@ -18182,7 +18196,7 @@ var useEditorState = function useEditorState(_ref) {
|
|
|
18182
18196
|
var redoOptionState = {
|
|
18183
18197
|
disabled: !editor.can().redo()
|
|
18184
18198
|
};
|
|
18185
|
-
var updatedMarksState = _objectSpread$
|
|
18199
|
+
var updatedMarksState = _objectSpread$8(_objectSpread$8({}, marksState), {}, _defineProperty(_defineProperty({}, EDITOR_OPTIONS.UNDO, undoOptionState), EDITOR_OPTIONS.REDO, redoOptionState));
|
|
18186
18200
|
setMarksState(updatedMarksState);
|
|
18187
18201
|
}, [marksState, setMarksState]);
|
|
18188
18202
|
useEffect(function () {
|
|
@@ -18202,8 +18216,8 @@ var useEditorState = function useEditorState(_ref) {
|
|
|
18202
18216
|
};
|
|
18203
18217
|
|
|
18204
18218
|
var _excluded$2 = ["type"];
|
|
18205
|
-
function ownKeys$
|
|
18206
|
-
function _objectSpread$
|
|
18219
|
+
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; }
|
|
18220
|
+
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; }
|
|
18207
18221
|
var Fixed = function Fixed(_ref) {
|
|
18208
18222
|
var editor = _ref.editor,
|
|
18209
18223
|
options = _ref.options,
|
|
@@ -18302,7 +18316,8 @@ var Fixed = function Fixed(_ref) {
|
|
|
18302
18316
|
mentions: mentions,
|
|
18303
18317
|
addonCommands: addonCommands,
|
|
18304
18318
|
setIsEmojiPickerActive: setIsEmojiPickerActive,
|
|
18305
|
-
isEmojiPickerActive: isEmojiPickerActive
|
|
18319
|
+
isEmojiPickerActive: isEmojiPickerActive,
|
|
18320
|
+
editor: editor
|
|
18306
18321
|
});
|
|
18307
18322
|
}, [isEmojiPickerActive, mentions]);
|
|
18308
18323
|
var handleResize = useCallback(function () {
|
|
@@ -18354,7 +18369,7 @@ var Fixed = function Fixed(_ref) {
|
|
|
18354
18369
|
props = _objectWithoutProperties$1(_ref2, _excluded$2);
|
|
18355
18370
|
var Component = MENU_ELEMENTS[type];
|
|
18356
18371
|
if (!Component) return null;
|
|
18357
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
18372
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$7({}, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
18358
18373
|
editor: editor,
|
|
18359
18374
|
options: options
|
|
18360
18375
|
})), props.optionName);
|
|
@@ -18403,8 +18418,8 @@ var Fixed = function Fixed(_ref) {
|
|
|
18403
18418
|
};
|
|
18404
18419
|
|
|
18405
18420
|
var _excluded$1 = ["icon", "onClick", "disabled", "className", "tooltipProps"];
|
|
18406
|
-
function ownKeys$
|
|
18407
|
-
function _objectSpread$
|
|
18421
|
+
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; }
|
|
18422
|
+
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; }
|
|
18408
18423
|
var Button = function Button(_ref) {
|
|
18409
18424
|
var _ref$icon = _ref.icon,
|
|
18410
18425
|
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
@@ -18416,16 +18431,16 @@ var Button = function Button(_ref) {
|
|
|
18416
18431
|
tooltipProps = _ref.tooltipProps,
|
|
18417
18432
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$1);
|
|
18418
18433
|
var Icon = icon;
|
|
18419
|
-
return /*#__PURE__*/jsx(Tooltip, _objectSpread$
|
|
18434
|
+
return /*#__PURE__*/jsx(Tooltip, _objectSpread$6(_objectSpread$6({
|
|
18420
18435
|
disabled: !tooltipProps,
|
|
18421
18436
|
onClick: function onClick() {
|
|
18422
18437
|
return _onClick();
|
|
18423
18438
|
}
|
|
18424
18439
|
}, tooltipProps), {}, {
|
|
18425
|
-
children: /*#__PURE__*/jsx("button", _objectSpread$
|
|
18440
|
+
children: /*#__PURE__*/jsx("button", _objectSpread$6(_objectSpread$6({
|
|
18426
18441
|
className: classnames("ne-headless-btn", _defineProperty({}, className, className)),
|
|
18427
18442
|
type: "button"
|
|
18428
|
-
}, _objectSpread$
|
|
18443
|
+
}, _objectSpread$6({
|
|
18429
18444
|
disabled: disabled,
|
|
18430
18445
|
onClick: _onClick
|
|
18431
18446
|
}, otherProps)), {}, {
|
|
@@ -18438,8 +18453,8 @@ var Button = function Button(_ref) {
|
|
|
18438
18453
|
};
|
|
18439
18454
|
|
|
18440
18455
|
var _excluded = ["icon", "isOpen", "onClose", "children", "className", "onClick", "buttonProps"];
|
|
18441
|
-
function ownKeys$
|
|
18442
|
-
function _objectSpread$
|
|
18456
|
+
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; }
|
|
18457
|
+
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; }
|
|
18443
18458
|
var hideOnEsc = {
|
|
18444
18459
|
name: "hideOnEsc",
|
|
18445
18460
|
defaultValue: true,
|
|
@@ -18478,7 +18493,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
18478
18493
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18479
18494
|
mounted = _useState2[0],
|
|
18480
18495
|
setMounted = _useState2[1];
|
|
18481
|
-
return /*#__PURE__*/jsx(Tippy, _objectSpread$
|
|
18496
|
+
return /*#__PURE__*/jsx(Tippy, _objectSpread$5(_objectSpread$5({
|
|
18482
18497
|
onClose: onClose,
|
|
18483
18498
|
hideOnEsc: true,
|
|
18484
18499
|
interactive: true,
|
|
@@ -18510,7 +18525,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
18510
18525
|
}
|
|
18511
18526
|
}, otherProps), {}, {
|
|
18512
18527
|
children: /*#__PURE__*/jsx("span", {
|
|
18513
|
-
children: /*#__PURE__*/jsx(Button, _objectSpread$
|
|
18528
|
+
children: /*#__PURE__*/jsx(Button, _objectSpread$5({}, _objectSpread$5({
|
|
18514
18529
|
icon: icon,
|
|
18515
18530
|
onClick: onClick
|
|
18516
18531
|
}, buttonProps)))
|
|
@@ -18583,8 +18598,8 @@ var Option = function Option(_ref) {
|
|
|
18583
18598
|
});
|
|
18584
18599
|
};
|
|
18585
18600
|
|
|
18586
|
-
function ownKeys$
|
|
18587
|
-
function _objectSpread$
|
|
18601
|
+
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; }
|
|
18602
|
+
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; }
|
|
18588
18603
|
var t = i18n.t;
|
|
18589
18604
|
var createMenuOptions$1 = function createMenuOptions(_ref) {
|
|
18590
18605
|
var editor = _ref.editor,
|
|
@@ -18743,7 +18758,7 @@ var buildOptionsFromAddonCommands$1 = function buildOptionsFromAddonCommands(_re
|
|
|
18743
18758
|
var to = editor.state.selection.to;
|
|
18744
18759
|
return commands.map(function (option) {
|
|
18745
18760
|
var _option$active;
|
|
18746
|
-
return _objectSpread$
|
|
18761
|
+
return _objectSpread$4(_objectSpread$4({}, option), {}, {
|
|
18747
18762
|
active: (_option$active = option.active) === null || _option$active === void 0 ? void 0 : _option$active.call(option, {
|
|
18748
18763
|
editor: editor
|
|
18749
18764
|
}),
|
|
@@ -18785,8 +18800,8 @@ var buildMenuOptions$1 = function buildMenuOptions(_ref3) {
|
|
|
18785
18800
|
}).filter(Boolean);
|
|
18786
18801
|
};
|
|
18787
18802
|
|
|
18788
|
-
function ownKeys$
|
|
18789
|
-
function _objectSpread$
|
|
18803
|
+
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; }
|
|
18804
|
+
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; }
|
|
18790
18805
|
var Headless = function Headless(_ref) {
|
|
18791
18806
|
var editor = _ref.editor,
|
|
18792
18807
|
options = _ref.options,
|
|
@@ -18824,7 +18839,7 @@ var Headless = function Headless(_ref) {
|
|
|
18824
18839
|
return /*#__PURE__*/jsxs("div", {
|
|
18825
18840
|
className: classnames("ne-headless", _defineProperty({}, className, className)),
|
|
18826
18841
|
children: [allOptions.map(function (option) {
|
|
18827
|
-
return /*#__PURE__*/createElement(Option, _objectSpread$
|
|
18842
|
+
return /*#__PURE__*/createElement(Option, _objectSpread$3({
|
|
18828
18843
|
editor: editor,
|
|
18829
18844
|
key: option.optionName
|
|
18830
18845
|
}, option));
|
|
@@ -18964,6 +18979,166 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
18964
18979
|
};
|
|
18965
18980
|
var FontSizeOption$1 = /*#__PURE__*/memo(FontSizeOption);
|
|
18966
18981
|
|
|
18982
|
+
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; }
|
|
18983
|
+
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; }
|
|
18984
|
+
var ColorDot = function ColorDot(_ref) {
|
|
18985
|
+
var colorVar = _ref.colorVar,
|
|
18986
|
+
isSelected = _ref.isSelected,
|
|
18987
|
+
onClick = _ref.onClick,
|
|
18988
|
+
isTextColor = _ref.isTextColor;
|
|
18989
|
+
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {
|
|
18990
|
+
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected,
|
|
18991
|
+
"neeto-editor-highlight-dropdown__color-dot--background": !isTextColor
|
|
18992
|
+
});
|
|
18993
|
+
var dotStyle = _objectSpread$2({}, isTextColor ? {
|
|
18994
|
+
color: "var(".concat(colorVar, ")")
|
|
18995
|
+
} : {
|
|
18996
|
+
backgroundColor: "var(".concat(colorVar, ")")
|
|
18997
|
+
});
|
|
18998
|
+
return /*#__PURE__*/jsx("div", {
|
|
18999
|
+
onClick: onClick,
|
|
19000
|
+
className: dotClass,
|
|
19001
|
+
style: dotStyle,
|
|
19002
|
+
children: isTextColor && /*#__PURE__*/jsx(Typography, {
|
|
19003
|
+
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
19004
|
+
style: "body2",
|
|
19005
|
+
weight: "semibold",
|
|
19006
|
+
children: "A"
|
|
19007
|
+
})
|
|
19008
|
+
});
|
|
19009
|
+
};
|
|
19010
|
+
|
|
19011
|
+
var ColorDotIcon = function ColorDotIcon(_ref) {
|
|
19012
|
+
var textColor = _ref.textColor,
|
|
19013
|
+
backgroundColor = _ref.backgroundColor;
|
|
19014
|
+
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {});
|
|
19015
|
+
var dotStyle = {
|
|
19016
|
+
color: "var(".concat(textColor, ")"),
|
|
19017
|
+
backgroundColor: "var(".concat(backgroundColor, ")")
|
|
19018
|
+
};
|
|
19019
|
+
return /*#__PURE__*/jsx("div", {
|
|
19020
|
+
className: dotClass,
|
|
19021
|
+
style: dotStyle,
|
|
19022
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
19023
|
+
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
19024
|
+
style: "body2",
|
|
19025
|
+
weight: "semibold",
|
|
19026
|
+
children: "A"
|
|
19027
|
+
})
|
|
19028
|
+
});
|
|
19029
|
+
};
|
|
19030
|
+
|
|
19031
|
+
var COLORS = {
|
|
19032
|
+
recent: ["--neeto-editor-highlight-bg-yellow-light"],
|
|
19033
|
+
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"],
|
|
19034
|
+
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"]
|
|
19035
|
+
};
|
|
19036
|
+
|
|
19037
|
+
var colorSections = [{
|
|
19038
|
+
title: "Text color",
|
|
19039
|
+
colors: COLORS.text,
|
|
19040
|
+
isTextColor: true
|
|
19041
|
+
}, {
|
|
19042
|
+
title: "Background color",
|
|
19043
|
+
colors: COLORS.background,
|
|
19044
|
+
isTextColor: false
|
|
19045
|
+
}];
|
|
19046
|
+
var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
19047
|
+
var editor = _ref.editor,
|
|
19048
|
+
label = _ref.label,
|
|
19049
|
+
tooltipContent = _ref.tooltipContent,
|
|
19050
|
+
runEditorCommand = _ref.runEditorCommand;
|
|
19051
|
+
var dropdownRef = useRef(null);
|
|
19052
|
+
var textColor = editor.getAttributes("textStyle").color;
|
|
19053
|
+
var backgroundColor = editor.getAttributes("textStyle").backgroundColor;
|
|
19054
|
+
var updateBackgroundColor = function updateBackgroundColor(value) {
|
|
19055
|
+
runEditorCommand(function (editor) {
|
|
19056
|
+
return editor.chain().focus().setMark("textStyle", {
|
|
19057
|
+
backgroundColor: value
|
|
19058
|
+
}).run();
|
|
19059
|
+
})();
|
|
19060
|
+
};
|
|
19061
|
+
var handleBackgroundColorClick = function handleBackgroundColorClick(colorVar) {
|
|
19062
|
+
if (backgroundColor === "var(".concat(colorVar, ")")) {
|
|
19063
|
+
updateBackgroundColor(null);
|
|
19064
|
+
} else {
|
|
19065
|
+
updateBackgroundColor("var(".concat(colorVar, ")"));
|
|
19066
|
+
}
|
|
19067
|
+
};
|
|
19068
|
+
var handleTextColorClick = function handleTextColorClick(colorVar) {
|
|
19069
|
+
if (textColor === "var(".concat(colorVar, ")")) {
|
|
19070
|
+
editor.chain().focus().unsetColor().run();
|
|
19071
|
+
} else {
|
|
19072
|
+
editor.chain().focus().setColor("var(".concat(colorVar, ")")).run();
|
|
19073
|
+
}
|
|
19074
|
+
};
|
|
19075
|
+
var renderColorDots = function renderColorDots(colorList) {
|
|
19076
|
+
var isTextColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
19077
|
+
return colorList.map(function (colorVar, idx) {
|
|
19078
|
+
return /*#__PURE__*/createElement(ColorDot, {
|
|
19079
|
+
colorVar: colorVar,
|
|
19080
|
+
isTextColor: isTextColor,
|
|
19081
|
+
key: idx,
|
|
19082
|
+
isSelected: isTextColor ? textColor === "var(".concat(colorVar, ")") : backgroundColor === "var(".concat(colorVar, ")"),
|
|
19083
|
+
onClick: function onClick() {
|
|
19084
|
+
return isTextColor ? handleTextColorClick(colorVar) : handleBackgroundColorClick(colorVar);
|
|
19085
|
+
}
|
|
19086
|
+
});
|
|
19087
|
+
});
|
|
19088
|
+
};
|
|
19089
|
+
return /*#__PURE__*/jsx(Dropdown$1, {
|
|
19090
|
+
autoWidth: true,
|
|
19091
|
+
placement: "bottom-start",
|
|
19092
|
+
strategy: "fixed",
|
|
19093
|
+
buttonProps: {
|
|
19094
|
+
icon: function icon() {
|
|
19095
|
+
return /*#__PURE__*/jsx(ColorDotIcon, {
|
|
19096
|
+
backgroundColor: backgroundColor,
|
|
19097
|
+
textColor: textColor
|
|
19098
|
+
});
|
|
19099
|
+
},
|
|
19100
|
+
iconPosition: "left",
|
|
19101
|
+
iconSize: 20,
|
|
19102
|
+
label: /*#__PURE__*/jsx(Down, {
|
|
19103
|
+
size: 12
|
|
19104
|
+
}),
|
|
19105
|
+
ref: dropdownRef,
|
|
19106
|
+
"data-cy": "neeto-editor-fixed-menu-highlight-option",
|
|
19107
|
+
onKeyDown: function onKeyDown(event) {
|
|
19108
|
+
var _dropdownRef$current;
|
|
19109
|
+
return event.key === "ArrowDown" && ((_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.click());
|
|
19110
|
+
},
|
|
19111
|
+
tooltipProps: {
|
|
19112
|
+
content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label,
|
|
19113
|
+
position: "bottom"
|
|
19114
|
+
},
|
|
19115
|
+
style: "text",
|
|
19116
|
+
size: "small",
|
|
19117
|
+
className: "neeto-editor-fixed-menu__item"
|
|
19118
|
+
},
|
|
19119
|
+
children: /*#__PURE__*/jsx(Dropdown$1.Menu, {
|
|
19120
|
+
className: "neeto-editor-highlight-dropdown",
|
|
19121
|
+
children: colorSections.map(function (_ref2) {
|
|
19122
|
+
var title = _ref2.title,
|
|
19123
|
+
colors = _ref2.colors,
|
|
19124
|
+
isTextColor = _ref2.isTextColor;
|
|
19125
|
+
return /*#__PURE__*/jsxs("div", {
|
|
19126
|
+
className: "neeto-editor-highlight-dropdown__section",
|
|
19127
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
19128
|
+
className: "neeto-editor-highlight-dropdown__section-title",
|
|
19129
|
+
style: "body2",
|
|
19130
|
+
weight: "normal",
|
|
19131
|
+
children: title
|
|
19132
|
+
}), /*#__PURE__*/jsx("div", {
|
|
19133
|
+
className: "neeto-editor-highlight-dropdown__color-grid",
|
|
19134
|
+
children: renderColorDots(colors, isTextColor)
|
|
19135
|
+
})]
|
|
19136
|
+
}, title);
|
|
19137
|
+
})
|
|
19138
|
+
})
|
|
19139
|
+
});
|
|
19140
|
+
};
|
|
19141
|
+
|
|
18967
19142
|
var Menu$1 = Dropdown$1.Menu;
|
|
18968
19143
|
var TableOption = function TableOption(_ref) {
|
|
18969
19144
|
var editor = _ref.editor,
|
|
@@ -19067,7 +19242,8 @@ var MENU_ELEMENT_TYPES = {
|
|
|
19067
19242
|
TABLE: "table",
|
|
19068
19243
|
TEXT_COLOR: "textColor",
|
|
19069
19244
|
EMOJI: "emoji",
|
|
19070
|
-
MENTIONS: "mentions"
|
|
19245
|
+
MENTIONS: "mentions",
|
|
19246
|
+
HIGHLIGHT: "highlight"
|
|
19071
19247
|
};
|
|
19072
19248
|
var SHORTCUTS = (_SHORTCUTS = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_SHORTCUTS, EDITOR_OPTIONS.BOLD, {
|
|
19073
19249
|
mac: "⌘B",
|
|
@@ -19103,13 +19279,13 @@ var SHORTCUTS = (_SHORTCUTS = {}, _defineProperty(_defineProperty(_definePropert
|
|
|
19103
19279
|
mac: "⌘⇧7",
|
|
19104
19280
|
win: "Ctrl+Shift+7"
|
|
19105
19281
|
}));
|
|
19106
|
-
var MENU_ELEMENTS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MENU_ELEMENT_TYPES.BUTTON, MenuButton$1), MENU_ELEMENT_TYPES.FONT_SIZE, FontSizeOption$1), MENU_ELEMENT_TYPES.TABLE, TableOption$1), MENU_ELEMENT_TYPES.TEXT_COLOR, TextColorOption), MENU_ELEMENT_TYPES.EMOJI, EmojiOption$1), MENU_ELEMENT_TYPES.MENTIONS, Mentions$1);
|
|
19107
|
-
var MENU_ELEMENT_WIDTHS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MENU_ELEMENT_TYPES.BUTTON, 36), MENU_ELEMENT_TYPES.FONT_SIZE, 103), MENU_ELEMENT_TYPES.TABLE, 36), MENU_ELEMENT_TYPES.TEXT_COLOR, 36), MENU_ELEMENT_TYPES.EMOJI, 36), MENU_ELEMENT_TYPES.MENTIONS, 36);
|
|
19282
|
+
var MENU_ELEMENTS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MENU_ELEMENT_TYPES.BUTTON, MenuButton$1), MENU_ELEMENT_TYPES.FONT_SIZE, FontSizeOption$1), MENU_ELEMENT_TYPES.TABLE, TableOption$1), MENU_ELEMENT_TYPES.TEXT_COLOR, TextColorOption), MENU_ELEMENT_TYPES.EMOJI, EmojiOption$1), MENU_ELEMENT_TYPES.MENTIONS, Mentions$1), MENU_ELEMENT_TYPES.HIGHLIGHT, HighlightDropdown);
|
|
19283
|
+
var MENU_ELEMENT_WIDTHS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MENU_ELEMENT_TYPES.BUTTON, 36), MENU_ELEMENT_TYPES.FONT_SIZE, 103), MENU_ELEMENT_TYPES.TABLE, 36), MENU_ELEMENT_TYPES.TEXT_COLOR, 36), MENU_ELEMENT_TYPES.EMOJI, 36), MENU_ELEMENT_TYPES.MENTIONS, 36), MENU_ELEMENT_TYPES.HIGHLIGHT, 103);
|
|
19108
19284
|
|
|
19109
19285
|
function ownKeys$1(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; }
|
|
19110
19286
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19111
19287
|
var createMenuOptions = function createMenuOptions(_ref) {
|
|
19112
|
-
var _tooltips$undo, _tooltips$redo, _tooltips$fontSize, _tooltips$bold, _tooltips$italic, _tooltips$link, _tooltips$strike, _tooltips$highlight, _tooltips$bulletList, _tooltips$orderedList, _tooltips$blockQuote, _tooltips$table, _tooltips$attachments, _tooltips$imageUpload, _tooltips$videoEmbed, _tooltips$textColor, _tooltips$emoji, _tooltips$mention, _tooltips$code, _tooltips$codeBlock, _tooltips$videoUpload, _tooltips$underline;
|
|
19288
|
+
var _tooltips$undo, _tooltips$redo, _tooltips$fontSize, _tooltips$bold, _tooltips$italic, _tooltips$link, _tooltips$strike, _tooltips$highlight, _tooltips$highlight2, _tooltips$bulletList, _tooltips$orderedList, _tooltips$blockQuote, _tooltips$table, _tooltips$attachments, _tooltips$imageUpload, _tooltips$videoEmbed, _tooltips$textColor, _tooltips$emoji, _tooltips$mention, _tooltips$code, _tooltips$codeBlock, _tooltips$videoUpload, _tooltips$underline;
|
|
19113
19289
|
var tooltips = _ref.tooltips,
|
|
19114
19290
|
setMediaUploader = _ref.setMediaUploader,
|
|
19115
19291
|
attachmentProps = _ref.attachmentProps,
|
|
@@ -19120,7 +19296,8 @@ var createMenuOptions = function createMenuOptions(_ref) {
|
|
|
19120
19296
|
addonCommandOptions = _ref.addonCommandOptions,
|
|
19121
19297
|
setIsEmojiPickerActive = _ref.setIsEmojiPickerActive,
|
|
19122
19298
|
isEmojiPickerActive = _ref.isEmojiPickerActive,
|
|
19123
|
-
runEditorCommand = _ref.runEditorCommand
|
|
19299
|
+
runEditorCommand = _ref.runEditorCommand,
|
|
19300
|
+
editor = _ref.editor;
|
|
19124
19301
|
var fontSizeOptions = options.filter(function (option) {
|
|
19125
19302
|
return option.match(/^h[1-6]$/);
|
|
19126
19303
|
});
|
|
@@ -19190,14 +19367,14 @@ var createMenuOptions = function createMenuOptions(_ref) {
|
|
|
19190
19367
|
optionName: EDITOR_OPTIONS.STRIKETHROUGH,
|
|
19191
19368
|
label: (_tooltips$strike = tooltips.strike) !== null && _tooltips$strike !== void 0 ? _tooltips$strike : t$1("neetoEditor.menu.strike")
|
|
19192
19369
|
}, {
|
|
19193
|
-
type: MENU_ELEMENT_TYPES.
|
|
19370
|
+
type: MENU_ELEMENT_TYPES.HIGHLIGHT,
|
|
19194
19371
|
icon: Highlight,
|
|
19372
|
+
label: (_tooltips$highlight = tooltips.highlight) !== null && _tooltips$highlight !== void 0 ? _tooltips$highlight : t$1("neetoEditor.menu.highlight"),
|
|
19195
19373
|
isEnabled: options.includes(EDITOR_OPTIONS.HIGHLIGHT),
|
|
19196
|
-
command: runEditorCommand(function (editor) {
|
|
19197
|
-
return editor.chain().focus().toggleHighlight().run();
|
|
19198
|
-
}),
|
|
19199
19374
|
optionName: EDITOR_OPTIONS.HIGHLIGHT,
|
|
19200
|
-
|
|
19375
|
+
editor: editor,
|
|
19376
|
+
runEditorCommand: runEditorCommand,
|
|
19377
|
+
tooltipContent: (_tooltips$highlight2 = tooltips.highlight) !== null && _tooltips$highlight2 !== void 0 ? _tooltips$highlight2 : t$1("neetoEditor.menu.highlight")
|
|
19201
19378
|
}],
|
|
19202
19379
|
// list
|
|
19203
19380
|
[{
|
|
@@ -19357,7 +19534,8 @@ var buildMenuOptions = function buildMenuOptions(_ref3) {
|
|
|
19357
19534
|
addonCommands = _ref3.addonCommands,
|
|
19358
19535
|
setIsEmojiPickerActive = _ref3.setIsEmojiPickerActive,
|
|
19359
19536
|
isEmojiPickerActive = _ref3.isEmojiPickerActive,
|
|
19360
|
-
runEditorCommand = _ref3.runEditorCommand
|
|
19537
|
+
runEditorCommand = _ref3.runEditorCommand,
|
|
19538
|
+
editor = _ref3.editor;
|
|
19361
19539
|
var addonCommandOptions = buildOptionsFromAddonCommands({
|
|
19362
19540
|
commands: addonCommands,
|
|
19363
19541
|
runEditorCommand: runEditorCommand
|
|
@@ -19373,7 +19551,8 @@ var buildMenuOptions = function buildMenuOptions(_ref3) {
|
|
|
19373
19551
|
addonCommandOptions: addonCommandOptions,
|
|
19374
19552
|
setIsEmojiPickerActive: setIsEmojiPickerActive,
|
|
19375
19553
|
isEmojiPickerActive: isEmojiPickerActive,
|
|
19376
|
-
runEditorCommand: runEditorCommand
|
|
19554
|
+
runEditorCommand: runEditorCommand,
|
|
19555
|
+
editor: editor
|
|
19377
19556
|
});
|
|
19378
19557
|
return menuOptions.map(function (option) {
|
|
19379
19558
|
return option.filter(prop("isEnabled"));
|
|
@@ -19461,7 +19640,7 @@ function renderTooltipContent(label, optionName) {
|
|
|
19461
19640
|
return "".concat(label, " (").concat(key, ")");
|
|
19462
19641
|
}
|
|
19463
19642
|
|
|
19464
|
-
var css = ".neeto-editor-fixed-menu{background-color:rgb(var(--neeto-ui-white));border:thin solid rgb(var(--neeto-ui-gray-400));border-bottom:none;border-radius:var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0 0;display:flex;position:relative}.neeto-editor-fixed-menu--independant{border-bottom:thin solid rgb(var(--neeto-ui-gray-400));border-radius:0;border-radius:initial}.neeto-editor-fixed-menu--independant .neeto-editor-fixed-menu__wrapper{border-bottom:0!important}.neeto-editor-fixed-menu--independant .neeto-editor-fixed-menu__wrapper button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon path{stroke-width:1.8px}.neeto-editor-fixed-menu__item{border-radius:0}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item{--neeto-ui-btn-border-radius:0;--neeto-ui-btn-icon-size:22px;--neeto-ui-btn-padding-x:0;--neeto-ui-btn-padding-y:0;--neeto-ui-btn-focus-box-shadow:none;align-items:center;height:36px;justify-content:center;min-width:-moz-fit-content;min-width:fit-content;padding:0;width:36px}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon{color:rgb(var(--neeto-ui-black))}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon path{stroke-width:1.5px}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item.neeto-ui-btn--style-secondary{background-color:rgb(var(--neeto-ui-accent-100))}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item.neeto-ui-btn--style-secondary .neeto-ui-btn__icon{color:rgb(var(--neeto-ui-accent-800))}.neeto-editor-fixed-menu__wrapper{align-items:center;border-bottom:thin solid rgb(var(--neeto-ui-gray-400));display:flex;flex-grow:1;justify-content:flex-start;padding:0 2px;width:100%}.neeto-editor-fixed-menu__wrapper__button-group{display:flex}.neeto-editor-fixed-menu__variables{bottom:-42px;position:absolute;right:8px;z-index:10}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item{background-color:rgb(var(--neeto-ui-gray-700));border-radius:var(--neeto-ui-rounded-sm);padding:4px}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active,.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-600))}.neeto-editor-fixed-menu__right-options{display:flex}.neeto-editor-fixed-menu__emoji-dropdown{max-height:none!important}.neeto-editor-fixed-menu__separator{display:flex;height:28px;width:32px}.neeto-editor-fixed-menu__separator span{width:100%}.neeto-editor-fixed-menu__separator span:first-child{border-right:1px solid rgb(var(--neeto-ui-gray-200))}.neeto-editor-text-color-option__options-group{align-items:center;display:flex;gap:8px;margin:8px 4px}.neeto-editor-text-color-option__options-group__input{max-width:120px}.neeto-editor-text-color-option__options-group__reset-button{align-self:center}.react-colorful{width:100%!important}.neeto-editor-menu__item{align-items:center;border-radius:2px;cursor:pointer;display:flex;flex-direction:row;gap:4px;justify-content:center;padding:8px;transition:var(--neeto-ui-transition)}.neeto-editor-menu__item p{color:rgb(var(--neeto-ui-gray-600));font-size:var(--neeto-ui-text-xs);line-height:1;white-space:nowrap}.neeto-editor-menu__item.active,.neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-menu__item:focus,.neeto-editor-menu__item:focus-visible{outline:rgb(var(--neeto-ui-gray-300)) auto 1px}.neeto-editor-menu__item input[type=color]{height:0;visibility:hidden;width:0}.neeto-editor-menu__item:disabled{background-color:rgb(var(--neeto-ui-gray-100));opacity:.5}.neeto-editor-link__item{align-items:flex-start;justify-content:flex-start}.neeto-editor-link__item,.neeto-editor-table__item{display:flex!important;flex-direction:row;gap:8px;padding:8px!important}.neeto-editor-table__item{min-width:210px}.neeto-editor-table__item input{max-width:60px!important}.neeto-editor-table__options-menu{display:flex;flex-direction:column;gap:8px;max-height:150px!important;overflow:scroll;padding:8px!important}.neeto-editor-font-size__wrapper{font-size:16px;font-weight:var(--neeto-ui-font-normal)!important;padding-left:4px!important;padding-right:4px!important}.neeto-editor-bubble-menu{align-items:center;background:rgb(var(--neeto-ui-gray-800));border-radius:var(--neeto-ui-rounded);display:flex;flex-direction:row;gap:1px;justify-content:flex-start;padding:0 4px;position:relative}.neeto-editor-bubble-menu button.neeto-ui-btn--style-text{color:rgb(var(--neeto-ui-gray-200));min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active,.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active,.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover{background-color:rgb(var(--neeto-ui-gray-600))!important;color:rgb(var(--neeto-ui-gray-200))!important}.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary{background-color:rgb(var(--neeto-ui-gray-400));min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup{background-color:rgb(var(--neeto-ui-gray-700))}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn{background-color:inherit!important;color:rgb(var(--neeto-ui-gray-200))!important}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active,.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active,.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover{background-color:rgb(var(--neeto-ui-gray-600))!important}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link{align-items:center;display:flex;gap:8px;justify-content:space-between;padding:6px;width:256px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input{background-color:transparent;color:rgb(var(--neeto-ui-gray-200));line-height:20px;outline:none;width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only{min-height:0;opacity:.8;padding:0}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover{opacity:1}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table{align-items:center;display:flex;gap:6px;justify-content:space-between;max-width:256px;padding:4px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input{background-color:rgba(var(--neeto-ui-gray-400),.2);height:24px;line-height:20px;outline:none;padding:3px 5px;width:60px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::-moz-placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__menu-item{display:flex;flex-direction:column;gap:4px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__input-label{color:#fff}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__buttons{align-self:flex-end;display:flex;gap:4px;justify-content:space-between}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__options{display:flex;flex-direction:column;gap:2px;max-height:190px;overflow:scroll}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target{align-items:center;display:flex;font-size:var(--neeto-ui-text-xs);gap:4px;line-height:var(--neeto-ui-leading-normal);white-space:nowrap}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown{align-items:flex-start;display:flex;flex-direction:column}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item{font-size:var(--neeto-ui-text-xs);padding:8px 12px;text-align:left;width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child{border-top-left-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child{border-bottom-left-radius:var(--neeto-ui-rounded);border-bottom-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu-animate-shake{animation:shake 1s linear infinite alternate both}.neeto-editor-table-menu__button{align-items:flex-end;display:flex}.neeto-editor__image-menu .neeto-ui-dropdown__popup{display:flex;min-width:0;min-width:auto}.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon{height:18px!important;width:18px!important}.neeto-editor__image-menu-btn{border-radius:100%;position:absolute!important;right:6px;top:6px;z-index:1}.neeto-editor-menu-font-size-options{padding:8px!important}.neeto-editor-menu-font-size-options .neeto-ui-dropdown__popup-menu-item{background-color:transparent!important}.neeto-editor-menu-font-size-options .neeto-editor-menu-font-size-options__item-btn{border-radius:var(--neeto-ui-btn-border-radius)!important;justify-content:center;min-height:34px;min-width:34px;overflow:hidden;padding-left:0!important;padding-right:0!important;text-align:center}.neeto-editor-menu-font-size-options .neeto-editor-menu-font-size-options__item-btn--selected{background-color:rgb(var(--neeto-ui-accent-100))!important;color:rgb(var(--neeto-ui-accent-800))!important}";
|
|
19643
|
+
var css = ".neeto-editor-fixed-menu{background-color:rgb(var(--neeto-ui-white));border:thin solid rgb(var(--neeto-ui-gray-400));border-bottom:none;border-radius:var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0 0;display:flex;position:relative}.neeto-editor-fixed-menu--independant{border-bottom:thin solid rgb(var(--neeto-ui-gray-400));border-radius:0;border-radius:initial}.neeto-editor-fixed-menu--independant .neeto-editor-fixed-menu__wrapper{border-bottom:0!important}.neeto-editor-fixed-menu--independant .neeto-editor-fixed-menu__wrapper button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon path{stroke-width:1.8px}.neeto-editor-fixed-menu__item{border-radius:0}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item{--neeto-ui-btn-border-radius:0;--neeto-ui-btn-icon-size:22px;--neeto-ui-btn-padding-x:0;--neeto-ui-btn-padding-y:0;--neeto-ui-btn-focus-box-shadow:none;align-items:center;height:36px;justify-content:center;min-width:-moz-fit-content;min-width:fit-content;padding:0;width:36px}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon{color:rgb(var(--neeto-ui-black))}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon path{stroke-width:1.5px}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item.neeto-ui-btn--style-secondary{background-color:rgb(var(--neeto-ui-accent-100))}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item.neeto-ui-btn--style-secondary .neeto-ui-btn__icon{color:rgb(var(--neeto-ui-accent-800))}.neeto-editor-fixed-menu__wrapper{align-items:center;border-bottom:thin solid rgb(var(--neeto-ui-gray-400));display:flex;flex-grow:1;justify-content:flex-start;padding:0 2px;width:100%}.neeto-editor-fixed-menu__wrapper__button-group{display:flex}.neeto-editor-fixed-menu__variables{bottom:-42px;position:absolute;right:8px;z-index:10}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item{background-color:rgb(var(--neeto-ui-gray-700));border-radius:var(--neeto-ui-rounded-sm);padding:4px}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active,.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-600))}.neeto-editor-fixed-menu__right-options{display:flex}.neeto-editor-fixed-menu__emoji-dropdown{max-height:none!important}.neeto-editor-fixed-menu__separator{display:flex;height:28px;width:32px}.neeto-editor-fixed-menu__separator span{width:100%}.neeto-editor-fixed-menu__separator span:first-child{border-right:1px solid rgb(var(--neeto-ui-gray-200))}.neeto-editor-text-color-option__options-group{align-items:center;display:flex;gap:8px;margin:8px 4px}.neeto-editor-text-color-option__options-group__input{max-width:120px}.neeto-editor-text-color-option__options-group__reset-button{align-self:center}.react-colorful{width:100%!important}.neeto-editor-menu__item{align-items:center;border-radius:2px;cursor:pointer;display:flex;flex-direction:row;gap:4px;justify-content:center;padding:8px;transition:var(--neeto-ui-transition)}.neeto-editor-menu__item p{color:rgb(var(--neeto-ui-gray-600));font-size:var(--neeto-ui-text-xs);line-height:1;white-space:nowrap}.neeto-editor-menu__item.active,.neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-menu__item:focus,.neeto-editor-menu__item:focus-visible{outline:rgb(var(--neeto-ui-gray-300)) auto 1px}.neeto-editor-menu__item input[type=color]{height:0;visibility:hidden;width:0}.neeto-editor-menu__item:disabled{background-color:rgb(var(--neeto-ui-gray-100));opacity:.5}.neeto-editor-link__item{align-items:flex-start;justify-content:flex-start}.neeto-editor-link__item,.neeto-editor-table__item{display:flex!important;flex-direction:row;gap:8px;padding:8px!important}.neeto-editor-table__item{min-width:210px}.neeto-editor-table__item input{max-width:60px!important}.neeto-editor-table__options-menu{display:flex;flex-direction:column;gap:8px;max-height:150px!important;overflow:scroll;padding:8px!important}.neeto-editor-font-size__wrapper{font-size:16px;font-weight:var(--neeto-ui-font-normal)!important;padding-left:4px!important;padding-right:4px!important}.tippy-box[data-theme~=neeto-editor-bubble-menu-tippy-box]{box-shadow:none!important}.tippy-box[data-theme~=neeto-editor-bubble-menu-tippy-box] .tippy-content{padding:0!important}.neeto-editor-bubble-menu{align-items:center;background:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded);display:flex;flex-direction:row;gap:0;justify-content:flex-start;overflow-x:auto;padding:0;position:relative}.neeto-editor-bubble-menu>.neeto-editor-bubble-menu__item:first-child,.neeto-editor-bubble-menu>.neeto-editor-fixed-menu__item:first-child{border-bottom-left-radius:var(--neeto-ui-rounded);border-top-left-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu>.neeto-editor-bubble-menu__item:last-child,.neeto-editor-bubble-menu>.neeto-editor-fixed-menu__item:last-child{border-bottom-right-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item,.neeto-editor-bubble-menu button.neeto-editor-fixed-menu__item{--neeto-ui-btn-border-radius:0;--neeto-ui-btn-icon-size:22px;--neeto-ui-btn-padding-x:0;--neeto-ui-btn-padding-y:0;--neeto-ui-btn-focus-box-shadow:none;align-items:center;color:rgb(var(--neeto-ui-black))!important;flex-shrink:0;height:36px;justify-content:center;min-width:-moz-fit-content;min-width:fit-content;width:36px}.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item .neeto-ui-btn__icon,.neeto-editor-bubble-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon{color:rgb(var(--neeto-ui-black))}.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item .neeto-ui-btn__icon path,.neeto-editor-bubble-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon path{stroke-width:1.5px}.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item.active,.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item:active,.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item:hover,.neeto-editor-bubble-menu button.neeto-editor-fixed-menu__item.active,.neeto-editor-bubble-menu button.neeto-editor-fixed-menu__item:active,.neeto-editor-bubble-menu button.neeto-editor-fixed-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item.neeto-ui-btn--style-secondary{background-color:rgb(var(--neeto-ui-accent-100))!important}.neeto-editor-bubble-menu button.neeto-editor-bubble-menu__item.neeto-ui-btn--style-secondary .neeto-ui-btn__icon{color:rgb(var(--neeto-ui-accent-800))!important}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link{align-items:center;display:flex;gap:6px;justify-content:space-between;padding:6px;width:256px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input{background-color:transparent;background-color:var(--neeto-ui-input-bg-color);border:var(--neeto-ui-input-border-width) solid var(--neeto-ui-input-border-color);border-radius:var(--neeto-ui-input-border-radius);color:var(--neeto-ui-input-color);font-size:var(--neeto-ui-input-font-size);height:28px;line-height:1.2;outline:none;transition:var(--neeto-ui-transition);width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only{min-height:0;opacity:.8;padding:0}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover{opacity:1}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table{align-items:start;display:flex;gap:6px;justify-content:space-between;max-width:256px;padding:4px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input{background-color:var(--neeto-ui-input-bg-color);border:var(--neeto-ui-input-border-width) solid var(--neeto-ui-input-border-color);border-radius:var(--neeto-ui-input-border-radius);color:var(--neeto-ui-input-color);font-size:var(--neeto-ui-input-font-size);height:28px;line-height:1.2;outline:none;padding:3px 5px;transition:var(--neeto-ui-transition);width:60px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::-moz-placeholder{color:rgb(var(--neeto-ui-gray-500))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::placeholder{color:rgb(var(--neeto-ui-gray-500))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__menu-item{display:flex;flex-direction:column;gap:6px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__input-label{color:rgb(var(--neeto-ui-gray-800))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__buttons{align-self:flex-end;display:flex;gap:4px;justify-content:space-between}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__options{display:flex;flex-direction:column;gap:2px;max-height:190px;overflow:scroll}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target{align-items:center;display:flex;font-size:var(--neeto-ui-text-xs);gap:4px;line-height:var(--neeto-ui-leading-normal);white-space:nowrap}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown{align-items:flex-start;display:flex;flex-direction:column}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item{font-size:var(--neeto-ui-text-xs);padding:8px 12px;text-align:left;width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child{border-top-left-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child{border-bottom-left-radius:var(--neeto-ui-rounded);border-bottom-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu-animate-shake{animation:shake 1s linear infinite alternate both}.neeto-editor-table-menu__button{align-items:flex-end;display:flex}.neeto-editor__image-menu .neeto-ui-dropdown__popup{display:flex;min-width:0;min-width:auto}.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon{height:18px!important;width:18px!important}.neeto-editor__image-menu-btn{border-radius:100%;position:absolute!important;right:6px;top:6px;z-index:1}.neeto-editor-menu-font-size-options{padding:8px!important}.neeto-editor-menu-font-size-options .neeto-ui-dropdown__popup-menu-item{background-color:transparent!important}.neeto-editor-menu-font-size-options .neeto-editor-menu-font-size-options__item-btn{border-radius:var(--neeto-ui-btn-border-radius)!important;justify-content:center;min-height:34px;min-width:34px;overflow:hidden;padding-left:0!important;padding-right:0!important;text-align:center}.neeto-editor-menu-font-size-options .neeto-editor-menu-font-size-options__item-btn--selected{background-color:rgb(var(--neeto-ui-accent-100))!important;color:rgb(var(--neeto-ui-accent-800))!important}";
|
|
19465
19644
|
n(css,{});
|
|
19466
19645
|
|
|
19467
19646
|
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; }
|
|
@@ -19528,5 +19707,5 @@ var Menu = function Menu(props) {
|
|
|
19528
19707
|
}));
|
|
19529
19708
|
};
|
|
19530
19709
|
|
|
19531
|
-
export { combineTransactionSteps as A, getChangedRanges as B, findChildrenInRange 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, BubbleMenu as L, Menu as M, Node as N, getLinkPopoverPosition as O, PasteRule as P, getMarkType as Q, ReactNodeViewRenderer as R, getMarkRange as S, useEditor as T, useEditorState$1 as U, EditorContent as V, MediaUploader as W, EmbedOption as X, EditorView as Y, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, isAtStartOfNode as e, isAtEndOfNode as f, getMarkAttributes as g, getNodeType
|
|
19532
|
-
//# sourceMappingURL=chunk-
|
|
19710
|
+
export { combineTransactionSteps as A, getChangedRanges as B, findChildrenInRange 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, BubbleMenu as L, Menu as M, Node as N, getLinkPopoverPosition as O, PasteRule as P, getMarkType as Q, ReactNodeViewRenderer as R, getMarkRange as S, useEditor as T, useEditorState$1 as U, EditorContent as V, MediaUploader as W, EmbedOption as X, EditorView as Y, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, isAtStartOfNode as e, isAtEndOfNode as f, getMarkAttributes as g, getNodeType as h, isNodeActive as i, getNodeAtPosition as j, keydownHandler as k, callOrReturn as l, mergeAttributes as m, getExtensionField as n, isNodeSelection as o, nodeInputRule as p, findChildren as q, NodeViewWrapper as r, NodeViewContent as s, textblockTypeInputRule as t, escapeForRegEx as u, validateUrl as v, wrappingInputRule as w, ReactRenderer as x, EmojiPickerMenu as y, emojiPickerApi as z };
|
|
19711
|
+
//# sourceMappingURL=chunk-BQ6gyl4W.js.map
|