@atlaskit/editor-core 235.0.0 → 235.0.2
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/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- 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/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- 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/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- 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,63 +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.NonCustomToolbarWrapperEmotion = exports.MainToolbarIconBeforeEmotion = exports.CustomToolbarWrapperEmotion = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
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 `MainToolbar.tsx`.
|
|
19
|
-
*
|
|
20
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
|
|
24
|
-
|
|
25
|
-
var nonCustomToolbarWrapperEmotionStyles = (0, _react2.css)({
|
|
26
|
-
alignItems: 'center',
|
|
27
|
-
display: 'flex',
|
|
28
|
-
flexGrow: 1
|
|
29
|
-
});
|
|
30
|
-
var NonCustomToolbarWrapperEmotion = exports.NonCustomToolbarWrapperEmotion = function NonCustomToolbarWrapperEmotion(_ref) {
|
|
31
|
-
var children = _ref.children;
|
|
32
|
-
return (0, _react2.jsx)("div", {
|
|
33
|
-
css: nonCustomToolbarWrapperEmotionStyles
|
|
34
|
-
}, children);
|
|
35
|
-
};
|
|
36
|
-
var customToolbarWrapperEmotionStyles = (0, _react2.css)({
|
|
37
|
-
alignItems: 'center',
|
|
38
|
-
display: 'flex'
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
42
|
-
var CustomToolbarWrapperEmotion = exports.CustomToolbarWrapperEmotion = function CustomToolbarWrapperEmotion(_ref2) {
|
|
43
|
-
var children = _ref2.children;
|
|
44
|
-
return (0, _react2.jsx)("div", {
|
|
45
|
-
css: customToolbarWrapperEmotionStyles
|
|
46
|
-
}, children);
|
|
47
|
-
};
|
|
48
|
-
var mainToolbarIconBeforeEmotionStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
49
|
-
margin: "var(--ds-space-200, 16px)",
|
|
50
|
-
height: "var(--ds-space-400, 32px)",
|
|
51
|
-
width: "var(--ds-space-400, 32px)"
|
|
52
|
-
}, "@media (max-width: ".concat(_editorSharedStyles.akEditorMobileMaxWidth, "px)"), {
|
|
53
|
-
gridColumn: 1,
|
|
54
|
-
gridRow: 1
|
|
55
|
-
}));
|
|
56
|
-
|
|
57
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
58
|
-
var MainToolbarIconBeforeEmotion = exports.MainToolbarIconBeforeEmotion = function MainToolbarIconBeforeEmotion(_ref3) {
|
|
59
|
-
var children = _ref3.children;
|
|
60
|
-
return (0, _react2.jsx)("div", {
|
|
61
|
-
css: mainToolbarIconBeforeEmotionStyles
|
|
62
|
-
}, children);
|
|
63
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MainToolbarIconBeforeMigration = void 0;
|
|
7
|
-
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
8
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
|
-
var _MainToolbarCompiled = require("./MainToolbar-compiled");
|
|
10
|
-
var _MainToolbarEmotion = require("./MainToolbar-emotion");
|
|
11
|
-
var MainToolbarIconBeforeMigration = exports.MainToolbarIconBeforeMigration = (0, _componentWithCondition.componentWithCondition)(function () {
|
|
12
|
-
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
13
|
-
}, _MainToolbarCompiled.MainToolbarIconBeforeCompiled, _MainToolbarEmotion.MainToolbarIconBeforeEmotion);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* MainToolbarWrapper-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 `MainToolbarWrapper.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
|
-
"use strict";
|
|
9
|
-
|
|
10
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
exports.MainToolbarWrapperCompiled = void 0;
|
|
15
|
-
require("./MainToolbarWrapper-compiled.compiled.css");
|
|
16
|
-
var _runtime = require("@compiled/react/runtime");
|
|
17
|
-
var _react = _interopRequireDefault(require("react"));
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
19
|
-
|
|
20
|
-
var styles = {
|
|
21
|
-
base: "_v56419ab _n7zlia51 _kqswh2mm _4cvr1h6o _16qsglyw _1pby16oo _1e0c1txw _4t3i17qo _1o9zidpf _bfhkvuon _1krdgrf3",
|
|
22
|
-
flexibleIconSize: "_3pwj1osq",
|
|
23
|
-
keyline: "_16qs1nax",
|
|
24
|
-
twoLine: "_1s5v1g80 _8o38zpre"
|
|
25
|
-
};
|
|
26
|
-
var MainToolbarWrapperCompiled = exports.MainToolbarWrapperCompiled = function MainToolbarWrapperCompiled(_ref) {
|
|
27
|
-
var showKeyline = _ref.showKeyline,
|
|
28
|
-
twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
29
|
-
children = _ref.children,
|
|
30
|
-
testId = _ref['data-testid'];
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
-
"data-testid": testId,
|
|
33
|
-
className: (0, _runtime.ax)([styles.base, styles.flexibleIconSize, showKeyline && styles.keyline, twoLineEditorToolbar && styles.twoLine])
|
|
34
|
-
}, children);
|
|
35
|
-
};
|
|
@@ -1,70 +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.MainToolbarWrapperEmotion = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
|
-
var _MainToolbar = require("./MainToolbar");
|
|
13
|
-
/**
|
|
14
|
-
* @jsxRuntime classic
|
|
15
|
-
* @jsx jsx
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
19
|
-
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
20
|
-
*
|
|
21
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
|
|
25
|
-
|
|
26
|
-
var baseToolbarStyles = (0, _react2.css)({
|
|
27
|
-
position: 'relative',
|
|
28
|
-
alignItems: 'center',
|
|
29
|
-
boxShadow: 'none',
|
|
30
|
-
borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
-
transition: "box-shadow 200ms ".concat(_editorSharedStyles.akEditorSwoopCubicBezier),
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
34
|
-
zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
|
|
35
|
-
display: 'flex',
|
|
36
|
-
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
37
|
-
flexShrink: 0,
|
|
38
|
-
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
|
-
'& object': {
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
42
|
-
height: '0 !important'
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
var flexibleIconSize = (0, _react2.css)({
|
|
46
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
47
|
-
'& span svg': {
|
|
48
|
-
maxWidth: '100%'
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
var mainToolbarWithKeyline = (0, _react2.css)({
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
|
-
boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #1E1F2128, 0px 0px 1px #1E1F211e)"
|
|
54
|
-
});
|
|
55
|
-
var mainToolbarTwoLineStyle = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_MainToolbar.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
56
|
-
flexWrap: 'wrap',
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
|
-
height: "calc(var(--ak-editor-fullpage-toolbar-height) * 2)"
|
|
59
|
-
}));
|
|
60
|
-
var MainToolbarWrapperEmotion = exports.MainToolbarWrapperEmotion = function MainToolbarWrapperEmotion(_ref) {
|
|
61
|
-
var showKeyline = _ref.showKeyline,
|
|
62
|
-
twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
63
|
-
children = _ref.children,
|
|
64
|
-
testId = _ref['data-testid'];
|
|
65
|
-
return (0, _react2.jsx)("div", {
|
|
66
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
67
|
-
css: [baseToolbarStyles, flexibleIconSize, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle],
|
|
68
|
-
"data-testid": testId
|
|
69
|
-
}, children);
|
|
70
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NonCustomToolbarWrapperMigration = void 0;
|
|
7
|
-
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
8
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
|
-
var _MainToolbarCompiled = require("./MainToolbar-compiled");
|
|
10
|
-
var _MainToolbarEmotion = require("./MainToolbar-emotion");
|
|
11
|
-
var NonCustomToolbarWrapperMigration = exports.NonCustomToolbarWrapperMigration = (0, _componentWithCondition.componentWithCondition)(function () {
|
|
12
|
-
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
13
|
-
}, _MainToolbarCompiled.NonCustomToolbarWrapperCompiled, _MainToolbarEmotion.NonCustomToolbarWrapperEmotion);
|
|
@@ -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);
|