@bigbinary/neeto-editor 1.47.130 → 1.47.132
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/Attachments.js +3 -3
- package/dist/Editor.js +19 -9
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +2 -2
- package/dist/FormikEditor.js +6 -6
- package/dist/Menu.js +5 -5
- package/dist/{chunk-KiXJWA8i.js → chunk-1vCNA-at.js} +2 -2
- package/dist/{chunk-KiXJWA8i.js.map → chunk-1vCNA-at.js.map} +1 -1
- package/dist/{chunk-DtQctlVh.js → chunk-BN2ot0eJ.js} +4 -4
- package/dist/{chunk-DtQctlVh.js.map → chunk-BN2ot0eJ.js.map} +1 -1
- package/dist/{chunk--BjpQHaY.js → chunk-BaRCz8kF.js} +3 -3
- package/dist/{chunk--BjpQHaY.js.map → chunk-BaRCz8kF.js.map} +1 -1
- package/dist/{chunk-DdxH-PMo.js → chunk-C3QLxTd-.js} +4 -4
- package/dist/{chunk-DdxH-PMo.js.map → chunk-C3QLxTd-.js.map} +1 -1
- package/dist/{chunk-DSFIk2ef.js → chunk-Cjrs-UjE.js} +4 -4
- package/dist/{chunk-DSFIk2ef.js.map → chunk-Cjrs-UjE.js.map} +1 -1
- package/dist/{chunk-BwyS6si8.js → chunk-D3UBgQom.js} +3 -3
- package/dist/{chunk-BwyS6si8.js.map → chunk-D3UBgQom.js.map} +1 -1
- package/dist/{chunk-CF5f8-fy.js → chunk-DDFZ40sK.js} +2 -2
- package/dist/{chunk-CF5f8-fy.js.map → chunk-DDFZ40sK.js.map} +1 -1
- package/dist/{chunk-BSdgi_3H.js → chunk-DPXl1H2A.js} +15 -4
- package/dist/chunk-DPXl1H2A.js.map +1 -0
- package/dist/{chunk-DDwycKmK.js → chunk-DrHVV_g1.js} +9 -4
- package/dist/chunk-DrHVV_g1.js.map +1 -0
- package/dist/{chunk-CDPeBjvi.js → chunk-Pu0d3ZId.js} +9 -8
- package/dist/chunk-Pu0d3ZId.js.map +1 -0
- package/dist/{chunk-xCgPoq9w.js → chunk-QsL6T6V5.js} +2 -2
- package/dist/{chunk-xCgPoq9w.js.map → chunk-QsL6T6V5.js.map} +1 -1
- package/dist/{chunk-C_jttcYg.js → chunk-vncKwq6q.js} +3 -3
- package/dist/{chunk-C_jttcYg.js.map → chunk-vncKwq6q.js.map} +1 -1
- package/dist/cjs/Attachments.cjs.js +3 -3
- package/dist/cjs/Editor.cjs.js +19 -9
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +2 -2
- package/dist/cjs/FormikEditor.cjs.js +6 -6
- package/dist/cjs/Menu.cjs.js +5 -5
- package/dist/cjs/{chunk-DS2JcxXk.cjs.js → chunk-9Fllxi6z.cjs.js} +3 -3
- package/dist/cjs/{chunk-DS2JcxXk.cjs.js.map → chunk-9Fllxi6z.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-2HrSPdAV.cjs.js → chunk-Bmjmsp-E.cjs.js} +9 -4
- package/dist/cjs/chunk-Bmjmsp-E.cjs.js.map +1 -0
- package/dist/cjs/{chunk-n7U2G1az.cjs.js → chunk-CLoLWFsx.cjs.js} +4 -4
- package/dist/cjs/{chunk-n7U2G1az.cjs.js.map → chunk-CLoLWFsx.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-62QG5j0v.cjs.js → chunk-CMN8WDYd.cjs.js} +4 -4
- package/dist/cjs/{chunk-62QG5j0v.cjs.js.map → chunk-CMN8WDYd.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-DRJy8PFC.cjs.js → chunk-D86oGQis.cjs.js} +15 -3
- package/dist/cjs/chunk-D86oGQis.cjs.js.map +1 -0
- package/dist/cjs/{chunk-Cvxaj__T.cjs.js → chunk-DJosicB7.cjs.js} +3 -3
- package/dist/cjs/{chunk-Cvxaj__T.cjs.js.map → chunk-DJosicB7.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-D8Uup1eh.cjs.js → chunk-Dyzo4vqK.cjs.js} +4 -4
- package/dist/cjs/{chunk-D8Uup1eh.cjs.js.map → chunk-Dyzo4vqK.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CDAiAyof.cjs.js → chunk-LN_Txjhy.cjs.js} +2 -2
- package/dist/cjs/{chunk-CDAiAyof.cjs.js.map → chunk-LN_Txjhy.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-BGy3NmZC.cjs.js → chunk-hfcF0hnk.cjs.js} +2 -2
- package/dist/cjs/{chunk-BGy3NmZC.cjs.js.map → chunk-hfcF0hnk.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-Zpn4p-0s.cjs.js → chunk-u9FgmzyG.cjs.js} +9 -8
- package/dist/cjs/chunk-u9FgmzyG.cjs.js.map +1 -0
- package/dist/cjs/{chunk-B_7qxIrt.cjs.js → chunk-vT9IzHYQ.cjs.js} +3 -3
- package/dist/cjs/{chunk-B_7qxIrt.cjs.js.map → chunk-vT9IzHYQ.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-yX0BlnxV.cjs.js → chunk-vq1owZ-6.cjs.js} +2 -2
- package/dist/cjs/{chunk-yX0BlnxV.cjs.js.map → chunk-vq1owZ-6.cjs.js.map} +1 -1
- package/dist/cjs/constants.cjs.js +2 -2
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/utils.cjs.js +3 -3
- package/dist/cjs/v2/Attachments.cjs.js +3 -3
- package/dist/cjs/v2/Editor.cjs.js +10 -6
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/EditorContent.cjs.js +3 -3
- package/dist/cjs/v2/FormikEditor.cjs.js +5 -5
- package/dist/cjs/v2/Menu.cjs.js +3 -3
- package/dist/cjs/v2/constants.cjs.js +2 -2
- package/dist/cjs/v2/index.cjs.js +6 -6
- package/dist/cjs/v2/utils.cjs.js +3 -3
- package/dist/constants.js +2 -2
- package/dist/editor-stats.html +1 -19
- package/dist/index.js +6 -6
- package/dist/utils.js +3 -3
- package/dist/v2/Attachments.js +3 -3
- package/dist/v2/Editor.js +10 -6
- package/dist/v2/Editor.js.map +1 -1
- package/dist/v2/EditorContent.js +3 -3
- package/dist/v2/FormikEditor.js +5 -5
- package/dist/v2/Menu.js +3 -3
- package/dist/v2/constants.js +2 -2
- package/dist/v2/index.js +6 -6
- package/dist/v2/utils.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-BSdgi_3H.js.map +0 -1
- package/dist/chunk-CDPeBjvi.js.map +0 -1
- package/dist/chunk-DDwycKmK.js.map +0 -1
- package/dist/cjs/chunk-2HrSPdAV.cjs.js.map +0 -1
- package/dist/cjs/chunk-DRJy8PFC.cjs.js.map +0 -1
- package/dist/cjs/chunk-Zpn4p-0s.cjs.js.map +0 -1
package/dist/Attachments.js
CHANGED
|
@@ -11,8 +11,8 @@ import '@bigbinary/neetoui/Toastr';
|
|
|
11
11
|
import 'ramda';
|
|
12
12
|
import 'react-i18next';
|
|
13
13
|
import './chunk-BFKmIsWV.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
export { A as default } from './chunk-
|
|
14
|
+
import './chunk-QsL6T6V5.js';
|
|
15
|
+
export { A as default } from './chunk-C3QLxTd-.js';
|
|
16
16
|
import 'react/jsx-runtime';
|
|
17
17
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
18
18
|
import 'zustand';
|
|
@@ -37,7 +37,7 @@ import '@bigbinary/neeto-icons/AspectRatio43';
|
|
|
37
37
|
import '@bigbinary/neeto-icons/AspectRatio32';
|
|
38
38
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
39
39
|
import 'yup';
|
|
40
|
-
import './chunk-
|
|
40
|
+
import './chunk-DrHVV_g1.js';
|
|
41
41
|
import './chunk-C2dztUxs.js';
|
|
42
42
|
import '@bigbinary/neeto-commons-frontend/react-utils/useOnClickOutside';
|
|
43
43
|
import '@bigbinary/neeto-commons-frontend/utils';
|
package/dist/Editor.js
CHANGED
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
import React__default, { memo, useState, useRef, useCallback, useEffect, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
6
6
|
import { a as useEditorState, E as Extension, N as NodeViewWrapper, b as NodeViewContent, c as Node3, R as ReactNodeViewRenderer, m as mergeAttributes, D as DecorationSet, d as Decoration, f as ReactRenderer, e as emojiPickerApi, h as markInputRule, I as InputRule, r as resetFocussedNode, i as highlightFocussedNode, P as PasteRule, C as CellSelection, B as BubbleMenu, j as getMarkType, k as getMarkRange, l as useEditor, n as EditorContent, o as EditorView } from './chunk-ChNzXvhJ.js';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
-
import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from './chunk-
|
|
8
|
+
import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from './chunk-DrHVV_g1.js';
|
|
9
9
|
import { isNotPresent, findBy, isNotEmpty, isPresent, noop, slugify } from '@bigbinary/neeto-cist';
|
|
10
10
|
import { withT, useOnClickOutside, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
11
11
|
import Label from '@bigbinary/neetoui/Label';
|
|
@@ -14,12 +14,12 @@ import { is, intersection, difference, union, isEmpty, isNil, mergeRight, assoc,
|
|
|
14
14
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
15
15
|
import { B as BulletList$1, i as index_default, a as index_default$1, R as Resizable, b as index_default$2, L as Link$1, s as scrollHandler, c as index_default$3, O as OrderedList$1, d as index_default$4, f as fuzzySearch, T as Table$2, e as TaskList, g as TaskItem, C as CharacterCount, h as index_default$5, j as index_default$6, k as TextStyle, l as index_default$7, F as Focus, m as index_default$8, n as TableRow, o as TableHeader, p as TableCell, q as Color, r as ListItem, t as index_default$9, u as index_default$a, v as useFetchKbArticles, M as MODE, w as createArticleOptions, x as MODAL_LEFT_OFFSET, y as MODAL_TOP_OFFSET, z as MODAL_TRANSFORM_Y, A as MODAL_TRANSFORM_X, D as MODAL_BOTTOM_MARGIN, E as buildArticleFullUrl, G as useEditorWarnings, H as useDeletedArticles } from './chunk-Be5ikGpm.js';
|
|
16
16
|
import { n } from './chunk-C2dztUxs.js';
|
|
17
|
-
import { b as buildLevelsFromOptions, v as validateAndFormatUrl, g as getEditorStyles, c as transformPastedHTML, h as handlePaste, d as clipboardTextParser, s as setInitialPosition } from './chunk-
|
|
17
|
+
import { b as buildLevelsFromOptions, v as validateAndFormatUrl, g as getEditorStyles, c as transformPastedHTML, h as handlePaste, d as clipboardTextParser, s as setInitialPosition } from './chunk-vncKwq6q.js';
|
|
18
18
|
import ReactDOM from 'react-dom/server';
|
|
19
19
|
import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from './chunk-Qg4uQqj3.js';
|
|
20
|
-
import { L as LINK_VALIDATION_SCHEMA, D as DEFAULT_EDITOR_OPTIONS } from './chunk-
|
|
20
|
+
import { L as LINK_VALIDATION_SCHEMA, D as DEFAULT_EDITOR_OPTIONS } from './chunk-DDFZ40sK.js';
|
|
21
21
|
import Megaphone from '@bigbinary/neeto-icons/misc/Megaphone';
|
|
22
|
-
import { C as CALLOUT_TYPES, E as EmojiPickerMenu, v as validateUrl, g as getLinkPopoverPosition, M as Menu$4, a as MenuDynamicVariables, b as MediaUploader, L as LinkAddPopOver } from './chunk-
|
|
22
|
+
import { C as CALLOUT_TYPES, E as EmojiPickerMenu, v as validateUrl, g as getLinkPopoverPosition, M as Menu$4, a as MenuDynamicVariables, b as MediaUploader, L as LinkAddPopOver } from './chunk-Pu0d3ZId.js';
|
|
23
23
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
24
24
|
import Highlight from '@bigbinary/neeto-icons/Highlight';
|
|
25
25
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
@@ -47,7 +47,7 @@ import Modal from '@bigbinary/neetoui/Modal';
|
|
|
47
47
|
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
48
48
|
import AspectRatio from '@bigbinary/neeto-icons/AspectRatio';
|
|
49
49
|
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
50
|
-
import { d as buildImageOptions, e as DEFAULT_ASPECT_RATIO } from './chunk-
|
|
50
|
+
import { d as buildImageOptions, e as DEFAULT_ASPECT_RATIO } from './chunk-QsL6T6V5.js';
|
|
51
51
|
import Avatar from '@bigbinary/neetoui/Avatar';
|
|
52
52
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
53
53
|
import Tippy from '@tippyjs/react';
|
|
@@ -92,7 +92,7 @@ import Form from '@bigbinary/neetoui/formik/Form';
|
|
|
92
92
|
import Input$1 from '@bigbinary/neetoui/formik/Input';
|
|
93
93
|
import Edit from '@bigbinary/neeto-icons/Edit';
|
|
94
94
|
import Articles from '@bigbinary/neeto-icons/Articles';
|
|
95
|
-
import { A as Attachments } from './chunk-
|
|
95
|
+
import { A as Attachments } from './chunk-C3QLxTd-.js';
|
|
96
96
|
import 'axios';
|
|
97
97
|
import 'zustand';
|
|
98
98
|
import '@tanstack/react-query';
|
|
@@ -3730,6 +3730,13 @@ var getEmbedAttributes = function getEmbedAttributes() {
|
|
|
3730
3730
|
title: {
|
|
3731
3731
|
"default": null
|
|
3732
3732
|
},
|
|
3733
|
+
originalUrl: {
|
|
3734
|
+
"default": "",
|
|
3735
|
+
parseHTML: function parseHTML(element) {
|
|
3736
|
+
var iframe = element.querySelector(".neeto-editor__video-iframe");
|
|
3737
|
+
return (iframe === null || iframe === void 0 ? void 0 : iframe.getAttribute("data-original-url")) || "";
|
|
3738
|
+
}
|
|
3739
|
+
},
|
|
3733
3740
|
frameBorder: "0",
|
|
3734
3741
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",
|
|
3735
3742
|
allowfullscreen: true
|
|
@@ -3741,7 +3748,8 @@ var renderEmbedHTML = function renderEmbedHTML(node, HTMLAttributes, options) {
|
|
|
3741
3748
|
figheight = _node$attrs.figheight,
|
|
3742
3749
|
figwidth = _node$attrs.figwidth,
|
|
3743
3750
|
border = _node$attrs.border,
|
|
3744
|
-
aspectRatio = _node$attrs.aspectRatio
|
|
3751
|
+
aspectRatio = _node$attrs.aspectRatio,
|
|
3752
|
+
originalUrl = _node$attrs.originalUrl;
|
|
3745
3753
|
return ["div", {
|
|
3746
3754
|
"class": classnames("neeto-editor__video-wrapper", "neeto-editor__video--".concat(align), {
|
|
3747
3755
|
"neeto-editor__video--bordered": border
|
|
@@ -3758,7 +3766,8 @@ var renderEmbedHTML = function renderEmbedHTML(node, HTMLAttributes, options) {
|
|
|
3758
3766
|
"data-aspect-ratio": aspectRatio
|
|
3759
3767
|
}, ["iframe", mergeAttributes(options.HTMLAttributes, _objectSpread$3(_objectSpread$3({}, HTMLAttributes), {}, {
|
|
3760
3768
|
allowfullscreen: true,
|
|
3761
|
-
"data-border": border
|
|
3769
|
+
"data-border": border,
|
|
3770
|
+
"data-original-url": originalUrl
|
|
3762
3771
|
}))]]];
|
|
3763
3772
|
};
|
|
3764
3773
|
var renderUploadHTML = function renderUploadHTML(node, HTMLAttributes, options) {
|
|
@@ -3801,7 +3810,8 @@ var handleVideoPaste = function handleVideoPaste(_ref) {
|
|
|
3801
3810
|
if (validatedUrl) {
|
|
3802
3811
|
var node = state.schema.nodes["unified-video"].create({
|
|
3803
3812
|
src: validatedUrl,
|
|
3804
|
-
videoType: "embed"
|
|
3813
|
+
videoType: "embed",
|
|
3814
|
+
originalUrl: match[0]
|
|
3805
3815
|
});
|
|
3806
3816
|
state.tr.insert(range.from, node);
|
|
3807
3817
|
state.tr.insert(range.from + node.nodeSize + 1, state.schema.nodes.paragraph.create());
|