@atlaskit/status 5.13.24 → 5.14.0
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 +21 -0
- package/dist/cjs/components/analytics.js +1 -1
- package/dist/cjs/components/internal/color-palette.compiled.css +2 -0
- package/dist/cjs/components/internal/color-palette.js +10 -2
- package/dist/es2019/components/analytics.js +1 -1
- package/dist/es2019/components/internal/color-palette.compiled.css +2 -0
- package/dist/es2019/components/internal/color-palette.js +10 -2
- package/dist/esm/components/analytics.js +1 -1
- package/dist/esm/components/internal/color-palette.compiled.css +2 -0
- package/dist/esm/components/internal/color-palette.js +10 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/status
|
|
2
2
|
|
|
3
|
+
## 5.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5157e2c52cfcd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5157e2c52cfcd) -
|
|
8
|
+
Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
|
|
9
|
+
(Group 3)
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 5.13.25
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`cd33055ac8c87`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd33055ac8c87) -
|
|
20
|
+
Behind the platform_status_lozenge_fractional_zoom_fix experiment: centre editor status text on
|
|
21
|
+
cap height so it no longer sits ~1px high at fractional browser zoom on 1x displays, and lay out
|
|
22
|
+
status colour swatches on a fixed-column grid so they no longer wrap an extra row there.
|
|
23
|
+
|
|
3
24
|
## 5.13.24
|
|
4
25
|
|
|
5
26
|
### 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.25";
|
|
14
14
|
var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
15
15
|
return function (payload) {
|
|
16
16
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
2
2
|
._19bvidpf{padding-left:0}
|
|
3
3
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
|
+
._1bahv2br{justify-content:start}
|
|
5
|
+
._1e0c11p5{display:grid}
|
|
4
6
|
._1e0c1txw{display:flex}
|
|
5
7
|
._1n261g80{flex-wrap:wrap}
|
|
6
8
|
._1p571b66{row-gap:var(--ds-space-050,4px)}
|
|
@@ -11,6 +11,7 @@ require("./color-palette.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
14
15
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
16
|
var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
|
|
16
17
|
var _statusColors = require("../status-colors");
|
|
@@ -53,6 +54,11 @@ var getPalette = function getPalette(colorMode) {
|
|
|
53
54
|
|
|
54
55
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
55
56
|
var colorPaletteWrapperStyles = null;
|
|
57
|
+
var colorPaletteFlexStyles = null;
|
|
58
|
+
|
|
59
|
+
// Grid columns fix the swatch count per row, so rounding the swatch borders to whole device
|
|
60
|
+
// pixels at fractional zoom cannot wrap a swatch onto an extra row.
|
|
61
|
+
var colorPaletteGridStyles = null;
|
|
56
62
|
var colorPaletteRowGapStyles = null;
|
|
57
63
|
var _default = exports.default = function _default(_ref3) {
|
|
58
64
|
var cols = _ref3.cols,
|
|
@@ -66,6 +72,7 @@ var _default = exports.default = function _default(_ref3) {
|
|
|
66
72
|
colorMode = _useThemeObserver.colorMode;
|
|
67
73
|
var palette = getPalette(colorMode, variant);
|
|
68
74
|
var resolvedCols = cols !== null && cols !== void 0 ? cols : variantToCols[variant];
|
|
75
|
+
var isGridLayout = (0, _isExperimentEnabled.isExperimentEnabled)('platform_status_lozenge_fractional_zoom_fix');
|
|
69
76
|
var colorRefs = (0, _react.useRef)([]);
|
|
70
77
|
(0, _react.useEffect)(function () {
|
|
71
78
|
colorRefs.current = colorRefs.current.slice(0, palette.length);
|
|
@@ -100,9 +107,10 @@ var _default = exports.default = function _default(_ref3) {
|
|
|
100
107
|
}, [colorRefs, palette.length]);
|
|
101
108
|
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
102
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
103
|
-
className: (0, _runtime.ax)(["_19bvidpf _19pku2gc _2hwxu2gc _otyridpf _18u0u2gc _1e0c1txw _1n261g80", variant === 'extended' && "_1p571b66", className]),
|
|
110
|
+
className: (0, _runtime.ax)(["_19bvidpf _19pku2gc _2hwxu2gc _otyridpf _18u0u2gc", isGridLayout ? "_1e0c11p5 _1bahv2br" : "_1e0c1txw _1n261g80", variant === 'extended' && "_1p571b66", className]),
|
|
104
111
|
style: {
|
|
105
|
-
|
|
112
|
+
gridTemplateColumns: isGridLayout ? "repeat(".concat(resolvedCols, ", max-content)") : undefined,
|
|
113
|
+
maxWidth: isGridLayout ? undefined : resolvedCols * 32
|
|
106
114
|
}
|
|
107
115
|
}, palette.map(function (_ref4, i) {
|
|
108
116
|
var _ref5 = (0, _slicedToArray2.default)(_ref4, 4),
|
|
@@ -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.25";
|
|
4
4
|
export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
|
|
5
5
|
const statusPayload = {
|
|
6
6
|
...payload,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
2
2
|
._19bvidpf{padding-left:0}
|
|
3
3
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
|
+
._1bahv2br{justify-content:start}
|
|
5
|
+
._1e0c11p5{display:grid}
|
|
4
6
|
._1e0c1txw{display:flex}
|
|
5
7
|
._1n261g80{flex-wrap:wrap}
|
|
6
8
|
._1p571b66{row-gap:var(--ds-space-050,4px)}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import "./color-palette.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useRef, useCallback } from 'react';
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
7
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
7
8
|
import { isSwatchSelected, COLORS, PICKER_SWATCHES, SWATCH_ICON_COLOR } from '../status-colors';
|
|
@@ -34,6 +35,11 @@ const getPalette = (colorMode, variant = 'default') => {
|
|
|
34
35
|
|
|
35
36
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
36
37
|
const colorPaletteWrapperStyles = null;
|
|
38
|
+
const colorPaletteFlexStyles = null;
|
|
39
|
+
|
|
40
|
+
// Grid columns fix the swatch count per row, so rounding the swatch borders to whole device
|
|
41
|
+
// pixels at fractional zoom cannot wrap a swatch onto an extra row.
|
|
42
|
+
const colorPaletteGridStyles = null;
|
|
37
43
|
const colorPaletteRowGapStyles = null;
|
|
38
44
|
export default (({
|
|
39
45
|
cols,
|
|
@@ -48,6 +54,7 @@ export default (({
|
|
|
48
54
|
} = useThemeObserver();
|
|
49
55
|
const palette = getPalette(colorMode, variant);
|
|
50
56
|
const resolvedCols = cols !== null && cols !== void 0 ? cols : variantToCols[variant];
|
|
57
|
+
const isGridLayout = isExperimentEnabled('platform_status_lozenge_fractional_zoom_fix');
|
|
51
58
|
const colorRefs = useRef([]);
|
|
52
59
|
useEffect(() => {
|
|
53
60
|
colorRefs.current = colorRefs.current.slice(0, palette.length);
|
|
@@ -76,9 +83,10 @@ export default (({
|
|
|
76
83
|
}, [colorRefs, palette.length]);
|
|
77
84
|
return /*#__PURE__*/React.createElement("ul", {
|
|
78
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
79
|
-
className: ax(["_19bvidpf _19pku2gc _2hwxu2gc _otyridpf _18u0u2gc _1e0c1txw _1n261g80", variant === 'extended' && "_1p571b66", className]),
|
|
86
|
+
className: ax(["_19bvidpf _19pku2gc _2hwxu2gc _otyridpf _18u0u2gc", isGridLayout ? "_1e0c11p5 _1bahv2br" : "_1e0c1txw _1n261g80", variant === 'extended' && "_1p571b66", className]),
|
|
80
87
|
style: {
|
|
81
|
-
|
|
88
|
+
gridTemplateColumns: isGridLayout ? `repeat(${resolvedCols}, max-content)` : undefined,
|
|
89
|
+
maxWidth: isGridLayout ? undefined : resolvedCols * 32
|
|
82
90
|
}
|
|
83
91
|
}, palette.map(([colorValue, backgroundColor, borderColor, iconColor], i) => /*#__PURE__*/React.createElement(Color, {
|
|
84
92
|
key: colorValue,
|
|
@@ -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.25";
|
|
7
7
|
export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
8
8
|
return function (payload) {
|
|
9
9
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
2
2
|
._19bvidpf{padding-left:0}
|
|
3
3
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
|
+
._1bahv2br{justify-content:start}
|
|
5
|
+
._1e0c11p5{display:grid}
|
|
4
6
|
._1e0c1txw{display:flex}
|
|
5
7
|
._1n261g80{flex-wrap:wrap}
|
|
6
8
|
._1p571b66{row-gap:var(--ds-space-050,4px)}
|
|
@@ -3,6 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import "./color-palette.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useEffect, useRef, useCallback } from 'react';
|
|
6
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
8
9
|
import { isSwatchSelected, COLORS, PICKER_SWATCHES, SWATCH_ICON_COLOR } from '../status-colors';
|
|
@@ -44,6 +45,11 @@ var getPalette = function getPalette(colorMode) {
|
|
|
44
45
|
|
|
45
46
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
46
47
|
var colorPaletteWrapperStyles = null;
|
|
48
|
+
var colorPaletteFlexStyles = null;
|
|
49
|
+
|
|
50
|
+
// Grid columns fix the swatch count per row, so rounding the swatch borders to whole device
|
|
51
|
+
// pixels at fractional zoom cannot wrap a swatch onto an extra row.
|
|
52
|
+
var colorPaletteGridStyles = null;
|
|
47
53
|
var colorPaletteRowGapStyles = null;
|
|
48
54
|
export default (function (_ref3) {
|
|
49
55
|
var cols = _ref3.cols,
|
|
@@ -57,6 +63,7 @@ export default (function (_ref3) {
|
|
|
57
63
|
colorMode = _useThemeObserver.colorMode;
|
|
58
64
|
var palette = getPalette(colorMode, variant);
|
|
59
65
|
var resolvedCols = cols !== null && cols !== void 0 ? cols : variantToCols[variant];
|
|
66
|
+
var isGridLayout = isExperimentEnabled('platform_status_lozenge_fractional_zoom_fix');
|
|
60
67
|
var colorRefs = useRef([]);
|
|
61
68
|
useEffect(function () {
|
|
62
69
|
colorRefs.current = colorRefs.current.slice(0, palette.length);
|
|
@@ -91,9 +98,10 @@ export default (function (_ref3) {
|
|
|
91
98
|
}, [colorRefs, palette.length]);
|
|
92
99
|
return /*#__PURE__*/React.createElement("ul", {
|
|
93
100
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
94
|
-
className: ax(["_19bvidpf _19pku2gc _2hwxu2gc _otyridpf _18u0u2gc _1e0c1txw _1n261g80", variant === 'extended' && "_1p571b66", className]),
|
|
101
|
+
className: ax(["_19bvidpf _19pku2gc _2hwxu2gc _otyridpf _18u0u2gc", isGridLayout ? "_1e0c11p5 _1bahv2br" : "_1e0c1txw _1n261g80", variant === 'extended' && "_1p571b66", className]),
|
|
95
102
|
style: {
|
|
96
|
-
|
|
103
|
+
gridTemplateColumns: isGridLayout ? "repeat(".concat(resolvedCols, ", max-content)") : undefined,
|
|
104
|
+
maxWidth: isGridLayout ? undefined : resolvedCols * 32
|
|
97
105
|
}
|
|
98
106
|
}, palette.map(function (_ref4, i) {
|
|
99
107
|
var _ref5 = _slicedToArray(_ref4, 4),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/status",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.0",
|
|
4
4
|
"description": "Fabric Status React Components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@atlaskit/afm-i18n-platform-elements-status": "2.
|
|
52
|
+
"@atlaskit/afm-i18n-platform-elements-status": "2.287.0",
|
|
53
53
|
"@atlaskit/analytics-next": "^12.6.0",
|
|
54
54
|
"@atlaskit/icon": "^38.0.0",
|
|
55
55
|
"@atlaskit/lozenge": "^17.0.0",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@atlaskit/primitives": "^22.6.0",
|
|
59
59
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
60
60
|
"@atlaskit/textfield": "^10.2.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
-
"@atlaskit/tokens": "^20.
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^245.0.0",
|
|
62
|
+
"@atlaskit/tokens": "^20.7.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@compiled/react": "^1.0.2"
|
|
65
65
|
},
|