@atlaskit/editor-plugin-status 22.0.3 → 22.0.4
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 22.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ac601b5b2d024`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ac601b5b2d024) -
|
|
8
|
+
Enable updated status colors when platform_editor_update_status_colors_jira is enabled
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 22.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -481,7 +481,7 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
481
481
|
color = _this$state3.color,
|
|
482
482
|
text = _this$state3.text;
|
|
483
483
|
var suggestionsPatchEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_status_popup_suggestions') && (0, _fg.fg)('platform_editor_status_popup_suggestions_patch_1');
|
|
484
|
-
var isUpdateStatusColorsEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_update_status_colors');
|
|
484
|
+
var isUpdateStatusColorsEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_update_status_colors') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_update_status_colors_jira');
|
|
485
485
|
var suggestedStatusList = suggestedStatuses !== null && suggestedStatuses !== void 0 && suggestedStatuses.length && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_status_popup_suggestions') ? (0, _react2.jsx)("div", {
|
|
486
486
|
css: [suggestedStatusesContainerStyles, suggestionsPatchEnabled ? suggestedStatusesContainerPatchStyles : undefined, suggestionsPatchEnabled && (isUpdateStatusColorsEnabled || (0, _fg.fg)('platform_editor_status_popup_suggestions_patch_3')) ? suggestedStatusesContainerAlignedBottomPaddingStyles : undefined],
|
|
487
487
|
"data-suggested-status-list": true
|
|
@@ -539,7 +539,7 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
539
539
|
if (!(editorView !== null && editorView !== void 0 && editorView.editable)) {
|
|
540
540
|
return null;
|
|
541
541
|
}
|
|
542
|
-
var fitHeight = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_update_status_colors') ? STATUS_PICKER_TEN_COLOR_FIT_HEIGHT : (0, _fg.fg)('platform_editor_status_popup_suggestions_patch_3') ? STATUS_PICKER_FIT_HEIGHT : STATUS_PICKER_FIT_HEIGHT_OLD;
|
|
542
|
+
var fitHeight = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_update_status_colors') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_update_status_colors_jira') ? STATUS_PICKER_TEN_COLOR_FIT_HEIGHT : (0, _fg.fg)('platform_editor_status_popup_suggestions_patch_3') ? STATUS_PICKER_FIT_HEIGHT : STATUS_PICKER_FIT_HEIGHT_OLD;
|
|
543
543
|
return target && (0, _react2.jsx)(PopupWithListeners, {
|
|
544
544
|
ariaLabel: intl.formatMessage(_messages.statusMessages.statusEditorLabel),
|
|
545
545
|
target: target
|
|
@@ -455,7 +455,7 @@ class StatusPickerWithIntl extends React.Component {
|
|
|
455
455
|
text
|
|
456
456
|
} = this.state;
|
|
457
457
|
const suggestionsPatchEnabled = isExperimentEnabled('platform_editor_status_popup_suggestions') && fg('platform_editor_status_popup_suggestions_patch_1');
|
|
458
|
-
const isUpdateStatusColorsEnabled = isExperimentEnabled('platform_editor_update_status_colors');
|
|
458
|
+
const isUpdateStatusColorsEnabled = isExperimentEnabled('platform_editor_update_status_colors') || isExperimentEnabled('platform_editor_update_status_colors_jira');
|
|
459
459
|
const suggestedStatusList = suggestedStatuses !== null && suggestedStatuses !== void 0 && suggestedStatuses.length && isExperimentEnabled('platform_editor_status_popup_suggestions') ? jsx("div", {
|
|
460
460
|
css: [suggestedStatusesContainerStyles, suggestionsPatchEnabled ? suggestedStatusesContainerPatchStyles : undefined, suggestionsPatchEnabled && (isUpdateStatusColorsEnabled || fg('platform_editor_status_popup_suggestions_patch_3')) ? suggestedStatusesContainerAlignedBottomPaddingStyles : undefined],
|
|
461
461
|
"data-suggested-status-list": true
|
|
@@ -508,7 +508,7 @@ class StatusPickerWithIntl extends React.Component {
|
|
|
508
508
|
if (!(editorView !== null && editorView !== void 0 && editorView.editable)) {
|
|
509
509
|
return null;
|
|
510
510
|
}
|
|
511
|
-
const fitHeight = isExperimentEnabled('platform_editor_update_status_colors') ? STATUS_PICKER_TEN_COLOR_FIT_HEIGHT : fg('platform_editor_status_popup_suggestions_patch_3') ? STATUS_PICKER_FIT_HEIGHT : STATUS_PICKER_FIT_HEIGHT_OLD;
|
|
511
|
+
const fitHeight = isExperimentEnabled('platform_editor_update_status_colors') || isExperimentEnabled('platform_editor_update_status_colors_jira') ? STATUS_PICKER_TEN_COLOR_FIT_HEIGHT : fg('platform_editor_status_popup_suggestions_patch_3') ? STATUS_PICKER_FIT_HEIGHT : STATUS_PICKER_FIT_HEIGHT_OLD;
|
|
512
512
|
return target && jsx(PopupWithListeners, {
|
|
513
513
|
ariaLabel: intl.formatMessage(messages.statusEditorLabel),
|
|
514
514
|
target: target
|
|
@@ -478,7 +478,7 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
478
478
|
color = _this$state3.color,
|
|
479
479
|
text = _this$state3.text;
|
|
480
480
|
var suggestionsPatchEnabled = isExperimentEnabled('platform_editor_status_popup_suggestions') && fg('platform_editor_status_popup_suggestions_patch_1');
|
|
481
|
-
var isUpdateStatusColorsEnabled = isExperimentEnabled('platform_editor_update_status_colors');
|
|
481
|
+
var isUpdateStatusColorsEnabled = isExperimentEnabled('platform_editor_update_status_colors') || isExperimentEnabled('platform_editor_update_status_colors_jira');
|
|
482
482
|
var suggestedStatusList = suggestedStatuses !== null && suggestedStatuses !== void 0 && suggestedStatuses.length && isExperimentEnabled('platform_editor_status_popup_suggestions') ? jsx("div", {
|
|
483
483
|
css: [suggestedStatusesContainerStyles, suggestionsPatchEnabled ? suggestedStatusesContainerPatchStyles : undefined, suggestionsPatchEnabled && (isUpdateStatusColorsEnabled || fg('platform_editor_status_popup_suggestions_patch_3')) ? suggestedStatusesContainerAlignedBottomPaddingStyles : undefined],
|
|
484
484
|
"data-suggested-status-list": true
|
|
@@ -536,7 +536,7 @@ var StatusPickerWithIntl = /*#__PURE__*/function (_React$Component) {
|
|
|
536
536
|
if (!(editorView !== null && editorView !== void 0 && editorView.editable)) {
|
|
537
537
|
return null;
|
|
538
538
|
}
|
|
539
|
-
var fitHeight = isExperimentEnabled('platform_editor_update_status_colors') ? STATUS_PICKER_TEN_COLOR_FIT_HEIGHT : fg('platform_editor_status_popup_suggestions_patch_3') ? STATUS_PICKER_FIT_HEIGHT : STATUS_PICKER_FIT_HEIGHT_OLD;
|
|
539
|
+
var fitHeight = isExperimentEnabled('platform_editor_update_status_colors') || isExperimentEnabled('platform_editor_update_status_colors_jira') ? STATUS_PICKER_TEN_COLOR_FIT_HEIGHT : fg('platform_editor_status_popup_suggestions_patch_3') ? STATUS_PICKER_FIT_HEIGHT : STATUS_PICKER_FIT_HEIGHT_OLD;
|
|
540
540
|
return target && jsx(PopupWithListeners, {
|
|
541
541
|
ariaLabel: intl.formatMessage(messages.statusEditorLabel),
|
|
542
542
|
target: target
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.4",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/editor-toolbar": "^2.7.0",
|
|
35
35
|
"@atlaskit/editor-ui-control-model": "^2.10.0",
|
|
36
36
|
"@atlaskit/icon": "^38.0.0",
|
|
37
|
-
"@atlaskit/icon-lab": "^7.
|
|
37
|
+
"@atlaskit/icon-lab": "^7.10.0",
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
40
|
"@atlaskit/status": "^5.12.0",
|