@webiny/lexical-editor 5.37.2 → 5.37.3-beta.1

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 (98) hide show
  1. package/commands/insertFiles.js +3 -1
  2. package/commands/webiny-list.js +3 -1
  3. package/commands/webiny-quote.js +3 -1
  4. package/components/Editor/HeadingEditor.js +3 -1
  5. package/components/Editor/ParagraphEditor.js +3 -1
  6. package/components/Editor/RichTextEditor.js +3 -1
  7. package/components/ImageComponent.js +3 -1
  8. package/components/LexicalEditorConfig/LexicalEditorConfig.js +3 -1
  9. package/components/LexicalEditorConfig/components/Node.js +3 -1
  10. package/components/LexicalEditorConfig/components/Plugin.js +3 -1
  11. package/components/LexicalEditorConfig/components/ToolbarElement.js +3 -1
  12. package/components/LexicalHtmlRenderer.js +3 -1
  13. package/components/Toolbar/StaticToolbar.js +3 -1
  14. package/components/Toolbar/Toolbar.js +3 -1
  15. package/components/ToolbarActions/BoldAction.js +3 -1
  16. package/components/ToolbarActions/BulletListAction.js +3 -1
  17. package/components/ToolbarActions/CodeHighlightAction.js +3 -1
  18. package/components/ToolbarActions/FontColorAction.js +3 -1
  19. package/components/ToolbarActions/FontSizeAction.js +3 -1
  20. package/components/ToolbarActions/ImageAction.js +3 -1
  21. package/components/ToolbarActions/ItalicAction.js +3 -1
  22. package/components/ToolbarActions/LinkAction.js +3 -1
  23. package/components/ToolbarActions/NumberedListAction.js +3 -1
  24. package/components/ToolbarActions/QuoteAction.js +3 -1
  25. package/components/ToolbarActions/TextAlignmentAction.js +3 -1
  26. package/components/ToolbarActions/TypographyAction.js +3 -1
  27. package/components/ToolbarActions/UnderlineAction.js +3 -1
  28. package/context/FontColorActionContext.js +3 -1
  29. package/context/RichTextEditorContext.js +3 -1
  30. package/context/SharedHistoryContext.js +3 -1
  31. package/context/TextAlignmentActionContextProps.js +3 -1
  32. package/context/TypographyActionContext.js +3 -1
  33. package/hooks/useFontColorPicker.js +3 -1
  34. package/hooks/useList.js +3 -1
  35. package/hooks/useQuote.js +3 -1
  36. package/hooks/useRichTextEditor.js +3 -1
  37. package/hooks/useTextAlignmentAction.js +3 -1
  38. package/hooks/useTypographyAction.js +3 -1
  39. package/index.js +3 -1
  40. package/nodes/FontColorNode.js +3 -1
  41. package/nodes/HeadingNode.js +3 -1
  42. package/nodes/ImageNode.js +3 -1
  43. package/nodes/ListItemNode.js +3 -1
  44. package/nodes/ListNode/formatList.js +3 -1
  45. package/nodes/ListNode.js +3 -1
  46. package/nodes/ParagraphNode.js +3 -1
  47. package/nodes/QuoteNode.js +3 -1
  48. package/nodes/TypographyElementNode.js +3 -1
  49. package/nodes/link-node.js +3 -1
  50. package/nodes/types.js +3 -1
  51. package/nodes/webinyNodes.js +3 -1
  52. package/package.json +6 -6
  53. package/plugins/BlurEventPlugin/BlurEventPlugin.js +3 -1
  54. package/plugins/CodeHighlightPlugin/CodeHighlightPlugin.js +3 -1
  55. package/plugins/CodeHighlightPlugin/index.js +3 -1
  56. package/plugins/FloatingLinkEditorPlugin/FloatingLinkEditorPlugin.js +3 -1
  57. package/plugins/FloatingLinkEditorPlugin/index.js +3 -1
  58. package/plugins/FontColorPlugin/FontColorPlugin.js +3 -1
  59. package/plugins/ImagesPlugin/ImagesPlugin.js +3 -1
  60. package/plugins/LexicalUpdateStatePlugin/LexicalUpdateStatePlugin.js +3 -1
  61. package/plugins/LexicalUpdateStatePlugin/index.js +3 -1
  62. package/plugins/ListPLugin/ListPlugin.js +3 -1
  63. package/plugins/TypographyPlugin/TypographyPlugin.js +3 -1
  64. package/plugins/WebinyQuoteNodePlugin/WebinyQuoteNodePlugin.js +3 -1
  65. package/themes/webinyLexicalTheme.js +3 -1
  66. package/types.js +3 -1
  67. package/ui/ContentEditable.js +3 -1
  68. package/ui/Divider.js +3 -1
  69. package/ui/DropDown.js +3 -1
  70. package/ui/ImageResizer.js +3 -1
  71. package/ui/LinkPreview.js +3 -1
  72. package/ui/Placeholder.js +3 -1
  73. package/ui/TextInput.js +3 -1
  74. package/ui/ToolbarActionDialog.js +3 -1
  75. package/utils/canUseDOM.js +3 -1
  76. package/utils/files.js +3 -1
  77. package/utils/findTypographyStyleByHtmlTag.js +3 -1
  78. package/utils/generateInitialLexicalValue.js +3 -1
  79. package/utils/getDOMRangeRect.js +3 -1
  80. package/utils/getLexicalTextSelectionState.js +3 -1
  81. package/utils/getSelectedNode.js +3 -1
  82. package/utils/getTransparentImage.js +3 -1
  83. package/utils/isHTMLElement.js +3 -1
  84. package/utils/isUrlLinkReference.js +3 -1
  85. package/utils/isValidJSON.js +3 -1
  86. package/utils/isValidLexicalData.js +3 -1
  87. package/utils/nodes/clearNodeFormating.js +3 -1
  88. package/utils/nodes/formatToHeading.js +3 -1
  89. package/utils/nodes/formatToParagraph.js +3 -1
  90. package/utils/nodes/formatToQuote.js +3 -1
  91. package/utils/nodes/insertImage.js +3 -1
  92. package/utils/nodes/listNode.js +3 -1
  93. package/utils/point.js +3 -1
  94. package/utils/rect.js +3 -1
  95. package/utils/sanitizeUrl.js +3 -1
  96. package/utils/setFloatingElemPosition.js +3 -1
  97. package/utils/styleObjectToString.js +3 -1
  98. package/utils/toTypographyEmotionMap.js +3 -1
