@atlaskit/editor-plugin-tasks-and-decisions 2.9.3 → 2.11.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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 2.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#151190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151190)
8
+ [`a3723b1cdede2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3723b1cdede2) -
9
+ [ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the
10
+ blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted
11
+ pasted external images to media groups.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 2.10.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [#150410](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150410)
22
+ [`c2b1db731f035`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c2b1db731f035) -
23
+ Remove UNSAFE\_ lifecycle methods from tasks & decisions
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 2.9.3
4
30
 
5
31
  ### 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: "UNSAFE_componentWillMount",
52
- value: function UNSAFE_componentWillMount() {
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
- UNSAFE_componentWillMount() {
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: "UNSAFE_componentWillMount",
42
- value: function UNSAFE_componentWillMount() {
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
- UNSAFE_componentWillMount(): void;
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
- UNSAFE_componentWillMount(): void;
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.9.3",
3
+ "version": "2.11.0",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,20 +31,20 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^40.9.0",
34
+ "@atlaskit/adf-schema": "^40.9.4",
35
35
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
36
36
  "@atlaskit/analytics-next": "^10.1.0",
37
- "@atlaskit/editor-common": "^93.1.0",
38
- "@atlaskit/editor-plugin-analytics": "^1.8.0",
37
+ "@atlaskit/editor-common": "^93.3.0",
38
+ "@atlaskit/editor-plugin-analytics": "^1.9.0",
39
39
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-editor-viewmode": "2.1.9",
41
- "@atlaskit/editor-plugin-type-ahead": "^1.8.0",
41
+ "@atlaskit/editor-plugin-type-ahead": "^1.9.0",
42
42
  "@atlaskit/editor-prosemirror": "6.0.0",
43
43
  "@atlaskit/heading": "2.4.6",
44
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.4",
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",