@bigbinary/neeto-editor 1.47.37 → 1.47.38

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.
@@ -5,7 +5,7 @@ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
5
5
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
6
6
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
7
  var React = require('react');
8
- var Menu$3 = require('./chunk-p3lUkdc9.cjs.js');
8
+ var Menu$3 = require('./chunk-_359mtm-.cjs.js');
9
9
  var classnames = require('classnames');
10
10
  var constants = require('./chunk-BlNpxkqF.cjs.js');
11
11
  var neetoCist = require('@bigbinary/neeto-cist');
@@ -10,7 +10,7 @@ var Editor = require('./Editor.cjs.js');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  require('@babel/runtime/helpers/toConsumableArray');
12
12
  require('@babel/runtime/helpers/slicedToArray');
13
- require('./chunk-p3lUkdc9.cjs.js');
13
+ require('./chunk-_359mtm-.cjs.js');
14
14
  require('./chunk-vQvjPR2x.cjs.js');
15
15
  require('i18next');
16
16
  require('@bigbinary/neeto-icons/TextH1');
@@ -5,7 +5,7 @@ require('@babel/runtime/helpers/toConsumableArray');
5
5
  require('@babel/runtime/helpers/slicedToArray');
6
6
  require('react');
7
7
  require('ramda');
8
- var Menu = require('./chunk-p3lUkdc9.cjs.js');
8
+ var Menu = require('./chunk-_359mtm-.cjs.js');
9
9
  require('./chunk-IbrhD0V3.cjs.js');
10
10
  require('react/jsx-runtime');
11
11
  require('./chunk-vQvjPR2x.cjs.js');
@@ -19363,7 +19363,7 @@ var MENU_ELEMENT_WIDTHS = _defineProperty(_defineProperty(_defineProperty(_defin
19363
19363
  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; }
19364
19364
  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; }
19365
19365
  var createMenuOptions = function createMenuOptions(_ref) {
19366
- 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;
19366
+ 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;
19367
19367
  var tooltips = _ref.tooltips,
19368
19368
  setMediaUploader = _ref.setMediaUploader,
19369
19369
  attachmentProps = _ref.attachmentProps,
@@ -19379,26 +19379,6 @@ var createMenuOptions = function createMenuOptions(_ref) {
19379
19379
  return option.match(/^h[1-6]$/);
19380
19380
  });
19381
19381
  return [
19382
- // history
19383
- [{
19384
- icon: Undo,
19385
- command: runEditorCommand(function (editor) {
19386
- return editor.chain().focus().undo().run();
19387
- }),
19388
- isEnabled: options.includes(constants.EDITOR_OPTIONS.UNDO),
19389
- optionName: constants.EDITOR_OPTIONS.UNDO,
19390
- label: (_tooltips$undo = tooltips.undo) !== null && _tooltips$undo !== void 0 ? _tooltips$undo : i18n.t("neetoEditor.menu.undo"),
19391
- type: MENU_ELEMENT_TYPES.BUTTON
19392
- }, {
19393
- icon: Redo,
19394
- command: runEditorCommand(function (editor) {
19395
- return editor.chain().focus().redo().run();
19396
- }),
19397
- isEnabled: options.includes(constants.EDITOR_OPTIONS.REDO),
19398
- optionName: constants.EDITOR_OPTIONS.REDO,
19399
- label: (_tooltips$redo = tooltips.redo) !== null && _tooltips$redo !== void 0 ? _tooltips$redo : i18n.t("neetoEditor.menu.redo"),
19400
- type: MENU_ELEMENT_TYPES.BUTTON
19401
- }],
19402
19382
  // font
19403
19383
  [{
19404
19384
  type: MENU_ELEMENT_TYPES.FONT_SIZE,
@@ -19587,7 +19567,27 @@ var createMenuOptions = function createMenuOptions(_ref) {
19587
19567
  optionName: constants.EDITOR_OPTIONS.UNDERLINE,
19588
19568
  label: (_tooltips$underline = tooltips.underline) !== null && _tooltips$underline !== void 0 ? _tooltips$underline : i18n.t("neetoEditor.menu.underline")
19589
19569
  }], //addons
19590
- _toConsumableArray(addonCommandOptions)];
19570
+ _toConsumableArray(addonCommandOptions),
19571
+ // history
19572
+ [{
19573
+ icon: Undo,
19574
+ command: runEditorCommand(function (editor) {
19575
+ return editor.chain().focus().undo().run();
19576
+ }),
19577
+ isEnabled: options.includes(constants.EDITOR_OPTIONS.UNDO),
19578
+ optionName: constants.EDITOR_OPTIONS.UNDO,
19579
+ label: (_tooltips$undo = tooltips.undo) !== null && _tooltips$undo !== void 0 ? _tooltips$undo : i18n.t("neetoEditor.menu.undo"),
19580
+ type: MENU_ELEMENT_TYPES.BUTTON
19581
+ }, {
19582
+ icon: Redo,
19583
+ command: runEditorCommand(function (editor) {
19584
+ return editor.chain().focus().redo().run();
19585
+ }),
19586
+ isEnabled: options.includes(constants.EDITOR_OPTIONS.REDO),
19587
+ optionName: constants.EDITOR_OPTIONS.REDO,
19588
+ label: (_tooltips$redo = tooltips.redo) !== null && _tooltips$redo !== void 0 ? _tooltips$redo : i18n.t("neetoEditor.menu.redo"),
19589
+ type: MENU_ELEMENT_TYPES.BUTTON
19590
+ }]];
19591
19591
  };
19592
19592
  var buildOptionsFromAddonCommands = function buildOptionsFromAddonCommands(_ref2) {
19593
19593
  var commands = _ref2.commands,
@@ -19837,4 +19837,4 @@ exports.textblockTypeInputRule = textblockTypeInputRule;
19837
19837
  exports.useEditor = useEditor;
19838
19838
  exports.useEditorState = useEditorState$1;
19839
19839
  exports.wrappingInputRule = wrappingInputRule;
19840
- //# sourceMappingURL=chunk-p3lUkdc9.cjs.js.map
19840
+ //# sourceMappingURL=chunk-_359mtm-.cjs.js.map