@@ -6,4 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.INSERT_IMAGE_COMMAND = void 0;
7
7
  var _lexical = require("lexical");
8
8
  var INSERT_IMAGE_COMMAND = (0, _lexical.createCommand)("INSERT_IMAGE_COMMAND");
9
- exports.INSERT_IMAGE_COMMAND = INSERT_IMAGE_COMMAND;
9
+ exports.INSERT_IMAGE_COMMAND = INSERT_IMAGE_COMMAND;
10
+
11
+ //# sourceMappingURL=insertFiles.js.map
@@ -10,4 +10,6 @@ exports.INSERT_UNORDERED_WEBINY_LIST_COMMAND = INSERT_UNORDERED_WEBINY_LIST_COMM
10
10
  var INSERT_ORDERED_WEBINY_LIST_COMMAND = (0, _lexical.createCommand)("INSERT_ORDERED_WEBINY_LIST_COMMAND");
11
11
  exports.INSERT_ORDERED_WEBINY_LIST_COMMAND = INSERT_ORDERED_WEBINY_LIST_COMMAND;
12
12
  var REMOVE_WEBINY_LIST_COMMAND = (0, _lexical.createCommand)("REMOVE_WEBINY_LIST_COMMAND");
13
- exports.REMOVE_WEBINY_LIST_COMMAND = REMOVE_WEBINY_LIST_COMMAND;
13
+ exports.REMOVE_WEBINY_LIST_COMMAND = REMOVE_WEBINY_LIST_COMMAND;
14
+
15
+ //# sourceMappingURL=webiny-list.js.map
@@ -6,4 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.INSERT_WEBINY_QUOTE_COMMAND = void 0;
7
7
  var _lexical = require("lexical");
8
8
  var INSERT_WEBINY_QUOTE_COMMAND = (0, _lexical.createCommand)("INSERT_WEBINY_QUOTE_COMMAND");
9
- exports.INSERT_WEBINY_QUOTE_COMMAND = INSERT_WEBINY_QUOTE_COMMAND;
9
+ exports.INSERT_WEBINY_QUOTE_COMMAND = INSERT_WEBINY_QUOTE_COMMAND;
10
+
11
+ //# sourceMappingURL=webiny-quote.js.map
@@ -24,4 +24,6 @@ var HeadingEditor = function HeadingEditor(_ref) {
24
24
  }
25
25
  }), rest === null || rest === void 0 ? void 0 : rest.children);
26
26
  };
27
- exports.HeadingEditor = HeadingEditor;
27
+ exports.HeadingEditor = HeadingEditor;
28
+
29
+ //# sourceMappingURL=HeadingEditor.js.map
@@ -24,4 +24,6 @@ var ParagraphEditor = function ParagraphEditor(_ref) {
24
24
  }
25
25
  }), rest === null || rest === void 0 ? void 0 : rest.children);
26
26
  };
27
- exports.ParagraphEditor = ParagraphEditor;
27
+ exports.ParagraphEditor = ParagraphEditor;
28
+
29
+ //# sourceMappingURL=ParagraphEditor.js.map
@@ -156,4 +156,6 @@ var RichTextEditor = (0, _reactComposition.makeComposable)("RichTextEditor", fun
156
156
  })));
157
157
  })));
158
158
  });
159
- exports.RichTextEditor = RichTextEditor;
159
+ exports.RichTextEditor = RichTextEditor;
160
+
161
+ //# sourceMappingURL=RichTextEditor.js.map
@@ -249,4 +249,6 @@ function ImageComponent(_ref2) {
249
249
  onResizeEnd: onResizeEnd,
250
250
  captionsEnabled: captionsEnabled
251
251
  })));
252
- }
252
+ }
253
+
254
+ //# sourceMappingURL=ImageComponent.js.map
@@ -70,4 +70,6 @@ function useLexicalEditorConfig() {
70
70
  plugins: config.plugins || [],
71
71
  nodes: config.nodes || []
72
72
  };
73
- }
73
+ }
74
+
75
+ //# sourceMappingURL=LexicalEditorConfig.js.map
@@ -35,4 +35,6 @@ var Node = function Node(_ref) {
35
35
  value: node
36
36
  }) : null);
37
37
  };
38
- exports.Node = Node;
38
+ exports.Node = Node;
39
+
40
+ //# sourceMappingURL=Node.js.map
@@ -35,4 +35,6 @@ var Plugin = function Plugin(_ref) {
35
35
  value: element
36
36
  }) : null);
37
37
  };
