@atlaskit/editor-plugin-type-ahead 0.8.3 → 0.8.4
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,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 0.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#61465](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61465) [`fc0f13b8bc95`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc0f13b8bc95) - Prefix `componentWillMount`, `componentWillUnmount` and `componentWillReceiveProps` with `UNSAFE_` in the `AssistiveText` component
|
|
8
|
+
|
|
3
9
|
## 0.8.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -49,8 +49,8 @@ var AssistveTextComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
49
49
|
return _this;
|
|
50
50
|
}
|
|
51
51
|
(0, _createClass2.default)(AssistveTextComponent, [{
|
|
52
|
-
key: "
|
|
53
|
-
value: function
|
|
52
|
+
key: "UNSAFE_componentWillMount",
|
|
53
|
+
value: function UNSAFE_componentWillMount() {
|
|
54
54
|
var _this2 = this;
|
|
55
55
|
this.debounceStatusUpdate = (0, _debounce.default)(function () {
|
|
56
56
|
if (!_this2.state.debounced) {
|
|
@@ -67,13 +67,13 @@ var AssistveTextComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
67
67
|
}, statusDebounceMillis);
|
|
68
68
|
}
|
|
69
69
|
}, {
|
|
70
|
-
key: "
|
|
71
|
-
value: function
|
|
70
|
+
key: "UNSAFE_componentWillUnmount",
|
|
71
|
+
value: function UNSAFE_componentWillUnmount() {
|
|
72
72
|
this.debounceStatusUpdate.cancel();
|
|
73
73
|
}
|
|
74
74
|
}, {
|
|
75
|
-
key: "
|
|
76
|
-
value: function
|
|
75
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
76
|
+
value: function UNSAFE_componentWillReceiveProps() {
|
|
77
77
|
this.setState(function (_ref2) {
|
|
78
78
|
var bump = _ref2.bump;
|
|
79
79
|
return {
|
|
@@ -27,7 +27,7 @@ class AssistveTextComponent extends React.Component {
|
|
|
27
27
|
silenced: false
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
UNSAFE_componentWillMount() {
|
|
31
31
|
this.debounceStatusUpdate = debounce(() => {
|
|
32
32
|
if (!this.state.debounced) {
|
|
33
33
|
const shouldSilence = !this.props.isInFocus;
|
|
@@ -41,10 +41,10 @@ class AssistveTextComponent extends React.Component {
|
|
|
41
41
|
}
|
|
42
42
|
}, statusDebounceMillis);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
UNSAFE_componentWillUnmount() {
|
|
45
45
|
this.debounceStatusUpdate.cancel();
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
UNSAFE_componentWillReceiveProps() {
|
|
48
48
|
this.setState(({
|
|
49
49
|
bump
|
|
50
50
|
}) => ({
|
|
@@ -44,8 +44,8 @@ var AssistveTextComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
44
44
|
return _this;
|
|
45
45
|
}
|
|
46
46
|
_createClass(AssistveTextComponent, [{
|
|
47
|
-
key: "
|
|
48
|
-
value: function
|
|
47
|
+
key: "UNSAFE_componentWillMount",
|
|
48
|
+
value: function UNSAFE_componentWillMount() {
|
|
49
49
|
var _this2 = this;
|
|
50
50
|
this.debounceStatusUpdate = debounce(function () {
|
|
51
51
|
if (!_this2.state.debounced) {
|
|
@@ -62,13 +62,13 @@ var AssistveTextComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
62
62
|
}, statusDebounceMillis);
|
|
63
63
|
}
|
|
64
64
|
}, {
|
|
65
|
-
key: "
|
|
66
|
-
value: function
|
|
65
|
+
key: "UNSAFE_componentWillUnmount",
|
|
66
|
+
value: function UNSAFE_componentWillUnmount() {
|
|
67
67
|
this.debounceStatusUpdate.cancel();
|
|
68
68
|
}
|
|
69
69
|
}, {
|
|
70
|
-
key: "
|
|
71
|
-
value: function
|
|
70
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
71
|
+
value: function UNSAFE_componentWillReceiveProps() {
|
|
72
72
|
this.setState(function (_ref2) {
|
|
73
73
|
var bump = _ref2.bump;
|
|
74
74
|
return {
|
|
@@ -24,9 +24,9 @@ declare class AssistveTextComponent extends React.Component<AssistiveTextProps,
|
|
|
24
24
|
debounced: boolean;
|
|
25
25
|
silenced: boolean;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
UNSAFE_componentWillMount(): void;
|
|
28
|
+
UNSAFE_componentWillUnmount(): void;
|
|
29
|
+
UNSAFE_componentWillReceiveProps(): void;
|
|
30
30
|
render(): jsx.JSX.Element;
|
|
31
31
|
}
|
|
32
32
|
export declare const AssistiveText: typeof AssistveTextComponent;
|
|
@@ -24,9 +24,9 @@ declare class AssistveTextComponent extends React.Component<AssistiveTextProps,
|
|
|
24
24
|
debounced: boolean;
|
|
25
25
|
silenced: boolean;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
UNSAFE_componentWillMount(): void;
|
|
28
|
+
UNSAFE_componentWillUnmount(): void;
|
|
29
|
+
UNSAFE_componentWillReceiveProps(): void;
|
|
30
30
|
render(): jsx.JSX.Element;
|
|
31
31
|
}
|
|
32
32
|
export declare const AssistiveText: typeof AssistveTextComponent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^35.1.1",
|
|
35
35
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^76.
|
|
36
|
+
"@atlaskit/editor-common": "^76.27.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^2.8.0",
|
|
40
40
|
"@atlaskit/menu": "^2.1.0",
|
|
41
41
|
"@atlaskit/prosemirror-input-rules": "^2.4.0",
|
|
42
42
|
"@atlaskit/theme": "^12.6.0",
|
|
43
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/tokens": "^1.30.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|
|
46
46
|
"lodash": "^4.17.21",
|