@atlaskit/editor-core 189.5.1 → 189.5.6
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 +15 -0
- package/afm-cc/tsconfig.json +335 -0
- package/dist/cjs/composable-editor/editor-internal.js +11 -11
- package/dist/cjs/composable-editor/editor.js +8 -7
- package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +2 -0
- package/dist/cjs/editor.js +4 -3
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +11 -10
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -2
- package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -1
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +6 -5
- package/dist/cjs/plugins/collab-edit/ui/avatars.js +5 -2
- package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +4 -1
- package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +7 -4
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +13 -11
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +5 -4
- package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +9 -8
- package/dist/cjs/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +4 -4
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +7 -6
- package/dist/cjs/plugins/find-replace/ui/Find.js +14 -13
- package/dist/cjs/plugins/find-replace/ui/FindReplace.js +6 -5
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +8 -7
- package/dist/cjs/plugins/find-replace/ui/Replace.js +6 -5
- package/dist/cjs/plugins/find-replace/ui/styles.js +1 -0
- package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +5 -4
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +11 -8
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -1
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +2 -1
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +2 -1
- package/dist/cjs/ui/Addon/Dropdown/index.js +3 -2
- package/dist/cjs/ui/Addon/DropdownItem/index.js +5 -2
- package/dist/cjs/ui/Alignment/index.js +7 -6
- package/dist/cjs/ui/Appearance/Chromeless.js +7 -6
- package/dist/cjs/ui/Appearance/Comment/Comment.js +17 -16
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +5 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +12 -10
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +6 -5
- package/dist/cjs/ui/ChromeCollapsed/index.js +3 -2
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +16 -15
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +12 -11
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +7 -6
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +8 -8
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +18 -17
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +9 -8
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +10 -9
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +6 -5
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +7 -6
- package/dist/cjs/ui/ConfigPanel/Header.js +14 -13
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +3 -2
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +5 -4
- package/dist/cjs/ui/ContentStyles/index.js +2 -1
- package/dist/cjs/ui/ContextPanel/index.js +11 -10
- package/dist/cjs/ui/PluginSlot/index.js +4 -3
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +5 -4
- package/dist/cjs/ui/ToolbarFeedback/index.js +16 -15
- package/dist/cjs/ui/WithFlash/index.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +12 -11
- package/dist/es2019/composable-editor/editor.js +8 -6
- package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
- package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
- package/dist/es2019/editor.js +4 -2
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
- package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +7 -6
- package/dist/es2019/plugins/collab-edit/ui/avatars.js +4 -2
- package/dist/es2019/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
- package/dist/es2019/plugins/collab-edit/ui/invite-to-edit.js +6 -4
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +14 -11
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
- package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +7 -5
- package/dist/es2019/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
- package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
- package/dist/es2019/plugins/find-replace/ui/Find.js +14 -12
- package/dist/es2019/plugins/find-replace/ui/FindReplace.js +6 -4
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
- package/dist/es2019/plugins/find-replace/ui/Replace.js +6 -4
- package/dist/es2019/plugins/find-replace/ui/styles.js +1 -0
- package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +3 -2
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -2
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +3 -2
- package/dist/es2019/ui/Addon/Dropdown/index.js +3 -1
- package/dist/es2019/ui/Addon/DropdownItem/index.js +4 -2
- package/dist/es2019/ui/Alignment/index.js +5 -3
- package/dist/es2019/ui/Appearance/Chromeless.js +8 -7
- package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -17
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +7 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +5 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +7 -6
- package/dist/es2019/ui/ChromeCollapsed/index.js +3 -1
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +13 -12
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +19 -18
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +10 -9
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +11 -10
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +7 -6
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +8 -7
- package/dist/es2019/ui/ConfigPanel/Header.js +15 -14
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +4 -3
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
- package/dist/es2019/ui/ContentStyles/index.js +3 -2
- package/dist/es2019/ui/ContextPanel/index.js +12 -11
- package/dist/es2019/ui/PluginSlot/index.js +5 -4
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +3 -2
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
- package/dist/es2019/ui/ToolbarFeedback/index.js +14 -12
- package/dist/es2019/ui/WithFlash/index.js +3 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +12 -11
- package/dist/esm/composable-editor/editor.js +8 -6
- package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
- package/dist/esm/editor.js +4 -2
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
- package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +7 -6
- package/dist/esm/plugins/collab-edit/ui/avatars.js +4 -2
- package/dist/esm/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
- package/dist/esm/plugins/collab-edit/ui/invite-to-edit.js +6 -4
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +14 -11
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
- package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +7 -5
- package/dist/esm/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
- package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
- package/dist/esm/plugins/find-replace/ui/Find.js +14 -12
- package/dist/esm/plugins/find-replace/ui/FindReplace.js +6 -4
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
- package/dist/esm/plugins/find-replace/ui/Replace.js +6 -4
- package/dist/esm/plugins/find-replace/ui/styles.js +1 -0
- package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +3 -2
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -2
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +3 -2
- package/dist/esm/ui/Addon/Dropdown/index.js +3 -1
- package/dist/esm/ui/Addon/DropdownItem/index.js +4 -2
- package/dist/esm/ui/Alignment/index.js +5 -3
- package/dist/esm/ui/Appearance/Chromeless.js +8 -7
- package/dist/esm/ui/Appearance/Comment/Comment.js +18 -17
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +7 -5
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +5 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
- package/dist/esm/ui/AppearanceComponents/Mobile.js +7 -6
- package/dist/esm/ui/ChromeCollapsed/index.js +3 -1
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +13 -12
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +19 -18
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +10 -9
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +11 -10
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +7 -6
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +8 -7
- package/dist/esm/ui/ConfigPanel/Header.js +15 -14
- package/dist/esm/ui/ConfigPanel/LoadingState.js +4 -3
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
- package/dist/esm/ui/ContentStyles/index.js +3 -2
- package/dist/esm/ui/ContextPanel/index.js +12 -11
- package/dist/esm/ui/PluginSlot/index.js +5 -4
- package/dist/esm/ui/Toolbar/ToolbarInner.js +3 -2
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
- package/dist/esm/ui/ToolbarFeedback/index.js +14 -12
- package/dist/esm/ui/WithFlash/index.js +3 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +13 -5
|
@@ -4,8 +4,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
4
4
|
var _excluded = ["value"],
|
|
5
5
|
_excluded2 = ["id", "value"];
|
|
6
6
|
var _templateObject, _templateObject2;
|
|
7
|
+
/** @jsx jsx */
|
|
7
8
|
import React, { Fragment } from 'react';
|
|
8
|
-
import { css } from '@emotion/react';
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
9
10
|
import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
|
|
10
11
|
import { Field } from '@atlaskit/form';
|
|
11
12
|
import AKToggle from '@atlaskit/toggle';
|
|
@@ -46,7 +47,7 @@ function Checkbox(_ref) {
|
|
|
46
47
|
isRequired = _field$isRequired === void 0 ? false : _field$isRequired,
|
|
47
48
|
_field$defaultValue = field.defaultValue,
|
|
48
49
|
defaultValue = _field$defaultValue === void 0 ? false : _field$defaultValue;
|
|
49
|
-
return
|
|
50
|
+
return jsx(Field, {
|
|
50
51
|
name: name,
|
|
51
52
|
isRequired: isRequired,
|
|
52
53
|
validate: function validate(value) {
|
|
@@ -58,13 +59,13 @@ function Checkbox(_ref) {
|
|
|
58
59
|
error = _ref2.error;
|
|
59
60
|
var isChecked = fieldProps.value,
|
|
60
61
|
restFieldProps = _objectWithoutProperties(fieldProps, _excluded);
|
|
61
|
-
return
|
|
62
|
+
return jsx(Fragment, null, jsx(AKCheckbox, _extends({}, restFieldProps, {
|
|
62
63
|
label: label,
|
|
63
64
|
onChange: function onChange(event) {
|
|
64
65
|
return handleOnChange(fieldProps.onChange, onFieldChange, event);
|
|
65
66
|
},
|
|
66
67
|
isChecked: parseBoolean(isChecked)
|
|
67
|
-
})),
|
|
68
|
+
})), jsx(FieldMessages, {
|
|
68
69
|
error: error,
|
|
69
70
|
description: description
|
|
70
71
|
}));
|
|
@@ -80,7 +81,7 @@ function Toggle(_ref3) {
|
|
|
80
81
|
isRequired = _field$isRequired2 === void 0 ? false : _field$isRequired2,
|
|
81
82
|
_field$defaultValue2 = field.defaultValue,
|
|
82
83
|
defaultValue = _field$defaultValue2 === void 0 ? false : _field$defaultValue2;
|
|
83
|
-
return
|
|
84
|
+
return jsx(Field, {
|
|
84
85
|
name: name,
|
|
85
86
|
isRequired: isRequired,
|
|
86
87
|
validate: function validate(value) {
|
|
@@ -93,21 +94,21 @@ function Toggle(_ref3) {
|
|
|
93
94
|
var id = fieldProps.id,
|
|
94
95
|
isChecked = fieldProps.value,
|
|
95
96
|
restFieldProps = _objectWithoutProperties(fieldProps, _excluded2);
|
|
96
|
-
return
|
|
97
|
+
return jsx(Fragment, null, jsx("div", {
|
|
97
98
|
css: toggleFieldWrapper
|
|
98
|
-
},
|
|
99
|
+
}, jsx("label", {
|
|
99
100
|
css: toggleLabel,
|
|
100
101
|
id: id,
|
|
101
102
|
htmlFor: id
|
|
102
|
-
}, label, isRequired ?
|
|
103
|
+
}, label, isRequired ? jsx("span", {
|
|
103
104
|
css: requiredIndicator,
|
|
104
105
|
"aria-hidden": "true"
|
|
105
|
-
}, "*") : null),
|
|
106
|
+
}, "*") : null), jsx(AKToggle, _extends({}, restFieldProps, {
|
|
106
107
|
onChange: function onChange(event) {
|
|
107
108
|
return handleOnChange(fieldProps.onChange, onFieldChange, event);
|
|
108
109
|
},
|
|
109
110
|
isChecked: parseBoolean(isChecked)
|
|
110
|
-
}))),
|
|
111
|
+
}))), jsx(FieldMessages, {
|
|
111
112
|
error: error,
|
|
112
113
|
description: description
|
|
113
114
|
}));
|
|
@@ -118,13 +119,13 @@ export default function Boolean(_ref5) {
|
|
|
118
119
|
field = _ref5.field,
|
|
119
120
|
onFieldChange = _ref5.onFieldChange;
|
|
120
121
|
if (field.style === 'toggle') {
|
|
121
|
-
return
|
|
122
|
+
return jsx(Toggle, {
|
|
122
123
|
name: name,
|
|
123
124
|
field: field,
|
|
124
125
|
onFieldChange: onFieldChange
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
|
-
return
|
|
128
|
+
return jsx(Checkbox, {
|
|
128
129
|
name: name,
|
|
129
130
|
field: field,
|
|
130
131
|
onFieldChange: onFieldChange
|
|
@@ -4,8 +4,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
5
|
var _excluded = ["onChange", "value"];
|
|
6
6
|
var _templateObject;
|
|
7
|
+
/** @jsx jsx */
|
|
7
8
|
import { Fragment, useCallback } from 'react';
|
|
8
|
-
import { css } from '@emotion/react';
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
9
10
|
import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
|
|
10
11
|
import { Field, Fieldset as AKFieldset } from '@atlaskit/form';
|
|
11
12
|
import { ValidationError } from '../types';
|
|
@@ -36,7 +37,7 @@ function CheckboxGroupInner(_ref) {
|
|
|
36
37
|
onChange(_toConsumableArray(active));
|
|
37
38
|
onFieldChange();
|
|
38
39
|
}
|
|
39
|
-
return
|
|
40
|
+
return jsx(Fragment, null, jsx(AKFieldset, {
|
|
40
41
|
legend: label
|
|
41
42
|
}, options.map(function (_ref2, i) {
|
|
42
43
|
var optionLabel = _ref2.label,
|
|
@@ -45,7 +46,7 @@ function CheckboxGroupInner(_ref) {
|
|
|
45
46
|
var onOptionChange = function onOptionChange(event) {
|
|
46
47
|
_onChange(optionValue, event.target.checked);
|
|
47
48
|
};
|
|
48
|
-
return
|
|
49
|
+
return jsx(AKCheckbox, _extends({
|
|
49
50
|
key: i
|
|
50
51
|
}, restFieldProps, {
|
|
51
52
|
isRequired: false,
|
|
@@ -53,7 +54,7 @@ function CheckboxGroupInner(_ref) {
|
|
|
53
54
|
isChecked: isChecked,
|
|
54
55
|
onChange: onOptionChange
|
|
55
56
|
}));
|
|
56
|
-
})),
|
|
57
|
+
})), jsx(FieldMessages, {
|
|
57
58
|
error: error,
|
|
58
59
|
description: description
|
|
59
60
|
}));
|
|
@@ -68,14 +69,14 @@ export default function CheckboxGroup(_ref3) {
|
|
|
68
69
|
_field$isRequired = field.isRequired,
|
|
69
70
|
isRequired = _field$isRequired === void 0 ? false : _field$isRequired,
|
|
70
71
|
options = field.items;
|
|
71
|
-
var label =
|
|
72
|
+
var label = jsx(Fragment, null, labelBase, isRequired ? jsx("span", {
|
|
72
73
|
css: requiredIndicator,
|
|
73
74
|
"aria-hidden": "true"
|
|
74
75
|
}, ' ', "*") : null);
|
|
75
76
|
var _onFieldChange = useCallback(function () {
|
|
76
77
|
onFieldChange(name, true);
|
|
77
78
|
}, [name, onFieldChange]);
|
|
78
|
-
return
|
|
79
|
+
return jsx(Field, {
|
|
79
80
|
name: name,
|
|
80
81
|
isRequired: isRequired,
|
|
81
82
|
defaultValue: defaultValue,
|
|
@@ -83,7 +84,7 @@ export default function CheckboxGroup(_ref3) {
|
|
|
83
84
|
return _validate(value, isRequired);
|
|
84
85
|
}
|
|
85
86
|
}, function (props) {
|
|
86
|
-
return
|
|
87
|
+
return jsx(CheckboxGroupInner, _extends({
|
|
87
88
|
label: label,
|
|
88
89
|
description: description,
|
|
89
90
|
options: options,
|
|
@@ -3,7 +3,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
|
|
6
|
+
/** @jsx jsx */
|
|
7
|
+
import { jsx, css } from '@emotion/react';
|
|
7
8
|
import { Fragment } from 'react';
|
|
8
9
|
import { Field } from '@atlaskit/form';
|
|
9
10
|
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
@@ -335,7 +336,7 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
335
336
|
onChange(colorValue);
|
|
336
337
|
onFieldChange(name, currentColor !== colorValue);
|
|
337
338
|
};
|
|
338
|
-
return
|
|
339
|
+
return jsx(ColorPickerButton, {
|
|
339
340
|
title: title,
|
|
340
341
|
currentColor: currentColor,
|
|
341
342
|
onChange: onColorChange,
|
|
@@ -358,7 +359,7 @@ var ColorPickerField = function ColorPickerField(_ref) {
|
|
|
358
359
|
var label = field.label,
|
|
359
360
|
defaultValue = field.defaultValue,
|
|
360
361
|
isRequired = field.isRequired;
|
|
361
|
-
return
|
|
362
|
+
return jsx(Field, {
|
|
362
363
|
name: name,
|
|
363
364
|
isRequired: isRequired,
|
|
364
365
|
defaultValue: defaultValue,
|
|
@@ -368,21 +369,21 @@ var ColorPickerField = function ColorPickerField(_ref) {
|
|
|
368
369
|
}, function (_ref2) {
|
|
369
370
|
var fieldProps = _ref2.fieldProps,
|
|
370
371
|
error = _ref2.error;
|
|
371
|
-
return
|
|
372
|
+
return jsx(Fragment, null, jsx("div", {
|
|
372
373
|
css: colorPickerWrapper
|
|
373
|
-
},
|
|
374
|
+
}, jsx("label", {
|
|
374
375
|
css: colorPickerLabel
|
|
375
|
-
}, label, isRequired &&
|
|
376
|
+
}, label, isRequired && jsx("span", {
|
|
376
377
|
css: requiredIndicator,
|
|
377
378
|
"aria-hidden": "true"
|
|
378
|
-
}, "*")),
|
|
379
|
+
}, "*")), jsx(ColorPicker, {
|
|
379
380
|
name: name,
|
|
380
381
|
title: label,
|
|
381
382
|
currentColor: fieldProps.value,
|
|
382
383
|
onChange: fieldProps.onChange,
|
|
383
384
|
onFieldChange: onFieldChange,
|
|
384
385
|
featureFlags: featureFlags
|
|
385
|
-
})), error &&
|
|
386
|
+
})), error && jsx(FieldMessages, {
|
|
386
387
|
error: error,
|
|
387
388
|
description: ""
|
|
388
389
|
}));
|
|
@@ -6,8 +6,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
6
6
|
var _templateObject, _templateObject2, _templateObject3;
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
/** @jsx jsx */
|
|
9
10
|
import { Fragment, useState, useEffect, useMemo } from 'react';
|
|
10
|
-
import { css } from '@emotion/react';
|
|
11
|
+
import { css, jsx } from '@emotion/react';
|
|
11
12
|
import { injectIntl } from 'react-intl-next';
|
|
12
13
|
import { Field } from '@atlaskit/form';
|
|
13
14
|
import { RadioGroup } from '@atlaskit/radio';
|
|
@@ -31,10 +32,10 @@ var DateField = function DateField(_ref) {
|
|
|
31
32
|
onFieldChange = _ref.onFieldChange,
|
|
32
33
|
intl = _ref.intl,
|
|
33
34
|
isRequired = _ref.isRequired;
|
|
34
|
-
return
|
|
35
|
+
return jsx("div", {
|
|
35
36
|
css: horizontalFieldWrapper,
|
|
36
37
|
key: fieldName
|
|
37
|
-
},
|
|
38
|
+
}, jsx(Field, {
|
|
38
39
|
name: "".concat(scope, ".").concat(fieldName),
|
|
39
40
|
label: intl.formatMessage(messages[fieldName]),
|
|
40
41
|
defaultValue: getFromDefaultValue(parentField, fieldName),
|
|
@@ -47,13 +48,13 @@ var DateField = function DateField(_ref) {
|
|
|
47
48
|
}, function (_ref2) {
|
|
48
49
|
var fieldProps = _ref2.fieldProps,
|
|
49
50
|
error = _ref2.error;
|
|
50
|
-
return
|
|
51
|
+
return jsx(Fragment, null, jsx(DatePicker, _extends({}, fieldProps, {
|
|
51
52
|
onChange: function onChange(date) {
|
|
52
53
|
fieldProps.onChange(date);
|
|
53
54
|
onFieldChange(parentField.name, true);
|
|
54
55
|
},
|
|
55
56
|
locale: intl.locale
|
|
56
|
-
})),
|
|
57
|
+
})), jsx(FieldMessages, {
|
|
57
58
|
error: error
|
|
58
59
|
}));
|
|
59
60
|
}));
|
|
@@ -82,17 +83,17 @@ var DateRange = function DateRange(_ref3) {
|
|
|
82
83
|
// get the most up to date value after the form has been rendered
|
|
83
84
|
onFieldChange(name, true);
|
|
84
85
|
}, [currentValue, onFieldChange, name]);
|
|
85
|
-
var element =
|
|
86
|
+
var element = jsx(Fragment, null, jsx("div", {
|
|
86
87
|
css: hidden
|
|
87
|
-
},
|
|
88
|
+
}, jsx(Field, {
|
|
88
89
|
name: "".concat(name, ".type"),
|
|
89
90
|
defaultValue: 'date-range'
|
|
90
91
|
}, function (_ref4) {
|
|
91
92
|
var fieldProps = _ref4.fieldProps;
|
|
92
|
-
return
|
|
93
|
+
return jsx(TextField, _extends({}, fieldProps, {
|
|
93
94
|
type: "hidden"
|
|
94
95
|
}));
|
|
95
|
-
})),
|
|
96
|
+
})), jsx(Field, {
|
|
96
97
|
name: "".concat(name, ".value"),
|
|
97
98
|
label: field.label,
|
|
98
99
|
defaultValue: currentValue,
|
|
@@ -103,42 +104,42 @@ var DateRange = function DateRange(_ref3) {
|
|
|
103
104
|
}, function (_ref5) {
|
|
104
105
|
var fieldProps = _ref5.fieldProps,
|
|
105
106
|
error = _ref5.error;
|
|
106
|
-
return
|
|
107
|
+
return jsx(Fragment, null, jsx(RadioGroup, _extends({}, fieldProps, {
|
|
107
108
|
options: items,
|
|
108
109
|
onChange: function onChange(event) {
|
|
109
110
|
fieldProps.onChange(event.target.value);
|
|
110
111
|
setCurrentValue(event.target.value);
|
|
111
112
|
}
|
|
112
|
-
})),
|
|
113
|
+
})), jsx(FieldMessages, {
|
|
113
114
|
error: error
|
|
114
115
|
}));
|
|
115
|
-
}), currentValue !== 'custom' ?
|
|
116
|
+
}), currentValue !== 'custom' ? jsx("div", {
|
|
116
117
|
css: hidden
|
|
117
|
-
},
|
|
118
|
+
}, jsx(Field, {
|
|
118
119
|
name: "".concat(name, ".from"),
|
|
119
120
|
defaultValue: currentValue
|
|
120
121
|
}, function (_ref6) {
|
|
121
122
|
var fieldProps = _ref6.fieldProps;
|
|
122
|
-
return
|
|
123
|
+
return jsx(TextField, _extends({}, fieldProps, {
|
|
123
124
|
type: "hidden"
|
|
124
125
|
}));
|
|
125
|
-
})) :
|
|
126
|
+
})) : jsx("div", {
|
|
126
127
|
css: horizontalFields
|
|
127
|
-
},
|
|
128
|
+
}, jsx(DateField, {
|
|
128
129
|
scope: name,
|
|
129
130
|
parentField: field,
|
|
130
131
|
fieldName: "from",
|
|
131
132
|
onFieldChange: onFieldChange,
|
|
132
133
|
intl: intl,
|
|
133
134
|
isRequired: field.isRequired
|
|
134
|
-
}),
|
|
135
|
+
}), jsx(DateField, {
|
|
135
136
|
scope: name,
|
|
136
137
|
parentField: field,
|
|
137
138
|
fieldName: "to",
|
|
138
139
|
onFieldChange: onFieldChange,
|
|
139
140
|
intl: intl,
|
|
140
141
|
isRequired: field.isRequired
|
|
141
|
-
})),
|
|
142
|
+
})), jsx(FieldMessages, {
|
|
142
143
|
description: field.description
|
|
143
144
|
}));
|
|
144
145
|
return element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
+
/** @jsx jsx */
|
|
4
5
|
import React, { useState } from 'react';
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { injectIntl } from 'react-intl-next';
|
|
7
8
|
import { N40 } from '@atlaskit/theme/colors';
|
|
8
9
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
@@ -26,26 +27,26 @@ function Expand(_ref) {
|
|
|
26
27
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
28
|
expanded = _useState2[0],
|
|
28
29
|
setExpanded = _useState2[1];
|
|
29
|
-
return
|
|
30
|
+
return jsx("div", {
|
|
30
31
|
"data-testid": "expand-config-field",
|
|
31
32
|
css: expandContainer
|
|
32
|
-
},
|
|
33
|
+
}, jsx("div", {
|
|
33
34
|
css: expandControl
|
|
34
|
-
},
|
|
35
|
+
}, jsx("div", {
|
|
35
36
|
css: labelContainer
|
|
36
|
-
}, field.label),
|
|
37
|
+
}, field.label), jsx("div", {
|
|
37
38
|
css: chevronContainer
|
|
38
|
-
},
|
|
39
|
+
}, jsx(Button, {
|
|
39
40
|
onClick: function onClick() {
|
|
40
41
|
setExpanded(!expanded);
|
|
41
42
|
},
|
|
42
43
|
testId: "form-expand-toggle",
|
|
43
|
-
iconBefore: expanded ?
|
|
44
|
+
iconBefore: expanded ? jsx(ChevronDownIcon, {
|
|
44
45
|
label: intl.formatMessage(messages.collapse)
|
|
45
|
-
}) :
|
|
46
|
+
}) : jsx(ChevronRightIcon, {
|
|
46
47
|
label: intl.formatMessage(messages.expand)
|
|
47
48
|
})
|
|
48
|
-
}))),
|
|
49
|
+
}))), jsx("div", {
|
|
49
50
|
"data-testid": "expand-content-container",
|
|
50
51
|
css: expandContentContainer(!expanded)
|
|
51
52
|
}, children));
|
|
@@ -13,8 +13,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
15
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
16
|
+
/** @jsx jsx */
|
|
16
17
|
import React, { Fragment } from 'react';
|
|
17
|
-
import { css } from '@emotion/react';
|
|
18
|
+
import { css, jsx } from '@emotion/react';
|
|
18
19
|
import { injectIntl } from 'react-intl-next';
|
|
19
20
|
import SectionMessage from '@atlaskit/section-message';
|
|
20
21
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -173,7 +174,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
173
174
|
if (selectOptions.length === 0) {
|
|
174
175
|
return null;
|
|
175
176
|
}
|
|
176
|
-
return
|
|
177
|
+
return jsx(React.Fragment, null, isAdding ? jsx(Select, {
|
|
177
178
|
testId: "field-picker",
|
|
178
179
|
defaultMenuIsOpen: true,
|
|
179
180
|
autoFocus: true,
|
|
@@ -184,10 +185,10 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
184
185
|
_this.onSelectItem(option);
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
}) :
|
|
188
|
+
}) : jsx(Button, {
|
|
188
189
|
testId: "add-more",
|
|
189
190
|
appearance: "subtle",
|
|
190
|
-
iconBefore:
|
|
191
|
+
iconBefore: jsx(AddCircleIcon, {
|
|
191
192
|
size: "small",
|
|
192
193
|
label: intl.formatMessage(messages.addField)
|
|
193
194
|
}),
|
|
@@ -224,9 +225,9 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
224
225
|
currentParameters = _this$state3.currentParameters,
|
|
225
226
|
visibleFields = _this$state3.visibleFields;
|
|
226
227
|
var children = this.renderActions();
|
|
227
|
-
return
|
|
228
|
+
return jsx(Fragment, null, error && jsx(FieldsetError, {
|
|
228
229
|
message: error
|
|
229
|
-
}),
|
|
230
|
+
}), jsx("div", null, options.showTitle && jsx("h5", null, label), jsx(FormComponent, {
|
|
230
231
|
fields: selectedFields,
|
|
231
232
|
parentName: name,
|
|
232
233
|
extensionManifest: extensionManifest,
|
|
@@ -235,7 +236,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
235
236
|
onClickRemove: this.onClickRemove,
|
|
236
237
|
onFieldChange: onFieldChange,
|
|
237
238
|
firstVisibleFieldName: firstVisibleFieldName
|
|
238
|
-
}), children &&
|
|
239
|
+
}), children && jsx("div", {
|
|
239
240
|
css: actionsWrapper,
|
|
240
241
|
"data-testId": "fieldset-actions"
|
|
241
242
|
}, children)));
|
|
@@ -245,11 +246,11 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
245
246
|
}(React.Component);
|
|
246
247
|
function FieldsetError(_ref) {
|
|
247
248
|
var message = _ref.message;
|
|
248
|
-
return
|
|
249
|
+
return jsx("div", {
|
|
249
250
|
css: sectionMessageWrapper
|
|
250
|
-
},
|
|
251
|
+
}, jsx(SectionMessage, {
|
|
251
252
|
appearance: "error"
|
|
252
|
-
},
|
|
253
|
+
}, jsx("p", null, message)));
|
|
253
254
|
}
|
|
254
255
|
var sectionMessageWrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 24px;\n"])));
|
|
255
256
|
export default injectIntl(FieldsetField);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
-
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import Avatar from '@atlaskit/avatar';
|
|
5
6
|
var itemWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n small {\n margin: 0;\n display: block;\n color: currentColor;\n }\n"])));
|
|
6
7
|
var iconWrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n line-height: 1;\n"])));
|
|
@@ -16,17 +17,17 @@ export var formatOptionLabel = function formatOptionLabel(_ref, _ref2) {
|
|
|
16
17
|
icon = _ref.icon,
|
|
17
18
|
description = _ref.description;
|
|
18
19
|
var context = _ref2.context;
|
|
19
|
-
return
|
|
20
|
+
return jsx("div", {
|
|
20
21
|
css: itemWrapper
|
|
21
|
-
},
|
|
22
|
+
}, jsx("span", {
|
|
22
23
|
css: [iconWrapper, context === 'menu' && iconWrapperMenu]
|
|
23
|
-
}, typeof icon === 'string' ?
|
|
24
|
+
}, typeof icon === 'string' ? jsx(Avatar, {
|
|
24
25
|
src: icon,
|
|
25
26
|
size: getIconSize(context, description),
|
|
26
27
|
appearance: "square"
|
|
27
|
-
}) : icon),
|
|
28
|
+
}) : icon), jsx("div", {
|
|
28
29
|
style: {
|
|
29
30
|
paddingLeft: icon ? "var(--ds-space-100, 8px)" : 0
|
|
30
31
|
}
|
|
31
|
-
},
|
|
32
|
+
}, jsx("p", null, label, description && context !== 'value' && jsx("small", null, description))));
|
|
32
33
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
|
+
/** @jsx jsx */
|
|
4
5
|
import React, { useState } from 'react';
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { injectIntl } from 'react-intl-next';
|
|
7
8
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
8
9
|
var tabWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // increase specificity to make sure the tab style is overridden\n &&& [role='tabpanel'][tabindex] {\n padding: 0;\n }\n\n &&& [role='tablist']::before {\n left: 0;\n right: 0;\n }\n"])));
|
|
@@ -24,22 +25,22 @@ var TabGroupImpl = function TabGroupImpl(props) {
|
|
|
24
25
|
var onChange = React.useCallback(function (index) {
|
|
25
26
|
setActiveTab(index);
|
|
26
27
|
}, [setActiveTab]);
|
|
27
|
-
return
|
|
28
|
+
return jsx("div", {
|
|
28
29
|
css: tabWrapper
|
|
29
|
-
},
|
|
30
|
+
}, jsx(Tabs, {
|
|
30
31
|
id: "configPanelTabs-".concat(field.name),
|
|
31
32
|
onChange: onChange,
|
|
32
33
|
selected: activeTab
|
|
33
|
-
},
|
|
34
|
+
}, jsx(TabList, null, fields.map(function (_ref) {
|
|
34
35
|
var name = _ref.name,
|
|
35
36
|
label = _ref.label;
|
|
36
|
-
return
|
|
37
|
+
return jsx(Tab, {
|
|
37
38
|
key: "tab-".concat(name)
|
|
38
39
|
}, label);
|
|
39
40
|
})), fields.map(function (field) {
|
|
40
|
-
return
|
|
41
|
+
return jsx(TabPanel, {
|
|
41
42
|
key: "panel-".concat(field.name)
|
|
42
|
-
},
|
|
43
|
+
}, jsx("div", {
|
|
43
44
|
css: panelWrapper
|
|
44
45
|
}, renderPanel(field)));
|
|
45
46
|
})));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import { Fragment } from 'react';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
6
7
|
import Loadable from 'react-loadable';
|
|
7
8
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -35,35 +36,35 @@ var Header = function Header(_ref) {
|
|
|
35
36
|
return null;
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
|
-
return
|
|
39
|
+
return jsx(Fragment, null, jsx("div", {
|
|
39
40
|
css: item
|
|
40
|
-
},
|
|
41
|
+
}, jsx("div", {
|
|
41
42
|
css: itemIcon
|
|
42
|
-
},
|
|
43
|
+
}, jsx(ResolvedIcon, {
|
|
43
44
|
label: title
|
|
44
|
-
})),
|
|
45
|
+
})), jsx("div", {
|
|
45
46
|
css: itemBody
|
|
46
|
-
}, summary ?
|
|
47
|
+
}, summary ? jsx("div", {
|
|
47
48
|
css: itemText
|
|
48
|
-
},
|
|
49
|
+
}, jsx("div", {
|
|
49
50
|
className: "item-title",
|
|
50
51
|
id: "context-panel-title"
|
|
51
|
-
}, title),
|
|
52
|
+
}, title), jsx("div", {
|
|
52
53
|
className: "item-summary"
|
|
53
|
-
}, summary)) :
|
|
54
|
+
}, summary)) : jsx("div", {
|
|
54
55
|
css: centeredItemTitle,
|
|
55
56
|
id: "context-panel-title"
|
|
56
|
-
}, title)),
|
|
57
|
+
}, title)), jsx("div", {
|
|
57
58
|
css: closeButtonWrapper
|
|
58
|
-
},
|
|
59
|
+
}, jsx(Button, {
|
|
59
60
|
appearance: "subtle",
|
|
60
|
-
iconBefore:
|
|
61
|
+
iconBefore: jsx(CrossIcon, {
|
|
61
62
|
label: intl.formatMessage(messages.close)
|
|
62
63
|
}),
|
|
63
64
|
onClick: onClose
|
|
64
|
-
}))), (description || documentationUrl) &&
|
|
65
|
+
}))), (description || documentationUrl) && jsx("p", {
|
|
65
66
|
css: descriptionStyle
|
|
66
|
-
}, description &&
|
|
67
|
+
}, description && jsx(Fragment, null, description.replace(/([^.])$/, '$1.'), " "), documentationUrl && jsx("a", {
|
|
67
68
|
target: "_blank",
|
|
68
69
|
rel: "noopener noreferrer",
|
|
69
70
|
href: documentationUrl
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import Spinner from '@atlaskit/spinner';
|
|
5
6
|
var spinnerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n margin-top: ", ";\n"])), "var(--ds-space-800, 64px)");
|
|
6
7
|
var LoadingState = function LoadingState() {
|
|
7
|
-
return
|
|
8
|
+
return jsx("div", {
|
|
8
9
|
css: spinnerWrapper,
|
|
9
10
|
"data-testid": "ConfigPanelLoading"
|
|
10
|
-
},
|
|
11
|
+
}, jsx(Spinner, {
|
|
11
12
|
size: "small"
|
|
12
13
|
}));
|
|
13
14
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import React from 'react';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
6
7
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
7
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -22,17 +23,17 @@ var RemovableField = function RemovableField(_ref) {
|
|
|
22
23
|
return onClickRemove && onClickRemove(name);
|
|
23
24
|
}, [name, onClickRemove]);
|
|
24
25
|
var hasMarginBottom = ((_children$props$field = children.props.field) === null || _children$props$field === void 0 ? void 0 : _children$props$field.type) !== 'expand';
|
|
25
|
-
return
|
|
26
|
+
return jsx("div", {
|
|
26
27
|
css: [removableFieldWrapper, hasMarginBottom && wrapperWithMarginBottom],
|
|
27
28
|
className: className
|
|
28
|
-
}, children, canRemoveField &&
|
|
29
|
+
}, children, canRemoveField && jsx("div", {
|
|
29
30
|
css: removeButtonWrapper,
|
|
30
31
|
"data-testid": "remove-field-".concat(name),
|
|
31
32
|
onClick: onClickCallback
|
|
32
|
-
},
|
|
33
|
+
}, jsx(Tooltip, {
|
|
33
34
|
content: intl.formatMessage(messages.removeField),
|
|
34
35
|
position: "left"
|
|
35
|
-
},
|
|
36
|
+
}, jsx(CrossCircleIcon, {
|
|
36
37
|
size: "small",
|
|
37
38
|
label: intl.formatMessage(messages.removeField)
|
|
38
39
|
}))));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import React, { useMemo } from 'react';
|
|
4
|
-
import { css, useTheme } from '@emotion/react';
|
|
5
|
+
import { jsx, css, useTheme } from '@emotion/react';
|
|
5
6
|
import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles, resizerStyles, gridStyles, smartCardStyles, embedCardStyles, codeBlockInListSafariFix, unsupportedStyles } from '@atlaskit/editor-common/styles';
|
|
6
7
|
import { akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorDeleteBackgroundWithOpacity, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles, SelectionStyle, akEditorLineHeight, akEditorSelectedBorderColor } from '@atlaskit/editor-shared-styles';
|
|
7
8
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
@@ -52,7 +53,7 @@ export var createEditorContentStyle = function createEditorContentStyle(styles)
|
|
|
52
53
|
featureFlags: featureFlags
|
|
53
54
|
});
|
|
54
55
|
}, [theme, featureFlags]);
|
|
55
|
-
return
|
|
56
|
+
return jsx("div", {
|
|
56
57
|
className: className,
|
|
57
58
|
ref: ref,
|
|
58
59
|
css: [memoizedStyle, styles]
|