@atlaskit/editor-core 233.0.1 → 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 +16 -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/utils/extensions.js +1 -1
- 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/utils/extensions.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/utils/extensions.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +6 -5
- package/package.json +43 -43
- 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,343 +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.vanillaCaptionStyles = exports.mediaStyles = exports.mediaGroupStyles = exports.mediaDangerStyles = exports.mediaCaptionStyles = exports.mediaAlignmentStyles = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _mediaInline = require("@atlaskit/editor-common/media-inline");
|
|
11
|
-
var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
12
|
-
var _styles = require("@atlaskit/editor-common/styles");
|
|
13
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
|
-
var _classnames = require("@atlaskit/media-card/card/classnames");
|
|
15
|
-
var _cardConstants = require("@atlaskit/media-card/cardConstants");
|
|
16
|
-
var _inlinePlayerWrapperStyles = require("@atlaskit/media-card/inlinePlayerWrapperStyles");
|
|
17
|
-
var _selectionStyles = require("./selectionStyles");
|
|
18
|
-
var _ProseMirror, _css;
|
|
19
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
20
|
-
@repo/internal/deprecations/deprecation-ticket-required,
|
|
21
|
-
@atlaskit/ui-styling-standard/no-exported-styles */
|
|
22
|
-
var wrappedMediaBreakoutPoint = 410;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Reference Heights
|
|
26
|
-
*
|
|
27
|
-
* These heights enforce consistent sizes with media inline nodes due to
|
|
28
|
-
* inconsistencies with center aligned inline nodes and text.
|
|
29
|
-
*
|
|
30
|
-
* There is conversation about refactoring media inline nodes to conform to
|
|
31
|
-
* aligning correctly with the surrounding text.
|
|
32
|
-
*
|
|
33
|
-
* These constants originally came from `headingSizes` from the `theme` package
|
|
34
|
-
* and have been copied here to remove this package.
|
|
35
|
-
*/
|
|
36
|
-
var referenceHeights = {
|
|
37
|
-
p: 24 - 2,
|
|
38
|
-
h1: 32 + 4,
|
|
39
|
-
h2: 28 + 3,
|
|
40
|
-
h3: 24 + 1,
|
|
41
|
-
h4: 20 + 3,
|
|
42
|
-
h5: 16 + 4,
|
|
43
|
-
h6: 16 + 2
|
|
44
|
-
};
|
|
45
|
-
var inlineImageSelector = "> .mediaInlineView-content-wrap > .".concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME, ", > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .").concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME, ", > .").concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME, ", > :is(a, span[data-mark-type='border']) .").concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME);
|
|
46
|
-
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
50
|
-
* If you need to make changes here, also update the corresponding style in
|
|
51
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
52
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
53
|
-
*/
|
|
54
|
-
var mediaStyles = exports.mediaStyles = (0, _react.css)((_css = {
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
56
|
-
'.ProseMirror': (_ProseMirror = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ProseMirror, "li .".concat(_styles.richMediaClassName), {
|
|
57
|
-
margin: 0
|
|
58
|
-
}), '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
|
|
59
|
-
content: "''",
|
|
60
|
-
display: 'block',
|
|
61
|
-
height: 0
|
|
62
|
-
}), '&.ua-firefox', {
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
64
|
-
'.mediaSingleView-content-wrap': {
|
|
65
|
-
userSelect: 'none'
|
|
66
|
-
},
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
-
'.captionView-content-wrap': {
|
|
69
|
-
userSelect: 'text'
|
|
70
|
-
}
|
|
71
|
-
}), ".mediaSingleView-content-wrap[layout^='wrap-']", {
|
|
72
|
-
position: 'relative',
|
|
73
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
74
|
-
zIndex: _editorSharedStyles.akEditorWrappedNodeZIndex,
|
|
75
|
-
maxWidth: '100%',
|
|
76
|
-
/* overwrite default Prosemirror setting making it clear: both */
|
|
77
|
-
clear: 'inherit'
|
|
78
|
-
}), ".mediaSingleView-content-wrap[layout='center']", {
|
|
79
|
-
clear: 'both'
|
|
80
|
-
}), "table .".concat(_styles.richMediaClassName), {
|
|
81
|
-
marginTop: "var(--ds-space-150, 12px)",
|
|
82
|
-
marginBottom: "var(--ds-space-150, 12px)",
|
|
83
|
-
clear: 'both',
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
85
|
-
'&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
|
|
86
|
-
clear: 'none',
|
|
87
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
88
|
-
'&:first-child': {
|
|
89
|
-
marginTop: "var(--ds-space-150, 12px)"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}), ".".concat(_styles.richMediaClassName, ".image-wrap-right + .").concat(_styles.richMediaClassName, ".image-wrap-left"), {
|
|
93
|
-
clear: 'both'
|
|
94
|
-
}), ".".concat(_styles.richMediaClassName, ".image-wrap-left + .").concat(_styles.richMediaClassName, ".image-wrap-right, .").concat(_styles.richMediaClassName, ".image-wrap-right + .").concat(_styles.richMediaClassName, ".image-wrap-left, .").concat(_styles.richMediaClassName, ".image-wrap-left + .").concat(_styles.richMediaClassName, ".image-wrap-left, .").concat(_styles.richMediaClassName, ".image-wrap-right + .").concat(_styles.richMediaClassName, ".image-wrap-right"), {
|
|
95
|
-
marginRight: 0,
|
|
96
|
-
marginLeft: 0
|
|
97
|
-
}), "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
|
|
98
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
99
|
-
"div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
|
|
100
|
-
float: 'none',
|
|
101
|
-
overflow: 'auto',
|
|
102
|
-
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
103
|
-
}
|
|
104
|
-
}), "& [layout='full-width'] .".concat(_styles.richMediaClassName, ", & [layout='wide'] .").concat(_styles.richMediaClassName), {
|
|
105
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
106
|
-
marginLeft: '50%',
|
|
107
|
-
transform: 'translateX(-50%)'
|
|
108
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ProseMirror, ".media-extended-resize-experience[layout^='wrap-']", {
|
|
109
|
-
// override 'overflow: auto' when viewport <= 410 set by mediaSingleSharedStyle
|
|
110
|
-
// to prevent scroll bar
|
|
111
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
112
|
-
overflow: 'visible !important'
|
|
113
|
-
}), "& [layout^='wrap-'] + [layout^='wrap-']", (0, _defineProperty2.default)({
|
|
114
|
-
clear: 'none',
|
|
115
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
116
|
-
"& + p, & + div[class^='fabric-editor-align'], & + ul, & + ol, & + h1, & + h2, & + h3, & + h4, & + h5, & + h6": {
|
|
117
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
118
|
-
clear: 'both !important'
|
|
119
|
-
}
|
|
120
|
-
}, "& .".concat(_styles.richMediaClassName), {
|
|
121
|
-
marginLeft: 0,
|
|
122
|
-
marginRight: 0
|
|
123
|
-
})), ".".concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME), {
|
|
124
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
125
|
-
height: referenceHeights['p'],
|
|
126
|
-
transform: 'translateY(-2px)'
|
|
127
|
-
}), "h1", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
128
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
129
|
-
height: referenceHeights.h1,
|
|
130
|
-
transform: "translateY(-3px)"
|
|
131
|
-
})), "h2", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
132
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
133
|
-
height: referenceHeights.h2,
|
|
134
|
-
transform: "translateY(-3px)"
|
|
135
|
-
})), "h3", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
136
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
137
|
-
height: referenceHeights.h3,
|
|
138
|
-
transform: "translateY(-2px)"
|
|
139
|
-
})), "h4", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
140
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
141
|
-
height: referenceHeights.h4,
|
|
142
|
-
transform: "translateY(-2px)"
|
|
143
|
-
})), "h5", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
144
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
145
|
-
height: referenceHeights.h5,
|
|
146
|
-
transform: "translateY(-2px)"
|
|
147
|
-
})), "h6", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
148
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
149
|
-
height: referenceHeights.h6,
|
|
150
|
-
transform: "translateY(-2px)"
|
|
151
|
-
})), ".mediaSingleView-content-wrap[layout='wrap-left']", {
|
|
152
|
-
float: 'left'
|
|
153
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ProseMirror, ".mediaSingleView-content-wrap[layout='wrap-right']", {
|
|
154
|
-
float: 'right'
|
|
155
|
-
}), ".mediaSingleView-content-wrap[layout='wrap-right'] + .mediaSingleView-content-wrap[layout='wrap-left']", {
|
|
156
|
-
clear: 'both'
|
|
157
|
-
}), '& > .mediaSingleView-content-wrap', {
|
|
158
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
159
|
-
'.richMedia-resize-handle-right': {
|
|
160
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
161
|
-
marginRight: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPaddingWide, "px")
|
|
162
|
-
},
|
|
163
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
164
|
-
'.richMedia-resize-handle-left': {
|
|
165
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
166
|
-
marginLeft: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPaddingWide, "px")
|
|
167
|
-
}
|
|
168
|
-
}))
|
|
169
|
-
}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css, ".".concat(_styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT), {
|
|
170
|
-
padding: 0
|
|
171
|
-
}), '.richMedia-resize-handle-right, .richMedia-resize-handle-left', {
|
|
172
|
-
display: 'flex',
|
|
173
|
-
flexDirection: 'column',
|
|
174
|
-
/* vertical align */
|
|
175
|
-
justifyContent: 'center'
|
|
176
|
-
}), '.richMedia-resize-handle-right', {
|
|
177
|
-
alignItems: 'flex-end',
|
|
178
|
-
paddingRight: "var(--ds-space-150, 12px)",
|
|
179
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
180
|
-
marginRight: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPadding, "px")
|
|
181
|
-
}), '.richMedia-resize-handle-left', {
|
|
182
|
-
alignItems: 'flex-start',
|
|
183
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
184
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
185
|
-
marginLeft: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPadding, "px")
|
|
186
|
-
}), '.richMedia-resize-handle-right::after, .richMedia-resize-handle-left::after', {
|
|
187
|
-
content: "' '",
|
|
188
|
-
display: 'flex',
|
|
189
|
-
width: 3,
|
|
190
|
-
height: 64,
|
|
191
|
-
borderRadius: "var(--ds-radius-medium, 6px)"
|
|
192
|
-
}), ".".concat(_styles.richMediaClassName, ":hover .richMedia-resize-handle-left::after, .").concat(_styles.richMediaClassName, ":hover .richMedia-resize-handle-right::after"), {
|
|
193
|
-
background: "var(--ds-border, #0B120E24)"
|
|
194
|
-
}), ".".concat(_editorSharedStyles.akEditorSelectedNodeClassName, " .richMedia-resize-handle-right::after, .").concat(_editorSharedStyles.akEditorSelectedNodeClassName, " .richMedia-resize-handle-left::after, .").concat(_styles.richMediaClassName, " .richMedia-resize-handle-right:hover::after, .").concat(_styles.richMediaClassName, " .richMedia-resize-handle-left:hover::after, .").concat(_styles.richMediaClassName, ".is-resizing .richMedia-resize-handle-right::after, .").concat(_styles.richMediaClassName, ".is-resizing .richMedia-resize-handle-left::after"), {
|
|
195
|
-
background: "var(--ds-border-focused, #4688EC)"
|
|
196
|
-
}), '.__resizable_base__', {
|
|
197
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
198
|
-
left: 'unset !important',
|
|
199
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
200
|
-
width: 'auto !important',
|
|
201
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
202
|
-
height: 'auto !important'
|
|
203
|
-
}), '.danger > div > div > .media-card-frame, .danger > span > a', {
|
|
204
|
-
backgroundColor: "var(--ds-background-danger, #FFECEB)",
|
|
205
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
206
|
-
boxShadow: "0px 0px 0px ".concat(_editorSharedStyles.akEditorSelectedBorderBoldSize, "px, ", "var(--ds-border-danger, #E2483D)"),
|
|
207
|
-
transition: 'background-color 0s, box-shadow 0s'
|
|
208
|
-
}), '.danger', (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_styles.richMediaClassName, " .").concat(_classnames.fileCardImageViewSelector, "::after"), {
|
|
209
|
-
border: "1px solid ".concat("var(--ds-border-danger, #E2483D)")
|
|
210
|
-
}), ".".concat(_styles.richMediaClassName, " .").concat(_inlinePlayerWrapperStyles.inlinePlayerClassName, "::after"), {
|
|
211
|
-
border: "1px solid ".concat("var(--ds-border-danger, #E2483D)")
|
|
212
|
-
}), ".".concat(_styles.richMediaClassName, " .").concat(_cardConstants.newFileExperienceClassName), {
|
|
213
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
214
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)", " !important")
|
|
215
|
-
}), '.richMedia-resize-handle-right::after, .richMedia-resize-handle-left::after', {
|
|
216
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
217
|
-
background: "var(--ds-icon-danger, #C9372C)".concat(" !important")
|
|
218
|
-
}), '.resizer-handle-thumb', {
|
|
219
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
220
|
-
background: "var(--ds-icon-danger, #C9372C)".concat(" !important")
|
|
221
|
-
}), 'div div .media-card-frame, .inlineCardView-content-wrap > span > a', {
|
|
222
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)",
|
|
223
|
-
transition: "background-color 0s"
|
|
224
|
-
}), 'div div .media-card-frame::after', {
|
|
225
|
-
boxShadow: 'none'
|
|
226
|
-
})), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_css, '.warning', (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_styles.richMediaClassName, " .").concat(_classnames.fileCardImageViewSelector, "::after"), {
|
|
227
|
-
border: "1px solid ".concat("var(--ds-border-warning, #E06C00)")
|
|
228
|
-
}), ".".concat(_styles.richMediaClassName, " .").concat(_inlinePlayerWrapperStyles.inlinePlayerClassName, "::after"), {
|
|
229
|
-
border: "1px solid ".concat("var(--ds-border-warning, #E06C00)")
|
|
230
|
-
}), ".".concat(_styles.richMediaClassName, " .").concat(_cardConstants.newFileExperienceClassName), {
|
|
231
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
232
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-warning, #E06C00)", " !important")
|
|
233
|
-
}), '.resizer-handle-thumb', {
|
|
234
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
235
|
-
background: "var(--ds-icon-warning, #E06C00)".concat(" !important")
|
|
236
|
-
})), '.media-filmstrip-list-item', {
|
|
237
|
-
cursor: 'pointer'
|
|
238
|
-
}), ".mediaGroupView-content-wrap.".concat(_editorSharedStyles.akEditorSelectedNodeClassName, " #newFileExperienceWrapper"), {
|
|
239
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
240
|
-
boxShadow: _editorSharedStyles.akEditorSelectedBoxShadow
|
|
241
|
-
}), '.ak-editor-no-interaction #newFileExperienceWrapper', {
|
|
242
|
-
boxShadow: 'none'
|
|
243
|
-
})));
|
|
244
|
-
/**
|
|
245
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
246
|
-
* If you need to make changes here, also update the corresponding style in
|
|
247
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
248
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
249
|
-
*/
|
|
250
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
251
|
-
var mediaDangerStyles = exports.mediaDangerStyles = (0, _react.css)({
|
|
252
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
253
|
-
'.ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".mediaInlineView-content-wrap.".concat(_editorSharedStyles.akEditorSelectedNodeClassName, ".danger"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, " .".concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME), [_selectionStyles.dangerBorderStyles]), '>span> span[role="button"]', [_selectionStyles.dangerBorderStyles])), ".mediaGroupView-content-wrap.danger #newFileExperienceWrapper",
|
|
254
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
255
|
-
[_selectionStyles.dangerBorderStyles])
|
|
256
|
-
});
|
|
257
|
-
/**
|
|
258
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
259
|
-
* If you need to make changes here, also update the corresponding style in
|
|
260
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
261
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
262
|
-
*/
|
|
263
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
264
|
-
var mediaGroupStyles = exports.mediaGroupStyles = (0, _react.css)({
|
|
265
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
266
|
-
'.mediaGroupView-content-wrap ul': {
|
|
267
|
-
padding: 0
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
/**
|
|
271
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
272
|
-
* If you need to make changes here, also update the corresponding style in
|
|
273
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
274
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
275
|
-
*/
|
|
276
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
277
|
-
var mediaAlignmentStyles = exports.mediaAlignmentStyles = (0, _react.css)({
|
|
278
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
279
|
-
'.fabric-editor-block-mark[class^="fabric-editor-align"]': {
|
|
280
|
-
// It was `clear: none !important` before, but it was causing typescript errors
|
|
281
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
282
|
-
clear: 'none'
|
|
283
|
-
},
|
|
284
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
285
|
-
'.fabric-editor-align-end': {
|
|
286
|
-
textAlign: 'right'
|
|
287
|
-
},
|
|
288
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
289
|
-
'.fabric-editor-align-start': {
|
|
290
|
-
textAlign: 'left'
|
|
291
|
-
},
|
|
292
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
293
|
-
'.fabric-editor-align-center': {
|
|
294
|
-
textAlign: 'center'
|
|
295
|
-
},
|
|
296
|
-
// For FullPage only when inside a table
|
|
297
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
298
|
-
'.fabric-editor--full-width-mode': {
|
|
299
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
300
|
-
'.pm-table-container': {
|
|
301
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
302
|
-
'.code-block, .extension-container, .multiBodiedExtension--container': {
|
|
303
|
-
maxWidth: '100%'
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Styles for VanillaCaptionNodeView — gated behind platform_editor_vanilla_node_views_phase1.
|
|
311
|
-
* Applied in EditorContentContainerEmotion - will be removed as a part of compiled upgrade.
|
|
312
|
-
*/
|
|
313
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
314
|
-
var vanillaCaptionStyles = exports.vanillaCaptionStyles = (0, _react.css)({
|
|
315
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
316
|
-
'.ProseMirror': {
|
|
317
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
318
|
-
'[data-media-caption]': {
|
|
319
|
-
marginTop: "var(--ds-space-100, 8px)",
|
|
320
|
-
position: 'relative'
|
|
321
|
-
},
|
|
322
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
323
|
-
'.captionView-content-wrap': {
|
|
324
|
-
textAlign: 'center',
|
|
325
|
-
color: "var(--ds-text-subtle, #505258)"
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
332
|
-
* If you need to make changes here, also update the corresponding style in
|
|
333
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
334
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
335
|
-
*/
|
|
336
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
337
|
-
var mediaCaptionStyles = exports.mediaCaptionStyles = (0, _react.css)({
|
|
338
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
339
|
-
'.mediaSingleView-content-wrap': (0, _defineProperty2.default)({}, "span#".concat(_mediaSingle.CAPTION_PLACEHOLDER_ID), {
|
|
340
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
341
|
-
fontSize: 'var(--ak-editor-base-font-size)'
|
|
342
|
-
})
|
|
343
|
-
});
|
|
@@ -1,273 +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.mentionsStyles = exports.mentionsSelectionStyles = exports.mentionNodeStyles = exports.mentionDangerStyles = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _mention = require("@atlaskit/editor-common/mention");
|
|
11
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
|
-
var _selectionStyles = require("./selectionStyles");
|
|
13
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
14
|
-
@repo/internal/deprecations/deprecation-ticket-required,
|
|
15
|
-
@atlaskit/ui-styling-standard/no-exported-styles */
|
|
16
|
-
|
|
17
|
-
/* need to specify dark text colour because personal mentions
|
|
18
|
-
(in dark blue) have white text by default */
|
|
19
|
-
var mentionsSelectedColor = (0, _react.css)({
|
|
20
|
-
color: "var(--ds-text-subtle, #505258)"
|
|
21
|
-
});
|
|
22
|
-
var mentionRunShimmer = (0, _react.keyframes)({
|
|
23
|
-
from: {
|
|
24
|
-
backgroundPosition: '200% 0'
|
|
25
|
-
},
|
|
26
|
-
to: {
|
|
27
|
-
backgroundPosition: '-200% 0'
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
32
|
-
* If you need to make changes here, also update the corresponding style in
|
|
33
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
34
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
35
|
-
*/
|
|
36
|
-
var mentionsStyles = exports.mentionsStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_mention.MentionSharedCssClassName.MENTION_CONTAINER), (0, _defineProperty2.default)({}, "&.".concat(_editorSharedStyles.akEditorSelectedNodeClassName, " [data-mention-id] > span"), [
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
38
|
-
_selectionStyles.boxShadowSelectionStyles,
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
40
|
-
_selectionStyles.backgroundSelectionStyles, mentionsSelectedColor])), '.danger', (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_mention.MentionSharedCssClassName.MENTION_CONTAINER, ".").concat(_editorSharedStyles.akEditorSelectedNodeClassName), {
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
42
|
-
'> span > span > span': {
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
44
|
-
boxShadow: "0 0 0 ".concat(_editorSharedStyles.akEditorSelectedBorderSize, "px ").concat(_editorSharedStyles.akEditorDeleteBorder),
|
|
45
|
-
backgroundColor: "var(--ds-background-danger, #FFECEB)"
|
|
46
|
-
}
|
|
47
|
-
}), ".".concat(_mention.MentionSharedCssClassName.MENTION_CONTAINER, " > span > span > span"), {
|
|
48
|
-
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
49
|
-
color: "var(--ds-text-subtle, #505258)"
|
|
50
|
-
})));
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
53
|
-
* If you need to make changes here, also update the corresponding style in
|
|
54
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
55
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
56
|
-
*/
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
58
|
-
var mentionNodeStyles = exports.mentionNodeStyles = (0, _react.css)({
|
|
59
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Scoped to mention node view helpers.
|
|
60
|
-
'.mentionNodeViewAddZeroWidthSpace': {
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Add a CSS-escaped zero-width space after the helper.
|
|
62
|
-
'&::after': {
|
|
63
|
-
content: "'\\200B'"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
// Show diff: mention attr change highlight. Keep this with mention node styles so the
|
|
67
|
-
// highlight targets the mention primitive's rounded shape.
|
|
68
|
-
// The ON cohort of platform_editor_show_diff_color_scheme_refactor sets
|
|
69
|
-
// --show-diff-atomic-inline-changed-border-color inline, overriding the table below; the OFF
|
|
70
|
-
// cohort picks its colour with the `-traditional` class. Drop the table at cleanup (EDITOR-8281).
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
72
|
-
'.show-diff-atomic-inline-changed-mention': {
|
|
73
|
-
'--show-diff-atomic-inline-changed-border-color': "var(--ds-border-accent-purple, #AF59E1)"
|
|
74
|
-
},
|
|
75
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
76
|
-
'.show-diff-atomic-inline-changed-mention.show-diff-atomic-inline-changed-traditional': {
|
|
77
|
-
'--show-diff-atomic-inline-changed-border-color': "var(--ds-border-accent-green, #22A06B)"
|
|
78
|
-
},
|
|
79
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
80
|
-
'.show-diff-atomic-inline-changed-mention .editor-mention-primitive': {
|
|
81
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
82
|
-
boxShadow: "0 0 0 2px var(--show-diff-atomic-inline-changed-border-color, ".concat("var(--ds-border-accent-purple, #AF59E1)", ")")
|
|
83
|
-
},
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
85
|
-
'.editor-mention-primitive': {
|
|
86
|
-
display: 'inline',
|
|
87
|
-
borderRadius: "var(--ds-radius-full, 9999px)",
|
|
88
|
-
cursor: 'pointer',
|
|
89
|
-
padding: '1px 0.3em 1px 0.23em',
|
|
90
|
-
// To match `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx` implementation
|
|
91
|
-
// we match the line height exactly
|
|
92
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
93
|
-
lineHeight: '1.714',
|
|
94
|
-
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
95
|
-
wordBreak: 'break-word',
|
|
96
|
-
background: "var(--ds-background-neutral, #0515240F)",
|
|
97
|
-
border: '1px solid transparent',
|
|
98
|
-
color: "var(--ds-text-subtle, #505258)",
|
|
99
|
-
'&:hover': {
|
|
100
|
-
background: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
101
|
-
},
|
|
102
|
-
'&:active': {
|
|
103
|
-
background: "var(--ds-background-neutral-pressed, #080F214A)"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Vanilla mention NodeView styles are scoped under the editor container.
|
|
107
|
-
'.editor-mention-primitive-with-avatar': {
|
|
108
|
-
padding: '1px 0.3em 1px 0.23em'
|
|
109
|
-
},
|
|
110
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Vanilla mention NodeView styles are scoped under the editor container.
|
|
111
|
-
'.editor-mention-avatar': {
|
|
112
|
-
display: 'inline-flex',
|
|
113
|
-
// Track the inherited mention text size so avatars remain proportional in headings.
|
|
114
|
-
width: '1em',
|
|
115
|
-
height: '1em',
|
|
116
|
-
alignItems: 'center',
|
|
117
|
-
justifyContent: 'center',
|
|
118
|
-
flexShrink: 0,
|
|
119
|
-
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
120
|
-
overflow: 'hidden',
|
|
121
|
-
borderRadius: "var(--ds-radius-full, 9999px)",
|
|
122
|
-
verticalAlign: '-0.125em'
|
|
123
|
-
},
|
|
124
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Vanilla mention NodeView styles are scoped under the editor container.
|
|
125
|
-
'.editor-mention-avatar-fallback': {
|
|
126
|
-
verticalAlign: '0.05em'
|
|
127
|
-
},
|
|
128
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Vanilla mention NodeView styles are scoped under the editor container.
|
|
129
|
-
'.editor-mention-avatar-agent': {
|
|
130
|
-
borderRadius: 0,
|
|
131
|
-
clipPath: 'polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%)'
|
|
132
|
-
},
|
|
133
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Vanilla mention NodeView styles are scoped under the editor container.
|
|
134
|
-
'.editor-mention-avatar-image': {
|
|
135
|
-
display: 'block',
|
|
136
|
-
width: '100%',
|
|
137
|
-
height: '100%',
|
|
138
|
-
objectFit: 'cover'
|
|
139
|
-
},
|
|
140
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
141
|
-
'.editor-mention-primitive.mention-restricted': {
|
|
142
|
-
background: 'transparent',
|
|
143
|
-
border: "1px solid ".concat("var(--ds-border-bold, #7D818A)"),
|
|
144
|
-
color: "var(--ds-text, #292A2E)",
|
|
145
|
-
'&:hover': {
|
|
146
|
-
background: 'transparent'
|
|
147
|
-
},
|
|
148
|
-
'&:active': {
|
|
149
|
-
background: 'transparent'
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
153
|
-
'.editor-mention-primitive.mention-self': {
|
|
154
|
-
background: "var(--ds-background-brand-bold, #1868DB)",
|
|
155
|
-
border: '1px solid transparent',
|
|
156
|
-
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
157
|
-
'&:hover': {
|
|
158
|
-
background: "var(--ds-background-brand-bold-hovered, #1558BC)"
|
|
159
|
-
},
|
|
160
|
-
'&:active': {
|
|
161
|
-
background: "var(--ds-background-brand-bold-pressed, #144794)"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
// Disabled variant — mirrors `MentionType.DISABLED` in
|
|
165
|
-
// `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx`.
|
|
166
|
-
// Hover / active states are intentionally flat: a disabled chip should
|
|
167
|
-
// not respond to mouse interaction. The chip is still keyboard-focusable
|
|
168
|
-
// (see `MentionNodeView.setClassList`) so the focus ring is still
|
|
169
|
-
// allowed to render via `:focus-visible`.
|
|
170
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
171
|
-
'.editor-mention-primitive.mention-disabled': {
|
|
172
|
-
background: "var(--ds-background-disabled, #0515240F)",
|
|
173
|
-
border: '1px solid transparent',
|
|
174
|
-
color: "var(--ds-text-disabled, #080F214A)",
|
|
175
|
-
cursor: 'default',
|
|
176
|
-
'&:hover': {
|
|
177
|
-
background: "var(--ds-background-disabled, #0515240F)"
|
|
178
|
-
},
|
|
179
|
-
'&:active': {
|
|
180
|
-
background: "var(--ds-background-disabled, #0515240F)"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
// Agent mention run-state styles. The 'analysing' state changes the chip/text to a shimmer, other
|
|
184
|
-
// states will still render the default chip/text.
|
|
185
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
186
|
-
'.agent-mention-analysing-state .editor-mention-primitive': {
|
|
187
|
-
// Light mode variant
|
|
188
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
189
|
-
backgroundImage: "linear-gradient(90deg, #EBEBEB 35%, ".concat("var(--ds-surface-hovered, #F0F1F2)", " 45%, ", "var(--ds-surface-hovered, #F0F1F2)", " 55%, #EBEBEB 65%)"),
|
|
190
|
-
backgroundSize: '200% 100%',
|
|
191
|
-
animationName: mentionRunShimmer,
|
|
192
|
-
animationDuration: '2.5s',
|
|
193
|
-
animationIterationCount: 'infinite',
|
|
194
|
-
animationTimingFunction: 'linear',
|
|
195
|
-
'@media (prefers-reduced-motion: reduce)': {
|
|
196
|
-
animation: 'none'
|
|
197
|
-
},
|
|
198
|
-
// Dark mode override for the agent mention pill shimmer
|
|
199
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
200
|
-
'html[data-color-mode=dark] &': {
|
|
201
|
-
backgroundImage: "linear-gradient(90deg, ".concat("var(--ds-surface-pressed, #DDDEE1)", " 35%, ", "var(--ds-surface-raised, #FFFFFF)", " 45%, ", "var(--ds-surface-raised, #FFFFFF)", " 55%, ", "var(--ds-surface-pressed, #DDDEE1)", " 65%)")
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
205
|
-
'.agent-mention-analysing-state .editor-mention-text': {
|
|
206
|
-
backgroundImage: "linear-gradient(90deg, ".concat("var(--ds-text, #292A2E)", " 35%, ", "var(--ds-text-subtle, #505258)", " 45%, ", "var(--ds-background-accent-gray-subtler-hovered, #B7B9BE)", " 50%, ", "var(--ds-text-subtle, #505258)", " 55%, ", "var(--ds-text, #292A2E)", " 65%)"),
|
|
207
|
-
backgroundSize: '200% 100%',
|
|
208
|
-
WebkitBackgroundClip: 'text',
|
|
209
|
-
backgroundClip: 'text',
|
|
210
|
-
WebkitTextFillColor: 'transparent',
|
|
211
|
-
color: 'transparent',
|
|
212
|
-
animationName: mentionRunShimmer,
|
|
213
|
-
animationDuration: '2.5s',
|
|
214
|
-
animationIterationCount: 'infinite',
|
|
215
|
-
animationTimingFunction: 'linear',
|
|
216
|
-
'@media (prefers-reduced-motion: reduce)': {
|
|
217
|
-
animation: 'none'
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
// This is mentions styles for mentions selection styles based on the vanilla node view
|
|
223
|
-
/**
|
|
224
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
225
|
-
* If you need to make changes here, also update the corresponding style in
|
|
226
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
227
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
228
|
-
*/
|
|
229
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
230
|
-
var mentionsSelectionStyles = exports.mentionsSelectionStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
231
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
232
|
-
'.danger': {
|
|
233
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
234
|
-
'.editor-mention-primitive': {
|
|
235
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
236
|
-
boxShadow: "0 0 0 ".concat(_editorSharedStyles.akEditorSelectedBorderSize, "px ").concat(_editorSharedStyles.akEditorDeleteBorder),
|
|
237
|
-
backgroundColor: "var(--ds-background-danger, #FFECEB)"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}, ".".concat(_editorSharedStyles.akEditorSelectedNodeClassName), {
|
|
241
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
242
|
-
'> .editor-mention-primitive, > .editor-mention-primitive.mention-self, > .editor-mention-primitive.mention-restricted':
|
|
243
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values,
|
|
244
|
-
[
|
|
245
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
246
|
-
_selectionStyles.backgroundSelectionStyles,
|
|
247
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
248
|
-
_selectionStyles.hideNativeBrowserTextSelectionStyles, mentionsSelectedColor]
|
|
249
|
-
}), ".".concat(_editorSharedStyles.akEditorSelectedNodeClassName, ":not(.search-match-block)"), {
|
|
250
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
251
|
-
'> .editor-mention-primitive, > .editor-mention-primitive.mention-self, > .editor-mention-primitive.mention-restricted':
|
|
252
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values,
|
|
253
|
-
[
|
|
254
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
255
|
-
_selectionStyles.boxShadowSelectionStyles]
|
|
256
|
-
}));
|
|
257
|
-
/**
|
|
258
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
259
|
-
* If you need to make changes here, also update the corresponding style in
|
|
260
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
261
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
262
|
-
*/
|
|
263
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
264
|
-
var mentionDangerStyles = exports.mentionDangerStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_editorSharedStyles.akEditorSelectedNodeClassName, ":not(.search-match-block).danger"), {
|
|
265
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
266
|
-
'> .editor-mention-primitive, > .editor-mention-primitive.mention-self, > .editor-mention-primitive.mention-restricted':
|
|
267
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values,
|
|
268
|
-
[
|
|
269
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
270
|
-
_selectionStyles.dangerBorderStyles,
|
|
271
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
272
|
-
_selectionStyles.dangerBackgroundStyles]
|
|
273
|
-
}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.overflowShadowStyles = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
9
|
-
@repo/internal/deprecations/deprecation-ticket-required,
|
|
10
|
-
@atlaskit/ui-styling-standard/no-exported-styles */
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
14
|
-
* If you need to make changes here, also update the corresponding style in
|
|
15
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
16
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
17
|
-
*/
|
|
18
|
-
var overflowShadowStyles = exports.overflowShadowStyles = (0, _react.css)({
|
|
19
|
-
backgroundImage: "\n\t\tlinear-gradient(\n\t\t\tto right,\n\t\t\t".concat("var(--ds-background-neutral, #0515240F)", " ", "var(--ds-space-300, 24px)", ",\n\t\t\ttransparent ", "var(--ds-space-300, 24px)", "\n\t\t),\n\t\tlinear-gradient(\n\t\t\tto right,\n\t\t\t", "var(--ds-surface-raised, #FFFFFF)", " ", "var(--ds-space-300, 24px)", ",\n\t\t\ttransparent ", "var(--ds-space-300, 24px)", "\n\t\t),\n\t\tlinear-gradient(\n\t\t\tto left,\n\t\t\t", "var(--ds-background-neutral, #0515240F)", " ", "var(--ds-space-100, 8px)", ",\n\t\t\ttransparent ", "var(--ds-space-100, 8px)", "\n\t\t),\n\t\tlinear-gradient(\n\t\t\tto left,\n\t\t\t", "var(--ds-surface-raised, #FFFFFF)", " ", "var(--ds-space-100, 8px)", ",\n\t\t\ttransparent ", "var(--ds-space-100, 8px)", "\n\t\t),\n\t\tlinear-gradient(\n\t\t\tto left,\n\t\t\t", "var(--ds-shadow-overflow-spread, #1E1F2129)", " 0,\n\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t),\n\t\tlinear-gradient(\n\t\t\tto left,\n\t\t\t", "var(--ds-shadow-overflow-perimeter, #1E1F211f)", " 0,\n\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t),\n\t\tlinear-gradient(\n\t\t\tto right,\n\t\t\t", "var(--ds-shadow-overflow-spread, #1E1F2129)", " 0,\n\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t),\n\t\tlinear-gradient(\n\t\t\tto right,\n\t\t\t", "var(--ds-shadow-overflow-perimeter, #1E1F211f)", " 0,\n\t\t\t", "var(--ds-UNSAFE-transparent, transparent)", " ", "var(--ds-space-100, 8px)", "\n\t\t)\n\t")
|
|
20
|
-
});
|