@mdxeditor/editor 1.1.2 → 1.2.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.
- package/dist/plugins/core/PropertyPopover.js +5 -3
- package/dist/plugins/core/ui/DownshiftAutoComplete.d.ts +11 -0
- package/dist/plugins/core/ui/DownshiftAutoComplete.js +66 -0
- package/dist/plugins/frontmatter/FrontmatterEditor.js +23 -12
- package/dist/plugins/image/ImageDialog.d.ts +2 -0
- package/dist/plugins/image/ImageDialog.js +69 -0
- package/dist/plugins/image/ImageEditor.d.ts +2 -1
- package/dist/plugins/image/ImageEditor.js +38 -5
- package/dist/plugins/image/ImageNode.d.ts +2 -0
- package/dist/plugins/image/ImageNode.js +18 -2
- package/dist/plugins/image/index.d.ts +67 -10
- package/dist/plugins/image/index.js +56 -10
- package/dist/plugins/link-dialog/LinkDialog.d.ts +7 -4
- package/dist/plugins/link-dialog/LinkDialog.js +40 -71
- package/dist/plugins/link-dialog/index.d.ts +30 -9
- package/dist/plugins/link-dialog/index.js +24 -46
- package/dist/plugins/toolbar/components/InsertImage.js +7 -15
- package/dist/plugins/toolbar/primitives/DialogButton.js +1 -1
- package/dist/style.css +312 -217
- package/dist/styles/ui.module.css.js +119 -95
- package/package.json +1 -1
|
@@ -1,95 +1,103 @@
|
|
|
1
|
-
const editorRoot = "
|
|
2
|
-
const editorWrapper = "
|
|
3
|
-
const nestedListItem = "
|
|
4
|
-
const toolbarRoot = "
|
|
5
|
-
const readOnlyToolbarRoot = "
|
|
6
|
-
const toolbarModeSwitch = "
|
|
7
|
-
const toolbarToggleItem = "
|
|
8
|
-
const toolbarGroupOfGroups = "
|
|
9
|
-
const toolbarToggleSingleGroup = "
|
|
10
|
-
const toolbarButton = "
|
|
11
|
-
const activeToolbarButton = "
|
|
12
|
-
const toolbarNodeKindSelectContainer = "
|
|
13
|
-
const toolbarButtonDropdownContainer = "
|
|
14
|
-
const toolbarCodeBlockLanguageSelectContent = "
|
|
15
|
-
const selectContainer = "
|
|
16
|
-
const toolbarNodeKindSelectTrigger = "
|
|
17
|
-
const toolbarButtonSelectTrigger = "
|
|
18
|
-
const selectTrigger = "
|
|
19
|
-
const toolbarCodeBlockLanguageSelectTrigger = "
|
|
20
|
-
const toolbarNodeKindSelectItem = "
|
|
21
|
-
const selectItem = "
|
|
22
|
-
const toolbarNodeKindSelectDropdownArrow = "
|
|
23
|
-
const selectDropdownArrow = "
|
|
24
|
-
const contentEditable = "
|
|
25
|
-
const sandpackWrapper = "
|
|
26
|
-
const frontmatterWrapper = "
|
|
27
|
-
const frontmatterToggleButton = "
|
|
28
|
-
const propertyPanelTitle = "
|
|
29
|
-
const propertyEditorTable = "
|
|
30
|
-
const iconButton = "
|
|
31
|
-
const readOnlyColumnCell = "
|
|
32
|
-
const propertyEditorLabelCell = "
|
|
33
|
-
const buttonsFooter = "
|
|
34
|
-
const propertyEditorInput = "
|
|
35
|
-
const primaryButton = "
|
|
36
|
-
const secondaryButton = "
|
|
37
|
-
const smallButton = "
|
|
38
|
-
const dialogForm = "
|
|
39
|
-
const linkDialogEditForm = "
|
|
40
|
-
const linkDialogInputContainer = "
|
|
41
|
-
const linkDialogInputWrapper = "
|
|
42
|
-
const linkDialogInput = "
|
|
43
|
-
const
|
|
44
|
-
const linkDialogAnchor = "
|
|
45
|
-
const linkDialogPopoverContent = "
|
|
46
|
-
const tableColumnEditorPopoverContent = "
|
|
47
|
-
const dialogContent = "
|
|
48
|
-
const largeDialogContent = "
|
|
49
|
-
const dialogTitle = "
|
|
50
|
-
const dialogCloseButton = "
|
|
51
|
-
const popoverContent = "
|
|
52
|
-
const popoverArrow = "
|
|
53
|
-
const linkDialogPreviewAnchor = "
|
|
54
|
-
const tooltipContent = "
|
|
55
|
-
const actionButton = "
|
|
56
|
-
const primaryActionButton = "
|
|
57
|
-
const tableEditor = "
|
|
58
|
-
const toolCell = "
|
|
59
|
-
const tableColumnEditorTrigger = "
|
|
60
|
-
const tableRowEditorTrigger = "
|
|
61
|
-
const addRowButton = "
|
|
62
|
-
const addColumnButton = "
|
|
63
|
-
const tableColumnEditorToolbar = "
|
|
64
|
-
const toggleGroupRoot = "
|
|
65
|
-
const tableToolsColumn = "
|
|
66
|
-
const leftAlignedCell = "
|
|
67
|
-
const rightAlignedCell = "
|
|
68
|
-
const centeredCell = "
|
|
69
|
-
const dialogOverlay = "
|
|
70
|
-
const overlayShow = "
|
|
71
|
-
const contentShow = "
|
|
72
|
-
const focusedImage = "
|
|
73
|
-
const imageWrapper = "
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
1
|
+
const editorRoot = "_editorRoot_16b3d_36";
|
|
2
|
+
const editorWrapper = "_editorWrapper_16b3d_134";
|
|
3
|
+
const nestedListItem = "_nestedListItem_16b3d_137";
|
|
4
|
+
const toolbarRoot = "_toolbarRoot_16b3d_141";
|
|
5
|
+
const readOnlyToolbarRoot = "_readOnlyToolbarRoot_16b3d_164";
|
|
6
|
+
const toolbarModeSwitch = "_toolbarModeSwitch_16b3d_172";
|
|
7
|
+
const toolbarToggleItem = "_toolbarToggleItem_16b3d_182";
|
|
8
|
+
const toolbarGroupOfGroups = "_toolbarGroupOfGroups_16b3d_192";
|
|
9
|
+
const toolbarToggleSingleGroup = "_toolbarToggleSingleGroup_16b3d_197";
|
|
10
|
+
const toolbarButton = "_toolbarButton_16b3d_211";
|
|
11
|
+
const activeToolbarButton = "_activeToolbarButton_16b3d_241";
|
|
12
|
+
const toolbarNodeKindSelectContainer = "_toolbarNodeKindSelectContainer_16b3d_249";
|
|
13
|
+
const toolbarButtonDropdownContainer = "_toolbarButtonDropdownContainer_16b3d_250";
|
|
14
|
+
const toolbarCodeBlockLanguageSelectContent = "_toolbarCodeBlockLanguageSelectContent_16b3d_251";
|
|
15
|
+
const selectContainer = "_selectContainer_16b3d_252";
|
|
16
|
+
const toolbarNodeKindSelectTrigger = "_toolbarNodeKindSelectTrigger_16b3d_266";
|
|
17
|
+
const toolbarButtonSelectTrigger = "_toolbarButtonSelectTrigger_16b3d_267";
|
|
18
|
+
const selectTrigger = "_selectTrigger_16b3d_268";
|
|
19
|
+
const toolbarCodeBlockLanguageSelectTrigger = "_toolbarCodeBlockLanguageSelectTrigger_16b3d_304";
|
|
20
|
+
const toolbarNodeKindSelectItem = "_toolbarNodeKindSelectItem_16b3d_310";
|
|
21
|
+
const selectItem = "_selectItem_16b3d_311";
|
|
22
|
+
const toolbarNodeKindSelectDropdownArrow = "_toolbarNodeKindSelectDropdownArrow_16b3d_335";
|
|
23
|
+
const selectDropdownArrow = "_selectDropdownArrow_16b3d_336";
|
|
24
|
+
const contentEditable = "_contentEditable_16b3d_340";
|
|
25
|
+
const sandpackWrapper = "_sandpackWrapper_16b3d_350";
|
|
26
|
+
const frontmatterWrapper = "_frontmatterWrapper_16b3d_354";
|
|
27
|
+
const frontmatterToggleButton = "_frontmatterToggleButton_16b3d_364";
|
|
28
|
+
const propertyPanelTitle = "_propertyPanelTitle_16b3d_372";
|
|
29
|
+
const propertyEditorTable = "_propertyEditorTable_16b3d_380";
|
|
30
|
+
const iconButton = "_iconButton_16b3d_397";
|
|
31
|
+
const readOnlyColumnCell = "_readOnlyColumnCell_16b3d_402";
|
|
32
|
+
const propertyEditorLabelCell = "_propertyEditorLabelCell_16b3d_407";
|
|
33
|
+
const buttonsFooter = "_buttonsFooter_16b3d_415";
|
|
34
|
+
const propertyEditorInput = "_propertyEditorInput_16b3d_421";
|
|
35
|
+
const primaryButton = "_primaryButton_16b3d_442";
|
|
36
|
+
const secondaryButton = "_secondaryButton_16b3d_442";
|
|
37
|
+
const smallButton = "_smallButton_16b3d_456";
|
|
38
|
+
const dialogForm = "_dialogForm_16b3d_468";
|
|
39
|
+
const linkDialogEditForm = "_linkDialogEditForm_16b3d_474";
|
|
40
|
+
const linkDialogInputContainer = "_linkDialogInputContainer_16b3d_482";
|
|
41
|
+
const linkDialogInputWrapper = "_linkDialogInputWrapper_16b3d_488";
|
|
42
|
+
const linkDialogInput = "_linkDialogInput_16b3d_482";
|
|
43
|
+
const dialogInput = "_dialogInput_16b3d_508";
|
|
44
|
+
const linkDialogAnchor = "_linkDialogAnchor_16b3d_518";
|
|
45
|
+
const linkDialogPopoverContent = "_linkDialogPopoverContent_16b3d_532";
|
|
46
|
+
const tableColumnEditorPopoverContent = "_tableColumnEditorPopoverContent_16b3d_532";
|
|
47
|
+
const dialogContent = "_dialogContent_16b3d_532";
|
|
48
|
+
const largeDialogContent = "_largeDialogContent_16b3d_544";
|
|
49
|
+
const dialogTitle = "_dialogTitle_16b3d_554";
|
|
50
|
+
const dialogCloseButton = "_dialogCloseButton_16b3d_560";
|
|
51
|
+
const popoverContent = "_popoverContent_16b3d_567";
|
|
52
|
+
const popoverArrow = "_popoverArrow_16b3d_579";
|
|
53
|
+
const linkDialogPreviewAnchor = "_linkDialogPreviewAnchor_16b3d_585";
|
|
54
|
+
const tooltipContent = "_tooltipContent_16b3d_607";
|
|
55
|
+
const actionButton = "_actionButton_16b3d_621";
|
|
56
|
+
const primaryActionButton = "_primaryActionButton_16b3d_627";
|
|
57
|
+
const tableEditor = "_tableEditor_16b3d_636";
|
|
58
|
+
const toolCell = "_toolCell_16b3d_647";
|
|
59
|
+
const tableColumnEditorTrigger = "_tableColumnEditorTrigger_16b3d_664";
|
|
60
|
+
const tableRowEditorTrigger = "_tableRowEditorTrigger_16b3d_664";
|
|
61
|
+
const addRowButton = "_addRowButton_16b3d_664";
|
|
62
|
+
const addColumnButton = "_addColumnButton_16b3d_664";
|
|
63
|
+
const tableColumnEditorToolbar = "_tableColumnEditorToolbar_16b3d_698";
|
|
64
|
+
const toggleGroupRoot = "_toggleGroupRoot_16b3d_710";
|
|
65
|
+
const tableToolsColumn = "_tableToolsColumn_16b3d_727";
|
|
66
|
+
const leftAlignedCell = "_leftAlignedCell_16b3d_735";
|
|
67
|
+
const rightAlignedCell = "_rightAlignedCell_16b3d_739";
|
|
68
|
+
const centeredCell = "_centeredCell_16b3d_743";
|
|
69
|
+
const dialogOverlay = "_dialogOverlay_16b3d_771";
|
|
70
|
+
const overlayShow = "_overlayShow_16b3d_1";
|
|
71
|
+
const contentShow = "_contentShow_16b3d_1";
|
|
72
|
+
const focusedImage = "_focusedImage_16b3d_814";
|
|
73
|
+
const imageWrapper = "_imageWrapper_16b3d_818";
|
|
74
|
+
const editImageButton = "_editImageButton_16b3d_830";
|
|
75
|
+
const inlineEditor = "_inlineEditor_16b3d_842";
|
|
76
|
+
const blockEditor = "_blockEditor_16b3d_851";
|
|
77
|
+
const nestedEditor = "_nestedEditor_16b3d_860";
|
|
78
|
+
const genericComponentName = "_genericComponentName_16b3d_877";
|
|
79
|
+
const diffSourceToggle = "_diffSourceToggle_16b3d_883";
|
|
80
|
+
const selectWithLabel = "_selectWithLabel_16b3d_897";
|
|
81
|
+
const toolbarTitleMode = "_toolbarTitleMode_16b3d_911";
|
|
82
|
+
const imageControlWrapperResizing = "_imageControlWrapperResizing_16b3d_917";
|
|
83
|
+
const imageResizer = "_imageResizer_16b3d_921";
|
|
84
|
+
const imageResizerN = "_imageResizerN_16b3d_930";
|
|
85
|
+
const imageResizerNe = "_imageResizerNe_16b3d_936";
|
|
86
|
+
const imageResizerE = "_imageResizerE_16b3d_942";
|
|
87
|
+
const imageResizerSe = "_imageResizerSe_16b3d_948";
|
|
88
|
+
const imageResizerS = "_imageResizerS_16b3d_948";
|
|
89
|
+
const imageResizerSw = "_imageResizerSw_16b3d_960";
|
|
90
|
+
const imageResizerW = "_imageResizerW_16b3d_966";
|
|
91
|
+
const imageResizerNw = "_imageResizerNw_16b3d_972";
|
|
92
|
+
const placeholder = "_placeholder_16b3d_978";
|
|
93
|
+
const rootContentEditableWrapper = "_rootContentEditableWrapper_16b3d_991";
|
|
94
|
+
const downshiftContainer = "_downshiftContainer_16b3d_997";
|
|
95
|
+
const downshiftInputWrapper = "_downshiftInputWrapper_16b3d_1003";
|
|
96
|
+
const downshiftInput = "_downshiftInput_16b3d_1003";
|
|
97
|
+
const downshiftAutocompleteContainer = "_downshiftAutocompleteContainer_16b3d_1033";
|
|
98
|
+
const textInput = "_textInput_16b3d_1078";
|
|
99
|
+
const multiFieldForm = "_multiFieldForm_16b3d_1086";
|
|
100
|
+
const formField = "_formField_16b3d_1092";
|
|
93
101
|
const styles = {
|
|
94
102
|
editorRoot,
|
|
95
103
|
editorWrapper,
|
|
@@ -133,7 +141,7 @@ const styles = {
|
|
|
133
141
|
linkDialogInputContainer,
|
|
134
142
|
linkDialogInputWrapper,
|
|
135
143
|
linkDialogInput,
|
|
136
|
-
|
|
144
|
+
dialogInput,
|
|
137
145
|
linkDialogAnchor,
|
|
138
146
|
linkDialogPopoverContent,
|
|
139
147
|
tableColumnEditorPopoverContent,
|
|
@@ -164,6 +172,7 @@ const styles = {
|
|
|
164
172
|
contentShow,
|
|
165
173
|
focusedImage,
|
|
166
174
|
imageWrapper,
|
|
175
|
+
editImageButton,
|
|
167
176
|
inlineEditor,
|
|
168
177
|
blockEditor,
|
|
169
178
|
nestedEditor,
|
|
@@ -182,7 +191,14 @@ const styles = {
|
|
|
182
191
|
imageResizerW,
|
|
183
192
|
imageResizerNw,
|
|
184
193
|
placeholder,
|
|
185
|
-
rootContentEditableWrapper
|
|
194
|
+
rootContentEditableWrapper,
|
|
195
|
+
downshiftContainer,
|
|
196
|
+
downshiftInputWrapper,
|
|
197
|
+
downshiftInput,
|
|
198
|
+
downshiftAutocompleteContainer,
|
|
199
|
+
textInput,
|
|
200
|
+
multiFieldForm,
|
|
201
|
+
formField
|
|
186
202
|
};
|
|
187
203
|
export {
|
|
188
204
|
actionButton,
|
|
@@ -198,12 +214,19 @@ export {
|
|
|
198
214
|
dialogCloseButton,
|
|
199
215
|
dialogContent,
|
|
200
216
|
dialogForm,
|
|
217
|
+
dialogInput,
|
|
201
218
|
dialogOverlay,
|
|
202
219
|
dialogTitle,
|
|
203
220
|
diffSourceToggle,
|
|
221
|
+
downshiftAutocompleteContainer,
|
|
222
|
+
downshiftContainer,
|
|
223
|
+
downshiftInput,
|
|
224
|
+
downshiftInputWrapper,
|
|
225
|
+
editImageButton,
|
|
204
226
|
editorRoot,
|
|
205
227
|
editorWrapper,
|
|
206
228
|
focusedImage,
|
|
229
|
+
formField,
|
|
207
230
|
frontmatterToggleButton,
|
|
208
231
|
frontmatterWrapper,
|
|
209
232
|
genericComponentName,
|
|
@@ -223,13 +246,13 @@ export {
|
|
|
223
246
|
largeDialogContent,
|
|
224
247
|
leftAlignedCell,
|
|
225
248
|
linkDialogAnchor,
|
|
226
|
-
linkDialogAutocompleteContainer,
|
|
227
249
|
linkDialogEditForm,
|
|
228
250
|
linkDialogInput,
|
|
229
251
|
linkDialogInputContainer,
|
|
230
252
|
linkDialogInputWrapper,
|
|
231
253
|
linkDialogPopoverContent,
|
|
232
254
|
linkDialogPreviewAnchor,
|
|
255
|
+
multiFieldForm,
|
|
233
256
|
nestedEditor,
|
|
234
257
|
nestedListItem,
|
|
235
258
|
overlayShow,
|
|
@@ -260,6 +283,7 @@ export {
|
|
|
260
283
|
tableEditor,
|
|
261
284
|
tableRowEditorTrigger,
|
|
262
285
|
tableToolsColumn,
|
|
286
|
+
textInput,
|
|
263
287
|
toggleGroupRoot,
|
|
264
288
|
toolCell,
|
|
265
289
|
toolbarButton,
|