@lexical/react 0.2.9 → 0.3.2

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 (135) hide show
  1. package/DEPRECATED_useLexical.dev.js +55 -4
  2. package/DEPRECATED_useLexical.js.flow +23 -0
  3. package/DEPRECATED_useLexical.prod.js +3 -1
  4. package/DEPRECATED_useLexicalAutoFormatter.dev.js +1 -2
  5. package/DEPRECATED_useLexicalAutoFormatter.js.flow +12 -0
  6. package/DEPRECATED_useLexicalAutoFormatter.prod.js +1 -1
  7. package/DEPRECATED_useLexicalCanShowPlaceholder.dev.js +6 -8
  8. package/DEPRECATED_useLexicalCanShowPlaceholder.js.flow +12 -0
  9. package/DEPRECATED_useLexicalCanShowPlaceholder.prod.js +2 -1
  10. package/DEPRECATED_useLexicalCharacterLimit.dev.js +5 -3
  11. package/DEPRECATED_useLexicalCharacterLimit.js.flow +28 -0
  12. package/DEPRECATED_useLexicalCharacterLimit.prod.js +6 -6
  13. package/DEPRECATED_useLexicalDecorators.dev.js +7 -5
  14. package/DEPRECATED_useLexicalDecorators.js.flow +14 -0
  15. package/DEPRECATED_useLexicalDecorators.prod.js +2 -2
  16. package/DEPRECATED_useLexicalEditor.dev.js +55 -3
  17. package/DEPRECATED_useLexicalEditor.prod.js +2 -1
  18. package/DEPRECATED_useLexicalEditorEvents.dev.js +1 -5
  19. package/DEPRECATED_useLexicalEditorEvents.js.flow +19 -0
  20. package/DEPRECATED_useLexicalEditorEvents.prod.js +2 -2
  21. package/DEPRECATED_useLexicalHistory.dev.js +0 -2
  22. package/DEPRECATED_useLexicalHistory.js.flow +31 -0
  23. package/DEPRECATED_useLexicalHistory.prod.js +1 -1
  24. package/DEPRECATED_useLexicalList.dev.js +3 -5
  25. package/DEPRECATED_useLexicalList.js.flow +10 -0
  26. package/DEPRECATED_useLexicalList.prod.js +2 -2
  27. package/DEPRECATED_useLexicalPlainText.dev.js +1 -7
  28. package/DEPRECATED_useLexicalPlainText.js.flow +15 -0
  29. package/DEPRECATED_useLexicalPlainText.prod.js +2 -2
  30. package/DEPRECATED_useLexicalRichText.dev.js +1 -7
  31. package/DEPRECATED_useLexicalRichText.js.flow +15 -0
  32. package/DEPRECATED_useLexicalRichText.prod.js +2 -2
  33. package/LexicalAutoFocusPlugin.d.ts +1 -1
  34. package/LexicalAutoFocusPlugin.dev.js +17 -4
  35. package/LexicalAutoFocusPlugin.js.flow +1 -1
  36. package/LexicalAutoFocusPlugin.prod.js +1 -1
  37. package/LexicalAutoLinkPlugin.d.ts +1 -1
  38. package/LexicalAutoLinkPlugin.dev.js +4 -5
  39. package/LexicalAutoLinkPlugin.js.flow +2 -1
  40. package/LexicalAutoLinkPlugin.prod.js +5 -5
  41. package/LexicalAutoScrollPlugin.d.ts +1 -1
  42. package/LexicalAutoScrollPlugin.dev.js +2 -5
  43. package/LexicalAutoScrollPlugin.js.flow +1 -3
  44. package/LexicalAutoScrollPlugin.prod.js +2 -2
  45. package/LexicalBlockWithAlignableContents.d.ts +1 -3
  46. package/LexicalBlockWithAlignableContents.dev.js +7 -9
  47. package/LexicalBlockWithAlignableContents.prod.js +4 -4
  48. package/LexicalCharacterLimitPlugin.d.ts +1 -1
  49. package/LexicalCharacterLimitPlugin.dev.js +6 -5
  50. package/LexicalCharacterLimitPlugin.js.flow +1 -1
  51. package/LexicalCharacterLimitPlugin.prod.js +8 -8
  52. package/LexicalCheckListPlugin.d.ts +1 -1
  53. package/LexicalCheckListPlugin.dev.js +9 -17
  54. package/LexicalCheckListPlugin.js.flow +1 -1
  55. package/LexicalCheckListPlugin.prod.js +7 -7
  56. package/LexicalClearEditorPlugin.d.ts +2 -6
  57. package/LexicalClearEditorPlugin.dev.js +2 -5
  58. package/LexicalClearEditorPlugin.js.flow +1 -1
  59. package/LexicalClearEditorPlugin.prod.js +2 -2
  60. package/LexicalCollaborationPlugin.d.ts +1 -0
  61. package/LexicalCollaborationPlugin.dev.js +9 -5
  62. package/LexicalCollaborationPlugin.prod.js +9 -9
  63. package/LexicalComposer.d.ts +2 -2
  64. package/LexicalComposer.dev.js +1 -6
  65. package/LexicalComposer.js.flow +1 -1
  66. package/LexicalComposer.prod.js +2 -2
  67. package/LexicalComposerContext.dev.js +0 -1
  68. package/LexicalComposerContext.prod.js +1 -1
  69. package/LexicalContentEditable.d.ts +2 -5
  70. package/LexicalContentEditable.dev.js +5 -7
  71. package/LexicalContentEditable.js.flow +1 -3
  72. package/LexicalContentEditable.prod.js +3 -3
  73. package/LexicalDecoratorBlockNode.d.ts +11 -2
  74. package/LexicalDecoratorBlockNode.dev.js +8 -1
  75. package/LexicalDecoratorBlockNode.prod.js +1 -1
  76. package/LexicalHashtagPlugin.d.ts +1 -1
  77. package/LexicalHashtagPlugin.dev.js +2 -3
  78. package/LexicalHashtagPlugin.js.flow +1 -1
  79. package/LexicalHashtagPlugin.prod.js +3 -3
  80. package/LexicalHistoryPlugin.d.ts +1 -0
  81. package/LexicalHistoryPlugin.dev.js +0 -2
  82. package/LexicalHistoryPlugin.prod.js +1 -1
  83. package/LexicalHorizontalRuleNode.d.ts +1 -1
  84. package/LexicalHorizontalRuleNode.dev.js +5 -17
  85. package/LexicalHorizontalRuleNode.prod.js +3 -3
  86. package/LexicalLinkPlugin.d.ts +1 -1
  87. package/LexicalLinkPlugin.dev.js +3 -107
  88. package/LexicalLinkPlugin.js.flow +1 -1
  89. package/LexicalLinkPlugin.prod.js +1 -4
  90. package/LexicalListPlugin.d.ts +1 -1
  91. package/LexicalListPlugin.dev.js +9 -6
  92. package/LexicalListPlugin.js.flow +1 -1
  93. package/LexicalListPlugin.prod.js +3 -3
  94. package/LexicalMarkdownShortcutPlugin.d.ts +2 -2
  95. package/LexicalMarkdownShortcutPlugin.dev.js +7 -83
  96. package/LexicalMarkdownShortcutPlugin.js.flow +2 -2
  97. package/LexicalMarkdownShortcutPlugin.prod.js +2 -3
  98. package/LexicalNestedComposer.d.ts +1 -1
  99. package/LexicalNestedComposer.dev.js +1 -2
  100. package/LexicalNestedComposer.js.flow +1 -1
  101. package/LexicalNestedComposer.prod.js +3 -3
  102. package/LexicalOnChangePlugin.d.ts +2 -1
  103. package/LexicalOnChangePlugin.dev.js +1 -4
  104. package/LexicalOnChangePlugin.js.flow +1 -1
  105. package/LexicalOnChangePlugin.prod.js +2 -2
  106. package/LexicalPlainTextPlugin.d.ts +3 -2
  107. package/LexicalPlainTextPlugin.dev.js +12 -10
  108. package/LexicalPlainTextPlugin.js.flow +1 -1
  109. package/LexicalPlainTextPlugin.prod.js +4 -4
  110. package/LexicalRichTextPlugin.d.ts +3 -2
  111. package/LexicalRichTextPlugin.dev.js +12 -10
  112. package/LexicalRichTextPlugin.js.flow +1 -1
  113. package/LexicalRichTextPlugin.prod.js +4 -4
  114. package/LexicalTablePlugin.d.ts +1 -1
  115. package/LexicalTablePlugin.dev.js +7 -8
  116. package/LexicalTablePlugin.js.flow +1 -1
  117. package/LexicalTablePlugin.prod.js +4 -4
  118. package/LexicalTreeView.d.ts +2 -1
  119. package/LexicalTreeView.dev.js +4 -5
  120. package/LexicalTreeView.js.flow +1 -1
  121. package/LexicalTreeView.prod.js +11 -11
  122. package/README.md +10 -6
  123. package/package.json +19 -19
  124. package/useLexicalIsTextContentEmpty.d.ts +2 -1
  125. package/useLexicalIsTextContentEmpty.dev.js +2 -5
  126. package/useLexicalIsTextContentEmpty.js.flow +1 -1
  127. package/useLexicalIsTextContentEmpty.prod.js +1 -1
  128. package/useLexicalNodeSelection.d.ts +2 -1
  129. package/useLexicalNodeSelection.dev.js +1 -2
  130. package/useLexicalNodeSelection.js.flow +1 -1
  131. package/useLexicalNodeSelection.prod.js +2 -2
  132. package/useLexicalTextEntity.d.ts +2 -1
  133. package/useLexicalTextEntity.dev.js +1 -2
  134. package/useLexicalTextEntity.js.flow +1 -1
  135. package/useLexicalTextEntity.prod.js +1 -1
