@bigbinary/neeto-editor 1.38.10 → 1.38.12

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 (38) hide show
  1. package/dist/Attachments.js +3 -3
  2. package/dist/Editor.js +6 -4
  3. package/dist/Editor.js.map +1 -1
  4. package/dist/FormikEditor.js +3 -3
  5. package/dist/Menu.js +2 -2
  6. package/dist/{chunk-5c874a66.js → chunk-17c1b4e1.js} +23 -13
  7. package/dist/chunk-17c1b4e1.js.map +1 -0
  8. package/dist/{chunk-8199190a.js → chunk-32e353fe.js} +859 -15
  9. package/dist/chunk-32e353fe.js.map +1 -0
  10. package/dist/{chunk-785530ec.js → chunk-8b1f773d.js} +4 -4
  11. package/dist/{chunk-785530ec.js.map → chunk-8b1f773d.js.map} +1 -1
  12. package/dist/chunk-b66ef3a3.js +513 -0
  13. package/dist/chunk-b66ef3a3.js.map +1 -0
  14. package/dist/cjs/Attachments.cjs.js +3 -3
  15. package/dist/cjs/Editor.cjs.js +8 -6
  16. package/dist/cjs/Editor.cjs.js.map +1 -1
  17. package/dist/cjs/FormikEditor.cjs.js +3 -3
  18. package/dist/cjs/Menu.cjs.js +2 -2
  19. package/dist/cjs/{chunk-7d9a9ed1.cjs.js → chunk-938306ec.cjs.js} +852 -4
  20. package/dist/cjs/chunk-938306ec.cjs.js.map +1 -0
  21. package/dist/cjs/chunk-b5a7673a.cjs.js +529 -0
  22. package/dist/cjs/chunk-b5a7673a.cjs.js.map +1 -0
  23. package/dist/cjs/{chunk-969635f1.cjs.js → chunk-eb6c9e4e.cjs.js} +101 -101
  24. package/dist/cjs/{chunk-969635f1.cjs.js.map → chunk-eb6c9e4e.cjs.js.map} +1 -1
  25. package/dist/cjs/{chunk-534531c3.cjs.js → chunk-fd7976a0.cjs.js} +28 -18
  26. package/dist/cjs/chunk-fd7976a0.cjs.js.map +1 -0
  27. package/dist/cjs/index.cjs.js +5 -5
  28. package/dist/editor-stats.html +1 -1
  29. package/dist/index.js +5 -5
  30. package/package.json +1 -1
  31. package/dist/chunk-5c874a66.js.map +0 -1
  32. package/dist/chunk-8199190a.js.map +0 -1
  33. package/dist/chunk-b6d4a09a.js +0 -1356
  34. package/dist/chunk-b6d4a09a.js.map +0 -1
  35. package/dist/cjs/chunk-534531c3.cjs.js.map +0 -1
  36. package/dist/cjs/chunk-5b0bae44.cjs.js +0 -1373
  37. package/dist/cjs/chunk-5b0bae44.cjs.js.map +0 -1
  38. package/dist/cjs/chunk-7d9a9ed1.cjs.js.map +0 -1
@@ -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-5c874a66.js';
10
+ import './chunk-17c1b4e1.js';
11
11
  import 'ramda';
12
12
  import './chunk-15c449f1.js';
13
13
  import './chunk-e876ad10.js';
@@ -34,7 +34,7 @@ import 'axios';
34
34
  import '@bigbinary/neeto-commons-frontend/react-utils';
35
35
  import 'react-colorful';
36
36
  import '@bigbinary/neeto-molecules/DynamicVariables';
37
- import './chunk-8199190a.js';
37
+ import './chunk-32e353fe.js';
38
38
  import 'zustand/shallow';
39
39
  import 'zustand';
40
40
  import './chunk-65f73e5a.js';
@@ -44,7 +44,7 @@ import '@bigbinary/neeto-molecules/CopyToClipboardButton';
44
44
  import './chunk-ade4c9e3.js';
45
45
  import './chunk-5bc5e361.js';
46
46
  import '@bigbinary/neetoui/formik';
