@atlaskit/editor-core 203.11.13 → 203.12.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/create-editor/ReactEditorView/handleEditorFocus.js +17 -2
- package/dist/cjs/create-editor/ReactEditorViewNext.js +27 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView/handleEditorFocus.js +12 -2
- package/dist/es2019/create-editor/ReactEditorViewNext.js +25 -6
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView/handleEditorFocus.js +16 -2
- package/dist/esm/create-editor/ReactEditorViewNext.js +27 -6
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView/handleEditorFocus.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -8
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/ReactEditorView/handleEditorFocus.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -8
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/package.json +37 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 203.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 203.11.14
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#107453](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107453)
|
|
20
|
+
[`2cdb4872aa8e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2cdb4872aa8e0) -
|
|
21
|
+
EDF-2233: Fix autofocus in React 18 Concurrent Rendering mode - fix is behind
|
|
22
|
+
platform_editor_react_18_autofocus_fix.
|
|
23
|
+
|
|
3
24
|
## 203.11.13
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.handleEditorFocus = handleEditorFocus;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
9
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
11
|
function handleEditorFocus(view) {
|
|
9
12
|
if (view !== null && view !== void 0 && view.hasFocus()) {
|
|
10
13
|
return;
|
|
11
14
|
}
|
|
12
|
-
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* If startTransition is available (in React 18),
|
|
18
|
+
* don't use setTimeout as startTransition will be used in ReactEditorViewNext.
|
|
19
|
+
* setTimeout(fn, 0) will not defer the focus reliably in React 18 with
|
|
20
|
+
* concurrent rendering.
|
|
21
|
+
*/
|
|
22
|
+
var react16OnlySetTimeout = _react.default !== null && _react.default !== void 0 && _react.default.startTransition && (0, _platformFeatureFlags.fg)('platform_editor_react_18_autofocus_fix') ? function (fn) {
|
|
23
|
+
return fn();
|
|
24
|
+
} : function (fn) {
|
|
25
|
+
return window.setTimeout(fn, 0);
|
|
26
|
+
};
|
|
27
|
+
return react16OnlySetTimeout(function () {
|
|
13
28
|
if (view !== null && view !== void 0 && view.hasFocus()) {
|
|
14
29
|
return;
|
|
15
30
|
}
|
|
@@ -42,5 +57,5 @@ function handleEditorFocus(view) {
|
|
|
42
57
|
view.dispatch(tr);
|
|
43
58
|
view.focus();
|
|
44
59
|
}
|
|
45
|
-
}
|
|
60
|
+
});
|
|
46
61
|
}
|
|
@@ -451,11 +451,17 @@ function ReactEditorView(props) {
|
|
|
451
451
|
}, [getDirectEditorProps, dispatchAnalyticsEvent]);
|
|
452
452
|
var _useState3 = (0, _react.useState)(undefined),
|
|
453
453
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
454
|
-
|
|
454
|
+
editorView = _useState4[0],
|
|
455
455
|
setEditorView = _useState4[1];
|
|
456
456
|
var onEditorCreated = props.onEditorCreated,
|
|
457
457
|
onEditorDestroyed = props.onEditorDestroyed,
|
|
458
458
|
shouldFocus = props.editorProps.shouldFocus;
|
|
459
|
+
(0, _react.useLayoutEffect)(function () {
|
|
460
|
+
var _editorView$props$edi, _editorView$props;
|
|
461
|
+
if (shouldFocus && editorView !== null && editorView !== void 0 && (_editorView$props$edi = (_editorView$props = editorView.props).editable) !== null && _editorView$props$edi !== void 0 && _editorView$props$edi.call(_editorView$props, editorView.state) && (0, _platformFeatureFlags.fg)('platform_editor_react_18_autofocus_fix')) {
|
|
462
|
+
focusTimeoutId.current = (0, _handleEditorFocus.handleEditorFocus)(editorView);
|
|
463
|
+
}
|
|
464
|
+
}, [editorView, shouldFocus]);
|
|
459
465
|
var handleEditorViewRef = (0, _react.useCallback)(function (node) {
|
|
460
466
|
if (!viewRef.current && node) {
|
|
461
467
|
var view = createEditorView(node);
|
|
@@ -465,12 +471,27 @@ function ReactEditorView(props) {
|
|
|
465
471
|
eventDispatcher: eventDispatcher,
|
|
466
472
|
transformer: contentTransformer.current
|
|
467
473
|
});
|
|
468
|
-
if (
|
|
469
|
-
|
|
474
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_react_18_autofocus_fix')) {
|
|
475
|
+
var _startTransition;
|
|
476
|
+
/**
|
|
477
|
+
* Defer using startTransition when it is available (in React 18) to fix
|
|
478
|
+
* autofocus bug where React 18's concurrent rendering mode interferes with
|
|
479
|
+
* setTimeout used in handleEditorFocus, causing autofocus to break.
|
|
480
|
+
*/
|
|
481
|
+
var react18OnlyStartTransition = (_startTransition = _react.default === null || _react.default === void 0 ? void 0 : _react.default.startTransition) !== null && _startTransition !== void 0 ? _startTransition : function (fn) {
|
|
482
|
+
return fn();
|
|
483
|
+
};
|
|
484
|
+
react18OnlyStartTransition(function () {
|
|
485
|
+
// Force React to re-render so consumers get a reference to the editor view
|
|
486
|
+
setEditorView(view);
|
|
487
|
+
});
|
|
488
|
+
} else {
|
|
489
|
+
if (shouldFocus && view.props.editable && view.props.editable(view.state)) {
|
|
490
|
+
focusTimeoutId.current = (0, _handleEditorFocus.handleEditorFocus)(view);
|
|
491
|
+
}
|
|
492
|
+
// Force React to re-render so consumers get a reference to the editor view
|
|
493
|
+
setEditorView(view);
|
|
470
494
|
}
|
|
471
|
-
|
|
472
|
-
// Force React to re-render so consumers get a reference to the editor view
|
|
473
|
-
setEditorView(view);
|
|
474
495
|
} else if (viewRef.current && !node) {
|
|
475
496
|
// When the appearance is changed, React will call handleEditorViewRef with node === null
|
|
476
497
|
// to destroy the old EditorView, before calling this method again with node === div to
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
4
|
export function handleEditorFocus(view) {
|
|
3
5
|
if (view !== null && view !== void 0 && view.hasFocus()) {
|
|
4
6
|
return;
|
|
5
7
|
}
|
|
6
|
-
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* If startTransition is available (in React 18),
|
|
11
|
+
* don't use setTimeout as startTransition will be used in ReactEditorViewNext.
|
|
12
|
+
* setTimeout(fn, 0) will not defer the focus reliably in React 18 with
|
|
13
|
+
* concurrent rendering.
|
|
14
|
+
*/
|
|
15
|
+
const react16OnlySetTimeout = React !== null && React !== void 0 && React.startTransition && fg('platform_editor_react_18_autofocus_fix') ? fn => fn() : fn => window.setTimeout(fn, 0);
|
|
16
|
+
return react16OnlySetTimeout(() => {
|
|
7
17
|
if (view !== null && view !== void 0 && view.hasFocus()) {
|
|
8
18
|
return;
|
|
9
19
|
}
|
|
@@ -36,5 +46,5 @@ export function handleEditorFocus(view) {
|
|
|
36
46
|
view.dispatch(tr);
|
|
37
47
|
view.focus();
|
|
38
48
|
}
|
|
39
|
-
}
|
|
49
|
+
});
|
|
40
50
|
}
|
|
@@ -422,7 +422,7 @@ export function ReactEditorView(props) {
|
|
|
422
422
|
});
|
|
423
423
|
return view;
|
|
424
424
|
}, [getDirectEditorProps, dispatchAnalyticsEvent]);
|
|
425
|
-
const [
|
|
425
|
+
const [editorView, setEditorView] = useState(undefined);
|
|
426
426
|
const {
|
|
427
427
|
onEditorCreated,
|
|
428
428
|
onEditorDestroyed,
|
|
@@ -430,6 +430,12 @@ export function ReactEditorView(props) {
|
|
|
430
430
|
shouldFocus
|
|
431
431
|
}
|
|
432
432
|
} = props;
|
|
433
|
+
useLayoutEffect(() => {
|
|
434
|
+
var _editorView$props$edi, _editorView$props;
|
|
435
|
+
if (shouldFocus && editorView !== null && editorView !== void 0 && (_editorView$props$edi = (_editorView$props = editorView.props).editable) !== null && _editorView$props$edi !== void 0 && _editorView$props$edi.call(_editorView$props, editorView.state) && fg('platform_editor_react_18_autofocus_fix')) {
|
|
436
|
+
focusTimeoutId.current = handleEditorFocus(editorView);
|
|
437
|
+
}
|
|
438
|
+
}, [editorView, shouldFocus]);
|
|
433
439
|
const handleEditorViewRef = useCallback(node => {
|
|
434
440
|
if (!viewRef.current && node) {
|
|
435
441
|
const view = createEditorView(node);
|
|
@@ -439,12 +445,25 @@ export function ReactEditorView(props) {
|
|
|
439
445
|
eventDispatcher: eventDispatcher,
|
|
440
446
|
transformer: contentTransformer.current
|
|
441
447
|
});
|
|
442
|
-
if (
|
|
443
|
-
|
|
448
|
+
if (fg('platform_editor_react_18_autofocus_fix')) {
|
|
449
|
+
var _startTransition;
|
|
450
|
+
/**
|
|
451
|
+
* Defer using startTransition when it is available (in React 18) to fix
|
|
452
|
+
* autofocus bug where React 18's concurrent rendering mode interferes with
|
|
453
|
+
* setTimeout used in handleEditorFocus, causing autofocus to break.
|
|
454
|
+
*/
|
|
455
|
+
const react18OnlyStartTransition = (_startTransition = React === null || React === void 0 ? void 0 : React.startTransition) !== null && _startTransition !== void 0 ? _startTransition : fn => fn();
|
|
456
|
+
react18OnlyStartTransition(() => {
|
|
457
|
+
// Force React to re-render so consumers get a reference to the editor view
|
|
458
|
+
setEditorView(view);
|
|
459
|
+
});
|
|
460
|
+
} else {
|
|
461
|
+
if (shouldFocus && view.props.editable && view.props.editable(view.state)) {
|
|
462
|
+
focusTimeoutId.current = handleEditorFocus(view);
|
|
463
|
+
}
|
|
464
|
+
// Force React to re-render so consumers get a reference to the editor view
|
|
465
|
+
setEditorView(view);
|
|
444
466
|
}
|
|
445
|
-
|
|
446
|
-
// Force React to re-render so consumers get a reference to the editor view
|
|
447
|
-
setEditorView(view);
|
|
448
467
|
} else if (viewRef.current && !node) {
|
|
449
468
|
// When the appearance is changed, React will call handleEditorViewRef with node === null
|
|
450
469
|
// to destroy the old EditorView, before calling this method again with node === div to
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "203.
|
|
2
|
+
export const version = "203.12.0";
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
4
|
export function handleEditorFocus(view) {
|
|
3
5
|
if (view !== null && view !== void 0 && view.hasFocus()) {
|
|
4
6
|
return;
|
|
5
7
|
}
|
|
6
|
-
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* If startTransition is available (in React 18),
|
|
11
|
+
* don't use setTimeout as startTransition will be used in ReactEditorViewNext.
|
|
12
|
+
* setTimeout(fn, 0) will not defer the focus reliably in React 18 with
|
|
13
|
+
* concurrent rendering.
|
|
14
|
+
*/
|
|
15
|
+
var react16OnlySetTimeout = React !== null && React !== void 0 && React.startTransition && fg('platform_editor_react_18_autofocus_fix') ? function (fn) {
|
|
16
|
+
return fn();
|
|
17
|
+
} : function (fn) {
|
|
18
|
+
return window.setTimeout(fn, 0);
|
|
19
|
+
};
|
|
20
|
+
return react16OnlySetTimeout(function () {
|
|
7
21
|
if (view !== null && view !== void 0 && view.hasFocus()) {
|
|
8
22
|
return;
|
|
9
23
|
}
|
|
@@ -36,5 +50,5 @@ export function handleEditorFocus(view) {
|
|
|
36
50
|
view.dispatch(tr);
|
|
37
51
|
view.focus();
|
|
38
52
|
}
|
|
39
|
-
}
|
|
53
|
+
});
|
|
40
54
|
}
|
|
@@ -440,11 +440,17 @@ export function ReactEditorView(props) {
|
|
|
440
440
|
}, [getDirectEditorProps, dispatchAnalyticsEvent]);
|
|
441
441
|
var _useState3 = useState(undefined),
|
|
442
442
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
443
|
-
|
|
443
|
+
editorView = _useState4[0],
|
|
444
444
|
setEditorView = _useState4[1];
|
|
445
445
|
var onEditorCreated = props.onEditorCreated,
|
|
446
446
|
onEditorDestroyed = props.onEditorDestroyed,
|
|
447
447
|
shouldFocus = props.editorProps.shouldFocus;
|
|
448
|
+
useLayoutEffect(function () {
|
|
449
|
+
var _editorView$props$edi, _editorView$props;
|
|
450
|
+
if (shouldFocus && editorView !== null && editorView !== void 0 && (_editorView$props$edi = (_editorView$props = editorView.props).editable) !== null && _editorView$props$edi !== void 0 && _editorView$props$edi.call(_editorView$props, editorView.state) && fg('platform_editor_react_18_autofocus_fix')) {
|
|
451
|
+
focusTimeoutId.current = handleEditorFocus(editorView);
|
|
452
|
+
}
|
|
453
|
+
}, [editorView, shouldFocus]);
|
|
448
454
|
var handleEditorViewRef = useCallback(function (node) {
|
|
449
455
|
if (!viewRef.current && node) {
|
|
450
456
|
var view = createEditorView(node);
|
|
@@ -454,12 +460,27 @@ export function ReactEditorView(props) {
|
|
|
454
460
|
eventDispatcher: eventDispatcher,
|
|
455
461
|
transformer: contentTransformer.current
|
|
456
462
|
});
|
|
457
|
-
if (
|
|
458
|
-
|
|
463
|
+
if (fg('platform_editor_react_18_autofocus_fix')) {
|
|
464
|
+
var _startTransition;
|
|
465
|
+
/**
|
|
466
|
+
* Defer using startTransition when it is available (in React 18) to fix
|
|
467
|
+
* autofocus bug where React 18's concurrent rendering mode interferes with
|
|
468
|
+
* setTimeout used in handleEditorFocus, causing autofocus to break.
|
|
469
|
+
*/
|
|
470
|
+
var react18OnlyStartTransition = (_startTransition = React === null || React === void 0 ? void 0 : React.startTransition) !== null && _startTransition !== void 0 ? _startTransition : function (fn) {
|
|
471
|
+
return fn();
|
|
472
|
+
};
|
|
473
|
+
react18OnlyStartTransition(function () {
|
|
474
|
+
// Force React to re-render so consumers get a reference to the editor view
|
|
475
|
+
setEditorView(view);
|
|
476
|
+
});
|
|
477
|
+
} else {
|
|
478
|
+
if (shouldFocus && view.props.editable && view.props.editable(view.state)) {
|
|
479
|
+
focusTimeoutId.current = handleEditorFocus(view);
|
|
480
|
+
}
|
|
481
|
+
// Force React to re-render so consumers get a reference to the editor view
|
|
482
|
+
setEditorView(view);
|
|
459
483
|
}
|
|
460
|
-
|
|
461
|
-
// Force React to re-render so consumers get a reference to the editor view
|
|
462
|
-
setEditorView(view);
|
|
463
484
|
} else if (viewRef.current && !node) {
|
|
464
485
|
// When the appearance is changed, React will call handleEditorViewRef with node === null
|
|
465
486
|
// to destroy the old EditorView, before calling this method again with node === div to
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "203.
|
|
2
|
+
export var version = "203.12.0";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
export declare function handleEditorFocus(view: EditorView |
|
|
2
|
+
export declare function handleEditorFocus(view: EditorView | undefined): number | undefined | void;
|
|
@@ -39,7 +39,7 @@ interface FullPageEditorContentAreaProps {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
41
41
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
42
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<
|
|
42
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "ref"> & React.RefAttributes<any>> & {
|
|
43
43
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
44
44
|
};
|
|
45
45
|
export {};
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const fullPageEditorWrapper: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
colorMode?: "light" | "dark" | undefined;
|
|
6
6
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
7
|
viewMode?: "edit" | "view" | undefined;
|
|
8
8
|
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
9
|
-
} & import("react").HTMLProps<HTMLDivElement>, "
|
|
10
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
colorMode?: "light" | "dark" | undefined;
|
|
12
|
-
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
13
|
-
viewMode?: "edit" | "view" | undefined;
|
|
14
|
-
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
15
|
-
} | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "defer" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
} & import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
10
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
17
11
|
export declare const contentAreaWrapper: import("@emotion/react").SerializedStyles;
|
|
18
12
|
export declare const contentAreaWrapperNoStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -20,6 +20,6 @@ export declare const placeholderStyles: SerializedStyles;
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const fixBlockControlStylesSSR: () => SerializedStyles | null;
|
|
22
22
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
23
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<
|
|
24
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
23
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
25
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
export declare function handleEditorFocus(view: EditorView |
|
|
2
|
+
export declare function handleEditorFocus(view: EditorView | undefined): number | undefined | void;
|
|
@@ -41,7 +41,7 @@ interface FullPageEditorContentAreaProps {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
43
43
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
44
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<
|
|
44
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "ref"> & React.RefAttributes<any>> & {
|
|
45
45
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
46
46
|
};
|
|
47
47
|
export {};
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const fullPageEditorWrapper: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
colorMode?: "light" | "dark" | undefined;
|
|
6
6
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
7
|
viewMode?: "edit" | "view" | undefined;
|
|
8
8
|
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
9
|
-
} & import("react").HTMLProps<HTMLDivElement>, "
|
|
10
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
colorMode?: "light" | "dark" | undefined;
|
|
12
|
-
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
13
|
-
viewMode?: "edit" | "view" | undefined;
|
|
14
|
-
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
15
|
-
} | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "defer" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
} & import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
10
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
17
11
|
export declare const contentAreaWrapper: import("@emotion/react").SerializedStyles;
|
|
18
12
|
export declare const contentAreaWrapperNoStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -20,6 +20,6 @@ export declare const placeholderStyles: SerializedStyles;
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const fixBlockControlStylesSSR: () => SerializedStyles | null;
|
|
22
22
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
23
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<
|
|
24
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
23
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
25
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "203.
|
|
3
|
+
"version": "203.12.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
41
41
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
42
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
43
|
-
"@atlaskit/analytics-next": "^10.
|
|
42
|
+
"@atlaskit/analytics-namespaced-context": "^6.13.0",
|
|
43
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
|
-
"@atlaskit/button": "^20.
|
|
46
|
-
"@atlaskit/editor-common": "^99.
|
|
47
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
48
|
-
"@atlaskit/editor-plugin-quick-insert": "1.
|
|
49
|
-
"@atlaskit/editor-plugins": "^7.
|
|
45
|
+
"@atlaskit/button": "^20.4.0",
|
|
46
|
+
"@atlaskit/editor-common": "^99.6.0",
|
|
47
|
+
"@atlaskit/editor-json-transformer": "^8.22.0",
|
|
48
|
+
"@atlaskit/editor-plugin-quick-insert": "1.9.0",
|
|
49
|
+
"@atlaskit/editor-plugins": "^7.1.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
52
|
-
"@atlaskit/emoji": "^67.
|
|
53
|
-
"@atlaskit/icon": "^23.
|
|
54
|
-
"@atlaskit/media-card": "^78.
|
|
55
|
-
"@atlaskit/mention": "^23.
|
|
52
|
+
"@atlaskit/emoji": "^67.13.0",
|
|
53
|
+
"@atlaskit/icon": "^23.5.0",
|
|
54
|
+
"@atlaskit/media-card": "^78.19.0",
|
|
55
|
+
"@atlaskit/mention": "^23.11.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
|
-
"@atlaskit/task-decision": "^17.
|
|
57
|
+
"@atlaskit/task-decision": "^17.12.0",
|
|
58
58
|
"@atlaskit/tmp-editor-statsig": "^2.41.0",
|
|
59
|
-
"@atlaskit/tokens": "^3.
|
|
60
|
-
"@atlaskit/tooltip": "^19.
|
|
61
|
-
"@atlaskit/width-detector": "^4.
|
|
59
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
60
|
+
"@atlaskit/tooltip": "^19.1.0",
|
|
61
|
+
"@atlaskit/width-detector": "^4.4.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
64
64
|
"@types/react-loadable": "^5.4.1",
|
|
@@ -81,32 +81,32 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@af/editor-libra": "*",
|
|
83
83
|
"@af/visual-regression": "*",
|
|
84
|
-
"@atlaskit/adf-utils": "^19.
|
|
85
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
86
|
-
"@atlaskit/collab-provider": "10.
|
|
87
|
-
"@atlaskit/editor-plugin-annotation": "1.
|
|
84
|
+
"@atlaskit/adf-utils": "^19.18.0",
|
|
85
|
+
"@atlaskit/analytics-listeners": "^8.14.0",
|
|
86
|
+
"@atlaskit/collab-provider": "10.5.0",
|
|
87
|
+
"@atlaskit/editor-plugin-annotation": "1.27.0",
|
|
88
88
|
"@atlaskit/editor-plugin-card": "^4.5.0",
|
|
89
89
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
90
|
-
"@atlaskit/editor-plugin-paste": "^2.
|
|
91
|
-
"@atlaskit/link-provider": "^1.
|
|
92
|
-
"@atlaskit/logo": "^15.
|
|
93
|
-
"@atlaskit/media-core": "^34.
|
|
90
|
+
"@atlaskit/editor-plugin-paste": "^2.1.0",
|
|
91
|
+
"@atlaskit/link-provider": "^1.19.0",
|
|
92
|
+
"@atlaskit/logo": "^15.2.0",
|
|
93
|
+
"@atlaskit/media-core": "^34.5.0",
|
|
94
94
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
95
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
96
|
-
"@atlaskit/modal-dialog": "^12.
|
|
97
|
-
"@atlaskit/primitives": "^13.
|
|
98
|
-
"@atlaskit/renderer": "^112.
|
|
99
|
-
"@atlaskit/smart-card": "^34.
|
|
95
|
+
"@atlaskit/media-test-helpers": "^34.8.0",
|
|
96
|
+
"@atlaskit/modal-dialog": "^12.20.0",
|
|
97
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
98
|
+
"@atlaskit/renderer": "^112.12.0",
|
|
99
|
+
"@atlaskit/smart-card": "^34.8.0",
|
|
100
100
|
"@atlaskit/synchrony-test-helpers": "^3.0.0",
|
|
101
|
-
"@atlaskit/toggle": "^14.
|
|
102
|
-
"@atlaskit/util-data-test": "^
|
|
101
|
+
"@atlaskit/toggle": "^14.1.0",
|
|
102
|
+
"@atlaskit/util-data-test": "^18.0.0",
|
|
103
103
|
"@atlaskit/visual-regression": "*",
|
|
104
104
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
105
105
|
"@atlassian/feature-flags-test-utils": "*",
|
|
106
|
-
"@atlassian/search-provider": "3.0.
|
|
106
|
+
"@atlassian/search-provider": "3.0.31",
|
|
107
107
|
"@emotion/jest": "^11.8.0",
|
|
108
108
|
"@storybook/addon-knobs": "^6.4.0",
|
|
109
|
-
"@testing-library/react": "^
|
|
109
|
+
"@testing-library/react": "^13.4.0",
|
|
110
110
|
"@testing-library/react-hooks": "^8.0.1",
|
|
111
111
|
"@types/diff": "^5.0.2",
|
|
112
112
|
"@types/is-number": "^7.0.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"jscodeshift": "^0.13.0",
|
|
116
116
|
"mockdate": "^3.0.5",
|
|
117
117
|
"raf-stub": "^2.0.1",
|
|
118
|
-
"react": "^
|
|
118
|
+
"react": "^18.2.0",
|
|
119
119
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
120
120
|
"typescript": "~5.4.2",
|
|
121
121
|
"url-search-params": "^0.10.0"
|
|
@@ -407,6 +407,9 @@
|
|
|
407
407
|
"platform_editor_nested_tables_paste_dupe_fix": {
|
|
408
408
|
"type": "boolean",
|
|
409
409
|
"referenceOnly": true
|
|
410
|
+
},
|
|
411
|
+
"platform_editor_react_18_autofocus_fix": {
|
|
412
|
+
"type": "boolean"
|
|
410
413
|
}
|
|
411
414
|
},
|
|
412
415
|
"stricter": {
|