@atlaskit/task-decision 19.3.33 → 20.0.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 +21 -0
- package/dist/cjs/components/DecisionItem.js +2 -2
- package/dist/cjs/components/TaskItem.js +2 -2
- package/dist/cjs/components/TaskList.js +2 -2
- package/dist/cjs/components/i18n.js +2 -2
- package/dist/es2019/components/DecisionItem.js +1 -1
- package/dist/es2019/components/TaskItem.js +1 -1
- package/dist/es2019/components/TaskList.js +1 -1
- package/dist/es2019/components/i18n.js +1 -1
- package/dist/esm/components/DecisionItem.js +1 -1
- package/dist/esm/components/TaskItem.js +1 -1
- package/dist/esm/components/TaskList.js +1 -1
- package/dist/esm/components/i18n.js +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 20.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 20.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`deb3d6a6498e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deb3d6a6498e8) -
|
|
14
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
15
|
+
|
|
16
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
17
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
18
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
19
|
+
|
|
20
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
21
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
22
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
23
|
+
|
|
3
24
|
## 19.3.33
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ exports.default = void 0;
|
|
|
10
10
|
require("./DecisionItem.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
15
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
16
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
@@ -25,7 +25,7 @@ var DecisionItem = function DecisionItem(_ref) {
|
|
|
25
25
|
placeholder = _ref.placeholder,
|
|
26
26
|
showPlaceholder = _ref.showPlaceholder,
|
|
27
27
|
dataAttributes = _ref.dataAttributes;
|
|
28
|
-
var _useIntl = (0,
|
|
28
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
29
29
|
formatMessage = _useIntl.formatMessage;
|
|
30
30
|
var icon = /*#__PURE__*/React.createElement("span", {
|
|
31
31
|
contentEditable: false,
|
|
@@ -11,7 +11,7 @@ require("./TaskItem.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _baseNew = require("@atlaskit/icon/base-new");
|
|
16
16
|
var _checkboxChecked = _interopRequireDefault(require("@atlaskit/icon/core/checkbox-checked"));
|
|
17
17
|
var _i18n = require("./i18n");
|
|
@@ -53,7 +53,7 @@ var TaskItem = function TaskItem(props) {
|
|
|
53
53
|
onClick = props.onClick,
|
|
54
54
|
createAnalyticsEvent = props.createAnalyticsEvent,
|
|
55
55
|
inputRefFromProps = props.inputRef;
|
|
56
|
-
var _useIntl = (0,
|
|
56
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
57
57
|
formatMessage = _useIntl.formatMessage;
|
|
58
58
|
var checkBoxId = (0, _react.useMemo)(function () {
|
|
59
59
|
return getCheckBoxId(taskId);
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
|
|
13
13
|
var _i18n = require("./i18n");
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var oldListStyles = null;
|
|
17
17
|
var listStyles = null;
|
|
18
18
|
var taskListStyles = null;
|
|
@@ -20,7 +20,7 @@ var TaskList = function TaskList(_ref) {
|
|
|
20
20
|
var listId = _ref.listId,
|
|
21
21
|
children = _ref.children;
|
|
22
22
|
var listSize = _react.default.Children.count(children);
|
|
23
|
-
var _useIntl = (0,
|
|
23
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
24
24
|
formatMessage = _useIntl.formatMessage;
|
|
25
25
|
if (!children) {
|
|
26
26
|
return null;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
fieldsetLabel: {
|
|
10
10
|
id: 'fabric.editor.fieldsetLabel',
|
|
11
11
|
defaultMessage: 'Action Item List',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./DecisionItem.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import Item from './Item';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./TaskItem.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useMemo, useRef } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
8
8
|
import { Icon } from '@atlaskit/icon/base-new';
|
|
9
9
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
6
6
|
import { messages } from './i18n';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import { useIntl } from 'react-intl
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
9
|
const oldListStyles = null;
|
|
10
10
|
const listStyles = null;
|
|
11
11
|
const taskListStyles = null;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./DecisionItem.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import Item from './Item';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./TaskItem.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useMemo, useRef } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
8
8
|
import { Icon } from '@atlaskit/icon/base-new';
|
|
9
9
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
6
6
|
import { messages } from './i18n';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import { useIntl } from 'react-intl
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
9
|
var oldListStyles = null;
|
|
10
10
|
var listStyles = null;
|
|
11
11
|
var taskListStyles = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"@atlaskit/afm-i18n-platform-elements-task-decision": "2.7.0",
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
39
39
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
40
|
-
"@atlaskit/icon": "^34.
|
|
40
|
+
"@atlaskit/icon": "^34.2.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^63.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^13.0.0",
|
|
44
44
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@compiled/react": "^0.20.0",
|
|
47
|
-
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
48
47
|
"use-callback-ref": "^1.2.3",
|
|
49
48
|
"uuid": "^3.1.0"
|
|
50
49
|
},
|
|
51
50
|
"peerDependencies": {
|
|
52
51
|
"react": "^18.2.0",
|
|
53
52
|
"react-dom": "^18.2.0",
|
|
53
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0",
|
|
54
54
|
"url-search-params": "^0.10.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"date-fns": "^2.17.0",
|
|
67
67
|
"enzyme": "^3.10.0",
|
|
68
68
|
"fetch-mock": "^8.0.0",
|
|
69
|
+
"react-intl": "^6.6.2",
|
|
69
70
|
"sinon": "^2.2.0",
|
|
70
71
|
"url-search-params": "^0.10.0"
|
|
71
72
|
},
|