38
- exports.Plugin = Plugin;
38
+ exports.Plugin = Plugin;
39
+
40
+ //# sourceMappingURL=Plugin.js.map
@@ -35,4 +35,6 @@ var ToolbarElement = function ToolbarElement(_ref) {
35
35
  value: element
36
36
  }) : null);
37
37
  };
38
- exports.ToolbarElement = ToolbarElement;
38
+ exports.ToolbarElement = ToolbarElement;
39
+
40
+ //# sourceMappingURL=ToolbarElement.js.map
@@ -64,4 +64,6 @@ var LexicalHtmlRenderer = function LexicalHtmlRenderer(props) {
64
64
  }));
65
65
  });
66
66
  };
67
- exports.LexicalHtmlRenderer = LexicalHtmlRenderer;
67
+ exports.LexicalHtmlRenderer = LexicalHtmlRenderer;
68
+
69
+ //# sourceMappingURL=LexicalHtmlRenderer.js.map
@@ -98,4 +98,6 @@ var StaticToolbar = function StaticToolbar() {
98
98
  editor: editor
99
99
  });
100
100
  };
101
- exports.StaticToolbar = StaticToolbar;
101
+ exports.StaticToolbar = StaticToolbar;
102
+
103
+ //# sourceMappingURL=StaticToolbar.js.map
@@ -200,4 +200,6 @@ var Toolbar = function Toolbar(_ref5) {
200
200
  anchorElem: anchorElem
201
201
  });
202
202
  };
203
- exports.Toolbar = Toolbar;
203
+ exports.Toolbar = Toolbar;
204
+
205
+ //# sourceMappingURL=Toolbar.js.map
@@ -40,4 +40,6 @@ var BoldAction = function BoldAction() {
40
40
  className: "format bold"
41
41
  }));
42
42
  };
43
- exports.BoldAction = BoldAction;
43
+ exports.BoldAction = BoldAction;
44
+
45
+ //# sourceMappingURL=BoldAction.js.map
@@ -53,4 +53,6 @@ var BulletListAction = function BulletListAction() {
53
53
  className: "icon bullet-list"
54
54
  }));
55
55
  };
56
- exports.BulletListAction = BulletListAction;
56
+ exports.BulletListAction = BulletListAction;
57
+
58
+ //# sourceMappingURL=BulletListAction.js.map
@@ -40,4 +40,6 @@ var CodeHighlightAction = function CodeHighlightAction() {
40
40
  className: "format code"
41
41
  }));
42
42
  };
43
- exports.CodeHighlightAction = CodeHighlightAction;
43
+ exports.CodeHighlightAction = CodeHighlightAction;
44
+
45
+ //# sourceMappingURL=CodeHighlightAction.js.map
@@ -80,4 +80,6 @@ exports.FontColorAction = FontColorAction;
80
80
  {
81
81
  /* Color picker dropdown settings */
82
82
  }
83
- FontColorAction.ColorPicker = FontActionColorPicker;
83
+ FontColorAction.ColorPicker = FontActionColorPicker;
84
+
85
+ //# sourceMappingURL=FontColorAction.js.map
@@ -98,4 +98,6 @@ var FontSizeAction = function FontSizeAction() {
98
98
  editor: editor
99
99
  }));
100
100
  };
101
- exports.FontSizeAction = FontSizeAction;
101
+ exports.FontSizeAction = FontSizeAction;
102
+
103
+ //# sourceMappingURL=FontSizeAction.js.map
@@ -50,4 +50,6 @@ var ImageAction = function ImageAction() {
50
50
  className: "icon insert-image"
51
51
  }));
52
52
  };
53
- exports.ImageAction = ImageAction;
53
+ exports.ImageAction = ImageAction;
54
+
55
+ //# sourceMappingURL=ImageAction.js.map
@@ -40,4 +40,6 @@ var ItalicAction = function ItalicAction() {
40
40
  className: "format italic"
41
41
  }));
42
42
  };
43
- exports.ItalicAction = ItalicAction;
43
+ exports.ItalicAction = ItalicAction;
44
+
45
+ //# sourceMappingURL=ItalicAction.js.map
@@ -61,4 +61,6 @@ var LinkAction = function LinkAction() {
61
61
  className: "format link"
62
62
  }));
63
63
  };
64
- exports.LinkAction = LinkAction;
64
+ exports.LinkAction = LinkAction;
65
+
66
+ //# sourceMappingURL=LinkAction.js.map
@@ -67,4 +67,6 @@ var NumberedListAction = function NumberedListAction() {
67
67
  className: "icon numbered-list"
68
68
  }));
69
69
  };
70
- exports.NumberedListAction = NumberedListAction;
70
+ exports.NumberedListAction = NumberedListAction;
71
+
72
+ //# sourceMappingURL=NumberedListAction.js.map
@@ -49,4 +49,6 @@ var QuoteAction = function QuoteAction() {
49
49
  className: "icon quote"
50
50
  }));
51
51
  };
52
- exports.QuoteAction = QuoteAction;
52
+ exports.QuoteAction = QuoteAction;
53
+
54
+ //# sourceMappingURL=QuoteAction.js.map
@@ -67,4 +67,6 @@ var TextAlignmentAction = function TextAlignmentAction() {
67
67
  }, /*#__PURE__*/_react.default.createElement(BaseTextAlignmentDropDown, null));
68
68
  };
69
69
  exports.TextAlignmentAction = TextAlignmentAction;
