@atlaskit/task-decision 19.0.3 → 19.1.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 +14 -0
- package/dist/cjs/components/TaskItem.js +13 -2
- package/dist/cjs/components/compiled/TaskItem.js +12 -2
- package/dist/es2019/components/TaskItem.js +9 -1
- package/dist/es2019/components/compiled/TaskItem.js +10 -1
- package/dist/esm/components/TaskItem.js +11 -1
- package/dist/esm/components/compiled/TaskItem.js +12 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 19.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#126262](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126262)
|
|
8
|
+
[`c48dfdc45873d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c48dfdc45873d) -
|
|
9
|
+
FIX: fixes issue where unchecked TaskItems do not render correctly
|
|
10
|
+
|
|
11
|
+
## 19.0.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 19.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,10 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _react2 = require("@emotion/react");
|
|
12
|
+
var _baseNew = require("@atlaskit/icon/base-new");
|
|
11
13
|
var _checkboxChecked = _interopRequireDefault(require("@atlaskit/icon/core/checkbox-checked"));
|
|
12
|
-
var _checkboxUnchecked = _interopRequireDefault(require("@atlaskit/icon/core/checkbox-unchecked"));
|
|
13
14
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
14
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
15
16
|
var _analytics = require("../analytics");
|
|
@@ -23,6 +24,16 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
23
24
|
|
|
24
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
26
|
|
|
27
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
30
|
+
|
|
31
|
+
var CheckboxUncheckedIcon = function CheckboxUncheckedIcon(props) {
|
|
32
|
+
return (0, _react2.jsx)(_baseNew.Icon, (0, _extends2.default)({
|
|
33
|
+
dangerouslySetGlyph: "<rect width=\"12.5\" height=\"12.5\" x=\"1.75\" y=\"1.75\" stroke=\"currentcolor\" stroke-width=\"1.5\" rx=\"1.25\"/>",
|
|
34
|
+
type: 'core'
|
|
35
|
+
}, props));
|
|
36
|
+
};
|
|
26
37
|
var taskCount = 0;
|
|
27
38
|
var getCheckBoxId = function getCheckBoxId(localId) {
|
|
28
39
|
return "".concat(localId, "-").concat(taskCount++);
|
|
@@ -93,7 +104,7 @@ var TaskItem = function TaskItem(props) {
|
|
|
93
104
|
ref: inputRef
|
|
94
105
|
}), isDone ? (0, _react2.jsx)(_checkboxChecked.default, {
|
|
95
106
|
label: ""
|
|
96
|
-
}) : (0, _react2.jsx)(
|
|
107
|
+
}) : (0, _react2.jsx)(CheckboxUncheckedIcon, {
|
|
97
108
|
label: ""
|
|
98
109
|
}));
|
|
99
110
|
_react.default.useEffect(function () {
|
|
@@ -9,14 +9,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.default = void 0;
|
|
10
10
|
require("./TaskItem.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _baseNew = require("@atlaskit/icon/base-new");
|
|
13
15
|
var _checkboxChecked = _interopRequireDefault(require("@atlaskit/icon/core/checkbox-checked"));
|
|
14
|
-
var _checkboxUnchecked = _interopRequireDefault(require("@atlaskit/icon/core/checkbox-unchecked"));
|
|
15
16
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
16
17
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
17
18
|
var _analytics = require("../../analytics");
|
|
18
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
22
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
23
|
+
var CheckboxUncheckedIcon = function CheckboxUncheckedIcon(props) {
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_baseNew.Icon, (0, _extends2.default)({
|
|
25
|
+
dangerouslySetGlyph: "<rect width=\"12.5\" height=\"12.5\" x=\"1.75\" y=\"1.75\" stroke=\"currentcolor\" stroke-width=\"1.5\" rx=\"1.25\"/>",
|
|
26
|
+
type: 'core'
|
|
27
|
+
}, props));
|
|
28
|
+
};
|
|
29
|
+
|
|
20
30
|
/**
|
|
21
31
|
* References packages/design-system/checkbox/src/checkbox.tsx
|
|
22
32
|
* To be used until mobile editor does not require legacy themed() API anymore,
|
|
@@ -93,7 +103,7 @@ var TaskItem = function TaskItem(props) {
|
|
|
93
103
|
ref: inputRef
|
|
94
104
|
}), isDone ? /*#__PURE__*/_react.default.createElement(_checkboxChecked.default, {
|
|
95
105
|
label: ""
|
|
96
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
106
|
+
}) : /*#__PURE__*/_react.default.createElement(CheckboxUncheckedIcon, {
|
|
97
107
|
label: ""
|
|
98
108
|
}));
|
|
99
109
|
_react.default.useEffect(function () {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
@@ -5,12 +6,19 @@
|
|
|
5
6
|
import React, { useMemo, useRef } from 'react';
|
|
6
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
8
|
import { jsx } from '@emotion/react';
|
|
9
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
10
|
+
import { Icon } from '@atlaskit/icon/base-new';
|
|
11
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
12
|
+
|
|
8
13
|
import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
|
|
9
|
-
import CheckboxUncheckedIcon from '@atlaskit/icon/core/checkbox-unchecked';
|
|
10
14
|
import Item from './Item';
|
|
11
15
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
12
16
|
import { createAndFireEventInElementsChannel } from '../analytics';
|
|
13
17
|
import { checkboxStyles } from './styles';
|
|
18
|
+
const CheckboxUncheckedIcon = props => jsx(Icon, _extends({
|
|
19
|
+
dangerouslySetGlyph: `<rect width="12.5" height="12.5" x="1.75" y="1.75" stroke="currentcolor" stroke-width="1.5" rx="1.25"/>`,
|
|
20
|
+
type: 'core'
|
|
21
|
+
}, props));
|
|
14
22
|
let taskCount = 0;
|
|
15
23
|
const getCheckBoxId = localId => `${localId}-${taskCount++}`;
|
|
16
24
|
const TaskItem = props => {
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
/* TaskItem.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./TaskItem.compiled.css";
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
5
|
import React, { useMemo, useRef } from 'react';
|
|
6
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
7
|
+
import { Icon } from '@atlaskit/icon/base-new';
|
|
8
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
9
|
+
|
|
5
10
|
import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
|
|
6
|
-
import CheckboxUncheckedIcon from '@atlaskit/icon/core/checkbox-unchecked';
|
|
7
11
|
import Item from './Item';
|
|
8
12
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
13
|
import { createAndFireEventInElementsChannel } from '../../analytics';
|
|
14
|
+
const CheckboxUncheckedIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
15
|
+
dangerouslySetGlyph: `<rect width="12.5" height="12.5" x="1.75" y="1.75" stroke="currentcolor" stroke-width="1.5" rx="1.25"/>`,
|
|
16
|
+
type: 'core'
|
|
17
|
+
}, props));
|
|
18
|
+
|
|
10
19
|
/**
|
|
11
20
|
* References packages/design-system/checkbox/src/checkbox.tsx
|
|
12
21
|
* To be used until mobile editor does not require legacy themed() API anymore,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
@@ -5,12 +6,21 @@
|
|
|
5
6
|
import React, { useMemo, useRef } from 'react';
|
|
6
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
8
|
import { jsx } from '@emotion/react';
|
|
9
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
10
|
+
import { Icon } from '@atlaskit/icon/base-new';
|
|
11
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
12
|
+
|
|
8
13
|
import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
|
|
9
|
-
import CheckboxUncheckedIcon from '@atlaskit/icon/core/checkbox-unchecked';
|
|
10
14
|
import Item from './Item';
|
|
11
15
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
12
16
|
import { createAndFireEventInElementsChannel } from '../analytics';
|
|
13
17
|
import { checkboxStyles } from './styles';
|
|
18
|
+
var CheckboxUncheckedIcon = function CheckboxUncheckedIcon(props) {
|
|
19
|
+
return jsx(Icon, _extends({
|
|
20
|
+
dangerouslySetGlyph: "<rect width=\"12.5\" height=\"12.5\" x=\"1.75\" y=\"1.75\" stroke=\"currentcolor\" stroke-width=\"1.5\" rx=\"1.25\"/>",
|
|
21
|
+
type: 'core'
|
|
22
|
+
}, props));
|
|
23
|
+
};
|
|
14
24
|
var taskCount = 0;
|
|
15
25
|
var getCheckBoxId = function getCheckBoxId(localId) {
|
|
16
26
|
return "".concat(localId, "-").concat(taskCount++);
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
/* TaskItem.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./TaskItem.compiled.css";
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
5
|
import React, { useMemo, useRef } from 'react';
|
|
6
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
7
|
+
import { Icon } from '@atlaskit/icon/base-new';
|
|
8
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
9
|
+
|
|
5
10
|
import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
|
|
6
|
-
import CheckboxUncheckedIcon from '@atlaskit/icon/core/checkbox-unchecked';
|
|
7
11
|
import Item from './Item';
|
|
8
12
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
13
|
import { createAndFireEventInElementsChannel } from '../../analytics';
|
|
14
|
+
var CheckboxUncheckedIcon = function CheckboxUncheckedIcon(props) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
16
|
+
dangerouslySetGlyph: "<rect width=\"12.5\" height=\"12.5\" x=\"1.75\" y=\"1.75\" stroke=\"currentcolor\" stroke-width=\"1.5\" rx=\"1.25\"/>",
|
|
17
|
+
type: 'core'
|
|
18
|
+
}, props));
|
|
19
|
+
};
|
|
20
|
+
|
|
10
21
|
/**
|
|
11
22
|
* References packages/design-system/checkbox/src/checkbox.tsx
|
|
12
23
|
* To be used until mobile editor does not require legacy themed() API anymore,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "19.0
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
46
|
-
"@atlaskit/icon": "^
|
|
46
|
+
"@atlaskit/icon": "^25.0.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|
|
48
48
|
"@atlaskit/theme": "^18.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^4.
|
|
50
|
-
"@atlaskit/util-service-support": "^6.
|
|
49
|
+
"@atlaskit/tokens": "^4.4.0",
|
|
50
|
+
"@atlaskit/util-service-support": "^6.3.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@compiled/react": "^0.18.2",
|
|
53
53
|
"@emotion/react": "^11.7.1",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"url-search-params": "^0.10.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@af/visual-regression": "
|
|
62
|
+
"@af/visual-regression": "^1.3.0",
|
|
63
63
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
64
64
|
"@atlaskit/elements-test-helpers": "^0.9.0",
|
|
65
|
-
"@atlaskit/ssr": "
|
|
65
|
+
"@atlaskit/ssr": "^0.4.0",
|
|
66
66
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
67
67
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
68
68
|
"@emotion/jest": "^11.8.0",
|