@atlaskit/editor-core 189.4.17 → 189.4.19
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/CHANGELOG.md +35 -0
- package/dist/cjs/composable-editor/editor-internal.js +11 -11
- package/dist/cjs/composable-editor/editor.js +7 -8
- package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +0 -2
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +0 -2
- package/dist/cjs/editor.js +3 -4
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +10 -11
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +2 -3
- package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +1 -2
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +5 -6
- package/dist/cjs/plugins/collab-edit/ui/avatars.js +2 -5
- package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +1 -4
- package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +4 -7
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +11 -13
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +4 -5
- package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +8 -9
- package/dist/cjs/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +4 -4
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +6 -7
- package/dist/cjs/plugins/find-replace/ui/Find.js +13 -14
- package/dist/cjs/plugins/find-replace/ui/FindReplace.js +5 -6
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -8
- package/dist/cjs/plugins/find-replace/ui/Replace.js +5 -6
- package/dist/cjs/plugins/find-replace/ui/styles.js +0 -1
- package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +4 -5
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +8 -11
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -2
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +1 -2
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +1 -2
- package/dist/cjs/ui/Addon/Dropdown/index.js +2 -3
- package/dist/cjs/ui/Addon/DropdownItem/index.js +2 -5
- package/dist/cjs/ui/Alignment/index.js +6 -7
- package/dist/cjs/ui/Appearance/Chromeless.js +6 -7
- package/dist/cjs/ui/Appearance/Comment/Comment.js +16 -17
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +4 -5
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +3 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +10 -12
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +13 -15
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +5 -6
- package/dist/cjs/ui/ChromeCollapsed/index.js +2 -3
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +15 -16
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +19 -14
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +6 -7
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +8 -8
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +17 -18
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +8 -9
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +9 -10
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +5 -6
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +6 -7
- package/dist/cjs/ui/ConfigPanel/FormContent.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Header.js +13 -14
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +2 -3
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +4 -5
- package/dist/cjs/ui/ConfigPanel/utils.js +16 -0
- package/dist/cjs/ui/ContentStyles/index.js +1 -2
- package/dist/cjs/ui/ContextPanel/index.js +10 -11
- package/dist/cjs/ui/PluginSlot/index.js +3 -4
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -2
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +4 -5
- package/dist/cjs/ui/ToolbarFeedback/index.js +15 -16
- package/dist/cjs/ui/WithFlash/index.js +1 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +11 -12
- package/dist/es2019/composable-editor/editor.js +6 -8
- package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +0 -2
- package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +0 -1
- package/dist/es2019/editor.js +2 -4
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +9 -11
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -4
- package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -3
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +6 -7
- package/dist/es2019/plugins/collab-edit/ui/avatars.js +2 -4
- package/dist/es2019/plugins/collab-edit/ui/colored-avatar-item.js +1 -3
- package/dist/es2019/plugins/collab-edit/ui/invite-to-edit.js +4 -6
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +11 -14
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/index.js +3 -5
- package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +5 -7
- package/dist/es2019/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +4 -6
- package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +7 -8
- package/dist/es2019/plugins/find-replace/ui/Find.js +12 -14
- package/dist/es2019/plugins/find-replace/ui/FindReplace.js +4 -6
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +8 -9
- package/dist/es2019/plugins/find-replace/ui/Replace.js +4 -6
- package/dist/es2019/plugins/find-replace/ui/styles.js +0 -1
- package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +8 -10
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +2 -3
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +2 -3
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +2 -3
- package/dist/es2019/ui/Addon/Dropdown/index.js +1 -3
- package/dist/es2019/ui/Addon/DropdownItem/index.js +2 -4
- package/dist/es2019/ui/Alignment/index.js +3 -5
- package/dist/es2019/ui/Appearance/Chromeless.js +7 -8
- package/dist/es2019/ui/Appearance/Comment/Comment.js +17 -18
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +5 -7
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +3 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +11 -12
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +13 -15
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +6 -7
- package/dist/es2019/ui/ChromeCollapsed/index.js +1 -3
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +20 -15
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +7 -8
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +8 -9
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +18 -19
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +9 -10
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +10 -11
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +6 -7
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +7 -8
- package/dist/es2019/ui/ConfigPanel/FormContent.js +3 -1
- package/dist/es2019/ui/ConfigPanel/Header.js +14 -15
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +3 -4
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +5 -6
- package/dist/es2019/ui/ConfigPanel/utils.js +10 -0
- package/dist/es2019/ui/ContentStyles/index.js +2 -3
- package/dist/es2019/ui/ContextPanel/index.js +11 -12
- package/dist/es2019/ui/PluginSlot/index.js +4 -5
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +2 -3
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +5 -6
- package/dist/es2019/ui/ToolbarFeedback/index.js +12 -14
- package/dist/es2019/ui/WithFlash/index.js +2 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +11 -12
- package/dist/esm/composable-editor/editor.js +6 -8
- package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +0 -2
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +0 -1
- package/dist/esm/editor.js +2 -4
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +9 -11
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -4
- package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -3
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +6 -7
- package/dist/esm/plugins/collab-edit/ui/avatars.js +2 -4
- package/dist/esm/plugins/collab-edit/ui/colored-avatar-item.js +1 -3
- package/dist/esm/plugins/collab-edit/ui/invite-to-edit.js +4 -6
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +11 -14
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/index.js +3 -5
- package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +5 -7
- package/dist/esm/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +4 -6
- package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +7 -8
- package/dist/esm/plugins/find-replace/ui/Find.js +12 -14
- package/dist/esm/plugins/find-replace/ui/FindReplace.js +4 -6
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +8 -9
- package/dist/esm/plugins/find-replace/ui/Replace.js +4 -6
- package/dist/esm/plugins/find-replace/ui/styles.js +0 -1
- package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +8 -10
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +2 -3
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +2 -3
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +2 -3
- package/dist/esm/ui/Addon/Dropdown/index.js +1 -3
- package/dist/esm/ui/Addon/DropdownItem/index.js +2 -4
- package/dist/esm/ui/Alignment/index.js +3 -5
- package/dist/esm/ui/Appearance/Chromeless.js +7 -8
- package/dist/esm/ui/Appearance/Comment/Comment.js +17 -18
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +5 -7
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +3 -5
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +11 -12
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +13 -15
- package/dist/esm/ui/AppearanceComponents/Mobile.js +6 -7
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -3
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +20 -15
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +7 -8
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +8 -9
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +18 -19
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +9 -10
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +10 -11
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +6 -7
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +7 -8
- package/dist/esm/ui/ConfigPanel/FormContent.js +2 -2
- package/dist/esm/ui/ConfigPanel/Header.js +14 -15
- package/dist/esm/ui/ConfigPanel/LoadingState.js +3 -4
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +5 -6
- package/dist/esm/ui/ConfigPanel/utils.js +16 -0
- package/dist/esm/ui/ContentStyles/index.js +2 -3
- package/dist/esm/ui/ContextPanel/index.js +11 -12
- package/dist/esm/ui/PluginSlot/index.js +4 -5
- package/dist/esm/ui/Toolbar/ToolbarInner.js +2 -3
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +5 -6
- package/dist/esm/ui/ToolbarFeedback/index.js +12 -14
- package/dist/esm/ui/WithFlash/index.js +2 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/ConfigPanel/Fields/Boolean.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FormContent.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/utils.d.ts +2 -1
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Boolean.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FormContent.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +2 -1
- package/package.json +10 -6
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
5
3
|
import { avatarContainer } from './styles';
|
|
6
4
|
import toAvatar from './to-avatar';
|
|
@@ -16,9 +14,9 @@ export const Avatars = /*#__PURE__*/React.memo(props => {
|
|
|
16
14
|
if (!avatars.length) {
|
|
17
15
|
return null;
|
|
18
16
|
}
|
|
19
|
-
return
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
18
|
css: avatarContainer
|
|
21
|
-
},
|
|
19
|
+
}, /*#__PURE__*/React.createElement(AvatarGroup, {
|
|
22
20
|
appearance: "stack",
|
|
23
21
|
size: "medium",
|
|
24
22
|
data: avatars,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { getAvatarColor } from '../utils';
|
|
4
2
|
import { badge } from './styles';
|
|
5
3
|
export const ColoredAvatarItem = props => {
|
|
6
4
|
const color = getAvatarColor(props.sessionId).color.solid;
|
|
7
5
|
const avatar = props.name.substr(0, 1).toUpperCase();
|
|
8
|
-
return
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
7
|
css: badge(color),
|
|
10
8
|
"data-testid": "editor-collab-badge"
|
|
11
9
|
}, avatar);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React, { Fragment } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import InviteTeamIcon from '@atlaskit/icon/glyph/editor/add';
|
|
5
3
|
import ToolbarButton from '../../../ui/ToolbarButton';
|
|
6
4
|
import { inviteTeamWrapper } from './styles';
|
|
7
|
-
const ID = props =>
|
|
5
|
+
const ID = props => /*#__PURE__*/React.createElement(Fragment, null, props.children);
|
|
8
6
|
export const InviteToEditButton = props => {
|
|
9
7
|
const {
|
|
10
8
|
Component,
|
|
@@ -12,16 +10,16 @@ export const InviteToEditButton = props => {
|
|
|
12
10
|
selected,
|
|
13
11
|
title
|
|
14
12
|
} = props;
|
|
15
|
-
const iconBefore = React.useMemo(() =>
|
|
13
|
+
const iconBefore = React.useMemo(() => /*#__PURE__*/React.createElement(InviteTeamIcon, {
|
|
16
14
|
label: title
|
|
17
15
|
}), [title]);
|
|
18
16
|
if (!Component && !onClick) {
|
|
19
17
|
return null;
|
|
20
18
|
}
|
|
21
19
|
const Wrapper = Component ? Component : ID;
|
|
22
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
21
|
css: inviteTeamWrapper
|
|
24
|
-
},
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
25
23
|
className: "invite-to-edit",
|
|
26
24
|
onClick: onClick,
|
|
27
25
|
selected: selected,
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
|
|
4
2
|
import React from 'react';
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
3
|
import { overflowShadow } from '@atlaskit/editor-common/ui';
|
|
7
4
|
import { calculateBreakoutStyles } from '@atlaskit/editor-common/utils';
|
|
8
5
|
import { wrapperStyle, header, content, contentWrapper, widerLayoutClassName } from './styles';
|
|
@@ -74,26 +71,26 @@ function ExtensionWithPluginState(props) {
|
|
|
74
71
|
...newContentStyles,
|
|
75
72
|
...contentWrapper
|
|
76
73
|
};
|
|
77
|
-
return
|
|
74
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
78
75
|
ref: handleRef,
|
|
79
76
|
"data-layout": node.attrs.layout,
|
|
80
77
|
className: classNames,
|
|
81
78
|
css: wrapperStyle,
|
|
82
79
|
style: customContainerStyles
|
|
83
|
-
},
|
|
80
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
84
81
|
className: `extension-overflow-wrapper ${hasBody ? 'with-body' : ''}`
|
|
85
|
-
},
|
|
82
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
86
83
|
css: overlay,
|
|
87
84
|
className: "extension-overlay"
|
|
88
|
-
}),
|
|
85
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
89
86
|
css: header,
|
|
90
87
|
contentEditable: false,
|
|
91
88
|
className: headerClassNames
|
|
92
|
-
}, !removeBorder &&
|
|
89
|
+
}, !removeBorder && /*#__PURE__*/React.createElement(ExtensionLozenge, {
|
|
93
90
|
node: node
|
|
94
|
-
}), children), hasBody &&
|
|
91
|
+
}), children), hasBody && /*#__PURE__*/React.createElement("div", {
|
|
95
92
|
css: newContentStyles
|
|
96
|
-
},
|
|
93
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
97
94
|
css: content,
|
|
98
95
|
ref: handleContentDOMRef,
|
|
99
96
|
className: "extension-content block"
|
|
@@ -107,7 +104,7 @@ const Extension = props => {
|
|
|
107
104
|
const {
|
|
108
105
|
pluginInjectionApi
|
|
109
106
|
} = props;
|
|
110
|
-
return pluginInjectionApi === undefined ?
|
|
107
|
+
return pluginInjectionApi === undefined ? /*#__PURE__*/React.createElement(ExtensionDeprecated, props) : /*#__PURE__*/React.createElement(ExtensionWithSharedState, props);
|
|
111
108
|
};
|
|
112
109
|
const ExtensionWithSharedState = props => {
|
|
113
110
|
const {
|
|
@@ -116,7 +113,7 @@ const ExtensionWithSharedState = props => {
|
|
|
116
113
|
const {
|
|
117
114
|
widthState
|
|
118
115
|
} = useSharedPluginState(pluginInjectionApi, ['width']);
|
|
119
|
-
return
|
|
116
|
+
return /*#__PURE__*/React.createElement(ExtensionWithPluginState, _extends({
|
|
120
117
|
widthState: widthState
|
|
121
118
|
}, props));
|
|
122
119
|
};
|
|
@@ -133,14 +130,14 @@ const widthPluginKey = {
|
|
|
133
130
|
}
|
|
134
131
|
};
|
|
135
132
|
const ExtensionDeprecated = props => {
|
|
136
|
-
return
|
|
133
|
+
return /*#__PURE__*/React.createElement(WithPluginState, {
|
|
137
134
|
editorView: props.view,
|
|
138
135
|
plugins: {
|
|
139
136
|
widthState: widthPluginKey
|
|
140
137
|
},
|
|
141
138
|
render: ({
|
|
142
139
|
widthState
|
|
143
|
-
}) =>
|
|
140
|
+
}) => /*#__PURE__*/React.createElement(ExtensionWithPluginState, _extends({
|
|
144
141
|
widthState: widthState
|
|
145
142
|
}, props))
|
|
146
143
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import { Component } from 'react';
|
|
5
3
|
import { overlay } from '../styles';
|
|
6
4
|
import ExtensionLozenge from '../Lozenge';
|
|
@@ -13,13 +11,13 @@ export default class InlineExtension extends Component {
|
|
|
13
11
|
} = this.props;
|
|
14
12
|
const hasChildren = !!children;
|
|
15
13
|
const className = hasChildren ? 'with-overlay with-children' : 'with-overlay';
|
|
16
|
-
return
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
15
|
css: wrapperStyle,
|
|
18
16
|
className: `extension-container inline ${className}`
|
|
19
|
-
},
|
|
17
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20
18
|
css: overlay,
|
|
21
19
|
className: "extension-overlay"
|
|
22
|
-
}), children ? children :
|
|
20
|
+
}), children ? children : /*#__PURE__*/React.createElement(ExtensionLozenge, {
|
|
23
21
|
node: node
|
|
24
22
|
}));
|
|
25
23
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import { Component } from 'react';
|
|
5
3
|
import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
6
4
|
import { getExtensionLozengeData } from '@atlaskit/editor-common/utils';
|
|
@@ -35,7 +33,7 @@ export default class ExtensionLozenge extends Component {
|
|
|
35
33
|
url,
|
|
36
34
|
...rest
|
|
37
35
|
} = lozengeData;
|
|
38
|
-
return
|
|
36
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
39
37
|
css: styledImage,
|
|
40
38
|
src: url
|
|
41
39
|
}, rest, {
|
|
@@ -53,18 +51,18 @@ export default class ExtensionLozenge extends Component {
|
|
|
53
51
|
const params = parameters && parameters.macroParams;
|
|
54
52
|
const title = parameters && parameters.extensionTitle || parameters && parameters.macroMetadata && parameters.macroMetadata.title || extensionKey;
|
|
55
53
|
const isBlockExtension = name === 'extension';
|
|
56
|
-
return
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
57
55
|
"data-testid": "lozenge-fallback",
|
|
58
56
|
css: placeholderFallback
|
|
59
57
|
}, lozengeData && !isBlockExtension ? this.renderImage({
|
|
60
58
|
height: ICON_SIZE,
|
|
61
59
|
width: ICON_SIZE,
|
|
62
60
|
...lozengeData
|
|
63
|
-
}) :
|
|
61
|
+
}) : /*#__PURE__*/React.createElement(EditorFileIcon, {
|
|
64
62
|
label: title
|
|
65
|
-
}),
|
|
63
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
66
64
|
className: "extension-title"
|
|
67
|
-
}, capitalizeFirstLetter(title)), params && !isBlockExtension &&
|
|
65
|
+
}, capitalizeFirstLetter(title)), params && !isBlockExtension && /*#__PURE__*/React.createElement("span", {
|
|
68
66
|
css: placeholderFallbackParams
|
|
69
67
|
}, Object.keys(params).map(key => key && ` | ${key} = ${params[key].value}`)));
|
|
70
68
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { jsx, css } from '@emotion/react';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
4
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
5
3
|
import React, { useState } from 'react';
|
|
6
4
|
const useMultiBodiedExtensionActions = ({
|
|
@@ -148,16 +146,16 @@ const MultiBodiedExtension = ({
|
|
|
148
146
|
display: block;
|
|
149
147
|
}
|
|
150
148
|
`;
|
|
151
|
-
return
|
|
149
|
+
return /*#__PURE__*/React.createElement("section", {
|
|
152
150
|
className: "multiBodiedExtension--container",
|
|
153
151
|
css: containerCSS,
|
|
154
152
|
"data-testid": "multiBodiedExtension--container",
|
|
155
153
|
"data-active-child-index": activeChildIndex
|
|
156
|
-
},
|
|
154
|
+
}, /*#__PURE__*/React.createElement("nav", {
|
|
157
155
|
className: "multiBodiedExtension-navigation",
|
|
158
156
|
css: navigationCSS,
|
|
159
157
|
"data-testid": "multiBodiedExtension-navigation"
|
|
160
|
-
}, extensionHandlerResult),
|
|
158
|
+
}, extensionHandlerResult), /*#__PURE__*/React.createElement("article", {
|
|
161
159
|
className: "multiBodiedExtension--frames",
|
|
162
160
|
"data-testid": "multiBodiedExtension--frames",
|
|
163
161
|
ref: articleRef
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { G300, N0 } from '@atlaskit/theme/colors';
|
|
5
4
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
6
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -49,19 +48,19 @@ export const SaveIndicator = ({
|
|
|
49
48
|
return () => clearTimeout(handleId);
|
|
50
49
|
}
|
|
51
50
|
}, [saving, duration]);
|
|
52
|
-
return
|
|
51
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", null, children({
|
|
53
52
|
onSaveStarted,
|
|
54
53
|
onSaveEnded: noop
|
|
55
|
-
})), visible && saving &&
|
|
54
|
+
})), visible && saving && /*#__PURE__*/React.createElement("div", {
|
|
56
55
|
css: saveIndicatorWrapper
|
|
57
|
-
},
|
|
56
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
58
57
|
css: saveIndicatorContent,
|
|
59
58
|
"data-testid": "save-indicator-content"
|
|
60
|
-
},
|
|
59
|
+
}, /*#__PURE__*/React.createElement(CheckCircleIcon, {
|
|
61
60
|
label: "Saving",
|
|
62
61
|
primaryColor: `var(--ds-icon-success, ${G300})`,
|
|
63
62
|
size: "small"
|
|
64
|
-
}),
|
|
63
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
65
64
|
css: saveIndicatorText
|
|
66
|
-
},
|
|
65
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.saveIndicator)))));
|
|
67
66
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
3
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
6
4
|
import debounce from 'lodash/debounce';
|
|
7
5
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
@@ -166,16 +164,16 @@ class Find extends React.Component {
|
|
|
166
164
|
this.findNext = formatMessage(messages.findNext);
|
|
167
165
|
this.findPrevious = formatMessage(messages.findPrevious);
|
|
168
166
|
this.matchCase = formatMessage(messages.matchCase);
|
|
169
|
-
this.matchCaseIcon =
|
|
167
|
+
this.matchCaseIcon = /*#__PURE__*/React.createElement(MatchCaseIcon, {
|
|
170
168
|
label: this.matchCase
|
|
171
169
|
});
|
|
172
|
-
this.findNextIcon =
|
|
170
|
+
this.findNextIcon = /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
173
171
|
label: this.findNext
|
|
174
172
|
});
|
|
175
|
-
this.findPrevIcon =
|
|
173
|
+
this.findPrevIcon = /*#__PURE__*/React.createElement(ChevronUpIcon, {
|
|
176
174
|
label: this.findPrevious
|
|
177
175
|
});
|
|
178
|
-
this.closeIcon =
|
|
176
|
+
this.closeIcon = /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
179
177
|
label: this.closeFindReplaceDialog
|
|
180
178
|
});
|
|
181
179
|
|
|
@@ -235,9 +233,9 @@ class Find extends React.Component {
|
|
|
235
233
|
selectedMatchPosition: count.index + 1,
|
|
236
234
|
totalResultsCount: count.total
|
|
237
235
|
});
|
|
238
|
-
return
|
|
236
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
239
237
|
css: sectionWrapperStyles
|
|
240
|
-
},
|
|
238
|
+
}, /*#__PURE__*/React.createElement(Textfield, {
|
|
241
239
|
name: "find",
|
|
242
240
|
appearance: "none",
|
|
243
241
|
placeholder: this.find,
|
|
@@ -250,30 +248,30 @@ class Find extends React.Component {
|
|
|
250
248
|
onBlur: this.props.onFindBlur,
|
|
251
249
|
onCompositionStart: this.handleCompositionStart,
|
|
252
250
|
onCompositionEnd: this.handleCompositionEnd
|
|
253
|
-
}),
|
|
251
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
254
252
|
css: countWrapperStyles,
|
|
255
253
|
"aria-live": "polite"
|
|
256
|
-
}, findText &&
|
|
254
|
+
}, findText && /*#__PURE__*/React.createElement("span", {
|
|
257
255
|
"data-testid": "textfield-count",
|
|
258
256
|
css: countStyles
|
|
259
|
-
}, count.total === 0 ? this.noResultsFound : resultsCount)), allowMatchCase &&
|
|
257
|
+
}, count.total === 0 ? this.noResultsFound : resultsCount)), allowMatchCase && /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
260
258
|
title: this.matchCase,
|
|
261
259
|
icon: this.matchCaseIcon,
|
|
262
260
|
onClick: this.handleMatchCaseClick,
|
|
263
261
|
isPressed: shouldMatchCase
|
|
264
|
-
}),
|
|
262
|
+
}), /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
265
263
|
title: this.findNext,
|
|
266
264
|
icon: this.findNextIcon,
|
|
267
265
|
keymapDescription: 'Enter',
|
|
268
266
|
onClick: this.handleFindNextClick,
|
|
269
267
|
disabled: count.total <= 1
|
|
270
|
-
}),
|
|
268
|
+
}), /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
271
269
|
title: this.findPrevious,
|
|
272
270
|
icon: this.findPrevIcon,
|
|
273
271
|
keymapDescription: 'Shift Enter',
|
|
274
272
|
onClick: this.handleFindPrevClick,
|
|
275
273
|
disabled: count.total <= 1
|
|
276
|
-
}),
|
|
274
|
+
}), /*#__PURE__*/React.createElement(FindReplaceTooltipButton, {
|
|
277
275
|
title: this.closeFindReplaceDialog,
|
|
278
276
|
icon: this.closeIcon,
|
|
279
277
|
keymapDescription: 'Escape',
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
3
|
import Find from './Find';
|
|
6
4
|
import Replace from './Replace';
|
|
7
5
|
import { ruleStyles, wrapperStyles } from './styles';
|
|
@@ -45,9 +43,9 @@ class FindReplace extends React.PureComponent {
|
|
|
45
43
|
shouldMatchCase,
|
|
46
44
|
onToggleMatchCase
|
|
47
45
|
} = this.props;
|
|
48
|
-
return
|
|
46
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
47
|
css: wrapperStyles
|
|
50
|
-
},
|
|
48
|
+
}, /*#__PURE__*/React.createElement(Find, {
|
|
51
49
|
allowMatchCase: allowMatchCase,
|
|
52
50
|
shouldMatchCase: shouldMatchCase,
|
|
53
51
|
onToggleMatchCase: onToggleMatchCase,
|
|
@@ -61,10 +59,10 @@ class FindReplace extends React.PureComponent {
|
|
|
61
59
|
onFindTextfieldRefSet: this.setFindTextfieldRef,
|
|
62
60
|
onCancel: onCancel,
|
|
63
61
|
onArrowDown: this.setFocusToReplace
|
|
64
|
-
}),
|
|
62
|
+
}), /*#__PURE__*/React.createElement("hr", {
|
|
65
63
|
css: ruleStyles,
|
|
66
64
|
id: "replace-hr-element"
|
|
67
|
-
}),
|
|
65
|
+
}), /*#__PURE__*/React.createElement(Replace, {
|
|
68
66
|
canReplace: count.total > 0,
|
|
69
67
|
replaceText: replaceText,
|
|
70
68
|
onReplace: onReplace,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
7
6
|
import { akEditorFloatingPanelZIndex, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
8
7
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../ui/ToolbarButton';
|
|
@@ -70,9 +69,9 @@ class FindReplaceToolbarButton extends React.PureComponent {
|
|
|
70
69
|
const title = formatMessage(messages.findReplaceToolbarButton);
|
|
71
70
|
const stackBelowOtherEditorFloatingPanels = akEditorFloatingPanelZIndex - 1;
|
|
72
71
|
const keymap = findKeymapByDescription('Find');
|
|
73
|
-
return
|
|
72
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
74
73
|
css: [toolbarButtonWrapper, takeFullWidth && toolbarButtonWrapperFullWith]
|
|
75
|
-
},
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
76
75
|
mountTo: popupsMountPoint,
|
|
77
76
|
boundariesElement: popupsBoundariesElement,
|
|
78
77
|
scrollableElement: popupsScrollableElement,
|
|
@@ -90,15 +89,15 @@ class FindReplaceToolbarButton extends React.PureComponent {
|
|
|
90
89
|
type: ArrowKeyNavigationType.MENU,
|
|
91
90
|
disableArrowKeyNavigation: true
|
|
92
91
|
},
|
|
93
|
-
trigger:
|
|
92
|
+
trigger: /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
94
93
|
buttonId: TOOLBAR_BUTTON.FIND_REPLACE,
|
|
95
94
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
96
95
|
selected: isActive,
|
|
97
|
-
title:
|
|
96
|
+
title: /*#__PURE__*/React.createElement(ToolTipContent, {
|
|
98
97
|
description: title,
|
|
99
98
|
keymap: keymap
|
|
100
99
|
}),
|
|
101
|
-
iconBefore:
|
|
100
|
+
iconBefore: /*#__PURE__*/React.createElement(EditorSearchIcon, {
|
|
102
101
|
label: title
|
|
103
102
|
}),
|
|
104
103
|
onClick: this.toggleOpen,
|
|
@@ -107,9 +106,9 @@ class FindReplaceToolbarButton extends React.PureComponent {
|
|
|
107
106
|
"aria-label": keymap ? tooltip(keymap, title) : title,
|
|
108
107
|
"aria-keyshortcuts": getAriaKeyshortcuts(keymap)
|
|
109
108
|
})
|
|
110
|
-
},
|
|
109
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
111
110
|
css: wrapper
|
|
112
|
-
},
|
|
111
|
+
}, /*#__PURE__*/React.createElement(FindReplace, _extends({
|
|
113
112
|
findText: findText,
|
|
114
113
|
replaceText: replaceText,
|
|
115
114
|
count: {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
3
|
import Button from '@atlaskit/button/standard-button';
|
|
6
4
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
7
5
|
import Textfield from '@atlaskit/textfield';
|
|
@@ -123,9 +121,9 @@ class Replace extends React.PureComponent {
|
|
|
123
121
|
const {
|
|
124
122
|
canReplace
|
|
125
123
|
} = this.props;
|
|
126
|
-
return
|
|
124
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
127
125
|
css: sectionWrapperStyles
|
|
128
|
-
},
|
|
126
|
+
}, /*#__PURE__*/React.createElement(Textfield, {
|
|
129
127
|
name: "replace",
|
|
130
128
|
appearance: "none",
|
|
131
129
|
placeholder: this.replaceWith,
|
|
@@ -136,12 +134,12 @@ class Replace extends React.PureComponent {
|
|
|
136
134
|
onKeyDown: this.handleReplaceKeyDown,
|
|
137
135
|
onCompositionStart: this.handleCompositionStart,
|
|
138
136
|
onCompositionEnd: this.handleCompositionEnd
|
|
139
|
-
}),
|
|
137
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
140
138
|
css: replaceSectionButtonStyles,
|
|
141
139
|
testId: this.replace,
|
|
142
140
|
onClick: this.handleReplaceClick,
|
|
143
141
|
isDisabled: !canReplace
|
|
144
|
-
}, this.replace),
|
|
142
|
+
}, this.replace), /*#__PURE__*/React.createElement(Button, {
|
|
145
143
|
css: replaceSectionButtonStyles,
|
|
146
144
|
testId: this.replaceAll,
|
|
147
145
|
onClick: this.handleReplaceAllClick,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
3
2
|
import { JiraIcon } from '@atlaskit/logo/jira-icon';
|
|
4
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
5
4
|
import { N30, N50 } from '@atlaskit/theme/colors';
|
|
@@ -55,14 +54,14 @@ export default function JIRAIssueNode(props) {
|
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
} = props;
|
|
58
|
-
return
|
|
57
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
59
58
|
css: wrapperNode,
|
|
60
59
|
"data-testid": "jira-issue-node"
|
|
61
|
-
},
|
|
60
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
62
61
|
css: svgChildNode
|
|
63
|
-
},
|
|
62
|
+
}, /*#__PURE__*/React.createElement(JiraIcon, {
|
|
64
63
|
size: "small"
|
|
65
|
-
})),
|
|
64
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
66
65
|
css: jiraChildNode
|
|
67
66
|
}, issueKey));
|
|
68
67
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { injectIntl } from 'react-intl-next';
|
|
4
2
|
import UndoIcon from '@atlaskit/icon/glyph/undo';
|
|
5
3
|
import RedoIcon from '@atlaskit/icon/glyph/redo';
|
|
@@ -55,39 +53,39 @@ export const ToolbarUndoRedo = ({
|
|
|
55
53
|
canUndo,
|
|
56
54
|
canRedo
|
|
57
55
|
} = historyState !== null && historyState !== void 0 ? historyState : {};
|
|
58
|
-
return
|
|
56
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
59
57
|
css: buttonGroupStyle
|
|
60
|
-
},
|
|
58
|
+
}, /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
61
59
|
buttonId: TOOLBAR_BUTTON.UNDO,
|
|
62
60
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
63
61
|
onClick: handleUndo,
|
|
64
62
|
disabled: !canUndo || disabled,
|
|
65
63
|
"aria-label": tooltip(undoKeymap, labelUndo),
|
|
66
64
|
"aria-keyshortcuts": getAriaKeyshortcuts(undoKeymap),
|
|
67
|
-
title:
|
|
65
|
+
title: /*#__PURE__*/React.createElement(ToolTipContent, {
|
|
68
66
|
description: labelUndo,
|
|
69
67
|
keymap: undoKeymap
|
|
70
68
|
}),
|
|
71
|
-
iconBefore:
|
|
69
|
+
iconBefore: /*#__PURE__*/React.createElement(UndoIcon, {
|
|
72
70
|
label: ""
|
|
73
71
|
}),
|
|
74
72
|
testId: "ak-editor-toolbar-button-undo"
|
|
75
|
-
}),
|
|
73
|
+
}), /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
76
74
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
77
75
|
buttonId: TOOLBAR_BUTTON.REDO,
|
|
78
76
|
onClick: handleRedo,
|
|
79
77
|
disabled: !canRedo || disabled,
|
|
80
|
-
title:
|
|
78
|
+
title: /*#__PURE__*/React.createElement(ToolTipContent, {
|
|
81
79
|
description: labelRedo,
|
|
82
80
|
keymap: redoKeymap
|
|
83
81
|
}),
|
|
84
|
-
iconBefore:
|
|
82
|
+
iconBefore: /*#__PURE__*/React.createElement(RedoIcon, {
|
|
85
83
|
label: ""
|
|
86
84
|
}),
|
|
87
85
|
testId: "ak-editor-toolbar-button-redo",
|
|
88
86
|
"aria-label": tooltip(redoKeymap, labelRedo),
|
|
89
87
|
"aria-keyshortcuts": getAriaKeyshortcuts(redoKeymap)
|
|
90
|
-
}),
|
|
88
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
91
89
|
css: separatorStyles
|
|
92
90
|
}));
|
|
93
91
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
5
4
|
const clickWrapper = css`
|
|
6
5
|
flex-grow: 1;
|
|
@@ -19,7 +18,7 @@ export const ClickAreaBlock = ({
|
|
|
19
18
|
clickAreaClickHandler(editorView, event);
|
|
20
19
|
}
|
|
21
20
|
}, [editorView, editorDisabled]);
|
|
22
|
-
return
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
22
|
"data-testid": "click-wrapper",
|
|
24
23
|
css: clickWrapper,
|
|
25
24
|
onMouseDown: handleMouseDown
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { createParagraphAtEnd } from '../../../commands';
|
|
5
4
|
const clickArea = css`
|
|
6
5
|
flex-grow: 1;
|
|
@@ -18,7 +17,7 @@ export const ClickAreaInline = ({
|
|
|
18
17
|
event.stopPropagation();
|
|
19
18
|
}
|
|
20
19
|
}, [editorView]);
|
|
21
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
21
|
"data-testid": "click-wrapper",
|
|
23
22
|
css: clickArea,
|
|
24
23
|
onMouseDown: handleMouseDown
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { css
|
|
3
|
+
import { css } from '@emotion/react';
|
|
5
4
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -58,7 +57,7 @@ export default class ClickAreaMobile extends React.Component {
|
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
render() {
|
|
61
|
-
return
|
|
60
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
62
61
|
css: clickWrapper({
|
|
63
62
|
isExpanded: this.props.isExpanded,
|
|
64
63
|
minHeight: this.props.minHeight
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
3
|
import { dropdown } from './styles';
|
|
6
4
|
export default class DropdownWrapper extends React.Component {
|
|
7
5
|
constructor(...args) {
|
|
@@ -27,7 +25,7 @@ export default class DropdownWrapper extends React.Component {
|
|
|
27
25
|
const children = React.Children.map(this.props.children, child => /*#__PURE__*/React.cloneElement(child, {
|
|
28
26
|
onClick: this.handleClick
|
|
29
27
|
}));
|
|
30
|
-
return
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
31
29
|
css: dropdown
|
|
32
30
|
}, children);
|
|
33
31
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { dropdownItem } from './styles';
|
|
4
|
-
const DropdownItemWrapper = props =>
|
|
2
|
+
const DropdownItemWrapper = props => /*#__PURE__*/React.createElement("div", {
|
|
5
3
|
css: dropdownItem,
|
|
6
4
|
onClick: () => props.onClick && props.onClick({
|
|
7
5
|
actionOnClick: props.actionOnClick,
|
|
8
6
|
renderOnClick: props.renderOnClick
|
|
9
7
|
})
|
|
10
|
-
},
|
|
8
|
+
}, /*#__PURE__*/React.createElement("span", null, props.icon), props.children);
|
|
11
9
|
export default DropdownItemWrapper;
|