70
- TextAlignmentAction.TextAlignmentDropDown = TextAlignmentActionDropDown;
70
+ TextAlignmentAction.TextAlignmentDropDown = TextAlignmentActionDropDown;
71
+
72
+ //# sourceMappingURL=TextAlignmentAction.js.map
@@ -142,4 +142,6 @@ exports.TypographyAction = TypographyAction;
142
142
  {
143
143
  /* Typography dropdown settings */
144
144
  }
145
- TypographyAction.TypographyDropDown = TypographyActionDropDown;
145
+ TypographyAction.TypographyDropDown = TypographyActionDropDown;
146
+
147
+ //# sourceMappingURL=TypographyAction.js.map
@@ -40,4 +40,6 @@ var UnderlineAction = function UnderlineAction() {
40
40
  className: "format underline"
41
41
  }));
42
42
  };
43
- exports.UnderlineAction = UnderlineAction;
43
+ exports.UnderlineAction = UnderlineAction;
44
+
45
+ //# sourceMappingURL=UnderlineAction.js.map
@@ -7,4 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.FontColorActionContext = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var FontColorActionContext = /*#__PURE__*/_react.default.createContext(undefined);
10
- exports.FontColorActionContext = FontColorActionContext;
10
+ exports.FontColorActionContext = FontColorActionContext;
11
+
12
+ //# sourceMappingURL=FontColorActionContext.js.map
@@ -71,4 +71,6 @@ var RichTextEditorProvider = function RichTextEditorProvider(_ref) {
71
71
  }
72
72
  }, children);
73
73
  };
74
- exports.RichTextEditorProvider = RichTextEditorProvider;
74
+ exports.RichTextEditorProvider = RichTextEditorProvider;
75
+
76
+ //# sourceMappingURL=RichTextEditorContext.js.map
@@ -23,4 +23,6 @@ exports.SharedHistoryContext = SharedHistoryContext;
23
23
  var useSharedHistoryContext = function useSharedHistoryContext() {
24
24
  return (0, React.useContext)(Context);
25
25
  };
26
- exports.useSharedHistoryContext = useSharedHistoryContext;
26
+ exports.useSharedHistoryContext = useSharedHistoryContext;
27
+
28
+ //# sourceMappingURL=SharedHistoryContext.js.map
@@ -7,4 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.TextAlignmentActionContext = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var TextAlignmentActionContext = /*#__PURE__*/_react.default.createContext(undefined);
10
- exports.TextAlignmentActionContext = TextAlignmentActionContext;
10
+ exports.TextAlignmentActionContext = TextAlignmentActionContext;
11
+
12
+ //# sourceMappingURL=TextAlignmentActionContextProps.js.map
@@ -7,4 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.TypographyActionContext = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var TypographyActionContext = /*#__PURE__*/_react.default.createContext(undefined);
10
- exports.TypographyActionContext = TypographyActionContext;
10
+ exports.TypographyActionContext = TypographyActionContext;
11
+
12
+ //# sourceMappingURL=TypographyActionContext.js.map
@@ -12,4 +12,6 @@ function useFontColorPicker() {
12
12
  throw Error("Missing FontColorActionContext in the component hierarchy. Are you using \"useFontColorPicker()\" in the right place?");
13
13
  }
14
14
  return context;
15
- }
15
+ }
16
+
17
+ //# sourceMappingURL=useFontColorPicker.js.map
package/hooks/useList.js CHANGED
@@ -50,4 +50,6 @@ function useList(editor) {
50
50
  return false;
51
51
  }, _lexical.COMMAND_PRIORITY_LOW));
52
52
  }, [editor]);
53
- }
53
+ }
54
+
55
+ //# sourceMappingURL=useList.js.map
package/hooks/useQuote.js CHANGED
@@ -17,4 +17,6 @@ function useQuote(editor) {
17
17
  return false;
18
18
  }, _lexical.COMMAND_PRIORITY_LOW));
19
19
  }, [editor]);
20
- }
20
+ }
21
+
22
+ //# sourceMappingURL=useQuote.js.map
@@ -12,4 +12,6 @@ function useRichTextEditor() {
12
12
  throw Error("Missing RichTextEditorContext in the component hierarchy. Are you using \"useRichTextEditor()\" in the right place?");
13
13
  }
14
14
  return context;
15
- }
15
+ }
16
+
17
+ //# sourceMappingURL=useRichTextEditor.js.map
@@ -12,4 +12,6 @@ function useTextAlignmentAction() {
12
12
  throw Error("Missing TextAlignmentActionContext in the component hierarchy. Are you using \"useTextAlignmentAction()\" in the right place?");
13
13
  }
14
14
  return context;
15
- }
15
+ }
16
+
17
+ //# sourceMappingURL=useTextAlignmentAction.js.map
@@ -12,4 +12,6 @@ function useTypographyAction() {
12
12
  throw Error("Missing TypographyActionContext in the component hierarchy. Are you using \"useTypographyAction()\" in the right place?");
13
13
  }
14
14
  return context;
15
- }
15
+ }
16
+
17
+ //# sourceMappingURL=useTypographyAction.js.map
package/index.js CHANGED
@@ -298,4 +298,6 @@ var _clearNodeFormating = require("./utils/nodes/clearNodeFormating");
298
298
  var _insertFiles = require("./commands/insertFiles");
299
299
  var _types = _interopRequireWildcard(require("./types"));
300
300
  exports.types = _types;
