@atlaskit/status 5.12.8 → 5.12.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 +10 -0
- package/dist/cjs/components/StatusPicker.compiled.css +1 -0
- package/dist/cjs/components/StatusPicker.js +7 -3
- package/dist/cjs/components/analytics.js +1 -1
- package/dist/es2019/components/StatusPicker.compiled.css +1 -0
- package/dist/es2019/components/StatusPicker.js +7 -3
- package/dist/es2019/components/analytics.js +1 -1
- package/dist/esm/components/StatusPicker.compiled.css +1 -0
- package/dist/esm/components/StatusPicker.js +7 -3
- package/dist/esm/components/analytics.js +1 -1
- package/package.json +5 -2
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/status
|
|
2
2
|
|
|
3
|
+
## 5.12.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e0164ac9572f8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e0164ac9572f8) -
|
|
8
|
+
Reduce the status picker's suggestion list height to show 5.5 suggestions above the fold before
|
|
9
|
+
scrolling, behind platform_editor_status_popup_suggestions_patch_3 for the six-color palette; the
|
|
10
|
+
ten-color palette is updated directly since its update_status experiment has not rolled out.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 5.12.8
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -33,11 +33,15 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
33
33
|
var fieldTextWrapperStyles = null;
|
|
34
34
|
var scrollContainerStyles = null;
|
|
35
35
|
var paletteWrapperStyles = null;
|
|
36
|
-
var
|
|
36
|
+
var scrollHeightStylesOld = {
|
|
37
37
|
scrolling: "_19pk1b66 _c71l4d55 _ca0q1b66",
|
|
38
38
|
default: "_c71l9rak",
|
|
39
39
|
extended: "_c71l5jys"
|
|
40
40
|
};
|
|
41
|
+
|
|
42
|
+
// Remove when cleaning up `platform_editor_status_popup_suggestions_patch_3`: `extended`
|
|
43
|
+
// already always uses this value below, and `default` should too, unconditionally.
|
|
44
|
+
var scrollHeightStyles = null;
|
|
41
45
|
var Picker = /*#__PURE__*/function (_PureComponent) {
|
|
42
46
|
function Picker() {
|
|
43
47
|
var _this;
|
|
@@ -112,10 +116,10 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
|
|
|
112
116
|
className: (0, _runtime.ax)(["_19pku2gc"])
|
|
113
117
|
}, colorPalette), scrollableContent ? /*#__PURE__*/_react.default.createElement("div", {
|
|
114
118
|
"data-status-picker-scroll-container": true,
|
|
115
|
-
className: (0, _runtime.ax)(["_18m91wug _15mtglyw _1bsb1osq",
|
|
119
|
+
className: (0, _runtime.ax)(["_18m91wug _15mtglyw _1bsb1osq", palette === 'extended' || (0, _fg.fg)('platform_editor_status_popup_suggestions_patch_3') ? "_c71l1lit" : scrollHeightStylesOld[palette !== null && palette !== void 0 ? palette : 'default']])
|
|
116
120
|
}, scrollableContent) : null) : scrollableContent ? /*#__PURE__*/_react.default.createElement("div", {
|
|
117
121
|
"data-status-picker-scroll-container": true,
|
|
118
|
-
className: (0, _runtime.ax)(["_18m91wug _15mtglyw _1bsb1osq",
|
|
122
|
+
className: (0, _runtime.ax)(["_18m91wug _15mtglyw _1bsb1osq", scrollHeightStylesOld.scrolling])
|
|
119
123
|
}, colorPalette, scrollableContent) : colorPalette);
|
|
120
124
|
}
|
|
121
125
|
}, {
|
|
@@ -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.12.
|
|
13
|
+
var packageVersion = "5.12.8";
|
|
14
14
|
var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
15
15
|
return function (payload) {
|
|
16
16
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -18,11 +18,15 @@ import ColorPalette from './internal/color-palette';
|
|
|
18
18
|
const fieldTextWrapperStyles = null;
|
|
19
19
|
const scrollContainerStyles = null;
|
|
20
20
|
const paletteWrapperStyles = null;
|
|
21
|
-
const
|
|
21
|
+
const scrollHeightStylesOld = {
|
|
22
22
|
scrolling: "_19pk1b66 _c71l4d55 _ca0q1b66",
|
|
23
23
|
default: "_c71l9rak",
|
|
24
24
|
extended: "_c71l5jys"
|
|
25
25
|
};
|
|
26
|
+
|
|
27
|
+
// Remove when cleaning up `platform_editor_status_popup_suggestions_patch_3`: `extended`
|
|
28
|
+
// already always uses this value below, and `default` should too, unconditionally.
|
|
29
|
+
const scrollHeightStyles = null;
|
|
26
30
|
class Picker extends PureComponent {
|
|
27
31
|
constructor(...args) {
|
|
28
32
|
super(...args);
|
|
@@ -89,10 +93,10 @@ class Picker extends PureComponent {
|
|
|
89
93
|
className: ax(["_19pku2gc"])
|
|
90
94
|
}, colorPalette), scrollableContent ? /*#__PURE__*/React.createElement("div", {
|
|
91
95
|
"data-status-picker-scroll-container": true,
|
|
92
|
-
className: ax(["_18m91wug _15mtglyw _1bsb1osq",
|
|
96
|
+
className: ax(["_18m91wug _15mtglyw _1bsb1osq", palette === 'extended' || fg('platform_editor_status_popup_suggestions_patch_3') ? "_c71l1lit" : scrollHeightStylesOld[palette !== null && palette !== void 0 ? palette : 'default']])
|
|
93
97
|
}, scrollableContent) : null) : scrollableContent ? /*#__PURE__*/React.createElement("div", {
|
|
94
98
|
"data-status-picker-scroll-container": true,
|
|
95
|
-
className: ax(["_18m91wug _15mtglyw _1bsb1osq",
|
|
99
|
+
className: ax(["_18m91wug _15mtglyw _1bsb1osq", scrollHeightStylesOld.scrolling])
|
|
96
100
|
}, colorPalette, scrollableContent) : colorPalette);
|
|
97
101
|
}
|
|
98
102
|
componentDidUpdate() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ELEMENTS_CHANNEL = 'fabric-elements';
|
|
2
2
|
const packageName = "@atlaskit/status";
|
|
3
|
-
const packageVersion = "5.12.
|
|
3
|
+
const packageVersion = "5.12.8";
|
|
4
4
|
export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
|
|
5
5
|
const statusPayload = {
|
|
6
6
|
...payload,
|
|
@@ -25,11 +25,15 @@ import ColorPalette from './internal/color-palette';
|
|
|
25
25
|
var fieldTextWrapperStyles = null;
|
|
26
26
|
var scrollContainerStyles = null;
|
|
27
27
|
var paletteWrapperStyles = null;
|
|
28
|
-
var
|
|
28
|
+
var scrollHeightStylesOld = {
|
|
29
29
|
scrolling: "_19pk1b66 _c71l4d55 _ca0q1b66",
|
|
30
30
|
default: "_c71l9rak",
|
|
31
31
|
extended: "_c71l5jys"
|
|
32
32
|
};
|
|
33
|
+
|
|
34
|
+
// Remove when cleaning up `platform_editor_status_popup_suggestions_patch_3`: `extended`
|
|
35
|
+
// already always uses this value below, and `default` should too, unconditionally.
|
|
36
|
+
var scrollHeightStyles = null;
|
|
33
37
|
var Picker = /*#__PURE__*/function (_PureComponent) {
|
|
34
38
|
function Picker() {
|
|
35
39
|
var _this;
|
|
@@ -104,10 +108,10 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
|
|
|
104
108
|
className: ax(["_19pku2gc"])
|
|
105
109
|
}, colorPalette), scrollableContent ? /*#__PURE__*/React.createElement("div", {
|
|
106
110
|
"data-status-picker-scroll-container": true,
|
|
107
|
-
className: ax(["_18m91wug _15mtglyw _1bsb1osq",
|
|
111
|
+
className: ax(["_18m91wug _15mtglyw _1bsb1osq", palette === 'extended' || fg('platform_editor_status_popup_suggestions_patch_3') ? "_c71l1lit" : scrollHeightStylesOld[palette !== null && palette !== void 0 ? palette : 'default']])
|
|
108
112
|
}, scrollableContent) : null) : scrollableContent ? /*#__PURE__*/React.createElement("div", {
|
|
109
113
|
"data-status-picker-scroll-container": true,
|
|
110
|
-
className: ax(["_18m91wug _15mtglyw _1bsb1osq",
|
|
114
|
+
className: ax(["_18m91wug _15mtglyw _1bsb1osq", scrollHeightStylesOld.scrolling])
|
|
111
115
|
}, colorPalette, scrollableContent) : colorPalette);
|
|
112
116
|
}
|
|
113
117
|
}, {
|
|
@@ -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.12.
|
|
6
|
+
var packageVersion = "5.12.8";
|
|
7
7
|
export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
8
8
|
return function (payload) {
|
|
9
9
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/status",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.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": "^206.0.0",
|
|
60
60
|
"@atlaskit/tokens": "^20.0.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@compiled/react": "^1.0.2"
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"platform_editor_status_popup_suggestions_patch_2": {
|
|
85
85
|
"type": "boolean"
|
|
86
|
+
},
|
|
87
|
+
"platform_editor_status_popup_suggestions_patch_3": {
|
|
88
|
+
"type": "boolean"
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
}
|
package/tsconfig.json
CHANGED