@atlaskit/editor-plugin-status 11.0.8 → 11.0.10
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 11.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d94df511393a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d94df511393a9) -
|
|
8
|
+
Removing FG platform_editor_a11y_eslint_fix
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 11.0.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 11.0.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -23,7 +23,6 @@ var _userIntent = require("@atlaskit/editor-common/user-intent");
|
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
24
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
25
|
var _picker = require("@atlaskit/status/picker");
|
|
26
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
26
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
28
27
|
var _actions = require("../pm-plugins/actions");
|
|
29
28
|
var _analytics = require("./analytics");
|
|
@@ -90,10 +89,10 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
90
89
|
_this.props.onEnter(_this.state);
|
|
91
90
|
});
|
|
92
91
|
(0, _defineProperty2.default)(_this, "handleTabPress", function (event) {
|
|
93
|
-
var _getDocument
|
|
92
|
+
var _getDocument;
|
|
94
93
|
var colorButtons = event.currentTarget.querySelectorAll('button');
|
|
95
94
|
var inputField = event.currentTarget.querySelector('input');
|
|
96
|
-
var activeElement = (
|
|
95
|
+
var activeElement = (_getDocument = (0, _browserApis.getDocument)()) === null || _getDocument === void 0 ? void 0 : _getDocument.activeElement;
|
|
97
96
|
var isInputFocussed = activeElement === inputField;
|
|
98
97
|
var isButtonFocussed = Array.from(colorButtons).some(function (buttonElement) {
|
|
99
98
|
return activeElement === buttonElement;
|
|
@@ -120,8 +119,8 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
(0, _defineProperty2.default)(_this, "handleArrow", function (event, closingMethod) {
|
|
123
|
-
var _getDocument2
|
|
124
|
-
var activeElement = (
|
|
122
|
+
var _getDocument2;
|
|
123
|
+
var activeElement = (_getDocument2 = (0, _browserApis.getDocument)()) === null || _getDocument2 === void 0 ? void 0 : _getDocument2.activeElement;
|
|
125
124
|
if (activeElement === _this.popupBodyWrapper.current) {
|
|
126
125
|
var _this$popupBodyWrappe;
|
|
127
126
|
event.preventDefault();
|
|
@@ -18,7 +18,6 @@ import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
|
|
|
18
18
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
20
|
import { StatusPicker as AkStatusPicker } from '@atlaskit/status/picker';
|
|
21
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
21
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
23
22
|
import { DEFAULT_STATUS } from '../pm-plugins/actions';
|
|
24
23
|
import { analyticsState, createStatusAnalyticsAndFire } from './analytics';
|
|
@@ -78,10 +77,10 @@ class StatusPickerWithIntl extends React.Component {
|
|
|
78
77
|
this.props.onEnter(this.state);
|
|
79
78
|
});
|
|
80
79
|
_defineProperty(this, "handleTabPress", event => {
|
|
81
|
-
var _getDocument
|
|
80
|
+
var _getDocument;
|
|
82
81
|
const colorButtons = event.currentTarget.querySelectorAll('button');
|
|
83
82
|
const inputField = event.currentTarget.querySelector('input');
|
|
84
|
-
const activeElement =
|
|
83
|
+
const activeElement = (_getDocument = getDocument()) === null || _getDocument === void 0 ? void 0 : _getDocument.activeElement;
|
|
85
84
|
const isInputFocussed = activeElement === inputField;
|
|
86
85
|
const isButtonFocussed = Array.from(colorButtons).some(buttonElement => {
|
|
87
86
|
return activeElement === buttonElement;
|
|
@@ -108,8 +107,8 @@ class StatusPickerWithIntl extends React.Component {
|
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
_defineProperty(this, "handleArrow", (event, closingMethod) => {
|
|
111
|
-
var _getDocument2
|
|
112
|
-
const activeElement =
|
|
110
|
+
var _getDocument2;
|
|
111
|
+
const activeElement = (_getDocument2 = getDocument()) === null || _getDocument2 === void 0 ? void 0 : _getDocument2.activeElement;
|
|
113
112
|
if (activeElement === this.popupBodyWrapper.current) {
|
|
114
113
|
var _this$popupBodyWrappe, _this$popupBodyWrappe2;
|
|
115
114
|
event.preventDefault();
|
|
@@ -25,7 +25,6 @@ import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
|
|
|
25
25
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
26
26
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
27
|
import { StatusPicker as AkStatusPicker } from '@atlaskit/status/picker';
|
|
28
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
29
28
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
30
29
|
import { DEFAULT_STATUS } from '../pm-plugins/actions';
|
|
31
30
|
import { analyticsState, createStatusAnalyticsAndFire } from './analytics';
|
|
@@ -87,10 +86,10 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
87
86
|
_this.props.onEnter(_this.state);
|
|
88
87
|
});
|
|
89
88
|
_defineProperty(_this, "handleTabPress", function (event) {
|
|
90
|
-
var _getDocument
|
|
89
|
+
var _getDocument;
|
|
91
90
|
var colorButtons = event.currentTarget.querySelectorAll('button');
|
|
92
91
|
var inputField = event.currentTarget.querySelector('input');
|
|
93
|
-
var activeElement =
|
|
92
|
+
var activeElement = (_getDocument = getDocument()) === null || _getDocument === void 0 ? void 0 : _getDocument.activeElement;
|
|
94
93
|
var isInputFocussed = activeElement === inputField;
|
|
95
94
|
var isButtonFocussed = Array.from(colorButtons).some(function (buttonElement) {
|
|
96
95
|
return activeElement === buttonElement;
|
|
@@ -117,8 +116,8 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
117
116
|
}
|
|
118
117
|
});
|
|
119
118
|
_defineProperty(_this, "handleArrow", function (event, closingMethod) {
|
|
120
|
-
var _getDocument2
|
|
121
|
-
var activeElement =
|
|
119
|
+
var _getDocument2;
|
|
120
|
+
var activeElement = (_getDocument2 = getDocument()) === null || _getDocument2 === void 0 ? void 0 : _getDocument2.activeElement;
|
|
122
121
|
if (activeElement === _this.popupBodyWrapper.current) {
|
|
123
122
|
var _this$popupBodyWrappe;
|
|
124
123
|
event.preventDefault();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.10",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@atlaskit/icon": "^34.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/status": "^4.0.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^72.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^13.0.0",
|
|
43
43
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^114.
|
|
48
|
+
"@atlaskit/editor-common": "^114.13.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0",
|
|
51
51
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|