301
- var _LexicalEditorConfig = require("./components/LexicalEditorConfig/LexicalEditorConfig");
301
+ var _LexicalEditorConfig = require("./components/LexicalEditorConfig/LexicalEditorConfig");
302
+
303
+ //# sourceMappingURL=index.js.map
@@ -120,4 +120,6 @@ exports.$isFontColorNode = $isFontColorNode;
120
120
  function $applyStylesToNode(node, nodeStyleProvider) {
121
121
  node.setFormat(nodeStyleProvider.format);
122
122
  node.setStyle(nodeStyleProvider.style);
123
- }
123
+ }
124
+
125
+ //# sourceMappingURL=FontColorNode.js.map
@@ -188,4 +188,6 @@ function $createHeadingNode(tag, typographyStyleId) {
188
188
  }
189
189
  function $isHeadingNode(node) {
190
190
  return node instanceof HeadingNode;
191
- }
191
+ }
192
+
193
+ //# sourceMappingURL=HeadingNode.js.map
@@ -203,4 +203,6 @@ function $createImageNode(_ref) {
203
203
  }
204
204
  function $isImageNode(node) {
205
205
  return node instanceof ImageNode;
206
- }
206
+ }
207
+
208
+ //# sourceMappingURL=ImageNode.js.map
@@ -444,4 +444,6 @@ function $createListItemNode(checked) {
444
444
  }
445
445
  function $isListItemNode(node) {
446
446
  return node instanceof ListItemNode;
447
- }
447
+ }
448
+
449
+ //# sourceMappingURL=ListItemNode.js.map
@@ -444,4 +444,6 @@ function $handleListInsertParagraph() {
444
444
  // Don't leave hanging nested empty lists
445
445
  (0, _listNode.$removeHighestEmptyListParent)(anchor);
446
446
  return true;
447
- }
447
+ }
448
+
449
+ //# sourceMappingURL=formatList.js.map
package/nodes/ListNode.js CHANGED
@@ -285,4 +285,6 @@ function $createListNode(listType, themeStyleId) {
285
285
  }
286
286
  function $isListNode(node) {
287
287
  return node instanceof ListNode;
288
- }
288
+ }
289
+
290
+ //# sourceMappingURL=ListNode.js.map
@@ -215,4 +215,6 @@ function $createParagraphNode(typographyStyleId) {
215
215
  }
216
216
  function $isParagraphNode(node) {
217
217
  return node instanceof ParagraphNode;
218
- }
218
+ }
219
+
220
+ //# sourceMappingURL=ParagraphNode.js.map
@@ -222,4 +222,6 @@ function $createQuoteNode(themeStyleId, key) {
222
222
  }
223
223
  function $isQuoteNode(node) {
224
224
  return node instanceof QuoteNode;
225
- }
225
+ }
226
+
227
+ //# sourceMappingURL=QuoteNode.js.map
@@ -148,4 +148,6 @@ exports.$createTypographyNode = $createTypographyNode;
148
148
  var $isTypographyElementNode = function $isTypographyElementNode(node) {
149
149
  return node instanceof TypographyElementNode;
150
150
  };
151
- exports.$isTypographyElementNode = $isTypographyElementNode;
151
+ exports.$isTypographyElementNode = $isTypographyElementNode;
152
+
153
+ //# sourceMappingURL=TypographyElementNode.js.map
@@ -117,4 +117,6 @@ var $createLinkNode = function $createLinkNode(url) {
117
117
  var key = arguments.length > 2 ? arguments[2] : undefined;
118
118
  return new LinkNode(url, attributes, key);
119
119
  };
120
- exports.$createLinkNode = $createLinkNode;
120
+ exports.$createLinkNode = $createLinkNode;
121
+
122
+ //# sourceMappingURL=link-node.js.map
package/nodes/types.js CHANGED
@@ -2,4 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
5
+ });
6
+
7
+ //# sourceMappingURL=types.js.map
@@ -57,4 +57,6 @@ _ParagraphNode.ParagraphNode, {
57
57
  }, node.getKey());
58
58
  }
59
59
  }];
60
- exports.WebinyNodes = WebinyNodes;
60
+ exports.WebinyNodes = WebinyNodes;
61
+
62
+ //# sourceMappingURL=webinyNodes.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/lexical-editor",
3
- "version": "5.37.2",
3
+ "version": "5.37.3-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/webiny/webiny-js.git"
@@ -19,16 +19,16 @@
19
19
  "@lexical/rich-text": "0.11.3",
20
20
  "@lexical/selection": "0.11.3",
21
21
  "@lexical/utils": "0.11.3",
22
- "@webiny/react-composition": "5.37.2",
23
- "@webiny/react-properties": "5.37.2",
22
+ "@webiny/react-composition": "5.37.3-beta.1",
23
+ "@webiny/react-properties": "5.37.3-beta.1",
24
24
  "lexical": "0.11.3",
25
25
  "react": "17.0.2",
26
26
  "react-dom": "17.0.2",
27
27
  "react-style-object-to-css": "1.1.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@webiny/cli": "5.37.2",
31
- "@webiny/project-utils": "5.37.2"
30
+ "@webiny/cli": "5.37.3-beta.1",
31
+ "@webiny/project-utils": "5.37.3-beta.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public",
@@ -38,5 +38,5 @@
38
38
  "build": "yarn webiny run build",
39
39
  "watch": "yarn webiny run watch"
40
40
  },
41
- "gitHead": "e69288bf5e710060b14497aae8317034c6cb4bcc"
41
+ "gitHead": "59d377132f34c76cb198cd0f0eee211a56ca25b7"
42
42
  }
@@ -25,4 +25,6 @@ var BlurEventPlugin = function BlurEventPlugin(_ref) {
25
25
  }, []);
