@atlaskit/editor-core 193.25.0 → 193.25.3
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 +8 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +4 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +4 -6
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.25.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#109694](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109694)
|
|
8
|
+
[`7c6d607dd808c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7c6d607dd808c) -
|
|
9
|
+
Fix HOT-109709 fix null ref in comment editor
|
|
10
|
+
|
|
3
11
|
## 193.25.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -299,7 +299,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
299
299
|
innerRef = props.innerRef;
|
|
300
300
|
var maxContentSizeReached = Boolean(maxContentSizeState === null || maxContentSizeState === void 0 ? void 0 : maxContentSizeState.maxContentSizeReached);
|
|
301
301
|
var showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
302
|
-
var containerElement = null;
|
|
302
|
+
var containerElement = _react.default.useRef(null);
|
|
303
303
|
|
|
304
304
|
// Wrapper container for toolbar and content area
|
|
305
305
|
var wrapperElementRef = (0, _react.useMemo)(function () {
|
|
@@ -376,7 +376,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
376
376
|
popupsScrollableElement: popupsScrollableElement,
|
|
377
377
|
disabled: !!disabled,
|
|
378
378
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
379
|
-
containerElement: containerElement,
|
|
379
|
+
containerElement: containerElement.current,
|
|
380
380
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
381
381
|
}), (0, _react2.jsx)("div", {
|
|
382
382
|
css: (0, _Toolbar2.mainToolbarCustomComponentsSlotStyle)(isTwoLineToolbarEnabled)
|
|
@@ -386,9 +386,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
386
386
|
}, (0, _react2.jsx)(_ui.WidthConsumer, null, function (_ref5) {
|
|
387
387
|
var width = _ref5.width;
|
|
388
388
|
return (0, _react2.jsx)(ContentArea, {
|
|
389
|
-
ref:
|
|
390
|
-
return containerElement = _ref6;
|
|
391
|
-
},
|
|
389
|
+
ref: containerElement,
|
|
392
390
|
css: maxHeight ? (0, _react2.css)({
|
|
393
391
|
maxHeight: "".concat(maxHeight, "px")
|
|
394
392
|
}) : null
|
|
@@ -409,7 +407,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
409
407
|
popupsMountPoint: popupsMountPoint,
|
|
410
408
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
411
409
|
popupsScrollableElement: popupsScrollableElement,
|
|
412
|
-
containerElement: containerElement,
|
|
410
|
+
containerElement: containerElement.current,
|
|
413
411
|
disabled: !!disabled,
|
|
414
412
|
wrapperElement: wrapperElementRef.current,
|
|
415
413
|
pluginHooks: pluginHooks
|
|
@@ -276,7 +276,7 @@ const EditorNext = props => {
|
|
|
276
276
|
} = props;
|
|
277
277
|
const maxContentSizeReached = Boolean(maxContentSizeState === null || maxContentSizeState === void 0 ? void 0 : maxContentSizeState.maxContentSizeReached);
|
|
278
278
|
const showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
279
|
-
|
|
279
|
+
const containerElement = React.useRef(null);
|
|
280
280
|
|
|
281
281
|
// Wrapper container for toolbar and content area
|
|
282
282
|
const wrapperElementRef = useMemo(() => innerRef || /*#__PURE__*/React.createRef(), [innerRef]);
|
|
@@ -346,7 +346,7 @@ const EditorNext = props => {
|
|
|
346
346
|
popupsScrollableElement: popupsScrollableElement,
|
|
347
347
|
disabled: !!disabled,
|
|
348
348
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
349
|
-
containerElement: containerElement,
|
|
349
|
+
containerElement: containerElement.current,
|
|
350
350
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
351
351
|
}), jsx("div", {
|
|
352
352
|
css: mainToolbarCustomComponentsSlotStyle(isTwoLineToolbarEnabled)
|
|
@@ -357,7 +357,7 @@ const EditorNext = props => {
|
|
|
357
357
|
width
|
|
358
358
|
}) => {
|
|
359
359
|
return jsx(ContentArea, {
|
|
360
|
-
ref:
|
|
360
|
+
ref: containerElement,
|
|
361
361
|
css: maxHeight ? css({
|
|
362
362
|
maxHeight: `${maxHeight}px`
|
|
363
363
|
}) : null
|
|
@@ -378,7 +378,7 @@ const EditorNext = props => {
|
|
|
378
378
|
popupsMountPoint: popupsMountPoint,
|
|
379
379
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
380
380
|
popupsScrollableElement: popupsScrollableElement,
|
|
381
|
-
containerElement: containerElement,
|
|
381
|
+
containerElement: containerElement.current,
|
|
382
382
|
disabled: !!disabled,
|
|
383
383
|
wrapperElement: wrapperElementRef.current,
|
|
384
384
|
pluginHooks: pluginHooks
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.25.
|
|
2
|
+
export const version = "193.25.3";
|
|
@@ -290,7 +290,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
290
290
|
innerRef = props.innerRef;
|
|
291
291
|
var maxContentSizeReached = Boolean(maxContentSizeState === null || maxContentSizeState === void 0 ? void 0 : maxContentSizeState.maxContentSizeReached);
|
|
292
292
|
var showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
293
|
-
var containerElement = null;
|
|
293
|
+
var containerElement = React.useRef(null);
|
|
294
294
|
|
|
295
295
|
// Wrapper container for toolbar and content area
|
|
296
296
|
var wrapperElementRef = useMemo(function () {
|
|
@@ -367,7 +367,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
367
367
|
popupsScrollableElement: popupsScrollableElement,
|
|
368
368
|
disabled: !!disabled,
|
|
369
369
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
370
|
-
containerElement: containerElement,
|
|
370
|
+
containerElement: containerElement.current,
|
|
371
371
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
372
372
|
}), jsx("div", {
|
|
373
373
|
css: mainToolbarCustomComponentsSlotStyle(isTwoLineToolbarEnabled)
|
|
@@ -377,9 +377,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
377
377
|
}, jsx(WidthConsumer, null, function (_ref5) {
|
|
378
378
|
var width = _ref5.width;
|
|
379
379
|
return jsx(ContentArea, {
|
|
380
|
-
ref:
|
|
381
|
-
return containerElement = _ref6;
|
|
382
|
-
},
|
|
380
|
+
ref: containerElement,
|
|
383
381
|
css: maxHeight ? css({
|
|
384
382
|
maxHeight: "".concat(maxHeight, "px")
|
|
385
383
|
}) : null
|
|
@@ -400,7 +398,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
400
398
|
popupsMountPoint: popupsMountPoint,
|
|
401
399
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
402
400
|
popupsScrollableElement: popupsScrollableElement,
|
|
403
|
-
containerElement: containerElement,
|
|
401
|
+
containerElement: containerElement.current,
|
|
404
402
|
disabled: !!disabled,
|
|
405
403
|
wrapperElement: wrapperElementRef.current,
|
|
406
404
|
pluginHooks: pluginHooks
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.25.
|
|
2
|
+
export var version = "193.25.3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.25.
|
|
3
|
+
"version": "193.25.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^17.17.0",
|
|
48
|
-
"@atlaskit/editor-common": "^82.
|
|
48
|
+
"@atlaskit/editor-common": "^82.2.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.13.0",
|
|
50
50
|
"@atlaskit/editor-plugins": "^3.0.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"uuid": "^3.1.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@atlaskit/link-provider": "^1.
|
|
78
|
+
"@atlaskit/link-provider": "^1.11.0",
|
|
79
79
|
"@atlaskit/media-core": "^34.2.0",
|
|
80
80
|
"react": "^16.8.0",
|
|
81
81
|
"react-dom": "^16.8.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@atlaskit/editor-plugin-list": "^3.3.0",
|
|
95
95
|
"@atlaskit/editor-plugin-paste": "^1.2.0",
|
|
96
96
|
"@atlaskit/editor-test-helpers": "*",
|
|
97
|
-
"@atlaskit/link-provider": "^1.
|
|
97
|
+
"@atlaskit/link-provider": "^1.11.0",
|
|
98
98
|
"@atlaskit/logo": "^14.0.0",
|
|
99
99
|
"@atlaskit/media-core": "^34.2.0",
|
|
100
100
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|