@atlaskit/editor-plugin-status 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/statusPlugin.js +6 -4
- package/dist/cjs/ui/statusPicker.js +15 -18
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/statusPlugin.js +6 -4
- package/dist/esm/index.js +3 -0
- package/dist/esm/statusPlugin.js +6 -4
- package/dist/esm/ui/statusPicker.js +15 -18
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 2.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#178163](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178163)
|
|
8
|
+
[`b838eba8d205f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b838eba8d205f) -
|
|
9
|
+
ED-26030-hide-comment-toolbar-when-user-switch-back-to-edit-mode
|
|
10
|
+
|
|
3
11
|
## 2.6.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/statusPlugin.js
CHANGED
|
@@ -85,9 +85,11 @@ var statusPlugin = exports.statusPlugin = function statusPlugin(_ref) {
|
|
|
85
85
|
}];
|
|
86
86
|
},
|
|
87
87
|
floatingToolbar: function floatingToolbar(state, intl) {
|
|
88
|
-
var
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
var isViewMode = function isViewMode() {
|
|
89
|
+
var _api$editorViewMode;
|
|
90
|
+
return (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 || (_api$editorViewMode = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.mode) === 'view';
|
|
91
|
+
};
|
|
92
|
+
if (!(0, _platformFeatureFlags.fg)('platform_inline_node_as_valid_annotation_selection') || !isViewMode()) {
|
|
91
93
|
return undefined;
|
|
92
94
|
}
|
|
93
95
|
return {
|
|
@@ -100,7 +102,7 @@ var statusPlugin = exports.statusPlugin = function statusPlugin(_ref) {
|
|
|
100
102
|
var hasActiveMark = node.marks.some(function (mark) {
|
|
101
103
|
return mark.type.name === 'annotation' && (annotationState === null || annotationState === void 0 ? void 0 : annotationState.annotations[mark.attrs.id]) === false;
|
|
102
104
|
});
|
|
103
|
-
var showAnnotation = annotationState && isViewMode && annotationState.isVisible && !annotationState.bookmark && !annotationState.mouseData.isSelecting && !hasActiveMark;
|
|
105
|
+
var showAnnotation = annotationState && isViewMode() && annotationState.isVisible && !annotationState.bookmark && !annotationState.mouseData.isSelecting && !hasActiveMark;
|
|
104
106
|
var onCommentClick = function onCommentClick(stateFromClickEvent, dispatch) {
|
|
105
107
|
var _api$analytics4;
|
|
106
108
|
if (!(api !== null && api !== void 0 && api.annotation)) {
|
|
@@ -7,10 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = exports.closingMethods = exports.StatusPickerWithoutAnalytcs = exports.InputMethod = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
14
|
var _react = _interopRequireDefault(require("react"));
|
|
16
15
|
var _react2 = require("@emotion/react");
|
|
@@ -24,7 +23,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
24
23
|
var _constants = require("@atlaskit/theme/constants");
|
|
25
24
|
var _actions = require("../pm-plugins/actions");
|
|
26
25
|
var _analytics = require("./analytics");
|
|
27
|
-
function
|
|
26
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
28
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
29
28
|
* @jsxRuntime classic
|
|
30
29
|
* @jsx jsx
|
|
@@ -59,13 +58,11 @@ var pickerContainerStyles = (0, _react2.css)({
|
|
|
59
58
|
|
|
60
59
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
61
60
|
var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component) {
|
|
62
|
-
(0, _inherits2.default)(StatusPickerWithoutAnalytcs, _React$Component);
|
|
63
|
-
var _super = _createSuper(StatusPickerWithoutAnalytcs);
|
|
64
61
|
function StatusPickerWithoutAnalytcs(props) {
|
|
65
62
|
var _this;
|
|
66
63
|
(0, _classCallCheck2.default)(this, StatusPickerWithoutAnalytcs);
|
|
67
|
-
_this =
|
|
68
|
-
(0, _defineProperty2.default)(
|
|
64
|
+
_this = _callSuper(this, StatusPickerWithoutAnalytcs, [props]);
|
|
65
|
+
(0, _defineProperty2.default)(_this, "handleClickOutside", function (event) {
|
|
69
66
|
event.preventDefault();
|
|
70
67
|
_this.inputMethod = InputMethod.blur;
|
|
71
68
|
var selectedText = window.getSelection();
|
|
@@ -73,12 +70,12 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
73
70
|
_this.props.closeStatusPicker();
|
|
74
71
|
}
|
|
75
72
|
});
|
|
76
|
-
(0, _defineProperty2.default)(
|
|
73
|
+
(0, _defineProperty2.default)(_this, "handleEscapeKeydown", function (event) {
|
|
77
74
|
event.preventDefault();
|
|
78
75
|
_this.inputMethod = InputMethod.escKey;
|
|
79
76
|
_this.props.onEnter(_this.state);
|
|
80
77
|
});
|
|
81
|
-
(0, _defineProperty2.default)(
|
|
78
|
+
(0, _defineProperty2.default)(_this, "handleTabPress", function (event) {
|
|
82
79
|
var colorButtons = event.currentTarget.querySelectorAll('button');
|
|
83
80
|
var inputField = event.currentTarget.querySelector('input');
|
|
84
81
|
var isInputFocussed = document.activeElement === inputField;
|
|
@@ -107,7 +104,7 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
107
104
|
}
|
|
108
105
|
}
|
|
109
106
|
});
|
|
110
|
-
(0, _defineProperty2.default)(
|
|
107
|
+
(0, _defineProperty2.default)(_this, "handleArrow", function (event, closingMethod) {
|
|
111
108
|
var _document2;
|
|
112
109
|
if (((_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.activeElement) === _this.popupBodyWrapper.current) {
|
|
113
110
|
var _this$popupBodyWrappe;
|
|
@@ -118,7 +115,7 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
118
115
|
});
|
|
119
116
|
}
|
|
120
117
|
});
|
|
121
|
-
(0, _defineProperty2.default)(
|
|
118
|
+
(0, _defineProperty2.default)(_this, "onKeyDown", function (event) {
|
|
122
119
|
var isTabPressed = event.key === 'Tab';
|
|
123
120
|
if (isTabPressed) {
|
|
124
121
|
return _this.handleTabPress(event);
|
|
@@ -127,7 +124,7 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
127
124
|
return _this.handleArrow(event, closingMethods[event.key]);
|
|
128
125
|
}
|
|
129
126
|
});
|
|
130
|
-
(0, _defineProperty2.default)(
|
|
127
|
+
(0, _defineProperty2.default)(_this, "onColorHover", function (color) {
|
|
131
128
|
_this.createStatusAnalyticsAndFireFunc({
|
|
132
129
|
action: 'hovered',
|
|
133
130
|
actionSubject: 'statusColorPicker',
|
|
@@ -138,7 +135,7 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
138
135
|
}
|
|
139
136
|
});
|
|
140
137
|
});
|
|
141
|
-
(0, _defineProperty2.default)(
|
|
138
|
+
(0, _defineProperty2.default)(_this, "onColorClick", function (color) {
|
|
142
139
|
var _this$state = _this.state,
|
|
143
140
|
text = _this$state.text,
|
|
144
141
|
localId = _this$state.localId;
|
|
@@ -165,7 +162,7 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
165
162
|
});
|
|
166
163
|
}
|
|
167
164
|
});
|
|
168
|
-
(0, _defineProperty2.default)(
|
|
165
|
+
(0, _defineProperty2.default)(_this, "onTextChanged", function (text) {
|
|
169
166
|
var _this$state2 = _this.state,
|
|
170
167
|
color = _this$state2.color,
|
|
171
168
|
localId = _this$state2.localId;
|
|
@@ -178,14 +175,14 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
178
175
|
localId: localId
|
|
179
176
|
}, !!_this.props.isNew);
|
|
180
177
|
});
|
|
181
|
-
(0, _defineProperty2.default)(
|
|
178
|
+
(0, _defineProperty2.default)(_this, "onEnter", function () {
|
|
182
179
|
_this.inputMethod = InputMethod.enterKey;
|
|
183
180
|
_this.props.onEnter(_this.state);
|
|
184
181
|
});
|
|
185
182
|
// cancel bubbling to fix clickOutside logic:
|
|
186
183
|
// popup re-renders its content before the click event bubbles up to the document
|
|
187
184
|
// therefore click target element would be different from the popup content
|
|
188
|
-
(0, _defineProperty2.default)(
|
|
185
|
+
(0, _defineProperty2.default)(_this, "handlePopupClick", function (event) {
|
|
189
186
|
return event.nativeEvent.stopImmediatePropagation();
|
|
190
187
|
});
|
|
191
188
|
_this.state = _this.extractStateFromProps(props);
|
|
@@ -193,7 +190,8 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
193
190
|
_this.popupBodyWrapper = /*#__PURE__*/_react.default.createRef();
|
|
194
191
|
return _this;
|
|
195
192
|
}
|
|
196
|
-
(0,
|
|
193
|
+
(0, _inherits2.default)(StatusPickerWithoutAnalytcs, _React$Component);
|
|
194
|
+
return (0, _createClass2.default)(StatusPickerWithoutAnalytcs, [{
|
|
197
195
|
key: "fireStatusPopupOpenedAnalytics",
|
|
198
196
|
value: function fireStatusPopupOpenedAnalytics(state) {
|
|
199
197
|
var color = state.color,
|
|
@@ -360,6 +358,5 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
360
358
|
})));
|
|
361
359
|
}
|
|
362
360
|
}]);
|
|
363
|
-
return StatusPickerWithoutAnalytcs;
|
|
364
361
|
}(_react.default.Component);
|
|
365
362
|
var _default = exports.default = (0, _analyticsNext.withAnalyticsEvents)()(StatusPickerWithoutAnalytcs);
|
package/dist/es2019/index.js
CHANGED
|
@@ -76,9 +76,11 @@ export const statusPlugin = ({
|
|
|
76
76
|
}];
|
|
77
77
|
},
|
|
78
78
|
floatingToolbar(state, intl) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
const isViewMode = () => {
|
|
80
|
+
var _api$editorViewMode, _api$editorViewMode$s;
|
|
81
|
+
return (api === null || api === void 0 ? void 0 : (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : (_api$editorViewMode$s = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode$s === void 0 ? void 0 : _api$editorViewMode$s.mode) === 'view';
|
|
82
|
+
};
|
|
83
|
+
if (!fg('platform_inline_node_as_valid_annotation_selection') || !isViewMode()) {
|
|
82
84
|
return undefined;
|
|
83
85
|
}
|
|
84
86
|
return {
|
|
@@ -89,7 +91,7 @@ export const statusPlugin = ({
|
|
|
89
91
|
var _api$annotation;
|
|
90
92
|
const annotationState = api === null || api === void 0 ? void 0 : (_api$annotation = api.annotation) === null || _api$annotation === void 0 ? void 0 : _api$annotation.sharedState.currentState();
|
|
91
93
|
const hasActiveMark = node.marks.some(mark => mark.type.name === 'annotation' && (annotationState === null || annotationState === void 0 ? void 0 : annotationState.annotations[mark.attrs.id]) === false);
|
|
92
|
-
const showAnnotation = annotationState && isViewMode && annotationState.isVisible && !annotationState.bookmark && !annotationState.mouseData.isSelecting && !hasActiveMark;
|
|
94
|
+
const showAnnotation = annotationState && isViewMode() && annotationState.isVisible && !annotationState.bookmark && !annotationState.mouseData.isSelecting && !hasActiveMark;
|
|
93
95
|
const onCommentClick = (stateFromClickEvent, dispatch) => {
|
|
94
96
|
var _api$analytics4, _api$analytics4$actio;
|
|
95
97
|
if (!(api !== null && api !== void 0 && api.annotation)) {
|
package/dist/esm/index.js
CHANGED
package/dist/esm/statusPlugin.js
CHANGED
|
@@ -78,9 +78,11 @@ export var statusPlugin = function statusPlugin(_ref) {
|
|
|
78
78
|
}];
|
|
79
79
|
},
|
|
80
80
|
floatingToolbar: function floatingToolbar(state, intl) {
|
|
81
|
-
var
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
var isViewMode = function isViewMode() {
|
|
82
|
+
var _api$editorViewMode;
|
|
83
|
+
return (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 || (_api$editorViewMode = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.mode) === 'view';
|
|
84
|
+
};
|
|
85
|
+
if (!fg('platform_inline_node_as_valid_annotation_selection') || !isViewMode()) {
|
|
84
86
|
return undefined;
|
|
85
87
|
}
|
|
86
88
|
return {
|
|
@@ -93,7 +95,7 @@ export var statusPlugin = function statusPlugin(_ref) {
|
|
|
93
95
|
var hasActiveMark = node.marks.some(function (mark) {
|
|
94
96
|
return mark.type.name === 'annotation' && (annotationState === null || annotationState === void 0 ? void 0 : annotationState.annotations[mark.attrs.id]) === false;
|
|
95
97
|
});
|
|
96
|
-
var showAnnotation = annotationState && isViewMode && annotationState.isVisible && !annotationState.bookmark && !annotationState.mouseData.isSelecting && !hasActiveMark;
|
|
98
|
+
var showAnnotation = annotationState && isViewMode() && annotationState.isVisible && !annotationState.bookmark && !annotationState.mouseData.isSelecting && !hasActiveMark;
|
|
97
99
|
var onCommentClick = function onCommentClick(stateFromClickEvent, dispatch) {
|
|
98
100
|
var _api$analytics4;
|
|
99
101
|
if (!(api !== null && api !== void 0 && api.annotation)) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
/**
|
|
11
10
|
* @jsxRuntime classic
|
|
@@ -56,13 +55,11 @@ var pickerContainerStyles = css({
|
|
|
56
55
|
|
|
57
56
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
58
57
|
export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component) {
|
|
59
|
-
_inherits(StatusPickerWithoutAnalytcs, _React$Component);
|
|
60
|
-
var _super = _createSuper(StatusPickerWithoutAnalytcs);
|
|
61
58
|
function StatusPickerWithoutAnalytcs(props) {
|
|
62
59
|
var _this;
|
|
63
60
|
_classCallCheck(this, StatusPickerWithoutAnalytcs);
|
|
64
|
-
_this =
|
|
65
|
-
_defineProperty(
|
|
61
|
+
_this = _callSuper(this, StatusPickerWithoutAnalytcs, [props]);
|
|
62
|
+
_defineProperty(_this, "handleClickOutside", function (event) {
|
|
66
63
|
event.preventDefault();
|
|
67
64
|
_this.inputMethod = InputMethod.blur;
|
|
68
65
|
var selectedText = window.getSelection();
|
|
@@ -70,12 +67,12 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
70
67
|
_this.props.closeStatusPicker();
|
|
71
68
|
}
|
|
72
69
|
});
|
|
73
|
-
_defineProperty(
|
|
70
|
+
_defineProperty(_this, "handleEscapeKeydown", function (event) {
|
|
74
71
|
event.preventDefault();
|
|
75
72
|
_this.inputMethod = InputMethod.escKey;
|
|
76
73
|
_this.props.onEnter(_this.state);
|
|
77
74
|
});
|
|
78
|
-
_defineProperty(
|
|
75
|
+
_defineProperty(_this, "handleTabPress", function (event) {
|
|
79
76
|
var colorButtons = event.currentTarget.querySelectorAll('button');
|
|
80
77
|
var inputField = event.currentTarget.querySelector('input');
|
|
81
78
|
var isInputFocussed = document.activeElement === inputField;
|
|
@@ -104,7 +101,7 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
104
101
|
}
|
|
105
102
|
}
|
|
106
103
|
});
|
|
107
|
-
_defineProperty(
|
|
104
|
+
_defineProperty(_this, "handleArrow", function (event, closingMethod) {
|
|
108
105
|
var _document2;
|
|
109
106
|
if (((_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.activeElement) === _this.popupBodyWrapper.current) {
|
|
110
107
|
var _this$popupBodyWrappe;
|
|
@@ -115,7 +112,7 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
115
112
|
});
|
|
116
113
|
}
|
|
117
114
|
});
|
|
118
|
-
_defineProperty(
|
|
115
|
+
_defineProperty(_this, "onKeyDown", function (event) {
|
|
119
116
|
var isTabPressed = event.key === 'Tab';
|
|
120
117
|
if (isTabPressed) {
|
|
121
118
|
return _this.handleTabPress(event);
|
|
@@ -124,7 +121,7 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
124
121
|
return _this.handleArrow(event, closingMethods[event.key]);
|
|
125
122
|
}
|
|
126
123
|
});
|
|
127
|
-
_defineProperty(
|
|
124
|
+
_defineProperty(_this, "onColorHover", function (color) {
|
|
128
125
|
_this.createStatusAnalyticsAndFireFunc({
|
|
129
126
|
action: 'hovered',
|
|
130
127
|
actionSubject: 'statusColorPicker',
|
|
@@ -135,7 +132,7 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
135
132
|
}
|
|
136
133
|
});
|
|
137
134
|
});
|
|
138
|
-
_defineProperty(
|
|
135
|
+
_defineProperty(_this, "onColorClick", function (color) {
|
|
139
136
|
var _this$state = _this.state,
|
|
140
137
|
text = _this$state.text,
|
|
141
138
|
localId = _this$state.localId;
|
|
@@ -162,7 +159,7 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
162
159
|
});
|
|
163
160
|
}
|
|
164
161
|
});
|
|
165
|
-
_defineProperty(
|
|
162
|
+
_defineProperty(_this, "onTextChanged", function (text) {
|
|
166
163
|
var _this$state2 = _this.state,
|
|
167
164
|
color = _this$state2.color,
|
|
168
165
|
localId = _this$state2.localId;
|
|
@@ -175,14 +172,14 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
175
172
|
localId: localId
|
|
176
173
|
}, !!_this.props.isNew);
|
|
177
174
|
});
|
|
178
|
-
_defineProperty(
|
|
175
|
+
_defineProperty(_this, "onEnter", function () {
|
|
179
176
|
_this.inputMethod = InputMethod.enterKey;
|
|
180
177
|
_this.props.onEnter(_this.state);
|
|
181
178
|
});
|
|
182
179
|
// cancel bubbling to fix clickOutside logic:
|
|
183
180
|
// popup re-renders its content before the click event bubbles up to the document
|
|
184
181
|
// therefore click target element would be different from the popup content
|
|
185
|
-
_defineProperty(
|
|
182
|
+
_defineProperty(_this, "handlePopupClick", function (event) {
|
|
186
183
|
return event.nativeEvent.stopImmediatePropagation();
|
|
187
184
|
});
|
|
188
185
|
_this.state = _this.extractStateFromProps(props);
|
|
@@ -190,7 +187,8 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
190
187
|
_this.popupBodyWrapper = /*#__PURE__*/React.createRef();
|
|
191
188
|
return _this;
|
|
192
189
|
}
|
|
193
|
-
|
|
190
|
+
_inherits(StatusPickerWithoutAnalytcs, _React$Component);
|
|
191
|
+
return _createClass(StatusPickerWithoutAnalytcs, [{
|
|
194
192
|
key: "fireStatusPopupOpenedAnalytics",
|
|
195
193
|
value: function fireStatusPopupOpenedAnalytics(state) {
|
|
196
194
|
var color = state.color,
|
|
@@ -357,6 +355,5 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
357
355
|
})));
|
|
358
356
|
}
|
|
359
357
|
}]);
|
|
360
|
-
return StatusPickerWithoutAnalytcs;
|
|
361
358
|
}(React.Component);
|
|
362
359
|
export default withAnalyticsEvents()(StatusPickerWithoutAnalytcs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^10.2.0",
|
|
36
|
-
"@atlaskit/editor-common": "^96.
|
|
36
|
+
"@atlaskit/editor-common": "^96.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|