@atlaskit/editor-core 235.0.0 → 235.0.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/editor-internal-compiled.js +0 -6
- package/dist/cjs/composable-editor/editor-internal.js +3 -12
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -7
- package/dist/cjs/ui/Appearance/ChromelessEditorContainer.js +26 -13
- package/dist/cjs/ui/Appearance/Comment/Comment.js +262 -7
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -13
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +15 -7
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +41 -10
- package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +192 -14
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
- package/dist/cjs/ui/ChromeCollapsed/index.js +1 -7
- package/dist/cjs/ui/ContextPanel/index-compiled.js +0 -6
- package/dist/cjs/ui/ContextPanel/index.js +2 -11
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +0 -7
- package/dist/cjs/ui/PluginSlot/index.js +1 -6
- package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -8
- package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
- package/dist/cjs/ui/WithFlash/index.js +1 -6
- package/dist/cjs/ui/WithFlash/withFlash-compiled.js +1 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal-compiled.js +0 -6
- package/dist/es2019/composable-editor/editor-internal.js +3 -10
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -5
- package/dist/es2019/ui/Appearance/ChromelessEditorContainer.js +24 -12
- package/dist/es2019/ui/Appearance/Comment/Comment.js +254 -5
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -8
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +11 -5
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +37 -6
- package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -4
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +186 -11
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +24 -5
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
- package/dist/es2019/ui/ChromeCollapsed/index.js +1 -5
- package/dist/es2019/ui/ContextPanel/index-compiled.js +0 -6
- package/dist/es2019/ui/ContextPanel/index.js +2 -7
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +0 -7
- package/dist/es2019/ui/PluginSlot/index.js +1 -4
- package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -5
- package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -9
- package/dist/es2019/ui/WithFlash/index.js +1 -4
- package/dist/es2019/ui/WithFlash/withFlash-compiled.js +0 -6
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal-compiled.js +0 -6
- package/dist/esm/composable-editor/editor-internal.js +3 -12
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -7
- package/dist/esm/ui/Appearance/ChromelessEditorContainer.js +25 -14
- package/dist/esm/ui/Appearance/Comment/Comment.js +260 -7
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -7
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -12
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +13 -7
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +39 -10
- package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -6
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +190 -13
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
- package/dist/esm/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -7
- package/dist/esm/ui/ContextPanel/index-compiled.js +0 -6
- package/dist/esm/ui/ContextPanel/index.js +2 -11
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +0 -7
- package/dist/esm/ui/PluginSlot/index.js +1 -6
- package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -7
- package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
- package/dist/esm/ui/WithFlash/index.js +1 -6
- package/dist/esm/ui/WithFlash/withFlash-compiled.js +0 -6
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal-compiled.d.ts +0 -6
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -4
- package/dist/types/ui/Appearance/ChromelessEditorContainer.d.ts +10 -7
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +24 -2
- package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +7 -3
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +2 -3
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +54 -6
- package/dist/types/ui/Appearance/FullPage/MainToolbar-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +13 -3
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -6
- package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -6
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -6
- package/dist/types/ui/WithFlash/index.d.ts +1 -1
- package/dist/types/ui/WithFlash/withFlash-compiled.d.ts +0 -6
- package/package.json +3 -3
- package/dist/cjs/composable-editor/BaseThemeWrapper.js +0 -47
- package/dist/cjs/composable-editor/editor-internal-emotion.js +0 -35
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -36
- package/dist/cjs/ui/Appearance/Chromeless-compiled.js +0 -38
- package/dist/cjs/ui/Appearance/Chromeless-emotion.js +0 -89
- package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +0 -273
- package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +0 -339
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -89
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -126
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -29
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -34
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -57
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -89
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -13
- package/dist/cjs/ui/Appearance/FullPage/FullPage-emotion.js +0 -38
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -201
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -398
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -63
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -13
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -35
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -70
- package/dist/cjs/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -13
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +0 -65
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -37
- package/dist/cjs/ui/ContextPanel/index-emotion.js +0 -86
- package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +0 -35
- package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -36
- package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -32
- package/dist/cjs/ui/WithFlash/withFlash-emotion.js +0 -91
- package/dist/es2019/composable-editor/BaseThemeWrapper.js +0 -35
- package/dist/es2019/composable-editor/editor-internal-emotion.js +0 -27
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -26
- package/dist/es2019/ui/Appearance/Chromeless-compiled.js +0 -30
- package/dist/es2019/ui/Appearance/Chromeless-emotion.js +0 -80
- package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +0 -260
- package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +0 -326
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -86
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -123
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -19
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -25
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -47
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -79
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +0 -29
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -190
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -390
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -53
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -5
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -30
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -65
- package/dist/es2019/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -5
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +0 -59
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -27
- package/dist/es2019/ui/ContextPanel/index-emotion.js +0 -74
- package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +0 -25
- package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
- package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -24
- package/dist/es2019/ui/WithFlash/withFlash-emotion.js +0 -75
- package/dist/esm/composable-editor/BaseThemeWrapper.js +0 -39
- package/dist/esm/composable-editor/editor-internal-emotion.js +0 -28
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -30
- package/dist/esm/ui/Appearance/Chromeless-compiled.js +0 -31
- package/dist/esm/ui/Appearance/Chromeless-emotion.js +0 -83
- package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +0 -266
- package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +0 -328
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -81
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -119
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -21
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -27
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -49
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -81
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -7
- package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +0 -31
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -194
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -388
- package/dist/esm/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -55
- package/dist/esm/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -7
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -29
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -62
- package/dist/esm/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -7
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +0 -59
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -29
- package/dist/esm/ui/ContextPanel/index-emotion.js +0 -79
- package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +0 -29
- package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
- package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -25
- package/dist/esm/ui/WithFlash/withFlash-emotion.js +0 -88
- package/dist/types/composable-editor/BaseThemeWrapper.d.ts +0 -7
- package/dist/types/composable-editor/editor-internal-emotion.d.ts +0 -15
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +0 -12
- package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +0 -18
- package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +0 -18
- package/dist/types/ui/Appearance/Comment/Comment-compiled.d.ts +0 -30
- package/dist/types/ui/Appearance/Comment/Comment-emotion.d.ts +0 -20
- package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +0 -19
- package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +0 -21
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +0 -16
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +0 -16
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +0 -3
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +0 -14
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapperMigration.d.ts +0 -4
- package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +0 -7
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea-compiled.d.ts +0 -57
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea-emotion.d.ts +0 -57
- package/dist/types/ui/Appearance/FullPage/MainToolbar-emotion.d.ts +0 -21
- package/dist/types/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.d.ts +0 -4
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +0 -19
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +0 -19
- package/dist/types/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.d.ts +0 -4
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -19
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +0 -13
- package/dist/types/ui/ContextPanel/index-emotion.d.ts +0 -13
- package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +0 -12
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +0 -17
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +0 -17
- package/dist/types/ui/WithFlash/withFlash-emotion.d.ts +0 -19
- /package/dist/cjs/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
|
|
8
|
+
import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
|
|
9
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
|
|
10
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
|
|
11
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
|
|
12
|
+
import type { EditorAppearanceComponentProps } from '../../../types/editor-appearance-component';
|
|
13
|
+
type ComponentProps = EditorAppearanceComponentProps<[
|
|
14
|
+
OptionalPlugin<MediaPlugin>,
|
|
15
|
+
OptionalPlugin<MaxContentSizePlugin>,
|
|
16
|
+
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
17
|
+
OptionalPlugin<ToolbarPlugin>,
|
|
18
|
+
OptionalPlugin<BlockMenuPlugin>
|
|
19
|
+
]>;
|
|
20
|
+
export declare const CommentEditorWithIntl: {
|
|
21
|
+
(props: ComponentProps): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
5
|
import type { ReactNode } from 'react';
|
|
12
6
|
import React from 'react';
|
|
13
7
|
type FixedToolbarCompiledProps = {
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
5
|
import type { ReactNode, RefObject } from 'react';
|
|
12
6
|
import React from 'react';
|
|
13
7
|
type StickyToolbarCompiledProps = {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactElement } from 'react';
|
|
2
6
|
type ReactComponents = ReactElement | ReactElement[];
|
|
3
|
-
export declare const BeforePrimaryToolbarWrapper:
|
|
7
|
+
export declare const BeforePrimaryToolbarWrapper: (props: {
|
|
4
8
|
beforePrimaryToolbarComponents: ReactComponents | undefined;
|
|
5
|
-
}
|
|
9
|
+
}) => React.JSX.Element;
|
|
6
10
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
1
|
export interface ChildWrapperProps {
|
|
3
2
|
'aria-label'?: string;
|
|
4
3
|
children: React.ReactNode;
|
|
@@ -6,5 +5,5 @@ export interface ChildWrapperProps {
|
|
|
6
5
|
role?: string;
|
|
7
6
|
twoLineEditorToolbar: boolean;
|
|
8
7
|
}
|
|
9
|
-
export declare const MainToolbarForFirstChildWrapper:
|
|
10
|
-
export declare const MainToolbarForSecondChildWrapper:
|
|
8
|
+
export declare const MainToolbarForFirstChildWrapper: ({ twoLineEditorToolbar, children, role, 'aria-label': ariaLabel, 'data-testid': testId, }: ChildWrapperProps) => React.JSX.Element;
|
|
9
|
+
export declare const MainToolbarForSecondChildWrapper: ({ twoLineEditorToolbar, children, role, 'aria-label': ariaLabel, 'data-testid': testId, }: ChildWrapperProps) => React.JSX.Element;
|
|
@@ -1,8 +1,56 @@
|
|
|
1
|
-
import { FullPageContentAreaCompiled } from './FullPageContentArea-compiled';
|
|
2
|
-
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
3
|
-
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
4
1
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
import type { ReactElement } from 'react';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
8
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
9
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
11
|
+
import type { EditorAppearance, EditorContentMode, FeatureFlags, OptionalPlugin, PublicPluginAPI, ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
12
|
+
import type { BasePlugin } from '@atlaskit/editor-plugins/base';
|
|
13
|
+
import type { BlockMenuPlugin } from '@atlaskit/editor-plugins/block-menu';
|
|
14
|
+
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
15
|
+
import type { ViewMode } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
16
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
|
+
import type EditorActions from '../../../actions';
|
|
18
|
+
import type { ContentComponents, ReactComponents } from '../../../types/editor-props';
|
|
19
|
+
import type { MarkdownModePlugin } from '../../../types/markdown-mode';
|
|
20
|
+
import type { ScrollContainerRefs } from './types';
|
|
21
|
+
type EditorAPI = PublicPluginAPI<[
|
|
22
|
+
OptionalPlugin<ContextPanelPlugin>,
|
|
23
|
+
BasePlugin,
|
|
24
|
+
OptionalPlugin<BlockMenuPlugin>,
|
|
25
|
+
OptionalPlugin<MarkdownModePlugin>
|
|
26
|
+
]>;
|
|
27
|
+
interface FullPageEditorContentAreaProps {
|
|
28
|
+
appearance: EditorAppearance | undefined;
|
|
29
|
+
contentComponents: UIComponentFactory[] | undefined;
|
|
30
|
+
contentMode: EditorContentMode | undefined;
|
|
31
|
+
contextPanel: ReactComponents | undefined;
|
|
32
|
+
customContentComponents: ContentComponents | undefined;
|
|
33
|
+
disabled: boolean | undefined;
|
|
34
|
+
dispatchAnalyticsEvent: DispatchAnalyticsEvent | undefined;
|
|
35
|
+
editorActions: EditorActions | undefined;
|
|
36
|
+
editorAPI: EditorAPI | undefined;
|
|
37
|
+
editorDOMElement: ReactElement;
|
|
38
|
+
editorView: EditorView;
|
|
39
|
+
eventDispatcher: EventDispatcher | undefined;
|
|
40
|
+
featureFlags?: FeatureFlags;
|
|
41
|
+
hasHadInteraction?: boolean;
|
|
42
|
+
isEditorToolbarHidden?: boolean;
|
|
43
|
+
pluginHooks: ReactHookFactory[] | undefined;
|
|
44
|
+
popupsBoundariesElement: HTMLElement | undefined;
|
|
45
|
+
popupsMountPoint: HTMLElement | undefined;
|
|
46
|
+
popupsScrollableElement: HTMLElement | undefined;
|
|
47
|
+
providerFactory: ProviderFactory;
|
|
48
|
+
UNSAFE_containLayout?: boolean;
|
|
49
|
+
viewMode: ViewMode | undefined;
|
|
50
|
+
wrapperElement: HTMLElement | null;
|
|
51
|
+
}
|
|
52
|
+
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
53
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, 'ref'> & React.RefAttributes<any>> & {
|
|
54
|
+
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
55
|
+
};
|
|
56
|
+
export {};
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
5
|
import React from 'react';
|
|
12
6
|
import { jsx } from '@compiled/react';
|
|
13
7
|
export declare const NonCustomToolbarWrapperCompiled: ({ children, }: {
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { jsx } from '@compiled/react';
|
|
7
|
+
export interface MainToolbarWrapperProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
'data-testid'?: string;
|
|
10
|
+
showKeyline: boolean;
|
|
11
|
+
twoLineEditorToolbar: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const MainToolbarWrapper: ({ showKeyline, twoLineEditorToolbar, children, 'data-testid': testId, }: MainToolbarWrapperProps) => jsx.JSX.Element;
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
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
5
|
import React from 'react';
|
|
12
6
|
import type { InputHTMLAttributes } from 'react';
|
|
13
7
|
export declare const ChromeCollapsedCompiled: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -2,11 +2,5 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
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
5
|
import type { HTMLAttributes } from 'react';
|
|
12
6
|
export declare const PluginsComponentsWrapperCompiled: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `ToolbarInner.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
5
|
import type { ReactNode } from 'react';
|
|
12
6
|
interface ToolbarComponentsWrapperCompiledProps {
|
|
13
7
|
children?: ReactNode;
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `ToolbarWithSizeDetector.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
5
|
import type { CSSProperties, ReactNode } from 'react';
|
|
12
6
|
interface ToolbarSizeDetectorWrapperCompiledProps {
|
|
13
7
|
children?: ReactNode;
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
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
5
|
import React from 'react';
|
|
12
6
|
export interface Props {
|
|
13
7
|
animate: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "235.0.
|
|
3
|
+
"version": "235.0.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.1.0",
|
|
79
79
|
"@atlaskit/task-decision": "^21.12.0",
|
|
80
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
80
|
+
"@atlaskit/tmp-editor-statsig": "^225.0.0",
|
|
81
81
|
"@atlaskit/tokens": "^20.3.0",
|
|
82
82
|
"@atlaskit/tooltip": "^24.4.0",
|
|
83
83
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"uuid": "^11.1.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@atlaskit/editor-common": "^129.
|
|
99
|
+
"@atlaskit/editor-common": "^129.1.0",
|
|
100
100
|
"@atlaskit/link-provider": "^6.0.0",
|
|
101
101
|
"@atlaskit/media-core": "^39.0.0",
|
|
102
102
|
"react": "^18.2.0 || ^19.2.0",
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.BaseThemeWrapper = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _react2 = require("@emotion/react");
|
|
10
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
12
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
// Default value from: `import { fontSize } from '@atlaskit/theme/constants';`
|
|
17
|
-
var defaultFontSize = 14;
|
|
18
|
-
|
|
19
|
-
// No-op variant used when the static-css experiment is enabled. Editor consumers
|
|
20
|
-
// no longer read theme.baseFontSize / theme.layoutMaxWidth via Emotion's useTheme(),
|
|
21
|
-
// so no <ThemeProvider> is required in the React tree.
|
|
22
|
-
var BaseThemeWrapperNoop = function BaseThemeWrapperNoop(_ref) {
|
|
23
|
-
var children = _ref.children;
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// Legacy variant keeping the original Emotion <ThemeProvider> behaviour for
|
|
28
|
-
// callers that still rely on theme.baseFontSize / theme.layoutMaxWidth.
|
|
29
|
-
var BaseThemeWrapperLegacy = function BaseThemeWrapperLegacy(_ref2) {
|
|
30
|
-
var baseFontSize = _ref2.baseFontSize,
|
|
31
|
-
children = _ref2.children;
|
|
32
|
-
var memoizedTheme = (0, _react.useMemo)(function () {
|
|
33
|
-
return {
|
|
34
|
-
baseFontSize: baseFontSize || defaultFontSize,
|
|
35
|
-
layoutMaxWidth: _editorSharedStyles.akEditorDefaultLayoutWidth
|
|
36
|
-
};
|
|
37
|
-
}, [baseFontSize]);
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_react2.ThemeProvider, {
|
|
39
|
-
theme: memoizedTheme
|
|
40
|
-
}, children);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
// Gated at module load — when the experiment is enabled, this becomes a no-op
|
|
44
|
-
// wrapper; otherwise it preserves today's Emotion <ThemeProvider> behaviour.
|
|
45
|
-
var BaseThemeWrapper = exports.BaseThemeWrapper = (0, _componentWithCondition.componentWithCondition)(function () {
|
|
46
|
-
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
47
|
-
}, BaseThemeWrapperNoop, BaseThemeWrapperLegacy);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EditorInternalContainerEmotion = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
/**
|
|
9
|
-
* @jsxRuntime classic
|
|
10
|
-
* @jsx jsx
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
14
|
-
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
15
|
-
*
|
|
16
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
20
|
-
|
|
21
|
-
var editorContainerEmotionStyles = (0, _react.css)({
|
|
22
|
-
position: 'relative',
|
|
23
|
-
width: '100%',
|
|
24
|
-
height: '100%'
|
|
25
|
-
});
|
|
26
|
-
var EditorInternalContainerEmotion = exports.EditorInternalContainerEmotion = function EditorInternalContainerEmotion(_ref) {
|
|
27
|
-
var children = _ref.children,
|
|
28
|
-
fontSize = _ref.fontSize;
|
|
29
|
-
return (0, _react.jsx)("div", {
|
|
30
|
-
css: editorContainerEmotionStyles,
|
|
31
|
-
style: {
|
|
32
|
-
'--ak-editor-base-font-size': "".concat(fontSize, "px")
|
|
33
|
-
}
|
|
34
|
-
}, children);
|
|
35
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ClickAreaBlockContainerEmotion = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = require("@emotion/react");
|
|
11
|
-
var _excluded = ["children"];
|
|
12
|
-
/**
|
|
13
|
-
* @jsxRuntime classic
|
|
14
|
-
* @jsx jsx
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
18
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
19
|
-
*
|
|
20
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
21
|
-
*/
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
23
|
-
var clickWrapperEmotionStyles = (0, _react.css)({
|
|
24
|
-
flexGrow: 1,
|
|
25
|
-
height: '100%'
|
|
26
|
-
});
|
|
27
|
-
var ClickAreaBlockContainerEmotion = exports.ClickAreaBlockContainerEmotion = function ClickAreaBlockContainerEmotion(_ref) {
|
|
28
|
-
var children = _ref.children,
|
|
29
|
-
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
-
return (
|
|
31
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
32
|
-
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
33
|
-
css: clickWrapperEmotionStyles
|
|
34
|
-
}, rest), children)
|
|
35
|
-
);
|
|
36
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
/**
|
|
3
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
-
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
|
-
"use strict";
|
|
9
|
-
|
|
10
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
exports.ChromelessEditorContainerCompiled = void 0;
|
|
15
|
-
require("./Chromeless-compiled.compiled.css");
|
|
16
|
-
var _runtime = require("@compiled/react/runtime");
|
|
17
|
-
var _react = _interopRequireDefault(require("react"));
|
|
18
|
-
var chromelessStyles = {
|
|
19
|
-
scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
|
|
20
|
-
editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
|
|
21
|
-
};
|
|
22
|
-
var ChromelessEditorContainerCompiled = exports.ChromelessEditorContainerCompiled = function ChromelessEditorContainerCompiled(_ref) {
|
|
23
|
-
var children = _ref.children,
|
|
24
|
-
containerRef = _ref.containerRef,
|
|
25
|
-
maxHeight = _ref.maxHeight,
|
|
26
|
-
minHeight = _ref.minHeight;
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
29
|
-
className: (0, _runtime.ax)([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
|
|
30
|
-
style: {
|
|
31
|
-
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
32
|
-
minHeight: "".concat(minHeight, "px")
|
|
33
|
-
},
|
|
34
|
-
ref: containerRef,
|
|
35
|
-
"data-testid": "chromeless-editor",
|
|
36
|
-
id: "chromeless-editor"
|
|
37
|
-
}, children);
|
|
38
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ChromelessEditorContainerEmotion = void 0;
|
|
8
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _excluded = ["children", "containerRef", "maxHeight", "minHeight"];
|
|
11
|
-
/**
|
|
12
|
-
* @jsxRuntime classic
|
|
13
|
-
* @jsx jsx
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
17
|
-
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
18
|
-
*
|
|
19
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
20
|
-
*/
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
|
|
22
|
-
var scrollbarStylesNew = (0, _react.css)({
|
|
23
|
-
msOverflowStyle: '-ms-autohiding-scrollbar',
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
25
|
-
'&::-webkit-scrollbar-corner': {
|
|
26
|
-
display: 'none'
|
|
27
|
-
},
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
29
|
-
'&::-webkit-scrollbar-thumb': {
|
|
30
|
-
backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
|
|
31
|
-
},
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
33
|
-
'&:hover::-webkit-scrollbar-thumb': {
|
|
34
|
-
backgroundColor: "var(--ds-background-neutral-bold, #292A2E)",
|
|
35
|
-
borderRadius: "var(--ds-radius-large, 8px)"
|
|
36
|
-
},
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
38
|
-
'&::-webkit-scrollbar-thumb:hover': {
|
|
39
|
-
backgroundColor: "var(--ds-background-neutral-bold-hovered, #3B3D42)"
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
var chromelessEditorStylesNew = (0, _react.css)({
|
|
43
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
44
|
-
lineHeight: '20px',
|
|
45
|
-
height: 'auto',
|
|
46
|
-
overflowX: 'hidden',
|
|
47
|
-
overflowY: 'auto',
|
|
48
|
-
maxWidth: 'inherit',
|
|
49
|
-
boxSizing: 'border-box',
|
|
50
|
-
wordWrap: 'break-word',
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
|
-
'div > .ProseMirror': {
|
|
53
|
-
outline: 'none',
|
|
54
|
-
whiteSpace: 'pre-wrap',
|
|
55
|
-
padding: 0,
|
|
56
|
-
margin: 0,
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
58
|
-
'& > :last-child': {
|
|
59
|
-
paddingBottom: "var(--ds-space-100, 8px)"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
63
|
-
'.ProseMirror': {
|
|
64
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
65
|
-
'& > p:last-of-type': {
|
|
66
|
-
marginBottom: "var(--ds-space-0, 0px)"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
var ChromelessEditorContainerEmotion = exports.ChromelessEditorContainerEmotion = function ChromelessEditorContainerEmotion(_ref) {
|
|
71
|
-
var children = _ref.children,
|
|
72
|
-
containerRef = _ref.containerRef,
|
|
73
|
-
maxHeight = _ref.maxHeight,
|
|
74
|
-
minHeight = _ref.minHeight,
|
|
75
|
-
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
76
|
-
return (0, _react.jsx)("div", {
|
|
77
|
-
css: [chromelessEditorStylesNew, scrollbarStylesNew]
|
|
78
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
79
|
-
,
|
|
80
|
-
className: "akEditor",
|
|
81
|
-
style: {
|
|
82
|
-
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
83
|
-
minHeight: "".concat(minHeight, "px")
|
|
84
|
-
},
|
|
85
|
-
ref: containerRef,
|
|
86
|
-
"data-testid": "chromeless-editor",
|
|
87
|
-
id: "chromeless-editor"
|
|
88
|
-
}, children);
|
|
89
|
-
};
|