@atlaskit/editor-core 201.1.1 → 201.1.2
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/Toolbar/ToolbarInner.js +1 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 201.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#157911](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157911)
|
|
8
|
+
[`cd5818c8dbf0e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd5818c8dbf0e) -
|
|
9
|
+
Cleanup FF platform_hide_editor_toolbar_ssr
|
|
10
|
+
|
|
3
11
|
## 201.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -16,7 +16,6 @@ var _react2 = require("@emotion/react");
|
|
|
16
16
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
17
17
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
18
18
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
21
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
22
21
|
* @jsxRuntime classic
|
|
@@ -60,7 +59,7 @@ var ToolbarInner = exports.ToolbarInner = /*#__PURE__*/function (_React$Componen
|
|
|
60
59
|
if (!items || !items.length) {
|
|
61
60
|
return null;
|
|
62
61
|
}
|
|
63
|
-
if ((0, _coreUtils.isSSR)()
|
|
62
|
+
if ((0, _coreUtils.isSSR)()) {
|
|
64
63
|
// Toolbar in SSR environment is showing collapsed state, which caused layout shift after hydrating to SPA.
|
|
65
64
|
// Hiding toolbar in SSR until the dependency of screen width is resolved in SSR environment.
|
|
66
65
|
return null;
|
|
@@ -9,7 +9,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
11
11
|
import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
const toolbarComponentsWrapper = css({
|
|
14
13
|
display: 'flex',
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -41,7 +40,7 @@ export class ToolbarInner extends React.Component {
|
|
|
41
40
|
if (!items || !items.length) {
|
|
42
41
|
return null;
|
|
43
42
|
}
|
|
44
|
-
if (isSSR()
|
|
43
|
+
if (isSSR()) {
|
|
45
44
|
// Toolbar in SSR environment is showing collapsed state, which caused layout shift after hydrating to SPA.
|
|
46
45
|
// Hiding toolbar in SSR until the dependency of screen width is resolved in SSR environment.
|
|
47
46
|
return null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "201.1.
|
|
2
|
+
export const version = "201.1.2";
|
|
@@ -17,7 +17,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
17
17
|
import isEqual from 'lodash/isEqual';
|
|
18
18
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
19
19
|
import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
20
|
var toolbarComponentsWrapper = css(_defineProperty({
|
|
22
21
|
display: 'flex'
|
|
23
22
|
}, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
|
|
@@ -56,7 +55,7 @@ export var ToolbarInner = /*#__PURE__*/function (_React$Component) {
|
|
|
56
55
|
if (!items || !items.length) {
|
|
57
56
|
return null;
|
|
58
57
|
}
|
|
59
|
-
if (isSSR()
|
|
58
|
+
if (isSSR()) {
|
|
60
59
|
// Toolbar in SSR environment is showing collapsed state, which caused layout shift after hydrating to SPA.
|
|
61
60
|
// Hiding toolbar in SSR until the dependency of screen width is resolved in SSR environment.
|
|
62
61
|
return null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "201.1.
|
|
2
|
+
export var version = "201.1.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "201.1.
|
|
3
|
+
"version": "201.1.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.3.0",
|
|
46
|
-
"@atlaskit/editor-common": "^94.
|
|
46
|
+
"@atlaskit/editor-common": "^94.9.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
48
48
|
"@atlaskit/editor-plugin-quick-insert": "1.6.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^5.6.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.1.0",
|
|
52
|
-
"@atlaskit/emoji": "^67.
|
|
52
|
+
"@atlaskit/emoji": "^67.9.0",
|
|
53
53
|
"@atlaskit/icon": "^22.24.0",
|
|
54
|
-
"@atlaskit/media-card": "^78.
|
|
54
|
+
"@atlaskit/media-card": "^78.10.0",
|
|
55
55
|
"@atlaskit/mention": "^23.3.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/task-decision": "^17.11.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/adf-utils": "^19.10.0",
|
|
85
85
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
86
86
|
"@atlaskit/collab-provider": "9.44.0",
|
|
87
|
-
"@atlaskit/editor-plugin-annotation": "1.
|
|
87
|
+
"@atlaskit/editor-plugin-annotation": "1.23.1",
|
|
88
88
|
"@atlaskit/editor-plugin-card": "^4.3.0",
|
|
89
89
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
90
90
|
"@atlaskit/editor-plugin-paste": "^2.0.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@atlaskit/media-test-helpers": "^34.5.0",
|
|
96
96
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
97
97
|
"@atlaskit/primitives": "^13.0.0",
|
|
98
|
-
"@atlaskit/renderer": "^112.
|
|
98
|
+
"@atlaskit/renderer": "^112.2.0",
|
|
99
99
|
"@atlaskit/smart-card": "^30.1.0",
|
|
100
100
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
101
101
|
"@atlaskit/toggle": "^13.4.0",
|
|
@@ -206,9 +206,6 @@
|
|
|
206
206
|
"platform_editor_drag_and_drop_expand_style_fix": {
|
|
207
207
|
"type": "boolean"
|
|
208
208
|
},
|
|
209
|
-
"platform_hide_editor_toolbar_ssr": {
|
|
210
|
-
"type": "boolean"
|
|
211
|
-
},
|
|
212
209
|
"platform_editor_media_batch_updates": {
|
|
213
210
|
"type": "boolean",
|
|
214
211
|
"referenceOnly": true
|