@bigbinary/neeto-editor 1.47.99 → 1.47.101

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.
@@ -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-BLudkxXI.js';
11
+ import './chunk-D-4C066v.js';
12
12
  import './chunk-DmrvuTKK.js';
13
13
  import 'i18next';
14
14
  import '@bigbinary/neeto-icons/TextH1';
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-BLudkxXI.js';
6
+ export { M as default } from './chunk-D-4C066v.js';
7
7
  import './chunk-DxGDZoUl.js';
8
8
  import 'react/jsx-runtime';
9
9
  import './chunk-DmrvuTKK.js';
@@ -16965,7 +16965,9 @@ var VideoEmbedForm = function VideoEmbedForm(_ref) {
16965
16965
  var MediaUploader = function MediaUploader(_ref) {
16966
16966
  var mediaUploader = _ref.mediaUploader,
16967
16967
  onClose = _ref.onClose,
16968
- editor = _ref.editor;
16968
+ editor = _ref.editor,
16969
+ _ref$showAssetLibrary = _ref.showAssetLibrary,
16970
+ showAssetLibrary = _ref$showAssetLibrary === void 0 ? true : _ref$showAssetLibrary;
16969
16971
  var _useTranslation = useTranslation(),
16970
16972
  t = _useTranslation.t;
16971
16973
  var _useState = useState("local"),
@@ -17086,6 +17088,7 @@ var MediaUploader = function MediaUploader(_ref) {
17086
17088
  className: "ne-media-uploader__content",
17087
17089
  children: [mediaUploader.image && /*#__PURE__*/jsx(ImageUploader, {
17088
17090
  onUploadComplete: onUploadComplete,
17091
+ showAssetLibrary: showAssetLibrary,
17089
17092
  className: "ne-media-uploader__image-uploader"
17090
17093
  }), mediaUploader.video && /*#__PURE__*/jsxs(Fragment$1, {
17091
17094
  children: [activeTab === "local" && /*#__PURE__*/jsx(LocalUploader, {
@@ -17467,7 +17470,9 @@ var Fixed = function Fixed(_ref) {
17467
17470
  setIsEmojiPickerActive = _ref.setIsEmojiPickerActive,
17468
17471
  openLinkInNewTab = _ref.openLinkInNewTab,
17469
17472
  setIsNeetoKbArticleActive = _ref.setIsNeetoKbArticleActive,
17470
- neetoKbArticleState = _ref.neetoKbArticleState;
17473
+ neetoKbArticleState = _ref.neetoKbArticleState,
17474
+ _ref$showAssetLibrary = _ref.showAssetLibrary,
17475
+ showAssetLibrary = _ref$showAssetLibrary === void 0 ? true : _ref$showAssetLibrary;
17471
17476
  var _useState = useState(0),
17472
17477
  _useState2 = _slicedToArray(_useState, 2),
17473
17478
  focusedButtonIndex = _useState2[0],
@@ -17601,6 +17606,7 @@ var Fixed = function Fixed(_ref) {
17601
17606
  }), isMediaUploaderActive && /*#__PURE__*/jsx(MediaUploader, {
17602
17607
  editor: editor,
17603
17608
  mediaUploader: mediaUploader,
17609
+ showAssetLibrary: showAssetLibrary,
17604
17610
  onClose: function onClose() {
17605
17611
  return setMediaUploader({
17606
17612
  image: false,
@@ -17998,7 +18004,9 @@ var Headless = function Headless(_ref) {
17998
18004
  className = _ref.className,
17999
18005
  attachmentProps = _ref.attachmentProps,
18000
18006
  isEmojiPickerActive = _ref.isEmojiPickerActive,
18001
- setIsEmojiPickerActive = _ref.setIsEmojiPickerActive;
18007
+ setIsEmojiPickerActive = _ref.setIsEmojiPickerActive,
18008
+ _ref$showAssetLibrary = _ref.showAssetLibrary,
18009
+ showAssetLibrary = _ref$showAssetLibrary === void 0 ? true : _ref$showAssetLibrary;
18002
18010
  if (!editor) {
18003
18011
  return null;
18004
18012
  }
@@ -18027,6 +18035,7 @@ var Headless = function Headless(_ref) {
18027
18035
  }), isMediaUploaderActive && /*#__PURE__*/jsx(MediaUploader, {
18028
18036
  editor: editor,
18029
18037
  mediaUploader: mediaUploader,
18038
+ showAssetLibrary: showAssetLibrary,
18030
18039
  onClose: function onClose() {
18031
18040
  return setMediaUploader({
18032
18041
  image: false,
@@ -18897,4 +18906,4 @@ var Menu = function Menu(props) {
18897
18906
  };
18898
18907
 
18899
18908
  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, validateUrl as L, Menu as M, Node as N, BubbleMenu as O, PasteRule as P, getLinkPopoverPosition as Q, ReactNodeViewRenderer as R, getMarkType as S, getMarkRange as T, useEditor as U, useEditorState$1 as V, MenuDynamicVariables as W, EditorContent as X, MediaUploader as Y, LinkAddPopOver as Z, EditorView as _, 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 };
18900
- //# sourceMappingURL=chunk-BLudkxXI.js.map
18909
+ //# sourceMappingURL=chunk-D-4C066v.js.map