@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
|
@@ -22,6 +22,7 @@ var neetoCist = require('@bigbinary/neeto-cist');
|
|
|
22
22
|
require('tippy.js/dist/svg-arrow.css');
|
|
23
23
|
var Link = require('@bigbinary/neeto-icons/Link');
|
|
24
24
|
var Column = require('@bigbinary/neeto-icons/Column');
|
|
25
|
+
var Down = require('@bigbinary/neeto-icons/Down');
|
|
25
26
|
var Dropdown$1 = require('@bigbinary/neetoui/Dropdown');
|
|
26
27
|
var reactI18next = require('react-i18next');
|
|
27
28
|
var Close = require('@bigbinary/neeto-icons/Close');
|
|
@@ -75,7 +76,6 @@ var _commonjsHelpers = require('./chunk-B83fTs8d.cjs.js');
|
|
|
75
76
|
var Checkbox = require('@bigbinary/neetoui/Checkbox');
|
|
76
77
|
var shallow = require('zustand/shallow');
|
|
77
78
|
var zustand = require('zustand');
|
|
78
|
-
var Down = require('@bigbinary/neeto-icons/Down');
|
|
79
79
|
var MenuHorizontal = require('@bigbinary/neeto-icons/MenuHorizontal');
|
|
80
80
|
var Tippy = require('@tippyjs/react');
|
|
81
81
|
var File = require('@bigbinary/neeto-icons/File');
|
|
@@ -9994,7 +9994,7 @@ function getAttributesFromExtensions(extensions) {
|
|
|
9994
9994
|
return extensionAttributes;
|
|
9995
9995
|
}
|
|
9996
9996
|
|
|
9997
|
-
function getNodeType
|
|
9997
|
+
function getNodeType(nameOrType, schema) {
|
|
9998
9998
|
if (typeof nameOrType === 'string') {
|
|
9999
9999
|
if (!schema.nodes[nameOrType]) {
|
|
10000
10000
|
throw Error(`There is no node type named '${nameOrType}'. Maybe you forgot to add the extension?`);
|
|
@@ -10847,7 +10847,7 @@ class ExtensionManager {
|
|
|
10847
10847
|
options: extension.options,
|
|
10848
10848
|
storage: extension.storage,
|
|
10849
10849
|
editor,
|
|
10850
|
-
type: getNodeType
|
|
10850
|
+
type: getNodeType(extension.name, this.schema),
|
|
10851
10851
|
};
|
|
10852
10852
|
const addNodeView = getExtensionField(extension, 'addNodeView', context);
|
|
10853
10853
|
if (!addNodeView) {
|
|
@@ -11194,7 +11194,7 @@ const deleteCurrentNode = () => ({ tr, dispatch }) => {
|
|
|
11194
11194
|
};
|
|
11195
11195
|
|
|
11196
11196
|
const deleteNode = typeOrName => ({ tr, state, dispatch }) => {
|
|
11197
|
-
const type = getNodeType
|
|
11197
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
11198
11198
|
const $pos = tr.selection.$anchor;
|
|
11199
11199
|
for (let depth = $pos.depth; depth > 0; depth -= 1) {
|
|
11200
11200
|
const node = $pos.node(depth);
|
|
@@ -11782,7 +11782,7 @@ const keyboardShortcut = name => ({ editor, view, tr, dispatch, }) => {
|
|
|
11782
11782
|
|
|
11783
11783
|
function isNodeActive(state, typeOrName, attributes = {}) {
|
|
11784
11784
|
const { from, to, empty } = state.selection;
|
|
11785
|
-
const type = typeOrName ? getNodeType
|
|
11785
|
+
const type = typeOrName ? getNodeType(typeOrName, state.schema) : null;
|
|
11786
11786
|
const nodeRanges = [];
|
|
11787
11787
|
state.doc.nodesBetween(from, to, (node, pos) => {
|
|
11788
11788
|
if (node.isText) {
|
|
@@ -11813,7 +11813,7 @@ function isNodeActive(state, typeOrName, attributes = {}) {
|
|
|
11813
11813
|
}
|
|
11814
11814
|
|
|
11815
11815
|
const lift = (typeOrName, attributes = {}) => ({ state, dispatch }) => {
|
|
11816
|
-
const type = getNodeType
|
|
11816
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
11817
11817
|
const isActive = isNodeActive(state, type, attributes);
|
|
11818
11818
|
if (!isActive) {
|
|
11819
11819
|
return false;
|
|
@@ -11826,7 +11826,7 @@ const liftEmptyBlock = () => ({ state, dispatch }) => {
|
|
|
11826
11826
|
};
|
|
11827
11827
|
|
|
11828
11828
|
const liftListItem = typeOrName => ({ state, dispatch }) => {
|
|
11829
|
-
const type = getNodeType
|
|
11829
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
11830
11830
|
return liftListItem$1(type)(state, dispatch);
|
|
11831
11831
|
};
|
|
11832
11832
|
|
|
@@ -11877,7 +11877,7 @@ const resetAttributes = (typeOrName, attributes) => ({ tr, state, dispatch }) =>
|
|
|
11877
11877
|
return false;
|
|
11878
11878
|
}
|
|
11879
11879
|
if (schemaType === 'node') {
|
|
11880
|
-
nodeType = getNodeType
|
|
11880
|
+
nodeType = getNodeType(typeOrName, state.schema);
|
|
11881
11881
|
}
|
|
11882
11882
|
if (schemaType === 'mark') {
|
|
11883
11883
|
markType = getMarkType(typeOrName, state.schema);
|
|
@@ -12139,7 +12139,7 @@ function getText(node, options) {
|
|
|
12139
12139
|
}
|
|
12140
12140
|
|
|
12141
12141
|
function getNodeAttributes(state, typeOrName) {
|
|
12142
|
-
const type = getNodeType
|
|
12142
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12143
12143
|
const { from, to } = state.selection;
|
|
12144
12144
|
const nodes = [];
|
|
12145
12145
|
state.doc.nodesBetween(from, to, node => {
|
|
@@ -12602,7 +12602,7 @@ const setMeta = (key, value) => ({ tr }) => {
|
|
|
12602
12602
|
};
|
|
12603
12603
|
|
|
12604
12604
|
const setNode = (typeOrName, attributes = {}) => ({ state, dispatch, chain }) => {
|
|
12605
|
-
const type = getNodeType
|
|
12605
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12606
12606
|
// TODO: use a fallback like insertContent?
|
|
12607
12607
|
if (!type.isTextblock) {
|
|
12608
12608
|
console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.');
|
|
@@ -12648,7 +12648,7 @@ const setTextSelection = position => ({ tr, dispatch }) => {
|
|
|
12648
12648
|
};
|
|
12649
12649
|
|
|
12650
12650
|
const sinkListItem = typeOrName => ({ state, dispatch }) => {
|
|
12651
|
-
const type = getNodeType
|
|
12651
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12652
12652
|
return sinkListItem$1(type)(state, dispatch);
|
|
12653
12653
|
};
|
|
12654
12654
|
|
|
@@ -12729,7 +12729,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr, state, dispatch, editor
|
|
|
12729
12729
|
|
|
12730
12730
|
const splitListItem = (typeOrName, overrideAttrs = {}) => ({ tr, state, dispatch, editor, }) => {
|
|
12731
12731
|
var _a;
|
|
12732
|
-
const type = getNodeType
|
|
12732
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12733
12733
|
const { $from, $to } = state.selection;
|
|
12734
12734
|
// @ts-ignore
|
|
12735
12735
|
// eslint-disable-next-line
|
|
@@ -12856,8 +12856,8 @@ const joinListForwards = (tr, listType) => {
|
|
|
12856
12856
|
};
|
|
12857
12857
|
const toggleList = (listTypeOrName, itemTypeOrName, keepMarks, attributes = {}) => ({ editor, tr, state, dispatch, chain, commands, can, }) => {
|
|
12858
12858
|
const { extensions, splittableMarks } = editor.extensionManager;
|
|
12859
|
-
const listType = getNodeType
|
|
12860
|
-
const itemType = getNodeType
|
|
12859
|
+
const listType = getNodeType(listTypeOrName, state.schema);
|
|
12860
|
+
const itemType = getNodeType(itemTypeOrName, state.schema);
|
|
12861
12861
|
const { selection, storedMarks } = state;
|
|
12862
12862
|
const { $from, $to } = selection;
|
|
12863
12863
|
const range = $from.blockRange($to);
|
|
@@ -12928,8 +12928,8 @@ const toggleMark = (typeOrName, attributes = {}, options = {}) => ({ state, comm
|
|
|
12928
12928
|
};
|
|
12929
12929
|
|
|
12930
12930
|
const toggleNode = (typeOrName, toggleTypeOrName, attributes = {}) => ({ state, commands }) => {
|
|
12931
|
-
const type = getNodeType
|
|
12932
|
-
const toggleType = getNodeType
|
|
12931
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12932
|
+
const toggleType = getNodeType(toggleTypeOrName, state.schema);
|
|
12933
12933
|
const isActive = isNodeActive(state, type, attributes);
|
|
12934
12934
|
if (isActive) {
|
|
12935
12935
|
return commands.setNode(toggleType);
|
|
@@ -12938,7 +12938,7 @@ const toggleNode = (typeOrName, toggleTypeOrName, attributes = {}) => ({ state,
|
|
|
12938
12938
|
};
|
|
12939
12939
|
|
|
12940
12940
|
const toggleWrap = (typeOrName, attributes = {}) => ({ state, commands }) => {
|
|
12941
|
-
const type = getNodeType
|
|
12941
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
12942
12942
|
const isActive = isNodeActive(state, type, attributes);
|
|
12943
12943
|
if (isActive) {
|
|
12944
12944
|
return commands.lift(type);
|
|
@@ -13024,7 +13024,7 @@ const updateAttributes = (typeOrName, attributes = {}) => ({ tr, state, dispatch
|
|
|
13024
13024
|
return false;
|
|
13025
13025
|
}
|
|
13026
13026
|
if (schemaType === 'node') {
|
|
13027
|
-
nodeType = getNodeType
|
|
13027
|
+
nodeType = getNodeType(typeOrName, state.schema);
|
|
13028
13028
|
}
|
|
13029
13029
|
if (schemaType === 'mark') {
|
|
13030
13030
|
markType = getMarkType(typeOrName, state.schema);
|
|
@@ -13059,12 +13059,12 @@ const updateAttributes = (typeOrName, attributes = {}) => ({ tr, state, dispatch
|
|
|
13059
13059
|
};
|
|
13060
13060
|
|
|
13061
13061
|
const wrapIn = (typeOrName, attributes = {}) => ({ state, dispatch }) => {
|
|
13062
|
-
const type = getNodeType
|
|
13062
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
13063
13063
|
return wrapIn$1(type, attributes)(state, dispatch);
|
|
13064
13064
|
};
|
|
13065
13065
|
|
|
13066
13066
|
const wrapInList = (typeOrName, attributes = {}) => ({ state, dispatch }) => {
|
|
13067
|
-
const type = getNodeType
|
|
13067
|
+
const type = getNodeType(typeOrName, state.schema);
|
|
13068
13068
|
return wrapInList$1(type, attributes)(state, dispatch);
|
|
13069
13069
|
};
|
|
13070
13070
|
|
|
@@ -15701,8 +15701,8 @@ var emojiPickerApi = {
|
|
|
15701
15701
|
fetch: fetch
|
|
15702
15702
|
};
|
|
15703
15703
|
|
|
15704
|
-
function ownKeys$
|
|
15705
|
-
function _objectSpread$
|
|
15704
|
+
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; }
|
|
15705
|
+
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; }
|
|
15706
15706
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15707
15707
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15708
15708
|
var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15754,7 +15754,7 @@ var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
15754
15754
|
return _createClass$1(EmojiPickerMenu, [{
|
|
15755
15755
|
key: "componentDidMount",
|
|
15756
15756
|
value: function componentDidMount() {
|
|
15757
|
-
new emojiMart.Picker(_objectSpread$
|
|
15757
|
+
new emojiMart.Picker(_objectSpread$c(_objectSpread$c({}, this.props), {}, {
|
|
15758
15758
|
onEmojiSelect: this.handleSelect,
|
|
15759
15759
|
style: {
|
|
15760
15760
|
maxWidth: "100%"
|
|
@@ -15812,8 +15812,8 @@ var useEditorStore = zustand.create(reactUtils.withImmutableActions(function (se
|
|
|
15812
15812
|
};
|
|
15813
15813
|
}));
|
|
15814
15814
|
|
|
15815
|
-
function ownKeys$
|
|
15816
|
-
function _objectSpread$
|
|
15815
|
+
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; }
|
|
15816
|
+
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; }
|
|
15817
15817
|
var MenuButton = function MenuButton(_ref) {
|
|
15818
15818
|
var icon = _ref.icon,
|
|
15819
15819
|
command = _ref.command,
|
|
@@ -15832,7 +15832,7 @@ var MenuButton = function MenuButton(_ref) {
|
|
|
15832
15832
|
isActive = _useEditorStore.isActive,
|
|
15833
15833
|
_useEditorStore$disab = _useEditorStore.disabled,
|
|
15834
15834
|
disabled = _useEditorStore$disab === void 0 ? isButtonDisabled : _useEditorStore$disab;
|
|
15835
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$
|
|
15835
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$b({
|
|
15836
15836
|
disabled: disabled,
|
|
15837
15837
|
icon: icon,
|
|
15838
15838
|
className: "neeto-editor-fixed-menu__item",
|
|
@@ -16008,7 +16008,6 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16008
16008
|
autoFocus: true,
|
|
16009
16009
|
"data-cy": "neeto-editor-fixed-menu-table-option-input",
|
|
16010
16010
|
min: "1",
|
|
16011
|
-
placeholder: t("neetoEditor.placeholders.rows"),
|
|
16012
16011
|
type: "number",
|
|
16013
16012
|
value: rows,
|
|
16014
16013
|
onChange: utils$1.withEventTargetValue(setRows)
|
|
@@ -16021,7 +16020,6 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16021
16020
|
}), /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
16022
16021
|
"data-cy": "neeto-editor-bubble-menu-table-option-input",
|
|
16023
16022
|
min: "1",
|
|
16024
|
-
placeholder: t("neetoEditor.placeholders.columns"),
|
|
16025
16023
|
type: "number",
|
|
16026
16024
|
value: columns,
|
|
16027
16025
|
onChange: utils$1.withEventTargetValue(setColumns)
|
|
@@ -16031,11 +16029,13 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16031
16029
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
16032
16030
|
"data-cy": "neeto-editor-bubble-menu-table-option-create-button",
|
|
16033
16031
|
icon: Check,
|
|
16032
|
+
size: "small",
|
|
16034
16033
|
style: "secondary",
|
|
16035
16034
|
onClick: handleSubmit
|
|
16036
16035
|
}), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
16037
16036
|
"data-cy": "neeto-editor-bubble-menu-table-option-create-button",
|
|
16038
16037
|
icon: Close,
|
|
16038
|
+
size: "small",
|
|
16039
16039
|
style: "secondary",
|
|
16040
16040
|
onClick: handleClose
|
|
16041
16041
|
})]
|
|
@@ -16043,8 +16043,8 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16043
16043
|
});
|
|
16044
16044
|
};
|
|
16045
16045
|
|
|
16046
|
-
function ownKeys$
|
|
16047
|
-
function _objectSpread$
|
|
16046
|
+
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; }
|
|
16047
|
+
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; }
|
|
16048
16048
|
var createMenuOptions$2 = function createMenuOptions(_ref) {
|
|
16049
16049
|
var tooltips = _ref.tooltips,
|
|
16050
16050
|
editor = _ref.editor,
|
|
@@ -16221,8 +16221,9 @@ var buildBubbleMenuOptions = function buildBubbleMenuOptions(_ref2) {
|
|
|
16221
16221
|
var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
16222
16222
|
var editor = _ref3.editor,
|
|
16223
16223
|
options = _ref3.options;
|
|
16224
|
-
var textOptions = _defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
16224
|
+
var textOptions = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, constants.EDITOR_OPTIONS.H1, {
|
|
16225
16225
|
optionName: "Heading 1",
|
|
16226
|
+
icon: TextH1,
|
|
16226
16227
|
active: editor.isActive("heading", {
|
|
16227
16228
|
level: 1
|
|
16228
16229
|
}),
|
|
@@ -16233,6 +16234,7 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16233
16234
|
}
|
|
16234
16235
|
}), constants.EDITOR_OPTIONS.H2, {
|
|
16235
16236
|
optionName: "Heading 2",
|
|
16237
|
+
icon: TextH2,
|
|
16236
16238
|
active: editor.isActive("heading", {
|
|
16237
16239
|
level: 2
|
|
16238
16240
|
}),
|
|
@@ -16243,6 +16245,7 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16243
16245
|
}
|
|
16244
16246
|
}), constants.EDITOR_OPTIONS.H3, {
|
|
16245
16247
|
optionName: "Heading 3",
|
|
16248
|
+
icon: TextH3,
|
|
16246
16249
|
active: editor.isActive("heading", {
|
|
16247
16250
|
level: 3
|
|
16248
16251
|
}),
|
|
@@ -16251,20 +16254,9 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16251
16254
|
level: 3
|
|
16252
16255
|
}).run();
|
|
16253
16256
|
}
|
|
16254
|
-
}), constants.EDITOR_OPTIONS.LIST_ORDERED, {
|
|
16255
|
-
optionName: "Ordered List",
|
|
16256
|
-
active: editor.isActive("orderedList"),
|
|
16257
|
-
command: function command() {
|
|
16258
|
-
return editor.chain().focus().toggleOrderedList().run();
|
|
16259
|
-
}
|
|
16260
|
-
}), constants.EDITOR_OPTIONS.LIST_BULLETS, {
|
|
16261
|
-
optionName: "Bulleted List",
|
|
16262
|
-
active: editor.isActive("bulletList"),
|
|
16263
|
-
command: function command() {
|
|
16264
|
-
return editor.chain().focus().toggleBulletList().run();
|
|
16265
|
-
}
|
|
16266
16257
|
}), constants.EDITOR_OPTIONS.PARAGRAPH, {
|
|
16267
16258
|
optionName: "Text",
|
|
16259
|
+
icon: TextP,
|
|
16268
16260
|
active: editor.isActive("paragraph"),
|
|
16269
16261
|
command: function command() {
|
|
16270
16262
|
return editor.chain().focus().setNode("paragraph").run();
|
|
@@ -16277,9 +16269,9 @@ var getTextMenuDropdownOptions = function getTextMenuDropdownOptions(_ref3) {
|
|
|
16277
16269
|
});
|
|
16278
16270
|
return result;
|
|
16279
16271
|
};
|
|
16280
|
-
var
|
|
16272
|
+
var getNodeIcon = function getNodeIcon(options) {
|
|
16281
16273
|
var _options$find;
|
|
16282
|
-
return ((_options$find = options.find(ramda.prop("active"))) === null || _options$find === void 0 ? void 0 : _options$find.
|
|
16274
|
+
return ((_options$find = options.find(ramda.prop("active"))) === null || _options$find === void 0 ? void 0 : _options$find.icon) || TextP;
|
|
16283
16275
|
};
|
|
16284
16276
|
var renderOptionButton = function renderOptionButton(_ref4) {
|
|
16285
16277
|
var tooltip = _ref4.tooltip,
|
|
@@ -16288,16 +16280,16 @@ var renderOptionButton = function renderOptionButton(_ref4) {
|
|
|
16288
16280
|
active = _ref4.active,
|
|
16289
16281
|
optionName = _ref4.optionName,
|
|
16290
16282
|
highlight = _ref4.highlight;
|
|
16291
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$
|
|
16283
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$a({
|
|
16284
|
+
className: "neeto-editor-bubble-menu__item",
|
|
16292
16285
|
"data-cy": "neeto-editor-bubble-menu-".concat(optionName, "-option"),
|
|
16293
16286
|
icon: Icon,
|
|
16294
|
-
size: "
|
|
16287
|
+
size: "medium",
|
|
16295
16288
|
style: active ? "secondary" : "text",
|
|
16296
16289
|
tooltipProps: {
|
|
16297
16290
|
content: tooltip,
|
|
16298
16291
|
position: "bottom",
|
|
16299
|
-
theme: "dark"
|
|
16300
|
-
delay: [500]
|
|
16292
|
+
theme: "dark"
|
|
16301
16293
|
},
|
|
16302
16294
|
onClick: command
|
|
16303
16295
|
}, generateFocusProps(highlight)), optionName);
|
|
@@ -16411,7 +16403,8 @@ var TextColorOption = function TextColorOption(_ref) {
|
|
|
16411
16403
|
buttonProps: {
|
|
16412
16404
|
tabIndex: -1,
|
|
16413
16405
|
tooltipProps: {
|
|
16414
|
-
content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label
|
|
16406
|
+
content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label,
|
|
16407
|
+
position: "bottom"
|
|
16415
16408
|
},
|
|
16416
16409
|
className: "neeto-editor-fixed-menu__item neeto-editor-text-color-option"
|
|
16417
16410
|
},
|
|
@@ -16493,7 +16486,7 @@ var Options = function Options(_ref) {
|
|
|
16493
16486
|
editor: editor,
|
|
16494
16487
|
options: options
|
|
16495
16488
|
});
|
|
16496
|
-
var
|
|
16489
|
+
var Icon = getNodeIcon(dropdownOptions);
|
|
16497
16490
|
var isEmojiActive = options.includes(constants.EDITOR_OPTIONS.EMOJI);
|
|
16498
16491
|
var isTextColorOptionActive = options.includes(constants.EDITOR_OPTIONS.TEXT_COLOR);
|
|
16499
16492
|
var isLinkActive = options.includes(constants.EDITOR_OPTIONS.LINK);
|
|
@@ -16537,15 +16530,36 @@ var Options = function Options(_ref) {
|
|
|
16537
16530
|
children: [/*#__PURE__*/jsxRuntime.jsx(Dropdown$1, {
|
|
16538
16531
|
buttonSize: "small",
|
|
16539
16532
|
buttonStyle: "text",
|
|
16540
|
-
label:
|
|
16533
|
+
label: Icon,
|
|
16541
16534
|
strategy: "fixed",
|
|
16535
|
+
buttonProps: {
|
|
16536
|
+
icon: Icon,
|
|
16537
|
+
iconPosition: "left",
|
|
16538
|
+
iconSize: 22,
|
|
16539
|
+
label: /*#__PURE__*/jsxRuntime.jsx(Down, {
|
|
16540
|
+
size: 12
|
|
16541
|
+
}),
|
|
16542
|
+
"data-cy": "neeto-editor-fixed-menu-font-size-option",
|
|
16543
|
+
style: "text",
|
|
16544
|
+
size: "small",
|
|
16545
|
+
className: "neeto-editor-bubble-menu__item neeto-editor-font-size__wrapper"
|
|
16546
|
+
},
|
|
16542
16547
|
children: /*#__PURE__*/jsxRuntime.jsx(Menu, {
|
|
16548
|
+
className: "neeto-ui-flex neeto-ui-gap-1 neeto-editor-menu-font-size-options",
|
|
16543
16549
|
children: dropdownOptions.map(function (_ref2) {
|
|
16544
16550
|
var optionName = _ref2.optionName,
|
|
16545
|
-
command = _ref2.command
|
|
16551
|
+
command = _ref2.command,
|
|
16552
|
+
Icon = _ref2.icon;
|
|
16546
16553
|
return /*#__PURE__*/jsxRuntime.jsx(MenuItem.Button, {
|
|
16554
|
+
className: "neeto-editor-menu-font-size-options__item-btn",
|
|
16555
|
+
tooltipProps: {
|
|
16556
|
+
content: optionName,
|
|
16557
|
+
position: "bottom"
|
|
16558
|
+
},
|
|
16547
16559
|
onClick: command,
|
|
16548
|
-
children:
|
|
16560
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
16561
|
+
size: 22
|
|
16562
|
+
})
|
|
16549
16563
|
}, optionName);
|
|
16550
16564
|
})
|
|
16551
16565
|
})
|
|
@@ -16629,7 +16643,7 @@ var Bubble = function Bubble(_ref) {
|
|
|
16629
16643
|
setIsLinkOptionActive(false);
|
|
16630
16644
|
setIsTableOptionActive(false);
|
|
16631
16645
|
},
|
|
16632
|
-
theme: "neeto-editor-bubble-menu",
|
|
16646
|
+
theme: "light neeto-editor-bubble-menu-tippy-box",
|
|
16633
16647
|
maxWidth: 500
|
|
16634
16648
|
},
|
|
16635
16649
|
children: /*#__PURE__*/jsxRuntime.jsx(Options, {
|
|
@@ -18101,8 +18115,8 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
18101
18115
|
};
|
|
18102
18116
|
|
|
18103
18117
|
var _excluded$3 = ["type"];
|
|
18104
|
-
function ownKeys$
|
|
18105
|
-
function _objectSpread$
|
|
18118
|
+
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; }
|
|
18119
|
+
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; }
|
|
18106
18120
|
var Menu$3 = Dropdown$1.Menu,
|
|
18107
18121
|
MenuItem$1 = Dropdown$1.MenuItem;
|
|
18108
18122
|
var MoreMenu = function MoreMenu(_ref) {
|
|
@@ -18123,18 +18137,18 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
18123
18137
|
var Component = MENU_ELEMENTS[type];
|
|
18124
18138
|
if (type === MENU_ELEMENT_TYPES.BUTTON) {
|
|
18125
18139
|
var Icon = props.icon;
|
|
18126
|
-
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$1.Button, _objectSpread$
|
|
18140
|
+
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$1.Button, _objectSpread$9(_objectSpread$9({
|
|
18127
18141
|
"data-cy": "neeto-editor-fixed-menu-".concat(props.optionName, "-option"),
|
|
18128
18142
|
isActive: editor.isActive(props.optionName),
|
|
18129
18143
|
tabIndex: "-1",
|
|
18130
18144
|
onClick: props.command
|
|
18131
|
-
}, _objectSpread$
|
|
18145
|
+
}, _objectSpread$9(_objectSpread$9(_objectSpread$9({}, generateFocusProps(props.highlight)), props), {}, {
|
|
18132
18146
|
editor: editor
|
|
18133
18147
|
})), {}, {
|
|
18134
18148
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon, {}), " ", props.label]
|
|
18135
18149
|
}), props.optionName);
|
|
18136
18150
|
}
|
|
18137
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
18151
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$9(_objectSpread$9({}, _objectSpread$9(_objectSpread$9({}, props), {}, {
|
|
18138
18152
|
editor: editor
|
|
18139
18153
|
}, generateFocusProps(props.highlight))), {}, {
|
|
18140
18154
|
isSecondaryMenu: true
|
|
@@ -18147,8 +18161,8 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
18147
18161
|
|
|
18148
18162
|
var EDITOR_MARKS = [constants.EDITOR_OPTIONS.UNDO, constants.EDITOR_OPTIONS.REDO, "fontSizeOptions", constants.EDITOR_OPTIONS.BOLD, constants.EDITOR_OPTIONS.ITALIC, constants.EDITOR_OPTIONS.UNDERLINE, constants.EDITOR_OPTIONS.LINK, constants.EDITOR_OPTIONS.STRIKETHROUGH, constants.EDITOR_OPTIONS.HIGHLIGHT, "bulletList", "orderedList", "blockquote", constants.EDITOR_OPTIONS.CODE, "codeBlock", constants.EDITOR_OPTIONS.TABLE, constants.EDITOR_OPTIONS.ATTACHMENTS, constants.EDITOR_OPTIONS.IMAGE_UPLOAD, constants.EDITOR_OPTIONS.VIDEO_UPLOAD, constants.EDITOR_OPTIONS.VIDEO_EMBED, constants.EDITOR_OPTIONS.TEXT_COLOR, constants.EDITOR_OPTIONS.EMOJI, "mentions"];
|
|
18149
18163
|
|
|
18150
|
-
function ownKeys$
|
|
18151
|
-
function _objectSpread$
|
|
18164
|
+
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; }
|
|
18165
|
+
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; }
|
|
18152
18166
|
var useEditorState = function useEditorState(_ref) {
|
|
18153
18167
|
var editor = _ref.editor;
|
|
18154
18168
|
var _useEditorStore = useEditorStore(function (store) {
|
|
@@ -18184,7 +18198,7 @@ var useEditorState = function useEditorState(_ref) {
|
|
|
18184
18198
|
var redoOptionState = {
|
|
18185
18199
|
disabled: !editor.can().redo()
|
|
18186
18200
|
};
|
|
18187
|
-
var updatedMarksState = _objectSpread$
|
|
18201
|
+
var updatedMarksState = _objectSpread$8(_objectSpread$8({}, marksState), {}, _defineProperty(_defineProperty({}, constants.EDITOR_OPTIONS.UNDO, undoOptionState), constants.EDITOR_OPTIONS.REDO, redoOptionState));
|
|
18188
18202
|
setMarksState(updatedMarksState);
|
|
18189
18203
|
}, [marksState, setMarksState]);
|
|
18190
18204
|
React.useEffect(function () {
|
|
@@ -18204,8 +18218,8 @@ var useEditorState = function useEditorState(_ref) {
|
|
|
18204
18218
|
};
|
|
18205
18219
|
|
|
18206
18220
|
var _excluded$2 = ["type"];
|
|
18207
|
-
function ownKeys$
|
|
18208
|
-
function _objectSpread$
|
|
18221
|
+
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; }
|
|
18222
|
+
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; }
|
|
18209
18223
|
var Fixed = function Fixed(_ref) {
|
|
18210
18224
|
var editor = _ref.editor,
|
|
18211
18225
|
options = _ref.options,
|
|
@@ -18304,7 +18318,8 @@ var Fixed = function Fixed(_ref) {
|
|
|
18304
18318
|
mentions: mentions,
|
|
18305
18319
|
addonCommands: addonCommands,
|
|
18306
18320
|
setIsEmojiPickerActive: setIsEmojiPickerActive,
|
|
18307
|
-
isEmojiPickerActive: isEmojiPickerActive
|
|
18321
|
+
isEmojiPickerActive: isEmojiPickerActive,
|
|
18322
|
+
editor: editor
|
|
18308
18323
|
});
|
|
18309
18324
|
}, [isEmojiPickerActive, mentions]);
|
|
18310
18325
|
var handleResize = React.useCallback(function () {
|
|
@@ -18356,7 +18371,7 @@ var Fixed = function Fixed(_ref) {
|
|
|
18356
18371
|
props = _objectWithoutProperties$1(_ref2, _excluded$2);
|
|
18357
18372
|
var Component = MENU_ELEMENTS[type];
|
|
18358
18373
|
if (!Component) return null;
|
|
18359
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
18374
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$7({}, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
18360
18375
|
editor: editor,
|
|
18361
18376
|
options: options
|
|
18362
18377
|
})), props.optionName);
|
|
@@ -18405,8 +18420,8 @@ var Fixed = function Fixed(_ref) {
|
|
|
18405
18420
|
};
|
|
18406
18421
|
|
|
18407
18422
|
var _excluded$1 = ["icon", "onClick", "disabled", "className", "tooltipProps"];
|
|
18408
|
-
function ownKeys$
|
|
18409
|
-
function _objectSpread$
|
|
18423
|
+
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; }
|
|
18424
|
+
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; }
|
|
18410
18425
|
var Button = function Button(_ref) {
|
|
18411
18426
|
var _ref$icon = _ref.icon,
|
|
18412
18427
|
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
@@ -18418,16 +18433,16 @@ var Button = function Button(_ref) {
|
|
|
18418
18433
|
tooltipProps = _ref.tooltipProps,
|
|
18419
18434
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$1);
|
|
18420
18435
|
var Icon = icon;
|
|
18421
|
-
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, _objectSpread$
|
|
18436
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, _objectSpread$6(_objectSpread$6({
|
|
18422
18437
|
disabled: !tooltipProps,
|
|
18423
18438
|
onClick: function onClick() {
|
|
18424
18439
|
return _onClick();
|
|
18425
18440
|
}
|
|
18426
18441
|
}, tooltipProps), {}, {
|
|
18427
|
-
children: /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread$
|
|
18442
|
+
children: /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread$6(_objectSpread$6({
|
|
18428
18443
|
className: classnames("ne-headless-btn", _defineProperty({}, className, className)),
|
|
18429
18444
|
type: "button"
|
|
18430
|
-
}, _objectSpread$
|
|
18445
|
+
}, _objectSpread$6({
|
|
18431
18446
|
disabled: disabled,
|
|
18432
18447
|
onClick: _onClick
|
|
18433
18448
|
}, otherProps)), {}, {
|
|
@@ -18440,8 +18455,8 @@ var Button = function Button(_ref) {
|
|
|
18440
18455
|
};
|
|
18441
18456
|
|
|
18442
18457
|
var _excluded = ["icon", "isOpen", "onClose", "children", "className", "onClick", "buttonProps"];
|
|
18443
|
-
function ownKeys$
|
|
18444
|
-
function _objectSpread$
|
|
18458
|
+
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; }
|
|
18459
|
+
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; }
|
|
18445
18460
|
var hideOnEsc = {
|
|
18446
18461
|
name: "hideOnEsc",
|
|
18447
18462
|
defaultValue: true,
|
|
@@ -18480,7 +18495,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
18480
18495
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18481
18496
|
mounted = _useState2[0],
|
|
18482
18497
|
setMounted = _useState2[1];
|
|
18483
|
-
return /*#__PURE__*/jsxRuntime.jsx(Tippy, _objectSpread$
|
|
18498
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tippy, _objectSpread$5(_objectSpread$5({
|
|
18484
18499
|
onClose: onClose,
|
|
18485
18500
|
hideOnEsc: true,
|
|
18486
18501
|
interactive: true,
|
|
@@ -18512,7 +18527,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
18512
18527
|
}
|
|
18513
18528
|
}, otherProps), {}, {
|
|
18514
18529
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
18515
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$
|
|
18530
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$5({}, _objectSpread$5({
|
|
18516
18531
|
icon: icon,
|
|
18517
18532
|
onClick: onClick
|
|
18518
18533
|
}, buttonProps)))
|
|
@@ -18585,8 +18600,8 @@ var Option = function Option(_ref) {
|
|
|
18585
18600
|
});
|
|
18586
18601
|
};
|
|
18587
18602
|
|
|
18588
|
-
function ownKeys$
|
|
18589
|
-
function _objectSpread$
|
|
18603
|
+
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; }
|
|
18604
|
+
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; }
|
|
18590
18605
|
var t = i18n.t;
|
|
18591
18606
|
var createMenuOptions$1 = function createMenuOptions(_ref) {
|
|
18592
18607
|
var editor = _ref.editor,
|
|
@@ -18745,7 +18760,7 @@ var buildOptionsFromAddonCommands$1 = function buildOptionsFromAddonCommands(_re
|
|
|
18745
18760
|
var to = editor.state.selection.to;
|
|
18746
18761
|
return commands.map(function (option) {
|
|
18747
18762
|
var _option$active;
|
|
18748
|
-
return _objectSpread$
|
|
18763
|
+
return _objectSpread$4(_objectSpread$4({}, option), {}, {
|
|
18749
18764
|
active: (_option$active = option.active) === null || _option$active === void 0 ? void 0 : _option$active.call(option, {
|
|
18750
18765
|
editor: editor
|
|
18751
18766
|
}),
|
|
@@ -18787,8 +18802,8 @@ var buildMenuOptions$1 = function buildMenuOptions(_ref3) {
|
|
|
18787
18802
|
}).filter(Boolean);
|
|
18788
18803
|
};
|
|
18789
18804
|
|
|
18790
|
-
function ownKeys$
|
|
18791
|
-
function _objectSpread$
|
|
18805
|
+
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; }
|
|
18806
|
+
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; }
|
|
18792
18807
|
var Headless = function Headless(_ref) {
|
|
18793
18808
|
var editor = _ref.editor,
|
|
18794
18809
|
options = _ref.options,
|
|
@@ -18826,7 +18841,7 @@ var Headless = function Headless(_ref) {
|
|
|
18826
18841
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
18827
18842
|
className: classnames("ne-headless", _defineProperty({}, className, className)),
|
|
18828
18843
|
children: [allOptions.map(function (option) {
|
|
18829
|
-
return /*#__PURE__*/React.createElement(Option, _objectSpread$
|
|
18844
|
+
return /*#__PURE__*/React.createElement(Option, _objectSpread$3({
|
|
18830
18845
|
editor: editor,
|
|
18831
18846
|
key: option.optionName
|
|
18832
18847
|
}, option));
|
|
@@ -18966,6 +18981,166 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
18966
18981
|
};
|
|
18967
18982
|
var FontSizeOption$1 = /*#__PURE__*/React.memo(FontSizeOption);
|
|
18968
18983
|
|
|
18984
|
+
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; }
|
|
18985
|
+
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; }
|
|
18986
|
+
var ColorDot = function ColorDot(_ref) {
|
|
18987
|
+
var colorVar = _ref.colorVar,
|
|
18988
|
+
isSelected = _ref.isSelected,
|
|
18989
|
+
onClick = _ref.onClick,
|
|
18990
|
+
isTextColor = _ref.isTextColor;
|
|
18991
|
+
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {
|
|
18992
|
+
"neeto-editor-highlight-dropdown__color-dot--selected": isSelected,
|
|
18993
|
+
"neeto-editor-highlight-dropdown__color-dot--background": !isTextColor
|
|
18994
|
+
});
|
|
18995
|
+
var dotStyle = _objectSpread$2({}, isTextColor ? {
|
|
18996
|
+
color: "var(".concat(colorVar, ")")
|
|
18997
|
+
} : {
|
|
18998
|
+
backgroundColor: "var(".concat(colorVar, ")")
|
|
18999
|
+
});
|
|
19000
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
19001
|
+
onClick: onClick,
|
|
19002
|
+
className: dotClass,
|
|
19003
|
+
style: dotStyle,
|
|
19004
|
+
children: isTextColor && /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
19005
|
+
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
19006
|
+
style: "body2",
|
|
19007
|
+
weight: "semibold",
|
|
19008
|
+
children: "A"
|
|
19009
|
+
})
|
|
19010
|
+
});
|
|
19011
|
+
};
|
|
19012
|
+
|
|
19013
|
+
var ColorDotIcon = function ColorDotIcon(_ref) {
|
|
19014
|
+
var textColor = _ref.textColor,
|
|
19015
|
+
backgroundColor = _ref.backgroundColor;
|
|
19016
|
+
var dotClass = classnames("neeto-editor-highlight-dropdown__color-dot", {});
|
|
19017
|
+
var dotStyle = {
|
|
19018
|
+
color: "var(".concat(textColor, ")"),
|
|
19019
|
+
backgroundColor: "var(".concat(backgroundColor, ")")
|
|
19020
|
+
};
|
|
19021
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
19022
|
+
className: dotClass,
|
|
19023
|
+
style: dotStyle,
|
|
19024
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
19025
|
+
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
19026
|
+
style: "body2",
|
|
19027
|
+
weight: "semibold",
|
|
19028
|
+
children: "A"
|
|
19029
|
+
})
|
|
19030
|
+
});
|
|
19031
|
+
};
|
|
19032
|
+
|
|
19033
|
+
var COLORS = {
|
|
19034
|
+
recent: ["--neeto-editor-highlight-bg-yellow-light"],
|
|
19035
|
+
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"],
|
|
19036
|
+
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"]
|
|
19037
|
+
};
|
|
19038
|
+
|
|
19039
|
+
var colorSections = [{
|
|
19040
|
+
title: "Text color",
|
|
19041
|
+
colors: COLORS.text,
|
|
19042
|
+
isTextColor: true
|
|
19043
|
+
}, {
|
|
19044
|
+
title: "Background color",
|
|
19045
|
+
colors: COLORS.background,
|
|
19046
|
+
isTextColor: false
|
|
19047
|
+
}];
|
|
19048
|
+
var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
19049
|
+
var editor = _ref.editor,
|
|
19050
|
+
label = _ref.label,
|
|
19051
|
+
tooltipContent = _ref.tooltipContent,
|
|
19052
|
+
runEditorCommand = _ref.runEditorCommand;
|
|
19053
|
+
var dropdownRef = React.useRef(null);
|
|
19054
|
+
var textColor = editor.getAttributes("textStyle").color;
|
|
19055
|
+
var backgroundColor = editor.getAttributes("textStyle").backgroundColor;
|
|
19056
|
+
var updateBackgroundColor = function updateBackgroundColor(value) {
|
|
19057
|
+
runEditorCommand(function (editor) {
|
|
19058
|
+
return editor.chain().focus().setMark("textStyle", {
|
|
19059
|
+
backgroundColor: value
|
|
19060
|
+
}).run();
|
|
19061
|
+
})();
|
|
19062
|
+
};
|
|
19063
|
+
var handleBackgroundColorClick = function handleBackgroundColorClick(colorVar) {
|
|
19064
|
+
if (backgroundColor === "var(".concat(colorVar, ")")) {
|
|
19065
|
+
updateBackgroundColor(null);
|
|
19066
|
+
} else {
|
|
19067
|
+
updateBackgroundColor("var(".concat(colorVar, ")"));
|
|
19068
|
+
}
|
|
19069
|
+
};
|
|
19070
|
+
var handleTextColorClick = function handleTextColorClick(colorVar) {
|
|
19071
|
+
if (textColor === "var(".concat(colorVar, ")")) {
|
|
19072
|
+
editor.chain().focus().unsetColor().run();
|
|
19073
|
+
} else {
|
|
19074
|
+
editor.chain().focus().setColor("var(".concat(colorVar, ")")).run();
|
|
19075
|
+
}
|
|
19076
|
+
};
|
|
19077
|
+
var renderColorDots = function renderColorDots(colorList) {
|
|
19078
|
+
var isTextColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
19079
|
+
return colorList.map(function (colorVar, idx) {
|
|
19080
|
+
return /*#__PURE__*/React.createElement(ColorDot, {
|
|
19081
|
+
colorVar: colorVar,
|
|
19082
|
+
isTextColor: isTextColor,
|
|
19083
|
+
key: idx,
|
|
19084
|
+
isSelected: isTextColor ? textColor === "var(".concat(colorVar, ")") : backgroundColor === "var(".concat(colorVar, ")"),
|
|
19085
|
+
onClick: function onClick() {
|
|
19086
|
+
return isTextColor ? handleTextColorClick(colorVar) : handleBackgroundColorClick(colorVar);
|
|
19087
|
+
}
|
|
19088
|
+
});
|
|
19089
|
+
});
|
|
19090
|
+
};
|
|
19091
|
+
return /*#__PURE__*/jsxRuntime.jsx(Dropdown$1, {
|
|
19092
|
+
autoWidth: true,
|
|
19093
|
+
placement: "bottom-start",
|
|
19094
|
+
strategy: "fixed",
|
|
19095
|
+
buttonProps: {
|
|
19096
|
+
icon: function icon() {
|
|
19097
|
+
return /*#__PURE__*/jsxRuntime.jsx(ColorDotIcon, {
|
|
19098
|
+
backgroundColor: backgroundColor,
|
|
19099
|
+
textColor: textColor
|
|
19100
|
+
});
|
|
19101
|
+
},
|
|
19102
|
+
iconPosition: "left",
|
|
19103
|
+
iconSize: 20,
|
|
19104
|
+
label: /*#__PURE__*/jsxRuntime.jsx(Down, {
|
|
19105
|
+
size: 12
|
|
19106
|
+
}),
|
|
19107
|
+
ref: dropdownRef,
|
|
19108
|
+
"data-cy": "neeto-editor-fixed-menu-highlight-option",
|
|
19109
|
+
onKeyDown: function onKeyDown(event) {
|
|
19110
|
+
var _dropdownRef$current;
|
|
19111
|
+
return event.key === "ArrowDown" && ((_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.click());
|
|
19112
|
+
},
|
|
19113
|
+
tooltipProps: {
|
|
19114
|
+
content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label,
|
|
19115
|
+
position: "bottom"
|
|
19116
|
+
},
|
|
19117
|
+
style: "text",
|
|
19118
|
+
size: "small",
|
|
19119
|
+
className: "neeto-editor-fixed-menu__item"
|
|
19120
|
+
},
|
|
19121
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Dropdown$1.Menu, {
|
|
19122
|
+
className: "neeto-editor-highlight-dropdown",
|
|
19123
|
+
children: colorSections.map(function (_ref2) {
|
|
19124
|
+
var title = _ref2.title,
|
|
19125
|
+
colors = _ref2.colors,
|
|
19126
|
+
isTextColor = _ref2.isTextColor;
|
|
19127
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
19128
|
+
className: "neeto-editor-highlight-dropdown__section",
|
|
19129
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
19130
|
+
className: "neeto-editor-highlight-dropdown__section-title",
|
|
19131
|
+
style: "body2",
|
|
19132
|
+
weight: "normal",
|
|
19133
|
+
children: title
|
|
19134
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
19135
|
+
className: "neeto-editor-highlight-dropdown__color-grid",
|
|
19136
|
+
children: renderColorDots(colors, isTextColor)
|
|
19137
|
+
})]
|
|
19138
|
+
}, title);
|
|
19139
|
+
})
|
|
19140
|
+
})
|
|
19141
|
+
});
|
|
19142
|
+
};
|
|
19143
|
+
|
|
18969
19144
|
var Menu$1 = Dropdown$1.Menu;
|
|
18970
19145
|
var TableOption = function TableOption(_ref) {
|
|
18971
19146
|
var editor = _ref.editor,
|
|
@@ -19069,7 +19244,8 @@ var MENU_ELEMENT_TYPES = {
|
|
|
19069
19244
|
TABLE: "table",
|
|
19070
19245
|
TEXT_COLOR: "textColor",
|
|
19071
19246
|
EMOJI: "emoji",
|
|
19072
|
-
MENTIONS: "mentions"
|
|
19247
|
+
MENTIONS: "mentions",
|
|
19248
|
+
HIGHLIGHT: "highlight"
|
|
19073
19249
|
};
|
|
19074
19250
|
var SHORTCUTS = (_SHORTCUTS = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_SHORTCUTS, constants.EDITOR_OPTIONS.BOLD, {
|
|
19075
19251
|
mac: "⌘B",
|
|
@@ -19105,13 +19281,13 @@ var SHORTCUTS = (_SHORTCUTS = {}, _defineProperty(_defineProperty(_definePropert
|
|
|
19105
19281
|
mac: "⌘⇧7",
|
|
19106
19282
|
win: "Ctrl+Shift+7"
|
|
19107
19283
|
}));
|
|
19108
|
-
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);
|
|
19109
|
-
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);
|
|
19284
|
+
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);
|
|
19285
|
+
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);
|
|
19110
19286
|
|
|
19111
19287
|
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; }
|
|
19112
19288
|
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; }
|
|
19113
19289
|
var createMenuOptions = function createMenuOptions(_ref) {
|
|
19114
|
-
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;
|
|
19290
|
+
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;
|
|
19115
19291
|
var tooltips = _ref.tooltips,
|
|
19116
19292
|
setMediaUploader = _ref.setMediaUploader,
|
|
19117
19293
|
attachmentProps = _ref.attachmentProps,
|
|
@@ -19122,7 +19298,8 @@ var createMenuOptions = function createMenuOptions(_ref) {
|
|
|
19122
19298
|
addonCommandOptions = _ref.addonCommandOptions,
|
|
19123
19299
|
setIsEmojiPickerActive = _ref.setIsEmojiPickerActive,
|
|
19124
19300
|
isEmojiPickerActive = _ref.isEmojiPickerActive,
|
|
19125
|
-
runEditorCommand = _ref.runEditorCommand
|
|
19301
|
+
runEditorCommand = _ref.runEditorCommand,
|
|
19302
|
+
editor = _ref.editor;
|
|
19126
19303
|
var fontSizeOptions = options.filter(function (option) {
|
|
19127
19304
|
return option.match(/^h[1-6]$/);
|
|
19128
19305
|
});
|
|
@@ -19192,14 +19369,14 @@ var createMenuOptions = function createMenuOptions(_ref) {
|
|
|
19192
19369
|
optionName: constants.EDITOR_OPTIONS.STRIKETHROUGH,
|
|
19193
19370
|
label: (_tooltips$strike = tooltips.strike) !== null && _tooltips$strike !== void 0 ? _tooltips$strike : i18n.t("neetoEditor.menu.strike")
|
|
19194
19371
|
}, {
|
|
19195
|
-
type: MENU_ELEMENT_TYPES.
|
|
19372
|
+
type: MENU_ELEMENT_TYPES.HIGHLIGHT,
|
|
19196
19373
|
icon: Highlight,
|
|
19374
|
+
label: (_tooltips$highlight = tooltips.highlight) !== null && _tooltips$highlight !== void 0 ? _tooltips$highlight : i18n.t("neetoEditor.menu.highlight"),
|
|
19197
19375
|
isEnabled: options.includes(constants.EDITOR_OPTIONS.HIGHLIGHT),
|
|
19198
|
-
command: runEditorCommand(function (editor) {
|
|
19199
|
-
return editor.chain().focus().toggleHighlight().run();
|
|
19200
|
-
}),
|
|
19201
19376
|
optionName: constants.EDITOR_OPTIONS.HIGHLIGHT,
|
|
19202
|
-
|
|
19377
|
+
editor: editor,
|
|
19378
|
+
runEditorCommand: runEditorCommand,
|
|
19379
|
+
tooltipContent: (_tooltips$highlight2 = tooltips.highlight) !== null && _tooltips$highlight2 !== void 0 ? _tooltips$highlight2 : i18n.t("neetoEditor.menu.highlight")
|
|
19203
19380
|
}],
|
|
19204
19381
|
// list
|
|
19205
19382
|
[{
|
|
@@ -19359,7 +19536,8 @@ var buildMenuOptions = function buildMenuOptions(_ref3) {
|
|
|
19359
19536
|
addonCommands = _ref3.addonCommands,
|
|
19360
19537
|
setIsEmojiPickerActive = _ref3.setIsEmojiPickerActive,
|
|
19361
19538
|
isEmojiPickerActive = _ref3.isEmojiPickerActive,
|
|
19362
|
-
runEditorCommand = _ref3.runEditorCommand
|
|
19539
|
+
runEditorCommand = _ref3.runEditorCommand,
|
|
19540
|
+
editor = _ref3.editor;
|
|
19363
19541
|
var addonCommandOptions = buildOptionsFromAddonCommands({
|
|
19364
19542
|
commands: addonCommands,
|
|
19365
19543
|
runEditorCommand: runEditorCommand
|
|
@@ -19375,7 +19553,8 @@ var buildMenuOptions = function buildMenuOptions(_ref3) {
|
|
|
19375
19553
|
addonCommandOptions: addonCommandOptions,
|
|
19376
19554
|
setIsEmojiPickerActive: setIsEmojiPickerActive,
|
|
19377
19555
|
isEmojiPickerActive: isEmojiPickerActive,
|
|
19378
|
-
runEditorCommand: runEditorCommand
|
|
19556
|
+
runEditorCommand: runEditorCommand,
|
|
19557
|
+
editor: editor
|
|
19379
19558
|
});
|
|
19380
19559
|
return menuOptions.map(function (option) {
|
|
19381
19560
|
return option.filter(ramda.prop("isEnabled"));
|
|
@@ -19463,7 +19642,7 @@ function renderTooltipContent(label, optionName) {
|
|
|
19463
19642
|
return "".concat(label, " (").concat(key, ")");
|
|
19464
19643
|
}
|
|
19465
19644
|
|
|
19466
|
-
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}";
|
|
19645
|
+
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}";
|
|
19467
19646
|
injectCss.n(css,{});
|
|
19468
19647
|
|
|
19469
19648
|
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; }
|
|
@@ -19564,7 +19743,7 @@ exports.getMarkRange = getMarkRange;
|
|
|
19564
19743
|
exports.getMarkType = getMarkType;
|
|
19565
19744
|
exports.getMarksBetween = getMarksBetween;
|
|
19566
19745
|
exports.getNodeAtPosition = getNodeAtPosition;
|
|
19567
|
-
exports.getNodeType = getNodeType
|
|
19746
|
+
exports.getNodeType = getNodeType;
|
|
19568
19747
|
exports.highlightFocussedNode = highlightFocussedNode;
|
|
19569
19748
|
exports.isAtEndOfNode = isAtEndOfNode;
|
|
19570
19749
|
exports.isAtStartOfNode = isAtStartOfNode;
|
|
@@ -19581,4 +19760,4 @@ exports.useEditor = useEditor;
|
|
|
19581
19760
|
exports.useEditorState = useEditorState$1;
|
|
19582
19761
|
exports.validateUrl = validateUrl;
|
|
19583
19762
|
exports.wrappingInputRule = wrappingInputRule;
|
|
19584
|
-
//# sourceMappingURL=chunk-
|
|
19763
|
+
//# sourceMappingURL=chunk-BxEO1Xq_.cjs.js.map
|