@bigbinary/neeto-editor 1.45.24 → 1.45.25

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.
Files changed (30) hide show
  1. package/dist/Attachments.js +2 -2
  2. package/dist/Editor.js +3 -3
  3. package/dist/FormikEditor.js +3 -3
  4. package/dist/Menu.js +2 -2
  5. package/dist/{chunk-Bqt3eaYj.js → chunk-6RAmzmIN.js} +5 -2
  6. package/dist/chunk-6RAmzmIN.js.map +1 -0
  7. package/dist/{chunk-2yhtfTbr.js → chunk-B_ypvaUL.js} +2 -2
  8. package/dist/{chunk-2yhtfTbr.js.map → chunk-B_ypvaUL.js.map} +1 -1
  9. package/dist/{chunk-BkSxWh1L.js → chunk-BsaIeaMe.js} +3 -3
  10. package/dist/{chunk-BkSxWh1L.js.map → chunk-BsaIeaMe.js.map} +1 -1
  11. package/dist/{chunk-BExpJ3WK.js → chunk-Cn_AKHSx.js} +3 -3
  12. package/dist/{chunk-BExpJ3WK.js.map → chunk-Cn_AKHSx.js.map} +1 -1
  13. package/dist/cjs/Attachments.cjs.js +2 -2
  14. package/dist/cjs/Editor.cjs.js +3 -3
  15. package/dist/cjs/FormikEditor.cjs.js +3 -3
  16. package/dist/cjs/Menu.cjs.js +2 -2
  17. package/dist/cjs/{chunk-DalxnRry.cjs.js → chunk-CzYfyrKT.cjs.js} +3 -3
  18. package/dist/cjs/{chunk-DalxnRry.cjs.js.map → chunk-CzYfyrKT.cjs.js.map} +1 -1
  19. package/dist/cjs/{chunk-CRkwyvR9.cjs.js → chunk-DMLLOwHS.cjs.js} +3 -3
  20. package/dist/cjs/{chunk-CRkwyvR9.cjs.js.map → chunk-DMLLOwHS.cjs.js.map} +1 -1
  21. package/dist/cjs/{chunk-lqYMMbrM.cjs.js → chunk-DZ7EK7nf.cjs.js} +2 -2
  22. package/dist/cjs/{chunk-lqYMMbrM.cjs.js.map → chunk-DZ7EK7nf.cjs.js.map} +1 -1
  23. package/dist/cjs/{chunk-BNoprNoo.cjs.js → chunk-_-ayC5lT.cjs.js} +5 -2
  24. package/dist/cjs/chunk-_-ayC5lT.cjs.js.map +1 -0
  25. package/dist/cjs/index.cjs.js +3 -3
  26. package/dist/editor-stats.html +1 -19
  27. package/dist/index.js +3 -3
  28. package/package.json +1 -1
  29. package/dist/chunk-Bqt3eaYj.js.map +0 -1
  30. package/dist/cjs/chunk-BNoprNoo.cjs.js.map +0 -1
@@ -10,8 +10,8 @@ import '@bigbinary/neetoui/Button';
10
10
  import '@bigbinary/neetoui/Toastr';
11
11
  import 'ramda';
12
12
  import 'react-i18next';
13
- import './chunk-Bqt3eaYj.js';
14
- export { A as default } from './chunk-BExpJ3WK.js';
13
+ import './chunk-6RAmzmIN.js';
14
+ export { A as default } from './chunk-Cn_AKHSx.js';
15
15
  import 'react/jsx-runtime';
16
16
  import '@babel/runtime/helpers/objectWithoutProperties';
17
17
  import 'zustand/shallow';
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, 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 findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-2yhtfTbr.js';
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 findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-B_ypvaUL.js';
8
8
  import classnames from 'classnames';
9
9
  import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, a as EDITOR_SIZES } from './chunk-FWwP48qR.js';
