@bigbinary/neeto-editor 1.47.47 → 1.47.48
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 +6 -6
- package/dist/EditorContent.js +2 -2
- package/dist/FormikEditor.js +6 -6
- package/dist/Menu.js +5 -5
- package/dist/{chunk-Dg3CF2Q2.js → chunk-7IwD_Poi.js} +7 -2
- package/dist/chunk-7IwD_Poi.js.map +1 -0
- package/dist/{chunk-CBb1JIyY.js → chunk-BCxRnE_4.js} +4 -4
- package/dist/{chunk-CBb1JIyY.js.map → chunk-BCxRnE_4.js.map} +1 -1
- package/dist/{chunk-C8QxojSQ.js → chunk-BHL8P9eZ.js} +4 -4
- package/dist/{chunk-C8QxojSQ.js.map → chunk-BHL8P9eZ.js.map} +1 -1
- package/dist/{chunk-DmB-qAHJ.js → chunk-BZmNiqsu.js} +2 -2
- package/dist/{chunk-DmB-qAHJ.js.map → chunk-BZmNiqsu.js.map} +1 -1
- package/dist/{chunk-VBSk2dXt.js → chunk-C-0Q1FN5.js} +5 -5
- package/dist/{chunk-VBSk2dXt.js.map → chunk-C-0Q1FN5.js.map} +1 -1
- package/dist/{chunk-BBnDX9fA.js → chunk-PQDc8xQZ.js} +2 -2
- package/dist/{chunk-BBnDX9fA.js.map → chunk-PQDc8xQZ.js.map} +1 -1
- package/dist/{chunk-Bu-cg5p1.js → chunk-TvTt0Gg2.js} +3 -3
- package/dist/{chunk-Bu-cg5p1.js.map → chunk-TvTt0Gg2.js.map} +1 -1
- package/dist/cjs/Attachments.cjs.js +3 -3
- package/dist/cjs/Editor.cjs.js +6 -6
- 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-DFpv_md1.cjs.js → chunk-0DRyiTvN.cjs.js} +2 -2
- package/dist/cjs/{chunk-DFpv_md1.cjs.js.map → chunk-0DRyiTvN.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-BUOc7L6I.cjs.js → chunk-7EqjYXhp.cjs.js} +4 -4
- package/dist/cjs/{chunk-BUOc7L6I.cjs.js.map → chunk-7EqjYXhp.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-Cvfrw5an.cjs.js → chunk-B6tidcYZ.cjs.js} +2 -2
- package/dist/cjs/{chunk-Cvfrw5an.cjs.js.map → chunk-B6tidcYZ.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-FE7_QyVG.cjs.js → chunk-C8WnTgx_.cjs.js} +5 -5
- package/dist/cjs/{chunk-FE7_QyVG.cjs.js.map → chunk-C8WnTgx_.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-BIWaAH5n.cjs.js → chunk-D1TqtxZX.cjs.js} +7 -2
- package/dist/cjs/chunk-D1TqtxZX.cjs.js.map +1 -0
- package/dist/cjs/{chunk-BCBVrpqb.cjs.js → chunk-OJSm0BS5.cjs.js} +3 -3
- package/dist/cjs/{chunk-BCBVrpqb.cjs.js.map → chunk-OJSm0BS5.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CGiiUTfa.cjs.js → chunk-WiZaUmOf.cjs.js} +4 -4
- package/dist/cjs/{chunk-CGiiUTfa.cjs.js.map → chunk-WiZaUmOf.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/constants.js +2 -2
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +6 -6
- package/dist/utils.js +3 -3
- package/package.json +1 -1
- package/src/translations/ar.json +5 -1
- package/src/translations/bg.json +5 -1
- package/src/translations/ca.json +5 -1
- package/src/translations/cs.json +5 -1
- package/src/translations/da.json +5 -1
- package/src/translations/de.json +5 -1
- package/src/translations/es-MX.json +5 -1
- package/src/translations/es.json +5 -1
- package/src/translations/et.json +5 -1
- package/src/translations/fi.json +5 -1
- package/src/translations/fil.json +5 -1
- package/src/translations/fr.json +5 -1
- package/src/translations/hi.json +5 -1
- package/src/translations/hr.json +5 -1
- package/src/translations/id.json +5 -1
- package/src/translations/it.json +5 -1
- package/src/translations/ja.json +5 -1
- package/src/translations/ko.json +5 -1
- package/src/translations/nl.json +5 -1
- package/src/translations/pl.json +5 -1
- package/src/translations/pt-BR.json +5 -1
- package/src/translations/pt.json +5 -1
- package/src/translations/ro.json +5 -1
- package/src/translations/ru.json +5 -1
- package/src/translations/sk.json +5 -1
- package/src/translations/sl.json +5 -1
- package/src/translations/sv.json +5 -1
- package/src/translations/th.json +5 -1
- package/src/translations/tr.json +5 -1
- package/src/translations/uk.json +5 -1
- package/src/translations/vi.json +5 -1
- package/src/translations/zh-CN.json +5 -1
- package/src/translations/zh-TW.json +5 -1
- package/dist/chunk-Dg3CF2Q2.js.map +0 -1
- package/dist/cjs/chunk-BIWaAH5n.cjs.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ALL_PROTOCOL_URL_REGEXP, E as EDITOR_OPTIONS } from './chunk-
|
|
1
|
+
import { A as ALL_PROTOCOL_URL_REGEXP, E as EDITOR_OPTIONS } from './chunk-7IwD_Poi.js';
|
|
2
2
|
import { t } from 'i18next';
|
|
3
3
|
import * as yup from 'yup';
|
|
4
4
|
|
|
@@ -16,4 +16,4 @@ var LINK_VALIDATION_SCHEMA = yup.object().shape({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
export { DEFAULT_EDITOR_OPTIONS as D, EMPTY_DIV_REGEX as E, IMAGE_REGEX as I, LINK_VALIDATION_SCHEMA as L, TRAILING_BR_REGEX as T, IMAGE_REPLACEMENT_PATTERN as a, EDITOR_LINE_HEIGHT as b, EDITOR_PADDING_SIZE as c, EDITOR_BORDER_SIZE as d };
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-BZmNiqsu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-
|
|
1
|
+
{"version":3,"file":"chunk-BZmNiqsu.js","sources":["../src/components/Editor/constants.js"],"sourcesContent":["import { ALL_PROTOCOL_URL_REGEXP, EDITOR_OPTIONS } from \"common/constants\";\nimport { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const DEFAULT_EDITOR_OPTIONS = [\n EDITOR_OPTIONS.BOLD,\n EDITOR_OPTIONS.ITALIC,\n EDITOR_OPTIONS.UNDERLINE,\n EDITOR_OPTIONS.STRIKETHROUGH,\n EDITOR_OPTIONS.LINK,\n EDITOR_OPTIONS.PARAGRAPH,\n EDITOR_OPTIONS.H1,\n EDITOR_OPTIONS.H2,\n EDITOR_OPTIONS.H3,\n EDITOR_OPTIONS.H4,\n EDITOR_OPTIONS.H5,\n EDITOR_OPTIONS.H6,\n EDITOR_OPTIONS.LIST_BULLETS,\n EDITOR_OPTIONS.LIST_ORDERED,\n EDITOR_OPTIONS.CODE,\n];\nexport const EDITOR_PADDING_SIZE = 12;\n\nexport const EDITOR_BORDER_SIZE = 1;\n\nexport const EDITOR_LINE_HEIGHT = 21;\n\nexport const IMAGE_REGEX = new RegExp(/(<img[^>]*?>)(?![\\s\\S]*<\\/figure>)/g);\nexport const IMAGE_REPLACEMENT_PATTERN = \"<figure>$1</figure>\";\nexport const EMPTY_DIV_REGEX = new RegExp(\n /<div[^>]*?>\\s*(?:<br[^>]*?>)\\s*<\\/div>/g\n);\nexport const TRAILING_BR_REGEX = new RegExp(/\\s*(?:<br[^>]*?>)+\\s*$/);\n\nexport const LINK_VALIDATION_SCHEMA = yup.object().shape({\n textContent: yup.string().required(t(\"neetoEditor.error.textRequired\")),\n urlString: yup\n .string()\n .matches(ALL_PROTOCOL_URL_REGEXP, t(\"neetoEditor.error.invalidUrl\"))\n .required(t(\"neetoEditor.error.urlRequired\")),\n});\n"],"names":["DEFAULT_EDITOR_OPTIONS","EDITOR_OPTIONS","BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","LINK","PARAGRAPH","H1","H2","H3","H4","H5","H6","LIST_BULLETS","LIST_ORDERED","CODE","EDITOR_PADDING_SIZE","EDITOR_BORDER_SIZE","EDITOR_LINE_HEIGHT","IMAGE_REGEX","RegExp","IMAGE_REPLACEMENT_PATTERN","EMPTY_DIV_REGEX","TRAILING_BR_REGEX","LINK_VALIDATION_SCHEMA","yup","object","shape","textContent","string","required","t","urlString","matches","ALL_PROTOCOL_URL_REGEXP"],"mappings":";;;;AAIaA,IAAAA,sBAAsB,GAAG,CACpCC,cAAc,CAACC,IAAI,EACnBD,cAAc,CAACE,MAAM,EACrBF,cAAc,CAACG,SAAS,EACxBH,cAAc,CAACI,aAAa,EAC5BJ,cAAc,CAACK,IAAI,EACnBL,cAAc,CAACM,SAAS,EACxBN,cAAc,CAACO,EAAE,EACjBP,cAAc,CAACQ,EAAE,EACjBR,cAAc,CAACS,EAAE,EACjBT,cAAc,CAACU,EAAE,EACjBV,cAAc,CAACW,EAAE,EACjBX,cAAc,CAACY,EAAE,EACjBZ,cAAc,CAACa,YAAY,EAC3Bb,cAAc,CAACc,YAAY,EAC3Bd,cAAc,CAACe,IAAI,EACpB;AACM,IAAMC,mBAAmB,GAAG,GAAE;AAE9B,IAAMC,kBAAkB,GAAG,EAAC;AAE5B,IAAMC,kBAAkB,GAAG,GAAE;IAEvBC,WAAW,GAAG,IAAIC,MAAM,CAAC,qCAAqC,EAAC;AACrE,IAAMC,yBAAyB,GAAG,sBAAqB;IACjDC,eAAe,GAAG,IAAIF,MAAM,CACvC,yCACF,EAAC;IACYG,iBAAiB,GAAG,IAAIH,MAAM,CAAC,wBAAwB,EAAC;AAE9D,IAAMI,sBAAsB,GAAGC,GAAG,CAACC,MAAM,EAAE,CAACC,KAAK,CAAC;AACvDC,EAAAA,WAAW,EAAEH,GAAG,CAACI,MAAM,EAAE,CAACC,QAAQ,CAACC,CAAC,CAAC,gCAAgC,CAAC,CAAC;EACvEC,SAAS,EAAEP,GAAG,CACXI,MAAM,EAAE,CACRI,OAAO,CAACC,uBAAuB,EAAEH,CAAC,CAAC,8BAA8B,CAAC,CAAC,CACnED,QAAQ,CAACC,CAAC,CAAC,+BAA+B,CAAC,CAAA;AAChD,CAAC;;;;"}
|
|
@@ -11,11 +11,11 @@ import TextH3 from '@bigbinary/neeto-icons/TextH3';
|
|
|
11
11
|
import TextH4 from '@bigbinary/neeto-icons/TextH4';
|
|
12
12
|
import TextH5 from '@bigbinary/neeto-icons/TextH5';
|
|
13
13
|
import TextP from '@bigbinary/neeto-icons/TextP';
|
|
14
|
-
import { T as TextSelection, N as NodeSelection, S as Selection, b as Slice, d as dropPoint, D as DOMSerializer, F as Fragment, c as DOMParser, A as AllSelection, M as Mark$1, P as Plugin, R as ReplaceError, e as MarkType, l as liftTarget$2, r as replaceStep$1, f as ReplaceStep$2, g as canJoin$2, j as joinPoint$1, h as canSplit$2, k as ReplaceAroundStep$2, m as findWrapping$2, n as NodeRange, o as PluginKey, p as Schema, E as EditorState, v as validateAndFormatUrl } from './chunk-
|
|
14
|
+
import { T as TextSelection, N as NodeSelection, S as Selection, b as Slice, d as dropPoint, D as DOMSerializer, F as Fragment, c as DOMParser, A as AllSelection, M as Mark$1, P as Plugin, R as ReplaceError, e as MarkType, l as liftTarget$2, r as replaceStep$1, f as ReplaceStep$2, g as canJoin$2, j as joinPoint$1, h as canSplit$2, k as ReplaceAroundStep$2, m as findWrapping$2, n as NodeRange, o as PluginKey, p as Schema, E as EditorState, v as validateAndFormatUrl } from './chunk-TvTt0Gg2.js';
|
|
15
15
|
import tippy, { roundArrow } from 'tippy.js';
|
|
16
16
|
import ReactDOM, { flushSync, createPortal } from 'react-dom';
|
|
17
17
|
import classnames from 'classnames';
|
|
18
|
-
import { A as ALL_PROTOCOL_URL_REGEXP, E as EDITOR_OPTIONS, U as URL_REGEXP } from './chunk-
|
|
18
|
+
import { A as ALL_PROTOCOL_URL_REGEXP, E as EDITOR_OPTIONS, U as URL_REGEXP } from './chunk-7IwD_Poi.js';
|
|
19
19
|
import { findBy, hyphenate, isNotPresent, noop, isNotEmpty, filterBy } from '@bigbinary/neeto-cist';
|
|
20
20
|
import 'tippy.js/dist/svg-arrow.css';
|
|
21
21
|
import Link from '@bigbinary/neeto-icons/Link';
|
|
@@ -67,7 +67,7 @@ import DynamicVariables from '@bigbinary/neeto-molecules/DynamicVariables';
|
|
|
67
67
|
import { ImageUploader } from '@bigbinary/neeto-image-uploader-frontend';
|
|
68
68
|
import Modal from '@bigbinary/neetoui/Modal';
|
|
69
69
|
import Tab from '@bigbinary/neetoui/Tab';
|
|
70
|
-
import { F as File, u as useFileUploader, b as useDropFiles, A as ALLOWED_IMAGE_TYPES, c as ALLOWED_VIDEO_TYPES, e as convertToFileSize, D as DEFAULT_IMAGE_UPLOAD_CONFIG, f as DEFAULT_VIDEO_UPLOAD_CONFIG, V as VIDEO_EMBED_FORM_VALIDATION_SCHEMA, g as getTabs, v as validateUrl } from './chunk-
|
|
70
|
+
import { F as File, u as useFileUploader, b as useDropFiles, A as ALLOWED_IMAGE_TYPES, c as ALLOWED_VIDEO_TYPES, e as convertToFileSize, D as DEFAULT_IMAGE_UPLOAD_CONFIG, f as DEFAULT_VIDEO_UPLOAD_CONFIG, V as VIDEO_EMBED_FORM_VALIDATION_SCHEMA, g as getTabs, v as validateUrl } from './chunk-PQDc8xQZ.js';
|
|
71
71
|
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
72
72
|
import Form from '@bigbinary/neetoui/formik/Form';
|
|
73
73
|
import Input$1 from '@bigbinary/neetoui/formik/Input';
|
|
@@ -85,7 +85,7 @@ import Success from '@bigbinary/neeto-icons/misc/Success';
|
|
|
85
85
|
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
86
86
|
import Tippy from '@tippyjs/react';
|
|
87
87
|
import File$1 from '@bigbinary/neeto-icons/File';
|
|
88
|
-
import { D as DEFAULT_EDITOR_OPTIONS } from './chunk-
|
|
88
|
+
import { D as DEFAULT_EDITOR_OPTIONS } from './chunk-BZmNiqsu.js';
|
|
89
89
|
|
|
90
90
|
const domIndex = function (node) {
|
|
91
91
|
for (var index = 0;; index++) {
|
|
@@ -18883,4 +18883,4 @@ var Menu = function Menu(props) {
|
|
|
18883
18883
|
};
|
|
18884
18884
|
|
|
18885
18885
|
export { getChangedRanges as A, findChildrenInRange as B, CALLOUT_TYPES as C, DecorationSet as D, Extension as E, getMarksBetween as F, getAttributes as G, highlightFocussedNode as H, InputRule as I, resetFocussedNode as J, findParentNodeClosestToPos as K, BubbleMenu as L, Menu as M, Node as N, getLinkPopoverPosition as O, PasteRule as P, getMarkType as Q, ReactNodeViewRenderer as R, getMarkRange as S, useEditor as T, useEditorState$1 as U, EditorContent as V, MediaUploader as W, LinkAddPopOver as X, EditorView as Y, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, callOrReturn as e, getExtensionField as f, getMarkAttributes as g, getNodeType as h, isNodeSelection as i, getNodeAtPosition as j, keydownHandler as k, isNodeActive as l, mergeAttributes as m, nodeInputRule as n, isAtStartOfNode as o, isAtEndOfNode as p, NodeViewWrapper as q, NodeViewContent as r, findChildren as s, textblockTypeInputRule as t, escapeForRegEx as u, ReactRenderer as v, wrappingInputRule as w, EmojiPickerMenu as x, emojiPickerApi as y, combineTransactionSteps as z };
|
|
18886
|
-
//# sourceMappingURL=chunk-
|
|
18886
|
+
//# sourceMappingURL=chunk-C-0Q1FN5.js.map
|