@atlaskit/task-decision 20.1.19 → 20.2.1
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,35 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 20.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 20.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`f89de6a3f94b5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f89de6a3f94b5) -
|
|
14
|
+
Clean up stale experiment editor_a11y_decision_aria_label. Decision items now always render
|
|
15
|
+
dynamic aria-labels based on empty/filled state.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 20.1.21
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
27
|
+
## 20.1.20
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
3
33
|
## 20.1.19
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _reactIntl = require("react-intl");
|
|
14
14
|
var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
15
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
15
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
17
16
|
var _i18n = require("./i18n");
|
|
18
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -31,7 +30,7 @@ var DecisionItem = function DecisionItem(_ref) {
|
|
|
31
30
|
contentEditable: false,
|
|
32
31
|
className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dlexct _4t3i7vkz _1bsb7vkz _19pk1b66 _2hwxutpp _otyridpf _18u0idpf _syaz4pcx _1e0c1txw _4cvr1h6o _1bah1h6o", showPlaceholder && "_syazdgkc"])
|
|
33
32
|
}, /*#__PURE__*/React.createElement(_decision.default, {
|
|
34
|
-
label:
|
|
33
|
+
label: showPlaceholder && children === undefined ? formatMessage(_i18n.messages.undefinedDecisionAriaLabel) : formatMessage(_i18n.messages.decisionAriaLabel),
|
|
35
34
|
spacing: "spacious",
|
|
36
35
|
color: "currentColor"
|
|
37
36
|
}));
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import Item from './Item';
|
|
9
8
|
import { messages } from './i18n';
|
|
10
9
|
const iconStyles = null;
|
|
@@ -24,7 +23,7 @@ const DecisionItem = ({
|
|
|
24
23
|
contentEditable: false,
|
|
25
24
|
className: ax(["_16jlidpf _1o9zidpf _i0dlexct _4t3i7vkz _1bsb7vkz _19pk1b66 _2hwxutpp _otyridpf _18u0idpf _syaz4pcx _1e0c1txw _4cvr1h6o _1bah1h6o", showPlaceholder && "_syazdgkc"])
|
|
26
25
|
}, /*#__PURE__*/React.createElement(DecisionIcon, {
|
|
27
|
-
label:
|
|
26
|
+
label: showPlaceholder && children === undefined ? formatMessage(messages.undefinedDecisionAriaLabel) : formatMessage(messages.decisionAriaLabel),
|
|
28
27
|
spacing: "spacious",
|
|
29
28
|
color: "currentColor"
|
|
30
29
|
}));
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import Item from './Item';
|
|
9
8
|
import { messages } from './i18n';
|
|
10
9
|
var iconStyles = null;
|
|
@@ -22,7 +21,7 @@ var DecisionItem = function DecisionItem(_ref) {
|
|
|
22
21
|
contentEditable: false,
|
|
23
22
|
className: ax(["_16jlidpf _1o9zidpf _i0dlexct _4t3i7vkz _1bsb7vkz _19pk1b66 _2hwxutpp _otyridpf _18u0idpf _syaz4pcx _1e0c1txw _4cvr1h6o _1bah1h6o", showPlaceholder && "_syazdgkc"])
|
|
24
23
|
}, /*#__PURE__*/React.createElement(DecisionIcon, {
|
|
25
|
-
label:
|
|
24
|
+
label: showPlaceholder && children === undefined ? formatMessage(messages.undefinedDecisionAriaLabel) : formatMessage(messages.decisionAriaLabel),
|
|
26
25
|
spacing: "spacious",
|
|
27
26
|
color: "currentColor"
|
|
28
27
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "20.1
|
|
3
|
+
"version": "20.2.1",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
65
65
|
"@atlaskit/analytics-next": "^11.3.0",
|
|
66
66
|
"@atlaskit/icon": "^35.4.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^99.0.0",
|
|
68
68
|
"@atlaskit/tokens": "^13.3.0",
|
|
69
69
|
"@atlaskit/util-service-support": "^6.4.0",
|
|
70
70
|
"@babel/runtime": "^7.0.0",
|