@bigbinary/neeto-editor 1.47.103 → 1.47.104
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/FormikEditor.js +2 -2
- package/dist/Menu.js +2 -2
- package/dist/{chunk-BOAmmpv4.js → chunk-B7tHOpir.js} +14 -5
- package/dist/{chunk-BOAmmpv4.js.map → chunk-B7tHOpir.js.map} +1 -1
- package/dist/{chunk-D-4C066v.js → chunk-CmM0OmZo.js} +2 -2
- package/dist/{chunk-D-4C066v.js.map → chunk-CmM0OmZo.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +2 -2
- package/dist/cjs/FormikEditor.cjs.js +2 -2
- package/dist/cjs/Menu.cjs.js +2 -2
- package/dist/cjs/{chunk-D2lzFp9p.cjs.js → chunk-2w0QpL4j.cjs.js} +2 -2
- package/dist/cjs/{chunk-D2lzFp9p.cjs.js.map → chunk-2w0QpL4j.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-BWXzVFnj.cjs.js → chunk-CLeV8Bxb.cjs.js} +14 -5
- package/dist/cjs/{chunk-BWXzVFnj.cjs.js.map → chunk-CLeV8Bxb.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/utils.cjs.js +1 -1
- package/dist/editor-stats.html +19 -1
- package/dist/index.js +2 -2
- package/dist/utils.js +1 -1
- package/package.json +1 -1
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, useState, useEffect, 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, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as getNodeType, j as getNodeAtPosition, l as isNodeActive, o as isAtStartOfNode, p as isAtEndOfNode, C as CALLOUT_TYPES, q as NodeViewWrapper, r as NodeViewContent, R as ReactNodeViewRenderer, s as findChildren, u as escapeForRegEx, v as ReactRenderer, x as EmojiPickerMenu, y as emojiPickerApi, z as combineTransactionSteps, A as getChangedRanges, B as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, P as PasteRule, L as validateUrl, O as BubbleMenu, Q as getLinkPopoverPosition, S as getMarkType, T as getMarkRange, U as useEditor, V as useEditorState, M as Menu$4, W as MenuDynamicVariables, X as EditorContent, Y as MediaUploader, Z as LinkAddPopOver, _ as EditorView } from './chunk-
|
|
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, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as getNodeType, j as getNodeAtPosition, l as isNodeActive, o as isAtStartOfNode, p as isAtEndOfNode, C as CALLOUT_TYPES, q as NodeViewWrapper, r as NodeViewContent, R as ReactNodeViewRenderer, s as findChildren, u as escapeForRegEx, v as ReactRenderer, x as EmojiPickerMenu, y as emojiPickerApi, z as combineTransactionSteps, A as getChangedRanges, B as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, P as PasteRule, L as validateUrl, O as BubbleMenu, Q as getLinkPopoverPosition, S as getMarkType, T as getMarkRange, U as useEditor, V as useEditorState, M as Menu$4, W as MenuDynamicVariables, X as EditorContent, Y as MediaUploader, Z as LinkAddPopOver, _ as EditorView } from './chunk-CmM0OmZo.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from './chunk-DNMH2cJJ.js';
|
|
10
10
|
import { isNotPresent, findBy, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
|
@@ -20,7 +20,7 @@ import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
|
20
20
|
import { useQuery } from '@tanstack/react-query';
|
|
21
21
|
import axios from 'axios';
|
|
22
22
|
import { n } from './chunk-DmrvuTKK.js';
|
|
23
|
-
import { P as Plugin, o as PluginKey, b as Slice, F as Fragment$1, T as TextSelection, S as Selection, d as dropPoint, N as NodeSelection, q as Mapping$1, M as Mark$1, e as MarkType, R as ReplaceError, s as SelectionRange, u as buildLevelsFromOptions, v as validateAndFormatUrl, w as getEditorStyles, x as clipboardTextParser, y as transformPastedHTML, z as setInitialPosition } from './chunk-
|
|
23
|
+
import { P as Plugin, o as PluginKey, b as Slice, F as Fragment$1, T as TextSelection, S as Selection, d as dropPoint, N as NodeSelection, q as Mapping$1, M as Mark$1, e as MarkType, R as ReplaceError, s as SelectionRange, u as buildLevelsFromOptions, v as validateAndFormatUrl, w as getEditorStyles, x as clipboardTextParser, y as transformPastedHTML, z as setInitialPosition } from './chunk-B7tHOpir.js';
|
|
24
24
|
import ReactDOM from 'react-dom/server';
|
|
25
25
|
import { L as LINK_VALIDATION_SCHEMA, D as DEFAULT_EDITOR_OPTIONS } from './chunk-DxGDZoUl.js';
|
|
26
26
|
import * as Y from 'yjs';
|
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-CmM0OmZo.js';
|
|
12
12
|
import './chunk-DmrvuTKK.js';
|
|
13
13
|
import 'i18next';
|
|
14
14
|
import '@bigbinary/neeto-icons/TextH1';
|
|
@@ -17,7 +17,7 @@ import '@bigbinary/neeto-icons/TextH3';
|
|
|
17
17
|
import '@bigbinary/neeto-icons/TextH4';
|
|
18
18
|
import '@bigbinary/neeto-icons/TextH5';
|
|
19
19
|
import '@bigbinary/neeto-icons/TextP';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-B7tHOpir.js';
|
|
21
21
|
import './chunk-DNMH2cJJ.js';
|
|
22
22
|
import './chunk-DxGDZoUl.js';
|
|
23
23
|
import 'yup';
|
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-CmM0OmZo.js';
|
|
7
7
|
import './chunk-DxGDZoUl.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './chunk-DmrvuTKK.js';
|
|
@@ -14,7 +14,7 @@ import '@bigbinary/neeto-icons/TextH3';
|
|
|
14
14
|
import '@bigbinary/neeto-icons/TextH4';
|
|
15
15
|
import '@bigbinary/neeto-icons/TextH5';
|
|
16
16
|
import '@bigbinary/neeto-icons/TextP';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-B7tHOpir.js';
|
|
18
18
|
import '@bigbinary/neeto-cist';
|
|
19
19
|
import './chunk-DNMH2cJJ.js';
|
|
20
20
|
import 'tippy.js';
|
|
@@ -6697,10 +6697,19 @@ var isEmojiSuggestionsMenuActive = function isEmojiSuggestionsMenuActive() {
|
|
|
6697
6697
|
var transformPastedHTML = function transformPastedHTML(content) {
|
|
6698
6698
|
var contentWithoutBr = content.replaceAll("<br />", "<p></p>");
|
|
6699
6699
|
var doc = new DOMParser().parseFromString(contentWithoutBr, "text/html");
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6700
|
+
|
|
6701
|
+
// ProseMirror tags clipboard output from any TipTap/ProseMirror editor with
|
|
6702
|
+
// `data-pm-slice`. When present, the paste is coming from another
|
|
6703
|
+
// neeto-editor instance and we preserve the author's color choices. When
|
|
6704
|
+
// absent, the source is external (Word, websites, customer messages) and we
|
|
6705
|
+
// strip inline colors so foreign theming does not bleed into the editor.
|
|
6706
|
+
var isInternalPaste = doc.querySelector("[data-pm-slice]") !== null;
|
|
6707
|
+
if (!isInternalPaste) {
|
|
6708
|
+
doc.querySelectorAll("[style]").forEach(function (el) {
|
|
6709
|
+
el.style.color = "";
|
|
6710
|
+
el.style.backgroundColor = "";
|
|
6711
|
+
});
|
|
6712
|
+
}
|
|
6704
6713
|
return doc.body.innerHTML;
|
|
6705
6714
|
};
|
|
6706
6715
|
var buildLevelsFromOptions = function buildLevelsFromOptions(options) {
|
|
@@ -6713,4 +6722,4 @@ var buildLevelsFromOptions = function buildLevelsFromOptions(options) {
|
|
|
6713
6722
|
};
|
|
6714
6723
|
|
|
6715
6724
|
export { AllSelection as A, DOMSerializer as D, EditorState as E, Fragment as F, Mark as M, NodeSelection as N, Plugin as P, ReplaceError as R, Selection as S, TextSelection as T, isEmojiSuggestionsMenuActive as a, Slice as b, DOMParser$1 as c, dropPoint as d, MarkType as e, ReplaceStep as f, canJoin as g, canSplit as h, isEditorOverlaysActive as i, joinPoint as j, ReplaceAroundStep as k, liftTarget as l, findWrapping as m, NodeRange as n, PluginKey as o, Schema as p, Mapping as q, replaceStep as r, SelectionRange as s, transformEditorContent as t, buildLevelsFromOptions as u, validateAndFormatUrl as v, getEditorStyles as w, clipboardTextParser as x, transformPastedHTML as y, setInitialPosition as z };
|
|
6716
|
-
//# sourceMappingURL=chunk-
|
|
6725
|
+
//# sourceMappingURL=chunk-B7tHOpir.js.map
|