@atlaskit/editor-core 234.3.2 → 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 +17 -0
- package/dist/cjs/composable-editor/editor-internal-compiled.js +0 -6
- package/dist/cjs/composable-editor/editor-internal.js +3 -12
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -7
- package/dist/cjs/ui/Appearance/ChromelessEditorContainer.js +26 -13
- package/dist/cjs/ui/Appearance/Comment/Comment.js +262 -7
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -13
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +15 -7
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +41 -10
- package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +192 -14
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
- package/dist/cjs/ui/ChromeCollapsed/index.js +1 -7
- package/dist/cjs/ui/ContextPanel/index-compiled.js +0 -6
- package/dist/cjs/ui/ContextPanel/index.js +2 -11
- package/dist/cjs/ui/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/ui/quick-insert/getExtensionQuickInsertComponents.js +7 -4
- 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/ui/quick-insert/getExtensionQuickInsertComponents.js +6 -2
- 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/ui/quick-insert/getExtensionQuickInsertComponents.js +8 -5
- 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 +44 -44
- 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,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.sidebarArea = exports.fullPageEditorWrapper = exports.contentAreaWrapper = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_non_ecc_static_css
|
|
13
|
-
* If you need to make changes here, also update the corresponding style in
|
|
14
|
-
* packages/editor/editor-core/src/ui/Appearance/FullPage/FullPage-compiled.tsx
|
|
15
|
-
*/
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
|
-
var fullPageEditorWrapper = exports.fullPageEditorWrapper = (0, _react.css)({
|
|
18
|
-
minWidth: '340px',
|
|
19
|
-
height: '100%',
|
|
20
|
-
display: 'flex',
|
|
21
|
-
flexDirection: 'column',
|
|
22
|
-
boxSizing: 'border-box'
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_non_ecc_static_css
|
|
28
|
-
* If you need to make changes here, also update the corresponding style in
|
|
29
|
-
* packages/editor/editor-core/src/ui/Appearance/FullPage/FullPageContentArea-compiled.tsx
|
|
30
|
-
*/
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
32
|
-
var contentAreaWrapper = exports.contentAreaWrapper = (0, _react.css)({
|
|
33
|
-
width: '100%',
|
|
34
|
-
containerType: 'inline-size',
|
|
35
|
-
containerName: 'editor-area',
|
|
36
|
-
// Chrome 129 Regression!
|
|
37
|
-
// By the spec, when the container-type: inline-size is used
|
|
38
|
-
// The browser should apply the bewlo properties to the element.
|
|
39
|
-
// However, for reasons that goes beyond my knowledge.
|
|
40
|
-
// Chrome 129 broke that behavior, and now we need to make it explicity.
|
|
41
|
-
contain: 'layout style inline-size'
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_non_ecc_static_css
|
|
47
|
-
* If you need to make changes here, also update the corresponding style in
|
|
48
|
-
* packages/editor/editor-core/src/ui/Appearance/FullPage/FullPageContentArea-compiled.tsx
|
|
49
|
-
*/
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports -- Ignored via go/DSP-18766
|
|
51
|
-
var sidebarArea = exports.sidebarArea = (0, _react.css)({
|
|
52
|
-
height: '100%',
|
|
53
|
-
boxSizing: 'border-box',
|
|
54
|
-
alignSelf: 'flex-end',
|
|
55
|
-
// Make the sidebar sticky within the legacy content macro
|
|
56
|
-
// to prevent it from aligning to the bottom with large content.
|
|
57
|
-
// This style is only applied when opening inside the legacy content macro.
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
59
|
-
'.extension-editable-area &': {
|
|
60
|
-
height: 'auto',
|
|
61
|
-
position: 'sticky',
|
|
62
|
-
top: 0,
|
|
63
|
-
alignSelf: 'flex-start'
|
|
64
|
-
}
|
|
65
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ChromeCollapsedEmotion = void 0;
|
|
8
|
-
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _react2 = require("@emotion/react");
|
|
12
|
-
var _styles = require("./styles");
|
|
13
|
-
/**
|
|
14
|
-
* @jsxRuntime classic
|
|
15
|
-
* @jsx jsx
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
/**
|
|
19
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
20
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
21
|
-
*
|
|
22
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
23
|
-
**/
|
|
24
|
-
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
26
|
-
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- intentional: emotion fallback for compiled migration
|
|
28
|
-
|
|
29
|
-
var ChromeCollapsedEmotion = exports.ChromeCollapsedEmotion = /*#__PURE__*/(0, _react.forwardRef)(
|
|
30
|
-
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- intentional: emotion fallback for compiled migration
|
|
31
|
-
function (_ref, ref) {
|
|
32
|
-
var rest = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref));
|
|
33
|
-
return (0, _react2.jsx)("input", (0, _extends2.default)({
|
|
34
|
-
ref: ref,
|
|
35
|
-
css: _styles.inputStyle
|
|
36
|
-
}, rest));
|
|
37
|
-
});
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ContextPanelWrapperEmotion = exports.ContextPanelContentEmotion = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _react2 = require("@emotion/react");
|
|
12
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
13
|
-
var _excluded = ["children", "customWidth", "visible"],
|
|
14
|
-
_excluded2 = ["children", "customWidth", "visible", "hasPadding"];
|
|
15
|
-
/**
|
|
16
|
-
* @jsxRuntime classic
|
|
17
|
-
* @jsx jsx
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
21
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
22
|
-
*
|
|
23
|
-
* Cleanup: delete this file once the `platform_editor_core_non_ecc_static_css` experiment has shipped.
|
|
24
|
-
*/
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
|
|
26
|
-
var panelHidden = (0, _react2.css)({
|
|
27
|
-
width: 0
|
|
28
|
-
});
|
|
29
|
-
var panel = (0, _react2.css)({
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
|
-
width: "".concat(_editorSharedStyles.akEditorContextPanelWidth, "px"),
|
|
32
|
-
height: '100%',
|
|
33
|
-
overflow: 'hidden',
|
|
34
|
-
boxShadow: "inset 2px 0 0 0 ".concat("var(--ds-border, #0B120E24)")
|
|
35
|
-
});
|
|
36
|
-
var content = (0, _react2.css)({
|
|
37
|
-
boxSizing: 'border-box',
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
|
-
width: "".concat(_editorSharedStyles.akEditorContextPanelWidth, "px"),
|
|
40
|
-
height: '100%',
|
|
41
|
-
overflowY: 'auto'
|
|
42
|
-
});
|
|
43
|
-
var paddingStyles = (0, _react2.css)({
|
|
44
|
-
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-200, 16px)", " 0px")
|
|
45
|
-
});
|
|
46
|
-
var ContextPanelWrapperEmotion = exports.ContextPanelWrapperEmotion = function ContextPanelWrapperEmotion(_ref) {
|
|
47
|
-
var children = _ref.children,
|
|
48
|
-
customWidth = _ref.customWidth,
|
|
49
|
-
visible = _ref.visible,
|
|
50
|
-
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
51
|
-
var customPanelWidthStyles = (0, _react.useMemo)(function () {
|
|
52
|
-
return customWidth ? (0, _react2.css)({
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @repo/internal/react/no-class-components
|
|
54
|
-
width: "".concat(customWidth, "px"),
|
|
55
|
-
overflowX: 'hidden'
|
|
56
|
-
}) : undefined;
|
|
57
|
-
}, [customWidth]);
|
|
58
|
-
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
59
|
-
css: [panel,
|
|
60
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
61
|
-
customPanelWidthStyles, !visible && panelHidden]
|
|
62
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
63
|
-
}, rest), children);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
67
|
-
var ContextPanelContentEmotion = exports.ContextPanelContentEmotion = function ContextPanelContentEmotion(_ref2) {
|
|
68
|
-
var children = _ref2.children,
|
|
69
|
-
customWidth = _ref2.customWidth,
|
|
70
|
-
visible = _ref2.visible,
|
|
71
|
-
hasPadding = _ref2.hasPadding,
|
|
72
|
-
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
73
|
-
var customPanelWidthStyles = (0, _react.useMemo)(function () {
|
|
74
|
-
return customWidth ? (0, _react2.css)({
|
|
75
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @repo/internal/react/no-class-components
|
|
76
|
-
width: "".concat(customWidth, "px"),
|
|
77
|
-
overflowX: 'hidden'
|
|
78
|
-
}) : undefined;
|
|
79
|
-
}, [customWidth]);
|
|
80
|
-
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
81
|
-
css: [content, hasPadding && paddingStyles,
|
|
82
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
83
|
-
customPanelWidthStyles, !visible && panelHidden]
|
|
84
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
85
|
-
}, rest), children);
|
|
86
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.PluginsComponentsWrapperEmotion = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = require("@emotion/react");
|
|
11
|
-
var _excluded = ["children"];
|
|
12
|
-
/**
|
|
13
|
-
* @jsxRuntime classic
|
|
14
|
-
* @jsx jsx
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
18
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
19
|
-
*
|
|
20
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
21
|
-
*/
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
23
|
-
var pluginsComponentsWrapperEmotionStyles = (0, _react.css)({
|
|
24
|
-
display: 'flex'
|
|
25
|
-
});
|
|
26
|
-
var PluginsComponentsWrapperEmotion = exports.PluginsComponentsWrapperEmotion = function PluginsComponentsWrapperEmotion(_ref) {
|
|
27
|
-
var children = _ref.children,
|
|
28
|
-
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
|
-
return (
|
|
30
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
31
|
-
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
32
|
-
css: pluginsComponentsWrapperEmotionStyles
|
|
33
|
-
}, rest), children)
|
|
34
|
-
);
|
|
35
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ToolbarComponentsWrapperEmotion = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
/**
|
|
12
|
-
* @jsxRuntime classic
|
|
13
|
-
* @jsx jsx
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
17
|
-
* Used via `componentWithCondition` in `ToolbarInner.tsx`.
|
|
18
|
-
*
|
|
19
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
|
|
23
|
-
|
|
24
|
-
var toolbarComponentsWrapperEmotionStyles = (0, _react.css)((0, _defineProperty2.default)({
|
|
25
|
-
display: 'flex'
|
|
26
|
-
}, "@media (max-width: ".concat(_editorSharedStyles.akEditorMobileMaxWidth, "px)"), {
|
|
27
|
-
justifyContent: 'space-between'
|
|
28
|
-
}));
|
|
29
|
-
var ToolbarComponentsWrapperEmotion = exports.ToolbarComponentsWrapperEmotion = function ToolbarComponentsWrapperEmotion(_ref) {
|
|
30
|
-
var children = _ref.children,
|
|
31
|
-
dataVc = _ref['data-vc'];
|
|
32
|
-
return (0, _react.jsx)("div", {
|
|
33
|
-
css: toolbarComponentsWrapperEmotionStyles,
|
|
34
|
-
"data-vc": dataVc
|
|
35
|
-
}, children);
|
|
36
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ToolbarSizeDetectorWrapperEmotion = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
/**
|
|
9
|
-
* @jsxRuntime classic
|
|
10
|
-
* @jsx jsx
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
14
|
-
* Used via `componentWithCondition` in `ToolbarWithSizeDetector.tsx`.
|
|
15
|
-
*
|
|
16
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
|
|
20
|
-
|
|
21
|
-
var toolbarSizeDetectorWrapperEmotionStyles = (0, _react.css)({
|
|
22
|
-
width: '100%',
|
|
23
|
-
position: 'relative'
|
|
24
|
-
});
|
|
25
|
-
var ToolbarSizeDetectorWrapperEmotion = exports.ToolbarSizeDetectorWrapperEmotion = function ToolbarSizeDetectorWrapperEmotion(_ref) {
|
|
26
|
-
var children = _ref.children,
|
|
27
|
-
style = _ref.style;
|
|
28
|
-
return (0, _react.jsx)("div", {
|
|
29
|
-
css: toolbarSizeDetectorWrapperEmotionStyles,
|
|
30
|
-
style: style
|
|
31
|
-
}, children);
|
|
32
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.WithFlashEmotion = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _react2 = require("@emotion/react");
|
|
16
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
17
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
18
|
-
* @jsxRuntime classic
|
|
19
|
-
* @jsx jsx
|
|
20
|
-
*/ /**
|
|
21
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
22
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
23
|
-
*
|
|
24
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
25
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
26
|
-
var pulseBackground = (0, _react2.keyframes)({
|
|
27
|
-
'50%': {
|
|
28
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
var pulseBackgroundReverse = (0, _react2.keyframes)({
|
|
32
|
-
'0%': {
|
|
33
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
34
|
-
},
|
|
35
|
-
'50%': {
|
|
36
|
-
backgroundColor: 'auto'
|
|
37
|
-
},
|
|
38
|
-
'100%': {
|
|
39
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
var flashWrapper = (0, _react2.css)({
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
|
-
'&.-flash > div': {
|
|
45
|
-
animationName: pulseBackgroundReverse,
|
|
46
|
-
animationDuration: '0.25s',
|
|
47
|
-
animationTimingFunction: 'ease-in-out'
|
|
48
|
-
},
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
50
|
-
'& > div': {
|
|
51
|
-
animation: 'none'
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
var flashWrapperAnimated = (0, _react2.css)((0, _defineProperty2.default)({}, "&.-flash > div", {
|
|
55
|
-
animationName: pulseBackground,
|
|
56
|
-
animationDuration: '0.25s',
|
|
57
|
-
animationTimingFunction: 'ease-in-out'
|
|
58
|
-
}));
|
|
59
|
-
// Ignored via go/ees005
|
|
60
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
61
|
-
var WithFlashEmotion = exports.WithFlashEmotion = /*#__PURE__*/function (_React$Component) {
|
|
62
|
-
function WithFlashEmotion() {
|
|
63
|
-
var _this;
|
|
64
|
-
(0, _classCallCheck2.default)(this, WithFlashEmotion);
|
|
65
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
66
|
-
args[_key] = arguments[_key];
|
|
67
|
-
}
|
|
68
|
-
_this = _callSuper(this, WithFlashEmotion, [].concat(args));
|
|
69
|
-
(0, _defineProperty2.default)(_this, "toggle", false);
|
|
70
|
-
return _this;
|
|
71
|
-
}
|
|
72
|
-
(0, _inherits2.default)(WithFlashEmotion, _React$Component);
|
|
73
|
-
return (0, _createClass2.default)(WithFlashEmotion, [{
|
|
74
|
-
key: "render",
|
|
75
|
-
value: function render() {
|
|
76
|
-
var _this$props = this.props,
|
|
77
|
-
animate = _this$props.animate,
|
|
78
|
-
children = _this$props.children;
|
|
79
|
-
this.toggle = animate && !this.toggle;
|
|
80
|
-
return (
|
|
81
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
82
|
-
(0, _react2.jsx)("div", {
|
|
83
|
-
css: animate ? flashWrapperAnimated : flashWrapper
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
85
|
-
,
|
|
86
|
-
className: this.toggle ? '-flash' : ''
|
|
87
|
-
}, children)
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
}]);
|
|
91
|
-
}(_react.default.Component);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
-
import { ThemeProvider } from '@emotion/react';
|
|
5
|
-
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
-
// Default value from: `import { fontSize } from '@atlaskit/theme/constants';`
|
|
9
|
-
const defaultFontSize = 14;
|
|
10
|
-
|
|
11
|
-
// No-op variant used when the static-css experiment is enabled. Editor consumers
|
|
12
|
-
// no longer read theme.baseFontSize / theme.layoutMaxWidth via Emotion's useTheme(),
|
|
13
|
-
// so no <ThemeProvider> is required in the React tree.
|
|
14
|
-
const BaseThemeWrapperNoop = ({
|
|
15
|
-
children
|
|
16
|
-
}) => /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
17
|
-
|
|
18
|
-
// Legacy variant keeping the original Emotion <ThemeProvider> behaviour for
|
|
19
|
-
// callers that still rely on theme.baseFontSize / theme.layoutMaxWidth.
|
|
20
|
-
const BaseThemeWrapperLegacy = ({
|
|
21
|
-
baseFontSize,
|
|
22
|
-
children
|
|
23
|
-
}) => {
|
|
24
|
-
const memoizedTheme = useMemo(() => ({
|
|
25
|
-
baseFontSize: baseFontSize || defaultFontSize,
|
|
26
|
-
layoutMaxWidth: akEditorDefaultLayoutWidth
|
|
27
|
-
}), [baseFontSize]);
|
|
28
|
-
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
29
|
-
theme: memoizedTheme
|
|
30
|
-
}, children);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
// Gated at module load — when the experiment is enabled, this becomes a no-op
|
|
34
|
-
// wrapper; otherwise it preserves today's Emotion <ThemeProvider> behaviour.
|
|
35
|
-
export const BaseThemeWrapper = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), BaseThemeWrapperNoop, BaseThemeWrapperLegacy);
|
|
@@ -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 `editor-internal.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 -- intentional: emotion fallback for compiled migration
|
|
13
|
-
import { css, jsx } from '@emotion/react';
|
|
14
|
-
const editorContainerEmotionStyles = css({
|
|
15
|
-
position: 'relative',
|
|
16
|
-
width: '100%',
|
|
17
|
-
height: '100%'
|
|
18
|
-
});
|
|
19
|
-
export const EditorInternalContainerEmotion = ({
|
|
20
|
-
children,
|
|
21
|
-
fontSize
|
|
22
|
-
}) => jsx("div", {
|
|
23
|
-
css: editorContainerEmotionStyles,
|
|
24
|
-
style: {
|
|
25
|
-
'--ak-editor-base-font-size': `${fontSize}px`
|
|
26
|
-
}
|
|
27
|
-
}, children);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
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 `index.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 -- intentional: emotion fallback for compiled migration
|
|
14
|
-
import { css, jsx } from '@emotion/react';
|
|
15
|
-
const clickWrapperEmotionStyles = css({
|
|
16
|
-
flexGrow: 1,
|
|
17
|
-
height: '100%'
|
|
18
|
-
});
|
|
19
|
-
export const ClickAreaBlockContainerEmotion = ({
|
|
20
|
-
children,
|
|
21
|
-
...rest
|
|
22
|
-
}) =>
|
|
23
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
24
|
-
jsx("div", _extends({
|
|
25
|
-
css: clickWrapperEmotionStyles
|
|
26
|
-
}, rest), children);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
/**
|
|
3
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
-
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
|
-
import "./Chromeless-compiled.compiled.css";
|
|
9
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
10
|
-
import React from 'react';
|
|
11
|
-
const chromelessStyles = {
|
|
12
|
-
scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
|
|
13
|
-
editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
|
|
14
|
-
};
|
|
15
|
-
export const ChromelessEditorContainerCompiled = ({
|
|
16
|
-
children,
|
|
17
|
-
containerRef,
|
|
18
|
-
maxHeight,
|
|
19
|
-
minHeight
|
|
20
|
-
}) => /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
22
|
-
className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
|
|
23
|
-
style: {
|
|
24
|
-
maxHeight: maxHeight ? `${maxHeight}px` : undefined,
|
|
25
|
-
minHeight: `${minHeight}px`
|
|
26
|
-
},
|
|
27
|
-
ref: containerRef,
|
|
28
|
-
"data-testid": "chromeless-editor",
|
|
29
|
-
id: "chromeless-editor"
|
|
30
|
-
}, children);
|
|
@@ -1,80 +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 `Chromeless.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
|
-
const scrollbarStylesNew = css({
|
|
15
|
-
msOverflowStyle: '-ms-autohiding-scrollbar',
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
17
|
-
'&::-webkit-scrollbar-corner': {
|
|
18
|
-
display: 'none'
|
|
19
|
-
},
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
21
|
-
'&::-webkit-scrollbar-thumb': {
|
|
22
|
-
backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
|
|
23
|
-
},
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
25
|
-
'&:hover::-webkit-scrollbar-thumb': {
|
|
26
|
-
backgroundColor: "var(--ds-background-neutral-bold, #292A2E)",
|
|
27
|
-
borderRadius: "var(--ds-radius-large, 8px)"
|
|
28
|
-
},
|
|
29
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
30
|
-
'&::-webkit-scrollbar-thumb:hover': {
|
|
31
|
-
backgroundColor: "var(--ds-background-neutral-bold-hovered, #3B3D42)"
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const chromelessEditorStylesNew = css({
|
|
35
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
36
|
-
lineHeight: '20px',
|
|
37
|
-
height: 'auto',
|
|
38
|
-
overflowX: 'hidden',
|
|
39
|
-
overflowY: 'auto',
|
|
40
|
-
maxWidth: 'inherit',
|
|
41
|
-
boxSizing: 'border-box',
|
|
42
|
-
wordWrap: 'break-word',
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
|
-
'div > .ProseMirror': {
|
|
45
|
-
outline: 'none',
|
|
46
|
-
whiteSpace: 'pre-wrap',
|
|
47
|
-
padding: 0,
|
|
48
|
-
margin: 0,
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
50
|
-
'& > :last-child': {
|
|
51
|
-
paddingBottom: "var(--ds-space-100, 8px)"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
55
|
-
'.ProseMirror': {
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
57
|
-
'& > p:last-of-type': {
|
|
58
|
-
marginBottom: "var(--ds-space-0, 0px)"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export const ChromelessEditorContainerEmotion = ({
|
|
63
|
-
children,
|
|
64
|
-
containerRef,
|
|
65
|
-
maxHeight,
|
|
66
|
-
minHeight,
|
|
67
|
-
...rest
|
|
68
|
-
}) => jsx("div", {
|
|
69
|
-
css: [chromelessEditorStylesNew, scrollbarStylesNew]
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
71
|
-
,
|
|
72
|
-
className: "akEditor",
|
|
73
|
-
style: {
|
|
74
|
-
maxHeight: maxHeight ? `${maxHeight}px` : undefined,
|
|
75
|
-
minHeight: `${minHeight}px`
|
|
76
|
-
},
|
|
77
|
-
ref: containerRef,
|
|
78
|
-
"data-testid": "chromeless-editor",
|
|
79
|
-
id: "chromeless-editor"
|
|
80
|
-
}, children);
|