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