@atlaskit/editor-core 201.1.0 → 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 +17 -0
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +243 -34
- package/dist/types/presets/default.d.ts +156 -28
- package/dist/types/presets/universal.d.ts +243 -34
- package/dist/types/presets/useUniversalPreset.d.ts +243 -34
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +293 -34
- package/dist/types-ts4.5/presets/default.d.ts +186 -28
- package/dist/types-ts4.5/presets/universal.d.ts +293 -34
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +293 -34
- package/package.json +10 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
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
|
+
|
|
11
|
+
## 201.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#156102](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156102)
|
|
16
|
+
[`05bfe209f2801`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/05bfe209f2801) -
|
|
17
|
+
Replace platform.editor.core.increase-full-page-guttering with new FG
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 201.1.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -199,7 +199,7 @@ _commonStyles.tableFullPageEditorStyles, {
|
|
|
199
199
|
|
|
200
200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
201
201
|
var editorContentGutterStyle = exports.editorContentGutterStyle = function editorContentGutterStyle() {
|
|
202
|
-
var padding = (0, _platformFeatureFlags.fg)('
|
|
202
|
+
var padding = (0, _platformFeatureFlags.fg)('platform_editor_core_increase_full_page_guttering') ? // there is no space token for 52px
|
|
203
203
|
"0 52px" : "0 ".concat("var(--ds-space-400, 32px)");
|
|
204
204
|
return (0, _react.css)({
|
|
205
205
|
boxSizing: 'border-box',
|
|
@@ -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;
|
|
@@ -189,7 +189,7 @@ tableFullPageEditorStyles, {
|
|
|
189
189
|
|
|
190
190
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
191
191
|
export const editorContentGutterStyle = () => {
|
|
192
|
-
const padding = fg('
|
|
192
|
+
const padding = fg('platform_editor_core_increase_full_page_guttering') ?
|
|
193
193
|
// there is no space token for 52px
|
|
194
194
|
`0 52px` : `0 ${"var(--ds-space-400, 32px)"}`;
|
|
195
195
|
return css({
|
|
@@ -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";
|
|
@@ -194,7 +194,7 @@ tableFullPageEditorStyles, {
|
|
|
194
194
|
|
|
195
195
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
196
196
|
export var editorContentGutterStyle = function editorContentGutterStyle() {
|
|
197
|
-
var padding = fg('
|
|
197
|
+
var padding = fg('platform_editor_core_increase_full_page_guttering') ? // there is no space token for 52px
|
|
198
198
|
"0 52px" : "0 ".concat("var(--ds-space-400, 32px)");
|
|
199
199
|
return css({
|
|
200
200
|
boxSizing: 'border-box',
|
|
@@ -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";
|