47
- import './chunk-b6d4a09a.js';
47
+ import './chunk-b66ef3a3.js';
48
48
 
49
49
  var _excluded = ["name", "onChange", "shouldUpdate", "attachments", "mentions", "variables"];
50
50
  var FormikEditor = function FormikEditor(_ref, ref) {
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-5c874a66.js';
7
+ export { M as default } from './chunk-17c1b4e1.js';
8
8
  import './chunk-e876ad10.js';
9
9
  import './chunk-15c449f1.js';
10
10
  import 'tippy.js';
@@ -31,7 +31,7 @@ import '@bigbinary/neeto-commons-frontend/react-utils';
31
31
  import 'react-colorful';
32
32
  import '@babel/runtime/helpers/objectWithoutProperties';
33
33
  import '@bigbinary/neeto-molecules/DynamicVariables';
34
- import './chunk-8199190a.js';
34
+ import './chunk-32e353fe.js';
35
35
  import 'zustand/shallow';
36
36
  import 'zustand';
37
37
  import './chunk-65f73e5a.js';
@@ -12,8 +12,8 @@ import classnames from 'classnames';
12
12
  import { Y as YOUTUBE_URL_REGEXP, V as VIMEO_URL_REGEXP, L as LOOM_URL_REGEXP, N as NEETO_RECORD_URL_REGEXP, E as EDITOR_OPTIONS, a as UNSPLASH_BASE_URL, U as URL_REGEXP } from './chunk-edd8b9fe.js';
13
13
  import { hyphenate, isNotEmpty, isNotPresent, noop, findBy } from '@bigbinary/neeto-cist';
14
14
  import 'tippy.js/dist/svg-arrow.css';
15
- import { Smiley, Column, Customize, Check, Close, Refresh, Email, Undo, Redo, TextBold, TextItalic, Underline, Link, TextCross, Highlight, ListDot, ListNumber, Quote, Code, CodeBlock, Attachment, ImageUpload, Video, MediaVideo, MenuHorizontal, File } from '@bigbinary/neeto-icons';
16
- import { Modal, Typography, Input, Button as Button$1, Dropdown as Dropdown$1, Avatar, Spinner, Tab, Label, Checkbox, Tooltip } from '@bigbinary/neetoui';
15
+ import { Smiley, Column, Customize, Check, Close, Refresh, Email, Undo, Redo, TextBold, TextItalic, Underline, Link, TextCross, Highlight, ListDot, ListNumber, Quote, Code, CodeBlock, Attachment, ImageUpload, Video, MediaVideo, MenuHorizontal, File as File$1 } from '@bigbinary/neeto-icons';
16
+ import { Modal, Typography, Input, Button as Button$1, Dropdown as Dropdown$1, Avatar, Tooltip, Spinner, Tab, Label, Checkbox } from '@bigbinary/neetoui';
17
17
  import { useTranslation } from 'react-i18next';
18
18
  import { withEventTargetValue } from '@bigbinary/neeto-commons-frontend/utils';
19
19
  import i18n, { t as t$1 } from 'i18next';
@@ -30,7 +30,7 @@ import { useOnClickOutside, withT } from '@bigbinary/neeto-commons-frontend/reac
30
30
  import { HexColorPicker } from 'react-colorful';
31
31
  import _objectWithoutProperties$1 from '@babel/runtime/helpers/objectWithoutProperties';
32
32
  import DynamicVariables from '@bigbinary/neeto-molecules/DynamicVariables';
33
- import { u as useFileUploader, a as useDropFiles, A as ALLOWED_IMAGE_TYPES, c as ALLOWED_VIDEO_TYPES, e as convertToFileSize, f as DEFAULT_IMAGE_UPLOAD_CONFIG, g as DEFAULT_VIDEO_UPLOAD_CONFIG, p as propTypesExports, h as getTabs } from './chunk-8199190a.js';
33
+ import { F as File, u as useFileUploader, b as useDropFiles, A as ALLOWED_IMAGE_TYPES, e as ALLOWED_VIDEO_TYPES, f as convertToFileSize, g as DEFAULT_IMAGE_UPLOAD_CONFIG, h as DEFAULT_VIDEO_UPLOAD_CONFIG, p as propTypesExports, i as getTabs } from './chunk-32e353fe.js';
34
34
  import { a as getAugmentedNamespace } from './chunk-65f73e5a.js';
35
35
  import Tippy from '@tippyjs/react';
36
36
 
@@ -12992,32 +12992,42 @@ var Progress = withT(function (_ref) {
12992
12992
  }, queuedFiles.map(function (_ref2) {
12993
12993
  var id = _ref2.id,
12994
12994
  filename = _ref2.filename,
12995
- progress = _ref2.progress;
12995
+ _ref2$progress = _ref2.progress,
12996
+ progress = _ref2$progress === void 0 ? 0 : _ref2$progress;
12996
12997
  return /*#__PURE__*/React__default.createElement("div", {
12997
12998
  className: "ne-media-uploader__media",
12998
12999
  key: id
12999
13000
  }, /*#__PURE__*/React__default.createElement("div", {
13000
- className: "ne-media-uploader__media__info"
13001
- }, /*#__PURE__*/React__default.createElement(Typography, {
13002
- style: "body2"
13003
- }, filename), /*#__PURE__*/React__default.createElement(Button$1, {
13001
+ className: "ne-media-uploader__media__cancel-button-wrapper"
13002
+ }, /*#__PURE__*/React__default.createElement(Button$1, {
13004
13003
  "data-cy": "neeto-editor-image-upload-cancel-button",
13005
13004
  icon: Close,
13005
+ iconSize: 18,
13006
13006
  size: "small",
13007
13007
  style: "text",
13008
13008
  onClick: function onClick() {
13009
13009
  return cancelUpload(id);
13010
13010
  }
13011
- })), progress !== 100 ? /*#__PURE__*/React__default.createElement("div", {
13011
+ })), /*#__PURE__*/React__default.createElement(File, {
13012
+ className: "ne-media-uploader__media__info__icon",
13013
+ fileName: filename
13014
+ }), /*#__PURE__*/React__default.createElement("div", {
13015
+ className: "ne-media-uploader__media__info"
13016
+ }, /*#__PURE__*/React__default.createElement(Typography, {
13017
+ style: "nano"
13018
+ }, progress === 100 && t("neetoEditor.localUploader.completed"), progress !== 100 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, progress, "%")), /*#__PURE__*/React__default.createElement("div", {
13012
13019
  className: "ne-media-uploader__media__progress"
13013
13020
  }, /*#__PURE__*/React__default.createElement("div", {
13014
13021
  className: "ne-media-uploader__media__progress-bar",
13015
13022
  style: {
13016
13023
  width: "".concat(progress, "%")
13017
13024
  }
13018
- }, progress, "%")) : /*#__PURE__*/React__default.createElement(Typography, {
13025
+ })), /*#__PURE__*/React__default.createElement(Tooltip, {
13026
+ content: filename,
13027
+ position: "top"
13028
+ }, /*#__PURE__*/React__default.createElement(Typography, {
13019
13029
  style: "body3"
13020
- }, t("neetoEditor.localUploader.completed")));
13030
+ }, filename))));
13021
13031
  }));
13022
13032
  });
13023
13033
 
@@ -15436,7 +15446,7 @@ var createMenuOptions = function createMenuOptions(_ref) {
15436
15446
  optionName: "ordered-list",
15437
15447
  tooltip: tooltips.orderedList || t("neetoEditor.menu.orderedList")
15438
15448
  }, {
15439
- Icon: File,
15449
+ Icon: File$1,
15440
15450
  command: attachmentProps === null || attachmentProps === void 0 ? void 0 : attachmentProps.handleUploadAttachments,
15441
15451
  disabled: attachmentProps === null || attachmentProps === void 0 ? void 0 : attachmentProps.isDisabled,
15442
15452
  optionName: "attachments",
@@ -15649,4 +15659,4 @@ var Menu = function Menu(props) {
15649
15659
  };
15650
15660
 
15651
15661
  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 };
15652
- //# sourceMappingURL=chunk-5c874a66.js.map
15662
+ //# sourceMappingURL=chunk-17c1b4e1.js.map