@@ -17,7 +17,6 @@ var react = require('react');
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  *
20
- *
21
20
  */
22
21
  function useLexicalTextEntity(getMatch, targetNode, createNode) {
23
22
  const [editor] = LexicalComposerContext.useLexicalComposerContext();
@@ -26,4 +25,4 @@ function useLexicalTextEntity(getMatch, targetNode, createNode) {
26
25
  }, [createNode, editor, getMatch, targetNode]);
27
26
  }
28
27
 
29
- module.exports = useLexicalTextEntity;
28
+ exports.useLexicalTextEntity = useLexicalTextEntity;
@@ -11,7 +11,7 @@ import type {TextNode} from 'lexical';
11
11
 
12
12
  export type EntityMatch = {end: number, start: number};
13
13
 
14
- declare export default function useLexicalTextEntity<N: TextNode>(
14
+ declare export function useLexicalTextEntity<N: TextNode>(
15
15
  getMatch: (text: string) => null | EntityMatch,
16
16
  targetNode: Class<N>,
17
17
  createNode: (textNode: TextNode) => N,
@@ -4,4 +4,4 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- var e=require("@lexical/react/LexicalComposerContext"),f=require("@lexical/text"),g=require("@lexical/utils"),h=require("react");module.exports=function(a,b,c){const [d]=e.useLexicalComposerContext();h.useEffect(()=>g.mergeRegister(...f.registerLexicalTextEntity(d,a,b,c)),[c,d,a,b])};
7
+ 'use strict';var e=require("@lexical/react/LexicalComposerContext"),f=require("@lexical/text"),g=require("@lexical/utils"),h=require("react");exports.useLexicalTextEntity=function(a,b,c){let [d]=e.useLexicalComposerContext();h.useEffect(()=>g.mergeRegister(...f.registerLexicalTextEntity(d,a,b,c)),[c,d,a,b])}