@atlaskit/editor-core 219.9.5 → 219.9.7
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 +23 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +31 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +36 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +8 -14
- package/dist/cjs/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
- package/dist/cjs/ui/Appearance/Chromeless-compiled.js +40 -0
- package/dist/cjs/ui/Appearance/Chromeless-emotion.js +91 -0
- package/dist/cjs/ui/Appearance/Chromeless.js +21 -81
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +9 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +33 -0
- package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +35 -0
- package/dist/cjs/ui/PluginSlot/index.js +10 -15
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +19 -0
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +26 -0
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +6 -13
- package/dist/es2019/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
- package/dist/es2019/ui/Appearance/Chromeless-compiled.js +32 -0
- package/dist/es2019/ui/Appearance/Chromeless-emotion.js +82 -0
- package/dist/es2019/ui/Appearance/Chromeless.js +17 -82
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +9 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +21 -0
- package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +25 -0
- package/dist/es2019/ui/PluginSlot/index.js +8 -14
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +22 -0
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +30 -0
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +8 -13
- package/dist/esm/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
- package/dist/esm/ui/Appearance/Chromeless-compiled.js +33 -0
- package/dist/esm/ui/Appearance/Chromeless-emotion.js +85 -0
- package/dist/esm/ui/Appearance/Chromeless.js +19 -81
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +9 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +24 -0
- package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +29 -0
- package/dist/esm/ui/PluginSlot/index.js +10 -14
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +10 -0
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +12 -0
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -6
- package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +18 -0
- package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +18 -0
- package/dist/types/ui/Appearance/Chromeless.d.ts +10 -14
- package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +12 -0
- package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +12 -0
- package/dist/types/ui/PluginSlot/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +10 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +12 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -6
- package/dist/types-ts4.5/ui/Appearance/Chromeless-compiled.d.ts +18 -0
- package/dist/types-ts4.5/ui/Appearance/Chromeless-emotion.d.ts +18 -0
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +10 -14
- package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-compiled.d.ts +12 -0
- package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-emotion.d.ts +12 -0
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +0 -4
- package/editor-core.docs.tsx +55 -53
- package/package.json +12 -11
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import type { HTMLAttributes } from 'react';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
13
|
+
export interface ChromelessEditorContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
containerRef?: (ref: HTMLElement | null) => void;
|
|
15
|
+
maxHeight?: number;
|
|
16
|
+
minHeight: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const ChromelessEditorContainerEmotion: ({ children, containerRef, maxHeight, minHeight, ...rest }: ChromelessEditorContainerProps) => jsx.JSX.Element;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type FC } from 'react';
|
|
7
2
|
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
8
3
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
9
4
|
import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
|
|
10
5
|
import type { EditorAppearanceComponentProps } from '../../types';
|
|
6
|
+
import { type ChromelessEditorContainerProps } from './Chromeless-emotion';
|
|
11
7
|
type AppearanceProps = EditorAppearanceComponentProps<[
|
|
12
8
|
OptionalPlugin<MaxContentSizePlugin>,
|
|
13
9
|
OptionalPlugin<EditorViewModePlugin>
|
|
@@ -22,13 +18,13 @@ export default class Editor extends React.Component<AppearanceProps> {
|
|
|
22
18
|
private containerElement;
|
|
23
19
|
private setContainerElement;
|
|
24
20
|
private renderChrome;
|
|
25
|
-
render():
|
|
26
|
-
}
|
|
27
|
-
interface ChromelessEditorContainerProps {
|
|
28
|
-
children: React.ReactNode;
|
|
29
|
-
containerRef?: (ref: HTMLElement | null) => void;
|
|
30
|
-
maxHeight?: number;
|
|
31
|
-
minHeight: number;
|
|
21
|
+
render(): React.JSX.Element;
|
|
32
22
|
}
|
|
33
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Container for the chromeless editor appearance. This is used to set the max and min height
|
|
25
|
+
* of the editor content area, and to provide a ref to the container element for the popups.
|
|
26
|
+
* @param param0 props for the chromeless editor container
|
|
27
|
+
* @returns JSX element representing the chromeless editor container
|
|
28
|
+
*/
|
|
29
|
+
export declare const ChromelessEditorContainer: FC<ChromelessEditorContainerProps & ChromelessEditorContainerProps>;
|
|
34
30
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import type { HTMLAttributes } from 'react';
|
|
12
|
+
export declare const PluginsComponentsWrapperCompiled: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import type { HTMLAttributes } from 'react';
|
|
12
|
+
export declare const PluginsComponentsWrapperEmotion: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
package/editor-core.docs.tsx
CHANGED
|
@@ -5,64 +5,66 @@
|
|
|
5
5
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
|
|
8
|
-
import type {
|
|
8
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
9
9
|
|
|
10
10
|
import packageJson from './package.json';
|
|
11
11
|
|
|
12
12
|
const packagePath = path.resolve(__dirname);
|
|
13
13
|
|
|
14
|
-
const documentation:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
usageGuidelines: [
|
|
27
|
-
'Use the comment appearance when the editor is not the primary focus (e.g. comments on a page); use full-page or full-width when the editor is the main focus; use chromeless when you need complete control over the editor UI; use mobile for mobile web.',
|
|
28
|
-
'Configure features via presets (default, universal, or custom). Always include basePlugin; use usePreset or similar memoization so the preset is stable across re-renders.',
|
|
29
|
-
'Use ComposableEditor with a preset; provide providers (e.g. mentionProvider) when the editor needs context from your app.',
|
|
30
|
-
],
|
|
31
|
-
contentGuidelines: [],
|
|
32
|
-
accessibilityGuidelines: [],
|
|
33
|
-
keywords: ['editor', 'editor-core', 'atlaskit'],
|
|
34
|
-
categories: ['editor'],
|
|
35
|
-
examples: [
|
|
36
|
-
{
|
|
37
|
-
name: 'Basic composable editor',
|
|
38
|
-
description: 'Minimal ComposableEditor with preset.',
|
|
39
|
-
source: path.resolve(packagePath, './examples/1-basic-composable-editor.tsx'),
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: 'Comment editor',
|
|
43
|
-
description: 'Comment appearance composable editor.',
|
|
44
|
-
source: path.resolve(packagePath, './examples/1-comment-editor-component-composable.tsx'),
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'Full page editor',
|
|
48
|
-
description: 'Full-page appearance composable editor.',
|
|
49
|
-
source: path.resolve(packagePath, './examples/1-full-page-editor-composable.tsx'),
|
|
14
|
+
const documentation: StructuredContentSource = {
|
|
15
|
+
components: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Editor Core',
|
|
18
|
+
description: 'A package contains Atlassian editor core functionality',
|
|
19
|
+
status: 'general-availability',
|
|
20
|
+
import: {
|
|
21
|
+
name: 'Editor',
|
|
22
|
+
package: '@atlaskit/editor-core',
|
|
23
|
+
type: 'named',
|
|
24
|
+
packagePath,
|
|
25
|
+
packageJson,
|
|
50
26
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
27
|
+
usageGuidelines: [
|
|
28
|
+
'Use the comment appearance when the editor is not the primary focus (e.g. comments on a page); use full-page or full-width when the editor is the main focus; use chromeless when you need complete control over the editor UI; use mobile for mobile web.',
|
|
29
|
+
'Configure features via presets (default, universal, or custom). Always include basePlugin; use usePreset or similar memoization so the preset is stable across re-renders.',
|
|
30
|
+
'Use ComposableEditor with a preset; provide providers (e.g. mentionProvider) when the editor needs context from your app.',
|
|
31
|
+
],
|
|
32
|
+
contentGuidelines: [],
|
|
33
|
+
accessibilityGuidelines: [],
|
|
34
|
+
keywords: ['editor', 'editor-core', 'atlaskit'],
|
|
35
|
+
categories: ['editor'],
|
|
36
|
+
examples: [
|
|
37
|
+
{
|
|
38
|
+
name: 'Basic composable editor',
|
|
39
|
+
description: 'Minimal ComposableEditor with preset.',
|
|
40
|
+
source: path.resolve(packagePath, './examples/1-basic-composable-editor.tsx'),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Comment editor',
|
|
44
|
+
description: 'Comment appearance composable editor.',
|
|
45
|
+
source: path.resolve(packagePath, './examples/1-comment-editor-component-composable.tsx'),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Full page editor',
|
|
49
|
+
description: 'Full-page appearance composable editor.',
|
|
50
|
+
source: path.resolve(packagePath, './examples/1-full-page-editor-composable.tsx'),
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Chromeless editor',
|
|
54
|
+
description: 'Chromeless appearance with custom UI.',
|
|
55
|
+
source: path.resolve(
|
|
56
|
+
packagePath,
|
|
57
|
+
'./examples/1-chromeless-editor-component-composable.tsx',
|
|
58
|
+
),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Collapsed editor',
|
|
62
|
+
description: 'Async collapsed editor (labs).',
|
|
63
|
+
source: path.resolve(packagePath, './examples/1-labs-async-collapsed-editor.tsx'),
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
};
|
|
67
69
|
|
|
68
70
|
export default documentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "219.9.
|
|
3
|
+
"version": "219.9.7",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@atlaskit/activity-provider": "^2.6.0",
|
|
49
|
-
"@atlaskit/adf-schema": "^52.
|
|
49
|
+
"@atlaskit/adf-schema": "^52.14.0",
|
|
50
50
|
"@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
|
|
51
51
|
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
52
52
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^6.0.0",
|
|
76
76
|
"@atlaskit/task-decision": "^20.1.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^82.
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^82.5.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.0.0",
|
|
79
|
-
"@atlaskit/tooltip": "^22.
|
|
79
|
+
"@atlaskit/tooltip": "^22.3.0",
|
|
80
80
|
"@atlaskit/width-detector": "^5.1.0",
|
|
81
81
|
"@babel/runtime": "^7.0.0",
|
|
82
82
|
"@compiled/react": "^0.20.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"uuid": "^3.1.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@atlaskit/editor-common": "^114.
|
|
95
|
+
"@atlaskit/editor-common": "^114.45.0",
|
|
96
96
|
"@atlaskit/link-provider": "^4.4.0",
|
|
97
97
|
"@atlaskit/media-core": "^37.1.0",
|
|
98
98
|
"react": "^18.2.0",
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
"@af/editor-libra": "workspace:^",
|
|
104
104
|
"@af/suppress-react-warnings": "workspace:^",
|
|
105
105
|
"@af/visual-regression": "workspace:^",
|
|
106
|
-
"@atlaskit/adf-utils": "^19.
|
|
106
|
+
"@atlaskit/adf-utils": "^19.31.0",
|
|
107
107
|
"@atlaskit/analytics-listeners": "^10.1.0",
|
|
108
108
|
"@atlaskit/code": "^17.5.0",
|
|
109
109
|
"@atlaskit/collab-provider": "^19.0.0",
|
|
110
|
-
"@atlaskit/editor-plugin-annotation": "^10.
|
|
111
|
-
"@atlaskit/editor-plugin-card": "^16.
|
|
110
|
+
"@atlaskit/editor-plugin-annotation": "^10.5.0",
|
|
111
|
+
"@atlaskit/editor-plugin-card": "^16.10.0",
|
|
112
112
|
"@atlaskit/editor-plugin-list": "^12.1.0",
|
|
113
113
|
"@atlaskit/editor-plugin-paste": "^11.2.0",
|
|
114
114
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"@atlaskit/logo": "^20.1.0",
|
|
118
118
|
"@atlaskit/media-core": "^37.1.0",
|
|
119
119
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
120
|
-
"@atlaskit/media-test-helpers": "^41.
|
|
121
|
-
"@atlaskit/modal-dialog": "^15.
|
|
120
|
+
"@atlaskit/media-test-helpers": "^41.2.0",
|
|
121
|
+
"@atlaskit/modal-dialog": "^15.2.0",
|
|
122
122
|
"@atlaskit/popper": "^7.2.0",
|
|
123
123
|
"@atlaskit/portal": "^5.5.0",
|
|
124
124
|
"@atlaskit/renderer": "^131.1.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
130
130
|
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
131
131
|
"@atlassian/adf-schema-json": "^1.33.0",
|
|
132
|
-
"@atlassian/editor-rovo-bridge": "^8.
|
|
132
|
+
"@atlassian/editor-rovo-bridge": "^8.11.0",
|
|
133
133
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
134
134
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
135
135
|
"@atlassian/search-client": "^1.8.0",
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"mockdate": "^3.0.5",
|
|
148
148
|
"raf-stub": "^2.0.1",
|
|
149
149
|
"react": "^18.2.0",
|
|
150
|
+
"react-dom": "^18.2.0",
|
|
150
151
|
"react-intl": "^6.6.2",
|
|
151
152
|
"url-search-params": "^0.10.0"
|
|
152
153
|
},
|