@atlaskit/editor-core 195.6.2 → 195.8.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/index.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +64 -60
- package/dist/cjs/ui/ContextPanel/deprecated.js +283 -0
- package/dist/cjs/ui/ContextPanel/index.js +26 -133
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +6 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +4 -1
- package/dist/es2019/ui/ContextPanel/deprecated.js +258 -0
- package/dist/es2019/ui/ContextPanel/index.js +24 -133
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +64 -60
- package/dist/esm/ui/ContextPanel/deprecated.js +277 -0
- package/dist/esm/ui/ContextPanel/index.js +24 -132
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +81 -0
- package/dist/types/index.d.ts +6 -1
- package/dist/types/presets/default.d.ts +68 -0
- package/dist/types/presets/universal.d.ts +83 -1
- package/dist/types/presets/useUniversalPreset.d.ts +81 -0
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +3 -1
- package/dist/types/ui/ContextPanel/deprecated.d.ts +44 -0
- package/dist/types/ui/ContextPanel/index.d.ts +5 -9
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +81 -0
- package/dist/types-ts4.5/index.d.ts +6 -1
- package/dist/types-ts4.5/presets/default.d.ts +68 -0
- package/dist/types-ts4.5/presets/universal.d.ts +83 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +81 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +5 -1
- package/dist/types-ts4.5/ui/ContextPanel/deprecated.d.ts +44 -0
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +7 -9
- package/package.json +7 -12
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
8
|
+
import type { WidthPluginState } from '@atlaskit/editor-plugins/width';
|
|
9
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
+
export type Props = {
|
|
11
|
+
visible: boolean;
|
|
12
|
+
children?: React.ReactElement;
|
|
13
|
+
};
|
|
14
|
+
type EditorWidth = WidthPluginState & {
|
|
15
|
+
contentBreakoutModes: BreakoutMarkAttrs['mode'][];
|
|
16
|
+
containerWidth?: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number, editorView?: EditorView) => boolean;
|
|
19
|
+
export declare const panel: import("@emotion/react").SerializedStyles;
|
|
20
|
+
export declare const content: import("@emotion/react").SerializedStyles;
|
|
21
|
+
type SwappableContentAreaProps = {
|
|
22
|
+
pluginContent?: React.ReactNode;
|
|
23
|
+
editorView?: EditorView;
|
|
24
|
+
editorWidth?: EditorWidth;
|
|
25
|
+
} & Props;
|
|
26
|
+
type State = {
|
|
27
|
+
mounted: boolean;
|
|
28
|
+
currentPluginContent?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
export declare class SwappableContentArea extends React.PureComponent<SwappableContentAreaProps, State> {
|
|
31
|
+
state: {
|
|
32
|
+
mounted: boolean;
|
|
33
|
+
currentPluginContent: undefined;
|
|
34
|
+
};
|
|
35
|
+
static getDerivedStateFromProps(props: SwappableContentAreaProps, state: State): State | null;
|
|
36
|
+
private unsetPluginContent;
|
|
37
|
+
focusEditor: () => void;
|
|
38
|
+
componentDidMount(): void;
|
|
39
|
+
showPluginContent: () => jsx.JSX.Element | undefined;
|
|
40
|
+
showProvidedContent: (isVisible: boolean) => jsx.JSX.Element | undefined;
|
|
41
|
+
render(): jsx.JSX.Element;
|
|
42
|
+
}
|
|
43
|
+
export default function ContextPanel(props: Props): jsx.JSX.Element;
|
|
44
|
+
export {};
|
|
@@ -4,24 +4,21 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type {
|
|
8
|
-
import type
|
|
7
|
+
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
8
|
+
import { type ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
export type Props = {
|
|
11
11
|
visible: boolean;
|
|
12
|
+
editorAPI: PublicPluginAPI<[
|
|
13
|
+
OptionalPlugin<ContextPanelPlugin>
|
|
14
|
+
]> | undefined;
|
|
12
15
|
children?: React.ReactElement;
|
|
13
16
|
};
|
|
14
|
-
type EditorWidth = WidthPluginState & {
|
|
15
|
-
contentBreakoutModes: BreakoutMarkAttrs['mode'][];
|
|
16
|
-
containerWidth?: number;
|
|
17
|
-
};
|
|
18
|
-
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number, editorView?: EditorView) => boolean;
|
|
19
17
|
export declare const panel: import("@emotion/react").SerializedStyles;
|
|
20
18
|
export declare const content: import("@emotion/react").SerializedStyles;
|
|
21
19
|
type SwappableContentAreaProps = {
|
|
22
20
|
pluginContent?: React.ReactNode;
|
|
23
21
|
editorView?: EditorView;
|
|
24
|
-
editorWidth?: EditorWidth;
|
|
25
22
|
} & Props;
|
|
26
23
|
type State = {
|
|
27
24
|
mounted: boolean;
|
|
@@ -40,5 +37,6 @@ export declare class SwappableContentArea extends React.PureComponent<SwappableC
|
|
|
40
37
|
showProvidedContent: (isVisible: boolean) => jsx.JSX.Element | undefined;
|
|
41
38
|
render(): jsx.JSX.Element;
|
|
42
39
|
}
|
|
43
|
-
export
|
|
40
|
+
export declare function ContextPanel(props: Props): jsx.JSX.Element;
|
|
41
|
+
export default function ContextPanelDefault(props: Props): jsx.JSX.Element;
|
|
44
42
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.
|
|
3
|
+
"version": "195.8.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.1.0",
|
|
48
|
-
"@atlaskit/editor-common": "^88.
|
|
49
|
-
"@atlaskit/editor-plugins": "^4.
|
|
48
|
+
"@atlaskit/editor-common": "^88.1.0",
|
|
49
|
+
"@atlaskit/editor-plugins": "^4.2.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",
|
|
@@ -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.11.0",
|
|
95
95
|
"@atlaskit/editor-test-helpers": "*",
|
|
96
96
|
"@atlaskit/link-provider": "^1.14.0",
|
|
97
97
|
"@atlaskit/logo": "^14.2.0",
|
|
@@ -158,10 +158,6 @@
|
|
|
158
158
|
"type": "boolean",
|
|
159
159
|
"referenceOnly": "true"
|
|
160
160
|
},
|
|
161
|
-
"platform.linking-platform.prevent-suspicious-linkification": {
|
|
162
|
-
"type": "boolean",
|
|
163
|
-
"referenceOnly": "true"
|
|
164
|
-
},
|
|
165
161
|
"platform.editor.live-pages-expand-divergence": {
|
|
166
162
|
"type": "boolean",
|
|
167
163
|
"referenceOnly": "true"
|
|
@@ -227,6 +223,9 @@
|
|
|
227
223
|
"type": "boolean",
|
|
228
224
|
"referenceOnly": "true"
|
|
229
225
|
},
|
|
226
|
+
"platform_editor_context-panel_simplify_behaviour": {
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
230
229
|
"platform.editor.table.allow-table-alignment": {
|
|
231
230
|
"type": "boolean"
|
|
232
231
|
},
|
|
@@ -265,10 +264,6 @@
|
|
|
265
264
|
"platform_editor_media_provider_from_plugin_config": {
|
|
266
265
|
"type": "boolean"
|
|
267
266
|
},
|
|
268
|
-
"platform_editor_migration_icon_and_typography": {
|
|
269
|
-
"type": "boolean",
|
|
270
|
-
"referenceOnly": true
|
|
271
|
-
},
|
|
272
267
|
"platform_editor_elements_dnd_nested": {
|
|
273
268
|
"type": "boolean",
|
|
274
269
|
"referenceOnly": true
|