@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,81 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
8
|
-
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
9
|
-
*
|
|
10
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
|
|
14
|
-
import { css, jsx } from '@emotion/react';
|
|
15
|
-
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
16
|
-
var mainToolbarWrapperStyleNew = css({
|
|
17
|
-
position: 'relative',
|
|
18
|
-
alignItems: 'center',
|
|
19
|
-
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
|
|
20
|
-
display: 'flex',
|
|
21
|
-
height: 'auto',
|
|
22
|
-
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
23
|
-
boxShadow: 'none',
|
|
24
|
-
paddingLeft: "var(--ds-space-250, 20px)",
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
26
|
-
'> div': {
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
28
|
-
'> div:first-of-type:not(style), > style:first-of-type + *': {
|
|
29
|
-
marginLeft: 0
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
33
|
-
'.block-type-btn': {
|
|
34
|
-
paddingLeft: 0
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
/** keep default padding for entire toolbar */
|
|
39
|
-
var mainToolbarWithoutLeftPadding = css({
|
|
40
|
-
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0")
|
|
41
|
-
});
|
|
42
|
-
var mainToolbarTwoLineStylesNew = css({
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
44
|
-
'& > div': _defineProperty(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
45
|
-
flexDirection: 'column-reverse',
|
|
46
|
-
alignItems: 'end',
|
|
47
|
-
display: 'flex',
|
|
48
|
-
justifyContent: 'flex-end'
|
|
49
|
-
}), '> div:first-of-type', _defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
51
|
-
'> div:nth-of-type(2)': {
|
|
52
|
-
justifyContent: 'flex-end',
|
|
53
|
-
display: 'flex'
|
|
54
|
-
}
|
|
55
|
-
}))
|
|
56
|
-
});
|
|
57
|
-
var mainToolbarWrapperStylesVisualRefresh = css({
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
59
|
-
'span svg': {
|
|
60
|
-
maxWidth: '100%'
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
var mainToolbarRadius = css({
|
|
64
|
-
borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
|
|
65
|
-
});
|
|
66
|
-
var editorModernisationToolbarStyle = css({
|
|
67
|
-
borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
|
|
68
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
69
|
-
'&.show-keyline': {
|
|
70
|
-
boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #1E1F2128, 0px 0px 1px #1E1F211e)"
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
export var FixedToolbarEmotion = function FixedToolbarEmotion(props) {
|
|
74
|
-
return (
|
|
75
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
76
|
-
jsx("div", {
|
|
77
|
-
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding, mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle],
|
|
78
|
-
"data-testid": "ak-editor-main-toolbar"
|
|
79
|
-
}, props.children)
|
|
80
|
-
);
|
|
81
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
/**
|
|
4
|
-
* @jsxRuntime classic
|
|
5
|
-
* @jsx jsx
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
9
|
-
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
10
|
-
*
|
|
11
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { useEffect, useState } from 'react';
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
|
|
17
|
-
import { css, jsx } from '@emotion/react';
|
|
18
|
-
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
19
|
-
var akEditorMenuZIndex = 500;
|
|
20
|
-
var akEditorToolbarKeylineHeight = 2;
|
|
21
|
-
var mainToolbarWrapperStyleNew = css({
|
|
22
|
-
position: 'relative',
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
|
|
25
|
-
display: 'flex',
|
|
26
|
-
height: 'auto',
|
|
27
|
-
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
28
|
-
boxShadow: 'none',
|
|
29
|
-
paddingLeft: "var(--ds-space-250, 20px)",
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
31
|
-
'> div': {
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
33
|
-
'> div:first-of-type:not(style), > style:first-of-type + *': {
|
|
34
|
-
marginLeft: 0
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
38
|
-
'.block-type-btn': {
|
|
39
|
-
paddingLeft: 0
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
var mainToolbarWithPadding = css({
|
|
43
|
-
padding: "var(--ds-space-100, 8px)"
|
|
44
|
-
});
|
|
45
|
-
var mainToolbarTwoLineStylesNew = css({
|
|
46
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
47
|
-
'& > div': _defineProperty(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
48
|
-
flexDirection: 'column-reverse',
|
|
49
|
-
alignItems: 'end',
|
|
50
|
-
display: 'flex',
|
|
51
|
-
justifyContent: 'flex-end'
|
|
52
|
-
}), '> div:first-of-type', _defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
54
|
-
'> div:nth-of-type(2)': {
|
|
55
|
-
justifyContent: 'flex-end',
|
|
56
|
-
display: 'flex'
|
|
57
|
-
}
|
|
58
|
-
}))
|
|
59
|
-
});
|
|
60
|
-
var mainToolbarWrapperStylesVisualRefresh = css({
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
62
|
-
'span svg': {
|
|
63
|
-
maxWidth: '100%'
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
var mainToolbarRadius = css({
|
|
67
|
-
borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
|
|
68
|
-
});
|
|
69
|
-
var editorModernisationToolbarStyle = css({
|
|
70
|
-
borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
-
'&.show-keyline': {
|
|
73
|
-
boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #1E1F2128, 0px 0px 1px #1E1F211e)"
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
var stickyToolbarWrapperStyleNew = css({
|
|
77
|
-
position: 'sticky',
|
|
78
|
-
paddingBottom: "var(--ds-space-100, 8px)",
|
|
79
|
-
zIndex: akEditorMenuZIndex,
|
|
80
|
-
transition: 'box-shadow ease-in-out 0.2s',
|
|
81
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
82
|
-
'&.show-keyline': {
|
|
83
|
-
boxShadow: "0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F0F1F2)")
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export var StickyToolbarEmotion = function StickyToolbarEmotion(props) {
|
|
87
|
-
var _useState = useState(0),
|
|
88
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
89
|
-
top = _useState2[0],
|
|
90
|
-
setTop = _useState2[1];
|
|
91
|
-
|
|
92
|
-
// ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
|
|
93
|
-
// else if offsetTop is a number set top to offsetTop
|
|
94
|
-
// otherwise top is 0 as initial state
|
|
95
|
-
useEffect(function () {
|
|
96
|
-
var _props$externalToolba;
|
|
97
|
-
if ((_props$externalToolba = props.externalToolbarRef) !== null && _props$externalToolba !== void 0 && (_props$externalToolba = _props$externalToolba.current) !== null && _props$externalToolba !== void 0 && _props$externalToolba.clientHeight) {
|
|
98
|
-
setTop(props.externalToolbarRef.current.clientHeight);
|
|
99
|
-
} else {
|
|
100
|
-
setTop(props.offsetTop || 0);
|
|
101
|
-
}
|
|
102
|
-
}, [props.externalToolbarRef, props.offsetTop]);
|
|
103
|
-
var wrapperStyle = {
|
|
104
|
-
top: "".concat(top, "px")
|
|
105
|
-
};
|
|
106
|
-
return (
|
|
107
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
108
|
-
jsx("div", {
|
|
109
|
-
css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding, mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle]
|
|
110
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/enforce-style-prop -- top is computed dynamically from externalToolbarRef height / offsetTop and cannot be a static css value
|
|
111
|
-
,
|
|
112
|
-
style: wrapperStyle,
|
|
113
|
-
"data-testid": "ak-editor-main-toolbar"
|
|
114
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
115
|
-
,
|
|
116
|
-
className: 'show-keyline'
|
|
117
|
-
}, props.children)
|
|
118
|
-
);
|
|
119
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* BeforeWrapper-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 `BeforeWrapper.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
|
-
import "./BeforeWrapper-compiled.compiled.css";
|
|
9
|
-
import * as React from 'react';
|
|
10
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
11
|
-
var styles = {
|
|
12
|
-
beforePrimaryToolbarPluginWrapper: "_1e0c1txw _16jlkb7n _1bahesu3 _4cvr1h6o"
|
|
13
|
-
};
|
|
14
|
-
// Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
|
|
15
|
-
// only in `FullPageToolbar` to decouple the plugin from the main toolbar
|
|
16
|
-
export var BeforePrimaryToolbarWrapperCompiled = function BeforePrimaryToolbarWrapperCompiled(props) {
|
|
17
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
"data-testid": 'before-primary-toolbar-components-plugin',
|
|
19
|
-
className: ax([styles.beforePrimaryToolbarPluginWrapper])
|
|
20
|
-
}, props.beforePrimaryToolbarComponents);
|
|
21
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `BeforeWrapper.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
|
|
13
|
-
import { css, jsx } from '@emotion/react';
|
|
14
|
-
var beforePrimaryToolbarPluginWrapperStyles = css({
|
|
15
|
-
display: 'flex',
|
|
16
|
-
flexGrow: 1,
|
|
17
|
-
justifyContent: 'flex-end',
|
|
18
|
-
alignItems: 'center'
|
|
19
|
-
});
|
|
20
|
-
// Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
|
|
21
|
-
// only in `FullPageToolbar` to decouple the plugin from the main toolbar
|
|
22
|
-
export var BeforePrimaryToolbarWrapperEmotion = function BeforePrimaryToolbarWrapperEmotion(props) {
|
|
23
|
-
return jsx("div", {
|
|
24
|
-
css: beforePrimaryToolbarPluginWrapperStyles,
|
|
25
|
-
"data-testid": 'before-primary-toolbar-components-plugin'
|
|
26
|
-
}, props.beforePrimaryToolbarComponents);
|
|
27
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/* CustomToolbarWrapper-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 `CustomToolbarWrapper.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
|
-
import "./CustomToolbarWrapper-compiled.compiled.css";
|
|
9
|
-
import * as React from 'react';
|
|
10
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
11
|
-
var firstChildStyles = {
|
|
12
|
-
base: "_1e0c1txw _16jlkb7n",
|
|
13
|
-
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _8o3817qo _lhl4esu3 _1s2p1ns9"
|
|
14
|
-
};
|
|
15
|
-
var secondChildStyles = {
|
|
16
|
-
base: "_1ul91ns9",
|
|
17
|
-
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _1tjb1wug _1rg31wug _1jzq1wug _cn5x1wug _87t41txw _8o3817qo _1s2pidpf"
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// ---------------- First child wrapper ----------------
|
|
21
|
-
export var MainToolbarForFirstChildWrapperCompiled = function MainToolbarForFirstChildWrapperCompiled(_ref) {
|
|
22
|
-
var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
23
|
-
children = _ref.children,
|
|
24
|
-
role = _ref.role,
|
|
25
|
-
ariaLabel = _ref['aria-label'],
|
|
26
|
-
testId = _ref['data-testid'];
|
|
27
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
role: role,
|
|
29
|
-
"aria-label": ariaLabel,
|
|
30
|
-
"data-testid": testId,
|
|
31
|
-
className: ax([firstChildStyles.base, twoLineEditorToolbar && firstChildStyles.twoLine])
|
|
32
|
-
}, children);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// ---------------- Second child wrapper ----------------
|
|
36
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
37
|
-
export var MainToolbarForSecondChildWrapperCompiled = function MainToolbarForSecondChildWrapperCompiled(_ref2) {
|
|
38
|
-
var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
|
|
39
|
-
children = _ref2.children,
|
|
40
|
-
role = _ref2.role,
|
|
41
|
-
ariaLabel = _ref2['aria-label'],
|
|
42
|
-
testId = _ref2['data-testid'];
|
|
43
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
role: role,
|
|
45
|
-
"aria-label": ariaLabel,
|
|
46
|
-
"data-testid": testId,
|
|
47
|
-
className: ax([secondChildStyles.base, twoLineEditorToolbar && secondChildStyles.twoLine])
|
|
48
|
-
}, children);
|
|
49
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
|
-
import React from 'react';
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
|
|
14
|
-
import { css, jsx } from '@emotion/react';
|
|
15
|
-
// Pre-computed static styles for first- and second-child wrappers.
|
|
16
|
-
// These contain no runtime logic and are safe for static-emotion mode.
|
|
17
|
-
|
|
18
|
-
var firstChildStaticBase = css({
|
|
19
|
-
display: 'flex',
|
|
20
|
-
flexGrow: 1
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// we can't avoid some kind of function call here, so we need to disable the rule
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
-
var firstChildStaticTwoLine = css({
|
|
26
|
-
'@media (max-width: 868px)': {
|
|
27
|
-
flex: '1 1 100%',
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
-
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
30
|
-
justifyContent: 'flex-end',
|
|
31
|
-
minWidth: 'fit-content'
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
var secondChildStaticBase = css({
|
|
35
|
-
minWidth: 'fit-content'
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
// we can't avoid some kind of function call here, so we need to disable the rule
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
-
var secondChildStaticTwoLine = css({
|
|
41
|
-
'@media (max-width: 868px)': {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
flexGrow: 1,
|
|
44
|
-
flex: '1 1 100%',
|
|
45
|
-
margin: 'auto',
|
|
46
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
-
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
48
|
-
minWidth: 0
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
// ---------------- First child wrapper ----------------
|
|
53
|
-
export var MainToolbarForFirstChildWrapperEmotion = function MainToolbarForFirstChildWrapperEmotion(_ref) {
|
|
54
|
-
var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
55
|
-
children = _ref.children,
|
|
56
|
-
role = _ref.role,
|
|
57
|
-
ariaLabel = _ref['aria-label'],
|
|
58
|
-
testId = _ref['data-testid'];
|
|
59
|
-
return jsx("div", {
|
|
60
|
-
css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
|
|
61
|
-
role: role,
|
|
62
|
-
"aria-label": ariaLabel,
|
|
63
|
-
"data-testid": testId
|
|
64
|
-
}, children);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
// ---------------- Second child wrapper ----------------
|
|
68
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
69
|
-
export var MainToolbarForSecondChildWrapperEmotion = function MainToolbarForSecondChildWrapperEmotion(_ref2) {
|
|
70
|
-
var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
|
|
71
|
-
children = _ref2.children,
|
|
72
|
-
role = _ref2.role,
|
|
73
|
-
ariaLabel = _ref2['aria-label'],
|
|
74
|
-
testId = _ref2['data-testid'];
|
|
75
|
-
return jsx("div", {
|
|
76
|
-
css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
|
|
77
|
-
role: role,
|
|
78
|
-
"aria-label": ariaLabel,
|
|
79
|
-
"data-testid": testId
|
|
80
|
-
}, children);
|
|
81
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
-
import { CustomToolbarWrapperCompiled } from './MainToolbar-compiled';
|
|
4
|
-
import { CustomToolbarWrapperEmotion } from './MainToolbar-emotion';
|
|
5
|
-
export var CustomToolbarWrapperMigration = componentWithCondition(function () {
|
|
6
|
-
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
7
|
-
}, CustomToolbarWrapperCompiled, CustomToolbarWrapperEmotion);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `FullPage.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
|
-
import { forwardRef } from 'react';
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
|
|
14
|
-
import { jsx } from '@emotion/react';
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- intentional: emotion fallback branch imports from StyledComponents
|
|
17
|
-
import { fullPageEditorWrapper as fullPageEditorWrapperStyles } from './StyledComponents';
|
|
18
|
-
export var FullPageEditorWrapperEmotion = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
19
|
-
var children = _ref.children,
|
|
20
|
-
className = _ref.className,
|
|
21
|
-
style = _ref.style;
|
|
22
|
-
return (
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-classname-prop -- intentional: emotion fallback branch reuses StyledComponents style
|
|
24
|
-
jsx("div", {
|
|
25
|
-
css: fullPageEditorWrapperStyles,
|
|
26
|
-
ref: ref,
|
|
27
|
-
className: className,
|
|
28
|
-
style: style
|
|
29
|
-
}, children)
|
|
30
|
-
);
|
|
31
|
-
});
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/* FullPageContentArea-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
import "./FullPageContentArea-compiled.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
|
-
};
|
|
60
|
-
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
61
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
62
|
-
export var EDITOR_CONTAINER = 'ak-editor-container';
|
|
63
|
-
var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
64
|
-
var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
|
|
65
|
-
var fullWidthMode = props.appearance === 'full-width';
|
|
66
|
-
var maxWidthMode = props.appearance === 'max';
|
|
67
|
-
var scrollContainerRef = useRef(null);
|
|
68
|
-
var contentAreaRef = useRef(null);
|
|
69
|
-
var containerRef = useRef(null);
|
|
70
|
-
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;
|
|
71
|
-
var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : akEditorDefaultLayoutWidth : akEditorFullWidthLayoutWidth);
|
|
72
|
-
|
|
73
|
-
// Get useStandardNodeWidth from block menu plugin shared state
|
|
74
|
-
// Only access editorAPI when the experiment is enabled to avoid performance impact
|
|
75
|
-
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);
|
|
76
|
-
useImperativeHandle(ref, function () {
|
|
77
|
-
return {
|
|
78
|
-
get scrollContainer() {
|
|
79
|
-
return scrollContainerRef.current;
|
|
80
|
-
},
|
|
81
|
-
get contentArea() {
|
|
82
|
-
return contentAreaRef.current;
|
|
83
|
-
},
|
|
84
|
-
get containerArea() {
|
|
85
|
-
return containerRef.current;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
}, []);
|
|
89
|
-
var markdownPluginCurrentView = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], function (states) {
|
|
90
|
-
var _states$markdownModeS;
|
|
91
|
-
return (_states$markdownModeS = states.markdownModeState) === null || _states$markdownModeS === void 0 ? void 0 : _states$markdownModeS.view;
|
|
92
|
-
});
|
|
93
|
-
var markdownPluginCurrentIsMarkdownMode = useSharedPluginStateWithSelector(props.editorAPI, ['markdownMode'], function (states) {
|
|
94
|
-
var _states$markdownModeS2;
|
|
95
|
-
return (_states$markdownModeS2 = states.markdownModeState) === null || _states$markdownModeS2 === void 0 ? void 0 : _states$markdownModeS2.isMarkdownMode;
|
|
96
|
-
});
|
|
97
|
-
var isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
|
|
98
|
-
var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
99
|
-
var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
100
|
-
var content = /*#__PURE__*/React.createElement(EditorContentContainer
|
|
101
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
102
|
-
, {
|
|
103
|
-
className: "fabric-editor-popup-scroll-parent",
|
|
104
|
-
featureFlags: props.featureFlags,
|
|
105
|
-
ref: scrollContainerRef,
|
|
106
|
-
viewMode: props === null || props === void 0 ? void 0 : props.viewMode,
|
|
107
|
-
isScrollable: true,
|
|
108
|
-
appearance: props.appearance,
|
|
109
|
-
contentMode: props.contentMode,
|
|
110
|
-
useStandardNodeWidth: useStandardNodeWidth
|
|
111
|
-
}, /*#__PURE__*/React.createElement(ClickAreaBlock, {
|
|
112
|
-
editorView: props.editorView,
|
|
113
|
-
editorDisabled: props.disabled
|
|
114
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
115
|
-
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
|
|
116
|
-
"data-markdown-mode-hide-scroll-gutter": shouldHideScrollGutterForMarkdownMode ? 'true' : undefined,
|
|
117
|
-
style: {
|
|
118
|
-
'--ak-editor-content-area-max-width': "".concat(contentAreaMaxWidth, "px")
|
|
119
|
-
}
|
|
120
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
121
|
-
,
|
|
122
|
-
className: ax([compiledStyles.editorContentAreaNew, compiledStyles.editorContentAreaProsemirrorStyle, shouldHideProseMirrorForMarkdownMode && compiledStyles.hideEditorContentAreaProsemirrorWithAttributeStyle, shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorContentAreaScrollGutterWithAttributeStyle, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContentAreaStyle, compiledStyles.tableFullPageEditorStylesNew, compiledStyles.fullWidthNonChromelessBreakoutBlockTableStyle,
|
|
123
|
-
// for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
|
|
124
|
-
compiledStyles.editorContentAreaContainerStyleExcludeCodeBlockNew, compiledStyles.editorContentAreaContainerNestedDndStyle, "ak-editor-content-area-region"]),
|
|
125
|
-
"data-editor-editable-content": true,
|
|
126
|
-
role: "region",
|
|
127
|
-
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
128
|
-
ref: contentAreaRef,
|
|
129
|
-
"data-vc": "editor-content-area-region"
|
|
130
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
132
|
-
className: ax([compiledStyles.editorContentGutterStyles, compiledStyles.editorContentGutterStyleFG, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
133
|
-
exposure: true
|
|
134
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
135
|
-
}) && compiledStyles.editorContentReducedGutterStyles, classnames('ak-editor-content-area', 'appearance-full-page', {
|
|
136
|
-
'fabric-editor--full-width-mode': fullWidthMode,
|
|
137
|
-
'fabric-editor--max-width-mode': Boolean(maxWidthMode)
|
|
138
|
-
})]),
|
|
139
|
-
ref: contentAreaRef
|
|
140
|
-
}, !!props.customContentComponents && 'before' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.before) : contentComponentClickWrapper(props.customContentComponents), /*#__PURE__*/React.createElement(PluginSlot, {
|
|
141
|
-
editorView: props.editorView,
|
|
142
|
-
editorActions: props.editorActions,
|
|
143
|
-
eventDispatcher: props.eventDispatcher,
|
|
144
|
-
providerFactory: props.providerFactory,
|
|
145
|
-
appearance: props.appearance,
|
|
146
|
-
items: props.contentComponents,
|
|
147
|
-
pluginHooks: props.pluginHooks,
|
|
148
|
-
contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
|
|
149
|
-
popupsMountPoint: props.popupsMountPoint,
|
|
150
|
-
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
151
|
-
popupsScrollableElement: props.popupsScrollableElement,
|
|
152
|
-
disabled: !!props.disabled,
|
|
153
|
-
containerElement: scrollContainerRef.current,
|
|
154
|
-
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
155
|
-
wrapperElement: props.wrapperElement
|
|
156
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (editorExperiment('platform_editor_blocks', true) ? /*#__PURE__*/React.createElement("div", {
|
|
157
|
-
id: "editor-scroll-gutter",
|
|
158
|
-
style: {
|
|
159
|
-
paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
|
|
160
|
-
},
|
|
161
|
-
"data-vc": "scroll-gutter",
|
|
162
|
-
"data-editor-scroll-gutter": "true",
|
|
163
|
-
className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
|
|
164
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
165
|
-
id: "editor-scroll-gutter",
|
|
166
|
-
style: {
|
|
167
|
-
paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
|
|
168
|
-
},
|
|
169
|
-
"data-vc": "scroll-gutter",
|
|
170
|
-
className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
|
|
171
|
-
}))))));
|
|
172
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
173
|
-
"data-testid": CONTENT_AREA_TEST_ID,
|
|
174
|
-
ref: containerRef,
|
|
175
|
-
className: ax([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
176
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
177
|
-
"data-testid": EDITOR_CONTAINER,
|
|
178
|
-
"data-editor-container": 'true',
|
|
179
|
-
className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
180
|
-
}, props.UNSAFE_containLayout ? /*#__PURE__*/React.createElement("div", {
|
|
181
|
-
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
182
|
-
className: ax([containLayoutStyles.wrapper])
|
|
183
|
-
}, content) : content), /*#__PURE__*/React.createElement("div", {
|
|
184
|
-
className: ax([compiledStyles.sidebarArea])
|
|
185
|
-
}, props.contextPanel || /*#__PURE__*/React.createElement(ContextPanel, {
|
|
186
|
-
editorAPI: props.editorAPI,
|
|
187
|
-
visible: false
|
|
188
|
-
})));
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
192
|
-
export var FullPageContentAreaCompiled = injectIntl(Content, {
|
|
193
|
-
forwardRef: true
|
|
194
|
-
});
|