@bigbinary/neeto-editor-frontend 2.2.2 → 2.2.4
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/.ready +1 -1
- package/dist/Attachments.js +3 -3
- package/dist/Editor.js +10 -10
- package/dist/EditorContent.js +4 -4
- package/dist/FormikEditor.js +10 -10
- package/dist/Menu.js +7 -7
- package/dist/{chunk-BfQ_Kj4i.js → chunk-AexVHCkr.js} +4 -4
- package/dist/{chunk-BfQ_Kj4i.js.map → chunk-AexVHCkr.js.map} +1 -1
- package/dist/{chunk-CRUXOawK.js → chunk-B5LsYrmv.js} +4 -4
- package/dist/{chunk-CRUXOawK.js.map → chunk-B5LsYrmv.js.map} +1 -1
- package/dist/chunk-BHi0J28T.js +1970 -0
- package/dist/chunk-BHi0J28T.js.map +1 -0
- package/dist/{chunk-CxFTIgDS.js → chunk-BIgc5m-h.js} +2 -2
- package/dist/{chunk-CxFTIgDS.js.map → chunk-BIgc5m-h.js.map} +1 -1
- package/dist/{chunk-BNyLNMnb.js → chunk-Bktpw5vs.js} +5 -5
- package/dist/{chunk-BNyLNMnb.js.map → chunk-Bktpw5vs.js.map} +1 -1
- package/dist/{chunk-lEnpEBRB.js → chunk-BozdxlzB.js} +5 -5
- package/dist/{chunk-lEnpEBRB.js.map → chunk-BozdxlzB.js.map} +1 -1
- package/dist/{chunk-BpMZjml2.js → chunk-C9H9LYpP.js} +2 -2
- package/dist/chunk-C9H9LYpP.js.map +1 -0
- package/dist/{chunk-DhFieQe2.js → chunk-CLjWv4gG.js} +4 -4
- package/dist/{chunk-DhFieQe2.js.map → chunk-CLjWv4gG.js.map} +1 -1
- package/dist/{chunk-D_Lgx0N7.js → chunk-C_4zmIBQ.js} +2 -2
- package/dist/{chunk-D_Lgx0N7.js.map → chunk-C_4zmIBQ.js.map} +1 -1
- package/dist/{chunk-YhV82e9I.js → chunk-CivYrffM.js} +6 -6
- package/dist/{chunk-YhV82e9I.js.map → chunk-CivYrffM.js.map} +1 -1
- package/dist/{chunk-BV_wep_Y.js → chunk-D37Dlp9s.js} +4 -4
- package/dist/{chunk-BV_wep_Y.js.map → chunk-D37Dlp9s.js.map} +1 -1
- package/dist/{chunk-DYRpf9PJ.js → chunk-DPx9v04U.js} +3 -3
- package/dist/{chunk-DYRpf9PJ.js.map → chunk-DPx9v04U.js.map} +1 -1
- package/dist/{chunk-7ioLE0kx.js → chunk-DcxOAiAp.js} +2 -2
- package/dist/{chunk-7ioLE0kx.js.map → chunk-DcxOAiAp.js.map} +1 -1
- package/dist/{chunk-DN9pYQV5.js → chunk-DqSrbxqC.js} +2 -2
- package/dist/{chunk-DN9pYQV5.js.map → chunk-DqSrbxqC.js.map} +1 -1
- package/dist/{chunk-BGx6BSFw.js → chunk-DwQ7NJtm.js} +4 -4
- package/dist/{chunk-BGx6BSFw.js.map → chunk-DwQ7NJtm.js.map} +1 -1
- package/dist/{chunk-Br5h7rjn.js → chunk-GA-wADEN.js} +3 -3
- package/dist/{chunk-Br5h7rjn.js.map → chunk-GA-wADEN.js.map} +1 -1
- package/dist/{chunk-DfH1lF5p.js → chunk-LtUevT4I.js} +2 -2
- package/dist/{chunk-DfH1lF5p.js.map → chunk-LtUevT4I.js.map} +1 -1
- package/dist/{chunk-sn8HEeT6.js → chunk-yBvbLjSM.js} +4 -4
- package/dist/{chunk-sn8HEeT6.js.map → chunk-yBvbLjSM.js.map} +1 -1
- package/dist/cjs/Attachments.cjs.js +3 -3
- package/dist/cjs/Editor.cjs.js +10 -10
- package/dist/cjs/EditorContent.cjs.js +4 -4
- package/dist/cjs/FormikEditor.cjs.js +10 -10
- package/dist/cjs/Menu.cjs.js +7 -7
- package/dist/cjs/{chunk-BAse0j9m.cjs.js → chunk-BfHU_Ynq.cjs.js} +4 -4
- package/dist/cjs/{chunk-BAse0j9m.cjs.js.map → chunk-BfHU_Ynq.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-QnVNXaqt.cjs.js → chunk-CAaxrndK.cjs.js} +6 -6
- package/dist/cjs/{chunk-QnVNXaqt.cjs.js.map → chunk-CAaxrndK.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-DRnP2LQe.cjs.js → chunk-CJIIbW7G.cjs.js} +2 -2
- package/dist/cjs/{chunk-DRnP2LQe.cjs.js.map → chunk-CJIIbW7G.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-V1V-Gqfy.cjs.js → chunk-CKbuSSOi.cjs.js} +5 -5
- package/dist/cjs/{chunk-V1V-Gqfy.cjs.js.map → chunk-CKbuSSOi.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CQLQEN5P.cjs.js → chunk-CU6dMPZV.cjs.js} +2 -2
- package/dist/cjs/{chunk-CQLQEN5P.cjs.js.map → chunk-CU6dMPZV.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-BPJBeVDI.cjs.js → chunk-C_XHzWXy.cjs.js} +2 -2
- package/dist/cjs/chunk-C_XHzWXy.cjs.js.map +1 -0
- package/dist/cjs/{chunk-bfmPXyQJ.cjs.js → chunk-CddQ0UHU.cjs.js} +3 -3
- package/dist/cjs/{chunk-bfmPXyQJ.cjs.js.map → chunk-CddQ0UHU.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-BPLEmkMA.cjs.js → chunk-CfiRFXt2.cjs.js} +2 -2
- package/dist/cjs/{chunk-BPLEmkMA.cjs.js.map → chunk-CfiRFXt2.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-78VpxO0R.cjs.js → chunk-CkSG3yNC.cjs.js} +4 -4
- package/dist/cjs/{chunk-78VpxO0R.cjs.js.map → chunk-CkSG3yNC.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CHk_Gq2n.cjs.js → chunk-CpQ8t9br.cjs.js} +2 -2
- package/dist/cjs/{chunk-CHk_Gq2n.cjs.js.map → chunk-CpQ8t9br.cjs.js.map} +1 -1
- package/dist/cjs/chunk-Cr0FBhRs.cjs.js +1990 -0
- package/dist/cjs/chunk-Cr0FBhRs.cjs.js.map +1 -0
- package/dist/cjs/{chunk-DGPpvE8O.cjs.js → chunk-Ct6vCCZ0.cjs.js} +4 -4
- package/dist/cjs/{chunk-DGPpvE8O.cjs.js.map → chunk-Ct6vCCZ0.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CwY6UgZq.cjs.js → chunk-CxKWZyHq.cjs.js} +3 -3
- package/dist/cjs/{chunk-CwY6UgZq.cjs.js.map → chunk-CxKWZyHq.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-j4T5BDua.cjs.js → chunk-Df33Mipq.cjs.js} +5 -5
- package/dist/cjs/{chunk-j4T5BDua.cjs.js.map → chunk-Df33Mipq.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-D86ONI5s.cjs.js → chunk-Df43FB6u.cjs.js} +4 -4
- package/dist/cjs/{chunk-D86ONI5s.cjs.js.map → chunk-Df43FB6u.cjs.js.map} +1 -1
- package/dist/cjs/{chunk--47DtZYn.cjs.js → chunk-DuwgLqpD.cjs.js} +4 -4
- package/dist/cjs/{chunk--47DtZYn.cjs.js.map → chunk-DuwgLqpD.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-bxP1kilM.cjs.js → chunk-Dwv-JqJN.cjs.js} +2 -2
- package/dist/cjs/{chunk-bxP1kilM.cjs.js.map → chunk-Dwv-JqJN.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CBswWnmM.cjs.js → chunk-Niprqtd_.cjs.js} +3 -3
- package/dist/cjs/{chunk-CBswWnmM.cjs.js.map → chunk-Niprqtd_.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +12 -12
- package/dist/cjs/utils.cjs.js +6 -6
- package/dist/cjs/v2/Attachments.cjs.js +3 -3
- package/dist/cjs/v2/Editor.cjs.js +872 -236
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/EditorContent.cjs.js +4 -4
- package/dist/cjs/v2/FormikEditor.cjs.js +9 -9
- package/dist/cjs/v2/Menu.cjs.js +6 -6
- package/dist/cjs/v2/index.cjs.js +11 -11
- package/dist/cjs/v2/utils.cjs.js +6 -6
- package/dist/editor-stats.html +1 -19
- package/dist/index.js +12 -12
- package/dist/utils.js +6 -6
- package/dist/v2/Attachments.js +3 -3
- package/dist/v2/Editor.js +872 -236
- package/dist/v2/Editor.js.map +1 -1
- package/dist/v2/EditorContent.js +4 -4
- package/dist/v2/FormikEditor.js +9 -9
- package/dist/v2/Menu.js +6 -6
- package/dist/v2/index.js +11 -11
- package/dist/v2/styles.css +1 -1
- package/dist/v2/styles.js +1 -1
- package/dist/v2/utils.js +6 -6
- package/package.json +6 -4
- package/dist/chunk-BpMZjml2.js.map +0 -1
- package/dist/chunk-OP-lX765.js +0 -8654
- package/dist/chunk-OP-lX765.js.map +0 -1
- package/dist/cjs/chunk-BPJBeVDI.cjs.js.map +0 -1
- package/dist/cjs/chunk-Bde8Sbb1.cjs.js +0 -8674
- package/dist/cjs/chunk-Bde8Sbb1.cjs.js.map +0 -1
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-10-
|
|
1
|
+
Built at 2026-10-23T11:57:32.289Z
|
package/dist/Attachments.js
CHANGED
|
@@ -9,9 +9,9 @@ import '@bigbinary/neetoui/Button';
|
|
|
9
9
|
import '@bigbinary/neetoui/Toastr';
|
|
10
10
|
import 'ramda';
|
|
11
11
|
import 'react-i18next';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
export { A as default } from './chunk-
|
|
12
|
+
import './chunk-BHi0J28T.js';
|
|
13
|
+
import './chunk-C_4zmIBQ.js';
|
|
14
|
+
export { A as default } from './chunk-CLjWv4gG.js';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
16
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
17
17
|
import 'zustand';
|
package/dist/Editor.js
CHANGED
|
@@ -3,7 +3,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import React__default, { memo, useState, useRef, useCallback, useEffect, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
6
|
-
import { a as useEditorState, E as Extension, N as NodeViewWrapper, b as NodeViewContent, c as Node, 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-
|
|
6
|
+
import { a as useEditorState, E as Extension, N as NodeViewWrapper, b as NodeViewContent, c as Node, 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-B5LsYrmv.js';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { isNotPresent, findBy, isNotEmpty, isPresent, noop, slugify } from '@bigbinary/neeto-cist';
|
|
9
9
|
import { withT, useOnClickOutside, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -12,14 +12,14 @@ import { createPortal } from 'react-dom';
|
|
|
12
12
|
import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from './chunk-UwzgbfZD.js';
|
|
13
13
|
import { is, intersection, difference, union, isEmpty, isNil, mergeRight, assoc, equals } from 'ramda';
|
|
14
14
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
15
|
-
import { B as BulletList$1, s as src_default, a as src_default$1, R as Resizable, b as src_default$2, L as Link$1, c as scrollHandler, d as src_default$3, O as OrderedList$1, e as src_default$4, f as fuzzySearch, T as Table$2, g as TaskList, h as TaskItem, i as getVariableDisplay, j as getVideoDimension, C as CharacterCount, k as src_default$5, l as src_default$6, m as safeSplitBlock, n as safeListKeymap, o as TextStyle, p as src_default$7, F as Focus, q as src_default$8, r as TableRow, t as TableHeader, u as TableCell, v as Color, w as ListItem, x as src_default$9, y as src_default$a, z as useFetchKbArticles, M as MODE, A as createArticleOptions, D as MODAL_LEFT_OFFSET, E as MODAL_TOP_OFFSET, G as MODAL_TRANSFORM_Y, H as MODAL_TRANSFORM_X, I as MODAL_BOTTOM_MARGIN, J as buildArticleFullUrl, K as useEditorWarnings, N as useDeletedArticles } from './chunk-
|
|
15
|
+
import { B as BulletList$1, s as src_default, a as src_default$1, R as Resizable, b as src_default$2, L as Link$1, c as scrollHandler, d as src_default$3, O as OrderedList$1, e as src_default$4, f as fuzzySearch, T as Table$2, g as TaskList, h as TaskItem, i as getVariableDisplay, j as getVideoDimension, C as CharacterCount, k as src_default$5, l as src_default$6, m as safeSplitBlock, n as safeListKeymap, o as TextStyle, p as src_default$7, F as Focus, q as src_default$8, r as TableRow, t as TableHeader, u as TableCell, v as Color, w as ListItem, x as src_default$9, y as src_default$a, z as useFetchKbArticles, M as MODE, A as createArticleOptions, D as MODAL_LEFT_OFFSET, E as MODAL_TOP_OFFSET, G as MODAL_TRANSFORM_Y, H as MODAL_TRANSFORM_X, I as MODAL_BOTTOM_MARGIN, J as buildArticleFullUrl, K as useEditorWarnings, N as useDeletedArticles } from './chunk-BozdxlzB.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-GA-wADEN.js';
|
|
18
18
|
import ReactDOM from 'react-dom/server';
|
|
19
|
-
import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from './chunk-
|
|
19
|
+
import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from './chunk-LtUevT4I.js';
|
|
20
20
|
import { L as LINK_VALIDATION_SCHEMA, D as DEFAULT_EDITOR_OPTIONS } from './chunk-CNIDH-FD.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-Bktpw5vs.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';
|
|
@@ -28,7 +28,7 @@ import Input from '@bigbinary/neetoui/Input';
|
|
|
28
28
|
import Button from '@bigbinary/neetoui/Button';
|
|
29
29
|
import { useTranslation } from 'react-i18next';
|
|
30
30
|
import { t } from 'i18next';
|
|
31
|
-
import { g as PluginKey, P as Plugin, S as Selection, T as TextSelection } from './chunk-
|
|
31
|
+
import { g as PluginKey, P as Plugin, S as Selection, T as TextSelection } from './chunk-DqSrbxqC.js';
|
|
32
32
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
33
33
|
import '@babel/runtime/helpers/readOnlyError';
|
|
34
34
|
import tippy from 'tippy.js';
|
|
@@ -41,14 +41,14 @@ import { init, SearchIndex } from 'emoji-mart';
|
|
|
41
41
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
42
42
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
43
43
|
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
44
|
-
import { D as DirectUpload } from './chunk-
|
|
44
|
+
import { D as DirectUpload } from './chunk-BHi0J28T.js';
|
|
45
45
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
46
46
|
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-
|
|
51
|
-
import { S as Slice, F as Fragment$1 } from './chunk-
|
|
50
|
+
import { d as buildImageOptions, e as DEFAULT_ASPECT_RATIO } from './chunk-C_4zmIBQ.js';
|
|
51
|
+
import { S as Slice, F as Fragment$1 } from './chunk-C9H9LYpP.js';
|
|
52
52
|
import Avatar from '@bigbinary/neetoui/Avatar';
|
|
53
53
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
54
54
|
import Tippy from '@tippyjs/react';
|
|
@@ -93,7 +93,7 @@ import Form from '@bigbinary/neetoui/formik/Form';
|
|
|
93
93
|
import Input$1 from '@bigbinary/neetoui/formik/Input';
|
|
94
94
|
import Edit from '@bigbinary/neeto-icons/Edit';
|
|
95
95
|
import Articles from '@bigbinary/neeto-icons/Articles';
|
|
96
|
-
import { A as Attachments } from './chunk-
|
|
96
|
+
import { A as Attachments } from './chunk-CLjWv4gG.js';
|
|
97
97
|
import 'axios';
|
|
98
98
|
import 'zustand';
|
|
99
99
|
import '@tanstack/react-query';
|
package/dist/EditorContent.js
CHANGED
|
@@ -10,10 +10,10 @@ import { createRoot } from 'react-dom/client';
|
|
|
10
10
|
import { a as EDITOR_SIZES } from './chunk-UwzgbfZD.js';
|
|
11
11
|
import { n } from './chunk-C2dztUxs.js';
|
|
12
12
|
import '@bigbinary/neeto-cist';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-C9H9LYpP.js';
|
|
14
14
|
import './chunk-CNIDH-FD.js';
|
|
15
|
-
import { c as convertPlainTextToHtml, s as substituteVariables, a as applySyntaxHighlightingAndLineNumbers, b as applyLineHighlighting } from './chunk-
|
|
16
|
-
import { r as removeEmptyTags, E as EDITOR_CONTENT_DEFAULT_CONFIGURATION, S as SANITIZE_OPTIONS, b as EDITOR_CONTENT_CLASS_NAME } from './chunk-
|
|
15
|
+
import { c as convertPlainTextToHtml, s as substituteVariables, a as applySyntaxHighlightingAndLineNumbers, b as applyLineHighlighting } from './chunk-DPx9v04U.js';
|
|
16
|
+
import { r as removeEmptyTags, E as EDITOR_CONTENT_DEFAULT_CONFIGURATION, S as SANITIZE_OPTIONS, b as EDITOR_CONTENT_CLASS_NAME } from './chunk-LtUevT4I.js';
|
|
17
17
|
import { useOnClickOutside } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
18
18
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
19
19
|
import Button from '@bigbinary/neetoui/Button';
|
|
@@ -23,7 +23,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
23
23
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
24
24
|
import 'i18next';
|
|
25
25
|
import 'yup';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-DcxOAiAp.js';
|
|
27
27
|
import './chunk-BFTU3MAI.js';
|
|
28
28
|
import 'react-dom/server';
|
|
29
29
|
import '@babel/runtime/helpers/toConsumableArray';
|
package/dist/FormikEditor.js
CHANGED
|
@@ -8,31 +8,31 @@ 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-B5LsYrmv.js';
|
|
12
12
|
import 'axios';
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
13
|
+
import './chunk-DqSrbxqC.js';
|
|
14
|
+
import './chunk-C9H9LYpP.js';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
17
17
|
import 'zustand';
|
|
18
18
|
import 'classnames';
|
|
19
19
|
import '@bigbinary/neetoui/Label';
|
|
20
20
|
import './chunk-UwzgbfZD.js';
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
21
|
+
import './chunk-BozdxlzB.js';
|
|
22
|
+
import './chunk-LtUevT4I.js';
|
|
23
23
|
import './chunk-BFTU3MAI.js';
|
|
24
24
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
25
25
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
26
26
|
import '@tanstack/react-query';
|
|
27
27
|
import 'yjs';
|
|
28
28
|
import './chunk-C2dztUxs.js';
|
|
29
|
-
import './chunk-
|
|
29
|
+
import './chunk-GA-wADEN.js';
|
|
30
30
|
import './chunk-CNIDH-FD.js';
|
|
31
31
|
import 'i18next';
|
|
32
32
|
import 'yup';
|
|
33
33
|
import 'react-dom/server';
|
|
34
34
|
import '@bigbinary/neeto-icons/misc/Megaphone';
|
|
35
|
-
import './chunk-
|
|
35
|
+
import './chunk-Bktpw5vs.js';
|
|
36
36
|
import '@bigbinary/neeto-icons/TextH1';
|
|
37
37
|
import '@bigbinary/neeto-icons/TextH2';
|
|
38
38
|
import '@bigbinary/neeto-icons/TextH3';
|
|
@@ -81,8 +81,8 @@ import '@bigbinary/neeto-image-uploader-frontend/ImageUploader';
|
|
|
81
81
|
import '@bigbinary/neetoui/Modal';
|
|
82
82
|
import '@bigbinary/neetoui/Tab';
|
|
83
83
|
import '@bigbinary/neetoui/Toastr';
|
|
84
|
-
import './chunk-
|
|
85
|
-
import './chunk-
|
|
84
|
+
import './chunk-BHi0J28T.js';
|
|
85
|
+
import './chunk-C_4zmIBQ.js';
|
|
86
86
|
import 'zustand/shallow';
|
|
87
87
|
import '@bigbinary/neeto-icons/LeftAlign';
|
|
88
88
|
import '@bigbinary/neeto-icons/CenterAlign';
|
|
@@ -131,7 +131,7 @@ import '@bigbinary/neeto-icons/MergeSplit';
|
|
|
131
131
|
import '@bigbinary/neeto-icons/ToggleHeaderRow';
|
|
132
132
|
import '@bigbinary/neeto-icons/Edit';
|
|
133
133
|
import '@bigbinary/neeto-icons/Articles';
|
|
134
|
-
import './chunk-
|
|
134
|
+
import './chunk-CLjWv4gG.js';
|
|
135
135
|
import '@bigbinary/neeto-commons-frontend/react-utils/useOnClickOutside';
|
|
136
136
|
import '@bigbinary/neeto-icons/MenuVertical';
|
|
137
137
|
import '@bigbinary/neetoui/Alert';
|
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-Bktpw5vs.js';
|
|
7
7
|
import './chunk-CNIDH-FD.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './chunk-C2dztUxs.js';
|
|
@@ -14,10 +14,10 @@ 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-B5LsYrmv.js';
|
|
18
18
|
import 'axios';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-DqSrbxqC.js';
|
|
20
|
+
import './chunk-C9H9LYpP.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
23
23
|
import 'zustand';
|
|
@@ -31,7 +31,7 @@ import '@bigbinary/neetoui/Dropdown';
|
|
|
31
31
|
import 'react-i18next';
|
|
32
32
|
import '@bigbinary/neeto-icons/Close';
|
|
33
33
|
import '@bigbinary/neetoui/Button';
|
|
34
|
-
import './chunk-
|
|
34
|
+
import './chunk-GA-wADEN.js';
|
|
35
35
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
36
36
|
import '@bigbinary/neeto-icons/Check';
|
|
37
37
|
import '@bigbinary/neetoui/Label';
|
|
@@ -70,9 +70,9 @@ import '@bigbinary/neeto-image-uploader-frontend/ImageUploader';
|
|
|
70
70
|
import '@bigbinary/neetoui/Modal';
|
|
71
71
|
import '@bigbinary/neetoui/Tab';
|
|
72
72
|
import '@bigbinary/neetoui/Toastr';
|
|
73
|
-
import './chunk-
|
|
73
|
+
import './chunk-BHi0J28T.js';
|
|
74
74
|
import './chunk-BFTU3MAI.js';
|
|
75
|
-
import './chunk-
|
|
75
|
+
import './chunk-C_4zmIBQ.js';
|
|
76
76
|
import 'zustand/shallow';
|
|
77
77
|
import '@bigbinary/neeto-icons/LeftAlign';
|
|
78
78
|
import '@bigbinary/neeto-icons/CenterAlign';
|
|
@@ -5,8 +5,8 @@ import { findIndexBy } from '@bigbinary/neeto-cist';
|
|
|
5
5
|
import { isEmpty } from 'ramda';
|
|
6
6
|
import { D as DocViewer, a as DocViewerRenderers } from './chunk-CeoqieEt.js';
|
|
7
7
|
import { useTranslation, Trans } from 'react-i18next';
|
|
8
|
-
import { c as convertToFileSize, A as ATTACHMENTS_PREVIEW_DATA_CY } from './chunk-
|
|
9
|
-
import { d as downloadFile, c as checkPreviewAvailability } from './chunk-
|
|
8
|
+
import { c as convertToFileSize, A as ATTACHMENTS_PREVIEW_DATA_CY } from './chunk-BIgc5m-h.js';
|
|
9
|
+
import { d as downloadFile, c as checkPreviewAvailability } from './chunk-DwQ7NJtm.js';
|
|
10
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
11
|
import './chunk-BFTU3MAI.js';
|
|
12
12
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -15,7 +15,7 @@ import '@babel/runtime/helpers/objectWithoutProperties';
|
|
|
15
15
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
16
16
|
import 'zustand/shallow';
|
|
17
17
|
import 'axios';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-BHi0J28T.js';
|
|
19
19
|
import '@babel/runtime/helpers/defineProperty';
|
|
20
20
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
21
21
|
import 'zustand';
|
|
@@ -200,4 +200,4 @@ var Preview = function Preview(_ref) {
|
|
|
200
200
|
};
|
|
201
201
|
|
|
202
202
|
export { Preview as default };
|
|
203
|
-
//# sourceMappingURL=chunk-
|
|
203
|
+
//# sourceMappingURL=chunk-AexVHCkr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-BfQ_Kj4i.js","sources":["../app/javascript/src/v2/components/Attachments/Preview.jsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nimport { Button, Dialog, Typography } from \"@bigbinary/neeto-atoms\";\nimport { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { findIndexBy } from \"neetocist\";\nimport { isEmpty } from \"ramda\";\nimport DocViewer, { DocViewerRenderers } from \"react-doc-viewer\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { convertToFileSize } from \"src/v2/components/Editor/MediaUploader/utils\";\n\nimport { ATTACHMENTS_PREVIEW_DATA_CY } from \"./constants\";\nimport { checkPreviewAvailability, downloadFile } from \"./utils\";\n\nconst Preview = ({\n onClose,\n attachments,\n selectedAttachment,\n setSelectedAttachment,\n setDidFetchPreviewBundle,\n}) => {\n const { t } = useTranslation();\n const downloadRef = useRef(null);\n\n const {\n filename = \"\",\n contentType = null,\n url = \"\",\n signedId = \"\",\n size = undefined,\n previewUrl = null,\n } = selectedAttachment;\n\n const attachmentIndex = findIndexBy({ signedId }, attachments);\n\n const handleRightArrowClick = () => {\n const newIndex = (attachmentIndex + 1) % attachments.length;\n setSelectedAttachment(attachments[newIndex]);\n downloadRef.current?.focus();\n };\n\n const handleLeftArrowClick = () => {\n const newIndex =\n (attachmentIndex - 1 + attachments.length) % attachments.length;\n setSelectedAttachment(attachments[newIndex]);\n downloadRef.current?.focus();\n };\n\n const handleKeyDown = event => {\n if (event.key === \"ArrowRight\") {\n handleRightArrowClick();\n } else if (event.key === \"ArrowLeft\") {\n handleLeftArrowClick();\n }\n };\n\n useEffect(() => {\n setDidFetchPreviewBundle(true);\n }, []);\n\n const handleDownload = () => downloadFile(url, filename);\n\n const setPreview = () => {\n const isPreviewAvailable = checkPreviewAvailability(\n contentType,\n previewUrl\n );\n\n if (isPreviewAvailable) {\n switch (contentType.split(\"/\")[0]) {\n case \"image\":\n return (\n <img\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n src={previewUrl || url}\n />\n );\n case \"video\":\n return (\n <video\n controls\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n src={url}\n />\n );\n case \"application\":\n case \"text\":\n if (contentType === \"application/pdf\") {\n return (\n <iframe\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n src={url}\n width=\"100%\"\n />\n );\n }\n\n return (\n <DocViewer\n className=\"ne-attachments-preview__body-docviewer\"\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n documents={[{ uri: url, fileType: contentType }]}\n pluginRenderers={DocViewerRenderers}\n config={{\n header: { disableHeader: true, disableFileName: true },\n }}\n />\n );\n default:\n return null;\n }\n }\n\n return (\n <Typography>\n <Trans\n i18nKey=\"neetoEditor.attachments.noPreview\"\n components={{\n span: (\n <span\n className=\"ne-attachments-preview__body-download\"\n onClick={handleDownload}\n />\n ),\n }}\n />\n </Typography>\n );\n };\n\n return (\n <Dialog\n {...{ onClose }}\n className=\"ne-attachments-preview p-0\"\n isOpen={!isEmpty(selectedAttachment)}\n size=\"fullScreen\"\n onKeyDown={handleKeyDown}\n >\n <Dialog.Header className=\"ne-attachments-preview__header items-center\">\n <div className=\"ne-attachments-preview__header__fileinfo min-w-0 overflow-hidden\">\n <Dialog.Title className=\"min-w-0 overflow-hidden\">\n <Typography className=\"truncate\" variant=\"h5\">\n {filename}\n </Typography>\n </Dialog.Title>\n <Typography\n className=\"shrink-0 whitespace-nowrap\"\n color=\"muted\"\n variant=\"body2\"\n >\n {convertToFileSize(size)}\n </Typography>\n </div>\n <Button\n className=\"shrink-0\"\n data-testid=\"download-preview-button\"\n label={t(\"neetoEditor.common.download\")}\n ref={downloadRef}\n variant=\"link\"\n onClick={handleDownload}\n />\n </Dialog.Header>\n <Dialog.Body className=\"ne-attachments-preview__body w-full\">\n <Button\n className=\"ne-attachments-preview__body-left\"\n icon={<ChevronLeft className=\"size-8\" />}\n size=\"lg\"\n variant=\"ghost\"\n onClick={handleLeftArrowClick}\n />\n <Button\n className=\"ne-attachments-preview__body-right\"\n icon={<ChevronRight className=\"size-8\" />}\n size=\"lg\"\n variant=\"ghost\"\n onClick={handleRightArrowClick}\n />\n {setPreview()}\n </Dialog.Body>\n </Dialog>\n );\n};\n\nexport default Preview;\n"],"names":["Preview","_ref","onClose","attachments","selectedAttachment","setSelectedAttachment","setDidFetchPreviewBundle","_useTranslation","useTranslation","t","downloadRef","useRef","_selectedAttachment$f","filename","_selectedAttachment$c","contentType","_selectedAttachment$u","url","_selectedAttachment$s","signedId","_selectedAttachment$s2","size","undefined","_selectedAttachment$p","previewUrl","attachmentIndex","findIndexBy","handleRightArrowClick","_downloadRef$current","newIndex","length","current","focus","handleLeftArrowClick","_downloadRef$current2","handleKeyDown","event","key","useEffect","handleDownload","downloadFile","setPreview","isPreviewAvailable","checkPreviewAvailability","split","_jsx","ATTACHMENTS_PREVIEW_DATA_CY","src","controls","width","DocViewer","className","documents","uri","fileType","pluginRenderers","DocViewerRenderers","config","header","disableHeader","disableFileName","Typography","children","Trans","i18nKey","components","span","onClick","_jsxs","Dialog","isOpen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unk-AexVHCkr.js","sources":["../app/javascript/src/v2/components/Attachments/Preview.jsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nimport { Button, Dialog, Typography } from \"@bigbinary/neeto-atoms\";\nimport { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { findIndexBy } from \"neetocist\";\nimport { isEmpty } from \"ramda\";\nimport DocViewer, { DocViewerRenderers } from \"react-doc-viewer\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { convertToFileSize } from \"src/v2/components/Editor/MediaUploader/utils\";\n\nimport { ATTACHMENTS_PREVIEW_DATA_CY } from \"./constants\";\nimport { checkPreviewAvailability, downloadFile } from \"./utils\";\n\nconst Preview = ({\n onClose,\n attachments,\n selectedAttachment,\n setSelectedAttachment,\n setDidFetchPreviewBundle,\n}) => {\n const { t } = useTranslation();\n const downloadRef = useRef(null);\n\n const {\n filename = \"\",\n contentType = null,\n url = \"\",\n signedId = \"\",\n size = undefined,\n previewUrl = null,\n } = selectedAttachment;\n\n const attachmentIndex = findIndexBy({ signedId }, attachments);\n\n const handleRightArrowClick = () => {\n const newIndex = (attachmentIndex + 1) % attachments.length;\n setSelectedAttachment(attachments[newIndex]);\n downloadRef.current?.focus();\n };\n\n const handleLeftArrowClick = () => {\n const newIndex =\n (attachmentIndex - 1 + attachments.length) % attachments.length;\n setSelectedAttachment(attachments[newIndex]);\n downloadRef.current?.focus();\n };\n\n const handleKeyDown = event => {\n if (event.key === \"ArrowRight\") {\n handleRightArrowClick();\n } else if (event.key === \"ArrowLeft\") {\n handleLeftArrowClick();\n }\n };\n\n useEffect(() => {\n setDidFetchPreviewBundle(true);\n }, []);\n\n const handleDownload = () => downloadFile(url, filename);\n\n const setPreview = () => {\n const isPreviewAvailable = checkPreviewAvailability(\n contentType,\n previewUrl\n );\n\n if (isPreviewAvailable) {\n switch (contentType.split(\"/\")[0]) {\n case \"image\":\n return (\n <img\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n src={previewUrl || url}\n />\n );\n case \"video\":\n return (\n <video\n controls\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n src={url}\n />\n );\n case \"application\":\n case \"text\":\n if (contentType === \"application/pdf\") {\n return (\n <iframe\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n src={url}\n width=\"100%\"\n />\n );\n }\n\n return (\n <DocViewer\n className=\"ne-attachments-preview__body-docviewer\"\n data-testid={ATTACHMENTS_PREVIEW_DATA_CY}\n documents={[{ uri: url, fileType: contentType }]}\n pluginRenderers={DocViewerRenderers}\n config={{\n header: { disableHeader: true, disableFileName: true },\n }}\n />\n );\n default:\n return null;\n }\n }\n\n return (\n <Typography>\n <Trans\n i18nKey=\"neetoEditor.attachments.noPreview\"\n components={{\n span: (\n <span\n className=\"ne-attachments-preview__body-download\"\n onClick={handleDownload}\n />\n ),\n }}\n />\n </Typography>\n );\n };\n\n return (\n <Dialog\n {...{ onClose }}\n className=\"ne-attachments-preview p-0\"\n isOpen={!isEmpty(selectedAttachment)}\n size=\"fullScreen\"\n onKeyDown={handleKeyDown}\n >\n <Dialog.Header className=\"ne-attachments-preview__header items-center\">\n <div className=\"ne-attachments-preview__header__fileinfo min-w-0 overflow-hidden\">\n <Dialog.Title className=\"min-w-0 overflow-hidden\">\n <Typography className=\"truncate\" variant=\"h5\">\n {filename}\n </Typography>\n </Dialog.Title>\n <Typography\n className=\"shrink-0 whitespace-nowrap\"\n color=\"muted\"\n variant=\"body2\"\n >\n {convertToFileSize(size)}\n </Typography>\n </div>\n <Button\n className=\"shrink-0\"\n data-testid=\"download-preview-button\"\n label={t(\"neetoEditor.common.download\")}\n ref={downloadRef}\n variant=\"link\"\n onClick={handleDownload}\n />\n </Dialog.Header>\n <Dialog.Body className=\"ne-attachments-preview__body w-full\">\n <Button\n className=\"ne-attachments-preview__body-left\"\n icon={<ChevronLeft className=\"size-8\" />}\n size=\"lg\"\n variant=\"ghost\"\n onClick={handleLeftArrowClick}\n />\n <Button\n className=\"ne-attachments-preview__body-right\"\n icon={<ChevronRight className=\"size-8\" />}\n size=\"lg\"\n variant=\"ghost\"\n onClick={handleRightArrowClick}\n />\n {setPreview()}\n </Dialog.Body>\n </Dialog>\n );\n};\n\nexport default Preview;\n"],"names":["Preview","_ref","onClose","attachments","selectedAttachment","setSelectedAttachment","setDidFetchPreviewBundle","_useTranslation","useTranslation","t","downloadRef","useRef","_selectedAttachment$f","filename","_selectedAttachment$c","contentType","_selectedAttachment$u","url","_selectedAttachment$s","signedId","_selectedAttachment$s2","size","undefined","_selectedAttachment$p","previewUrl","attachmentIndex","findIndexBy","handleRightArrowClick","_downloadRef$current","newIndex","length","current","focus","handleLeftArrowClick","_downloadRef$current2","handleKeyDown","event","key","useEffect","handleDownload","downloadFile","setPreview","isPreviewAvailable","checkPreviewAvailability","split","_jsx","ATTACHMENTS_PREVIEW_DATA_CY","src","controls","width","DocViewer","className","documents","uri","fileType","pluginRenderers","DocViewerRenderers","config","header","disableHeader","disableFileName","Typography","children","Trans","i18nKey","components","span","onClick","_jsxs","Dialog","isOpen","isEmpty","onKeyDown","Header","Title","variant","color","convertToFileSize","Button","label","ref","Body","icon","ChevronLeft","ChevronRight"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAMA,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA,EAMP;AAAA,EAAA,IALJC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,kBAAkB,GAAAH,IAAA,CAAlBG,kBAAkB;IAClBC,qBAAqB,GAAAJ,IAAA,CAArBI,qBAAqB;IACrBC,wBAAwB,GAAAL,IAAA,CAAxBK,wBAAwB;AAExB,EAAA,IAAAC,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AACT,EAAA,IAAMC,WAAW,GAAGC,MAAM,CAAC,IAAI,CAAC;AAEhC,EAAA,IAAAC,qBAAA,GAOI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A,cAC1DjB,GAAA,CAACiC,MAAM,EAAA;AACL3B,QAAAA,SAAS,EAAC,mCAAmC;QAC7C+B,IAAI,eAAErC,GAAA,CAACsC,WAAW,EAAA;AAAChC,UAAAA,SAAS,EAAC;AAAQ,SAAE,CAAE;AACzC9B,QAAAA,IAAI,EAAC,IAAI;AACTsD,QAAAA,OAAO,EAAC,OAAO;AACfR,QAAAA,OAAO,EAAElC;AAAqB,OAC/B,CAAC,eACFY,GAAA,CAACiC,MAAM,EAAA;AACL3B,QAAAA,SAAS,EAAC,oCAAoC;QAC9C+B,IAAI,eAAErC,GAAA,CAACuC,YAAY,EAAA;AAACjC,UAAAA,SAAS,EAAC;AAAQ,SAAE,CAAE;AAC1C9B,QAAAA,IAAI,EAAC,IAAI;AACTsD,QAAAA,OAAO,EAAC,OAAO;AACfR,QAAAA,OAAO,EAAExC;AAAsB,OAChC,CAAC,EACDc,UAAU,EAAE;AAAA,KACF,CAAC;AAAA,GACR,CAAC;AAEb;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { N as NodeSelection, S as Selection, T as TextSelection, d as dropPoint, A as AllSelection, f as findWrapping, c as canSplit, l as liftTarget, a as canJoin, j as joinPoint, r as replaceStep, R as ReplaceStep, b as ReplaceAroundStep, P as Plugin, e as Transform, E as EditorState, g as PluginKey, h as RemoveMarkStep, i as SelectionRange } from './chunk-
|
|
3
|
-
import { S as Slice, D as DOMSerializer, F as Fragment, b as DOMParser, M as Mark$1, c as NodeRange, d as Schema } from './chunk-
|
|
2
|
+
import { N as NodeSelection, S as Selection, T as TextSelection, d as dropPoint, A as AllSelection, f as findWrapping, c as canSplit, l as liftTarget, a as canJoin, j as joinPoint, r as replaceStep, R as ReplaceStep, b as ReplaceAroundStep, P as Plugin, e as Transform, E as EditorState, g as PluginKey, h as RemoveMarkStep, i as SelectionRange } from './chunk-DqSrbxqC.js';
|
|
3
|
+
import { S as Slice, D as DOMSerializer, F as Fragment, b as DOMParser, M as Mark$1, c as NodeRange, d as Schema } from './chunk-C9H9LYpP.js';
|
|
4
4
|
import React__default, { createRef, memo, createElement, createContext, version, useContext, useRef as useRef$1, useState as useState$1, useDebugValue as useDebugValue$2, useEffect as useEffect$2, useLayoutEffect as useLayoutEffect$1, forwardRef, useMemo as useMemo$1 } from 'react';
|
|
5
5
|
import ReactDOM, { flushSync, createPortal } from 'react-dom';
|
|
6
6
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
@@ -20224,5 +20224,5 @@ var useEditorStore = create(withImmutableActions(function (set) {
|
|
|
20224
20224
|
};
|
|
20225
20225
|
}));
|
|
20226
20226
|
|
|
20227
|
-
export {
|
|
20228
|
-
//# sourceMappingURL=chunk-
|
|
20227
|
+
export { deleteRow as $, getPreviousBlockSibling as A, BubbleMenu as B, CellSelection as C, DecorationSet as D, Extension as E, isAtStartOfNode as F, isAtEndOfNode as G, getNodeAtPosition as H, InputRule as I, getNodeType as J, callOrReturn as K, getExtensionField as L, Mark as M, NodeViewWrapper as N, columnResizing as O, PasteRule as P, tableEditing as Q, ReactNodeViewRenderer as R, fixTables as S, goToNextCell as T, setCellAttr as U, mergeCells as V, splitCell as W, toggleHeaderCell as X, toggleHeader as Y, deleteTable as Z, findParentNodeClosestToPos as _, useEditorState as a, addRowAfter as a0, addRowBefore as a1, deleteColumn as a2, addColumnAfter as a3, addColumnBefore as a4, keydownHandler as a5, isNodeSelection as a6, isNodeEmpty as a7, getChangedRanges as a8, textblockTypeInputRule as a9, nodeInputRule as aa, canInsertNode as ab, combineTransactionSteps as ac, findChildrenInRange as ad, getMarksBetween as ae, getAttributes as af, getSplittedAttributes as ag, defaultBlockAt as ah, findChildren as ai, escapeForRegEx as aj, offset as ak, flip as al, autoUpdate as am, computePosition as an, createInlineMarkdownSpec as ao, isInTable as ap, selectedRect as aq, findTable as ar, TableMap as as, addRow as at, NodeViewContent as b, Node$1 as c, Decoration as d, emojiPickerApi as e, ReactRenderer as f, generateFocusProps as g, markInputRule as h, highlightFocussedNode as i, getMarkType as j, getMarkRange as k, useEditor as l, mergeAttributes as m, EditorContent as n, EditorView as o, markPasteRule as p, getUpdatedPosition as q, resetFocussedNode as r, MappablePosition as s, getStyleProperty as t, useEditorStore as u, renderNestedMarkdownContent as v, wrappingInputRule as w, getRenderedAttributes as x, parseIndentedBlocks as y, isNodeActive as z };
|
|
20228
|
+
//# sourceMappingURL=chunk-B5LsYrmv.js.map
|