@bigbinary/neeto-editor 1.47.32 → 1.47.34
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 +22 -273
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{chunk-zoKBhh5D.js → chunk-airIORki.js} +2 -53
- package/dist/{chunk-zoKBhh5D.js.map → chunk-airIORki.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +22 -273
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +1 -1
- package/dist/cjs/Menu.cjs.js +1 -1
- package/dist/cjs/{chunk-D44ZMvgb.cjs.js → chunk-BCoa9xCZ.cjs.js} +1 -57
- package/dist/cjs/{chunk-D44ZMvgb.cjs.js.map → chunk-BCoa9xCZ.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -2
package/dist/FormikEditor.js
CHANGED
|
@@ -8,7 +8,7 @@ import Editor from './Editor.js';
|
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-airIORki.js';
|
|
12
12
|
import './chunk-DmrvuTKK.js';
|
|
13
13
|
import 'i18next';
|
|
14
14
|
import '@bigbinary/neeto-icons/TextH1';
|
package/dist/Menu.js
CHANGED
|
@@ -3,7 +3,7 @@ import '@babel/runtime/helpers/toConsumableArray';
|
|
|
3
3
|
import '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'ramda';
|
|
6
|
-
export { M as default } from './chunk-
|
|
6
|
+
export { M as default } from './chunk-airIORki.js';
|
|
7
7
|
import './chunk-BNz8RkZK.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './chunk-DmrvuTKK.js';
|
|
@@ -12286,30 +12286,6 @@ function getMarksBetween(from, to, doc) {
|
|
|
12286
12286
|
return marks;
|
|
12287
12287
|
}
|
|
12288
12288
|
|
|
12289
|
-
/**
|
|
12290
|
-
* Finds the first node of a given type or name in the current selection.
|
|
12291
|
-
* @param state The editor state.
|
|
12292
|
-
* @param typeOrName The node type or name.
|
|
12293
|
-
* @param pos The position to start searching from.
|
|
12294
|
-
* @param maxDepth The maximum depth to search.
|
|
12295
|
-
* @returns The node and the depth as an array.
|
|
12296
|
-
*/
|
|
12297
|
-
const getNodeAtPosition = (state, typeOrName, pos, maxDepth = 20) => {
|
|
12298
|
-
const $pos = state.doc.resolve(pos);
|
|
12299
|
-
let currentDepth = maxDepth;
|
|
12300
|
-
let node = null;
|
|
12301
|
-
while (currentDepth > 0 && node === null) {
|
|
12302
|
-
const currentNode = $pos.node(currentDepth);
|
|
12303
|
-
if ((currentNode === null || currentNode === void 0 ? void 0 : currentNode.type.name) === typeOrName) {
|
|
12304
|
-
node = currentNode;
|
|
12305
|
-
}
|
|
12306
|
-
else {
|
|
12307
|
-
currentDepth -= 1;
|
|
12308
|
-
}
|
|
12309
|
-
}
|
|
12310
|
-
return [node, currentDepth];
|
|
12311
|
-
};
|
|
12312
|
-
|
|
12313
12289
|
/**
|
|
12314
12290
|
* Return attributes of an extension that should be splitted by keepOnSplit flag
|
|
12315
12291
|
* @param extensionAttributes Array of extension attributes
|
|
@@ -12407,33 +12383,6 @@ function isActive(state, name, attributes = {}) {
|
|
|
12407
12383
|
return false;
|
|
12408
12384
|
}
|
|
12409
12385
|
|
|
12410
|
-
const isAtEndOfNode = (state, nodeType) => {
|
|
12411
|
-
const { $from, $to, $anchor } = state.selection;
|
|
12412
|
-
if (nodeType) {
|
|
12413
|
-
const parentNode = findParentNode(node => node.type.name === nodeType)(state.selection);
|
|
12414
|
-
if (!parentNode) {
|
|
12415
|
-
return false;
|
|
12416
|
-
}
|
|
12417
|
-
const $parentPos = state.doc.resolve(parentNode.pos + 1);
|
|
12418
|
-
if ($anchor.pos + 1 === $parentPos.end()) {
|
|
12419
|
-
return true;
|
|
12420
|
-
}
|
|
12421
|
-
return false;
|
|
12422
|
-
}
|
|
12423
|
-
if ($to.parentOffset < $to.parent.nodeSize - 2 || $from.pos !== $to.pos) {
|
|
12424
|
-
return false;
|
|
12425
|
-
}
|
|
12426
|
-
return true;
|
|
12427
|
-
};
|
|
12428
|
-
|
|
12429
|
-
const isAtStartOfNode = (state) => {
|
|
12430
|
-
const { $from, $to } = state.selection;
|
|
12431
|
-
if ($from.parentOffset > 0 || $from.pos !== $to.pos) {
|
|
12432
|
-
return false;
|
|
12433
|
-
}
|
|
12434
|
-
return true;
|
|
12435
|
-
};
|
|
12436
|
-
|
|
12437
12386
|
function isList(name, extensions) {
|
|
12438
12387
|
const { nodeExtensions } = splitExtensions(extensions);
|
|
12439
12388
|
const extension = nodeExtensions.find(item => item.name === name);
|
|
@@ -19833,5 +19782,5 @@ var Menu = function Menu(props) {
|
|
|
19833
19782
|
}));
|
|
19834
19783
|
};
|
|
19835
19784
|
|
|
19836
|
-
export {
|
|
19837
|
-
//# sourceMappingURL=chunk-
|
|
19785
|
+
export { resetFocussedNode as A, findParentNodeClosestToPos as B, CALLOUT_TYPES as C, DecorationSet as D, Extension as E, BubbleMenu as F, getLinkPopoverPosition as G, getMarkType as H, InputRule as I, getMarkRange as J, useEditor as K, useEditorState$1 as L, Menu as M, Node as N, EditorContent as O, PasteRule as P, MediaUploader as Q, ReactNodeViewRenderer as R, LinkAddPopOver as S, EditorView as T, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, callOrReturn as e, getExtensionField as f, getMarkAttributes as g, NodeViewWrapper as h, isNodeSelection as i, NodeViewContent as j, keydownHandler as k, findChildren as l, mergeAttributes as m, nodeInputRule as n, escapeForRegEx as o, ReactRenderer as p, EmojiPickerMenu as q, emojiPickerApi as r, combineTransactionSteps as s, textblockTypeInputRule as t, getChangedRanges as u, findChildrenInRange as v, wrappingInputRule as w, getMarksBetween as x, getAttributes as y, highlightFocussedNode as z };
|
|
19786
|
+
//# sourceMappingURL=chunk-airIORki.js.map
|