@atlaskit/editor-core 233.0.2 → 234.0.0
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 +8 -0
- package/dist/cjs/composable-editor/editor-internal.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -3
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +5 -9
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +4 -11
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +2 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -7
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -4
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -9
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +5 -12
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +6 -5
- package/package.json +40 -40
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -761
- package/dist/cjs/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -121
- package/dist/cjs/ui/EditorContentContainer/styles/aiPanel.js +0 -228
- package/dist/cjs/ui/EditorContentContainer/styles/annotationStyles.js +0 -52
- package/dist/cjs/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -70
- package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +0 -121
- package/dist/cjs/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -113
- package/dist/cjs/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -332
- package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -244
- package/dist/cjs/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -39
- package/dist/cjs/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +0 -31
- package/dist/cjs/ui/EditorContentContainer/styles/dateStyles.js +0 -100
- package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -39
- package/dist/cjs/ui/EditorContentContainer/styles/embedCardStyles.js +0 -41
- package/dist/cjs/ui/EditorContentContainer/styles/emoji.js +0 -471
- package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +0 -352
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +0 -436
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -260
- package/dist/cjs/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -63
- package/dist/cjs/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -25
- package/dist/cjs/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -51
- package/dist/cjs/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -27
- package/dist/cjs/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -125
- package/dist/cjs/ui/EditorContentContainer/styles/gridStyles.js +0 -49
- package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +0 -55
- package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -56
- package/dist/cjs/ui/EditorContentContainer/styles/layout.js +0 -781
- package/dist/cjs/ui/EditorContentContainer/styles/link.js +0 -66
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +0 -325
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +0 -343
- package/dist/cjs/ui/EditorContentContainer/styles/mentions.js +0 -273
- package/dist/cjs/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -20
- package/dist/cjs/ui/EditorContentContainer/styles/panelStyles.js +0 -387
- package/dist/cjs/ui/EditorContentContainer/styles/paragraphStyles.js +0 -71
- package/dist/cjs/ui/EditorContentContainer/styles/placeholderStyles.js +0 -134
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +0 -648
- package/dist/cjs/ui/EditorContentContainer/styles/rule.js +0 -48
- package/dist/cjs/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -38
- package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +0 -177
- package/dist/cjs/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -35
- package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +0 -76
- package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +0 -473
- package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +0 -305
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -37
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -253
- package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +0 -327
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -467
- package/dist/cjs/ui/EditorContentContainer/styles/telepointerStyles.js +0 -233
- package/dist/cjs/ui/EditorContentContainer/styles/textColorStyles.js +0 -27
- package/dist/cjs/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -24
- package/dist/cjs/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -104
- package/dist/cjs/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -42
- package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -24
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -764
- package/dist/es2019/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
- package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +0 -225
- package/dist/es2019/ui/EditorContentContainer/styles/annotationStyles.js +0 -55
- package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
- package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +0 -119
- package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -115
- package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -338
- package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -301
- package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
- package/dist/es2019/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
- package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +0 -122
- package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
- package/dist/es2019/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
- package/dist/es2019/ui/EditorContentContainer/styles/emoji.js +0 -530
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +0 -346
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +0 -432
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -355
- package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -60
- package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
- package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
- package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
- package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -195
- package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +0 -43
- package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
- package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +0 -886
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +0 -60
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +0 -322
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +0 -483
- package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +0 -287
- package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -55
- package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +0 -381
- package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
- package/dist/es2019/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +0 -723
- package/dist/es2019/ui/EditorContentContainer/styles/rule.js +0 -45
- package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
- package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
- package/dist/es2019/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
- package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +0 -81
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +0 -666
- package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +0 -299
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -34
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -325
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +0 -341
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -508
- package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
- package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
- package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
- package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -110
- package/dist/es2019/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
- package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +0 -759
- package/dist/esm/ui/EditorContentContainer/styles/agentShimmerStyles.js +0 -115
- package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +0 -221
- package/dist/esm/ui/EditorContentContainer/styles/annotationStyles.js +0 -45
- package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +0 -64
- package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +0 -114
- package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/blockSpacingStyles.js +0 -107
- package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +0 -325
- package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +0 -238
- package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +0 -33
- package/dist/esm/ui/EditorContentContainer/styles/containerTypeStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +0 -25
- package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +0 -94
- package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +0 -33
- package/dist/esm/ui/EditorContentContainer/styles/embedCardStyles.js +0 -35
- package/dist/esm/ui/EditorContentContainer/styles/emoji.js +0 -464
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +0 -346
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +0 -430
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -253
- package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +0 -56
- package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +0 -19
- package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +0 -45
- package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +0 -21
- package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +0 -118
- package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +0 -43
- package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +0 -49
- package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +0 -50
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +0 -774
- package/dist/esm/ui/EditorContentContainer/styles/link.js +0 -60
- package/dist/esm/ui/EditorContentContainer/styles/list.js +0 -318
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +0 -337
- package/dist/esm/ui/EditorContentContainer/styles/mentions.js +0 -267
- package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +0 -14
- package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +0 -381
- package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +0 -65
- package/dist/esm/ui/EditorContentContainer/styles/placeholderStyles.js +0 -128
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +0 -641
- package/dist/esm/ui/EditorContentContainer/styles/rule.js +0 -41
- package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +0 -32
- package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +0 -171
- package/dist/esm/ui/EditorContentContainer/styles/selectionToolbarStyles.js +0 -29
- package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +0 -69
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +0 -468
- package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +0 -299
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +0 -30
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +0 -247
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +0 -320
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +0 -461
- package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +0 -227
- package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +0 -21
- package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +0 -18
- package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +0 -98
- package/dist/esm/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +0 -36
- package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +0 -18
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +0 -21
- package/dist/types/ui/EditorContentContainer/styles/agentShimmerStyles.d.ts +0 -2
- package/dist/types/ui/EditorContentContainer/styles/aiPanel.d.ts +0 -29
- package/dist/types/ui/EditorContentContainer/styles/annotationStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/backgroundColorStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +0 -36
- package/dist/types/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/blockSpacingStyles.d.ts +0 -18
- package/dist/types/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +0 -65
- package/dist/types/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -39
- package/dist/types/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/containerTypeStyles.d.ts +0 -26
- package/dist/types/ui/EditorContentContainer/styles/cursorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/dateStyles.d.ts +0 -32
- package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +0 -16
- package/dist/types/ui/EditorContentContainer/styles/embedCardStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/emoji.d.ts +0 -55
- package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +0 -52
- package/dist/types/ui/EditorContentContainer/styles/extensionStyles.d.ts +0 -20
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +0 -20
- package/dist/types/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +0 -15
- package/dist/types/ui/EditorContentContainer/styles/gridStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/indentationStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +0 -207
- package/dist/types/ui/EditorContentContainer/styles/link.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/list.d.ts +0 -50
- package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +0 -41
- package/dist/types/ui/EditorContentContainer/styles/mentions.d.ts +0 -29
- package/dist/types/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/panelStyles.d.ts +0 -43
- package/dist/types/ui/EditorContentContainer/styles/paragraphStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/placeholderStyles.d.ts +0 -22
- package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +0 -145
- package/dist/types/ui/EditorContentContainer/styles/rule.d.ts +0 -15
- package/dist/types/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -74
- package/dist/types/ui/EditorContentContainer/styles/selectionToolbarStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/shadowStyles.d.ts +0 -29
- package/dist/types/ui/EditorContentContainer/styles/smartCardStyles.d.ts +0 -96
- package/dist/types/ui/EditorContentContainer/styles/statusStyles.d.ts +0 -36
- package/dist/types/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.d.ts +0 -17
- package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -36
- package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -84
- package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +0 -77
- package/dist/types/ui/EditorContentContainer/styles/telepointerStyles.d.ts +0 -15
- package/dist/types/ui/EditorContentContainer/styles/textColorStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +0 -8
- package/dist/types/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +0 -27
- package/dist/types/ui/EditorContentContainer/styles/vanillaTooltipStyles.d.ts +0 -11
- package/dist/types/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +0 -8
|
@@ -1,781 +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.layoutStylesForView = exports.layoutSelectedStylesNotAdvanced = exports.layoutSelectedStylesForViewNotAdvanced = exports.layoutSelectedStylesForViewAdvanced = exports.layoutSelectedStylesAdvancedFix = exports.layoutSelectedStylesAdvanced = exports.layoutSectionStylesNotAdvanced = exports.layoutSectionStylesAdvanced = exports.layoutResponsiveStylesForView = exports.layoutResponsiveBaseStyles = exports.layoutDragHandleWrapperStylesLegacy = exports.layoutColumnStylesNotAdvanced = exports.layoutColumnStylesAdvanced = exports.layoutColumnResponsiveStyles = exports.layoutColumnResizeStyles = exports.layoutColumnMartinTopFixes = exports.layoutColumnDividerStylesNestedDnD = exports.layoutColumnDividerStyles = exports.layoutBaseStylesNestedDndExcludingBodiedSync = exports.layoutBaseStylesNestedDnd = exports.layoutBaseStylesAdvanced = exports.layoutBaseStyles = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _selectionStyles = require("./selectionStyles");
|
|
11
|
-
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
12
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
13
|
-
@repo/internal/deprecations/deprecation-ticket-required,
|
|
14
|
-
@atlaskit/ui-styling-standard/no-exported-styles */
|
|
15
|
-
|
|
16
|
-
var gridMediumMaxWidth = 1024;
|
|
17
|
-
var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
18
|
-
|
|
19
|
-
// Class names for the column resize divider widget — must stay in sync with main.ts in editor-plugin-layout
|
|
20
|
-
var layoutColumnDividerClassName = 'layout-column-divider';
|
|
21
|
-
var layoutColumnDividerRailClassName = 'layout-column-divider-rail';
|
|
22
|
-
var layoutColumnDividerThumbClassName = 'layout-column-divider-thumb';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Styles for the column resize divider widget DOM elements.
|
|
26
|
-
* Mirrors the pm-breakout-resize-handle-* pattern from resizerStyles.ts.
|
|
27
|
-
* Applied only when advanced_layouts experiment is on.
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
31
|
-
* If you need to make changes here, also update the corresponding style in
|
|
32
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
33
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
34
|
-
*/
|
|
35
|
-
var layoutColumnDividerStyles = exports.layoutColumnDividerStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(layoutColumnDividerClassName), (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
36
|
-
// Negative margin removes the applied 'gap' from the parent's flex box
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
38
|
-
marginInline: '-15px 0px',
|
|
39
|
-
flexShrink: 0,
|
|
40
|
-
boxSizing: 'content-box',
|
|
41
|
-
cursor: 'col-resize',
|
|
42
|
-
position: 'relative',
|
|
43
|
-
zIndex: 2,
|
|
44
|
-
alignSelf: 'stretch',
|
|
45
|
-
display: 'flex',
|
|
46
|
-
alignItems: 'center',
|
|
47
|
-
justifyContent: 'center'
|
|
48
|
-
}, "&:hover .".concat(layoutColumnDividerRailClassName), {
|
|
49
|
-
background: "var(--ds-background-selected, #E9F2FE)"
|
|
50
|
-
}), "&:hover .".concat(layoutColumnDividerThumbClassName), {
|
|
51
|
-
background: "var(--ds-border-focused, #4688EC)"
|
|
52
|
-
})), ".".concat(layoutColumnDividerRailClassName), {
|
|
53
|
-
width: 7,
|
|
54
|
-
height: '100%',
|
|
55
|
-
display: 'flex',
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
justifyContent: 'center',
|
|
58
|
-
borderRadius: "var(--ds-radius-small, 4px)",
|
|
59
|
-
transition: 'background-color 0.2s',
|
|
60
|
-
pointerEvents: 'none'
|
|
61
|
-
}), ".".concat(layoutColumnDividerThumbClassName), {
|
|
62
|
-
minWidth: 3,
|
|
63
|
-
height: 'clamp(27px, calc(100% - 32px), 96px)',
|
|
64
|
-
background: "var(--ds-border, #0B120E24)",
|
|
65
|
-
borderRadius: "var(--ds-radius-medium, 6px)",
|
|
66
|
-
pointerEvents: 'none',
|
|
67
|
-
position: 'sticky',
|
|
68
|
-
top: "var(--ds-space-150, 12px)",
|
|
69
|
-
bottom: "var(--ds-space-150, 12px)"
|
|
70
|
-
}));
|
|
71
|
-
/**
|
|
72
|
-
* Override divider marginInline for nested drag-and-drop,
|
|
73
|
-
* since the layout section/column spacing changes.
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
77
|
-
* If you need to make changes here, also update the corresponding style in
|
|
78
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
79
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
80
|
-
*/
|
|
81
|
-
var layoutColumnDividerStylesNestedDnD = exports.layoutColumnDividerStylesNestedDnD = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(layoutColumnDividerClassName), {
|
|
82
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
83
|
-
marginInline: '0 -7px'
|
|
84
|
-
}));
|
|
85
|
-
var selectorForNotResizedLayoutInFulllWidthEditor = '.fabric-editor--full-width-mode .ProseMirror > .layoutSectionView-content-wrap';
|
|
86
|
-
var selectorForNotResizedLayoutInFixedWidthEditor = '.ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror > .layoutSectionView-content-wrap';
|
|
87
|
-
var selectorForResizedLayoutInFullOrFixedWidthEditor = '.ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap';
|
|
88
|
-
var layoutResponsiveSelectedSelector = "&.selected, &:hover, &.selected.danger, &.".concat(akEditorSelectedNodeClassName, ":not(.danger)");
|
|
89
|
-
var layoutSelectedSelector = "&.selected, [data-empty-layout='true'], &:hover, &.selected.danger [data-layout-section], &.".concat(akEditorSelectedNodeClassName, ":not(.danger) [data-layout-section]");
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Layout columns styles when advanced layouts experiment is on
|
|
93
|
-
*/
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
96
|
-
* If you need to make changes here, also update the corresponding style in
|
|
97
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
98
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
99
|
-
*/
|
|
100
|
-
var layoutColumnStylesAdvanced = exports.layoutColumnStylesAdvanced = (0, _react.css)({
|
|
101
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
102
|
-
'.ProseMirror [data-layout-section]': (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
103
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
104
|
-
'> [data-layout-column]': {
|
|
105
|
-
margin: '0 4px'
|
|
106
|
-
},
|
|
107
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
108
|
-
'> [data-layout-column]:first-of-type': {
|
|
109
|
-
marginLeft: 0
|
|
110
|
-
},
|
|
111
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
112
|
-
'> [data-layout-column]:last-of-type': {
|
|
113
|
-
marginRight: 0
|
|
114
|
-
}
|
|
115
|
-
}, "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
117
|
-
'[data-layout-column] + [data-layout-column]': {
|
|
118
|
-
margin: 0
|
|
119
|
-
}
|
|
120
|
-
}), "> [data-layout-column].".concat(akEditorSelectedNodeClassName, ":not(.danger)"), [
|
|
121
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
122
|
-
_selectionStyles.blanketSelectionStyles,
|
|
123
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
124
|
-
_selectionStyles.hideNativeBrowserTextSelectionStyles, {
|
|
125
|
-
// layout column selection shorter after layout border has been removed
|
|
126
|
-
'::before': {
|
|
127
|
-
width: 'calc(100% - 8px)',
|
|
128
|
-
left: 4,
|
|
129
|
-
borderRadius: "var(--ds-radius-small, 3px)"
|
|
130
|
-
}
|
|
131
|
-
}])
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Layout column resize styles.
|
|
136
|
-
*/
|
|
137
|
-
/**
|
|
138
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
139
|
-
* If you need to make changes here, also update the corresponding style in
|
|
140
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
141
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
142
|
-
*/
|
|
143
|
-
var layoutColumnResizeStyles = exports.layoutColumnResizeStyles = (0, _react.css)({
|
|
144
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
145
|
-
'.ProseMirror [data-layout-section]': {
|
|
146
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
147
|
-
'> [data-layout-column][style*="--column-width"]': {
|
|
148
|
-
// Support CSS custom property for smooth resizing during drag
|
|
149
|
-
// When --column-resize-width is set, use it; otherwise fall back to the original flex-basis
|
|
150
|
-
// Using attribute selector for higher specificity than inline styles
|
|
151
|
-
flexBasis: 'var(--column-resize-width, var(--column-width))',
|
|
152
|
-
// Also ensure flex-grow and flex-shrink are reset when using custom width
|
|
153
|
-
flex: 'var(--column-resize-flex, 1)'
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Layout columns styles when advanced layouts experiment is off
|
|
160
|
-
*/
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
163
|
-
* If you need to make changes here, also update the corresponding style in
|
|
164
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
165
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
166
|
-
*/
|
|
167
|
-
var layoutColumnStylesNotAdvanced = exports.layoutColumnStylesNotAdvanced = (0, _react.css)({
|
|
168
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
169
|
-
'.ProseMirror [data-layout-section]': (0, _defineProperty2.default)({
|
|
170
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
171
|
-
'[data-layout-column] + [data-layout-column]': {
|
|
172
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
173
|
-
marginLeft: 8
|
|
174
|
-
}
|
|
175
|
-
}, "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
|
|
176
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
177
|
-
'[data-layout-column] + [data-layout-column]': {
|
|
178
|
-
marginLeft: 0
|
|
179
|
-
}
|
|
180
|
-
})
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Responsive styles for layout columns when advanced layouts experiment is on
|
|
185
|
-
*/
|
|
186
|
-
/**
|
|
187
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
188
|
-
* If you need to make changes here, also update the corresponding style in
|
|
189
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
190
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
191
|
-
*/
|
|
192
|
-
var layoutColumnResponsiveStyles = exports.layoutColumnResponsiveStyles = (0, _react.css)({
|
|
193
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
194
|
-
'.ProseMirror [data-layout-section]': {
|
|
195
|
-
display: 'flex',
|
|
196
|
-
flexDirection: 'row',
|
|
197
|
-
gap: "var(--ds-space-100, 8px)",
|
|
198
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
199
|
-
'& > *': {
|
|
200
|
-
flex: 1,
|
|
201
|
-
minWidth: 0
|
|
202
|
-
},
|
|
203
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
204
|
-
'& > .unsupportedBlockView-content-wrap': {
|
|
205
|
-
minWidth: 'initial'
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
209
|
-
'.layout-section-container': {
|
|
210
|
-
containerType: 'inline-size',
|
|
211
|
-
containerName: 'layout-area'
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Layout section styles when advanced layouts experiment is on
|
|
217
|
-
*/
|
|
218
|
-
var layoutDragHandleWrapperStylesLegacy = exports.layoutDragHandleWrapperStylesLegacy = (0, _react.css)({
|
|
219
|
-
// Legacy tooltips are portalled, so flattening every div does not affect their surface.
|
|
220
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
221
|
-
'.ProseMirror .layout-section-container [data-layout-section] > .ProseMirror-widget[data-blocks-drag-handle-container] div': {
|
|
222
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
223
|
-
display: 'contents !important'
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
228
|
-
/**
|
|
229
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
230
|
-
* If you need to make changes here, also update the corresponding style in
|
|
231
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
232
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
233
|
-
*/
|
|
234
|
-
var layoutSectionStylesAdvanced = exports.layoutSectionStylesAdvanced = (0, _react.css)((0, _defineProperty2.default)({
|
|
235
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
236
|
-
'.ProseMirror .layout-section-container [data-layout-section]': {
|
|
237
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
238
|
-
'> .ProseMirror-widget': (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
239
|
-
flex: 'none',
|
|
240
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
241
|
-
display: 'contents !important',
|
|
242
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
243
|
-
'&[data-blocks-drop-target-container]': {
|
|
244
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
245
|
-
display: 'block !important',
|
|
246
|
-
margin: "var(--ds-space-negative-050, -4px)",
|
|
247
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
248
|
-
'[data-drop-target-for-element]': {
|
|
249
|
-
position: 'absolute'
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}, "&.".concat(layoutColumnDividerClassName), {
|
|
253
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
254
|
-
display: 'block !important',
|
|
255
|
-
flex: 'none',
|
|
256
|
-
opacity: 0,
|
|
257
|
-
transition: 'opacity 0.2s'
|
|
258
|
-
}), '& + [data-layout-column]', {
|
|
259
|
-
margin: 0
|
|
260
|
-
}),
|
|
261
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
262
|
-
'> [data-layout-column]': {
|
|
263
|
-
margin: 0
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}, ".ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]", (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "> .ProseMirror-widget.".concat(layoutColumnDividerClassName), {
|
|
267
|
-
opacity: 1
|
|
268
|
-
}), "> .ProseMirror-widget.".concat(layoutColumnDividerClassName, " ~ [data-layout-column] [data-layout-content]::before"), {
|
|
269
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
270
|
-
display: 'none !important'
|
|
271
|
-
})));
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Layout section styles when advanced layouts experiment is off
|
|
275
|
-
*/
|
|
276
|
-
/**
|
|
277
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
278
|
-
* If you need to make changes here, also update the corresponding style in
|
|
279
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
280
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
281
|
-
*/
|
|
282
|
-
var layoutSectionStylesNotAdvanced = exports.layoutSectionStylesNotAdvanced = (0, _react.css)({
|
|
283
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
284
|
-
'.ProseMirror [data-layout-section]': (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
285
|
-
position: 'relative',
|
|
286
|
-
display: 'flex',
|
|
287
|
-
flexDirection: 'row',
|
|
288
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
289
|
-
'& > *': {
|
|
290
|
-
flex: 1,
|
|
291
|
-
minWidth: 0
|
|
292
|
-
},
|
|
293
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
294
|
-
'& > .unsupportedBlockView-content-wrap': {
|
|
295
|
-
minWidth: 'initial'
|
|
296
|
-
}
|
|
297
|
-
}, "& > .".concat(layoutColumnDividerClassName), {
|
|
298
|
-
flex: 'none'
|
|
299
|
-
}), "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
|
|
300
|
-
flexDirection: 'column'
|
|
301
|
-
})
|
|
302
|
-
});
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Selected styles for layout when advanced layouts experiment is off
|
|
306
|
-
*/
|
|
307
|
-
// TODO: DSP-4441 - Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.
|
|
308
|
-
// This is because the default state already uses the same token and, as such, the hover style won't change anything.
|
|
309
|
-
// https://product-fabric.atlassian.net/browse/DSP-4441
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
312
|
-
* If you need to make changes here, also update the corresponding style in
|
|
313
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
314
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
315
|
-
*/
|
|
316
|
-
var layoutSelectedStylesNotAdvanced = exports.layoutSelectedStylesNotAdvanced = (0, _react.css)({
|
|
317
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
318
|
-
'.ProseMirror': {
|
|
319
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
320
|
-
'[data-layout-section], .layoutSectionView-content-wrap': (0, _defineProperty2.default)({
|
|
321
|
-
// Shows the border when cursor is inside a layout
|
|
322
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
323
|
-
'&.selected [data-layout-column], &:hover [data-layout-column]': {
|
|
324
|
-
border: "1px solid ".concat("var(--ds-border, #0B120E24)")
|
|
325
|
-
},
|
|
326
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
327
|
-
'&.selected.danger [data-layout-column]': {
|
|
328
|
-
backgroundColor: "var(--ds-background-danger, #FFECEB)",
|
|
329
|
-
borderColor: "var(--ds-border-danger, #E2483D)"
|
|
330
|
-
}
|
|
331
|
-
}, "&.".concat(akEditorSelectedNodeClassName, ":not(.danger)"), {
|
|
332
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
333
|
-
'[data-layout-column]': [
|
|
334
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
335
|
-
_selectionStyles.borderSelectionStyles,
|
|
336
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
337
|
-
_selectionStyles.blanketSelectionStyles,
|
|
338
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
339
|
-
_selectionStyles.hideNativeBrowserTextSelectionStyles, {
|
|
340
|
-
'::after': {
|
|
341
|
-
backgroundColor: 'transparent'
|
|
342
|
-
}
|
|
343
|
-
}]
|
|
344
|
-
})
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
// TODO: ED-28075 - inline rowSeparatorBaseStyles to unblock Compiled CSS migration
|
|
349
|
-
var rowSeparatorBaseStyles = (0, _react.css)({
|
|
350
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
351
|
-
'[data-layout-content]::before': {
|
|
352
|
-
content: "''",
|
|
353
|
-
borderTop: "1px solid ".concat("var(--ds-border, #0B120E24)"),
|
|
354
|
-
position: 'absolute',
|
|
355
|
-
width: 'calc(100% - 32px)',
|
|
356
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
357
|
-
marginTop: -13,
|
|
358
|
-
// clear styles for column separator
|
|
359
|
-
borderLeft: 'unset',
|
|
360
|
-
marginLeft: 'unset',
|
|
361
|
-
height: 'unset'
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Selected styles for layout when advanced layouts experiment is on
|
|
367
|
-
*/
|
|
368
|
-
/**
|
|
369
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
370
|
-
* If you need to make changes here, also update the corresponding style in
|
|
371
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
372
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
373
|
-
*/
|
|
374
|
-
var layoutSelectedStylesAdvanced = exports.layoutSelectedStylesAdvanced = (0, _react.css)({
|
|
375
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
376
|
-
'.ProseMirror': {
|
|
377
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
378
|
-
'[data-layout-section], .layoutSectionView-content-wrap': (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, layoutSelectedSelector, {
|
|
379
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
380
|
-
'[data-layout-column]:not(:first-of-type) [data-layout-content]::before': {
|
|
381
|
-
content: "''",
|
|
382
|
-
borderLeft: "1px solid ".concat("var(--ds-border, #0B120E24)"),
|
|
383
|
-
position: 'absolute',
|
|
384
|
-
height: 'calc(100% - 24px)',
|
|
385
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
386
|
-
marginLeft: -25
|
|
387
|
-
},
|
|
388
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
389
|
-
'[data-layout-column]:is([data-valign="middle"], [data-valign="bottom"]):not(:first-of-type) [data-layout-content]::before': {
|
|
390
|
-
top: "var(--ds-space-150, 12px)"
|
|
391
|
-
}
|
|
392
|
-
}), '&.selected.danger [data-layout-section]', {
|
|
393
|
-
backgroundColor: "var(--ds-background-danger, #FFECEB)",
|
|
394
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)"),
|
|
395
|
-
borderRadius: "var(--ds-radius-small, 4px)"
|
|
396
|
-
}), "&.".concat(akEditorSelectedNodeClassName, ":not(.danger) [data-layout-section]"), {
|
|
397
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)"),
|
|
398
|
-
borderRadius: "var(--ds-radius-small, 4px)",
|
|
399
|
-
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
400
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
401
|
-
'[data-layout-column]': [
|
|
402
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
403
|
-
_selectionStyles.blanketSelectionStyles,
|
|
404
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
405
|
-
_selectionStyles.hideNativeBrowserTextSelectionStyles, {
|
|
406
|
-
border: 0,
|
|
407
|
-
'::before': {
|
|
408
|
-
backgroundColor: 'transparent'
|
|
409
|
-
}
|
|
410
|
-
}]
|
|
411
|
-
})
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
|
|
415
|
-
// Fix for layoutSelectedStylesAdvanced that addresses an issue where the delete indicator
|
|
416
|
-
// sometimes doesn't appear when inside a synced block.
|
|
417
|
-
// Separated as a distinct style to allow feature-gating without affecting module-level styles.
|
|
418
|
-
// This prevents style inconsistencies before the feature flag is initialized.
|
|
419
|
-
/**
|
|
420
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
421
|
-
* If you need to make changes here, also update the corresponding style in
|
|
422
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
423
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
424
|
-
*/
|
|
425
|
-
var layoutSelectedStylesAdvancedFix = exports.layoutSelectedStylesAdvancedFix = (0, _react.css)({
|
|
426
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
427
|
-
'.ProseMirror': {
|
|
428
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
429
|
-
'[data-layout-section], .layoutSectionView-content-wrap': (0, _defineProperty2.default)({
|
|
430
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
431
|
-
'&.selected.danger [data-layout-section]': {
|
|
432
|
-
boxShadow: "inset 0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)")
|
|
433
|
-
}
|
|
434
|
-
}, "&.".concat(akEditorSelectedNodeClassName, ":not(.danger) [data-layout-section]"), {
|
|
435
|
-
boxShadow: "inset 0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)")
|
|
436
|
-
})
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Base responsive styles for layout
|
|
442
|
-
*/
|
|
443
|
-
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
444
|
-
/**
|
|
445
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
446
|
-
* If you need to make changes here, also update the corresponding style in
|
|
447
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
448
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
449
|
-
*/
|
|
450
|
-
var layoutResponsiveBaseStyles = exports.layoutResponsiveBaseStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, selectorForNotResizedLayoutInFulllWidthEditor, (0, _defineProperty2.default)({
|
|
451
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
452
|
-
'[data-layout-section]': {
|
|
453
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
|
|
454
|
-
'@container editor-area (max-width:724px)': {
|
|
455
|
-
flexDirection: 'column'
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}, layoutResponsiveSelectedSelector, {
|
|
459
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
460
|
-
'[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:724px)", rowSeparatorBaseStyles)
|
|
461
|
-
})), selectorForNotResizedLayoutInFixedWidthEditor, (0, _defineProperty2.default)({
|
|
462
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
463
|
-
'[data-layout-section]': {
|
|
464
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
|
|
465
|
-
'@container editor-area (max-width:788px)': {
|
|
466
|
-
flexDirection: 'column'
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}, layoutResponsiveSelectedSelector, {
|
|
470
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
471
|
-
'[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:788px)", rowSeparatorBaseStyles)
|
|
472
|
-
})), selectorForResizedLayoutInFullOrFixedWidthEditor, (0, _defineProperty2.default)({
|
|
473
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
474
|
-
'[data-layout-section]': {
|
|
475
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
|
|
476
|
-
'@container editor-area (max-width:820px)': {
|
|
477
|
-
flexDirection: 'column'
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}, layoutResponsiveSelectedSelector, {
|
|
481
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
482
|
-
'[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:820px)", rowSeparatorBaseStyles)
|
|
483
|
-
})));
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* Responsive styles for layout in view mode
|
|
487
|
-
*/
|
|
488
|
-
/**
|
|
489
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
490
|
-
* If you need to make changes here, also update the corresponding style in
|
|
491
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
492
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
493
|
-
*/
|
|
494
|
-
var layoutResponsiveStylesForView = exports.layoutResponsiveStylesForView = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, selectorForNotResizedLayoutInFulllWidthEditor, (0, _defineProperty2.default)({}, layoutResponsiveSelectedSelector, {
|
|
495
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
496
|
-
'[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:724px)", {
|
|
497
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
498
|
-
'[data-layout-content]::before': {
|
|
499
|
-
borderTop: 0
|
|
500
|
-
}
|
|
501
|
-
})
|
|
502
|
-
})), selectorForNotResizedLayoutInFixedWidthEditor, (0, _defineProperty2.default)({}, layoutResponsiveSelectedSelector, {
|
|
503
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
504
|
-
'[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:788px)", {
|
|
505
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
506
|
-
'[data-layout-content]::before': {
|
|
507
|
-
borderTop: 0
|
|
508
|
-
}
|
|
509
|
-
})
|
|
510
|
-
})), selectorForResizedLayoutInFullOrFixedWidthEditor, (0, _defineProperty2.default)({}, layoutResponsiveSelectedSelector, {
|
|
511
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
512
|
-
'[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:820px)", {
|
|
513
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
514
|
-
'[data-layout-content]::before': {
|
|
515
|
-
borderTop: 0
|
|
516
|
-
}
|
|
517
|
-
})
|
|
518
|
-
})));
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Base styles for layout
|
|
522
|
-
*/
|
|
523
|
-
/**
|
|
524
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
525
|
-
* If you need to make changes here, also update the corresponding style in
|
|
526
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
527
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
528
|
-
*/
|
|
529
|
-
var layoutBaseStyles = exports.layoutBaseStyles = (0, _react.css)({
|
|
530
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
531
|
-
'.ProseMirror': {
|
|
532
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
533
|
-
'[data-layout-section]': {
|
|
534
|
-
margin: "var(--ds-space-100, 8px)".concat(" -12px 0"),
|
|
535
|
-
transition: 'border-color 0.3s cubic-bezier(0.15, 1, 0.3, 1)',
|
|
536
|
-
cursor: 'pointer',
|
|
537
|
-
// Inner cursor located 26px from left
|
|
538
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
539
|
-
'[data-layout-column]': {
|
|
540
|
-
flex: 1,
|
|
541
|
-
position: 'relative',
|
|
542
|
-
minWidth: 0,
|
|
543
|
-
/* disable 4 borders when in view mode and advanced layouts is on */
|
|
544
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
545
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
546
|
-
borderRadius: "var(--ds-radius-small, 4px)",
|
|
547
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
548
|
-
padding: "var(--ds-space-150, 12px)",
|
|
549
|
-
boxSizing: 'border-box',
|
|
550
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
551
|
-
'> div': {
|
|
552
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
553
|
-
'.pm-table-container': {
|
|
554
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
555
|
-
width: '100% !important'
|
|
556
|
-
},
|
|
557
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
558
|
-
'> .embedCardView-content-wrap:first-of-type .rich-media-item': {
|
|
559
|
-
marginTop: 0
|
|
560
|
-
},
|
|
561
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
562
|
-
'> .mediaSingleView-content-wrap:first-of-type .rich-media-item': {
|
|
563
|
-
marginTop: 0
|
|
564
|
-
},
|
|
565
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
566
|
-
'> .ProseMirror-gapcursor.-right:first-child + .mediaSingleView-content-wrap .rich-media-item, > style:first-child + .ProseMirror-gapcursor.-right + .mediaSingleView-content-wrap .rich-media-item, > .ProseMirror-gapcursor.-right:first-of-type + .embedCardView-content-wrap .rich-media-item': {
|
|
567
|
-
marginTop: 0
|
|
568
|
-
},
|
|
569
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
570
|
-
'> .ProseMirror-gapcursor:first-child + span + .mediaSingleView-content-wrap .rich-media-item, > style:first-child + .ProseMirror-gapcursor + span + .mediaSingleView-content-wrap .rich-media-item': {
|
|
571
|
-
marginTop: 0
|
|
572
|
-
},
|
|
573
|
-
// Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down and shrinking layout's node selectable area (leniency margin)
|
|
574
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
575
|
-
"> [data-node-type='decisionList']": {
|
|
576
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
577
|
-
'li:first-of-type [data-decision-wrapper]': {
|
|
578
|
-
marginTop: 0
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
// Make the 'content' fill the entire height of the layout column to allow click handler of layout section nodeview to target only data-layout-column
|
|
583
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
584
|
-
'[data-layout-content]': {
|
|
585
|
-
height: '100%',
|
|
586
|
-
cursor: 'text',
|
|
587
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
588
|
-
'.mediaGroupView-content-wrap': {
|
|
589
|
-
clear: 'both'
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
// Keep the editable content wrapper stretched so blank column space remains a text hit area.
|
|
593
|
-
// Apply vertical alignment to the wrapper contents rather than shrinking the wrapper itself.
|
|
594
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
595
|
-
'&[data-valign="middle"] > [data-layout-content], &[data-valign="bottom"] > [data-layout-content]': {
|
|
596
|
-
display: 'flex',
|
|
597
|
-
flexDirection: 'column'
|
|
598
|
-
},
|
|
599
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
600
|
-
'&[data-valign="middle"] > [data-layout-content]': {
|
|
601
|
-
justifyContent: 'center'
|
|
602
|
-
},
|
|
603
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
604
|
-
'&[data-valign="bottom"] > [data-layout-content]': {
|
|
605
|
-
justifyContent: 'flex-end'
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
// hide separator when element is dragging on top of a layout column
|
|
611
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
612
|
-
'[data-blocks-drop-target-container] ~ [data-layout-column] > [data-layout-content]::before': {
|
|
613
|
-
display: 'none'
|
|
614
|
-
},
|
|
615
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
616
|
-
'.fabric-editor--full-width-mode .ProseMirror': {
|
|
617
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
618
|
-
'[data-layout-section]': {
|
|
619
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
620
|
-
'.pm-table-container': {
|
|
621
|
-
margin: '0 2px'
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Base styles overrides for layout columns when advanced layouts experiment is on
|
|
629
|
-
*/
|
|
630
|
-
/**
|
|
631
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
632
|
-
* If you need to make changes here, also update the corresponding style in
|
|
633
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
634
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
635
|
-
*/
|
|
636
|
-
var layoutBaseStylesAdvanced = exports.layoutBaseStylesAdvanced = (0, _react.css)({
|
|
637
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
638
|
-
'.ProseMirror [data-layout-section] [data-layout-column]': {
|
|
639
|
-
border: 0
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* Spacing overrides for nested drag-and-drop
|
|
645
|
-
*/
|
|
646
|
-
// TODO: EDF-123 - Migrate away from gridSize
|
|
647
|
-
// Recommendation: Replace directly with 7px
|
|
648
|
-
// Ignored via go/ees007
|
|
649
|
-
/**
|
|
650
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
651
|
-
* If you need to make changes here, also update the corresponding style in
|
|
652
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
653
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
654
|
-
*/
|
|
655
|
-
var layoutBaseStylesNestedDnd = exports.layoutBaseStylesNestedDnd = (0, _react.css)({
|
|
656
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
657
|
-
'.ProseMirror [data-layout-section]': {
|
|
658
|
-
margin: "var(--ds-space-100, 8px)".concat(" -20px 0")
|
|
659
|
-
},
|
|
660
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
661
|
-
'.ProseMirror [data-layout-section] [data-layout-column]': {
|
|
662
|
-
padding: '12px 20px'
|
|
663
|
-
}
|
|
664
|
-
});
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* Spacing overrides for nested drag-and-drop,
|
|
668
|
-
* excluding layouts inside bodied sync blocks
|
|
669
|
-
*/
|
|
670
|
-
/**
|
|
671
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
672
|
-
* If you need to make changes here, also update the corresponding style in
|
|
673
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
674
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
675
|
-
*/
|
|
676
|
-
var layoutBaseStylesNestedDndExcludingBodiedSync = exports.layoutBaseStylesNestedDndExcludingBodiedSync = (0, _react.css)({
|
|
677
|
-
// Apply -20px margin to all sections
|
|
678
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
679
|
-
'.ProseMirror [data-layout-section]': {
|
|
680
|
-
margin: "var(--ds-space-100, 8px)".concat(" -20px 0")
|
|
681
|
-
},
|
|
682
|
-
// Reset to default margin when inside bodied sync block
|
|
683
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
684
|
-
'.ProseMirror [data-prosemirror-node-name="bodiedSyncBlock"] [data-layout-section]': {
|
|
685
|
-
margin: "var(--ds-space-100, 8px)".concat(" -12px 0")
|
|
686
|
-
},
|
|
687
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
688
|
-
'.ProseMirror [data-layout-section] [data-layout-column]': {
|
|
689
|
-
padding: '12px 20px'
|
|
690
|
-
}
|
|
691
|
-
});
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Layout in view mode styles for selected state when advanced layouts experiment is on.
|
|
695
|
-
*/
|
|
696
|
-
/**
|
|
697
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
698
|
-
* If you need to make changes here, also update the corresponding style in
|
|
699
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
700
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
701
|
-
*/
|
|
702
|
-
var layoutSelectedStylesForViewAdvanced = exports.layoutSelectedStylesForViewAdvanced = (0, _react.css)({
|
|
703
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
704
|
-
'.ProseMirror': {
|
|
705
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
706
|
-
'[data-layout-section], .layoutSectionView-content-wrap': (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, layoutSelectedSelector, {
|
|
707
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
708
|
-
'[data-layout-column]:not(:first-of-type) [data-layout-content]::before': {
|
|
709
|
-
borderLeft: 0
|
|
710
|
-
}
|
|
711
|
-
}), '&.selected.danger [data-layout-section]', {
|
|
712
|
-
boxShadow: "0 0 0 0 ".concat("var(--ds-border-danger, #E2483D)")
|
|
713
|
-
}), "&.".concat(akEditorSelectedNodeClassName, ":not(.danger) [data-layout-section]"), {
|
|
714
|
-
boxShadow: "0 0 0 0 ".concat("var(--ds-border-selected, #1868DB)")
|
|
715
|
-
})
|
|
716
|
-
}
|
|
717
|
-
});
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Layout in view mode styles for selected state when advanced layouts experiment is off.
|
|
721
|
-
*/
|
|
722
|
-
/**
|
|
723
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
724
|
-
* If you need to make changes here, also update the corresponding style in
|
|
725
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
726
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
727
|
-
*/
|
|
728
|
-
var layoutSelectedStylesForViewNotAdvanced = exports.layoutSelectedStylesForViewNotAdvanced = (0, _react.css)({
|
|
729
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
730
|
-
'.ProseMirror': {
|
|
731
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
732
|
-
'[data-layout-section], .layoutSectionView-content-wrap': {
|
|
733
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
734
|
-
'&.selected [data-layout-column], &:hover [data-layout-column]': {
|
|
735
|
-
border: 0
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
});
|
|
740
|
-
|
|
741
|
-
/*
|
|
742
|
-
* Layout in view mode styles, overrides over layout base styles
|
|
743
|
-
*/
|
|
744
|
-
/**
|
|
745
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
746
|
-
* If you need to make changes here, also update the corresponding style in
|
|
747
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
748
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
749
|
-
*/
|
|
750
|
-
var layoutStylesForView = exports.layoutStylesForView = (0, _react.css)({
|
|
751
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
752
|
-
'.ProseMirror': {
|
|
753
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
754
|
-
'[data-layout-section]': {
|
|
755
|
-
cursor: 'default',
|
|
756
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
757
|
-
'[data-layout-column]': {
|
|
758
|
-
border: 0
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
|
|
764
|
-
/*
|
|
765
|
-
* marginTop fixes for nested drag-and-drop
|
|
766
|
-
*/
|
|
767
|
-
/**
|
|
768
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
769
|
-
* If you need to make changes here, also update the corresponding style in
|
|
770
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
771
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
772
|
-
*/
|
|
773
|
-
var layoutColumnMartinTopFixes = exports.layoutColumnMartinTopFixes = (0, _react.css)({
|
|
774
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
775
|
-
'.ProseMirror [data-layout-section] [data-layout-column] > div': {
|
|
776
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
777
|
-
'> :nth-child(1 of :not(style, .ProseMirror-gapcursor, .ProseMirror-widget, span))': {
|
|
778
|
-
marginTop: 0
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
});
|