@atlaskit/editor-core 195.4.9 → 195.5.0
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 +21 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +6 -1
- package/dist/cjs/ui/Appearance/FullPage/types.js +1 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +6 -1
- package/dist/es2019/ui/Appearance/FullPage/types.js +0 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +6 -1
- package/dist/esm/ui/Appearance/FullPage/types.js +0 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -4
- package/dist/types/ui/Appearance/FullPage/types.d.ts +5 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -4
- package/dist/types-ts4.5/ui/Appearance/FullPage/types.d.ts +5 -0
- package/package.json +7 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#130806](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130806)
|
|
8
|
+
[`0354a6dc7bfb9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0354a6dc7bfb9) -
|
|
9
|
+
ENGHEALTH-9888 : Bumps React 18 in Editor
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 195.4.10
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#130747](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130747)
|
|
20
|
+
[`299678481fe83`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/299678481fe83) -
|
|
21
|
+
improve popupsBoundariesElement for full page editor
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 195.4.9
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -72,7 +72,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
72
72
|
primaryToolbarComponents = additionalComponents.concat(primaryToolbarComponents);
|
|
73
73
|
}
|
|
74
74
|
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
75
|
-
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.
|
|
75
|
+
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
76
76
|
return (0, _react2.jsx)(_ui.ContextPanelWidthProvider, null, (0, _react2.jsx)("div", {
|
|
77
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
78
78
|
css: _StyledComponents.fullPageEditorWrapper
|
|
@@ -30,6 +30,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
30
30
|
var fullWidthMode = props.appearance === 'full-width';
|
|
31
31
|
var scrollContainerRef = (0, _react.useRef)(null);
|
|
32
32
|
var contentAreaRef = (0, _react.useRef)(null);
|
|
33
|
+
var containerRef = (0, _react.useRef)(null);
|
|
33
34
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
34
35
|
return {
|
|
35
36
|
get scrollContainer() {
|
|
@@ -37,6 +38,9 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
37
38
|
},
|
|
38
39
|
get contentArea() {
|
|
39
40
|
return contentAreaRef.current;
|
|
41
|
+
},
|
|
42
|
+
get containerArea() {
|
|
43
|
+
return containerRef.current;
|
|
40
44
|
}
|
|
41
45
|
};
|
|
42
46
|
}, []);
|
|
@@ -53,7 +57,8 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
53
57
|
props.isEditorToolbarHidden && _StyledComponents.contentAreaHeightNoToolbar,
|
|
54
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
55
59
|
positionedOverEditor && _StyledComponents.positionedOverEditorStyle],
|
|
56
|
-
"data-testid": CONTENT_AREA_TEST_ID
|
|
60
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
61
|
+
ref: containerRef
|
|
57
62
|
}, (0, _react2.jsx)(_StyledComponents.ScrollContainer
|
|
58
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
59
64
|
, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -54,7 +54,7 @@ export const FullPageEditor = props => {
|
|
|
54
54
|
primaryToolbarComponents = additionalComponents.concat(primaryToolbarComponents);
|
|
55
55
|
}
|
|
56
56
|
const isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
57
|
-
const popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 ? void 0 : (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.
|
|
57
|
+
const popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 ? void 0 : (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
58
58
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
59
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
60
60
|
css: fullPageEditorWrapper
|
|
@@ -20,12 +20,16 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
20
20
|
const fullWidthMode = props.appearance === 'full-width';
|
|
21
21
|
const scrollContainerRef = useRef(null);
|
|
22
22
|
const contentAreaRef = useRef(null);
|
|
23
|
+
const containerRef = useRef(null);
|
|
23
24
|
useImperativeHandle(ref, () => ({
|
|
24
25
|
get scrollContainer() {
|
|
25
26
|
return scrollContainerRef.current;
|
|
26
27
|
},
|
|
27
28
|
get contentArea() {
|
|
28
29
|
return contentAreaRef.current;
|
|
30
|
+
},
|
|
31
|
+
get containerArea() {
|
|
32
|
+
return containerRef.current;
|
|
29
33
|
}
|
|
30
34
|
}), []);
|
|
31
35
|
return jsx(WidthConsumer, null, ({
|
|
@@ -42,7 +46,8 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
42
46
|
props.isEditorToolbarHidden && contentAreaHeightNoToolbar,
|
|
43
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
44
48
|
positionedOverEditor && positionedOverEditorStyle],
|
|
45
|
-
"data-testid": CONTENT_AREA_TEST_ID
|
|
49
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
50
|
+
ref: containerRef
|
|
46
51
|
}, jsx(ScrollContainer
|
|
47
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
48
53
|
, {
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.
|
|
2
|
+
export const version = "195.5.0";
|
|
@@ -61,7 +61,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
61
61
|
primaryToolbarComponents = additionalComponents.concat(primaryToolbarComponents);
|
|
62
62
|
}
|
|
63
63
|
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
64
|
-
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.
|
|
64
|
+
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
65
65
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
66
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
67
67
|
css: fullPageEditorWrapper
|
|
@@ -20,6 +20,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
20
20
|
var fullWidthMode = props.appearance === 'full-width';
|
|
21
21
|
var scrollContainerRef = useRef(null);
|
|
22
22
|
var contentAreaRef = useRef(null);
|
|
23
|
+
var containerRef = useRef(null);
|
|
23
24
|
useImperativeHandle(ref, function () {
|
|
24
25
|
return {
|
|
25
26
|
get scrollContainer() {
|
|
@@ -27,6 +28,9 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
27
28
|
},
|
|
28
29
|
get contentArea() {
|
|
29
30
|
return contentAreaRef.current;
|
|
31
|
+
},
|
|
32
|
+
get containerArea() {
|
|
33
|
+
return containerRef.current;
|
|
30
34
|
}
|
|
31
35
|
};
|
|
32
36
|
}, []);
|
|
@@ -43,7 +47,8 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
43
47
|
props.isEditorToolbarHidden && contentAreaHeightNoToolbar,
|
|
44
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
45
49
|
positionedOverEditor && positionedOverEditorStyle],
|
|
46
|
-
"data-testid": CONTENT_AREA_TEST_ID
|
|
50
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
51
|
+
ref: containerRef
|
|
47
52
|
}, jsx(ScrollContainer
|
|
48
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
49
54
|
, {
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.
|
|
2
|
+
export var version = "195.5.0";
|
|
@@ -13,6 +13,7 @@ import type EditorActions from '../../../actions';
|
|
|
13
13
|
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
14
14
|
import type { ContentComponents, EditorAppearance, ReactComponents, UIComponentFactory } from '../../../types';
|
|
15
15
|
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
16
|
+
import { type ScrollContainerRefs } from './types';
|
|
16
17
|
interface FullPageEditorContentAreaProps {
|
|
17
18
|
appearance: EditorAppearance | undefined;
|
|
18
19
|
contentComponents: UIComponentFactory[] | undefined;
|
|
@@ -34,10 +35,6 @@ interface FullPageEditorContentAreaProps {
|
|
|
34
35
|
isEditorToolbarHidden?: boolean;
|
|
35
36
|
}
|
|
36
37
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
37
|
-
type ScrollContainerRefs = {
|
|
38
|
-
scrollContainer: HTMLDivElement | null;
|
|
39
|
-
contentArea: HTMLDivElement | null;
|
|
40
|
-
};
|
|
41
38
|
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "children" | "key" | keyof FullPageEditorContentAreaProps | "forwardedRef"> & React.RefAttributes<any>> & {
|
|
42
39
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
43
40
|
};
|
|
@@ -13,6 +13,7 @@ import type EditorActions from '../../../actions';
|
|
|
13
13
|
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
14
14
|
import type { ContentComponents, EditorAppearance, ReactComponents, UIComponentFactory } from '../../../types';
|
|
15
15
|
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
16
|
+
import { type ScrollContainerRefs } from './types';
|
|
16
17
|
interface FullPageEditorContentAreaProps {
|
|
17
18
|
appearance: EditorAppearance | undefined;
|
|
18
19
|
contentComponents: UIComponentFactory[] | undefined;
|
|
@@ -34,10 +35,6 @@ interface FullPageEditorContentAreaProps {
|
|
|
34
35
|
isEditorToolbarHidden?: boolean;
|
|
35
36
|
}
|
|
36
37
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
37
|
-
type ScrollContainerRefs = {
|
|
38
|
-
scrollContainer: HTMLDivElement | null;
|
|
39
|
-
contentArea: HTMLDivElement | null;
|
|
40
|
-
};
|
|
41
38
|
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "children" | "key" | keyof FullPageEditorContentAreaProps | "forwardedRef"> & React.RefAttributes<any>> & {
|
|
42
39
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
43
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.
|
|
3
|
+
"version": "195.5.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^20.0.0",
|
|
48
|
-
"@atlaskit/editor-common": "^87.
|
|
49
|
-
"@atlaskit/editor-plugins": "^4.
|
|
48
|
+
"@atlaskit/editor-common": "^87.13.0",
|
|
49
|
+
"@atlaskit/editor-plugins": "^4.1.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.7.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@atlaskit/link-provider": "^1.12.0",
|
|
77
77
|
"@atlaskit/media-core": "^34.3.0",
|
|
78
|
-
"react": "^16.8.0",
|
|
79
|
-
"react-dom": "^16.8.0",
|
|
78
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
79
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
80
80
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@atlaskit/editor-plugin-card": "^2.13.0",
|
|
92
92
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
93
93
|
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
94
|
-
"@atlaskit/editor-plugin-paste": "^1.
|
|
94
|
+
"@atlaskit/editor-plugin-paste": "^1.9.0",
|
|
95
95
|
"@atlaskit/editor-test-helpers": "*",
|
|
96
96
|
"@atlaskit/link-provider": "^1.14.0",
|
|
97
97
|
"@atlaskit/logo": "^14.2.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@atlaskit/media-test-helpers": "^34.0.0",
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
102
102
|
"@atlaskit/primitives": "^12.0.0",
|
|
103
|
-
"@atlaskit/renderer": "^109.
|
|
103
|
+
"@atlaskit/renderer": "^109.50.0",
|
|
104
104
|
"@atlaskit/smart-card": "^27.16.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
106
106
|
"@atlaskit/toggle": "^13.3.0",
|
|
@@ -227,10 +227,6 @@
|
|
|
227
227
|
"type": "boolean",
|
|
228
228
|
"referenceOnly": "true"
|
|
229
229
|
},
|
|
230
|
-
"platform.editor.preserve-whitespace-clipboard-text-serialization": {
|
|
231
|
-
"type": "boolean",
|
|
232
|
-
"referenceOnly": "true"
|
|
233
|
-
},
|
|
234
230
|
"platform.editor.live-view.disable-editing-in-view-mode_fi1rx": {
|
|
235
231
|
"type": "boolean",
|
|
236
232
|
"referenceOnly": "true"
|