@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,14 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
/* ChromelessEditorContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./ChromelessEditorContainer.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
var chromelessStyles = {
|
|
6
|
+
scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
|
|
7
|
+
editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
|
|
8
|
+
};
|
|
9
|
+
export var ChromelessEditorContainer = function ChromelessEditorContainer(_ref) {
|
|
10
|
+
var children = _ref.children,
|
|
11
|
+
containerRef = _ref.containerRef,
|
|
12
|
+
maxHeight = _ref.maxHeight,
|
|
13
|
+
minHeight = _ref.minHeight;
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
+
className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
|
|
17
|
+
style: {
|
|
18
|
+
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
19
|
+
minHeight: "".concat(minHeight, "px")
|
|
20
|
+
},
|
|
21
|
+
ref: containerRef,
|
|
22
|
+
"data-testid": "chromeless-editor",
|
|
23
|
+
id: "chromeless-editor"
|
|
24
|
+
}, children);
|
|
25
|
+
};
|
|
@@ -1,7 +1,260 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
1
|
+
/* Comment.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import "./Comment.compiled.css";
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
|
+
import classnames from 'classnames';
|
|
10
|
+
import { useIntl } from 'react-intl';
|
|
11
|
+
import ButtonGroup from '@atlaskit/button/button-group';
|
|
12
|
+
import Button from '@atlaskit/button/default/button';
|
|
13
|
+
import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
14
|
+
import messages from '@atlaskit/editor-common/messages';
|
|
15
|
+
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
16
|
+
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
17
|
+
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line import/no-named-as-default
|
|
21
|
+
import ClickAreaBlock from '../../Addon/ClickAreaBlock';
|
|
22
|
+
import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
|
|
23
|
+
import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
|
|
24
|
+
import PluginSlot from '../../PluginSlot';
|
|
25
|
+
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
26
|
+
import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
|
|
27
|
+
import WithFlash from '../../WithFlash';
|
|
28
|
+
import { CommentToolbar } from './CommentToolbar';
|
|
29
|
+
import { MainToolbar } from './Toolbar';
|
|
30
|
+
var commentEditorCompiledStyles = {
|
|
31
|
+
commentEditor: "_19itno8c _2rko1qi0 _1e0c1txw _2lx21bp4 _1ul9clpc _4t3i1wug _bfhk1j9a _vchhusvi _p12f1kw7 _slp31hna _13dfutpp _gzr8u2gc _ghozu2gc _oafwu2gc",
|
|
32
|
+
modernisedEditor: "_2rkopb1k",
|
|
33
|
+
secondaryToolbar: "_vchhusvi _1bahesu3 _4cvr1h6o _1e0c1txw _ca0qutpp _u5f3v77o _n3tdutpp _19bvv77o",
|
|
34
|
+
mainToolbarCustomComponentsSlotNew: "_1e0c1txw _1bahesu3 _4cvr1h6o _16jlkb7n _u5f3v47k _p7r11txw _t1edidpf",
|
|
35
|
+
mainToolbarCustomComponentsSlotPaddingOverride: "_u5f3idpf",
|
|
36
|
+
mainToolbarCustomComponentsSlotTwoLineToolbar: "_xugcidpf",
|
|
37
|
+
contentAreaMaxHeight: "_c71lmz22 _18m91wug"
|
|
38
|
+
};
|
|
39
|
+
var appearance = 'comment';
|
|
40
|
+
export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
|
|
41
|
+
var _editorAPI$blockMenu$, _editorAPI$blockMenu;
|
|
42
|
+
var editorAPI = props.editorAPI;
|
|
43
|
+
|
|
44
|
+
// Get useStandardNodeWidth from block menu plugin shared state
|
|
45
|
+
// Only access editorAPI when the experiment is enabled to avoid performance impact
|
|
46
|
+
var useStandardNodeWidth = editorExperiment('platform_editor_controls', 'variant1') && ((_editorAPI$blockMenu$ = editorAPI === null || editorAPI === void 0 || (_editorAPI$blockMenu = editorAPI.blockMenu) === null || _editorAPI$blockMenu === void 0 || (_editorAPI$blockMenu = _editorAPI$blockMenu.sharedState) === null || _editorAPI$blockMenu === void 0 || (_editorAPI$blockMenu = _editorAPI$blockMenu.currentState()) === null || _editorAPI$blockMenu === void 0 ? void 0 : _editorAPI$blockMenu.useStandardNodeWidth) !== null && _editorAPI$blockMenu$ !== void 0 ? _editorAPI$blockMenu$ : false);
|
|
47
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(editorAPI, ['maxContentSize', 'primaryToolbar', 'editorViewMode'], function (states) {
|
|
48
|
+
var _states$maxContentSiz, _states$primaryToolba, _states$editorViewMod;
|
|
49
|
+
return {
|
|
50
|
+
maxContentSizeReached: !!((_states$maxContentSiz = states.maxContentSizeState) !== null && _states$maxContentSiz !== void 0 && _states$maxContentSiz.maxContentSizeReached),
|
|
51
|
+
primaryToolbarComponentsState: (_states$primaryToolba = states.primaryToolbarState) === null || _states$primaryToolba === void 0 ? void 0 : _states$primaryToolba.components,
|
|
52
|
+
editorViewMode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode
|
|
53
|
+
};
|
|
54
|
+
}),
|
|
55
|
+
editorViewMode = _useSharedPluginState.editorViewMode,
|
|
56
|
+
primaryToolbarComponentsState = _useSharedPluginState.primaryToolbarComponentsState,
|
|
57
|
+
maxContentSizeReached = _useSharedPluginState.maxContentSizeReached;
|
|
58
|
+
var primaryToolbarState = getPrimaryToolbarComponents(editorAPI, primaryToolbarComponentsState);
|
|
59
|
+
var _useSharedPluginState2 = useSharedPluginState(editorAPI, ['media']),
|
|
60
|
+
mediaState = _useSharedPluginState2.mediaState;
|
|
61
|
+
var intl = useIntl();
|
|
62
|
+
var editorDOMElement = props.editorDOMElement,
|
|
63
|
+
editorView = props.editorView,
|
|
64
|
+
editorActions = props.editorActions,
|
|
65
|
+
eventDispatcher = props.eventDispatcher,
|
|
66
|
+
providerFactory = props.providerFactory,
|
|
67
|
+
contentComponents = props.contentComponents,
|
|
68
|
+
customContentComponents = props.customContentComponents,
|
|
69
|
+
customPrimaryToolbarComponents = props.customPrimaryToolbarComponents,
|
|
70
|
+
primaryToolbarComponentsProp = props.primaryToolbarComponents,
|
|
71
|
+
customSecondaryToolbarComponents = props.customSecondaryToolbarComponents,
|
|
72
|
+
popupsMountPoint = props.popupsMountPoint,
|
|
73
|
+
popupsBoundariesElement = props.popupsBoundariesElement,
|
|
74
|
+
popupsScrollableElement = props.popupsScrollableElement,
|
|
75
|
+
maxHeight = props.maxHeight,
|
|
76
|
+
_props$minHeight = props.minHeight,
|
|
77
|
+
minHeight = _props$minHeight === void 0 ? 150 : _props$minHeight,
|
|
78
|
+
onSave = props.onSave,
|
|
79
|
+
onCancel = props.onCancel,
|
|
80
|
+
disabled = props.disabled,
|
|
81
|
+
dispatchAnalyticsEvent = props.dispatchAnalyticsEvent,
|
|
82
|
+
useStickyToolbar = props.useStickyToolbar,
|
|
83
|
+
pluginHooks = props.pluginHooks,
|
|
84
|
+
featureFlags = props.featureFlags,
|
|
85
|
+
innerRef = props.innerRef,
|
|
86
|
+
isEditorModernisationEnabled = props.isEditorModernisationEnabled;
|
|
87
|
+
var showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
88
|
+
var containerElement = React.useRef(null);
|
|
89
|
+
|
|
90
|
+
// Wrapper container for toolbar and content area
|
|
91
|
+
var wrapperElementRef = useMemo(function () {
|
|
92
|
+
return innerRef || /*#__PURE__*/React.createRef();
|
|
93
|
+
}, [innerRef]);
|
|
94
|
+
var _useState = useState(false),
|
|
95
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
96
|
+
saveButtonDisabled = _useState2[0],
|
|
97
|
+
setSaveButtonDisabled = _useState2[1];
|
|
98
|
+
useEffect(function () {
|
|
99
|
+
if (mediaState) {
|
|
100
|
+
mediaState.subscribeToUploadInProgressState(setSaveButtonDisabled);
|
|
101
|
+
}
|
|
102
|
+
return function () {
|
|
103
|
+
return mediaState === null || mediaState === void 0 ? void 0 : mediaState.unsubscribeFromUploadInProgressState(setSaveButtonDisabled);
|
|
104
|
+
};
|
|
105
|
+
}, [mediaState]);
|
|
106
|
+
var handleSave = useCallback(function () {
|
|
107
|
+
if (editorView && onSave) {
|
|
108
|
+
onSave(editorView);
|
|
109
|
+
}
|
|
110
|
+
}, [editorView, onSave]);
|
|
111
|
+
var handleCancel = useCallback(function () {
|
|
112
|
+
if (editorView && onCancel) {
|
|
113
|
+
onCancel(editorView);
|
|
114
|
+
}
|
|
115
|
+
}, [editorView, onCancel]);
|
|
116
|
+
var isShortcutToFocusToolbar = useCallback(function (event) {
|
|
117
|
+
//Alt + F9 to reach first element in this main toolbar
|
|
118
|
+
return event.altKey && (event.key === 'F9' || event.keyCode === 120);
|
|
119
|
+
}, []);
|
|
120
|
+
|
|
121
|
+
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
122
|
+
var isTwoLineToolbarEnabled = !!customPrimaryToolbarComponents;
|
|
123
|
+
var handleEscape = useCallback(function (event) {
|
|
124
|
+
if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
|
|
125
|
+
editorView === null || editorView === void 0 || editorView.focus();
|
|
126
|
+
}
|
|
127
|
+
event.preventDefault();
|
|
128
|
+
event.stopPropagation();
|
|
129
|
+
}, [editorView]);
|
|
130
|
+
var primaryToolbarComponents = primaryToolbarComponentsProp;
|
|
131
|
+
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
132
|
+
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
133
|
+
}
|
|
134
|
+
var isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar);
|
|
135
|
+
var wrapperStyle = useMemo(function () {
|
|
136
|
+
return _objectSpread({
|
|
137
|
+
minHeight: "".concat(minHeight, "px")
|
|
138
|
+
}, maxHeight ? {
|
|
139
|
+
'--comment-editor-max-height': "".concat(maxHeight, "px")
|
|
140
|
+
} : {});
|
|
141
|
+
}, [minHeight, maxHeight]);
|
|
142
|
+
var customToolbarSlot = /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: ax([commentEditorCompiledStyles.mainToolbarCustomComponentsSlotNew, isTwoLineToolbarEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotTwoLineToolbar, isToolbarAIFCEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotPaddingOverride])
|
|
144
|
+
}, customPrimaryToolbarComponents);
|
|
145
|
+
return /*#__PURE__*/React.createElement(WithFlash, {
|
|
146
|
+
animate: maxContentSizeReached
|
|
147
|
+
}, /*#__PURE__*/React.createElement(WidthProvider, null, /*#__PURE__*/React.createElement("div", {
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- dynamic minHeight/maxHeight from props
|
|
149
|
+
style: wrapperStyle
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
151
|
+
,
|
|
152
|
+
className: ax([commentEditorCompiledStyles.commentEditor, isEditorModernisationEnabled && commentEditorCompiledStyles.modernisedEditor, "akEditor"]),
|
|
153
|
+
ref: wrapperElementRef
|
|
154
|
+
}, /*#__PURE__*/React.createElement(MainToolbar, {
|
|
155
|
+
isEditorModernisationEnabled: isEditorModernisationEnabled,
|
|
156
|
+
useStickyToolbar: useStickyToolbar,
|
|
157
|
+
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
158
|
+
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
159
|
+
}, isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
|
|
160
|
+
editorView: editorView,
|
|
161
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
162
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
163
|
+
handleEscape: handleEscape,
|
|
164
|
+
editorAppearance: appearance,
|
|
165
|
+
useStickyToolbar: useStickyToolbar,
|
|
166
|
+
intl: intl
|
|
167
|
+
}, /*#__PURE__*/React.createElement(CommentToolbar, {
|
|
168
|
+
editorAPI: editorAPI,
|
|
169
|
+
editorView: editorView,
|
|
170
|
+
editorAppearance: appearance,
|
|
171
|
+
disabled: !!disabled,
|
|
172
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
173
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
174
|
+
popupsMountPoint: popupsMountPoint
|
|
175
|
+
}), customPrimaryToolbarComponents ? customToolbarSlot : null) : /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
|
|
176
|
+
editorView: editorView,
|
|
177
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
178
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
179
|
+
handleEscape: handleEscape,
|
|
180
|
+
editorAppearance: appearance,
|
|
181
|
+
useStickyToolbar: useStickyToolbar,
|
|
182
|
+
intl: intl
|
|
183
|
+
}, /*#__PURE__*/React.createElement(Toolbar
|
|
184
|
+
// Ignored via go/ees005
|
|
185
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
186
|
+
, {
|
|
187
|
+
editorView: editorView,
|
|
188
|
+
editorActions: editorActions
|
|
189
|
+
// Ignored via go/ees005
|
|
190
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
191
|
+
,
|
|
192
|
+
eventDispatcher: eventDispatcher
|
|
193
|
+
// Ignored via go/ees005
|
|
194
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
195
|
+
,
|
|
196
|
+
providerFactory: providerFactory,
|
|
197
|
+
appearance: appearance,
|
|
198
|
+
items: primaryToolbarComponents,
|
|
199
|
+
popupsMountPoint: popupsMountPoint,
|
|
200
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
201
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
202
|
+
disabled: !!disabled,
|
|
203
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
204
|
+
containerElement: containerElement.current,
|
|
205
|
+
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
206
|
+
}), customToolbarSlot)), /*#__PURE__*/React.createElement(ClickAreaBlock, {
|
|
207
|
+
editorView: editorView,
|
|
208
|
+
editorDisabled: disabled
|
|
209
|
+
}, /*#__PURE__*/React.createElement(WidthConsumer, null, function (_ref) {
|
|
210
|
+
var width = _ref.width;
|
|
211
|
+
return /*#__PURE__*/React.createElement(EditorContentContainer, {
|
|
212
|
+
ref: containerElement,
|
|
213
|
+
isScrollable: maxHeight ? true : undefined
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
215
|
+
,
|
|
216
|
+
className: ax([maxHeight && commentEditorCompiledStyles.contentAreaMaxHeight, classnames('ak-editor-content-area', {
|
|
217
|
+
'less-margin': width < akEditorMobileBreakoutPoint
|
|
218
|
+
})]),
|
|
219
|
+
featureFlags: featureFlags,
|
|
220
|
+
viewMode: editorViewMode,
|
|
221
|
+
appearance: appearance,
|
|
222
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
223
|
+
}, customContentComponents && 'before' in customContentComponents ? contentComponentClickWrapper(customContentComponents.before) : contentComponentClickWrapper(customContentComponents), /*#__PURE__*/React.createElement(PluginSlot, {
|
|
224
|
+
editorView: editorView,
|
|
225
|
+
editorActions: editorActions,
|
|
226
|
+
eventDispatcher: eventDispatcher,
|
|
227
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
228
|
+
providerFactory: providerFactory,
|
|
229
|
+
appearance: appearance,
|
|
230
|
+
items: contentComponents,
|
|
231
|
+
popupsMountPoint: popupsMountPoint,
|
|
232
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
233
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
234
|
+
containerElement: containerElement.current,
|
|
235
|
+
disabled: !!disabled,
|
|
236
|
+
wrapperElement: wrapperElementRef.current,
|
|
237
|
+
pluginHooks: pluginHooks
|
|
238
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? contentComponentClickWrapper(customContentComponents.after) : null);
|
|
239
|
+
}))), showSecondaryToolbar && /*#__PURE__*/React.createElement("div", {
|
|
240
|
+
"data-testid": "ak-editor-secondary-toolbar",
|
|
241
|
+
className: ax([commentEditorCompiledStyles.secondaryToolbar])
|
|
242
|
+
}, /*#__PURE__*/React.createElement(ButtonGroup, null, !!onSave && /*#__PURE__*/React.createElement(Button, {
|
|
243
|
+
appearance: "primary",
|
|
244
|
+
onClick: handleSave,
|
|
245
|
+
testId: "comment-save-button",
|
|
246
|
+
isDisabled: disabled || saveButtonDisabled,
|
|
247
|
+
interactionName: "editor-comment-save-button"
|
|
248
|
+
}, intl.formatMessage(messages.saveButton)), !!onCancel && /*#__PURE__*/React.createElement(Button, {
|
|
249
|
+
appearance: "subtle",
|
|
250
|
+
onClick: handleCancel,
|
|
251
|
+
testId: "comment-cancel-button",
|
|
252
|
+
isDisabled: disabled,
|
|
253
|
+
interactionName: "editor-comment-cancel-button"
|
|
254
|
+
}, intl.formatMessage(messages.cancelButton))), /*#__PURE__*/React.createElement("span", {
|
|
255
|
+
style: {
|
|
256
|
+
flexGrow: 1
|
|
257
|
+
}
|
|
258
|
+
}), customSecondaryToolbarComponents)));
|
|
259
|
+
};
|
|
260
|
+
CommentEditorWithIntl.displayName = 'CommentEditorAppearance';
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* FixedToolbar-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 `Toolbar.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./FixedToolbar-compiled.compiled.css";
|
|
9
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
4
|
import React from 'react';
|
|
@@ -2,13 +2,6 @@
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./StickyToolbar-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 `Toolbar.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
5
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
13
6
|
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
14
7
|
var akEditorMenuZIndex = 500;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
3
3
|
import React from 'react';
|
|
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 { FixedToolbarCompiled } from './FixedToolbar-compiled';
|
|
7
|
-
import { FixedToolbarEmotion } from './FixedToolbar-emotion';
|
|
8
5
|
import { StickyToolbarCompiled } from './StickyToolbar-compiled';
|
|
9
|
-
import { StickyToolbarEmotion } from './StickyToolbar-emotion';
|
|
10
|
-
var StickyToolbarMigration = componentWithCondition(function () {
|
|
11
|
-
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
12
|
-
}, StickyToolbarCompiled, StickyToolbarEmotion);
|
|
13
|
-
var FixedToolbarMigration = componentWithCondition(function () {
|
|
14
|
-
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
15
|
-
}, FixedToolbarCompiled, FixedToolbarEmotion);
|
|
16
6
|
|
|
17
7
|
/**
|
|
18
8
|
* ED-15802: Scenarios when a sticky bar is used:
|
|
@@ -48,7 +38,7 @@ export var MainToolbar = function MainToolbar(_ref) {
|
|
|
48
38
|
isEditorModernisationEnabled = _ref.isEditorModernisationEnabled,
|
|
49
39
|
isNewToolbarEnabled = _ref.isNewToolbarEnabled;
|
|
50
40
|
if (useStickyToolbar) {
|
|
51
|
-
return /*#__PURE__*/React.createElement(
|
|
41
|
+
return /*#__PURE__*/React.createElement(StickyToolbarCompiled
|
|
52
42
|
// Ignored via go/ees005
|
|
53
43
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
54
44
|
, _extends({}, getStickyParameters(useStickyToolbar), {
|
|
@@ -57,7 +47,7 @@ export var MainToolbar = function MainToolbar(_ref) {
|
|
|
57
47
|
isNewToolbarEnabled: isNewToolbarEnabled
|
|
58
48
|
}), children);
|
|
59
49
|
}
|
|
60
|
-
return /*#__PURE__*/React.createElement(
|
|
50
|
+
return /*#__PURE__*/React.createElement(FixedToolbarCompiled, {
|
|
61
51
|
isEditorModernisationEnabled: isEditorModernisationEnabled,
|
|
62
52
|
twoLineEditorToolbar: twoLineEditorToolbar,
|
|
63
53
|
isNewToolbarEnabled: isNewToolbarEnabled
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
/* BeforeWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./BeforeWrapper.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
var styles = {
|
|
6
|
+
beforePrimaryToolbarPluginWrapper: "_1e0c1txw _16jlkb7n _1bahesu3 _4cvr1h6o"
|
|
7
|
+
};
|
|
5
8
|
// Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
|
|
6
9
|
// only in `FullPageToolbar` to decouple the plugin from the main toolbar
|
|
7
|
-
export var BeforePrimaryToolbarWrapper =
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
+
export var BeforePrimaryToolbarWrapper = function BeforePrimaryToolbarWrapper(props) {
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
"data-testid": 'before-primary-toolbar-components-plugin',
|
|
13
|
+
className: ax([styles.beforePrimaryToolbarPluginWrapper])
|
|
14
|
+
}, props.beforePrimaryToolbarComponents);
|
|
15
|
+
};
|
|
@@ -1,14 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
/* CustomToolbarWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./CustomToolbarWrapper.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
var firstChildStyles = {
|
|
6
|
+
base: "_1e0c1txw _16jlkb7n",
|
|
7
|
+
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _8o3817qo _lhl4esu3 _1s2p1ns9"
|
|
8
|
+
};
|
|
9
|
+
var secondChildStyles = {
|
|
10
|
+
base: "_1ul91ns9",
|
|
11
|
+
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _1tjb1wug _1rg31wug _1jzq1wug _cn5x1wug _87t41txw _8o3817qo _1s2pidpf"
|
|
12
|
+
};
|
|
13
|
+
|
|
5
14
|
// ---------------- First child wrapper ----------------
|
|
6
|
-
export var MainToolbarForFirstChildWrapper =
|
|
7
|
-
|
|
8
|
-
|
|
15
|
+
export var MainToolbarForFirstChildWrapper = function MainToolbarForFirstChildWrapper(_ref) {
|
|
16
|
+
var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
17
|
+
children = _ref.children,
|
|
18
|
+
role = _ref.role,
|
|
19
|
+
ariaLabel = _ref['aria-label'],
|
|
20
|
+
testId = _ref['data-testid'];
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
role: role,
|
|
23
|
+
"aria-label": ariaLabel,
|
|
24
|
+
"data-testid": testId,
|
|
25
|
+
className: ax([firstChildStyles.base, twoLineEditorToolbar && firstChildStyles.twoLine])
|
|
26
|
+
}, children);
|
|
27
|
+
};
|
|
9
28
|
|
|
10
29
|
// ---------------- Second child wrapper ----------------
|
|
11
30
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
12
|
-
export var MainToolbarForSecondChildWrapper =
|
|
13
|
-
|
|
14
|
-
|
|
31
|
+
export var MainToolbarForSecondChildWrapper = function MainToolbarForSecondChildWrapper(_ref2) {
|
|
32
|
+
var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
|
|
33
|
+
children = _ref2.children,
|
|
34
|
+
role = _ref2.role,
|
|
35
|
+
ariaLabel = _ref2['aria-label'],
|
|
36
|
+
testId = _ref2['data-testid'];
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
role: role,
|
|
39
|
+
"aria-label": ariaLabel,
|
|
40
|
+
"data-testid": testId,
|
|
41
|
+
className: ax([secondChildStyles.base, twoLineEditorToolbar && secondChildStyles.twoLine])
|
|
42
|
+
}, children);
|
|
43
|
+
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* FullPage-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 `FullPage.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./FullPage-compiled.compiled.css";
|
|
9
3
|
import * as React from 'react';
|
|
10
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -6,19 +6,14 @@ import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measur
|
|
|
6
6
|
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
8
8
|
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
10
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
13
12
|
import { FullPageEditorWrapperCompiled } from './FullPage-compiled';
|
|
14
|
-
import { FullPageEditorWrapperEmotion } from './FullPage-emotion';
|
|
15
13
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
16
14
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
17
15
|
import { FullPageToolbarNext } from './FullPageToolbarNext';
|
|
18
16
|
var SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
|
|
19
|
-
var FullPageEditorWrapperMigration = componentWithCondition(function () {
|
|
20
|
-
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
21
|
-
}, FullPageEditorWrapperCompiled, FullPageEditorWrapperEmotion);
|
|
22
17
|
var useShowKeyline = function useShowKeyline(contentAreaRef) {
|
|
23
18
|
var _useState = useState(false),
|
|
24
19
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -119,7 +114,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
119
114
|
segmentName: SSR_TRACE_SEGMENT_NAME,
|
|
120
115
|
startTimestampRef: firstRenderStartTimestampRef,
|
|
121
116
|
onSSRMeasure: props.onSSRMeasure
|
|
122
|
-
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(
|
|
117
|
+
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapperCompiled
|
|
123
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
124
119
|
, {
|
|
125
120
|
className: "akEditor",
|