@atlaskit/editor-plugin-tasks-and-decisions 2.9.2 → 2.10.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 +18 -0
- package/dist/cjs/ui/Task/task-item-with-providers.js +9 -9
- package/dist/es2019/ui/Task/task-item-with-providers.js +6 -6
- package/dist/esm/ui/Task/task-item-with-providers.js +9 -9
- package/dist/types/ui/Task/task-item-with-providers.d.ts +2 -2
- package/dist/types-ts4.5/ui/Task/task-item-with-providers.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 2.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#150410](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150410)
|
|
8
|
+
[`c2b1db731f035`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c2b1db731f035) -
|
|
9
|
+
Remove UNSAFE\_ lifecycle methods from tasks & decisions
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 2.9.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 2.9.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -48,23 +48,23 @@ var TaskItemWithProviders = exports.default = /*#__PURE__*/function (_Component)
|
|
|
48
48
|
return _this;
|
|
49
49
|
}
|
|
50
50
|
(0, _createClass2.default)(TaskItemWithProviders, [{
|
|
51
|
-
key: "
|
|
52
|
-
value: function
|
|
51
|
+
key: "componentDidMount",
|
|
52
|
+
value: function componentDidMount() {
|
|
53
53
|
this.mounted = true;
|
|
54
54
|
this.updateContextIdentifierProvider(this.props);
|
|
55
55
|
}
|
|
56
|
+
}, {
|
|
57
|
+
key: "componentDidUpdate",
|
|
58
|
+
value: function componentDidUpdate(prevProps) {
|
|
59
|
+
if (this.props.contextIdentifierProvider !== prevProps.contextIdentifierProvider) {
|
|
60
|
+
this.updateContextIdentifierProvider(this.props);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
56
63
|
}, {
|
|
57
64
|
key: "componentWillUnmount",
|
|
58
65
|
value: function componentWillUnmount() {
|
|
59
66
|
this.mounted = false;
|
|
60
67
|
}
|
|
61
|
-
}, {
|
|
62
|
-
key: "UNSAFE_componentWillReceiveProps",
|
|
63
|
-
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
64
|
-
if (nextProps.contextIdentifierProvider !== this.props.contextIdentifierProvider) {
|
|
65
|
-
this.updateContextIdentifierProvider(nextProps);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
68
|
}, {
|
|
69
69
|
key: "updateContextIdentifierProvider",
|
|
70
70
|
value: function () {
|
|
@@ -17,18 +17,18 @@ export default class TaskItemWithProviders extends Component {
|
|
|
17
17
|
// updates when no longer suitable.
|
|
18
18
|
_defineProperty(this, "mounted", false);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
componentDidMount() {
|
|
21
21
|
this.mounted = true;
|
|
22
22
|
this.updateContextIdentifierProvider(this.props);
|
|
23
23
|
}
|
|
24
|
+
componentDidUpdate(prevProps) {
|
|
25
|
+
if (this.props.contextIdentifierProvider !== prevProps.contextIdentifierProvider) {
|
|
26
|
+
this.updateContextIdentifierProvider(this.props);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
24
29
|
componentWillUnmount() {
|
|
25
30
|
this.mounted = false;
|
|
26
31
|
}
|
|
27
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
28
|
-
if (nextProps.contextIdentifierProvider !== this.props.contextIdentifierProvider) {
|
|
29
|
-
this.updateContextIdentifierProvider(nextProps);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
32
|
async updateContextIdentifierProvider(props) {
|
|
33
33
|
if (props.contextIdentifierProvider) {
|
|
34
34
|
try {
|
|
@@ -38,23 +38,23 @@ var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
|
|
|
38
38
|
return _this;
|
|
39
39
|
}
|
|
40
40
|
_createClass(TaskItemWithProviders, [{
|
|
41
|
-
key: "
|
|
42
|
-
value: function
|
|
41
|
+
key: "componentDidMount",
|
|
42
|
+
value: function componentDidMount() {
|
|
43
43
|
this.mounted = true;
|
|
44
44
|
this.updateContextIdentifierProvider(this.props);
|
|
45
45
|
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "componentDidUpdate",
|
|
48
|
+
value: function componentDidUpdate(prevProps) {
|
|
49
|
+
if (this.props.contextIdentifierProvider !== prevProps.contextIdentifierProvider) {
|
|
50
|
+
this.updateContextIdentifierProvider(this.props);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
46
53
|
}, {
|
|
47
54
|
key: "componentWillUnmount",
|
|
48
55
|
value: function componentWillUnmount() {
|
|
49
56
|
this.mounted = false;
|
|
50
57
|
}
|
|
51
|
-
}, {
|
|
52
|
-
key: "UNSAFE_componentWillReceiveProps",
|
|
53
|
-
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
54
|
-
if (nextProps.contextIdentifierProvider !== this.props.contextIdentifierProvider) {
|
|
55
|
-
this.updateContextIdentifierProvider(nextProps);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
58
|
}, {
|
|
59
59
|
key: "updateContextIdentifierProvider",
|
|
60
60
|
value: function () {
|
|
@@ -21,9 +21,9 @@ export default class TaskItemWithProviders extends Component<Props, State> {
|
|
|
21
21
|
static displayName: string;
|
|
22
22
|
state: State;
|
|
23
23
|
private mounted;
|
|
24
|
-
|
|
24
|
+
componentDidMount(): void;
|
|
25
|
+
componentDidUpdate(prevProps: Props): void;
|
|
25
26
|
componentWillUnmount(): void;
|
|
26
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
27
27
|
private updateContextIdentifierProvider;
|
|
28
28
|
render(): JSX.Element;
|
|
29
29
|
}
|
|
@@ -21,9 +21,9 @@ export default class TaskItemWithProviders extends Component<Props, State> {
|
|
|
21
21
|
static displayName: string;
|
|
22
22
|
state: State;
|
|
23
23
|
private mounted;
|
|
24
|
-
|
|
24
|
+
componentDidMount(): void;
|
|
25
|
+
componentDidUpdate(prevProps: Props): void;
|
|
25
26
|
componentWillUnmount(): void;
|
|
26
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
27
27
|
private updateContextIdentifierProvider;
|
|
28
28
|
render(): JSX.Element;
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-type-ahead": "^1.8.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
43
43
|
"@atlaskit/heading": "2.4.6",
|
|
44
|
-
"@atlaskit/icon": "22.
|
|
44
|
+
"@atlaskit/icon": "22.22.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/popup": "1.28.2",
|
|
47
|
-
"@atlaskit/primitives": "12.2.
|
|
47
|
+
"@atlaskit/primitives": "12.2.5",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
49
49
|
"@atlaskit/task-decision": "^17.11.0",
|
|
50
50
|
"@atlaskit/tmp-editor-statsig": "^2.3.0",
|