@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.
@@ -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-zoKBhh5D.js';
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-zoKBhh5D.js';
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 { getChangedRanges as A, findChildrenInRange as B, CALLOUT_TYPES as C, DecorationSet as D, Extension as E, getMarksBetween as F, getAttributes as G, highlightFocussedNode as H, InputRule as I, resetFocussedNode as J, findParentNodeClosestToPos as K, 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, LinkAddPopOver 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, NodeViewWrapper as q, NodeViewContent as r, findChildren as s, textblockTypeInputRule as t, escapeForRegEx as u, ReactRenderer as v, wrappingInputRule as w, EmojiPickerMenu as x, emojiPickerApi as y, combineTransactionSteps as z };
19837
- //# sourceMappingURL=chunk-zoKBhh5D.js.map
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