26
26
  return null;
27
27
  };
28
- exports.BlurEventPlugin = BlurEventPlugin;
28
+ exports.BlurEventPlugin = BlurEventPlugin;
29
+
30
+ //# sourceMappingURL=BlurEventPlugin.js.map
@@ -17,4 +17,6 @@ function CodeHighlightPlugin() {
17
17
  return (0, _code.registerCodeHighlighting)(editor);
18
18
  }, [editor]);
19
19
  return null;
20
- }
20
+ }
21
+
22
+ //# sourceMappingURL=CodeHighlightPlugin.js.map
@@ -13,4 +13,6 @@ Object.keys(_CodeHighlightPlugin).forEach(function (key) {
13
13
  return _CodeHighlightPlugin[key];
14
14
  }
15
15
  });
16
- });
16
+ });
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -259,4 +259,6 @@ function FloatingLinkEditorPlugin(_ref3) {
259
259
  _useLexicalComposerCo2 = (0, _slicedToArray2.default)(_useLexicalComposerCo, 1),
260
260
  editor = _useLexicalComposerCo2[0];
261
261
  return useFloatingLinkEditorToolbar(editor, anchorElem);
262
- }
262
+ }
263
+
264
+ //# sourceMappingURL=FloatingLinkEditorPlugin.js.map
@@ -13,4 +13,6 @@ Object.keys(_FloatingLinkEditorPlugin).forEach(function (key) {
13
13
  return _FloatingLinkEditorPlugin[key];
14
14
  }
15
15
  });
16
- });
16
+ });
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -36,4 +36,6 @@ var FontColorPlugin = function FontColorPlugin() {
36
36
  }, [editor]);
37
37
  return null;
38
38
  };
39
- exports.FontColorPlugin = FontColorPlugin;
39
+ exports.FontColorPlugin = FontColorPlugin;
40
+
41
+ //# sourceMappingURL=FontColorPlugin.js.map
@@ -149,4 +149,6 @@ function getDragSelection(event) {
149
149
  throw Error("Cannot get the selection when dragging");
150
150
  }
151
151
  return range;
152
- }
152
+ }
153
+
154
+ //# sourceMappingURL=ImagesPlugin.js.map
@@ -31,4 +31,6 @@ var LexicalUpdateStatePlugin = function LexicalUpdateStatePlugin(_ref) {
31
31
  }, [value, editor]);
32
32
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
33
33
  };
34
- exports.LexicalUpdateStatePlugin = LexicalUpdateStatePlugin;
34
+ exports.LexicalUpdateStatePlugin = LexicalUpdateStatePlugin;
35
+
36
+ //# sourceMappingURL=LexicalUpdateStatePlugin.js.map
@@ -13,4 +13,6 @@ Object.keys(_LexicalUpdateStatePlugin).forEach(function (key) {
13
13
  return _LexicalUpdateStatePlugin[key];
14
14
  }
15
15
  });
16
- });
16
+ });
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -22,4 +22,6 @@ function ListPlugin() {
22
22
  }, [editor]);
23
23
  (0, _useList.useList)(editor);
24
24
  return null;
25
- }
25
+ }
26
+
27
+ //# sourceMappingURL=ListPlugin.js.map
@@ -32,4 +32,6 @@ var TypographyPlugin = function TypographyPlugin() {
32
32
  }, [editor]);
33
33
  return null;
34
34
  };
35
- exports.TypographyPlugin = TypographyPlugin;
35
+ exports.TypographyPlugin = TypographyPlugin;
36
+
37
+ //# sourceMappingURL=TypographyPlugin.js.map
@@ -21,4 +21,6 @@ function QuotePlugin() {
21
21
  }, [editor]);
22
22
  (0, _useQuote.useQuote)(editor);
23
23
  return null;
24
- }
24
+ }
25
+
26
+ //# sourceMappingURL=WebinyQuoteNodePlugin.js.map
@@ -87,4 +87,6 @@ var webinyEditorTheme = {
87
87
  indent: "PlaygroundEditorTheme__indent",
88
88
  inlineImage: "inline-editor-image"
89
89
  };
90
- exports.webinyEditorTheme = webinyEditorTheme;
90
+ exports.webinyEditorTheme = webinyEditorTheme;
91
+
92
+ //# sourceMappingURL=webinyLexicalTheme.js.map
package/types.js CHANGED
@@ -36,4 +36,6 @@ Object.defineProperty(exports, "RichTextEditorProps", {
36
36
  var _FontColorAction = require("./components/ToolbarActions/FontColorAction");
37
37
  var _insertFiles = require("./commands/insertFiles");
38
38
  var _RichTextEditor = require("./components/Editor/RichTextEditor");
39
- var _lexical = require("lexical");
39
+ var _lexical = require("lexical");
40
+
41
+ //# sourceMappingURL=types.js.map
@@ -21,4 +21,6 @@ function LexicalContentEditable(_ref) {
21
21
  return /*#__PURE__*/React.createElement(_LexicalContentEditable.ContentEditable, {
22
22
  className: className || "ContentEditable__root"
23
23
  });
24
- }
24
+ }
25
+
26
+ //# sourceMappingURL=ContentEditable.js.map
package/ui/Divider.js CHANGED
@@ -10,4 +10,6 @@ function Divider() {
10
10
  return /*#__PURE__*/_react.default.createElement("div", {
11
11
  className: "divider"
12
12
  });
13
- }
13
+ }
14
+
15
+ //# sourceMappingURL=Divider.js.map
package/ui/DropDown.js CHANGED
@@ -203,4 +203,6 @@ function DropDown(_ref3) {
203
203
  dropDownRef: dropDownRef,
204
204
  onClose: handleClose
205
205
  }, children)));
