@atlaskit/editor-core 206.0.2 → 206.1.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 +25 -0
- package/dist/cjs/ui/Appearance/Chromeless.js +12 -4
- package/dist/cjs/ui/Appearance/Comment/Comment.js +9 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +25 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +1 -18
- package/dist/cjs/ui/ContentStyles/index.js +11 -4
- package/dist/cjs/ui/ContentStyles/layout.js +4 -0
- package/dist/cjs/ui/EditorContentContainer.js +260 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +9 -3
- package/dist/es2019/ui/Appearance/Comment/Comment.js +7 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +25 -4
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +0 -18
- package/dist/es2019/ui/ContentStyles/index.js +11 -4
- package/dist/es2019/ui/ContentStyles/layout.js +4 -0
- package/dist/es2019/ui/EditorContentContainer.js +624 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +11 -3
- package/dist/esm/ui/Appearance/Comment/Comment.js +9 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +27 -4
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +0 -18
- package/dist/esm/ui/ContentStyles/index.js +11 -4
- package/dist/esm/ui/ContentStyles/layout.js +4 -0
- package/dist/esm/ui/EditorContentContainer.js +251 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types/presets/universal.d.ts +3 -0
- package/dist/types/presets/useUniversalPreset.d.ts +3 -0
- package/dist/types/ui/Appearance/Chromeless.d.ts +10 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -9
- package/dist/types/ui/ContentStyles/index.d.ts +2 -1
- package/dist/types/ui/EditorContentContainer.d.ts +39 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types-ts4.5/presets/universal.d.ts +3 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +3 -0
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +10 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +0 -9
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/EditorContentContainer.d.ts +39 -0
- package/package.json +6 -7
|
@@ -4,10 +4,19 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { type EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
9
9
|
import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
|
|
10
10
|
import type { EditorAppearanceComponentProps } from '../../types';
|
|
11
|
+
export declare const ContentArea: React.ForwardRefExoticComponent<Omit<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
colorMode?: "light" | "dark" | undefined;
|
|
14
|
+
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
15
|
+
viewMode?: "edit" | "view" | undefined;
|
|
16
|
+
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
17
|
+
isScrollable?: boolean | undefined;
|
|
18
|
+
appearance?: EditorAppearance | undefined;
|
|
19
|
+
} & React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
20
|
type AppearanceProps = EditorAppearanceComponentProps<[
|
|
12
21
|
OptionalPlugin<MaxContentSizePlugin>,
|
|
13
22
|
OptionalPlugin<EditorViewModePlugin>
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const fullPageEditorWrapper: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
colorMode?: "light" | "dark" | undefined;
|
|
6
|
-
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
|
-
viewMode?: "edit" | "view" | undefined;
|
|
8
|
-
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
9
|
-
isScrollable?: boolean | undefined;
|
|
10
|
-
} & import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
2
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
12
3
|
export declare const contentAreaWrapper: import("@emotion/react").SerializedStyles;
|
|
13
4
|
export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { SerializedStyles } from '@emotion/react';
|
|
7
7
|
import { type Theme } from '@emotion/react';
|
|
8
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
9
|
export declare const linkStyles: SerializedStyles;
|
|
10
10
|
type ContentStylesProps = {
|
|
11
11
|
theme?: Theme;
|
|
@@ -14,6 +14,7 @@ type ContentStylesProps = {
|
|
|
14
14
|
viewMode?: 'view' | 'edit';
|
|
15
15
|
typographyTheme?: 'typography' | 'typography-adg3' | 'typography-modernized' | 'typography-refreshed';
|
|
16
16
|
isScrollable?: boolean;
|
|
17
|
+
appearance?: EditorAppearance;
|
|
17
18
|
};
|
|
18
19
|
export declare const placeholderStyles: SerializedStyles;
|
|
19
20
|
/**
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
+
export declare const linkStyles: import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const placeholderStyles: import("@emotion/react").SerializedStyles;
|
|
9
|
+
/**
|
|
10
|
+
* fix layout issue of first block node
|
|
11
|
+
*/
|
|
12
|
+
export declare const fixBlockControlStylesSSR: () => import("@emotion/react").SerializedStyles;
|
|
13
|
+
export type EditorContentContainerProps = {
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
featureFlags?: FeatureFlags;
|
|
17
|
+
viewMode?: 'view' | 'edit';
|
|
18
|
+
isScrollable?: boolean;
|
|
19
|
+
appearance?: EditorAppearance;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* EditorContentStyles is a wrapper component that applies styles to its children
|
|
23
|
+
* based on the provided feature flags, view mode, and other props.
|
|
24
|
+
* It uses Emotion for styling and supports scrollable content.
|
|
25
|
+
* The component is memoized to optimize performance.
|
|
26
|
+
*
|
|
27
|
+
* This will be used in near future to replace the current editor content styles from index.tsx
|
|
28
|
+
*
|
|
29
|
+
* @param {EditorContentContainerProps} props - The props for the component.
|
|
30
|
+
* @param {string} props.className - Additional class name for the component.
|
|
31
|
+
* @param {React.ReactNode} props.children - The content to be rendered inside the component.
|
|
32
|
+
* @param {FeatureFlags} props.featureFlags - Feature flags to control the styles.
|
|
33
|
+
* @param {'view' | 'edit'} props.viewMode - The view mode of the editor.
|
|
34
|
+
* @param {boolean} props.isScrollable - Whether the content is scrollable.
|
|
35
|
+
* @param {'full-page' | 'full-width' | 'comment' | 'chromeless'} props.appearance - The appearance of the editor.
|
|
36
|
+
* @returns {JSX.Element} The styled content component.
|
|
37
|
+
*/
|
|
38
|
+
declare const EditorContentContainer: React.ForwardRefExoticComponent<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export default EditorContentContainer;
|
|
@@ -929,6 +929,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
929
929
|
suppressToolbar?: (() => boolean) | undefined;
|
|
930
930
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
931
931
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
932
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
932
933
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
933
934
|
} | undefined;
|
|
934
935
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>>
|
|
@@ -1021,6 +1022,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1021
1022
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1022
1023
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
1023
1024
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1025
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1024
1026
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
1025
1027
|
} | undefined;
|
|
1026
1028
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>,
|
|
@@ -1119,6 +1121,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1119
1121
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1120
1122
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
1121
1123
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1124
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1122
1125
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
1123
1126
|
} | undefined;
|
|
1124
1127
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>>
|
|
@@ -981,6 +981,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
981
981
|
suppressToolbar?: (() => boolean) | undefined;
|
|
982
982
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
983
983
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
984
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
984
985
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
985
986
|
} | undefined;
|
|
986
987
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>>
|
|
@@ -1073,6 +1074,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1073
1074
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1074
1075
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
1075
1076
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1077
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1076
1078
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
1077
1079
|
} | undefined;
|
|
1078
1080
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>,
|
|
@@ -1171,6 +1173,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1171
1173
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1172
1174
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
1173
1175
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1176
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1174
1177
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
1175
1178
|
} | undefined;
|
|
1176
1179
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>>
|
|
@@ -929,6 +929,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
929
929
|
suppressToolbar?: (() => boolean) | undefined;
|
|
930
930
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
931
931
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
932
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
932
933
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
933
934
|
} | undefined;
|
|
934
935
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>>
|
|
@@ -1021,6 +1022,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1021
1022
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1022
1023
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
1023
1024
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1025
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1024
1026
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
1025
1027
|
} | undefined;
|
|
1026
1028
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>,
|
|
@@ -1119,6 +1121,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1119
1121
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1120
1122
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
1121
1123
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1124
|
+
forceToolbarDockingWithoutAnalytics?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1122
1125
|
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
1123
1126
|
} | undefined;
|
|
1124
1127
|
}, import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions>>
|
|
@@ -4,10 +4,19 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { type EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
9
9
|
import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
|
|
10
10
|
import type { EditorAppearanceComponentProps } from '../../types';
|
|
11
|
+
export declare const ContentArea: React.ForwardRefExoticComponent<Omit<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
colorMode?: "light" | "dark" | undefined;
|
|
14
|
+
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
15
|
+
viewMode?: "edit" | "view" | undefined;
|
|
16
|
+
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
17
|
+
isScrollable?: boolean | undefined;
|
|
18
|
+
appearance?: EditorAppearance | undefined;
|
|
19
|
+
} & React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
20
|
type AppearanceProps = EditorAppearanceComponentProps<[
|
|
12
21
|
OptionalPlugin<MaxContentSizePlugin>,
|
|
13
22
|
OptionalPlugin<EditorViewModePlugin>
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const fullPageEditorWrapper: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
colorMode?: "light" | "dark" | undefined;
|
|
6
|
-
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
|
-
viewMode?: "edit" | "view" | undefined;
|
|
8
|
-
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
9
|
-
isScrollable?: boolean | undefined;
|
|
10
|
-
} & import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
2
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
12
3
|
export declare const contentAreaWrapper: import("@emotion/react").SerializedStyles;
|
|
13
4
|
export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { SerializedStyles } from '@emotion/react';
|
|
7
7
|
import { type Theme } from '@emotion/react';
|
|
8
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
9
|
export declare const linkStyles: SerializedStyles;
|
|
10
10
|
type ContentStylesProps = {
|
|
11
11
|
theme?: Theme;
|
|
@@ -14,6 +14,7 @@ type ContentStylesProps = {
|
|
|
14
14
|
viewMode?: 'view' | 'edit';
|
|
15
15
|
typographyTheme?: 'typography' | 'typography-adg3' | 'typography-modernized' | 'typography-refreshed';
|
|
16
16
|
isScrollable?: boolean;
|
|
17
|
+
appearance?: EditorAppearance;
|
|
17
18
|
};
|
|
18
19
|
export declare const placeholderStyles: SerializedStyles;
|
|
19
20
|
/**
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
+
export declare const linkStyles: import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const placeholderStyles: import("@emotion/react").SerializedStyles;
|
|
9
|
+
/**
|
|
10
|
+
* fix layout issue of first block node
|
|
11
|
+
*/
|
|
12
|
+
export declare const fixBlockControlStylesSSR: () => import("@emotion/react").SerializedStyles;
|
|
13
|
+
export type EditorContentContainerProps = {
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
featureFlags?: FeatureFlags;
|
|
17
|
+
viewMode?: 'view' | 'edit';
|
|
18
|
+
isScrollable?: boolean;
|
|
19
|
+
appearance?: EditorAppearance;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* EditorContentStyles is a wrapper component that applies styles to its children
|
|
23
|
+
* based on the provided feature flags, view mode, and other props.
|
|
24
|
+
* It uses Emotion for styling and supports scrollable content.
|
|
25
|
+
* The component is memoized to optimize performance.
|
|
26
|
+
*
|
|
27
|
+
* This will be used in near future to replace the current editor content styles from index.tsx
|
|
28
|
+
*
|
|
29
|
+
* @param {EditorContentContainerProps} props - The props for the component.
|
|
30
|
+
* @param {string} props.className - Additional class name for the component.
|
|
31
|
+
* @param {React.ReactNode} props.children - The content to be rendered inside the component.
|
|
32
|
+
* @param {FeatureFlags} props.featureFlags - Feature flags to control the styles.
|
|
33
|
+
* @param {'view' | 'edit'} props.viewMode - The view mode of the editor.
|
|
34
|
+
* @param {boolean} props.isScrollable - Whether the content is scrollable.
|
|
35
|
+
* @param {'full-page' | 'full-width' | 'comment' | 'chromeless'} props.appearance - The appearance of the editor.
|
|
36
|
+
* @returns {JSX.Element} The styled content component.
|
|
37
|
+
*/
|
|
38
|
+
declare const EditorContentContainer: React.ForwardRefExoticComponent<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export default EditorContentContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "206.0
|
|
3
|
+
"version": "206.1.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@atlaskit/mention": "^24.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
62
|
-
"@atlaskit/react-ufo": "^3.
|
|
62
|
+
"@atlaskit/react-ufo": "^3.10.0",
|
|
63
63
|
"@atlaskit/task-decision": "^19.2.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^4.18.0",
|
|
65
65
|
"@atlaskit/tokens": "^4.8.0",
|
|
66
66
|
"@atlaskit/tooltip": "^20.0.0",
|
|
67
67
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -594,10 +594,6 @@
|
|
|
594
594
|
"type": "boolean",
|
|
595
595
|
"referenceOnly": true
|
|
596
596
|
},
|
|
597
|
-
"platform_editor_controls_sticky_controls": {
|
|
598
|
-
"type": "boolean",
|
|
599
|
-
"referenceOnly": true
|
|
600
|
-
},
|
|
601
597
|
"platform_editor_nested_tables_sticky_header_bug": {
|
|
602
598
|
"type": "boolean",
|
|
603
599
|
"referenceOnly": true
|
|
@@ -642,6 +638,9 @@
|
|
|
642
638
|
"type": "boolean",
|
|
643
639
|
"referenceOnly": true
|
|
644
640
|
},
|
|
641
|
+
"platform_editor_find_and_replace_duplication": {
|
|
642
|
+
"type": "boolean"
|
|
643
|
+
},
|
|
645
644
|
"editor_a11y_aria_label_removal_popup": {
|
|
646
645
|
"type": "boolean",
|
|
647
646
|
"referenceOnly": true
|