@atlaskit/editor-core 219.2.0 → 219.2.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 +24 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +148 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +340 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +578 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +9 -567
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/useUniversalPreset.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +148 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +338 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +574 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +7 -568
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +148 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +335 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +570 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +9 -564
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +1 -736
- package/dist/types/presets/universal.d.ts +1 -736
- package/dist/types/presets/useUniversalPreset.d.ts +1 -736
- package/dist/types/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +29 -0
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +30 -0
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +6 -26
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +1 -1031
- package/dist/types-ts4.5/presets/universal.d.ts +1 -1031
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +1 -1031
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +29 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +30 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +6 -26
- package/editor-core.docs.tsx +28 -6
- package/package.json +9 -7
|
@@ -9,6 +9,6 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
9
9
|
* 2. if another modal is open (e.g. delete confirmation modal for confluence table) then ignore clicks as they shouldn't influence editor state
|
|
10
10
|
*/
|
|
11
11
|
export declare const checkForModal: (target: HTMLElement | null) => boolean;
|
|
12
|
-
declare const clickAreaClickHandler: (view: EditorView, event: React.MouseEvent<HTMLElement>) =>
|
|
12
|
+
declare const clickAreaClickHandler: (view: EditorView, event: React.MouseEvent<HTMLElement>) => boolean | void;
|
|
13
13
|
export declare const outsideProsemirrorEditorClickHandler: (view: EditorView, event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
14
14
|
export { clickAreaClickHandler };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
* Compiled migration: platform_editor_core_static_css
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { EditorAppearance, EditorContentMode, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
+
export type EditorContentContainerProps = {
|
|
9
|
+
appearance?: EditorAppearance;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
contentMode?: EditorContentMode;
|
|
13
|
+
featureFlags?: FeatureFlags;
|
|
14
|
+
isScrollable?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When true, nodes maintain their standard width without negative margins
|
|
17
|
+
* For when the drag handle is visible and the editor has limited space.
|
|
18
|
+
*/
|
|
19
|
+
useStandardNodeWidth?: boolean;
|
|
20
|
+
viewMode?: 'view' | 'edit';
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* EditorContentStyles is a wrapper component that applies styles to its children
|
|
24
|
+
* based on the provided feature flags, view mode, and other props.
|
|
25
|
+
* It uses Emotion for styling and supports scrollable content.
|
|
26
|
+
*
|
|
27
|
+
* This will be used in near future to replace the current editor content styles from index.tsx
|
|
28
|
+
*/
|
|
29
|
+
export declare const EditorContentContainerCompiled: React.ForwardRefExoticComponent<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { EditorAppearance, EditorContentMode, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
+
export type EditorContentContainerProps = {
|
|
8
|
+
appearance?: EditorAppearance;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
contentMode?: EditorContentMode;
|
|
12
|
+
featureFlags?: FeatureFlags;
|
|
13
|
+
isScrollable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* When true, nodes maintain their standard width without negative margins
|
|
16
|
+
* For when the drag handle is visible and the editor has limited space.
|
|
17
|
+
*/
|
|
18
|
+
useStandardNodeWidth?: boolean;
|
|
19
|
+
viewMode?: 'view' | 'edit';
|
|
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
|
+
*
|
|
26
|
+
* Migration WIP
|
|
27
|
+
* If you are touching EditorContentContainerEmotion, please contact with #proj-cc-editor-full-compiled-css-migration
|
|
28
|
+
* https://home.atlassian.com/o/2346a038-3c8c-498b-a79b-e7847859868d/s/a436116f-02ce-4520-8fbb-7301462a1674/project/ATLAS-120555
|
|
29
|
+
*/
|
|
30
|
+
export declare const EditorContentContainerEmotion: React.ForwardRefExoticComponent<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,29 +1,9 @@
|
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
import { type EditorContentContainerProps } from './EditorContentContainer-compiled';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
+
* Compiled Migration is WIP
|
|
5
|
+
* If you are touching EditorContentContainerEmotion, please contact with #proj-cc-editor-full-compiled-css-migration
|
|
6
|
+
* https://home.atlassian.com/o/2346a038-3c8c-498b-a79b-e7847859868d/s/a436116f-02ce-4520-8fbb-7301462a1674/project/ATLAS-120555
|
|
4
7
|
*/
|
|
5
|
-
|
|
6
|
-
import type { EditorAppearance, EditorContentMode, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
-
export type EditorContentContainerProps = {
|
|
8
|
-
appearance?: EditorAppearance;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
contentMode?: EditorContentMode;
|
|
12
|
-
featureFlags?: FeatureFlags;
|
|
13
|
-
isScrollable?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* When true, nodes maintain their standard width without negative margins
|
|
16
|
-
* For when the drag handle is visible and the editor has limited space.
|
|
17
|
-
*/
|
|
18
|
-
useStandardNodeWidth?: boolean;
|
|
19
|
-
viewMode?: 'view' | 'edit';
|
|
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
|
-
*
|
|
26
|
-
* This will be used in near future to replace the current editor content styles from index.tsx
|
|
27
|
-
*/
|
|
28
|
-
declare const EditorContentContainer: React.ForwardRefExoticComponent<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const EditorContentContainer: FC<Omit<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>, 'ref'> & Omit<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>, 'ref'> & React.RefAttributes<HTMLDivElement>>;
|
|
29
9
|
export default EditorContentContainer;
|