@atlaskit/editor-core 189.5.0 → 189.5.3

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 (185) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +335 -0
  3. package/dist/cjs/composable-editor/editor-internal.js +11 -11
  4. package/dist/cjs/composable-editor/editor.js +8 -7
  5. package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
  6. package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +2 -0
  7. package/dist/cjs/editor.js +4 -3
  8. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +11 -10
  9. package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -2
  10. package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -1
  11. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +6 -5
  12. package/dist/cjs/plugins/collab-edit/ui/avatars.js +5 -2
  13. package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +4 -1
  14. package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +7 -4
  15. package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +13 -11
  16. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +5 -4
  17. package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +9 -8
  18. package/dist/cjs/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +4 -4
  19. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +7 -6
  20. package/dist/cjs/plugins/find-replace/ui/Find.js +14 -13
  21. package/dist/cjs/plugins/find-replace/ui/FindReplace.js +6 -5
  22. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +8 -7
  23. package/dist/cjs/plugins/find-replace/ui/Replace.js +6 -5
  24. package/dist/cjs/plugins/find-replace/ui/styles.js +1 -0
  25. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +5 -4
  26. package/dist/cjs/plugins/paste/edge-cases/index.js +26 -0
  27. package/dist/cjs/plugins/paste/handlers.js +18 -9
  28. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +11 -8
  29. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -1
  30. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +2 -1
  31. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +2 -1
  32. package/dist/cjs/ui/Addon/Dropdown/index.js +3 -2
  33. package/dist/cjs/ui/Addon/DropdownItem/index.js +5 -2
  34. package/dist/cjs/ui/Alignment/index.js +7 -6
  35. package/dist/cjs/ui/Appearance/Chromeless.js +7 -6
  36. package/dist/cjs/ui/Appearance/Comment/Comment.js +17 -16
  37. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +5 -4
  38. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -3
  39. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +12 -10
  40. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
  41. package/dist/cjs/ui/AppearanceComponents/Mobile.js +6 -5
  42. package/dist/cjs/ui/ChromeCollapsed/index.js +3 -2
  43. package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +16 -15
  44. package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +12 -11
  45. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +7 -6
  46. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +8 -8
  47. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +18 -17
  48. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +9 -8
  49. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +10 -9
  50. package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +6 -5
  51. package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +7 -6
  52. package/dist/cjs/ui/ConfigPanel/Header.js +14 -13
  53. package/dist/cjs/ui/ConfigPanel/LoadingState.js +3 -2
  54. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +5 -4
  55. package/dist/cjs/ui/ContentStyles/index.js +2 -1
  56. package/dist/cjs/ui/ContextPanel/index.js +11 -10
  57. package/dist/cjs/ui/PluginSlot/index.js +4 -3
  58. package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -1
  59. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +5 -4
  60. package/dist/cjs/ui/ToolbarFeedback/index.js +16 -15
  61. package/dist/cjs/ui/WithFlash/index.js +2 -1
  62. package/dist/cjs/version-wrapper.js +1 -1
  63. package/dist/es2019/composable-editor/editor-internal.js +12 -11
  64. package/dist/es2019/composable-editor/editor.js +8 -6
  65. package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
  66. package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
  67. package/dist/es2019/editor.js +4 -2
  68. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
  69. package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
  70. package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
  71. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +7 -6
  72. package/dist/es2019/plugins/collab-edit/ui/avatars.js +4 -2
  73. package/dist/es2019/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
  74. package/dist/es2019/plugins/collab-edit/ui/invite-to-edit.js +6 -4
  75. package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +14 -11
  76. package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
  77. package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +7 -5
  78. package/dist/es2019/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
  79. package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
  80. package/dist/es2019/plugins/find-replace/ui/Find.js +14 -12
  81. package/dist/es2019/plugins/find-replace/ui/FindReplace.js +6 -4
  82. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
  83. package/dist/es2019/plugins/find-replace/ui/Replace.js +6 -4
  84. package/dist/es2019/plugins/find-replace/ui/styles.js +1 -0
  85. package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
  86. package/dist/es2019/plugins/paste/edge-cases/index.js +27 -1
  87. package/dist/es2019/plugins/paste/handlers.js +19 -10
  88. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
  89. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +3 -2
  90. package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -2
  91. package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +3 -2
  92. package/dist/es2019/ui/Addon/Dropdown/index.js +3 -1
  93. package/dist/es2019/ui/Addon/DropdownItem/index.js +4 -2
  94. package/dist/es2019/ui/Alignment/index.js +5 -3
  95. package/dist/es2019/ui/Appearance/Chromeless.js +8 -7
  96. package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -17
  97. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +7 -5
  98. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +5 -3
  99. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
  100. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
  101. package/dist/es2019/ui/AppearanceComponents/Mobile.js +7 -6
  102. package/dist/es2019/ui/ChromeCollapsed/index.js +3 -1
  103. package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
  104. package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +13 -12
  105. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
  106. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
  107. package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +19 -18
  108. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +10 -9
  109. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +11 -10
  110. package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +7 -6
  111. package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +8 -7
  112. package/dist/es2019/ui/ConfigPanel/Header.js +15 -14
  113. package/dist/es2019/ui/ConfigPanel/LoadingState.js +4 -3
  114. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
  115. package/dist/es2019/ui/ContentStyles/index.js +3 -2
  116. package/dist/es2019/ui/ContextPanel/index.js +12 -11
  117. package/dist/es2019/ui/PluginSlot/index.js +5 -4
  118. package/dist/es2019/ui/Toolbar/ToolbarInner.js +3 -2
  119. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
  120. package/dist/es2019/ui/ToolbarFeedback/index.js +14 -12
  121. package/dist/es2019/ui/WithFlash/index.js +3 -2
  122. package/dist/es2019/version-wrapper.js +1 -1
  123. package/dist/esm/composable-editor/editor-internal.js +12 -11
  124. package/dist/esm/composable-editor/editor.js +8 -6
  125. package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
  126. package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
  127. package/dist/esm/editor.js +4 -2
  128. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
  129. package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
  130. package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
  131. package/dist/esm/plugins/breakout/ui/LayoutButton.js +7 -6
  132. package/dist/esm/plugins/collab-edit/ui/avatars.js +4 -2
  133. package/dist/esm/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
  134. package/dist/esm/plugins/collab-edit/ui/invite-to-edit.js +6 -4
  135. package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +14 -11
  136. package/dist/esm/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
  137. package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +7 -5
  138. package/dist/esm/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
  139. package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
  140. package/dist/esm/plugins/find-replace/ui/Find.js +14 -12
  141. package/dist/esm/plugins/find-replace/ui/FindReplace.js +6 -4
  142. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
  143. package/dist/esm/plugins/find-replace/ui/Replace.js +6 -4
  144. package/dist/esm/plugins/find-replace/ui/styles.js +1 -0
  145. package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
  146. package/dist/esm/plugins/paste/edge-cases/index.js +26 -1
  147. package/dist/esm/plugins/paste/handlers.js +19 -10
  148. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
  149. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +3 -2
  150. package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -2
  151. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +3 -2
  152. package/dist/esm/ui/Addon/Dropdown/index.js +3 -1
  153. package/dist/esm/ui/Addon/DropdownItem/index.js +4 -2
  154. package/dist/esm/ui/Alignment/index.js +5 -3
  155. package/dist/esm/ui/Appearance/Chromeless.js +8 -7
  156. package/dist/esm/ui/Appearance/Comment/Comment.js +18 -17
  157. package/dist/esm/ui/Appearance/Comment/Toolbar.js +7 -5
  158. package/dist/esm/ui/Appearance/FullPage/FullPage.js +5 -3
  159. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
  160. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
  161. package/dist/esm/ui/AppearanceComponents/Mobile.js +7 -6
  162. package/dist/esm/ui/ChromeCollapsed/index.js +3 -1
  163. package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
  164. package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +13 -12
  165. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
  166. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
  167. package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +19 -18
  168. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +10 -9
  169. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +11 -10
  170. package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +7 -6
  171. package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +8 -7
  172. package/dist/esm/ui/ConfigPanel/Header.js +15 -14
  173. package/dist/esm/ui/ConfigPanel/LoadingState.js +4 -3
  174. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
  175. package/dist/esm/ui/ContentStyles/index.js +3 -2
  176. package/dist/esm/ui/ContextPanel/index.js +12 -11
  177. package/dist/esm/ui/PluginSlot/index.js +5 -4
  178. package/dist/esm/ui/Toolbar/ToolbarInner.js +3 -2
  179. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
  180. package/dist/esm/ui/ToolbarFeedback/index.js +14 -12
  181. package/dist/esm/ui/WithFlash/index.js +3 -2
  182. package/dist/esm/version-wrapper.js +1 -1
  183. package/dist/types/plugins/paste/edge-cases/index.d.ts +4 -0
  184. package/dist/types-ts4.5/plugins/paste/edge-cases/index.d.ts +4 -0
  185. package/package.json +8 -4