10
10
  import { isNotPresent, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
@@ -31,7 +31,7 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
31
31
  import _regeneratorRuntime from '@babel/runtime/regenerator';
32
32
  import { flushSync, createPortal } from 'react-dom';
33
33
  import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
34
- import { h as buildImageOptions, i as DirectUpload } from './chunk-Bqt3eaYj.js';
34
+ import { h as buildImageOptions, i as DirectUpload } from './chunk-6RAmzmIN.js';
35
35
  import tippy, { sticky } from 'tippy.js';
36
36
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
37
37
  import _createClass from '@babel/runtime/helpers/createClass';
@@ -73,7 +73,7 @@ import ToggleHeaderRow from '@bigbinary/neeto-icons/ToggleHeaderRow';
73
73
  import Checkbox from '@bigbinary/neetoui/Checkbox';
74
74
  import Form from '@bigbinary/neetoui/formik/Form';
75
75
  import Input$1 from '@bigbinary/neetoui/formik/Input';
76
- import { A as Attachments } from './chunk-BExpJ3WK.js';
76
+ import { A as Attachments } from './chunk-Cn_AKHSx.js';
77
77
  import 'tippy.js/dist/svg-arrow.css';
78
78
  import '@bigbinary/neeto-icons/Link';
79
79
  import '@bigbinary/neeto-commons-frontend/utils';
@@ -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-2yhtfTbr.js';
11
+ import './chunk-B_ypvaUL.js';
12
12
  import './chunk-DmrvuTKK.js';
13
13
  import 'i18next';
14
14
  import './chunk-BQZagJsZ.js';
@@ -65,7 +65,7 @@ import 'react-colorful';
65
65
  import '@bigbinary/neeto-molecules/DynamicVariables';
66
66
  import '@bigbinary/neetoui/Modal';
67
67
  import '@bigbinary/neetoui/Tab';
68
- import './chunk-Bqt3eaYj.js';
68
+ import './chunk-6RAmzmIN.js';
69
69
  import 'zustand/shallow';
70
70
  import '@bigbinary/neetoui/Toastr';
71
71
  import 'zustand';
@@ -102,7 +102,7 @@ import '@bigbinary/neeto-icons/MergeSplit';
102
102
  import '@bigbinary/neeto-icons/ToggleHeaderRow';
103
103
  import '@bigbinary/neetoui/formik/Form';
104
104
  import '@bigbinary/neetoui/formik/Input';
105
- import './chunk-BExpJ3WK.js';
105
+ import './chunk-Cn_AKHSx.js';
106
106
  import '@bigbinary/neeto-icons/MenuVertical';
107
107
  import '@bigbinary/neetoui/Alert';
108
108
 
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-2yhtfTbr.js';
6
+ export { M as default } from './chunk-B_ypvaUL.js';
7
7
  import './chunk-CftSm0ZU.js';
8
8
  import 'react/jsx-runtime';
9
9
  import './chunk-DmrvuTKK.js';
@@ -62,7 +62,7 @@ import '@babel/runtime/helpers/objectWithoutProperties';
62
62
  import '@bigbinary/neeto-molecules/DynamicVariables';
63
63
  import '@bigbinary/neetoui/Modal';
64
64
  import '@bigbinary/neetoui/Tab';
65
- import './chunk-Bqt3eaYj.js';
65
+ import './chunk-6RAmzmIN.js';
66
66
  import 'zustand/shallow';
67
67
  import '@bigbinary/neetoui/Toastr';
68
68
  import 'zustand';
@@ -7362,7 +7362,10 @@ var shouldAddFile = function shouldAddFile(config) {
7362
7362
  }
7363
7363
  if (isPresent(allowedFileTypes)) {
7364
7364
  var fileExtension = getFileExtension(file.name);
7365
- var canAdd = allowedFileTypes.includes(fileExtension);
7365
+ var mimeType = file.type;
7366
+ var extensionAllowed = allowedFileTypes.includes(fileExtension);
7367
+ var mimeAllowed = allowedFileTypes.includes(mimeType);
7368
+ var canAdd = extensionAllowed || mimeAllowed;
7366
7369
  return {
7367
7370
  canAdd: canAdd,
7368
7371
  isUnsupportedFile: !canAdd
@@ -8522,4 +8525,4 @@ var File = function File(_ref) {
8522
8525
  };
8523
8526
 
8524
8527
  export { ALLOWED_IMAGE_TYPES as A, DEFAULT_IMAGE_UPLOAD_CONFIG as D, File as F, PropTypes as P, FileIcon as a, useDropFiles as b, ALLOWED_VIDEO_TYPES as c, directUploadsApi as d, convertToFileSize as e, DEFAULT_VIDEO_UPLOAD_CONFIG as f, getTabs as g, buildImageOptions as h, DirectUpload as i, commonjsRequire as j, propTypesExports as p, useFileUploader as u };
8525
- //# sourceMappingURL=chunk-Bqt3eaYj.js.map
8528
+ //# sourceMappingURL=chunk-6RAmzmIN.js.map