@atlaskit/editor-core 197.2.3 → 197.2.5
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 +16 -0
- package/dist/cjs/ui/Toolbar/hooks.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/hooks.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Toolbar/hooks.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 197.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#136744](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136744)
|
|
8
|
+
[`58f46f65a5d7c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/58f46f65a5d7c) -
|
|
9
|
+
Improve performance by removing unnecessary toolbar reflow.
|
|
10
|
+
|
|
11
|
+
## 197.2.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#136410](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136410)
|
|
16
|
+
[`52083ca79b5dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/52083ca79b5dc) -
|
|
17
|
+
[ux] ED-24603 Disable dragging nested nodes within table behind FF
|
|
18
|
+
|
|
3
19
|
## 197.2.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.useElementWidth = void 0;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
11
|
var useElementWidth = exports.useElementWidth = function useElementWidth(ref, _ref) {
|
|
11
12
|
var skip = _ref.skip;
|
|
12
13
|
var _React$useState = _react.default.useState(undefined),
|
|
@@ -14,7 +15,7 @@ var useElementWidth = exports.useElementWidth = function useElementWidth(ref, _r
|
|
|
14
15
|
elementWidth = _React$useState2[0],
|
|
15
16
|
setWidth = _React$useState2[1];
|
|
16
17
|
_react.default.useEffect(function () {
|
|
17
|
-
if (!skip && ref.current) {
|
|
18
|
+
if (!skip && ref.current && !(0, _platformFeatureFlags.fg)('platform_editor_prevent_toolbar_width_reflow')) {
|
|
18
19
|
setWidth(Math.round(ref.current.getBoundingClientRect().width));
|
|
19
20
|
}
|
|
20
21
|
}, [skip, setWidth, ref]);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
export const useElementWidth = (ref, {
|
|
3
4
|
skip
|
|
4
5
|
}) => {
|
|
5
6
|
const [elementWidth, setWidth] = React.useState(undefined);
|
|
6
7
|
React.useEffect(() => {
|
|
7
|
-
if (!skip && ref.current) {
|
|
8
|
+
if (!skip && ref.current && !fg('platform_editor_prevent_toolbar_width_reflow')) {
|
|
8
9
|
setWidth(Math.round(ref.current.getBoundingClientRect().width));
|
|
9
10
|
}
|
|
10
11
|
}, [skip, setWidth, ref]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "197.2.
|
|
2
|
+
export const version = "197.2.5";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
export var useElementWidth = function useElementWidth(ref, _ref) {
|
|
4
5
|
var skip = _ref.skip;
|
|
5
6
|
var _React$useState = React.useState(undefined),
|
|
@@ -7,7 +8,7 @@ export var useElementWidth = function useElementWidth(ref, _ref) {
|
|
|
7
8
|
elementWidth = _React$useState2[0],
|
|
8
9
|
setWidth = _React$useState2[1];
|
|
9
10
|
React.useEffect(function () {
|
|
10
|
-
if (!skip && ref.current) {
|
|
11
|
+
if (!skip && ref.current && !fg('platform_editor_prevent_toolbar_width_reflow')) {
|
|
11
12
|
setWidth(Math.round(ref.current.getBoundingClientRect().width));
|
|
12
13
|
}
|
|
13
14
|
}, [skip, setWidth, ref]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.2.
|
|
2
|
+
export var version = "197.2.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "197.2.
|
|
3
|
+
"version": "197.2.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -198,6 +198,9 @@
|
|
|
198
198
|
"type": "boolean",
|
|
199
199
|
"referenceOnly": "true"
|
|
200
200
|
},
|
|
201
|
+
"platform_editor_prevent_toolbar_width_reflow": {
|
|
202
|
+
"type": "boolean"
|
|
203
|
+
},
|
|
201
204
|
"platform.editor.single-player-expand": {
|
|
202
205
|
"type": "boolean",
|
|
203
206
|
"referenceOnly": "true"
|
|
@@ -227,10 +230,6 @@
|
|
|
227
230
|
"platform.editor.core.increase-full-page-guttering": {
|
|
228
231
|
"type": "boolean"
|
|
229
232
|
},
|
|
230
|
-
"platform_editor_tables_padding_increase": {
|
|
231
|
-
"type": "boolean",
|
|
232
|
-
"referenceOnly": "true"
|
|
233
|
-
},
|
|
234
233
|
"platform_editor_get_card_provider_from_config": {
|
|
235
234
|
"type": "boolean",
|
|
236
235
|
"referenceOnly": true
|