@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
|
@@ -9,9 +9,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
9
9
|
var _templateObject;
|
|
10
10
|
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); }; }
|
|
11
11
|
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; } }
|
|
12
|
-
/** @jsx jsx */
|
|
13
12
|
import React from 'react';
|
|
14
|
-
import { css
|
|
13
|
+
import { css } from '@emotion/react';
|
|
15
14
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
16
15
|
import { whichTransitionEvent } from '../../utils';
|
|
17
16
|
import { ErrorBoundary } from '../ErrorBoundary';
|
|
@@ -107,14 +106,14 @@ var PluginSlot = /*#__PURE__*/function (_React$Component) {
|
|
|
107
106
|
if (!items && !pluginHooks || !editorView) {
|
|
108
107
|
return null;
|
|
109
108
|
}
|
|
110
|
-
return
|
|
109
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
111
110
|
component: ACTION_SUBJECT.PLUGIN_SLOT,
|
|
112
111
|
fallbackComponent: null
|
|
113
|
-
},
|
|
112
|
+
}, /*#__PURE__*/React.createElement(MountPluginHooks, {
|
|
114
113
|
editorView: editorView,
|
|
115
114
|
pluginHooks: pluginHooks,
|
|
116
115
|
containerElement: containerElement
|
|
117
|
-
}),
|
|
116
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
118
117
|
css: pluginsComponentsWrapper
|
|
119
118
|
}, items === null || items === void 0 ? void 0 : items.map(function (component, key) {
|
|
120
119
|
var props = {
|
|
@@ -7,9 +7,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
7
7
|
var _templateObject;
|
|
8
8
|
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); }; }
|
|
9
9
|
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; } }
|
|
10
|
-
/** @jsx jsx */
|
|
11
10
|
import React from 'react';
|
|
12
|
-
import { css
|
|
11
|
+
import { css } from '@emotion/react';
|
|
13
12
|
import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
14
13
|
var toolbarComponentsWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n @media (max-width: ", "px) {\n justify-content: space-between;\n }\n"])), akEditorMobileMaxWidth);
|
|
15
14
|
export var ToolbarInner = /*#__PURE__*/function (_React$Component) {
|
|
@@ -45,7 +44,7 @@ export var ToolbarInner = /*#__PURE__*/function (_React$Component) {
|
|
|
45
44
|
if (!items || !items.length) {
|
|
46
45
|
return null;
|
|
47
46
|
}
|
|
48
|
-
return
|
|
47
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
48
|
css: toolbarComponentsWrapper
|
|
50
49
|
}, items.map(function (component, key) {
|
|
51
50
|
var props = {
|
|
@@ -2,9 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _templateObject;
|
|
5
|
-
/** @jsx jsx */
|
|
6
5
|
import React, { useMemo } from 'react';
|
|
7
|
-
import { css
|
|
6
|
+
import { css } from '@emotion/react';
|
|
8
7
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
9
8
|
import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
10
9
|
import { useElementWidth } from './hooks';
|
|
@@ -29,13 +28,13 @@ export var ToolbarWithSizeDetector = function ToolbarWithSizeDetector(props) {
|
|
|
29
28
|
var minWidth = "min-width: ".concat(props.hasMinWidth ? toolbarMinWidth : '254', "px");
|
|
30
29
|
return [toolbar, minWidth];
|
|
31
30
|
}, [props.appearance, props.hasMinWidth, props.twoLineEditorToolbar]);
|
|
32
|
-
return
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
32
|
css: toolbarStyle
|
|
34
|
-
},
|
|
33
|
+
}, /*#__PURE__*/React.createElement(WidthObserver, {
|
|
35
34
|
setWidth: setWidth
|
|
36
|
-
}), props.editorView && toolbarSize ?
|
|
35
|
+
}), props.editorView && toolbarSize ? /*#__PURE__*/React.createElement(Toolbar, _extends({}, props, {
|
|
37
36
|
toolbarSize: toolbarSize
|
|
38
|
-
})) :
|
|
37
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
|
39
38
|
ref: ref
|
|
40
39
|
}));
|
|
41
40
|
};
|
|
@@ -12,8 +12,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
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; }
|
|
13
13
|
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); }; }
|
|
14
14
|
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; } }
|
|
15
|
-
/** @jsx jsx */
|
|
16
|
-
import { jsx } from '@emotion/react';
|
|
17
15
|
import ReactDOM from 'react-dom';
|
|
18
16
|
import { PureComponent } from 'react';
|
|
19
17
|
import PropTypes from 'prop-types';
|
|
@@ -152,20 +150,20 @@ var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
150
|
popupsMountPoint = _this$props.popupsMountPoint,
|
|
153
151
|
popupsBoundariesElement = _this$props.popupsBoundariesElement,
|
|
154
152
|
popupsScrollableElement = _this$props.popupsScrollableElement;
|
|
155
|
-
var iconBefore = this.state.jiraIssueCollectorScriptLoading ?
|
|
153
|
+
var iconBefore = this.state.jiraIssueCollectorScriptLoading ? /*#__PURE__*/React.createElement(Spinner, null) : undefined;
|
|
156
154
|
|
|
157
155
|
// JIRA issue collector script is using jQuery internally
|
|
158
|
-
return this.hasJquery() ?
|
|
156
|
+
return this.hasJquery() ? /*#__PURE__*/React.createElement("div", {
|
|
159
157
|
css: wrapper
|
|
160
|
-
},
|
|
158
|
+
}, /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
161
159
|
ref: this.handleRef,
|
|
162
160
|
iconBefore: iconBefore,
|
|
163
161
|
onClick: this.collectFeedback,
|
|
164
162
|
selected: false,
|
|
165
163
|
spacing: "compact"
|
|
166
|
-
},
|
|
164
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
167
165
|
css: buttonContent
|
|
168
|
-
}, "Feedback")), this.state.showOptOutOption &&
|
|
166
|
+
}, "Feedback")), this.state.showOptOutOption && /*#__PURE__*/React.createElement(PopupWithOutsideListeners, {
|
|
169
167
|
target: this.state.target,
|
|
170
168
|
mountTo: popupsMountPoint,
|
|
171
169
|
boundariesElement: popupsBoundariesElement,
|
|
@@ -174,19 +172,19 @@ var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
|
|
|
174
172
|
fitWidth: POPUP_WIDTH,
|
|
175
173
|
handleClickOutside: this.toggleShowOptOutOption,
|
|
176
174
|
handleEscapeKeydown: this.toggleShowOptOutOption
|
|
177
|
-
},
|
|
175
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
178
176
|
css: confirmationPopup
|
|
179
|
-
},
|
|
177
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
180
178
|
css: confirmationHeader
|
|
181
|
-
},
|
|
179
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
182
180
|
css: confirmationImg,
|
|
183
181
|
src: EDITOR_IMAGE_URL
|
|
184
|
-
})),
|
|
182
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
185
183
|
css: confirmationText
|
|
186
|
-
},
|
|
184
|
+
}, /*#__PURE__*/React.createElement("div", null, "We are rolling out a new editing experience across Atlassian products. Help us improve by providing feedback."), /*#__PURE__*/React.createElement("div", null, "You can opt-out for now by turning off the \"Atlassian Editor\" feature on the Labs page in Bitbucket settings."), /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
|
|
187
185
|
appearance: "primary",
|
|
188
186
|
onClick: this.openFeedbackPopup
|
|
189
|
-
}, "Give feedback"),
|
|
187
|
+
}, "Give feedback"), /*#__PURE__*/React.createElement(Button, {
|
|
190
188
|
appearance: "default",
|
|
191
189
|
onClick: this.openLearnMorePage
|
|
192
190
|
}, "Learn more")))))) : null;
|
|
@@ -199,7 +197,7 @@ _defineProperty(ToolbarFeedbackInternal, "contextTypes", {
|
|
|
199
197
|
});
|
|
200
198
|
export default function ToolbarFeedback(props) {
|
|
201
199
|
var api = usePresetContext();
|
|
202
|
-
return
|
|
200
|
+
return /*#__PURE__*/React.createElement(ToolbarFeedbackInternal, _extends({
|
|
203
201
|
api: api
|
|
204
202
|
}, props));
|
|
205
203
|
}
|
|
@@ -9,9 +9,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
10
10
|
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); }; }
|
|
11
11
|
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; } }
|
|
12
|
-
/** @jsx jsx */
|
|
13
12
|
import React from 'react';
|
|
14
|
-
import { css,
|
|
13
|
+
import { css, keyframes } from '@emotion/react';
|
|
15
14
|
import { R100 } from '@atlaskit/theme/colors';
|
|
16
15
|
var pulseBackground = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 50% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(R100, ")"));
|
|
17
16
|
var pulseBackgroundReverse = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n background-color: ", ";\n }\n 50% {\n background-color: auto;\n }\n 100% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(R100, ")"), "var(--ds-blanket-danger, ".concat(R100, ")"));
|
|
@@ -37,7 +36,7 @@ var WithFlash = /*#__PURE__*/function (_React$Component) {
|
|
|
37
36
|
animate = _this$props.animate,
|
|
38
37
|
children = _this$props.children;
|
|
39
38
|
this.toggle = animate && !this.toggle;
|
|
40
|
-
return
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
41
40
|
css: animate ? flashWrapperAnimated : flashWrapper,
|
|
42
41
|
className: this.toggle ? '-flash' : ''
|
|
43
42
|
}, children);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "189.4.
|
|
2
|
+
export var version = "189.4.19";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { BooleanField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import { OnFieldChange } from '../types';
|
|
2
|
+
import type { BooleanField } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { OnFieldChange } from '../types';
|
|
4
4
|
export default function Boolean({ name, field, onFieldChange, }: {
|
|
5
5
|
name: string;
|
|
6
6
|
field: BooleanField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FieldComponentProps, FormContentProps } from './types';
|
|
2
|
+
import type { FieldComponentProps, FormContentProps } from './types';
|
|
3
3
|
export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): JSX.Element;
|
|
4
4
|
export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, }: FormContentProps): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GroupBase } from 'react-select';
|
|
1
2
|
import type { Option, FieldDefinition, Parameters } from '@atlaskit/editor-common/extensions';
|
|
2
3
|
import { ValidationError } from './types';
|
|
3
4
|
export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
|
|
@@ -6,7 +7,7 @@ type ValidationProps = {
|
|
|
6
7
|
isMultiple?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare const validateRequired: <T>({ isRequired, isMultiple }: ValidationProps, value: T) => ValidationError | undefined;
|
|
9
|
-
export declare const getOptionFromValue: (options: Option[], value: string | string[] | undefined) => Option | Option[] | undefined;
|
|
10
|
+
export declare const getOptionFromValue: (options: Option[] | GroupBase<Option>[], value: string | string[] | undefined) => Option | Option[] | undefined;
|
|
10
11
|
export declare const getSafeParentedName: (name: string, parentName?: string) => string;
|
|
11
12
|
export declare const isDuplicateField: (key: string) => boolean;
|
|
12
13
|
export declare const getNameFromDuplicateField: (key: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { BooleanField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import { OnFieldChange } from '../types';
|
|
2
|
+
import type { BooleanField } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { OnFieldChange } from '../types';
|
|
4
4
|
export default function Boolean({ name, field, onFieldChange, }: {
|
|
5
5
|
name: string;
|
|
6
6
|
field: BooleanField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FieldComponentProps, FormContentProps } from './types';
|
|
2
|
+
import type { FieldComponentProps, FormContentProps } from './types';
|
|
3
3
|
export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): JSX.Element;
|
|
4
4
|
export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, }: FormContentProps): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GroupBase } from 'react-select';
|
|
1
2
|
import type { Option, FieldDefinition, Parameters } from '@atlaskit/editor-common/extensions';
|
|
2
3
|
import { ValidationError } from './types';
|
|
3
4
|
export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
|
|
@@ -6,7 +7,7 @@ type ValidationProps = {
|
|
|
6
7
|
isMultiple?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare const validateRequired: <T>({ isRequired, isMultiple }: ValidationProps, value: T) => ValidationError | undefined;
|
|
9
|
-
export declare const getOptionFromValue: (options: Option[], value: string | string[] | undefined) => Option | Option[] | undefined;
|
|
10
|
+
export declare const getOptionFromValue: (options: Option[] | GroupBase<Option>[], value: string | string[] | undefined) => Option | Option[] | undefined;
|
|
10
11
|
export declare const getSafeParentedName: (name: string, parentName?: string) => string;
|
|
11
12
|
export declare const isDuplicateField: (key: string) => boolean;
|
|
12
13
|
export declare const getNameFromDuplicateField: (key: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "189.4.
|
|
3
|
+
"version": "189.4.19",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
43
|
-
"@atlaskit/adf-schema": "^
|
|
43
|
+
"@atlaskit/adf-schema": "^35.0.0",
|
|
44
44
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
45
45
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
46
46
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@atlaskit/editor-plugin-indentation": "^0.2.0",
|
|
89
89
|
"@atlaskit/editor-plugin-insert-block": "^0.2.0",
|
|
90
90
|
"@atlaskit/editor-plugin-layout": "^0.1.0",
|
|
91
|
-
"@atlaskit/editor-plugin-list": "^1.
|
|
91
|
+
"@atlaskit/editor-plugin-list": "^1.4.0",
|
|
92
92
|
"@atlaskit/editor-plugin-max-content-size": "^0.1.0",
|
|
93
93
|
"@atlaskit/editor-plugin-media": "^0.4.0",
|
|
94
94
|
"@atlaskit/editor-plugin-mentions": "^0.1.0",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"@af/visual-regression": "*",
|
|
171
171
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
172
172
|
"@atlaskit/code": "^15.1.0",
|
|
173
|
-
"@atlaskit/collab-provider": "9.18.
|
|
173
|
+
"@atlaskit/collab-provider": "9.18.2",
|
|
174
174
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
175
175
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
176
176
|
"@atlaskit/editor-palette": "1.5.2",
|
|
@@ -191,10 +191,10 @@
|
|
|
191
191
|
"@atlaskit/webdriver-runner": "*",
|
|
192
192
|
"@atlassian/adf-schema-json": "^1.0.7",
|
|
193
193
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
194
|
-
"@atlassian/editor-extension-link-create": "^0.
|
|
194
|
+
"@atlassian/editor-extension-link-create": "^1.0.0",
|
|
195
195
|
"@atlassian/feature-flags-test-utils": "^0.1.1",
|
|
196
196
|
"@atlassian/link-picker-plugins": "^24.0.0",
|
|
197
|
-
"@atlassian/search-provider": "2.4.
|
|
197
|
+
"@atlassian/search-provider": "2.4.9",
|
|
198
198
|
"@atlassian/ufo": "^0.2.0",
|
|
199
199
|
"@emotion/jest": "^11.8.0",
|
|
200
200
|
"@storybook/addon-knobs": "^5.3.18",
|
|
@@ -345,6 +345,10 @@
|
|
|
345
345
|
"platform.editor.table.analytics-plugin-moved-event": {
|
|
346
346
|
"type": "boolean",
|
|
347
347
|
"referenceOnly": "true"
|
|
348
|
+
},
|
|
349
|
+
"platform.editor.ordered-list-auto-join-improvements_mrlv5": {
|
|
350
|
+
"type": "boolean",
|
|
351
|
+
"referenceOnly": "true"
|
|
348
352
|
}
|
|
349
353
|
}
|
|
350
354
|
}
|