@@ -1,5 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
2
3
  import React from 'react';
4
+ import { jsx } from '@emotion/react';
3
5
  import Button from '@atlaskit/button/standard-button';
4
6
  import { defineMessages, injectIntl } from 'react-intl-next';
5
7
  import Textfield from '@atlaskit/textfield';
@@ -121,9 +123,9 @@ class Replace extends React.PureComponent {
121
123
  const {
122
124
  canReplace
123
125
  } = this.props;
124
- return /*#__PURE__*/React.createElement("div", {
126
+ return jsx("div", {
125
127
  css: sectionWrapperStyles
126
- }, /*#__PURE__*/React.createElement(Textfield, {
128
+ }, jsx(Textfield, {
127
129
  name: "replace",
128
130
  appearance: "none",
129
131
  placeholder: this.replaceWith,
@@ -134,12 +136,12 @@ class Replace extends React.PureComponent {
134
136
  onKeyDown: this.handleReplaceKeyDown,
135
137
  onCompositionStart: this.handleCompositionStart,
136
138
  onCompositionEnd: this.handleCompositionEnd
137
- }), /*#__PURE__*/React.createElement(Button, {
139
+ }), jsx(Button, {
138
140
  css: replaceSectionButtonStyles,
139
141
  testId: this.replace,
140
142
  onClick: this.handleReplaceClick,
141
143
  isDisabled: !canReplace
142
- }, this.replace), /*#__PURE__*/React.createElement(Button, {
144
+ }, this.replace), jsx(Button, {
143
145
  css: replaceSectionButtonStyles,
144
146
  testId: this.replaceAll,
145
147
  onClick: this.handleReplaceAllClick,
@@ -1,3 +1,4 @@
1
+ /** @jsx jsx */
1
2
  import { css } from '@emotion/react';
2
3
  import { N60, N30A } from '@atlaskit/theme/colors';
3
4
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
@@ -1,4 +1,5 @@
1
- import { css } from '@emotion/react';
1
+ /** @jsx jsx */
2
+ import { css, jsx } from '@emotion/react';
2
3
  import { JiraIcon } from '@atlaskit/logo/jira-icon';
3
4
  import { borderRadius } from '@atlaskit/theme/constants';
4
5
  import { N30, N50 } from '@atlaskit/theme/colors';
@@ -54,14 +55,14 @@ export default function JIRAIssueNode(props) {
54
55
  }
55
56
  }
56
57
  } = props;
57
- return /*#__PURE__*/React.createElement("span", {
58
+ return jsx("span", {
58
59
  css: wrapperNode,
59
60
  "data-testid": "jira-issue-node"
60
- }, /*#__PURE__*/React.createElement("span", {
61
+ }, jsx("span", {
61
62
  css: svgChildNode
62
- }, /*#__PURE__*/React.createElement(JiraIcon, {
63
+ }, jsx(JiraIcon, {
63
64
  size: "small"
64
- })), /*#__PURE__*/React.createElement("span", {
65
+ })), jsx("span", {
65
66
  css: jiraChildNode
66
67
  }, issueKey));
67
68
  }
@@ -1,6 +1,8 @@
1
- import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
1
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
2
+ import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
2
3
  import { insertSliceIntoRangeSelectionInsideList, insertSliceInsideOfPanelNodeSelected, insertSliceAtNodeEdge, insertSliceIntoEmptyNode } from './lists';
3
4
  import { isListNode } from '@atlaskit/editor-common/utils';
5
+ import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
4
6
  import { isSelectionInsidePanel, isEmptyNode, isCursorSelectionAtTextStartOrEnd } from '../util';
5
7
  export function insertSliceForLists({
6
8
  tr,
@@ -58,4 +60,28 @@ export function insertSliceForLists({
58
60
  });
59
61
  }
60
62
  tr.replaceSelection(slice);
63
+ }
64
+ export function insertSliceForListsInsideBlockquote({
65
+ tr,
66
+ slice
67
+ }) {
68
+ safeInsert(slice.content, tr.selection.$to.pos)(tr).scrollIntoView();
69
+ // ProseMirror doesn't give a proper way to tell us where something was inserted.
70
+ // However, we can know "how" it inserted something.
71
+ //
72
+ // So, instead of weird depth calculations, we can use the step produced by the transform.
73
+ // For instance:
74
+ // The `replaceStep.to and replaceStep.from`, tell us the real position
75
+ // where the content will be insert.
76
+ // Then, we can use the `tr.mapping.map` to the updated position after the replace operation
77
+ const replaceStep = tr.steps[0];
78
+ if (!(replaceStep instanceof ReplaceStep)) {
79
+ return tr;
80
+ }
81
+ const nextPosition = tr.mapping.map(replaceStep.to);
82
+ // The findFrom will make search for both: TextSelection and NodeSelections.
83
+ const nextSelection = Selection.findFrom(tr.doc.resolve(Math.min(nextPosition, tr.doc.content.size)), -1);
84
+ if (nextSelection) {
85
+ tr.setSelection(nextSelection);
86
+ }
61
87
  }
@@ -11,7 +11,7 @@ import { GapCursorSelection, Side } from '@atlaskit/editor-common/selection';
11
11
  // TODO: ED-20519 Needs Macro extraction
12
12
 
13
13
  import { addReplaceSelectedTableAnalytics, applyTextMarksToSlice, hasOnlyNodesOfType } from './util';
14
- import { insertSliceForLists } from './edge-cases';
14
+ import { insertSliceForLists, insertSliceForListsInsideBlockquote } from './edge-cases';
15
15
  import { startTrackingPastedMacroPositions, stopTrackingPastedMacroPositions } from './commands';
16
16
  import { getPluginState as getPastePluginState } from './pm-plugins/plugin-factory';
17
17
  import { anyMarkActive } from '@atlaskit/editor-common/mark';
@@ -843,15 +843,24 @@ export function handleRichText(slice, queueCardsFromChangedTr) {
843
843
  schema
844
844
  });
845
845
  } else if (noNeedForSafeInsert) {
846
- var _slice$content$lastCh, _slice$content$lastCh2;
847
- tr.replaceSelection(slice);
848
- // when cursor is inside a table cell, and slice.content.lastChild is a panel, expand, or decisionList
849
- // need to make sure the cursor position is is right after the panel, expand, or decisionList
850
- // still in the same table cell, see issue: https://product-fabric.atlassian.net/browse/ED-17862
851
- const shouldUpdateCursorPosAfterPaste = ['panel', 'nestedExpand', 'decisionList', 'codeBlock'].includes(((_slice$content$lastCh = slice.content.lastChild) === null || _slice$content$lastCh === void 0 ? void 0 : (_slice$content$lastCh2 = _slice$content$lastCh.type) === null || _slice$content$lastCh2 === void 0 ? void 0 : _slice$content$lastCh2.name) || '');
852
- if (insideTableCell(state) && shouldUpdateCursorPosAfterPaste) {
853
- const nextPos = tr.doc.resolve(tr.mapping.map(selection.$from.pos));
854
- tr.setSelection(new GapCursorSelection(nextPos, Side.RIGHT));
846
+ var _firstChildOfSlice$ty2, _firstChildOfSlice$co;
847
+ if ((firstChildOfSlice === null || firstChildOfSlice === void 0 ? void 0 : (_firstChildOfSlice$ty2 = firstChildOfSlice.type) === null || _firstChildOfSlice$ty2 === void 0 ? void 0 : _firstChildOfSlice$ty2.name) === 'blockquote' && (firstChildOfSlice === null || firstChildOfSlice === void 0 ? void 0 : (_firstChildOfSlice$co = firstChildOfSlice.content.firstChild) === null || _firstChildOfSlice$co === void 0 ? void 0 : _firstChildOfSlice$co.type.name) === ('bulletList' || 'orderedList')) {
848
+ // checks if parent node is a blockquote and child node is either a bulletlist or orderedlist
849
+ insertSliceForListsInsideBlockquote({
850
+ tr,
851
+ slice
852
+ });
853
+ } else {
854
+ var _slice$content$lastCh, _slice$content$lastCh2;
855
+ tr.replaceSelection(slice);
856
+ // when cursor is inside a table cell, and slice.content.lastChild is a panel, expand, or decisionList
857
+ // need to make sure the cursor position is is right after the panel, expand, or decisionList
858
+ // still in the same table cell, see issue: https://product-fabric.atlassian.net/browse/ED-17862
859
+ const shouldUpdateCursorPosAfterPaste = ['panel', 'nestedExpand', 'decisionList', 'codeBlock'].includes(((_slice$content$lastCh = slice.content.lastChild) === null || _slice$content$lastCh === void 0 ? void 0 : (_slice$content$lastCh2 = _slice$content$lastCh.type) === null || _slice$content$lastCh2 === void 0 ? void 0 : _slice$content$lastCh2.name) || '');
860
+ if (insideTableCell(state) && shouldUpdateCursorPosAfterPaste) {
861
+ const nextPos = tr.doc.resolve(tr.mapping.map(selection.$from.pos));
862
+ tr.setSelection(new GapCursorSelection(nextPos, Side.RIGHT));
863
+ }
855
864
  }
856
865
  } else {
857
866
  // need to scan the slice if there's a block node or list items inside it
@@ -1,3 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import { injectIntl } from 'react-intl-next';
2
4
  import UndoIcon from '@atlaskit/icon/glyph/undo';
3
5
  import RedoIcon from '@atlaskit/icon/glyph/redo';
@@ -53,39 +55,39 @@ export const ToolbarUndoRedo = ({
53
55
  canUndo,
54
56
  canRedo
55
57
  } = historyState !== null && historyState !== void 0 ? historyState : {};
56
- return /*#__PURE__*/React.createElement("span", {
58
+ return jsx("span", {
57
59
  css: buttonGroupStyle
58
- }, /*#__PURE__*/React.createElement(ToolbarButton, {
60
+ }, jsx(ToolbarButton, {
59
61
  buttonId: TOOLBAR_BUTTON.UNDO,
60
62
  spacing: isReducedSpacing ? 'none' : 'default',
61
63
  onClick: handleUndo,
62
64
  disabled: !canUndo || disabled,
63
65
  "aria-label": tooltip(undoKeymap, labelUndo),
64
66
  "aria-keyshortcuts": getAriaKeyshortcuts(undoKeymap),
65
- title: /*#__PURE__*/React.createElement(ToolTipContent, {
67
+ title: jsx(ToolTipContent, {
66
68
  description: labelUndo,
67
69
  keymap: undoKeymap
68
70
  }),
69
- iconBefore: /*#__PURE__*/React.createElement(UndoIcon, {
71
+ iconBefore: jsx(UndoIcon, {
70
72
  label: ""
71
73
  }),
72
74
  testId: "ak-editor-toolbar-button-undo"
73
- }), /*#__PURE__*/React.createElement(ToolbarButton, {
75
+ }), jsx(ToolbarButton, {
74
76
  spacing: isReducedSpacing ? 'none' : 'default',
75
77
  buttonId: TOOLBAR_BUTTON.REDO,
76
78
  onClick: handleRedo,
77
79
  disabled: !canRedo || disabled,
78
- title: /*#__PURE__*/React.createElement(ToolTipContent, {
80
+ title: jsx(ToolTipContent, {
79
81
  description: labelRedo,
80
82
  keymap: redoKeymap
81
83
  }),
82
- iconBefore: /*#__PURE__*/React.createElement(RedoIcon, {
84
+ iconBefore: jsx(RedoIcon, {
83
85
  label: ""
84
86
  }),
85
87
  testId: "ak-editor-toolbar-button-redo",
86
88
  "aria-label": tooltip(redoKeymap, labelRedo),
87
89
  "aria-keyshortcuts": getAriaKeyshortcuts(redoKeymap)
88
- }), /*#__PURE__*/React.createElement("span", {
90
+ }), jsx("span", {
89
91
  css: separatorStyles
90
92
  }));
91
93
  };
@@ -1,5 +1,6 @@
1
+ /** @jsx jsx */
1
2
  import React from 'react';
2
- import { css } from '@emotion/react';
3
+ import { css, jsx } from '@emotion/react';
3
4
  import { clickAreaClickHandler } from '../click-area-helper';
4
5
  const clickWrapper = css`
5
6
  flex-grow: 1;
@@ -18,7 +19,7 @@ export const ClickAreaBlock = ({
18
19
  clickAreaClickHandler(editorView, event);
19
20
  }
20
21
  }, [editorView, editorDisabled]);
21
- return /*#__PURE__*/React.createElement("div", {
22
+ return jsx("div", {
22
23
  "data-testid": "click-wrapper",
23
24
  css: clickWrapper,
24
25
  onMouseDown: handleMouseDown
@@ -1,5 +1,6 @@
1
+ /** @jsx jsx */
1
2
  import React from 'react';
2
- import { css } from '@emotion/react';
3
+ import { css, jsx } from '@emotion/react';
3
4
  import { createParagraphAtEnd } from '../../../commands';
4
5
  const clickArea = css`
5
6
  flex-grow: 1;
@@ -17,7 +18,7 @@ export const ClickAreaInline = ({
17
18
  event.stopPropagation();
18
19
  }
19
20
  }, [editorView]);
20
- return /*#__PURE__*/React.createElement("div", {
21
+ return jsx("div", {
21
22
  "data-testid": "click-wrapper",
22
23
  css: clickArea,
23
24
  onMouseDown: handleMouseDown
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
2
3
  import React from 'react';
3
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
4
5
  import { clickAreaClickHandler } from '../click-area-helper';
5
6
 
6
7
  /**
@@ -57,7 +58,7 @@ export default class ClickAreaMobile extends React.Component {
57
58
  });
58
59
  }
59
60
  render() {
60
- return /*#__PURE__*/React.createElement("div", {
61
+ return jsx("div", {
61
62
  css: clickWrapper({
62
63
  isExpanded: this.props.isExpanded,
63
64
  minHeight: this.props.minHeight
@@ -1,5 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
2
3
  import React from 'react';
4
+ import { jsx } from '@emotion/react';
3
5
  import { dropdown } from './styles';
4
6
  export default class DropdownWrapper extends React.Component {
5
7
  constructor(...args) {
@@ -25,7 +27,7 @@ export default class DropdownWrapper extends React.Component {
25
27
  const children = React.Children.map(this.props.children, child => /*#__PURE__*/React.cloneElement(child, {
26
28
  onClick: this.handleClick
27
29
  }));
28
- return /*#__PURE__*/React.createElement("div", {
30
+ return jsx("div", {
29
31
  css: dropdown
30
32
  }, children);
31
33
  }
@@ -1,9 +1,11 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import { dropdownItem } from './styles';
2
- const DropdownItemWrapper = props => /*#__PURE__*/React.createElement("div", {
4
+ const DropdownItemWrapper = props => jsx("div", {
3
5
  css: dropdownItem,
4
6
  onClick: () => props.onClick && props.onClick({
5
7
  actionOnClick: props.actionOnClick,
6
8
  renderOnClick: props.renderOnClick
7
9
  })
8
- }, /*#__PURE__*/React.createElement("span", null, props.icon), props.children);
10
+ }, jsx("span", null, props.icon), props.children);
9
11
  export default DropdownItemWrapper;
@@ -1,3 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import { PureComponent } from 'react';
2
4
  import { injectIntl } from 'react-intl-next';
3
5
  import { IconMap } from '../../plugins/alignment/ui/ToolbarAlignment/icon-map';
@@ -24,7 +26,7 @@ class Alignment extends PureComponent {
24
26
  className,
25
27
  intl
26
28
  } = this.props;
27
- return /*#__PURE__*/React.createElement("div", {
29
+ return jsx("div", {
28
30
  css: alignmentWrapper,
29
31
  className: className
30
32
  }, alignmentOptions.map(alignment => {
@@ -34,8 +36,8 @@ class Alignment extends PureComponent {
34
36
  shortcut
35
37
  } = alignment;
36
38
  const message = intl.formatMessage(title);
37
- return /*#__PURE__*/React.createElement(AlignmentButton, {
38
- content: /*#__PURE__*/React.createElement(IconMap, {
39
+ return jsx(AlignmentButton, {
40
+ content: jsx(IconMap, {
39
41
  alignment: value
40
42
  }),
41
43
  key: value,
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
2
3
  import React, { Fragment } from 'react';
3
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
4
5
  import PluginSlot from '../PluginSlot';
5
6
  import { createEditorContentStyle } from '../ContentStyles';
6
7
  import { scrollbarStyles } from '../styles';
@@ -58,9 +59,9 @@ export default class Editor extends React.Component {
58
59
  featureFlags
59
60
  } = this.props;
60
61
  const maxContentSizeReached = Boolean(maxContentSize === null || maxContentSize === void 0 ? void 0 : maxContentSize.maxContentSizeReached);
61
- return /*#__PURE__*/React.createElement(WithFlash, {
62
+ return jsx(WithFlash, {
62
63
  animate: maxContentSizeReached
63
- }, /*#__PURE__*/React.createElement("div", {
64
+ }, jsx("div", {
64
65
  css: [chromelessEditor, maxHeight && css`
65
66
  max-height: ${maxHeight}px;
66
67
  `, css`
@@ -68,10 +69,10 @@ export default class Editor extends React.Component {
68
69
  `],
69
70
  "data-testid": "chromeless-editor",
70
71
  ref: ref => this.containerElement = ref
71
- }, /*#__PURE__*/React.createElement(ContentArea, {
72
+ }, jsx(ContentArea, {
72
73
  className: "ak-editor-content-area",
73
74
  featureFlags: featureFlags
74
- }, customContentComponents, /*#__PURE__*/React.createElement(PluginSlot, {
75
+ }, customContentComponents, jsx(PluginSlot, {
75
76
  editorView: editorView,
76
77
  editorActions: editorActions,
77
78
  eventDispatcher: eventDispatcher,
@@ -90,7 +91,7 @@ export default class Editor extends React.Component {
90
91
  });
91
92
  }
92
93
  render() {
93
- return /*#__PURE__*/React.createElement(RenderWithPluginState, {
94
+ return jsx(RenderWithPluginState, {
94
95
  renderChrome: this.renderChrome
95
96
  });
96
97
  }
@@ -103,7 +104,7 @@ function RenderWithPluginState({
103
104
  const {
104
105
  maxContentSizeState
105
106
  } = useSharedPluginState(api, ['maxContentSize']);
106
- return /*#__PURE__*/React.createElement(Fragment, null, renderChrome({
107
+ return jsx(Fragment, null, renderChrome({
107
108
  maxContentSize: maxContentSizeState
108
109
  }));
109
110
  }
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
2
3
  import React, { Fragment } from 'react';
3
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
4
5
  import ButtonGroup from '@atlaskit/button/button-group';
5
6
  import Button from '@atlaskit/button/custom-theme-button';
6
7
  import { borderRadius } from '@atlaskit/theme/constants';
@@ -134,17 +135,17 @@ class Editor extends React.Component {
134
135
  event.preventDefault();
135
136
  event.stopPropagation();
136
137
  };
137
- return /*#__PURE__*/React.createElement(WithFlash, {
138
+ return jsx(WithFlash, {
138
139
  animate: maxContentSizeReached
139
- }, /*#__PURE__*/React.createElement("div", {
140
+ }, jsx("div", {
140
141
  css: [commentEditorStyle, css`
141
142
  min-height: ${minHeight}px;
142
143
  `],
143
144
  className: "akEditor",
144
145
  ref: this.wrapperElementRef
145
- }, /*#__PURE__*/React.createElement(MainToolbar, {
146
+ }, jsx(MainToolbar, {
146
147
  useStickyToolbar: useStickyToolbar
147
- }, /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
148
+ }, jsx(ToolbarArrowKeyNavigationProvider, {
148
149
  editorView: editorView,
149
150
  childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
150
151
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
@@ -152,7 +153,7 @@ class Editor extends React.Component {
152
153
  editorAppearance: this.appearance,
153
154
  useStickyToolbar: useStickyToolbar,
154
155
  intl: intl
155
- }, /*#__PURE__*/React.createElement(Toolbar, {
156
+ }, jsx(Toolbar, {
156
157
  editorView: editorView,
157
158
  editorActions: editorActions,
158
159
  eventDispatcher: eventDispatcher,
@@ -165,15 +166,15 @@ class Editor extends React.Component {
165
166
  disabled: !!disabled,
166
167
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
167
168
  containerElement: this.containerElement
168
- }), /*#__PURE__*/React.createElement("div", {
169
+ }), jsx("div", {
169
170
  css: mainToolbarCustomComponentsSlotStyle
170
- }, customPrimaryToolbarComponents))), /*#__PURE__*/React.createElement(ClickAreaBlock, {
171
+ }, customPrimaryToolbarComponents))), jsx(ClickAreaBlock, {
171
172
  editorView: editorView,
172
173
  editorDisabled: disabled
173
- }, /*#__PURE__*/React.createElement(WidthConsumer, null, ({
174
+ }, jsx(WidthConsumer, null, ({
174
175
  width
175
176
  }) => {
176
- return /*#__PURE__*/React.createElement(ContentArea, {
177
+ return jsx(ContentArea, {
177
178
  ref: ref => this.containerElement = ref,
178
179
  css: maxHeight ? css`
179
180
  max-height: ${maxHeight}px;
@@ -182,7 +183,7 @@ class Editor extends React.Component {
182
183
  'less-margin': width < akEditorMobileBreakoutPoint
183
184
  }),
184
185
  featureFlags: featureFlags
185
- }, customContentComponents, /*#__PURE__*/React.createElement(PluginSlot, {
186
+ }, customContentComponents, jsx(PluginSlot, {
186
187
  editorView: editorView,
187
188
  editorActions: editorActions,
188
189
  eventDispatcher: eventDispatcher,
@@ -198,19 +199,19 @@ class Editor extends React.Component {
198
199
  wrapperElement: this.wrapperElementRef.current,
199
200
  pluginHooks: pluginHooks
200
201
  }), editorDOMElement);
201
- }))), showSecondaryToolbar && /*#__PURE__*/React.createElement("div", {
202
+ }))), showSecondaryToolbar && jsx("div", {
202
203
  css: secondaryToolbarStyle,
203
204
  "data-testid": "ak-editor-secondary-toolbar"
204
- }, /*#__PURE__*/React.createElement(ButtonGroup, null, !!onSave && /*#__PURE__*/React.createElement(Button, {
205
+ }, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
205
206
  appearance: "primary",
206
207
  onClick: this.handleSave,
207
208
  testId: "comment-save-button",
208
209
  isDisabled: disabled || mediaState && !mediaState.allUploadsFinished
209
- }, intl.formatMessage(messages.saveButton)), !!onCancel && /*#__PURE__*/React.createElement(Button, {
210
+ }, intl.formatMessage(messages.saveButton)), !!onCancel && jsx(Button, {
210
211
  appearance: "subtle",
211
212
  onClick: this.handleCancel,
212
213
  isDisabled: disabled
213
- }, intl.formatMessage(messages.cancelButton))), /*#__PURE__*/React.createElement("span", {
214
+ }, intl.formatMessage(messages.cancelButton))), jsx("span", {
214
215
  style: {
215
216
  flexGrow: 1
216
217
  }
@@ -221,7 +222,7 @@ class Editor extends React.Component {
221
222
  }
222
223
  }
223
224
  render() {
224
- return /*#__PURE__*/React.createElement(RenderWithPluginState, {
225
+ return jsx(RenderWithPluginState, {
225
226
  renderChrome: this.renderChrome
226
227
  });
227
228
  }
@@ -235,7 +236,7 @@ function RenderWithPluginState({
235
236
  mediaState,
236
237
  maxContentSizeState
237
238
  } = useSharedPluginState(api, ['media', 'maxContentSize']);
238
- return /*#__PURE__*/React.createElement(Fragment, null, renderChrome({
239
+ return jsx(Fragment, null, renderChrome({
239
240
  maxContentSize: maxContentSizeState,
240
241
  mediaState: mediaState !== null && mediaState !== void 0 ? mediaState : undefined
241
242
  }));
@@ -1,5 +1,7 @@
1
+ /** @jsx jsx */
2
+
1
3
  import React, { useEffect, useState } from 'react';
2
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
3
5
  import { N30 } from '@atlaskit/theme/colors';
4
6
  import { akEditorToolbarKeylineHeight, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
5
7
  export const TableControlsPadding = 20;
@@ -51,7 +53,7 @@ const StickyToolbar = props => {
51
53
  setTop(props.offsetTop || 0);
52
54
  }
53
55
  }, [props.externalToolbarRef, props.offsetTop]);
54
- return /*#__PURE__*/React.createElement("div", {
56
+ return jsx("div", {
55
57
  css: [mainToolbarWrapperStyle, stickyToolbarWrapperStyle, css`
56
58
  top: ${top}px;
57
59
  `],
@@ -59,7 +61,7 @@ const StickyToolbar = props => {
59
61
  className: 'show-keyline'
60
62
  }, props.children);
61
63
  };
62
- const FixedToolbar = props => /*#__PURE__*/React.createElement("div", {
64
+ const FixedToolbar = props => jsx("div", {
63
65
  css: mainToolbarWrapperStyle,
64
66
  "data-testid": "ak-editor-main-toolbar"
65
67
  }, props.children);
@@ -96,9 +98,9 @@ export const MainToolbar = ({
96
98
  children
97
99
  }) => {
98
100
  if (useStickyToolbar) {
99
- return /*#__PURE__*/React.createElement(StickyToolbar, getStickyParameters(useStickyToolbar), children);
101
+ return jsx(StickyToolbar, getStickyParameters(useStickyToolbar), children);
100
102
  }
101
- return /*#__PURE__*/React.createElement(FixedToolbar, null, children);
103
+ return jsx(FixedToolbar, null, children);
102
104
  };
103
105
  export const mainToolbarCustomComponentsSlotStyle = css`
104
106
  display: flex;
@@ -1,4 +1,6 @@
1
+ /** @jsx jsx */
1
2
  import React, { useEffect, useState, useRef, useMemo } from 'react';
3
+ import { jsx } from '@emotion/react';
2
4
  import { fullPageEditorWrapper } from './StyledComponents';
3
5
  import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
4
6
  import { FullPageContentArea } from './FullPageContentArea';
@@ -33,11 +35,11 @@ export const FullPageEditor = props => {
33
35
  const wrapperElementRef = useMemo(() => props.innerRef, [props.innerRef]);
34
36
  const scrollContentContainerRef = useRef(null);
35
37
  const showKeyline = useShowKeyline(scrollContentContainerRef);
36
- return /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement("div", {
38
+ return jsx(ContextPanelWidthProvider, null, jsx("div", {
37
39
  css: fullPageEditorWrapper,
38
40
  className: "akEditor",
39
41
  ref: wrapperElementRef
40
- }, /*#__PURE__*/React.createElement(FullPageToolbar, {
42
+ }, jsx(FullPageToolbar, {
41
43
  appearance: props.appearance,
42
44
  beforeIcon: props.primaryToolbarIconBefore,
43
45
  collabEdit: props.collabEdit,
@@ -58,7 +60,7 @@ export const FullPageEditor = props => {
58
60
  showKeyline: showKeyline,
59
61
  featureFlags: props.featureFlags,
60
62
  hideAvatarGroup: props.hideAvatarGroup
61
- }), /*#__PURE__*/React.createElement(FullPageContentArea, {
63
+ }), jsx(FullPageContentArea, {
62
64
  ref: scrollContentContainerRef,
63
65
  appearance: props.appearance,
64
66
  contentComponents: props.contentComponents,
@@ -1,4 +1,5 @@
1
- import { useTheme } from '@emotion/react';
1
+ /** @jsx jsx */
2
+ import { jsx, useTheme } from '@emotion/react';
2
3
  import { WidthConsumer, ContextPanelConsumer } from '@atlaskit/editor-common/ui';
3
4
  import React, { useImperativeHandle, useRef } from 'react';
4
5
  import { injectIntl } from 'react-intl-next';
@@ -21,23 +22,23 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
21
22
  return contentAreaRef.current;
22
23
  }
23
24
  }), []);
24
- return /*#__PURE__*/React.createElement(WidthConsumer, null, ({
25
+ return jsx(WidthConsumer, null, ({
25
26
  width
26
- }) => /*#__PURE__*/React.createElement(ContextPanelConsumer, null, ({
27
+ }) => jsx(ContextPanelConsumer, null, ({
27
28
  positionedOverEditor
28
29
  }) => {
29
30
  var _contentAreaRef$curre;
30
- return /*#__PURE__*/React.createElement("div", {
31
+ return jsx("div", {
31
32
  css: [contentArea, positionedOverEditor && positionedOverEditorStyle],
32
33
  "data-testid": CONTENT_AREA_TEST_ID
33
- }, /*#__PURE__*/React.createElement(ScrollContainer, {
34
+ }, jsx(ScrollContainer, {
34
35
  className: "fabric-editor-popup-scroll-parent",
35
36
  featureFlags: props.featureFlags,
36
37
  ref: scrollContainerRef
37
- }, /*#__PURE__*/React.createElement(ClickAreaBlock, {
38
+ }, jsx(ClickAreaBlock, {
38
39
  editorView: props.editorView,
39
40
  editorDisabled: props.disabled
40
- }, /*#__PURE__*/React.createElement("div", {
41
+ }, jsx("div", {
41
42
  css: editorContentAreaStyle({
42
43
  fullWidthMode,
43
44
  layoutMaxWidth: theme.layoutMaxWidth,
@@ -46,11 +47,11 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
46
47
  role: "region",
47
48
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
48
49
  ref: contentAreaRef
49
- }, /*#__PURE__*/React.createElement("div", {
50
+ }, jsx("div", {
50
51
  css: editorContentGutterStyle,
51
52
  className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
52
53
  ref: contentAreaRef
53
- }, props.customContentComponents, /*#__PURE__*/React.createElement(PluginSlot, {
54
+ }, props.customContentComponents, jsx(PluginSlot, {
54
55
  editorView: props.editorView,
55
56
  editorActions: props.editorActions,
56
57
  eventDispatcher: props.eventDispatcher,
@@ -66,9 +67,9 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
66
67
  containerElement: scrollContainerRef.current,
67
68
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
68
69
  wrapperElement: props.wrapperElement
69
- }), props.editorDOMElement)))), /*#__PURE__*/React.createElement("div", {
70
+ }), props.editorDOMElement)))), jsx("div", {
70
71
  css: sidebarArea
71
- }, props.contextPanel || /*#__PURE__*/React.createElement(ContextPanel, {
72
+ }, props.contextPanel || jsx(ContextPanel, {
72
73
  visible: false
73
74
  })));
74
75
  }));