@bigbinary/neeto-editor 1.39.9 → 1.39.10
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 +1 -1
- package/dist/FormikEditor.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{chunk-6e497ab8.js → chunk-4a46a0f1.js} +7 -5
- package/dist/{chunk-6e497ab8.js.map → chunk-4a46a0f1.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +1 -1
- package/dist/cjs/FormikEditor.cjs.js +1 -1
- package/dist/cjs/Menu.cjs.js +1 -1
- package/dist/cjs/{chunk-9ac1129b.cjs.js → chunk-f9539961.cjs.js} +7 -5
- package/dist/cjs/{chunk-9ac1129b.cjs.js.map → chunk-f9539961.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 -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, useEffect, useState, useRef, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
7
|
-
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, g as getMarkAttributes, N as Node, D as DecorationSet, d as Decoration, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, n as nodeInputRule, h as findChildren, i as NodeViewWrapper, j as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, l as escapeForRegEx, o as ReactRenderer, p as EmojiPickerMenu, q as emojiPickerApi, r as combineTransactionSteps, s as getChangedRanges, u as findChildrenInRange, x as getMarksBetween, y as getAttributes, I as InputRule, z as highlightFocussedNode, A as resetFocussedNode, B as findParentNodeClosestToPos, C as BubbleMenu, F as getLinkPopoverPosition, G as getMarkType, H as getMarkRange, J as useEditor, M as Menu$3, K as EditorContent, L as MediaUploader, O as EmbedOption, Q as EditorView } from './chunk-
|
|
7
|
+
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, g as getMarkAttributes, N as Node, D as DecorationSet, d as Decoration, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, n as nodeInputRule, h as findChildren, i as NodeViewWrapper, j as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, l as escapeForRegEx, o as ReactRenderer, p as EmojiPickerMenu, q as emojiPickerApi, r as combineTransactionSteps, s as getChangedRanges, u as findChildrenInRange, x as getMarksBetween, y as getAttributes, I as InputRule, z as highlightFocussedNode, A as resetFocussedNode, B as findParentNodeClosestToPos, C as BubbleMenu, F as getLinkPopoverPosition, G as getMarkType, H as getMarkRange, J as useEditor, M as Menu$3, K as EditorContent, L as MediaUploader, O as EmbedOption, Q as EditorView } from './chunk-4a46a0f1.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS } from './chunk-edd8b9fe.js';
|
|
10
10
|
import { isNotPresent, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
package/dist/FormikEditor.js
CHANGED
|
@@ -7,7 +7,7 @@ import Editor from './Editor.js';
|
|
|
7
7
|
import '@babel/runtime/helpers/defineProperty';
|
|
8
8
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-4a46a0f1.js';
|
|
11
11
|
import 'ramda';
|
|
12
12
|
import './chunk-15c449f1.js';
|
|
13
13
|
import 'i18next';
|
package/dist/Menu.js
CHANGED
|
@@ -4,7 +4,7 @@ import '@babel/runtime/helpers/toConsumableArray';
|
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'ramda';
|
|
7
|
-
export { M as default } from './chunk-
|
|
7
|
+
export { M as default } from './chunk-4a46a0f1.js';
|
|
8
8
|
import './chunk-d17f73d0.js';
|
|
9
9
|
import './chunk-15c449f1.js';
|
|
10
10
|
import 'i18next';
|
|
@@ -14549,8 +14549,7 @@ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
14549
14549
|
var Fixed = function Fixed(_ref) {
|
|
14550
14550
|
var editor = _ref.editor,
|
|
14551
14551
|
options = _ref.options,
|
|
14552
|
-
|
|
14553
|
-
mentions = _ref$mentions === void 0 ? [] : _ref$mentions,
|
|
14552
|
+
mentions = _ref.mentions,
|
|
14554
14553
|
_ref$variables = _ref.variables,
|
|
14555
14554
|
variables = _ref$variables === void 0 ? [] : _ref$variables,
|
|
14556
14555
|
setMediaUploader = _ref.setMediaUploader,
|
|
@@ -15207,13 +15206,15 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
15207
15206
|
tooltipContent = _ref.tooltipContent,
|
|
15208
15207
|
label = _ref.label;
|
|
15209
15208
|
var dropdownRef = useRef(null);
|
|
15209
|
+
var lastOption = last(FONT_SIZE_OPTIONS);
|
|
15210
15210
|
var _useEditorStore = useEditorStore(function (store) {
|
|
15211
15211
|
var _store$marksState;
|
|
15212
15212
|
return {
|
|
15213
15213
|
fontSizeOption: (_store$marksState = store["marksState"]) === null || _store$marksState === void 0 ? void 0 : _store$marksState["fontSizeOption"]
|
|
15214
15214
|
};
|
|
15215
15215
|
}, shallow),
|
|
15216
|
-
|
|
15216
|
+
_useEditorStore$fontS = _useEditorStore.fontSizeOption,
|
|
15217
|
+
activeOption = _useEditorStore$fontS === void 0 ? lastOption : _useEditorStore$fontS;
|
|
15217
15218
|
var handleClick = function handleClick(level) {
|
|
15218
15219
|
return level ? runEditorCommand(function (editor) {
|
|
15219
15220
|
return editor.chain().focus().toggleHeading({
|
|
@@ -15609,7 +15610,8 @@ var buildMenuOptions = function buildMenuOptions(_ref3) {
|
|
|
15609
15610
|
attachmentProps = _ref3.attachmentProps,
|
|
15610
15611
|
setIsEmbedModalOpen = _ref3.setIsEmbedModalOpen,
|
|
15611
15612
|
setIsAddLinkActive = _ref3.setIsAddLinkActive,
|
|
15612
|
-
mentions = _ref3.mentions,
|
|
15613
|
+
_ref3$mentions = _ref3.mentions,
|
|
15614
|
+
mentions = _ref3$mentions === void 0 ? [] : _ref3$mentions,
|
|
15613
15615
|
addonCommands = _ref3.addonCommands,
|
|
15614
15616
|
setIsEmojiPickerActive = _ref3.setIsEmojiPickerActive,
|
|
15615
15617
|
isEmojiPickerActive = _ref3.isEmojiPickerActive,
|
|
@@ -15776,4 +15778,4 @@ var Menu = function Menu(props) {
|
|
|
15776
15778
|
};
|
|
15777
15779
|
|
|
15778
15780
|
export { resetFocussedNode as A, findParentNodeClosestToPos as B, BubbleMenu as C, DecorationSet as D, Extension as E, getLinkPopoverPosition as F, getMarkType as G, getMarkRange as H, InputRule as I, useEditor as J, EditorContent as K, MediaUploader as L, Menu as M, Node as N, EmbedOption as O, PasteRule as P, EditorView as Q, ReactNodeViewRenderer as R, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, callOrReturn as e, getExtensionField as f, getMarkAttributes as g, findChildren as h, NodeViewWrapper as i, NodeViewContent as j, keydownHandler as k, escapeForRegEx as l, mergeAttributes as m, nodeInputRule as n, ReactRenderer as o, EmojiPickerMenu as p, emojiPickerApi as q, combineTransactionSteps as r, getChangedRanges as s, textblockTypeInputRule as t, findChildrenInRange as u, validateUrl as v, wrappingInputRule as w, getMarksBetween as x, getAttributes as y, highlightFocussedNode as z };
|
|
15779
|
-
//# sourceMappingURL=chunk-
|
|
15781
|
+
//# sourceMappingURL=chunk-4a46a0f1.js.map
|