@atlaskit/editor-plugin-insert-block 1.3.14 → 1.4.1
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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#119608](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119608)
|
|
14
|
+
[`ecb9286aa6ae8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ecb9286aa6ae8) -
|
|
15
|
+
refactor: remove some usages of findDOMNode in editor-core and editor-plugin-insert-block
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.3.14
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -17,7 +17,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
18
18
|
var _react = _interopRequireDefault(require("react"));
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
21
20
|
var _reactIntlNext = require("react-intl-next");
|
|
22
21
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
23
22
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
@@ -162,20 +161,17 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
162
161
|
_this.toggleEmojiPicker(_analytics.INPUT_METHOD.TOOLBAR);
|
|
163
162
|
}
|
|
164
163
|
});
|
|
165
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleEmojiButtonRef", function (
|
|
166
|
-
var ref = _reactDom.default.findDOMNode(button);
|
|
164
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleEmojiButtonRef", function (ref) {
|
|
167
165
|
if (ref) {
|
|
168
166
|
_this.emojiButtonRef = ref;
|
|
169
167
|
}
|
|
170
168
|
});
|
|
171
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handlePlusButtonRef", function (
|
|
172
|
-
var ref = _reactDom.default.findDOMNode(button);
|
|
169
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handlePlusButtonRef", function (ref) {
|
|
173
170
|
if (ref) {
|
|
174
171
|
_this.plusButtonRef = ref;
|
|
175
172
|
}
|
|
176
173
|
});
|
|
177
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDropDownButtonRef", function (
|
|
178
|
-
var ref = _reactDom.default.findDOMNode(button);
|
|
174
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDropDownButtonRef", function (ref) {
|
|
179
175
|
if (ref) {
|
|
180
176
|
_this.dropdownButtonRef = ref;
|
|
181
177
|
}
|
|
@@ -4,7 +4,6 @@ import React from 'react';
|
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import ReactDOM from 'react-dom';
|
|
8
7
|
import { injectIntl } from 'react-intl-next';
|
|
9
8
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
9
|
import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
@@ -163,20 +162,17 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
163
162
|
this.toggleEmojiPicker(INPUT_METHOD.TOOLBAR);
|
|
164
163
|
}
|
|
165
164
|
});
|
|
166
|
-
_defineProperty(this, "handleEmojiButtonRef",
|
|
167
|
-
const ref = ReactDOM.findDOMNode(button);
|
|
165
|
+
_defineProperty(this, "handleEmojiButtonRef", ref => {
|
|
168
166
|
if (ref) {
|
|
169
167
|
this.emojiButtonRef = ref;
|
|
170
168
|
}
|
|
171
169
|
});
|
|
172
|
-
_defineProperty(this, "handlePlusButtonRef",
|
|
173
|
-
const ref = ReactDOM.findDOMNode(button);
|
|
170
|
+
_defineProperty(this, "handlePlusButtonRef", ref => {
|
|
174
171
|
if (ref) {
|
|
175
172
|
this.plusButtonRef = ref;
|
|
176
173
|
}
|
|
177
174
|
});
|
|
178
|
-
_defineProperty(this, "handleDropDownButtonRef",
|
|
179
|
-
const ref = ReactDOM.findDOMNode(button);
|
|
175
|
+
_defineProperty(this, "handleDropDownButtonRef", ref => {
|
|
180
176
|
if (ref) {
|
|
181
177
|
this.dropdownButtonRef = ref;
|
|
182
178
|
}
|
|
@@ -20,7 +20,6 @@ import React from 'react';
|
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
import { css, jsx } from '@emotion/react';
|
|
23
|
-
import ReactDOM from 'react-dom';
|
|
24
23
|
import { injectIntl } from 'react-intl-next';
|
|
25
24
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
26
25
|
import { buttonGroupStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
@@ -153,20 +152,17 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
153
152
|
_this.toggleEmojiPicker(INPUT_METHOD.TOOLBAR);
|
|
154
153
|
}
|
|
155
154
|
});
|
|
156
|
-
_defineProperty(_assertThisInitialized(_this), "handleEmojiButtonRef", function (
|
|
157
|
-
var ref = ReactDOM.findDOMNode(button);
|
|
155
|
+
_defineProperty(_assertThisInitialized(_this), "handleEmojiButtonRef", function (ref) {
|
|
158
156
|
if (ref) {
|
|
159
157
|
_this.emojiButtonRef = ref;
|
|
160
158
|
}
|
|
161
159
|
});
|
|
162
|
-
_defineProperty(_assertThisInitialized(_this), "handlePlusButtonRef", function (
|
|
163
|
-
var ref = ReactDOM.findDOMNode(button);
|
|
160
|
+
_defineProperty(_assertThisInitialized(_this), "handlePlusButtonRef", function (ref) {
|
|
164
161
|
if (ref) {
|
|
165
162
|
_this.plusButtonRef = ref;
|
|
166
163
|
}
|
|
167
164
|
});
|
|
168
|
-
_defineProperty(_assertThisInitialized(_this), "handleDropDownButtonRef", function (
|
|
169
|
-
var ref = ReactDOM.findDOMNode(button);
|
|
165
|
+
_defineProperty(_assertThisInitialized(_this), "handleDropDownButtonRef", function (ref) {
|
|
170
166
|
if (ref) {
|
|
171
167
|
_this.dropdownButtonRef = ref;
|
|
172
168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^85.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-block-type": "^3.8.0",
|
|
39
39
|
"@atlaskit/editor-plugin-code-block": "^3.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-date": "^2.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-emoji": "^2.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-expand": "^2.0.0",
|
|
43
|
-
"@atlaskit/editor-plugin-extension": "^1.
|
|
43
|
+
"@atlaskit/editor-plugin-extension": "^1.10.0",
|
|
44
44
|
"@atlaskit/editor-plugin-hyperlink": "^2.3.0",
|
|
45
45
|
"@atlaskit/editor-plugin-image-upload": "^1.1.0",
|
|
46
46
|
"@atlaskit/editor-plugin-layout": "^1.4.0",
|
|
47
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
47
|
+
"@atlaskit/editor-plugin-media": "^1.24.0",
|
|
48
48
|
"@atlaskit/editor-plugin-mentions": "^2.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-panel": "^2.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-placeholder-text": "^1.4.0",
|
|
51
51
|
"@atlaskit/editor-plugin-quick-insert": "^1.1.0",
|
|
52
52
|
"@atlaskit/editor-plugin-rule": "^1.5.0",
|
|
53
53
|
"@atlaskit/editor-plugin-status": "^2.1.0",
|
|
54
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
55
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^2.
|
|
54
|
+
"@atlaskit/editor-plugin-table": "^7.20.0",
|
|
55
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^2.1.0",
|
|
56
56
|
"@atlaskit/editor-plugin-type-ahead": "^1.4.0",
|
|
57
57
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
58
58
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/icon": "^22.6.0",
|
|
61
61
|
"@atlaskit/primitives": "^11.0.0",
|
|
62
62
|
"@atlaskit/theme": "^12.11.0",
|
|
63
|
-
"@atlaskit/tokens": "^1.
|
|
63
|
+
"@atlaskit/tokens": "^1.54.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
66
66
|
"bind-event-listener": "^3.0.0",
|