@mdxeditor/editor 0.12.0 → 0.14.0

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 (42) hide show
  1. package/dist/MDXEditor.d.ts +4 -0
  2. package/dist/MDXEditor.js +11 -10
  3. package/dist/gurx/react.d.ts +4 -1
  4. package/dist/gurx/react.js +2 -1
  5. package/dist/plugins/codeblock/index.d.ts +13 -3
  6. package/dist/plugins/codemirror/index.d.ts +17 -3
  7. package/dist/plugins/core/NestedLexicalEditor.d.ts +1 -1
  8. package/dist/plugins/core/NestedLexicalEditor.js +4 -4
  9. package/dist/plugins/core/SharedHistoryPlugin.js +1 -1
  10. package/dist/plugins/core/index.d.ts +12 -3
  11. package/dist/plugins/core/index.js +4 -1
  12. package/dist/plugins/diff-source/index.d.ts +13 -3
  13. package/dist/plugins/directives/index.d.ts +13 -3
  14. package/dist/plugins/frontmatter/index.d.ts +13 -3
  15. package/dist/plugins/headings/index.d.ts +3 -1
  16. package/dist/plugins/image/ImageEditor.js +5 -3
  17. package/dist/plugins/image/index.d.ts +32 -12
  18. package/dist/plugins/image/index.js +23 -21
  19. package/dist/plugins/jsx/index.d.ts +12 -2
  20. package/dist/plugins/link/AutoLinkPlugin.d.ts +9 -0
  21. package/dist/plugins/link/AutoLinkPlugin.js +18 -0
  22. package/dist/plugins/link/index.d.ts +21 -4
  23. package/dist/plugins/link/index.js +16 -5
  24. package/dist/plugins/link-dialog/index.d.ts +11 -3
  25. package/dist/plugins/link-dialog/index.js +1 -0
  26. package/dist/plugins/lists/index.d.ts +13 -3
  27. package/dist/plugins/lists/index.js +2 -2
  28. package/dist/plugins/markdown-shortcut/index.d.ts +1 -0
  29. package/dist/plugins/markdown-shortcut/index.js +45 -21
  30. package/dist/plugins/quote/index.d.ts +10 -3
  31. package/dist/plugins/sandpack/index.d.ts +16 -2
  32. package/dist/plugins/table/TableEditor.js +5 -5
  33. package/dist/plugins/table/index.d.ts +13 -3
  34. package/dist/plugins/thematic-break/LexicalThematicBreakVisitor.d.ts +1 -1
  35. package/dist/plugins/thematic-break/LexicalThematicBreakVisitor.js +1 -1
  36. package/dist/plugins/thematic-break/MdastThematicBreakVisitor.js +1 -1
  37. package/dist/plugins/thematic-break/index.d.ts +13 -3
  38. package/dist/plugins/thematic-break/index.js +2 -2
  39. package/dist/plugins/toolbar/index.d.ts +10 -2
  40. package/dist/style.css +184 -165
  41. package/dist/styles/ui.module.css.js +90 -84
  42. package/package.json +1 -1
