@mdxeditor/editor 0.10.0-alpha.1 → 0.10.0-alpha.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.
@@ -1,77 +1,87 @@
1
- const editorRoot = "_editorRoot_1tl3n_36";
2
- const dropZone = "_dropZone_1tl3n_129";
3
- const editorWrapper = "_editorWrapper_1tl3n_137";
4
- const nestedListItem = "_nestedListItem_1tl3n_141";
5
- const toolbarRoot = "_toolbarRoot_1tl3n_145";
6
- const toolbarModeSwitch = "_toolbarModeSwitch_1tl3n_169";
7
- const toolbarToggleItem = "_toolbarToggleItem_1tl3n_178";
8
- const toolbarGroupOfGroups = "_toolbarGroupOfGroups_1tl3n_188";
9
- const toolbarToggleSingleGroup = "_toolbarToggleSingleGroup_1tl3n_193";
10
- const toolbarButton = "_toolbarButton_1tl3n_207";
11
- const toolbarNodeKindSelectContainer = "_toolbarNodeKindSelectContainer_1tl3n_241";
12
- const toolbarButtonDropdownContainer = "_toolbarButtonDropdownContainer_1tl3n_242";
13
- const toolbarCodeBlockLanguageSelectContent = "_toolbarCodeBlockLanguageSelectContent_1tl3n_243";
14
- const selectContainer = "_selectContainer_1tl3n_244";
15
- const toolbarNodeKindSelectTrigger = "_toolbarNodeKindSelectTrigger_1tl3n_258";
16
- const toolbarButtonSelectTrigger = "_toolbarButtonSelectTrigger_1tl3n_259";
17
- const selectTrigger = "_selectTrigger_1tl3n_260";
18
- const toolbarCodeBlockLanguageSelectTrigger = "_toolbarCodeBlockLanguageSelectTrigger_1tl3n_293";
19
- const toolbarNodeKindSelectItem = "_toolbarNodeKindSelectItem_1tl3n_299";
20
- const selectItem = "_selectItem_1tl3n_300";
21
- const toolbarNodeKindSelectDropdownArrow = "_toolbarNodeKindSelectDropdownArrow_1tl3n_324";
22
- const selectDropdownArrow = "_selectDropdownArrow_1tl3n_325";
23
- const contentEditable = "_contentEditable_1tl3n_329";
24
- const sandpackWrapper = "_sandpackWrapper_1tl3n_337";
25
- const frontmatterWrapper = "_frontmatterWrapper_1tl3n_341";
26
- const frontmatterToggleButton = "_frontmatterToggleButton_1tl3n_351";
27
- const propertyPanelTitle = "_propertyPanelTitle_1tl3n_359";
28
- const propertyEditorTable = "_propertyEditorTable_1tl3n_367";
29
- const iconButton = "_iconButton_1tl3n_384";
30
- const readOnlyColumnCell = "_readOnlyColumnCell_1tl3n_389";
31
- const propertyEditorLabelCell = "_propertyEditorLabelCell_1tl3n_394";
32
- const buttonsFooter = "_buttonsFooter_1tl3n_402";
33
- const propertyEditorInput = "_propertyEditorInput_1tl3n_408";
34
- const primaryButton = "_primaryButton_1tl3n_423";
35
- const secondaryButton = "_secondaryButton_1tl3n_423";
36
- const linkDialogEditForm = "_linkDialogEditForm_1tl3n_439";
37
- const linkDialogInputContainer = "_linkDialogInputContainer_1tl3n_445";
38
- const linkDialogInputWrapper = "_linkDialogInputWrapper_1tl3n_451";
39
- const linkDialogInput = "_linkDialogInput_1tl3n_445";
40
- const linkDialogAutocompleteContainer = "_linkDialogAutocompleteContainer_1tl3n_481";
41
- const linkDialogAnchor = "_linkDialogAnchor_1tl3n_526";
42
- const linkDialogPopoverContent = "_linkDialogPopoverContent_1tl3n_540";
43
- const tableColumnEditorPopoverContent = "_tableColumnEditorPopoverContent_1tl3n_540";
44
- const dialogContent = "_dialogContent_1tl3n_540";
45
- const popoverContent = "_popoverContent_1tl3n_552";
46
- const popoverArrow = "_popoverArrow_1tl3n_563";
47
- const linkDialogPreviewAnchor = "_linkDialogPreviewAnchor_1tl3n_569";
48
- const tooltipContent = "_tooltipContent_1tl3n_591";
49
- const actionButton = "_actionButton_1tl3n_605";
50
- const primaryActionButton = "_primaryActionButton_1tl3n_611";
51
- const tableEditor = "_tableEditor_1tl3n_620";
52
- const toolCell = "_toolCell_1tl3n_631";
53
- const tableColumnEditorTrigger = "_tableColumnEditorTrigger_1tl3n_648";
54
- const tableRowEditorTrigger = "_tableRowEditorTrigger_1tl3n_648";
55
- const addRowButton = "_addRowButton_1tl3n_648";
56
- const addColumnButton = "_addColumnButton_1tl3n_648";
57
- const tableColumnEditorToolbar = "_tableColumnEditorToolbar_1tl3n_682";
58
- const toggleGroupRoot = "_toggleGroupRoot_1tl3n_694";
59
- const tableToolsColumn = "_tableToolsColumn_1tl3n_711";
60
- const leftAlignedCell = "_leftAlignedCell_1tl3n_719";
61
- const rightAlignedCell = "_rightAlignedCell_1tl3n_723";
62
- const centeredCell = "_centeredCell_1tl3n_727";
63
- const dialogOverlay = "_dialogOverlay_1tl3n_755";
64
- const overlayShow = "_overlayShow_1tl3n_1";
65
- const contentShow = "_contentShow_1tl3n_1";
66
- const focusedImage = "_focusedImage_1tl3n_797";
67
- const imageWrapper = "_imageWrapper_1tl3n_801";
68
- const inlineEditor = "_inlineEditor_1tl3n_812";
69
- const blockEditor = "_blockEditor_1tl3n_821";
70
- const nestedEditor = "_nestedEditor_1tl3n_830";
71
- const genericComponentName = "_genericComponentName_1tl3n_847";
72
- const diffSourceToggle = "_diffSourceToggle_1tl3n_853";
73
- const selectWithLabel = "_selectWithLabel_1tl3n_867";
74
- const toolbarTitleMode = "_toolbarTitleMode_1tl3n_881";
1
+ const editorRoot = "_editorRoot_1i155_36";
2
+ const dropZone = "_dropZone_1i155_130";
3
+ const editorWrapper = "_editorWrapper_1i155_138";
4
+ const nestedListItem = "_nestedListItem_1i155_142";
5
+ const toolbarRoot = "_toolbarRoot_1i155_146";
6
+ const toolbarModeSwitch = "_toolbarModeSwitch_1i155_170";
7
+ const toolbarToggleItem = "_toolbarToggleItem_1i155_179";
8
+ const toolbarGroupOfGroups = "_toolbarGroupOfGroups_1i155_189";
9
+ const toolbarToggleSingleGroup = "_toolbarToggleSingleGroup_1i155_194";
10
+ const toolbarButton = "_toolbarButton_1i155_208";
11
+ const toolbarNodeKindSelectContainer = "_toolbarNodeKindSelectContainer_1i155_242";
12
+ const toolbarButtonDropdownContainer = "_toolbarButtonDropdownContainer_1i155_243";
13
+ const toolbarCodeBlockLanguageSelectContent = "_toolbarCodeBlockLanguageSelectContent_1i155_244";
14
+ const selectContainer = "_selectContainer_1i155_245";
15
+ const toolbarNodeKindSelectTrigger = "_toolbarNodeKindSelectTrigger_1i155_259";
16
+ const toolbarButtonSelectTrigger = "_toolbarButtonSelectTrigger_1i155_260";
17
+ const selectTrigger = "_selectTrigger_1i155_261";
18
+ const toolbarCodeBlockLanguageSelectTrigger = "_toolbarCodeBlockLanguageSelectTrigger_1i155_294";
19
+ const toolbarNodeKindSelectItem = "_toolbarNodeKindSelectItem_1i155_300";
20
+ const selectItem = "_selectItem_1i155_301";
21
+ const toolbarNodeKindSelectDropdownArrow = "_toolbarNodeKindSelectDropdownArrow_1i155_325";
22
+ const selectDropdownArrow = "_selectDropdownArrow_1i155_326";
23
+ const contentEditable = "_contentEditable_1i155_330";
24
+ const sandpackWrapper = "_sandpackWrapper_1i155_338";
25
+ const frontmatterWrapper = "_frontmatterWrapper_1i155_342";
26
+ const frontmatterToggleButton = "_frontmatterToggleButton_1i155_352";
27
+ const propertyPanelTitle = "_propertyPanelTitle_1i155_360";
28
+ const propertyEditorTable = "_propertyEditorTable_1i155_368";
29
+ const iconButton = "_iconButton_1i155_385";
30
+ const readOnlyColumnCell = "_readOnlyColumnCell_1i155_390";
31
+ const propertyEditorLabelCell = "_propertyEditorLabelCell_1i155_395";
32
+ const buttonsFooter = "_buttonsFooter_1i155_403";
33
+ const propertyEditorInput = "_propertyEditorInput_1i155_409";
34
+ const primaryButton = "_primaryButton_1i155_424";
35
+ const secondaryButton = "_secondaryButton_1i155_424";
36
+ const linkDialogEditForm = "_linkDialogEditForm_1i155_440";
37
+ const linkDialogInputContainer = "_linkDialogInputContainer_1i155_446";
38
+ const linkDialogInputWrapper = "_linkDialogInputWrapper_1i155_452";
39
+ const linkDialogInput = "_linkDialogInput_1i155_446";
40
+ const linkDialogAutocompleteContainer = "_linkDialogAutocompleteContainer_1i155_482";
41
+ const linkDialogAnchor = "_linkDialogAnchor_1i155_527";
42
+ const linkDialogPopoverContent = "_linkDialogPopoverContent_1i155_541";
43
+ const tableColumnEditorPopoverContent = "_tableColumnEditorPopoverContent_1i155_541";
44
+ const dialogContent = "_dialogContent_1i155_541";
45
+ const popoverContent = "_popoverContent_1i155_553";
46
+ const popoverArrow = "_popoverArrow_1i155_564";
47
+ const linkDialogPreviewAnchor = "_linkDialogPreviewAnchor_1i155_570";
48
+ const tooltipContent = "_tooltipContent_1i155_592";
49
+ const actionButton = "_actionButton_1i155_606";
50
+ const primaryActionButton = "_primaryActionButton_1i155_612";
51
+ const tableEditor = "_tableEditor_1i155_621";
52
+ const toolCell = "_toolCell_1i155_632";
53
+ const tableColumnEditorTrigger = "_tableColumnEditorTrigger_1i155_649";
54
+ const tableRowEditorTrigger = "_tableRowEditorTrigger_1i155_649";
55
+ const addRowButton = "_addRowButton_1i155_649";
56
+ const addColumnButton = "_addColumnButton_1i155_649";
57
+ const tableColumnEditorToolbar = "_tableColumnEditorToolbar_1i155_683";
58
+ const toggleGroupRoot = "_toggleGroupRoot_1i155_695";
59
+ const tableToolsColumn = "_tableToolsColumn_1i155_712";
60
+ const leftAlignedCell = "_leftAlignedCell_1i155_720";
61
+ const rightAlignedCell = "_rightAlignedCell_1i155_724";
62
+ const centeredCell = "_centeredCell_1i155_728";
63
+ const dialogOverlay = "_dialogOverlay_1i155_756";
64
+ const overlayShow = "_overlayShow_1i155_1";
65
+ const contentShow = "_contentShow_1i155_1";
66
+ const focusedImage = "_focusedImage_1i155_798";
67
+ const imageWrapper = "_imageWrapper_1i155_802";
68
+ const inlineEditor = "_inlineEditor_1i155_814";
69
+ const blockEditor = "_blockEditor_1i155_823";
70
+ const nestedEditor = "_nestedEditor_1i155_832";
71
+ const genericComponentName = "_genericComponentName_1i155_849";
72
+ const diffSourceToggle = "_diffSourceToggle_1i155_855";
73
+ const selectWithLabel = "_selectWithLabel_1i155_869";
74
+ const toolbarTitleMode = "_toolbarTitleMode_1i155_883";
75
+ const imageControlWrapperResizing = "_imageControlWrapperResizing_1i155_889";
76
+ const imageResizer = "_imageResizer_1i155_893";
77
+ const imageResizerN = "_imageResizerN_1i155_902";
78
+ const imageResizerNe = "_imageResizerNe_1i155_908";
79
+ const imageResizerE = "_imageResizerE_1i155_914";
80
+ const imageResizerSe = "_imageResizerSe_1i155_920";
81
+ const imageResizerS = "_imageResizerS_1i155_920";
82
+ const imageResizerSw = "_imageResizerSw_1i155_932";
83
+ const imageResizerW = "_imageResizerW_1i155_938";
84
+ const imageResizerNw = "_imageResizerNw_1i155_944";
75
85
  const styles = {
76
86
  editorRoot,
77
87
  dropZone,
@@ -146,7 +156,17 @@ const styles = {
146
156
  genericComponentName,
147
157
  diffSourceToggle,
148
158
  selectWithLabel,
149
- toolbarTitleMode
159
+ toolbarTitleMode,
160
+ imageControlWrapperResizing,
161
+ imageResizer,
162
+ imageResizerN,
163
+ imageResizerNe,
164
+ imageResizerE,
165
+ imageResizerSe,
166
+ imageResizerS,
167
+ imageResizerSw,
168
+ imageResizerW,
169
+ imageResizerNw
150
170
  };
151
171
  export {
152
172
  actionButton,
@@ -169,6 +189,16 @@ export {
169
189
  frontmatterWrapper,
170
190
  genericComponentName,
171
191
  iconButton,
192
+ imageControlWrapperResizing,
193
+ imageResizer,
194
+ imageResizerE,
195
+ imageResizerN,
196
+ imageResizerNe,
197
+ imageResizerNw,
198
+ imageResizerS,
199
+ imageResizerSe,
200
+ imageResizerSw,
201
+ imageResizerW,
172
202
  imageWrapper,
173
203
  inlineEditor,
174
204
  leftAlignedCell,
@@ -33,8 +33,8 @@ function getSelectionRectangle(editor) {
33
33
  rect = domRange.getBoundingClientRect();
34
34
  }
35
35
  return {
36
- top: rect.top + window.scrollY,
37
- left: rect.left + window.scrollX,
36
+ top: rect.top,
37
+ left: rect.left,
38
38
  width: rect.width,
39
39
  height: rect.height
40
40
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "private": false,
10
10
  "sideEffects": false,
11
11
  "type": "module",
12
- "version": "0.10.0-alpha.1",
12
+ "version": "0.10.0-alpha.2",
13
13
  "description": "React component for rich text markdown editing",
14
14
  "scripts": {
15
15
  "build": "vite build",
@@ -37,6 +37,7 @@
37
37
  "dependencies": {
38
38
  "@codemirror/lang-markdown": "^6.1.1",
39
39
  "@codemirror/state": "^6.2.1",
40
+ "@codemirror/view": "6.15.3",
40
41
  "@codesandbox/sandpack-react": "^2.6.7",
41
42
  "@lexical/clipboard": "^0.11.1",
42
43
  "@lexical/code": "^0.11.1",