@atlaskit/task-decision 19.1.0 → 19.1.2
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 +17 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/components/ResourcedTaskItem.js +25 -2
- package/dist/es2019/components/ResourcedTaskItem.js +25 -2
- package/dist/esm/components/ResourcedTaskItem.js +25 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 19.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#129972](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/129972)
|
|
8
|
+
[`b2d69a39e6687`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2d69a39e6687) -
|
|
9
|
+
Update `@compiled/react` dependency for improved type checking support.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 19.1.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#128971](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128971)
|
|
17
|
+
[`35475657b7efd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/35475657b7efd) -
|
|
18
|
+
fix cycle import issue for ResourcedTaskItem
|
|
19
|
+
|
|
3
20
|
## 19.1.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
{
|
|
27
27
|
"path": "../../../design-system/icon/afm-post-office/tsconfig.json"
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
|
|
31
|
+
},
|
|
29
32
|
{
|
|
30
33
|
"path": "../../../platform/feature-flags-react/afm-post-office/tsconfig.json"
|
|
31
34
|
},
|
|
@@ -13,8 +13,10 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
-
var
|
|
16
|
+
var _TaskItem = _interopRequireDefault(require("./TaskItem"));
|
|
17
|
+
var _TaskItem2 = _interopRequireDefault(require("./compiled/TaskItem"));
|
|
17
18
|
var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
20
|
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
21
|
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; }
|
|
20
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -168,11 +170,32 @@ var ResourcedTaskItem = exports.default = /*#__PURE__*/function (_PureComponent)
|
|
|
168
170
|
isRenderer = _this$props3.isRenderer,
|
|
169
171
|
isFocused = _this$props3.isFocused,
|
|
170
172
|
inputRef = _this$props3.inputRef;
|
|
173
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_css_migrate_stage_1')) {
|
|
174
|
+
return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
|
|
175
|
+
data: {
|
|
176
|
+
objectAri: objectAri
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/_react.default.createElement(_TaskItem2.default, {
|
|
179
|
+
isDone: isDone,
|
|
180
|
+
isRenderer: isRenderer,
|
|
181
|
+
isFocused: isFocused,
|
|
182
|
+
taskId: taskId,
|
|
183
|
+
onChange: this.handleOnChange,
|
|
184
|
+
onClick: this.handleOnClick,
|
|
185
|
+
appearance: appearance,
|
|
186
|
+
contentRef: contentRef,
|
|
187
|
+
showPlaceholder: showPlaceholder,
|
|
188
|
+
placeholder: placeholder,
|
|
189
|
+
disabled: disabled,
|
|
190
|
+
dataAttributes: dataAttributes,
|
|
191
|
+
inputRef: inputRef
|
|
192
|
+
}, children));
|
|
193
|
+
}
|
|
171
194
|
return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
|
|
172
195
|
data: {
|
|
173
196
|
objectAri: objectAri
|
|
174
197
|
}
|
|
175
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
198
|
+
}, /*#__PURE__*/_react.default.createElement(_TaskItem.default, {
|
|
176
199
|
isDone: isDone,
|
|
177
200
|
isRenderer: isRenderer,
|
|
178
201
|
isFocused: isFocused,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PureComponent } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import EmotionTaskItem from './TaskItem';
|
|
5
|
+
import CompiledTaskItem from './compiled/TaskItem';
|
|
5
6
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
8
|
export default class ResourcedTaskItem extends PureComponent {
|
|
7
9
|
constructor(props) {
|
|
8
10
|
super(props);
|
|
@@ -142,11 +144,32 @@ export default class ResourcedTaskItem extends PureComponent {
|
|
|
142
144
|
isFocused,
|
|
143
145
|
inputRef
|
|
144
146
|
} = this.props;
|
|
147
|
+
if (fg('platform_editor_css_migrate_stage_1')) {
|
|
148
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
|
|
149
|
+
data: {
|
|
150
|
+
objectAri
|
|
151
|
+
}
|
|
152
|
+
}, /*#__PURE__*/React.createElement(CompiledTaskItem, {
|
|
153
|
+
isDone: isDone,
|
|
154
|
+
isRenderer: isRenderer,
|
|
155
|
+
isFocused: isFocused,
|
|
156
|
+
taskId: taskId,
|
|
157
|
+
onChange: this.handleOnChange,
|
|
158
|
+
onClick: this.handleOnClick,
|
|
159
|
+
appearance: appearance,
|
|
160
|
+
contentRef: contentRef,
|
|
161
|
+
showPlaceholder: showPlaceholder,
|
|
162
|
+
placeholder: placeholder,
|
|
163
|
+
disabled: disabled,
|
|
164
|
+
dataAttributes: dataAttributes,
|
|
165
|
+
inputRef: inputRef
|
|
166
|
+
}, children));
|
|
167
|
+
}
|
|
145
168
|
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
|
|
146
169
|
data: {
|
|
147
170
|
objectAri
|
|
148
171
|
}
|
|
149
|
-
}, /*#__PURE__*/React.createElement(
|
|
172
|
+
}, /*#__PURE__*/React.createElement(EmotionTaskItem, {
|
|
150
173
|
isDone: isDone,
|
|
151
174
|
isRenderer: isRenderer,
|
|
152
175
|
isFocused: isFocused,
|
|
@@ -10,8 +10,10 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { PureComponent } from 'react';
|
|
13
|
-
import
|
|
13
|
+
import EmotionTaskItem from './TaskItem';
|
|
14
|
+
import CompiledTaskItem from './compiled/TaskItem';
|
|
14
15
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
17
|
var ResourcedTaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
16
18
|
function ResourcedTaskItem(props) {
|
|
17
19
|
var _this;
|
|
@@ -159,11 +161,32 @@ var ResourcedTaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
159
161
|
isRenderer = _this$props3.isRenderer,
|
|
160
162
|
isFocused = _this$props3.isFocused,
|
|
161
163
|
inputRef = _this$props3.inputRef;
|
|
164
|
+
if (fg('platform_editor_css_migrate_stage_1')) {
|
|
165
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
|
|
166
|
+
data: {
|
|
167
|
+
objectAri: objectAri
|
|
168
|
+
}
|
|
169
|
+
}, /*#__PURE__*/React.createElement(CompiledTaskItem, {
|
|
170
|
+
isDone: isDone,
|
|
171
|
+
isRenderer: isRenderer,
|
|
172
|
+
isFocused: isFocused,
|
|
173
|
+
taskId: taskId,
|
|
174
|
+
onChange: this.handleOnChange,
|
|
175
|
+
onClick: this.handleOnClick,
|
|
176
|
+
appearance: appearance,
|
|
177
|
+
contentRef: contentRef,
|
|
178
|
+
showPlaceholder: showPlaceholder,
|
|
179
|
+
placeholder: placeholder,
|
|
180
|
+
disabled: disabled,
|
|
181
|
+
dataAttributes: dataAttributes,
|
|
182
|
+
inputRef: inputRef
|
|
183
|
+
}, children));
|
|
184
|
+
}
|
|
162
185
|
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
|
|
163
186
|
data: {
|
|
164
187
|
objectAri: objectAri
|
|
165
188
|
}
|
|
166
|
-
}, /*#__PURE__*/React.createElement(
|
|
189
|
+
}, /*#__PURE__*/React.createElement(EmotionTaskItem, {
|
|
167
190
|
isDone: isDone,
|
|
168
191
|
isRenderer: isRenderer,
|
|
169
192
|
isFocused: isFocused,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.2",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,12 +44,13 @@
|
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
46
46
|
"@atlaskit/icon": "^25.0.0",
|
|
47
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
48
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|
|
48
49
|
"@atlaskit/theme": "^18.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^4.
|
|
50
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
50
51
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
51
52
|
"@babel/runtime": "^7.0.0",
|
|
52
|
-
"@compiled/react": "^0.18.
|
|
53
|
+
"@compiled/react": "^0.18.3",
|
|
53
54
|
"@emotion/react": "^11.7.1",
|
|
54
55
|
"uuid": "^3.1.0"
|
|
55
56
|
},
|