@atlaskit/task-decision 19.2.16 → 19.2.18

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,18 @@
1
1
  # @atlaskit/task-decision
2
2
 
3
+ ## 19.2.18
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b5aad0477b7bb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b5aad0477b7bb) -
8
+ EDITOR-3433: Fix missing task item id when using progressive renderer.
9
+
10
+ ## 19.2.17
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 19.2.16
4
17
 
5
18
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
@@ -28,8 +28,7 @@ var DecisionItem = function DecisionItem(_ref) {
28
28
  }, /*#__PURE__*/React.createElement(_decision.default, {
29
29
  label: "Decision",
30
30
  spacing: "spacious",
31
- color: "currentColor",
32
- LEGACY_size: "large"
31
+ color: "currentColor"
33
32
  }));
34
33
  return /*#__PURE__*/React.createElement(_Item.default, {
35
34
  appearance: appearance,
@@ -1,3 +1,4 @@
1
1
  ._19bvidpf{padding-left:0}
2
2
  ._19pk1b66{margin-top:var(--ds-space-050,4px)}
3
- ._2mzuglyw{list-style-type:none}
3
+ ._2mzuglyw{list-style-type:none}
4
+ ._j6mf1b66 div+div{margin-top:var(--ds-space-050,4px)}
@@ -11,7 +11,9 @@ var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
12
  var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
13
13
  var _i18n = require("./i18n");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _reactIntlNext = require("react-intl-next");
16
+ var oldListStyles = null;
15
17
  var listStyles = null;
16
18
  var taskListStyles = null;
17
19
  var TaskList = function TaskList(_ref) {
@@ -34,7 +36,7 @@ var TaskList = function TaskList(_ref) {
34
36
  role: "group",
35
37
  "data-task-list-local-id": "",
36
38
  "aria-label": formatMessage(_i18n.messages.fieldsetLabel),
37
- className: (0, _runtime.ax)(["_2mzuglyw _19bvidpf"])
39
+ className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform_editor_fix_missing_task_id') ? "_2mzuglyw _19bvidpf _j6mf1b66" : "_2mzuglyw _19bvidpf"])
38
40
  }, _react.default.Children.map(children, function (child, idx) {
39
41
  var _ref2 = child.props,
40
42
  localId = _ref2.localId;
@@ -44,7 +46,10 @@ var TaskList = function TaskList(_ref) {
44
46
  listSize: listSize,
45
47
  position: idx
46
48
  }
47
- }, /*#__PURE__*/_react.default.createElement("div", {
49
+ },
50
+ /* The data-task-local-id attribute will be moved to the Editor renderer node
51
+ as the localId isn't guaranteed to be in the direct React child's props) */
52
+ (0, _platformFeatureFlags.fg)('platform_editor_fix_missing_task_id') ? child : /*#__PURE__*/_react.default.createElement("div", {
48
53
  key: idx,
49
54
  "data-task-local-id": localId || '',
50
55
  className: (0, _runtime.ax)(["_19pk1b66"])
@@ -20,8 +20,7 @@ const DecisionItem = ({
20
20
  }, /*#__PURE__*/React.createElement(DecisionIcon, {
21
21
  label: "Decision",
22
22
  spacing: "spacious",
23
- color: "currentColor",
24
- LEGACY_size: "large"
23
+ color: "currentColor"
25
24
  }));
26
25
  return /*#__PURE__*/React.createElement(Item, {
27
26
  appearance: appearance,
@@ -1,3 +1,4 @@
1
1
  ._19bvidpf{padding-left:0}
2
2
  ._19pk1b66{margin-top:var(--ds-space-050,4px)}
3
- ._2mzuglyw{list-style-type:none}
3
+ ._2mzuglyw{list-style-type:none}
4
+ ._j6mf1b66 div+div{margin-top:var(--ds-space-050,4px)}
@@ -4,7 +4,9 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
6
6
  import { messages } from './i18n';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { useIntl } from 'react-intl-next';
9
+ const oldListStyles = null;
8
10
  const listStyles = null;
9
11
  const taskListStyles = null;
10
12
  const TaskList = ({
@@ -29,7 +31,7 @@ const TaskList = ({
29
31
  role: "group",
30
32
  "data-task-list-local-id": "",
31
33
  "aria-label": formatMessage(messages.fieldsetLabel),
32
- className: ax(["_2mzuglyw _19bvidpf"])
34
+ className: ax([fg('platform_editor_fix_missing_task_id') ? "_2mzuglyw _19bvidpf _j6mf1b66" : "_2mzuglyw _19bvidpf"])
33
35
  }, React.Children.map(children, (child, idx) => {
34
36
  const {
35
37
  localId
@@ -40,7 +42,10 @@ const TaskList = ({
40
42
  listSize,
41
43
  position: idx
42
44
  }
43
- }, /*#__PURE__*/React.createElement("div", {
45
+ },
46
+ /* The data-task-local-id attribute will be moved to the Editor renderer node
47
+ as the localId isn't guaranteed to be in the direct React child's props) */
48
+ fg('platform_editor_fix_missing_task_id') ? child : /*#__PURE__*/React.createElement("div", {
44
49
  key: idx,
45
50
  "data-task-local-id": localId || '',
46
51
  className: ax(["_19pk1b66"])
@@ -19,8 +19,7 @@ var DecisionItem = function DecisionItem(_ref) {
19
19
  }, /*#__PURE__*/React.createElement(DecisionIcon, {
20
20
  label: "Decision",
21
21
  spacing: "spacious",
22
- color: "currentColor",
23
- LEGACY_size: "large"
22
+ color: "currentColor"
24
23
  }));
25
24
  return /*#__PURE__*/React.createElement(Item, {
26
25
  appearance: appearance,
@@ -1,3 +1,4 @@
1
1
  ._19bvidpf{padding-left:0}
2
2
  ._19pk1b66{margin-top:var(--ds-space-050,4px)}
3
- ._2mzuglyw{list-style-type:none}
3
+ ._2mzuglyw{list-style-type:none}
4
+ ._j6mf1b66 div+div{margin-top:var(--ds-space-050,4px)}
@@ -4,7 +4,9 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
6
6
  import { messages } from './i18n';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { useIntl } from 'react-intl-next';
9
+ var oldListStyles = null;
8
10
  var listStyles = null;
9
11
  var taskListStyles = null;
10
12
  var TaskList = function TaskList(_ref) {
@@ -27,7 +29,7 @@ var TaskList = function TaskList(_ref) {
27
29
  role: "group",
28
30
  "data-task-list-local-id": "",
29
31
  "aria-label": formatMessage(messages.fieldsetLabel),
30
- className: ax(["_2mzuglyw _19bvidpf"])
32
+ className: ax([fg('platform_editor_fix_missing_task_id') ? "_2mzuglyw _19bvidpf _j6mf1b66" : "_2mzuglyw _19bvidpf"])
31
33
  }, React.Children.map(children, function (child, idx) {
32
34
  var _ref2 = child.props,
33
35
  localId = _ref2.localId;
@@ -37,7 +39,10 @@ var TaskList = function TaskList(_ref) {
37
39
  listSize: listSize,
38
40
  position: idx
39
41
  }
40
- }, /*#__PURE__*/React.createElement("div", {
42
+ },
43
+ /* The data-task-local-id attribute will be moved to the Editor renderer node
44
+ as the localId isn't guaranteed to be in the direct React child's props) */
45
+ fg('platform_editor_fix_missing_task_id') ? child : /*#__PURE__*/React.createElement("div", {
41
46
  key: idx,
42
47
  "data-task-local-id": localId || '',
43
48
  className: ax(["_19pk1b66"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/task-decision",
3
- "version": "19.2.16",
3
+ "version": "19.2.18",
4
4
  "description": "Tasks and decisions react components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,9 +37,9 @@
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.1.0",
40
- "@atlaskit/icon": "^29.3.0",
40
+ "@atlaskit/icon": "^29.4.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tokens": "^8.6.0",
42
+ "@atlaskit/tokens": "^9.1.0",
43
43
  "@atlaskit/util-service-support": "^6.3.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@compiled/react": "^0.18.6",
@@ -54,10 +54,10 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@af/visual-regression": "workspace:^",
57
- "@atlaskit/analytics-listeners": "^9.1.0",
57
+ "@atlaskit/analytics-listeners": "^9.2.0",
58
58
  "@atlaskit/elements-test-helpers": "workspace:^",
59
59
  "@atlaskit/ssr": "workspace:^",
60
- "@atlaskit/util-data-test": "^18.3.0",
60
+ "@atlaskit/util-data-test": "^18.4.0",
61
61
  "@testing-library/react": "^13.4.0",
62
62
  "@testing-library/user-event": "^14.4.3",
63
63
  "@types/url-search-params": "^0.10.0",
@@ -79,5 +79,10 @@
79
79
  "compiled"
80
80
  ]
81
81
  }
82
+ },
83
+ "platform-feature-flags": {
84
+ "platform_editor_fix_missing_task_id": {
85
+ "type": "boolean"
86
+ }
82
87
  }
83
88
  }