@atlaskit/editor-core 235.0.0 → 235.0.1
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 +9 -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/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/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/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,13 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
/* FullPageContentArea.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./FullPageContentArea.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React, { useImperativeHandle, useRef } from 'react';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
import { injectIntl } from 'react-intl';
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
8
|
+
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
|
+
import { akEditorGutterPaddingDynamic, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
|
+
|
|
13
|
+
// Ignored via go/ees005
|
|
14
|
+
// eslint-disable-next-line import/no-named-as-default
|
|
15
|
+
|
|
16
|
+
import { ClickAreaBlock } from '../../Addon/ClickAreaBlock';
|
|
17
|
+
import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
|
|
18
|
+
import { ContextPanel } from '../../ContextPanel';
|
|
19
|
+
import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
|
|
20
|
+
import PluginSlot from '../../PluginSlot';
|
|
21
|
+
const akLayoutGutterOffsetStatic = 12;
|
|
22
|
+
const akEditorGutterPaddingReducedStatic = 24;
|
|
23
|
+
const akEditorFullWidthLayoutWidth = 1800;
|
|
24
|
+
const akEditorUltraWideLayoutWidth = 4000;
|
|
25
|
+
const akEditorSwoopCubicBezier = `cubic-bezier(0.15, 1, 0.3, 1)`;
|
|
26
|
+
const tableMarginFullWidthMode = 2;
|
|
27
|
+
const akLayoutGutterOffset = 12;
|
|
28
|
+
const SWOOP_ANIMATION = `0.5s ${akEditorSwoopCubicBezier}`;
|
|
29
|
+
const AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
30
|
+
const getTotalPadding = () => akEditorGutterPaddingDynamic() * 2;
|
|
31
|
+
|
|
32
|
+
// Isolates the scroll container's layout and size from the rest of the page.
|
|
33
|
+
// Because of contain: size wrapper must take its height from the parent
|
|
34
|
+
// rather than from the contained content.
|
|
35
|
+
const containLayoutStyles = {
|
|
36
|
+
wrapper: "_njlp3xnj _4t3i1osq"
|
|
37
|
+
};
|
|
38
|
+
const compiledStyles = {
|
|
39
|
+
contentAreaWrapper: "_1bsb1osq _7cca15wb _1f38dez1 _njlp131u",
|
|
40
|
+
sidebarArea: "_4t3i1osq _vchhusvi _1wpzesu3 _1hgw1wug _1t1q1if8 _uj9widpf _13hh1y6m",
|
|
41
|
+
editorContentAreaProsemirrorStyle: "_j9k7kb7n _18q6usvi _l4a11hrf _1nw4glyw _yq1qglyw _1qzyglyw _ongaglyw _1rnyglyw _vtulglyw _13svglyw _t2fzglyw _7uc0glyw _1gl01ejb",
|
|
42
|
+
hideEditorContentAreaProsemirrorWithAttributeStyle: "_12glglyw",
|
|
43
|
+
hideEditorContentAreaScrollGutterWithAttributeStyle: "_amwgglyw",
|
|
44
|
+
hideEditorScrollGutterStyle: "_1e0cglyw",
|
|
45
|
+
fullWidthNonChromelessBreakoutBlockTableStyle: "_xpemaq80 _pnffaq80 _zr7faq80 _qkfz261p _i92uagmp",
|
|
46
|
+
editorContentAreaNew: "_19pk1wug _2hwx1wug _otyr1wug _18u01wug _v5641fxv _vwz41tcg _ca0qoahv _n3tdoahv _4t3i1ap5 _1bsb1osq _2lx21bp4 _16jlkb7n _p12f5kin _1uizkqmb",
|
|
47
|
+
tableFullPageEditorStylesNew: "_1tb2idpf _8vye1n1a _1k8i1osq",
|
|
48
|
+
editorContentAreaContainerNestedDndStyle: "_tynl4diq",
|
|
49
|
+
editorContentAreaContainerStyleExcludeCodeBlockNew: "_1wxymslj _9dtbmslj _17q71osq _1b7c1kw7 _tynlfknx",
|
|
50
|
+
editorContentGutterStyleFG: "_ca0qidpf _u5f3t9kd _n3tdidpf _19bvt9kd",
|
|
51
|
+
editorContentGutterStyles: "_ca0qidpf _u5f31ex1 _n3tdidpf _19bv1ex1 _vchhusvi",
|
|
52
|
+
editorContentReducedGutterStyles: "_1d7gidpf _n2nw1tcg _d329idpf _105p1tcg",
|
|
53
|
+
contentAreaNew: "_19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _v5642kub _1e0c1txw _2lx2vrvc _4t3ibhu0 _vchhusvi _8j6w1lxk",
|
|
54
|
+
contentAreaHeightNoToolbar: "_4t3i1osq",
|
|
55
|
+
markdownModeContainerBackgroundStyle: "_bfhkhfxm _101j15vq",
|
|
56
|
+
markdownModeContentAreaStyle: "_19pkidpf _2hwxidpf _otyridpf _18u0idpf _vchhusvi _4t3i1osq _p12fglyw _1ul9idpf _n3tdidpf _ca0qidpf _1bsb1osq _fh67idpf _71ybidpf _evz0idpf _1n5qidpf _1wrrusvi _13jk1txw _q0l01bp4 _1a1d1osq _1vbxidpf _1xouidpf _4tbp1osq _1e8kkb7n _boivkb7n _13t61wug _11bl1txw _1593idpf _qgzyidpf _li931osq"
|
|
57
|
+
};
|
|
5
58
|
export const CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
6
|
-
|
|
7
|
-
|
|
59
|
+
const EDITOR_CONTAINER = 'ak-editor-container';
|
|
60
|
+
const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
61
|
+
var _props$editorAPI, _props$editorAPI$base, _props$editorAPI$base2, _props$editorAPI$bloc, _props$editorAPI2, _props$editorAPI2$blo, _props$editorAPI2$blo2, _props$editorAPI2$blo3, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
|
|
62
|
+
const fullWidthMode = props.appearance === 'full-width';
|
|
63
|
+
const maxWidthMode = props.appearance === 'max';
|
|
64
|
+
const scrollContainerRef = useRef(null);
|
|
65
|
+
const contentAreaRef = useRef(null);
|
|
66
|
+
const containerRef = useRef(null);
|
|
67
|
+
const allowScrollGutter = (_props$editorAPI = props.editorAPI) === null || _props$editorAPI === void 0 ? void 0 : (_props$editorAPI$base = _props$editorAPI.base) === null || _props$editorAPI$base === void 0 ? void 0 : (_props$editorAPI$base2 = _props$editorAPI$base.sharedState.currentState()) === null || _props$editorAPI$base2 === void 0 ? void 0 : _props$editorAPI$base2.allowScrollGutter;
|
|
68
|
+
const contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : akEditorDefaultLayoutWidth : akEditorFullWidthLayoutWidth);
|
|
69
|
+
|
|
70
|
+
// Get useStandardNodeWidth from block menu plugin shared state
|
|
71
|
+
// Only access editorAPI when the experiment is enabled to avoid performance impact
|
|
72
|
+
const useStandardNodeWidth = editorExperiment('platform_editor_controls', 'variant1') && ((_props$editorAPI$bloc = (_props$editorAPI2 = props.editorAPI) === null || _props$editorAPI2 === void 0 ? void 0 : (_props$editorAPI2$blo = _props$editorAPI2.blockMenu) === null || _props$editorAPI2$blo === void 0 ? void 0 : (_props$editorAPI2$blo2 = _props$editorAPI2$blo.sharedState) === null || _props$editorAPI2$blo2 === void 0 ? void 0 : (_props$editorAPI2$blo3 = _props$editorAPI2$blo2.currentState()) === null || _props$editorAPI2$blo3 === void 0 ? void 0 : _props$editorAPI2$blo3.useStandardNodeWidth) !== null && _props$editorAPI$bloc !== void 0 ? _props$editorAPI$bloc : false);
|
|
73
|
+
useImperativeHandle(ref, () => ({
|
|
74
|
+
get scrollContainer() {
|
|
75
|
+
return scrollContainerRef.current;
|
|
76
|
+
},
|
|
77
|
+
get contentArea() {
|
|
78
|
+
return contentAreaRef.current;
|
|
79
|
+
},
|
|
80
|
+
get containerArea() {
|
|
81
|
+
return containerRef.current;
|
|
82
|
+
}
|
|
83
|
+
}), []);
|
|
84
|
+
const markdownPluginCurrentView = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], states => {
|
|
85
|
+
var _states$markdownModeS;
|
|
86
|
+
return (_states$markdownModeS = states.markdownModeState) === null || _states$markdownModeS === void 0 ? void 0 : _states$markdownModeS.view;
|
|
87
|
+
});
|
|
88
|
+
const markdownPluginCurrentIsMarkdownMode = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], states => {
|
|
89
|
+
var _states$markdownModeS2;
|
|
90
|
+
return (_states$markdownModeS2 = states.markdownModeState) === null || _states$markdownModeS2 === void 0 ? void 0 : _states$markdownModeS2.isMarkdownMode;
|
|
91
|
+
});
|
|
92
|
+
const isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
|
|
93
|
+
const shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
94
|
+
const shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
95
|
+
const content = /*#__PURE__*/React.createElement(EditorContentContainer
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
97
|
+
, {
|
|
98
|
+
className: "fabric-editor-popup-scroll-parent",
|
|
99
|
+
featureFlags: props.featureFlags,
|
|
100
|
+
ref: scrollContainerRef,
|
|
101
|
+
viewMode: props === null || props === void 0 ? void 0 : props.viewMode,
|
|
102
|
+
isScrollable: true,
|
|
103
|
+
appearance: props.appearance,
|
|
104
|
+
contentMode: props.contentMode,
|
|
105
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
106
|
+
}, /*#__PURE__*/React.createElement(ClickAreaBlock, {
|
|
107
|
+
editorView: props.editorView,
|
|
108
|
+
editorDisabled: props.disabled
|
|
109
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
|
|
111
|
+
"data-markdown-mode-hide-scroll-gutter": shouldHideScrollGutterForMarkdownMode ? 'true' : undefined,
|
|
112
|
+
style: {
|
|
113
|
+
'--ak-editor-content-area-max-width': `${contentAreaMaxWidth}px`
|
|
114
|
+
}
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
116
|
+
,
|
|
117
|
+
className: ax([compiledStyles.editorContentAreaNew, compiledStyles.editorContentAreaProsemirrorStyle, shouldHideProseMirrorForMarkdownMode && compiledStyles.hideEditorContentAreaProsemirrorWithAttributeStyle, shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorContentAreaScrollGutterWithAttributeStyle, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContentAreaStyle, compiledStyles.tableFullPageEditorStylesNew, compiledStyles.fullWidthNonChromelessBreakoutBlockTableStyle,
|
|
118
|
+
// for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
|
|
119
|
+
compiledStyles.editorContentAreaContainerStyleExcludeCodeBlockNew, compiledStyles.editorContentAreaContainerNestedDndStyle, "ak-editor-content-area-region"]),
|
|
120
|
+
"data-editor-editable-content": true,
|
|
121
|
+
role: "region",
|
|
122
|
+
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
123
|
+
ref: contentAreaRef,
|
|
124
|
+
"data-vc": "editor-content-area-region"
|
|
125
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
127
|
+
className: ax([compiledStyles.editorContentGutterStyles, compiledStyles.editorContentGutterStyleFG, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
128
|
+
exposure: true
|
|
129
|
+
}) && compiledStyles.editorContentReducedGutterStyles, classnames('ak-editor-content-area', 'appearance-full-page', {
|
|
130
|
+
'fabric-editor--full-width-mode': fullWidthMode,
|
|
131
|
+
'fabric-editor--max-width-mode': Boolean(maxWidthMode)
|
|
132
|
+
})]),
|
|
133
|
+
ref: contentAreaRef
|
|
134
|
+
}, !!props.customContentComponents && 'before' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.before) : contentComponentClickWrapper(props.customContentComponents), /*#__PURE__*/React.createElement(PluginSlot, {
|
|
135
|
+
editorView: props.editorView,
|
|
136
|
+
editorActions: props.editorActions,
|
|
137
|
+
eventDispatcher: props.eventDispatcher,
|
|
138
|
+
providerFactory: props.providerFactory,
|
|
139
|
+
appearance: props.appearance,
|
|
140
|
+
items: props.contentComponents,
|
|
141
|
+
pluginHooks: props.pluginHooks,
|
|
142
|
+
contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
|
|
143
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
144
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
145
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
146
|
+
disabled: !!props.disabled,
|
|
147
|
+
containerElement: scrollContainerRef.current,
|
|
148
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
149
|
+
wrapperElement: props.wrapperElement
|
|
150
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (editorExperiment('platform_editor_blocks', true) ? /*#__PURE__*/React.createElement("div", {
|
|
151
|
+
id: "editor-scroll-gutter",
|
|
152
|
+
style: {
|
|
153
|
+
paddingBottom: `${(_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120'}px`
|
|
154
|
+
},
|
|
155
|
+
"data-vc": "scroll-gutter",
|
|
156
|
+
"data-editor-scroll-gutter": "true",
|
|
157
|
+
className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
|
|
158
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
159
|
+
id: "editor-scroll-gutter",
|
|
160
|
+
style: {
|
|
161
|
+
paddingBottom: `${(_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120'}px`
|
|
162
|
+
},
|
|
163
|
+
"data-vc": "scroll-gutter",
|
|
164
|
+
className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
|
|
165
|
+
}))))));
|
|
166
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
167
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
168
|
+
ref: containerRef,
|
|
169
|
+
className: ax([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
170
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
171
|
+
"data-testid": EDITOR_CONTAINER,
|
|
172
|
+
"data-editor-container": 'true',
|
|
173
|
+
className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
174
|
+
}, props.UNSAFE_containLayout ? /*#__PURE__*/React.createElement("div", {
|
|
175
|
+
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
176
|
+
className: ax([containLayoutStyles.wrapper])
|
|
177
|
+
}, content) : content), /*#__PURE__*/React.createElement("div", {
|
|
178
|
+
className: ax([compiledStyles.sidebarArea])
|
|
179
|
+
}, props.contextPanel || /*#__PURE__*/React.createElement(ContextPanel, {
|
|
180
|
+
editorAPI: props.editorAPI,
|
|
181
|
+
visible: false
|
|
182
|
+
})));
|
|
183
|
+
});
|
|
8
184
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export const FullPageContentArea = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), FullPageContentAreaCompiled, FullPageContentAreaEmotion);
|
|
185
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
186
|
+
export const FullPageContentArea = injectIntl(Content, {
|
|
187
|
+
forwardRef: true
|
|
188
|
+
});
|
|
@@ -8,11 +8,9 @@ import { ToolbarPortalMountPoint, useToolbarPortal } from '../../Toolbar/Toolbar
|
|
|
8
8
|
import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
|
|
9
9
|
import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
|
|
10
10
|
import { MainToolbarForFirstChildWrapper, MainToolbarForSecondChildWrapper } from './CustomToolbarWrapper';
|
|
11
|
-
import { CustomToolbarWrapperMigration } from './CustomToolbarWrapperMigration';
|
|
12
11
|
import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
13
|
-
import {
|
|
12
|
+
import { CustomToolbarWrapperCompiled, MainToolbarIconBeforeCompiled, NonCustomToolbarWrapperCompiled } from './MainToolbar-compiled';
|
|
14
13
|
import { MainToolbarWrapper } from './MainToolbarWrapper';
|
|
15
|
-
import { NonCustomToolbarWrapperMigration } from './NonCustomToolbarWrapperMigration';
|
|
16
14
|
export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
17
15
|
var _props$primaryToolbar, _useToolbarPortal, _props$customPrimaryT;
|
|
18
16
|
const [shouldSplitToolbar, setShouldSplitToolbar] = useState(false);
|
|
@@ -32,7 +30,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
32
30
|
};
|
|
33
31
|
const hasToolbarPortal = ToolbarPortal !== React.Fragment;
|
|
34
32
|
const popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
|
|
35
|
-
const nonCustomToolbar = /*#__PURE__*/React.createElement(
|
|
33
|
+
const nonCustomToolbar = /*#__PURE__*/React.createElement(NonCustomToolbarWrapperCompiled, null, props.beforeIcon && /*#__PURE__*/React.createElement(MainToolbarIconBeforeCompiled, null, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
|
|
36
34
|
editorView: props.editorView,
|
|
37
35
|
editorActions: props.editorActions,
|
|
38
36
|
eventDispatcher: props.eventDispatcher,
|
|
@@ -48,7 +46,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
48
46
|
hasMinWidth: props.hasMinWidth,
|
|
49
47
|
twoLineEditorToolbar: twoLineEditorToolbar
|
|
50
48
|
}));
|
|
51
|
-
const customToolbar = /*#__PURE__*/React.createElement(
|
|
49
|
+
const customToolbar = /*#__PURE__*/React.createElement(CustomToolbarWrapperCompiled, null, !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
|
|
52
50
|
beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
|
|
53
51
|
}) : null, !editorExperiment('platform_editor_controls', 'variant1') && editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.registerToolbarButton({
|
|
54
52
|
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* MainToolbar-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 `MainToolbar.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./MainToolbar-compiled.compiled.css";
|
|
9
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
4
|
import React from 'react';
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
/* MainToolbarWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./MainToolbarWrapper.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
7
|
+
|
|
8
|
+
const styles = {
|
|
9
|
+
base: "_v56419ab _n7zlia51 _kqswh2mm _4cvr1h6o _16qsglyw _1pby16oo _1e0c1txw _4t3i17qo _1o9zidpf _bfhkvuon _1krdgrf3",
|
|
10
|
+
flexibleIconSize: "_3pwj1osq",
|
|
11
|
+
keyline: "_16qs1nax",
|
|
12
|
+
twoLine: "_1s5v1g80 _8o38zpre"
|
|
13
|
+
};
|
|
14
|
+
export const MainToolbarWrapper = ({
|
|
15
|
+
showKeyline,
|
|
16
|
+
twoLineEditorToolbar,
|
|
17
|
+
children,
|
|
18
|
+
'data-testid': testId
|
|
19
|
+
}) => {
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
"data-testid": testId,
|
|
22
|
+
className: ax([styles.base, styles.flexibleIconSize, showKeyline && styles.keyline, twoLineEditorToolbar && styles.twoLine])
|
|
23
|
+
}, children);
|
|
24
|
+
};
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ChromeCollapsed-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
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, { forwardRef } from 'react';
|
|
12
6
|
const inputCompiledStyles = {
|
|
13
7
|
root: "_19it19hj _2rkofajl _bfhk1j9a _vchhusvi _4t3i1ylp _19bvv47k _ca0qutpp _n3tdutpp _1wyboxwj _1bsb1osq _k48pi7a9 _vwz41aog _1dyzdjp5 _syaz1rpy _4cvxrsbi _irr3l4ek _d0al1kdv"
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
4
|
import { ChromeCollapsedCompiled } from './ChromeCollapsed-compiled';
|
|
7
|
-
import { ChromeCollapsedEmotion } from './ChromeCollapsed-emotion';
|
|
8
5
|
import { messages } from './messages';
|
|
9
|
-
const InputMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ChromeCollapsedCompiled, ChromeCollapsedEmotion);
|
|
10
6
|
// Ignored via go/ees005
|
|
11
7
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
12
8
|
class ChromeCollapsed extends PureComponent {
|
|
@@ -32,7 +28,7 @@ class ChromeCollapsed extends PureComponent {
|
|
|
32
28
|
}
|
|
33
29
|
render() {
|
|
34
30
|
const placeholder = this.props.text || this.props.intl.formatMessage(messages.chromeCollapsedPlaceholder);
|
|
35
|
-
return /*#__PURE__*/React.createElement(
|
|
31
|
+
return /*#__PURE__*/React.createElement(ChromeCollapsedCompiled, {
|
|
36
32
|
"data-testid": "chrome-collapsed",
|
|
37
33
|
ref: this.handleInputRef,
|
|
38
34
|
onFocus: this.focusHandler,
|
|
@@ -3,12 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index-compiled.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
/**
|
|
7
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
8
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
9
|
-
*
|
|
10
|
-
* Cleanup: delete this file once the `platform_editor_core_non_ecc_static_css` experiment has shipped.
|
|
11
|
-
*/
|
|
12
6
|
import { useMemo } from 'react';
|
|
13
7
|
const akEditorContextPanelWidthStatic = 320;
|
|
14
8
|
const getContextPanelWidthStyle = ({
|
|
@@ -11,12 +11,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
11
11
|
import { contextPanelMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { akEditorContextPanelWidth } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
15
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
14
|
import { ContextPanelContentCompiled, ContextPanelWrapperCompiled } from './index-compiled';
|
|
17
|
-
import { ContextPanelContentEmotion, ContextPanelWrapperEmotion } from './index-emotion';
|
|
18
|
-
const ContextPanelWrapperMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ContextPanelWrapperCompiled, ContextPanelWrapperEmotion);
|
|
19
|
-
const ContextPanelContentMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ContextPanelContentCompiled, ContextPanelContentEmotion);
|
|
20
15
|
// Ignored via go/ees005
|
|
21
16
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
22
17
|
class SwappableContentAreaInner extends React.PureComponent {
|
|
@@ -122,7 +117,7 @@ class SwappableContentAreaInner extends React.PureComponent {
|
|
|
122
117
|
var _this$props$intl, _this$props$intl2;
|
|
123
118
|
const contextPanelWidth = visible ? width : 0;
|
|
124
119
|
broadcastWidth(contextPanelWidth);
|
|
125
|
-
return /*#__PURE__*/React.createElement(
|
|
120
|
+
return /*#__PURE__*/React.createElement(ContextPanelWrapperCompiled, {
|
|
126
121
|
customWidth: this.props.customWidth,
|
|
127
122
|
visible: visible,
|
|
128
123
|
"data-testid": "context-panel-panel"
|
|
@@ -131,7 +126,7 @@ class SwappableContentAreaInner extends React.PureComponent {
|
|
|
131
126
|
"aria-label": ((_this$props$intl = this.props.intl) === null || _this$props$intl === void 0 ? void 0 : _this$props$intl.formatMessage(contextPanelMessages.panelLabel)) || '',
|
|
132
127
|
"aria-modal": "false",
|
|
133
128
|
role: "dialog"
|
|
134
|
-
}, /*#__PURE__*/React.createElement(
|
|
129
|
+
}, /*#__PURE__*/React.createElement(ContextPanelContentCompiled, {
|
|
135
130
|
customWidth: this.props.customWidth,
|
|
136
131
|
visible: visible,
|
|
137
132
|
hasPadding: hasPadding,
|
|
@@ -3,13 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./PluginSlot-compiled.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
/**
|
|
7
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
8
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
9
|
-
*
|
|
10
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
6
|
const pluginsComponentsWrapperCompiledStyles = {
|
|
14
7
|
root: "_1e0c1txw"
|
|
15
8
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
3
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
5
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
import { ErrorBoundary } from '../ErrorBoundary';
|
|
7
6
|
import { MountPluginHooks } from './mount-plugin-hooks';
|
|
8
7
|
import { PluginsComponentsWrapperCompiled } from './PluginSlot-compiled';
|
|
9
|
-
import { PluginsComponentsWrapperEmotion } from './PluginSlot-emotion';
|
|
10
|
-
const PluginsComponentsWrapperMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), PluginsComponentsWrapperCompiled, PluginsComponentsWrapperEmotion);
|
|
11
8
|
const PluginComponent = ({
|
|
12
9
|
component,
|
|
13
10
|
editorView,
|
|
@@ -68,7 +65,7 @@ const PluginSlot = ({
|
|
|
68
65
|
pluginHooks: pluginHooks,
|
|
69
66
|
containerElement: containerElement,
|
|
70
67
|
wrapperElement: wrapperElement
|
|
71
|
-
}), /*#__PURE__*/React.createElement(
|
|
68
|
+
}), /*#__PURE__*/React.createElement(PluginsComponentsWrapperCompiled, {
|
|
72
69
|
"data-testid": "plugins-components-wrapper"
|
|
73
70
|
}, items === null || items === void 0 ? void 0 : items.map((component, index) => {
|
|
74
71
|
if (isolatePluginSlotFailures) {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* ToolbarComponentsWrapper-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 `ToolbarInner.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./ToolbarComponentsWrapper-compiled.compiled.css";
|
|
9
3
|
import * as React from 'react';
|
|
10
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
3
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
4
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
4
|
import { ToolbarComponentsWrapperCompiled } from './ToolbarComponentsWrapper-compiled';
|
|
7
|
-
import { ToolbarComponentsWrapperEmotion } from './ToolbarComponentsWrapper-emotion';
|
|
8
|
-
const ToolbarComponentsWrapperMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ToolbarComponentsWrapperCompiled, ToolbarComponentsWrapperEmotion);
|
|
9
5
|
|
|
10
6
|
// Ignored via go/ees005
|
|
11
7
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -38,7 +34,7 @@ export class ToolbarInner extends React.Component {
|
|
|
38
34
|
// Hiding toolbar in SSR until the dependency of screen width is resolved in SSR environment.
|
|
39
35
|
return null;
|
|
40
36
|
}
|
|
41
|
-
return /*#__PURE__*/React.createElement(
|
|
37
|
+
return /*#__PURE__*/React.createElement(ToolbarComponentsWrapperCompiled, {
|
|
42
38
|
"data-vc": "toolbar-inner"
|
|
43
39
|
}, items.map((component, key) => {
|
|
44
40
|
const element = component({
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* ToolbarSizeDetectorWrapper-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 `ToolbarWithSizeDetector.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./ToolbarSizeDetectorWrapper-compiled.compiled.css";
|
|
9
3
|
import * as React from 'react';
|
|
10
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
3
3
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
5
|
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
8
6
|
import { isFullPage } from '../../utils/is-full-page';
|
|
9
7
|
import { useElementWidth } from './hooks';
|
|
10
8
|
import { Toolbar } from './Toolbar';
|
|
11
9
|
import { toolbarSizeToWidth, widthToToolbarSize } from './toolbar-size';
|
|
12
10
|
import { ToolbarSizeDetectorWrapperCompiled } from './ToolbarSizeDetectorWrapper-compiled';
|
|
13
|
-
import { ToolbarSizeDetectorWrapperEmotion } from './ToolbarSizeDetectorWrapper-emotion';
|
|
14
|
-
const ToolbarSizeDetectorWrapperMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ToolbarSizeDetectorWrapperCompiled, ToolbarSizeDetectorWrapperEmotion);
|
|
15
11
|
export const ToolbarWithSizeDetector = props => {
|
|
16
12
|
const ref = React.useRef(null);
|
|
17
13
|
const [width, setWidth] = React.useState(undefined);
|
|
@@ -34,13 +30,10 @@ export const ToolbarWithSizeDetector = props => {
|
|
|
34
30
|
return isPreviewPanelResponsivenessEnabled ? 'fit-content' : '254px';
|
|
35
31
|
}
|
|
36
32
|
}, [props.appearance, props.hasMinWidth, props.twoLineEditorToolbar]);
|
|
37
|
-
const
|
|
33
|
+
const wrapperStyle = useMemo(() => ({
|
|
38
34
|
minWidth: minWidthValue
|
|
39
35
|
}), [minWidthValue]);
|
|
40
|
-
|
|
41
|
-
minWidth: minWidthValue
|
|
42
|
-
};
|
|
43
|
-
return /*#__PURE__*/React.createElement(ToolbarSizeDetectorWrapperMigration
|
|
36
|
+
return /*#__PURE__*/React.createElement(ToolbarSizeDetectorWrapperCompiled
|
|
44
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- minWidth is computed dynamically from props.hasMinWidth, props.appearance, props.twoLineEditorToolbar, and the platform_editor_preview_panel_responsiveness experiment, so it cannot be expressed as a static css value.
|
|
45
38
|
, {
|
|
46
39
|
style: wrapperStyle
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
1
|
import { WithFlashCompiled } from './withFlash-compiled';
|
|
4
|
-
|
|
5
|
-
const WithFlash = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), WithFlashCompiled, WithFlashEmotion);
|
|
2
|
+
const WithFlash = WithFlashCompiled;
|
|
6
3
|
export default WithFlash;
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./withFlash-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
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
|
const pulseBackground = null;
|
|
13
7
|
const pulseBackgroundReverse = null;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* editor-internal-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 `editor-internal.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./editor-internal-compiled.compiled.css";
|
|
9
3
|
import * as React from 'react';
|
|
10
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -7,21 +7,14 @@ import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
|
7
7
|
import { usePortalProvider } from '@atlaskit/editor-common/portal';
|
|
8
8
|
import { editorFontSize } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
10
|
import ErrorBoundary from '../create-editor/ErrorBoundary';
|
|
13
11
|
import ReactEditorViewNext from '../create-editor/ReactEditorView';
|
|
14
12
|
import EditorContext from '../ui/EditorContext';
|
|
15
13
|
import { IntlProviderIfMissingWrapper } from '../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper';
|
|
16
14
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
17
15
|
import { RenderTracking } from '../utils/performance/components/RenderTracking';
|
|
18
|
-
import { BaseThemeWrapper } from './BaseThemeWrapper';
|
|
19
16
|
import { EditorInternalContainerCompiled } from './editor-internal-compiled';
|
|
20
|
-
import { EditorInternalContainerEmotion } from './editor-internal-emotion';
|
|
21
17
|
import { getBaseFontSize } from './utils/getBaseFontSize';
|
|
22
|
-
var EditorInternalContainerMigration = componentWithCondition(function () {
|
|
23
|
-
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
24
|
-
}, EditorInternalContainerCompiled, EditorInternalContainerEmotion);
|
|
25
18
|
var DEFAULT_VALUE_PROP_TO_IGNORE = ['defaultValue'];
|
|
26
19
|
|
|
27
20
|
/**
|
|
@@ -73,7 +66,7 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
|
73
66
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
74
67
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
75
68
|
featureFlags: featureFlags
|
|
76
|
-
}, /*#__PURE__*/React.createElement(
|
|
69
|
+
}, /*#__PURE__*/React.createElement(EditorInternalContainerCompiled, {
|
|
77
70
|
fontSize: fontSize
|
|
78
71
|
}, /*#__PURE__*/React.createElement(EditorContext, {
|
|
79
72
|
editorActions: editorActions
|
|
@@ -98,9 +91,7 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
|
98
91
|
dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
|
|
99
92
|
editorRef = _ref2.editorRef,
|
|
100
93
|
editorAPI = _ref2.editorAPI;
|
|
101
|
-
return /*#__PURE__*/React.createElement(
|
|
102
|
-
baseFontSize: baseFontSize
|
|
103
|
-
}, /*#__PURE__*/React.createElement(AppearanceComponent, {
|
|
94
|
+
return /*#__PURE__*/React.createElement(AppearanceComponent, {
|
|
104
95
|
innerRef: editorRef,
|
|
105
96
|
editorAPI: editorAPI
|
|
106
97
|
// Ignored via go/ees005
|
|
@@ -141,7 +132,7 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
|
141
132
|
__livePage: props.__livePage,
|
|
142
133
|
preset: preset,
|
|
143
134
|
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
144
|
-
})
|
|
135
|
+
});
|
|
145
136
|
}
|
|
146
137
|
}), /*#__PURE__*/React.createElement(PortalRenderer, null), /*#__PURE__*/React.createElement(NodeViewPortalRenderer, null)))))));
|
|
147
138
|
});
|
|
@@ -5,11 +5,6 @@ var _excluded = ["children"];
|
|
|
5
5
|
import "./clickAreaBlock-compiled.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
-
/**
|
|
9
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
10
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
8
|
var clickWrapperCompiledStyles = {
|
|
14
9
|
root: "_16jlkb7n _4t3i1osq"
|
|
15
10
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
2
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
5
3
|
import { ClickAreaBlockContainerCompiled } from './clickAreaBlock-compiled';
|
|
6
|
-
import { ClickAreaBlockContainerEmotion } from './clickAreaBlock-emotion';
|
|
7
|
-
var ClickAreaBlockContainerMigration = componentWithCondition(function () {
|
|
8
|
-
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
9
|
-
}, ClickAreaBlockContainerCompiled, ClickAreaBlockContainerEmotion);
|
|
10
4
|
export var ClickAreaBlock = function ClickAreaBlock(_ref) {
|
|
11
5
|
var editorView = _ref.editorView,
|
|
12
6
|
editorDisabled = _ref.editorDisabled,
|
|
@@ -19,7 +13,7 @@ export var ClickAreaBlock = function ClickAreaBlock(_ref) {
|
|
|
19
13
|
clickAreaClickHandler(editorView, event);
|
|
20
14
|
}
|
|
21
15
|
}, [editorView, editorDisabled]);
|
|
22
|
-
return /*#__PURE__*/React.createElement(
|
|
16
|
+
return /*#__PURE__*/React.createElement(ClickAreaBlockContainerCompiled, {
|
|
23
17
|
"data-editor-click-wrapper": true,
|
|
24
18
|
"data-testid": "click-wrapper",
|
|
25
19
|
onMouseDown: handleMouseDown
|