@atlaskit/status 5.13.7 → 5.13.9
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 +13 -0
- package/dist/cjs/components/analytics.js +1 -1
- package/dist/cjs/components/status-colors.js +4 -8
- package/dist/es2019/components/analytics.js +1 -1
- package/dist/es2019/components/status-colors.js +4 -8
- package/dist/esm/components/analytics.js +1 -1
- package/dist/esm/components/status-colors.js +4 -8
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/status
|
|
2
2
|
|
|
3
|
+
## 5.13.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.13.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c32526f4b7ef1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c32526f4b7ef1) -
|
|
14
|
+
Clean up feature gate `platform_editor_gracefully_render_status_color`
|
|
15
|
+
|
|
3
16
|
## 5.13.7
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
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) { (0, _defineProperty2.default)(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; }
|
|
11
11
|
var ELEMENTS_CHANNEL = exports.ELEMENTS_CHANNEL = 'fabric-elements';
|
|
12
12
|
var packageName = "@atlaskit/status";
|
|
13
|
-
var packageVersion = "5.13.
|
|
13
|
+
var packageVersion = "5.13.8";
|
|
14
14
|
var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
15
15
|
return function (payload) {
|
|
16
16
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.normalizeColor = exports.isSwatchSelected = exports.isNamedColor = exports.getLozengeAppearance = exports.getColorLabelKey = exports.colorToLozengeAppearanceMap = exports.SWATCH_ICON_COLOR = exports.PICKER_SWATCHES = exports.NAMED_COLORS = exports.HEX_PALETTE = exports.DEFAULT_LOZENGE_APPEARANCE = exports.COLORS = void 0;
|
|
7
7
|
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
8
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
8
|
/** Named colours the ADF `color` attribute can carry. */
|
|
10
9
|
|
|
11
10
|
var NAMED_COLORS = exports.NAMED_COLORS = ['neutral', 'purple', 'blue', 'red', 'yellow', 'green'];
|
|
@@ -213,16 +212,13 @@ var isSwatchSelected = exports.isSwatchSelected = function isSwatchSelected(swat
|
|
|
213
212
|
return swatchAppearance !== undefined && swatchAppearance === ((_specFor3 = specFor(selectedColor)) === null || _specFor3 === void 0 ? void 0 : _specFor3.appearance);
|
|
214
213
|
};
|
|
215
214
|
var getLozengeAppearance = exports.getLozengeAppearance = function getLozengeAppearance(color) {
|
|
215
|
+
var _specFor$appearance, _specFor4;
|
|
216
216
|
var isUpdateStatusColorsEnabled = (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors', 'isEnabled', false) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
217
217
|
|
|
218
|
-
// Named colours are recoloured only by the experiment
|
|
219
|
-
//
|
|
218
|
+
// Named colours are recoloured only by the experiment, so they must never reach the
|
|
219
|
+
// hex mapping below.
|
|
220
220
|
if (isNamedColor(color)) {
|
|
221
221
|
return isUpdateStatusColorsEnabled ? COLORS[color].appearance : colorToLozengeAppearanceMap[color];
|
|
222
222
|
}
|
|
223
|
-
|
|
224
|
-
var _specFor$appearance, _specFor4;
|
|
225
|
-
return (_specFor$appearance = (_specFor4 = specFor(color)) === null || _specFor4 === void 0 ? void 0 : _specFor4.appearance) !== null && _specFor$appearance !== void 0 ? _specFor$appearance : DEFAULT_LOZENGE_APPEARANCE;
|
|
226
|
-
}
|
|
227
|
-
return DEFAULT_LOZENGE_APPEARANCE;
|
|
223
|
+
return (_specFor$appearance = (_specFor4 = specFor(color)) === null || _specFor4 === void 0 ? void 0 : _specFor4.appearance) !== null && _specFor$appearance !== void 0 ? _specFor$appearance : DEFAULT_LOZENGE_APPEARANCE;
|
|
228
224
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ELEMENTS_CHANNEL = 'fabric-elements';
|
|
2
2
|
const packageName = "@atlaskit/status";
|
|
3
|
-
const packageVersion = "5.13.
|
|
3
|
+
const packageVersion = "5.13.8";
|
|
4
4
|
export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
|
|
5
5
|
const statusPayload = {
|
|
6
6
|
...payload,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
|
|
4
3
|
/** Named colours the ADF `color` attribute can carry. */
|
|
5
4
|
|
|
@@ -202,16 +201,13 @@ export const isSwatchSelected = (swatchValue, selectedColor) => {
|
|
|
202
201
|
return swatchAppearance !== undefined && swatchAppearance === ((_specFor3 = specFor(selectedColor)) === null || _specFor3 === void 0 ? void 0 : _specFor3.appearance);
|
|
203
202
|
};
|
|
204
203
|
export const getLozengeAppearance = color => {
|
|
204
|
+
var _specFor$appearance, _specFor4;
|
|
205
205
|
const isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
206
206
|
|
|
207
|
-
// Named colours are recoloured only by the experiment
|
|
208
|
-
//
|
|
207
|
+
// Named colours are recoloured only by the experiment, so they must never reach the
|
|
208
|
+
// hex mapping below.
|
|
209
209
|
if (isNamedColor(color)) {
|
|
210
210
|
return isUpdateStatusColorsEnabled ? COLORS[color].appearance : colorToLozengeAppearanceMap[color];
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
var _specFor$appearance, _specFor4;
|
|
214
|
-
return (_specFor$appearance = (_specFor4 = specFor(color)) === null || _specFor4 === void 0 ? void 0 : _specFor4.appearance) !== null && _specFor$appearance !== void 0 ? _specFor$appearance : DEFAULT_LOZENGE_APPEARANCE;
|
|
215
|
-
}
|
|
216
|
-
return DEFAULT_LOZENGE_APPEARANCE;
|
|
212
|
+
return (_specFor$appearance = (_specFor4 = specFor(color)) === null || _specFor4 === void 0 ? void 0 : _specFor4.appearance) !== null && _specFor$appearance !== void 0 ? _specFor$appearance : DEFAULT_LOZENGE_APPEARANCE;
|
|
217
213
|
};
|
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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; }
|
|
4
4
|
export var ELEMENTS_CHANNEL = 'fabric-elements';
|
|
5
5
|
var packageName = "@atlaskit/status";
|
|
6
|
-
var packageVersion = "5.13.
|
|
6
|
+
var packageVersion = "5.13.8";
|
|
7
7
|
export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
8
8
|
return function (payload) {
|
|
9
9
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
|
|
4
3
|
/** Named colours the ADF `color` attribute can carry. */
|
|
5
4
|
|
|
@@ -208,16 +207,13 @@ export var isSwatchSelected = function isSwatchSelected(swatchValue, selectedCol
|
|
|
208
207
|
return swatchAppearance !== undefined && swatchAppearance === ((_specFor3 = specFor(selectedColor)) === null || _specFor3 === void 0 ? void 0 : _specFor3.appearance);
|
|
209
208
|
};
|
|
210
209
|
export var getLozengeAppearance = function getLozengeAppearance(color) {
|
|
210
|
+
var _specFor$appearance, _specFor4;
|
|
211
211
|
var isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
212
212
|
|
|
213
|
-
// Named colours are recoloured only by the experiment
|
|
214
|
-
//
|
|
213
|
+
// Named colours are recoloured only by the experiment, so they must never reach the
|
|
214
|
+
// hex mapping below.
|
|
215
215
|
if (isNamedColor(color)) {
|
|
216
216
|
return isUpdateStatusColorsEnabled ? COLORS[color].appearance : colorToLozengeAppearanceMap[color];
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
var _specFor$appearance, _specFor4;
|
|
220
|
-
return (_specFor$appearance = (_specFor4 = specFor(color)) === null || _specFor4 === void 0 ? void 0 : _specFor4.appearance) !== null && _specFor$appearance !== void 0 ? _specFor$appearance : DEFAULT_LOZENGE_APPEARANCE;
|
|
221
|
-
}
|
|
222
|
-
return DEFAULT_LOZENGE_APPEARANCE;
|
|
218
|
+
return (_specFor$appearance = (_specFor4 = specFor(color)) === null || _specFor4 === void 0 ? void 0 : _specFor4.appearance) !== null && _specFor$appearance !== void 0 ? _specFor$appearance : DEFAULT_LOZENGE_APPEARANCE;
|
|
223
219
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/status",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.9",
|
|
4
4
|
"description": "Fabric Status React Components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/primitives": "^22.5.0",
|
|
57
57
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
58
58
|
"@atlaskit/textfield": "^10.2.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^229.0.0",
|
|
60
60
|
"@atlaskit/tokens": "^20.4.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@compiled/react": "^1.0.2"
|
|
@@ -78,9 +78,6 @@
|
|
|
78
78
|
"platform-dst-lozenge-tag-badge-visual-uplifts": {
|
|
79
79
|
"type": "boolean"
|
|
80
80
|
},
|
|
81
|
-
"platform_editor_gracefully_render_status_color": {
|
|
82
|
-
"type": "boolean"
|
|
83
|
-
},
|
|
84
81
|
"platform_editor_status_popup_suggestions_patch_3": {
|
|
85
82
|
"type": "boolean"
|
|
86
83
|
}
|