206
- }
206
+ }
207
+
208
+ //# sourceMappingURL=DropDown.js.map
@@ -210,4 +210,6 @@ function ImageResizer(_ref) {
210
210
  handlePointerDown(event, Direction.north | Direction.west);
211
211
  }
212
212
  }));
213
- }
213
+ }
214
+
215
+ //# sourceMappingURL=ImageResizer.js.map
package/ui/LinkPreview.js CHANGED
@@ -98,4 +98,6 @@ function LinkPreview(_ref2) {
98
98
  }, /*#__PURE__*/React.createElement(LinkPreviewContent, {
99
99
  url: url
100
100
  }));
101
- }
101
+ }
102
+
103
+ //# sourceMappingURL=LinkPreview.js.map
package/ui/Placeholder.js CHANGED
@@ -25,4 +25,6 @@ function Placeholder(_ref) {
25
25
  style: (0, _objectSpread2.default)({}, styles),
26
26
  className: className || "Placeholder__root"
27
27
  }, children);
28
- }
28
+ }
29
+
30
+ //# sourceMappingURL=Placeholder.js.map
package/ui/TextInput.js CHANGED
@@ -36,4 +36,6 @@ function TextInput(_ref) {
36
36
  },
37
37
  "data-test-id": dataTestId
38
38
  }));
39
- }
39
+ }
40
+
41
+ //# sourceMappingURL=TextInput.js.map
@@ -103,4 +103,6 @@ var ToolbarActionDialog = function ToolbarActionDialog(_ref2) {
103
103
  onClose: handleClose
104
104
  }, children));
105
105
  };
106
- exports.ToolbarActionDialog = ToolbarActionDialog;
106
+ exports.ToolbarActionDialog = ToolbarActionDialog;
107
+
108
+ //# sourceMappingURL=ToolbarActionDialog.js.map
@@ -5,4 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.CAN_USE_DOM = void 0;
7
7
  var CAN_USE_DOM = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
8
- exports.CAN_USE_DOM = CAN_USE_DOM;
8
+ exports.CAN_USE_DOM = CAN_USE_DOM;
9
+
10
+ //# sourceMappingURL=canUseDOM.js.map
package/utils/files.js CHANGED
@@ -59,4 +59,6 @@ var fileToImagePayload = function fileToImagePayload(file) {
59
59
  }
60
60
  return imagePayload;
61
61
  };
62
- exports.fileToImagePayload = fileToImagePayload;
62
+ exports.fileToImagePayload = fileToImagePayload;
63
+
64
+ //# sourceMappingURL=files.js.map
@@ -13,4 +13,6 @@ var findTypographyStyleByHtmlTag = function findTypographyStyleByHtmlTag(htmlTag
13
13
  }
14
14
  return undefined;
15
15
  };
16
- exports.findTypographyStyleByHtmlTag = findTypographyStyleByHtmlTag;
16
+ exports.findTypographyStyleByHtmlTag = findTypographyStyleByHtmlTag;
17
+
18
+ //# sourceMappingURL=findTypographyStyleByHtmlTag.js.map
@@ -27,4 +27,6 @@ var generateInitialLexicalValue = function generateInitialLexicalValue() {
27
27
  }
28
28
  });
29
29
  };
30
- exports.generateInitialLexicalValue = generateInitialLexicalValue;
30
+ exports.generateInitialLexicalValue = generateInitialLexicalValue;
31
+
32
+ //# sourceMappingURL=generateInitialLexicalValue.js.map
@@ -24,4 +24,6 @@ function getDOMRangeRect(nativeSelection, rootElement) {
24
24
  rect = domRange.getBoundingClientRect();
25
25
  }
26
26
  return rect;
27
- }
27
+ }
28
+
29
+ //# sourceMappingURL=getDOMRangeRect.js.map
@@ -164,4 +164,6 @@ var getLexicalTextSelectionState = function getLexicalTextSelectionState(activeE
164
164
  }
165
165
  return null;
166
166
  };
167
- exports.getLexicalTextSelectionState = getLexicalTextSelectionState;
167
+ exports.getLexicalTextSelectionState = getLexicalTextSelectionState;
168
+
169
+ //# sourceMappingURL=getLexicalTextSelectionState.js.map
@@ -27,4 +27,6 @@ function getSelectedNode(selection) {
27
27
  } else {
28
28
  return (0, _selection.$isAtNodeEnd)(anchor) ? focusNode : anchorNode;
29
29
  }
30
- }
30
+ }
31
+
32
+ //# sourceMappingURL=getSelectedNode.js.map
@@ -7,4 +7,6 @@ exports.getTransparentImage = void 0;
7
7
  var getTransparentImage = function getTransparentImage() {
8
8
  return "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
9
9
  };
10
- exports.getTransparentImage = getTransparentImage;
10
+ exports.getTransparentImage = getTransparentImage;
11
+
12
+ //# sourceMappingURL=getTransparentImage.js.map
@@ -13,4 +13,6 @@ exports.isHTMLElement = isHTMLElement;
13
13
  */
14
14
  function isHTMLElement(x) {
15
15
  return x instanceof HTMLElement;
16
- }
16
+ }
17
+
18
+ //# sourceMappingURL=isHTMLElement.js.map
@@ -7,4 +7,6 @@ exports.isUrlLinkReference = void 0;
7
7
  var isUrlLinkReference = function isUrlLinkReference(url) {
8
8
  return url.startsWith("#");
9
9
  };
