@atlaskit/editor-core 197.1.0 → 197.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/composable-editor/BaseThemeWrapper.js +29 -0
- package/dist/cjs/composable-editor/editor-internal.js +12 -7
- package/dist/cjs/editor-appearances/ChromelessEditor.js +27 -0
- package/dist/cjs/editor-appearances/CommentEditor.js +27 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +63 -67
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +6 -12
- package/dist/cjs/ui/CollapsedEditor/index.js +2 -2
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.js +24 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/BaseThemeWrapper.js +19 -0
- package/dist/es2019/composable-editor/editor-internal.js +11 -6
- package/dist/es2019/editor-appearances/ChromelessEditor.js +20 -0
- package/dist/es2019/editor-appearances/CommentEditor.js +20 -0
- package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +65 -67
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +6 -12
- package/dist/es2019/ui/CollapsedEditor/index.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +13 -0
- package/dist/es2019/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.js +14 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/BaseThemeWrapper.js +20 -0
- package/dist/esm/composable-editor/editor-internal.js +11 -6
- package/dist/esm/editor-appearances/ChromelessEditor.js +20 -0
- package/dist/esm/editor-appearances/CommentEditor.js +20 -0
- package/dist/esm/ui/Appearance/Comment/Comment.js +3 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +64 -68
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +6 -12
- package/dist/esm/ui/CollapsedEditor/index.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.js +15 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/BaseThemeWrapper.d.ts +7 -0
- package/dist/types/editor-appearances/ChromelessEditor.d.ts +14 -0
- package/dist/types/editor-appearances/CommentEditor.d.ts +14 -0
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -2
- package/dist/types/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +6 -0
- package/dist/types-ts4.5/composable-editor/BaseThemeWrapper.d.ts +7 -0
- package/dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts +14 -0
- package/dist/types-ts4.5/editor-appearances/CommentEditor.d.ts +14 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -2
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +6 -0
- package/package.json +7 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.1.
|
|
2
|
+
export var version = "197.1.2";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
+
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
4
|
+
/**
|
|
5
|
+
* Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
|
|
6
|
+
*
|
|
7
|
+
* This has a performance benefit compared with `ComposableEditor` as it doesn't bundle unnecessary appearance code.
|
|
8
|
+
*
|
|
9
|
+
* Docs for `ComposableEditor` are also relevant: https://atlaskit.atlassian.com/packages/editor/editor-core
|
|
10
|
+
*
|
|
11
|
+
* @param props ChromelessEditorProps
|
|
12
|
+
* @returns Editor component
|
|
13
|
+
*/
|
|
14
|
+
export declare function ChromelessEditor(props: ChromelessEditorProps): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
+
export type CommentEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
4
|
+
/**
|
|
5
|
+
* Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
|
|
6
|
+
*
|
|
7
|
+
* This has a performance benefit compared with `ComposableEditor` as it doesn't bundle unnecessary appearance code.
|
|
8
|
+
*
|
|
9
|
+
* Docs for `ComposableEditor` are also relevant: https://atlaskit.atlassian.com/packages/editor/editor-core
|
|
10
|
+
*
|
|
11
|
+
* @param props CommentEditorProps
|
|
12
|
+
* @returns Editor component
|
|
13
|
+
*/
|
|
14
|
+
export declare function CommentEditor(props: CommentEditorProps): JSX.Element;
|
|
@@ -16,9 +16,8 @@ export declare const contentArea: () => import("@emotion/react").SerializedStyle
|
|
|
16
16
|
export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
|
|
17
17
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
18
18
|
export declare const editorContentAreaHideContainer: import("@emotion/react").SerializedStyles;
|
|
19
|
-
export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode,
|
|
19
|
+
export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, }: {
|
|
20
20
|
layoutMaxWidth: number;
|
|
21
21
|
fullWidthMode: boolean;
|
|
22
|
-
containerWidth?: number | undefined;
|
|
23
22
|
}) => (false | import("@emotion/react").SerializedStyles)[];
|
|
24
23
|
export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
+
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
4
|
+
/**
|
|
5
|
+
* Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
|
|
6
|
+
*
|
|
7
|
+
* This has a performance benefit compared with `ComposableEditor` as it doesn't bundle unnecessary appearance code.
|
|
8
|
+
*
|
|
9
|
+
* Docs for `ComposableEditor` are also relevant: https://atlaskit.atlassian.com/packages/editor/editor-core
|
|
10
|
+
*
|
|
11
|
+
* @param props ChromelessEditorProps
|
|
12
|
+
* @returns Editor component
|
|
13
|
+
*/
|
|
14
|
+
export declare function ChromelessEditor(props: ChromelessEditorProps): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
+
export type CommentEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
4
|
+
/**
|
|
5
|
+
* Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
|
|
6
|
+
*
|
|
7
|
+
* This has a performance benefit compared with `ComposableEditor` as it doesn't bundle unnecessary appearance code.
|
|
8
|
+
*
|
|
9
|
+
* Docs for `ComposableEditor` are also relevant: https://atlaskit.atlassian.com/packages/editor/editor-core
|
|
10
|
+
*
|
|
11
|
+
* @param props CommentEditorProps
|
|
12
|
+
* @returns Editor component
|
|
13
|
+
*/
|
|
14
|
+
export declare function CommentEditor(props: CommentEditorProps): JSX.Element;
|
|
@@ -16,9 +16,8 @@ export declare const contentArea: () => import("@emotion/react").SerializedStyle
|
|
|
16
16
|
export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
|
|
17
17
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
18
18
|
export declare const editorContentAreaHideContainer: import("@emotion/react").SerializedStyles;
|
|
19
|
-
export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode,
|
|
19
|
+
export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, }: {
|
|
20
20
|
layoutMaxWidth: number;
|
|
21
21
|
fullWidthMode: boolean;
|
|
22
|
-
containerWidth?: number | undefined;
|
|
23
22
|
}) => (false | import("@emotion/react").SerializedStyles)[];
|
|
24
23
|
export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "197.1.
|
|
3
|
+
"version": "197.1.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^20.1.0",
|
|
48
|
-
"@atlaskit/editor-common": "^88.
|
|
48
|
+
"@atlaskit/editor-common": "^88.5.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^4.3.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
110
110
|
"@atlassian/feature-flags-test-utils": "*",
|
|
111
|
-
"@atlassian/search-provider": "2.4.
|
|
111
|
+
"@atlassian/search-provider": "2.4.117",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^5.3.18",
|
|
114
114
|
"@testing-library/react": "^12.1.5",
|
|
@@ -279,6 +279,10 @@
|
|
|
279
279
|
},
|
|
280
280
|
"platform_editor_card_provider_from_plugin_config": {
|
|
281
281
|
"type": "boolean"
|
|
282
|
+
},
|
|
283
|
+
"platform_editor_media_batch_updates": {
|
|
284
|
+
"type": "boolean",
|
|
285
|
+
"referenceOnly": true
|
|
282
286
|
}
|
|
283
287
|
},
|
|
284
288
|
"stricter": {
|