@bigbinary/neeto-editor 1.47.37 → 1.47.39

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-_e08WUMF.js';
11
+ import './chunk-kj6JugoV.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-_e08WUMF.js';
6
+ export { M as default } from './chunk-kj6JugoV.js';
7
7
  import './chunk-BNz8RkZK.js';
8
8
  import 'react/jsx-runtime';
9
9
  import './chunk-DmrvuTKK.js';
@@ -19361,7 +19361,7 @@ var MENU_ELEMENT_WIDTHS = _defineProperty(_defineProperty(_defineProperty(_defin
19361
19361
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19362
19362
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19363
19363
  var createMenuOptions = function createMenuOptions(_ref) {
19364
- var _tooltips$undo, _tooltips$redo, _tooltips$fontSize, _tooltips$bold, _tooltips$italic, _tooltips$link, _tooltips$strike, _tooltips$highlight, _tooltips$highlight2, _tooltips$bulletList, _tooltips$orderedList, _tooltips$todoList, _tooltips$blockQuote, _tooltips$callout, _tooltips$callout2, _tooltips$table, _tooltips$attachments, _tooltips$imageUpload, _tooltips$textColor, _tooltips$emoji, _tooltips$mention, _tooltips$code, _tooltips$codeBlock, _tooltips$videoUpload, _tooltips$underline;
19364
+ var _tooltips$fontSize, _tooltips$bold, _tooltips$italic, _tooltips$link, _tooltips$strike, _tooltips$highlight, _tooltips$highlight2, _tooltips$bulletList, _tooltips$orderedList, _tooltips$todoList, _tooltips$blockQuote, _tooltips$callout, _tooltips$callout2, _tooltips$table, _tooltips$attachments, _tooltips$imageUpload, _tooltips$textColor, _tooltips$emoji, _tooltips$mention, _tooltips$code, _tooltips$codeBlock, _tooltips$videoUpload, _tooltips$underline, _tooltips$undo, _tooltips$redo;
19365
19365
  var tooltips = _ref.tooltips,
19366
19366
  setMediaUploader = _ref.setMediaUploader,
19367
19367
  attachmentProps = _ref.attachmentProps,
@@ -19377,26 +19377,6 @@ var createMenuOptions = function createMenuOptions(_ref) {
19377
19377
  return option.match(/^h[1-6]$/);
19378
19378
  });
19379
19379
  return [
19380
- // history
19381
- [{
19382
- icon: Undo,
19383
- command: runEditorCommand(function (editor) {
19384
- return editor.chain().focus().undo().run();
19385
- }),
19386
- isEnabled: options.includes(EDITOR_OPTIONS.UNDO),
19387
- optionName: EDITOR_OPTIONS.UNDO,
19388
- label: (_tooltips$undo = tooltips.undo) !== null && _tooltips$undo !== void 0 ? _tooltips$undo : t$1("neetoEditor.menu.undo"),
19389
- type: MENU_ELEMENT_TYPES.BUTTON
19390
- }, {
19391
- icon: Redo,
19392
- command: runEditorCommand(function (editor) {
19393
- return editor.chain().focus().redo().run();
19394
- }),
19395
- isEnabled: options.includes(EDITOR_OPTIONS.REDO),
19396
- optionName: EDITOR_OPTIONS.REDO,
19397
- label: (_tooltips$redo = tooltips.redo) !== null && _tooltips$redo !== void 0 ? _tooltips$redo : t$1("neetoEditor.menu.redo"),
19398
- type: MENU_ELEMENT_TYPES.BUTTON
19399
- }],
19400
19380
  // font
19401
19381
  [{
19402
19382
  type: MENU_ELEMENT_TYPES.FONT_SIZE,
@@ -19585,7 +19565,27 @@ var createMenuOptions = function createMenuOptions(_ref) {
19585
19565
  optionName: EDITOR_OPTIONS.UNDERLINE,
19586
19566
  label: (_tooltips$underline = tooltips.underline) !== null && _tooltips$underline !== void 0 ? _tooltips$underline : t$1("neetoEditor.menu.underline")
19587
19567
  }], //addons
19588
- _toConsumableArray(addonCommandOptions)];
19568
+ _toConsumableArray(addonCommandOptions),
19569
+ // history
19570
+ [{
19571
+ icon: Undo,
19572
+ command: runEditorCommand(function (editor) {
19573
+ return editor.chain().focus().undo().run();
19574
+ }),
19575
+ isEnabled: options.includes(EDITOR_OPTIONS.UNDO),
19576
+ optionName: EDITOR_OPTIONS.UNDO,
19577
+ label: (_tooltips$undo = tooltips.undo) !== null && _tooltips$undo !== void 0 ? _tooltips$undo : t$1("neetoEditor.menu.undo"),
19578
+ type: MENU_ELEMENT_TYPES.BUTTON
19579
+ }, {
19580
+ icon: Redo,
19581
+ command: runEditorCommand(function (editor) {
19582
+ return editor.chain().focus().redo().run();
19583
+ }),
19584
+ isEnabled: options.includes(EDITOR_OPTIONS.REDO),
19585
+ optionName: EDITOR_OPTIONS.REDO,
19586
+ label: (_tooltips$redo = tooltips.redo) !== null && _tooltips$redo !== void 0 ? _tooltips$redo : t$1("neetoEditor.menu.redo"),
19587
+ type: MENU_ELEMENT_TYPES.BUTTON
19588
+ }]];
19589
19589
  };
19590
19590
  var buildOptionsFromAddonCommands = function buildOptionsFromAddonCommands(_ref2) {
19591
19591
  var commands = _ref2.commands,
@@ -19790,4 +19790,4 @@ var Menu = function Menu(props) {
19790
19790
  };
19791
19791
 
19792
19792
  export { resetFocussedNode as A, findParentNodeClosestToPos as B, CALLOUT_TYPES as C, DecorationSet as D, Extension as E, BubbleMenu as F, getLinkPopoverPosition as G, getMarkType as H, InputRule as I, getMarkRange as J, useEditor as K, useEditorState$1 as L, Menu as M, Node as N, EditorContent as O, PasteRule as P, MediaUploader as Q, ReactNodeViewRenderer as R, LinkAddPopOver as S, EditorView as T, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, callOrReturn as e, getExtensionField as f, getMarkAttributes as g, NodeViewWrapper as h, isNodeSelection as i, NodeViewContent as j, keydownHandler as k, findChildren as l, mergeAttributes as m, nodeInputRule as n, escapeForRegEx as o, ReactRenderer as p, EmojiPickerMenu as q, emojiPickerApi as r, combineTransactionSteps as s, textblockTypeInputRule as t, getChangedRanges as u, findChildrenInRange as v, wrappingInputRule as w, getMarksBetween as x, getAttributes as y, highlightFocussedNode as z };
19793
- //# sourceMappingURL=chunk-_e08WUMF.js.map
19793
+ //# sourceMappingURL=chunk-kj6JugoV.js.map