10
- exports.isUrlLinkReference = isUrlLinkReference;
10
+ exports.isUrlLinkReference = isUrlLinkReference;
11
+
12
+ //# sourceMappingURL=isUrlLinkReference.js.map
@@ -15,4 +15,6 @@ var isValidJSON = function isValidJSON(value) {
15
15
  return false;
16
16
  }
17
17
  };
18
- exports.isValidJSON = isValidJSON;
18
+ exports.isValidJSON = isValidJSON;
19
+
20
+ //# sourceMappingURL=isValidJSON.js.map
@@ -21,4 +21,6 @@ var isValidLexicalData = function isValidLexicalData(editorStateValue) {
21
21
  var data = JSON.parse(editorStateValue);
22
22
  return !!data["root"];
23
23
  };
24
- exports.isValidLexicalData = isValidLexicalData;
24
+ exports.isValidLexicalData = isValidLexicalData;
25
+
26
+ //# sourceMappingURL=isValidLexicalData.js.map
@@ -25,4 +25,6 @@ var clearNodeFormatting = function clearNodeFormatting(activeEditor, selection)
25
25
  }
26
26
  });
27
27
  };
28
- exports.clearNodeFormatting = clearNodeFormatting;
28
+ exports.clearNodeFormatting = clearNodeFormatting;
29
+
30
+ //# sourceMappingURL=clearNodeFormating.js.map
@@ -22,4 +22,6 @@ var formatToHeading = function formatToHeading(editor, tag, typographyStyleId) {
22
22
  }
23
23
  });
24
24
  };
25
- exports.formatToHeading = formatToHeading;
25
+ exports.formatToHeading = formatToHeading;
26
+
27
+ //# sourceMappingURL=formatToHeading.js.map
@@ -17,4 +17,6 @@ var formatToParagraph = function formatToParagraph(editor, typographyStyleId) {
17
17
  }
18
18
  });
19
19
  };
20
- exports.formatToParagraph = formatToParagraph;
20
+ exports.formatToParagraph = formatToParagraph;
21
+
22
+ //# sourceMappingURL=formatToParagraph.js.map
@@ -22,4 +22,6 @@ var formatToQuote = function formatToQuote(editor, themeStyleId) {
22
22
  }
23
23
  });
24
24
  };
25
- exports.formatToQuote = formatToQuote;
25
+ exports.formatToQuote = formatToQuote;
26
+
27
+ //# sourceMappingURL=formatToQuote.js.map
@@ -19,4 +19,6 @@ var insertImage = function insertImage(payload) {
19
19
  }
20
20
  return true;
21
21
  };
22
- exports.insertImage = insertImage;
22
+ exports.insertImage = insertImage;
23
+
24
+ //# sourceMappingURL=insertImage.js.map
@@ -104,4 +104,6 @@ function $removeHighestEmptyListParent(sublist) {
104
104
  function wrapInListItem(node) {
105
105
  var listItemWrapper = (0, _ListItemNode.$createListItemNode)();
106
106
  return listItemWrapper.append(node);
107
- }
107
+ }
108
+
109
+ //# sourceMappingURL=listNode.js.map
package/utils/point.js CHANGED
@@ -71,4 +71,6 @@ var Point = /*#__PURE__*/function () {
71
71
  exports.Point = Point;
72
72
  function isPoint(x) {
73
73
  return x instanceof Point;
74
- }
74
+ }
75
+
76
+ //# sourceMappingURL=point.js.map
package/utils/rect.js CHANGED
@@ -161,4 +161,6 @@ var Rect = /*#__PURE__*/function () {
161
161
  }]);
162
162
  return Rect;
163
163
  }();
164
- exports.Rect = Rect;
164
+ exports.Rect = Rect;
165
+
166
+ //# sourceMappingURL=rect.js.map
@@ -28,4 +28,6 @@ var sanitizeUrl = function sanitizeUrl(url) {
28
28
  }
29
29
  return "https://";
30
30
  };
31
- exports.sanitizeUrl = sanitizeUrl;
31
+ exports.sanitizeUrl = sanitizeUrl;
32
+
33
+ //# sourceMappingURL=sanitizeUrl.js.map
@@ -37,4 +37,6 @@ function setFloatingElemPosition(targetRect, floatingElem, anchorElem) {
37
37
  left -= anchorElementRect.left;
38
38
  floatingElem.style.opacity = "1";
39
39
  floatingElem.style.transform = "translate(".concat(left, "px, ").concat(top, "px)");
40
- }
40
+ }
41
+
42
+ //# sourceMappingURL=setFloatingElemPosition.js.map
@@ -19,4 +19,6 @@ var styleObjectToString = function styleObjectToString(styleObject) {
19
19
  }
20
20
  return (0, _reactStyleObjectToCss.default)(styleObject);
21
21
  };
22
- exports.styleObjectToString = styleObjectToString;
22
+ exports.styleObjectToString = styleObjectToString;
23
+
24
+ //# sourceMappingURL=styleObjectToString.js.map
@@ -38,4 +38,6 @@ var toTypographyEmotionMap = function toTypographyEmotionMap(css, theme, themeSt
38
38
  }
39
39
  return map;
40
40
  };
41
- exports.toTypographyEmotionMap = toTypographyEmotionMap;
41
+ exports.toTypographyEmotionMap = toTypographyEmotionMap;
42
+
43
+ //# sourceMappingURL=toTypographyEmotionMap.js.map