@atlaskit/link-datasource 4.1.1 → 4.1.3
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 +15 -0
- package/dist/cjs/ui/common/modal/popup-select/formatOptionLabel.js +2 -0
- package/dist/cjs/ui/issue-like-table/edit-type/status/index.js +5 -1
- package/dist/es2019/ui/common/modal/popup-select/formatOptionLabel.js +2 -0
- package/dist/es2019/ui/issue-like-table/edit-type/status/index.js +11 -5
- package/dist/esm/ui/common/modal/popup-select/formatOptionLabel.js +2 -0
- package/dist/esm/ui/issue-like-table/edit-type/status/index.js +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#130107](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130107)
|
|
8
|
+
[`630a33a18f844`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/630a33a18f844) -
|
|
9
|
+
[ux] Update status lozenge to bold in edit mode and modal behind platform-component-visual-refresh
|
|
10
|
+
fg
|
|
11
|
+
|
|
12
|
+
## 4.1.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 4.1.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -13,6 +13,7 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
|
|
|
13
13
|
var _css = require("@atlaskit/css");
|
|
14
14
|
var _peopleGroup = _interopRequireDefault(require("@atlaskit/icon/core/migration/people-group"));
|
|
15
15
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
18
|
var styles = {
|
|
18
19
|
commonLabelStyles: "_1reo15vq _18m915vq _1bto1l2s",
|
|
@@ -40,6 +41,7 @@ var LozengeOptionLabel = function LozengeOptionLabel(_ref2) {
|
|
|
40
41
|
var data = _ref2.data;
|
|
41
42
|
return /*#__PURE__*/_react.default.createElement(_lozenge.default, {
|
|
42
43
|
appearance: data.appearance,
|
|
44
|
+
isBold: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? true : false,
|
|
43
45
|
testId: "basic-filter-popup-select-option--lozenge"
|
|
44
46
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
45
47
|
xcss: styles.commonLabelStyles
|
|
@@ -10,6 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _layering = require("@atlaskit/layering");
|
|
12
12
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _select = _interopRequireDefault(require("@atlaskit/select"));
|
|
14
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
15
16
|
var _ufoExperiences = require("../../../../analytics/ufoExperiences");
|
|
@@ -62,11 +63,14 @@ var StatusEditType = function StatusEditType(props) {
|
|
|
62
63
|
value: currentValue === null || currentValue === void 0 || (_currentValue$values = currentValue.values) === null || _currentValue$values === void 0 ? void 0 : _currentValue$values[0],
|
|
63
64
|
labelId: labelId,
|
|
64
65
|
formatOptionLabel: function formatOptionLabel(option) {
|
|
66
|
+
var _option$style, _option$style2;
|
|
65
67
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
66
68
|
content: option.text
|
|
67
69
|
}, /*#__PURE__*/_react.default.createElement(_lozenge.default, (0, _extends2.default)({
|
|
68
70
|
testId: "inline-edit-status-option-".concat(option.text)
|
|
69
|
-
}, option.style
|
|
71
|
+
}, option.style, {
|
|
72
|
+
isBold: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? ((_option$style = option.style) === null || _option$style === void 0 ? void 0 : _option$style.isBold) !== false : (_option$style2 = option.style) === null || _option$style2 === void 0 ? void 0 : _option$style2.isBold
|
|
73
|
+
}), option.text));
|
|
70
74
|
},
|
|
71
75
|
getOptionLabel: function getOptionLabel(option) {
|
|
72
76
|
return option.text;
|
|
@@ -6,6 +6,7 @@ import Avatar from '@atlaskit/avatar';
|
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
7
|
import PeopleGroupIcon from '@atlaskit/icon/core/migration/people-group';
|
|
8
8
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
9
10
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
10
11
|
const styles = {
|
|
11
12
|
commonLabelStyles: "_1reo15vq _18m915vq _1bto1l2s",
|
|
@@ -37,6 +38,7 @@ const LozengeOptionLabel = ({
|
|
|
37
38
|
}) => {
|
|
38
39
|
return /*#__PURE__*/React.createElement(Lozenge, {
|
|
39
40
|
appearance: data.appearance,
|
|
41
|
+
isBold: fg('platform-component-visual-refresh') ? true : false,
|
|
40
42
|
testId: "basic-filter-popup-select-option--lozenge"
|
|
41
43
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
42
44
|
xcss: styles.commonLabelStyles
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { Layering } from '@atlaskit/layering';
|
|
4
4
|
import Lozenge from '@atlaskit/lozenge';
|
|
5
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
5
6
|
import Select from '@atlaskit/select';
|
|
6
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
8
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
@@ -52,11 +53,16 @@ const StatusEditType = props => {
|
|
|
52
53
|
getOptionValue: option => option.text,
|
|
53
54
|
value: currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$values = currentValue.values) === null || _currentValue$values === void 0 ? void 0 : _currentValue$values[0],
|
|
54
55
|
labelId: labelId,
|
|
55
|
-
formatOptionLabel: option =>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
formatOptionLabel: option => {
|
|
57
|
+
var _option$style, _option$style2;
|
|
58
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
59
|
+
content: option.text
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Lozenge, _extends({
|
|
61
|
+
testId: `inline-edit-status-option-${option.text}`
|
|
62
|
+
}, option.style, {
|
|
63
|
+
isBold: fg('platform-component-visual-refresh') ? ((_option$style = option.style) === null || _option$style === void 0 ? void 0 : _option$style.isBold) !== false : (_option$style2 = option.style) === null || _option$style2 === void 0 ? void 0 : _option$style2.isBold
|
|
64
|
+
}), option.text));
|
|
65
|
+
},
|
|
60
66
|
getOptionLabel: option => option.text,
|
|
61
67
|
onChange: e => props.setEditValues({
|
|
62
68
|
type: 'status',
|
|
@@ -6,6 +6,7 @@ import Avatar from '@atlaskit/avatar';
|
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
7
|
import PeopleGroupIcon from '@atlaskit/icon/core/migration/people-group';
|
|
8
8
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
9
10
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
10
11
|
var styles = {
|
|
11
12
|
commonLabelStyles: "_1reo15vq _18m915vq _1bto1l2s",
|
|
@@ -33,6 +34,7 @@ var LozengeOptionLabel = function LozengeOptionLabel(_ref2) {
|
|
|
33
34
|
var data = _ref2.data;
|
|
34
35
|
return /*#__PURE__*/React.createElement(Lozenge, {
|
|
35
36
|
appearance: data.appearance,
|
|
37
|
+
isBold: fg('platform-component-visual-refresh') ? true : false,
|
|
36
38
|
testId: "basic-filter-popup-select-option--lozenge"
|
|
37
39
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
38
40
|
xcss: styles.commonLabelStyles
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { Layering } from '@atlaskit/layering';
|
|
4
4
|
import Lozenge from '@atlaskit/lozenge';
|
|
5
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
5
6
|
import Select from '@atlaskit/select';
|
|
6
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
8
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
@@ -52,11 +53,14 @@ var StatusEditType = function StatusEditType(props) {
|
|
|
52
53
|
value: currentValue === null || currentValue === void 0 || (_currentValue$values = currentValue.values) === null || _currentValue$values === void 0 ? void 0 : _currentValue$values[0],
|
|
53
54
|
labelId: labelId,
|
|
54
55
|
formatOptionLabel: function formatOptionLabel(option) {
|
|
56
|
+
var _option$style, _option$style2;
|
|
55
57
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
56
58
|
content: option.text
|
|
57
59
|
}, /*#__PURE__*/React.createElement(Lozenge, _extends({
|
|
58
60
|
testId: "inline-edit-status-option-".concat(option.text)
|
|
59
|
-
}, option.style
|
|
61
|
+
}, option.style, {
|
|
62
|
+
isBold: fg('platform-component-visual-refresh') ? ((_option$style = option.style) === null || _option$style === void 0 ? void 0 : _option$style.isBold) !== false : (_option$style2 = option.style) === null || _option$style2 === void 0 ? void 0 : _option$style2.isBold
|
|
63
|
+
}), option.text));
|
|
60
64
|
},
|
|
61
65
|
getOptionLabel: function getOptionLabel(option) {
|
|
62
66
|
return option.text;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
82
82
|
"@atlaskit/spinner": "^18.0.0",
|
|
83
83
|
"@atlaskit/tag": "^14.0.0",
|
|
84
|
-
"@atlaskit/temp-nav-app-icons": "^0.
|
|
84
|
+
"@atlaskit/temp-nav-app-icons": "^0.6.0",
|
|
85
85
|
"@atlaskit/textfield": "^8.0.0",
|
|
86
86
|
"@atlaskit/theme": "^18.0.0",
|
|
87
87
|
"@atlaskit/tokens": "^4.5.0",
|