@@ -1,86 +1,88 @@
1
- const editorRoot = "_editorRoot_1ixsf_36";
2
- const editorWrapper = "_editorWrapper_1ixsf_130";
3
- const nestedListItem = "_nestedListItem_1ixsf_133";
4
- const toolbarRoot = "_toolbarRoot_1ixsf_137";
5
- const toolbarModeSwitch = "_toolbarModeSwitch_1ixsf_161";
6
- const toolbarToggleItem = "_toolbarToggleItem_1ixsf_170";
7
- const toolbarGroupOfGroups = "_toolbarGroupOfGroups_1ixsf_180";
8
- const toolbarToggleSingleGroup = "_toolbarToggleSingleGroup_1ixsf_185";
9
- const toolbarButton = "_toolbarButton_1ixsf_199";
10
- const toolbarNodeKindSelectContainer = "_toolbarNodeKindSelectContainer_1ixsf_233";
11
- const toolbarButtonDropdownContainer = "_toolbarButtonDropdownContainer_1ixsf_234";
12
- const toolbarCodeBlockLanguageSelectContent = "_toolbarCodeBlockLanguageSelectContent_1ixsf_235";
13
- const selectContainer = "_selectContainer_1ixsf_236";
14
- const toolbarNodeKindSelectTrigger = "_toolbarNodeKindSelectTrigger_1ixsf_250";
15
- const toolbarButtonSelectTrigger = "_toolbarButtonSelectTrigger_1ixsf_251";
16
- const selectTrigger = "_selectTrigger_1ixsf_252";
17
- const toolbarCodeBlockLanguageSelectTrigger = "_toolbarCodeBlockLanguageSelectTrigger_1ixsf_288";
18
- const toolbarNodeKindSelectItem = "_toolbarNodeKindSelectItem_1ixsf_294";
19
- const selectItem = "_selectItem_1ixsf_295";
20
- const toolbarNodeKindSelectDropdownArrow = "_toolbarNodeKindSelectDropdownArrow_1ixsf_319";
21
- const selectDropdownArrow = "_selectDropdownArrow_1ixsf_320";
22
- const contentEditable = "_contentEditable_1ixsf_324";
23
- const sandpackWrapper = "_sandpackWrapper_1ixsf_334";
24
- const frontmatterWrapper = "_frontmatterWrapper_1ixsf_338";
25
- const frontmatterToggleButton = "_frontmatterToggleButton_1ixsf_348";
26
- const propertyPanelTitle = "_propertyPanelTitle_1ixsf_356";
27
- const propertyEditorTable = "_propertyEditorTable_1ixsf_364";
28
- const iconButton = "_iconButton_1ixsf_381";
29
- const readOnlyColumnCell = "_readOnlyColumnCell_1ixsf_386";
30
- const propertyEditorLabelCell = "_propertyEditorLabelCell_1ixsf_391";
31
- const buttonsFooter = "_buttonsFooter_1ixsf_399";
32
- const propertyEditorInput = "_propertyEditorInput_1ixsf_405";
33
- const primaryButton = "_primaryButton_1ixsf_420";
34
- const secondaryButton = "_secondaryButton_1ixsf_420";
35
- const linkDialogEditForm = "_linkDialogEditForm_1ixsf_436";
36
- const linkDialogInputContainer = "_linkDialogInputContainer_1ixsf_442";
37
- const linkDialogInputWrapper = "_linkDialogInputWrapper_1ixsf_448";
38
- const linkDialogInput = "_linkDialogInput_1ixsf_442";
39
- const linkDialogAutocompleteContainer = "_linkDialogAutocompleteContainer_1ixsf_478";
40
- const linkDialogAnchor = "_linkDialogAnchor_1ixsf_523";
41
- const linkDialogPopoverContent = "_linkDialogPopoverContent_1ixsf_537";
42
- const tableColumnEditorPopoverContent = "_tableColumnEditorPopoverContent_1ixsf_537";
43
- const dialogContent = "_dialogContent_1ixsf_537";
44
- const popoverContent = "_popoverContent_1ixsf_549";
45
- const popoverArrow = "_popoverArrow_1ixsf_560";
46
- const linkDialogPreviewAnchor = "_linkDialogPreviewAnchor_1ixsf_566";
47
- const tooltipContent = "_tooltipContent_1ixsf_588";
48
- const actionButton = "_actionButton_1ixsf_602";
49
- const primaryActionButton = "_primaryActionButton_1ixsf_608";
50
- const tableEditor = "_tableEditor_1ixsf_617";
51
- const toolCell = "_toolCell_1ixsf_628";
52
- const tableColumnEditorTrigger = "_tableColumnEditorTrigger_1ixsf_645";
53
- const tableRowEditorTrigger = "_tableRowEditorTrigger_1ixsf_645";
54
- const addRowButton = "_addRowButton_1ixsf_645";
55
- const addColumnButton = "_addColumnButton_1ixsf_645";
56
- const tableColumnEditorToolbar = "_tableColumnEditorToolbar_1ixsf_679";
57
- const toggleGroupRoot = "_toggleGroupRoot_1ixsf_691";
58
- const tableToolsColumn = "_tableToolsColumn_1ixsf_708";
59
- const leftAlignedCell = "_leftAlignedCell_1ixsf_716";
60
- const rightAlignedCell = "_rightAlignedCell_1ixsf_720";
61
- const centeredCell = "_centeredCell_1ixsf_724";
62
- const dialogOverlay = "_dialogOverlay_1ixsf_752";
63
- const overlayShow = "_overlayShow_1ixsf_1";
64
- const contentShow = "_contentShow_1ixsf_1";
65
- const focusedImage = "_focusedImage_1ixsf_794";
66
- const imageWrapper = "_imageWrapper_1ixsf_798";
67
- const inlineEditor = "_inlineEditor_1ixsf_810";
68
- const blockEditor = "_blockEditor_1ixsf_819";
69
- const nestedEditor = "_nestedEditor_1ixsf_828";
70
- const genericComponentName = "_genericComponentName_1ixsf_845";
71
- const diffSourceToggle = "_diffSourceToggle_1ixsf_851";
72
- const selectWithLabel = "_selectWithLabel_1ixsf_865";
73
- const toolbarTitleMode = "_toolbarTitleMode_1ixsf_879";
74
- const imageControlWrapperResizing = "_imageControlWrapperResizing_1ixsf_885";
75
- const imageResizer = "_imageResizer_1ixsf_889";
76
- const imageResizerN = "_imageResizerN_1ixsf_898";
77
- const imageResizerNe = "_imageResizerNe_1ixsf_904";
78
- const imageResizerE = "_imageResizerE_1ixsf_910";
79
- const imageResizerSe = "_imageResizerSe_1ixsf_916";
80
- const imageResizerS = "_imageResizerS_1ixsf_916";
81
- const imageResizerSw = "_imageResizerSw_1ixsf_928";
82
- const imageResizerW = "_imageResizerW_1ixsf_934";
83
- const imageResizerNw = "_imageResizerNw_1ixsf_940";
1
+ const editorRoot = "_editorRoot_1g25u_36";
2
+ const editorWrapper = "_editorWrapper_1g25u_130";
3
+ const nestedListItem = "_nestedListItem_1g25u_133";
4
+ const toolbarRoot = "_toolbarRoot_1g25u_137";
5
+ const toolbarModeSwitch = "_toolbarModeSwitch_1g25u_161";
6
+ const toolbarToggleItem = "_toolbarToggleItem_1g25u_170";
7
+ const toolbarGroupOfGroups = "_toolbarGroupOfGroups_1g25u_180";
8
+ const toolbarToggleSingleGroup = "_toolbarToggleSingleGroup_1g25u_185";
9
+ const toolbarButton = "_toolbarButton_1g25u_199";
10
+ const toolbarNodeKindSelectContainer = "_toolbarNodeKindSelectContainer_1g25u_233";
11
+ const toolbarButtonDropdownContainer = "_toolbarButtonDropdownContainer_1g25u_234";
12
+ const toolbarCodeBlockLanguageSelectContent = "_toolbarCodeBlockLanguageSelectContent_1g25u_235";
13
+ const selectContainer = "_selectContainer_1g25u_236";
14
+ const toolbarNodeKindSelectTrigger = "_toolbarNodeKindSelectTrigger_1g25u_250";
15
+ const toolbarButtonSelectTrigger = "_toolbarButtonSelectTrigger_1g25u_251";
16
+ const selectTrigger = "_selectTrigger_1g25u_252";
17
+ const toolbarCodeBlockLanguageSelectTrigger = "_toolbarCodeBlockLanguageSelectTrigger_1g25u_288";
18
+ const toolbarNodeKindSelectItem = "_toolbarNodeKindSelectItem_1g25u_294";
19
+ const selectItem = "_selectItem_1g25u_295";
20
+ const toolbarNodeKindSelectDropdownArrow = "_toolbarNodeKindSelectDropdownArrow_1g25u_319";
21
+ const selectDropdownArrow = "_selectDropdownArrow_1g25u_320";
22
+ const contentEditable = "_contentEditable_1g25u_324";
23
+ const sandpackWrapper = "_sandpackWrapper_1g25u_334";
24
+ const frontmatterWrapper = "_frontmatterWrapper_1g25u_338";
25
+ const frontmatterToggleButton = "_frontmatterToggleButton_1g25u_348";
26
+ const propertyPanelTitle = "_propertyPanelTitle_1g25u_356";
27
+ const propertyEditorTable = "_propertyEditorTable_1g25u_364";
28
+ const iconButton = "_iconButton_1g25u_381";
29
+ const readOnlyColumnCell = "_readOnlyColumnCell_1g25u_386";
30
+ const propertyEditorLabelCell = "_propertyEditorLabelCell_1g25u_391";
31
+ const buttonsFooter = "_buttonsFooter_1g25u_399";
32
+ const propertyEditorInput = "_propertyEditorInput_1g25u_405";
33
+ const primaryButton = "_primaryButton_1g25u_420";
34
+ const secondaryButton = "_secondaryButton_1g25u_420";
35
+ const linkDialogEditForm = "_linkDialogEditForm_1g25u_436";
36
+ const linkDialogInputContainer = "_linkDialogInputContainer_1g25u_442";
37
+ const linkDialogInputWrapper = "_linkDialogInputWrapper_1g25u_448";
38
+ const linkDialogInput = "_linkDialogInput_1g25u_442";
39
+ const linkDialogAutocompleteContainer = "_linkDialogAutocompleteContainer_1g25u_478";
40
+ const linkDialogAnchor = "_linkDialogAnchor_1g25u_523";
41
+ const linkDialogPopoverContent = "_linkDialogPopoverContent_1g25u_537";
42
+ const tableColumnEditorPopoverContent = "_tableColumnEditorPopoverContent_1g25u_537";
43
+ const dialogContent = "_dialogContent_1g25u_537";
44
+ const popoverContent = "_popoverContent_1g25u_549";
45
+ const popoverArrow = "_popoverArrow_1g25u_560";
46
+ const linkDialogPreviewAnchor = "_linkDialogPreviewAnchor_1g25u_566";
47
+ const tooltipContent = "_tooltipContent_1g25u_588";
48
+ const actionButton = "_actionButton_1g25u_602";
49
+ const primaryActionButton = "_primaryActionButton_1g25u_608";
50
+ const tableEditor = "_tableEditor_1g25u_617";
51
+ const toolCell = "_toolCell_1g25u_628";
52
+ const tableColumnEditorTrigger = "_tableColumnEditorTrigger_1g25u_645";
53
+ const tableRowEditorTrigger = "_tableRowEditorTrigger_1g25u_645";
54
+ const addRowButton = "_addRowButton_1g25u_645";
55
+ const addColumnButton = "_addColumnButton_1g25u_645";
56
+ const tableColumnEditorToolbar = "_tableColumnEditorToolbar_1g25u_679";
57
+ const toggleGroupRoot = "_toggleGroupRoot_1g25u_691";
58
+ const tableToolsColumn = "_tableToolsColumn_1g25u_708";
59
+ const leftAlignedCell = "_leftAlignedCell_1g25u_716";
60
+ const rightAlignedCell = "_rightAlignedCell_1g25u_720";
61
+ const centeredCell = "_centeredCell_1g25u_724";
62
+ const dialogOverlay = "_dialogOverlay_1g25u_752";
63
+ const overlayShow = "_overlayShow_1g25u_1";
64
+ const contentShow = "_contentShow_1g25u_1";
65
+ const focusedImage = "_focusedImage_1g25u_794";
66
+ const imageWrapper = "_imageWrapper_1g25u_798";
67
+ const inlineEditor = "_inlineEditor_1g25u_810";
68
+ const blockEditor = "_blockEditor_1g25u_819";
69
+ const nestedEditor = "_nestedEditor_1g25u_828";
70
+ const genericComponentName = "_genericComponentName_1g25u_845";
71
+ const diffSourceToggle = "_diffSourceToggle_1g25u_851";
72
+ const selectWithLabel = "_selectWithLabel_1g25u_865";
73
+ const toolbarTitleMode = "_toolbarTitleMode_1g25u_879";
74
+ const imageControlWrapperResizing = "_imageControlWrapperResizing_1g25u_885";
75
+ const imageResizer = "_imageResizer_1g25u_889";
76
+ const imageResizerN = "_imageResizerN_1g25u_898";
77
+ const imageResizerNe = "_imageResizerNe_1g25u_904";
78
+ const imageResizerE = "_imageResizerE_1g25u_910";
79
+ const imageResizerSe = "_imageResizerSe_1g25u_916";
80
+ const imageResizerS = "_imageResizerS_1g25u_916";
81
+ const imageResizerSw = "_imageResizerSw_1g25u_928";
82
+ const imageResizerW = "_imageResizerW_1g25u_934";
83
+ const imageResizerNw = "_imageResizerNw_1g25u_940";
84
+ const placeholder = "_placeholder_1g25u_946";
85
+ const rootContentEditableWrapper = "_rootContentEditableWrapper_1g25u_959";
84
86
  const styles = {
85
87
  editorRoot,
86
88
  editorWrapper,
@@ -164,7 +166,9 @@ const styles = {
164
166
  imageResizerS,
165
167
  imageResizerSw,
166
168
  imageResizerW,
167
- imageResizerNw
169
+ imageResizerNw,
170
+ placeholder,
171
+ rootContentEditableWrapper
168
172
  };
169
173
  export {
170
174
  actionButton,
@@ -210,6 +214,7 @@ export {
210
214
  nestedEditor,
211
215
  nestedListItem,
212
216
  overlayShow,
217
+ placeholder,
213
218
  popoverArrow,
214
219
  popoverContent,
215
220
  primaryActionButton,
@@ -220,6 +225,7 @@ export {
220
225
  propertyPanelTitle,
221
226
  readOnlyColumnCell,
222
227
  rightAlignedCell,
228
+ rootContentEditableWrapper,
223
229
  sandpackWrapper,
224
230
  secondaryButton,
225
231
  selectContainer,
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "private": false,
10
10
  "sideEffects": false,
11
11
  "type": "module",
12
- "version": "0.12.0",
12
+ "version": "0.14.0",
13
13
  "description": "React component for rich text markdown editing",
14
14
  "scripts": {
15
15
  "build": "vite build",