@bigbinary/neeto-editor 1.47.20 → 1.47.21

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 CHANGED
@@ -4,7 +4,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
5
  import * as React from 'react';
6
6
  import React__default, { memo, useEffect, useState, useRef, useCallback, createElement, forwardRef, useImperativeHandle } from 'react';
7
- import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, i as isNodeActive, e as isAtStartOfNode, f as isAtEndOfNode, h as getNodeType, j as getNodeAtPosition, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, l as callOrReturn, n as getExtensionField, o as isNodeSelection, p as nodeInputRule, C as CALLOUT_TYPES, q as NodeViewWrapper, r as NodeViewContent, R as ReactNodeViewRenderer, s as findChildren, P as PasteRule, v as validateUrl, u as escapeForRegEx, x as ReactRenderer, y as EmojiPickerMenu, z as emojiPickerApi, A as combineTransactionSteps, B as getChangedRanges, F as findChildrenInRange, G as getMarksBetween, H as getAttributes, I as InputRule, J as highlightFocussedNode, K as resetFocussedNode, L as findParentNodeClosestToPos, O as BubbleMenu, Q as getLinkPopoverPosition, S as getMarkType, T as getMarkRange, U as useEditor, V as useEditorState, M as Menu$3, W as EditorContent, X as MediaUploader, Y as EmbedOption, Z as LinkAddPopOver, _ as EditorView } from './chunk-g94B5C4Y.js';
7
+ import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, i as isNodeActive, e as isAtStartOfNode, f as isAtEndOfNode, h as getNodeType, j as getNodeAtPosition, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, l as callOrReturn, n as getExtensionField, o as isNodeSelection, p as nodeInputRule, C as CALLOUT_TYPES, q as NodeViewWrapper, r as NodeViewContent, R as ReactNodeViewRenderer, s as findChildren, P as PasteRule, v as validateUrl, u as escapeForRegEx, x as ReactRenderer, y as EmojiPickerMenu, z as emojiPickerApi, A as combineTransactionSteps, B as getChangedRanges, F as findChildrenInRange, G as getMarksBetween, H as getAttributes, I as InputRule, J as highlightFocussedNode, K as resetFocussedNode, L as findParentNodeClosestToPos, O as BubbleMenu, Q as getLinkPopoverPosition, S as getMarkType, T as getMarkRange, U as useEditor, V as useEditorState, M as Menu$3, W as EditorContent, X as MediaUploader, Y as EmbedOption, Z as LinkAddPopOver, _ as EditorView } from './chunk-DadYJ-PV.js';
8
8
  import classnames from 'classnames';
9
9
  import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, a as EDITOR_SIZES } from './chunk-DtYaAyZo.js';
10
10
  import { isNotPresent, findBy, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
@@ -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-g94B5C4Y.js';
11
+ import './chunk-DadYJ-PV.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-g94B5C4Y.js';
6
+ export { M as default } from './chunk-DadYJ-PV.js';
7
7
  import './chunk-CY_7yUut.js';
8
8
  import 'react/jsx-runtime';
9
9
  import './chunk-DmrvuTKK.js';
@@ -19228,14 +19228,16 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
19228
19228
  }).run();
19229
19229
  })();
19230
19230
  };
19231
- var handleBackgroundColorClick = function handleBackgroundColorClick(colorVar) {
19231
+ var handleBackgroundColorClick = function handleBackgroundColorClick(colorVar, event) {
19232
+ event.stopPropagation();
19232
19233
  if (backgroundColor === "var(".concat(colorVar, ")")) {
19233
19234
  updateBackgroundColor(null);
19234
19235
  } else {
19235
19236
  updateBackgroundColor("var(".concat(colorVar, ")"));
19236
19237
  }
19237
19238
  };
19238
- var handleTextColorClick = function handleTextColorClick(colorVar) {
19239
+ var handleTextColorClick = function handleTextColorClick(colorVar, event) {
19240
+ event.stopPropagation();
19239
19241
  if (textColor === "var(".concat(colorVar, ")")) {
19240
19242
  editor.chain().focus().unsetColor().run();
19241
19243
  } else {
@@ -19250,8 +19252,8 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
19250
19252
  isTextColor: isTextColor,
19251
19253
  key: idx,
19252
19254
  isSelected: isTextColor ? textColor === "var(".concat(colorVar, ")") : backgroundColor === "var(".concat(colorVar, ")"),
19253
- onClick: function onClick() {
19254
- return isTextColor ? handleTextColorClick(colorVar) : handleBackgroundColorClick(colorVar);
19255
+ onClick: function onClick(event) {
19256
+ return isTextColor ? handleTextColorClick(colorVar, event) : handleBackgroundColorClick(colorVar, event);
19255
19257
  }
19256
19258
  });
19257
19259
  });
@@ -19900,4 +19902,4 @@ var Menu = function Menu(props) {
19900
19902
  };
19901
19903
 
19902
19904
  export { combineTransactionSteps as A, getChangedRanges as B, CALLOUT_TYPES as C, DecorationSet as D, Extension as E, findChildrenInRange as F, getMarksBetween as G, getAttributes as H, InputRule as I, highlightFocussedNode as J, resetFocussedNode as K, findParentNodeClosestToPos as L, Menu as M, Node as N, BubbleMenu as O, PasteRule as P, getLinkPopoverPosition as Q, ReactNodeViewRenderer as R, getMarkType as S, getMarkRange as T, useEditor as U, useEditorState$1 as V, EditorContent as W, MediaUploader as X, EmbedOption as Y, LinkAddPopOver as Z, EditorView as _, 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, validateUrl as v, wrappingInputRule as w, ReactRenderer as x, EmojiPickerMenu as y, emojiPickerApi as z };
19903
- //# sourceMappingURL=chunk-g94B5C4Y.js.map
19905
+ //# sourceMappingURL=chunk-DadYJ-PV.js.map