@bigbinary/neeto-editor 1.47.40 → 1.47.42

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 (40) hide show
  1. package/dist/Editor.js +12 -4
  2. package/dist/Editor.js.map +1 -1
  3. package/dist/cjs/Editor.cjs.js +12 -4
  4. package/dist/cjs/Editor.cjs.js.map +1 -1
  5. package/dist/editor-stats.html +1 -1
  6. package/package.json +3 -1
  7. package/src/translations/ar.json +2 -1
  8. package/src/translations/bg.json +2 -1
  9. package/src/translations/ca.json +2 -1
  10. package/src/translations/cs.json +2 -1
  11. package/src/translations/da.json +2 -1
  12. package/src/translations/de.json +2 -1
  13. package/src/translations/en.json +1 -0
  14. package/src/translations/es-MX.json +2 -1
  15. package/src/translations/es.json +2 -1
  16. package/src/translations/et.json +2 -1
  17. package/src/translations/fi.json +2 -1
  18. package/src/translations/fil.json +2 -1
  19. package/src/translations/fr.json +2 -1
  20. package/src/translations/hi.json +2 -1
  21. package/src/translations/hr.json +2 -1
  22. package/src/translations/id.json +2 -1
  23. package/src/translations/it.json +2 -1
  24. package/src/translations/ja.json +2 -1
  25. package/src/translations/ko.json +2 -1
  26. package/src/translations/nl.json +2 -1
  27. package/src/translations/pl.json +2 -1
  28. package/src/translations/pt-BR.json +2 -1
  29. package/src/translations/pt.json +2 -1
  30. package/src/translations/ro.json +2 -1
  31. package/src/translations/ru.json +2 -1
  32. package/src/translations/sk.json +2 -1
  33. package/src/translations/sl.json +2 -1
  34. package/src/translations/sv.json +2 -1
  35. package/src/translations/th.json +2 -1
  36. package/src/translations/tr.json +2 -1
  37. package/src/translations/uk.json +2 -1
  38. package/src/translations/vi.json +2 -1
  39. package/src/translations/zh-CN.json +2 -1
  40. package/src/translations/zh-TW.json +2 -1
package/dist/Editor.js CHANGED
@@ -13398,6 +13398,7 @@ var Placeholder = Extension.create({
13398
13398
  emptyEditorClass: "is-editor-empty",
13399
13399
  emptyNodeClass: "is-empty",
13400
13400
  placeholder: t("neetoEditor.placeholders.writeSomething"),
13401
+ slashCommandsPlaceholder: t("neetoEditor.placeholders.writeSlashForCommands"),
13401
13402
  showOnlyWhenEditable: true,
13402
13403
  showOnlyCurrent: false,
13403
13404
  includeChildren: false
@@ -13422,12 +13423,16 @@ var Placeholder = Extension.create({
13422
13423
  var isExcluded = _this.options.excludeNodeTypes.includes(node.type.name);
13423
13424
  if ((hasAnchor || !_this.options.showOnlyCurrent) && !isExcluded && isEmpty) {
13424
13425
  var classes = [_this.options.emptyNodeClass];
13426
+ var placeholderText = _this.options.placeholder;
13425
13427
  if (_this.editor.isEmpty) {
13426
13428
  classes.push(_this.options.emptyEditorClass);
13429
+ if (_this.options.isSlashCommandsActive && !_this.options.placeholder) {
13430
+ placeholderText = _this.options.slashCommandsPlaceholder;
13431
+ }
13427
13432
  }
13428
13433
  var decoration = Decoration.node(pos, pos + node.nodeSize, {
13429
13434
  "class": classes.join(" "),
13430
- "data-placeholder": _this.options.placeholder
13435
+ "data-placeholder": placeholderText
13431
13436
  });
13432
13437
  decorations.push(decoration);
13433
13438
  }
@@ -19443,7 +19448,9 @@ var EmbedComponent = function EmbedComponent(_ref) {
19443
19448
  deleteNode: deleteNode,
19444
19449
  editor: editor,
19445
19450
  updateAttributes: updateAttributes
19446
- }), /*#__PURE__*/jsx("iframe", _objectSpread$2({}, node.attrs))]
19451
+ }), /*#__PURE__*/jsx("iframe", _objectSpread$2(_objectSpread$2({}, node.attrs), {}, {
19452
+ allowFullScreen: true
19453
+ }))]
19447
19454
  })
19448
19455
  });
19449
19456
  };
@@ -19702,7 +19709,8 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
19702
19709
  target: openLinkInNewTab ? "_blank" : null
19703
19710
  }
19704
19711
  }), Placeholder.configure({
19705
- placeholder: placeholder
19712
+ placeholder: placeholder,
19713
+ isSlashCommandsActive: isSlashCommandsActive
19706
19714
  }), StarterKit.configure({
19707
19715
  document: false,
19708
19716
  codeBlock: false,
@@ -20219,7 +20227,7 @@ var Editor = function Editor(_ref, ref) {
20219
20227
  var isFixedMenuActive = menuType === "fixed";
20220
20228
  var isBubbleMenuActive = menuType === "bubble";
20221
20229
  var isSlashCommandsActive = !hideSlashCommands || isBubbleMenuActive && !hideSlashCommands;
20222
- var isPlaceholderActive = !!placeholder;
20230
+ var isPlaceholderActive = !!placeholder || isSlashCommandsActive;
20223
20231
  var _useState3 = useState(false),
20224
20232
  _useState4 = _slicedToArray(_useState3, 2),
20225
20233
  isAddLinkActive = _useState4[0],