@atlaskit/editor-core 207.3.0 → 207.4.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 +13 -0
- package/dist/cjs/presets/default.js +8 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +3 -3
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +230 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +8 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +4 -5
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +357 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +8 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +4 -4
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +224 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/presets/default.d.ts +14 -4
- package/dist/types/types/editor-props.d.ts +11 -10
- package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +1 -0
- package/dist/types-ts4.5/presets/default.d.ts +14 -4
- package/dist/types-ts4.5/types/editor-props.d.ts +11 -10
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 207.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#158380](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/158380)
|
|
8
|
+
[`6f655038684d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f655038684d2) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27746](ED-27746) - rewrite editor media CSS in
|
|
10
|
+
static emotion
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 207.3.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -47,6 +47,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
47
47
|
/**
|
|
48
48
|
* Note: The order that presets are added determines
|
|
49
49
|
* their placement in the editor toolbar
|
|
50
|
+
* @param options
|
|
51
|
+
* @example
|
|
50
52
|
*/
|
|
51
53
|
function createDefaultPreset(options) {
|
|
52
54
|
var _options$featureFlags, _options$featureFlags2;
|
|
@@ -73,6 +75,12 @@ function createDefaultPreset(options) {
|
|
|
73
75
|
})]).add([_codeBlock.codeBlockPlugin, options.codeBlock]);
|
|
74
76
|
return preset;
|
|
75
77
|
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @param props
|
|
82
|
+
* @example
|
|
83
|
+
*/
|
|
76
84
|
function useDefaultPreset(props) {
|
|
77
85
|
var preset = createDefaultPreset(props);
|
|
78
86
|
return [preset];
|
|
@@ -30,7 +30,6 @@ var _codeBlock = require("../ContentStyles/code-block");
|
|
|
30
30
|
var _date = require("../ContentStyles/date");
|
|
31
31
|
var _expand = require("../ContentStyles/expand");
|
|
32
32
|
var _extension = require("../ContentStyles/extension");
|
|
33
|
-
var _media = require("../ContentStyles/media");
|
|
34
33
|
var _panel2 = require("../ContentStyles/panel");
|
|
35
34
|
var _status = require("../ContentStyles/status");
|
|
36
35
|
var _tasksAndDecisions = require("../ContentStyles/tasks-and-decisions");
|
|
@@ -40,6 +39,7 @@ var _backgroundColorStyles = require("./styles/backgroundColorStyles");
|
|
|
40
39
|
var _embedCardStyles = require("./styles/embedCardStyles");
|
|
41
40
|
var _layout = require("./styles/layout");
|
|
42
41
|
var _link = require("./styles/link");
|
|
42
|
+
var _mediaStyles = require("./styles/mediaStyles");
|
|
43
43
|
var _rule = require("./styles/rule");
|
|
44
44
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
45
45
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
@@ -147,7 +147,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
147
147
|
|
|
148
148
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
149
149
|
var contentStyles = function contentStyles() {
|
|
150
|
-
return (0, _react2.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar
|
|
150
|
+
return (0, _react2.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
151
151
|
exposure: false
|
|
152
152
|
}) && vanillaMentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
153
153
|
exposure: false
|
|
@@ -161,7 +161,7 @@ var contentStyles = function contentStyles() {
|
|
|
161
161
|
exposure: false
|
|
162
162
|
}) && (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithVisualRefresh, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
163
163
|
exposure: false
|
|
164
|
-
}) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, _annotationStyles.annotationStyles, (0, _styles.smartCardStyles)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? _date.dateVanillaStyles : null, _date.dateStyles, _embedCardStyles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), fixBlockControlStylesSSR(),
|
|
164
|
+
}) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, _annotationStyles.annotationStyles, (0, _styles.smartCardStyles)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? _date.dateVanillaStyles : null, _date.dateStyles, _embedCardStyles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), fixBlockControlStylesSSR(), !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
165
165
|
};
|
|
166
166
|
var CommentEditorMargin = 14;
|
|
167
167
|
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.mediaStyles = 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 _styles = require("@atlaskit/editor-common/styles");
|
|
12
|
+
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
13
|
+
var _mediaCard = require("@atlaskit/media-card");
|
|
14
|
+
var _ProseMirror, _css; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
15
|
+
var wrappedMediaBreakoutPoint = 410;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Reference Heights
|
|
19
|
+
*
|
|
20
|
+
* These heights enforce consistent sizes with media inline nodes due to
|
|
21
|
+
* inconsistencies with center aligned inline nodes and text.
|
|
22
|
+
*
|
|
23
|
+
* There is conversation about refactoring media inline nodes to conform to
|
|
24
|
+
* aligning correctly with the surrounding text.
|
|
25
|
+
*
|
|
26
|
+
* These constants originally came from `headingSizes` from the `theme` package
|
|
27
|
+
* and have been copied here to remove this package.
|
|
28
|
+
*/
|
|
29
|
+
var referenceHeights = {
|
|
30
|
+
p: 24 - 2,
|
|
31
|
+
h1: 32 + 4,
|
|
32
|
+
h2: 28 + 3,
|
|
33
|
+
h3: 24 + 1,
|
|
34
|
+
h4: 20 + 3,
|
|
35
|
+
h5: 16 + 4,
|
|
36
|
+
h6: 16 + 2
|
|
37
|
+
};
|
|
38
|
+
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);
|
|
39
|
+
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles,@atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
41
|
+
var mediaStyles = exports.mediaStyles = (0, _react.css)((_css = {
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
43
|
+
'.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), {
|
|
44
|
+
margin: 0
|
|
45
|
+
}), '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
|
|
46
|
+
content: "''",
|
|
47
|
+
display: 'block',
|
|
48
|
+
height: 0
|
|
49
|
+
}), '&.ua-firefox', {
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
51
|
+
'.mediaSingleView-content-wrap': {
|
|
52
|
+
userSelect: 'none'
|
|
53
|
+
},
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
55
|
+
'.captionView-content-wrap': {
|
|
56
|
+
userSelect: 'text'
|
|
57
|
+
}
|
|
58
|
+
}), ".mediaSingleView-content-wrap[layout^='wrap-']", {
|
|
59
|
+
position: 'relative',
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
61
|
+
zIndex: _editorSharedStyles.akEditorWrappedNodeZIndex,
|
|
62
|
+
maxWidth: '100%',
|
|
63
|
+
/* overwrite default Prosemirror setting making it clear: both */
|
|
64
|
+
clear: 'inherit'
|
|
65
|
+
}), ".mediaSingleView-content-wrap[layout='center']", {
|
|
66
|
+
clear: 'both'
|
|
67
|
+
}), "table .".concat(_styles.richMediaClassName), {
|
|
68
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
69
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
70
|
+
clear: 'both',
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
+
'&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
|
|
73
|
+
clear: 'none',
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
75
|
+
'&:first-child': {
|
|
76
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}), ".".concat(_styles.richMediaClassName, ".image-wrap-right + .").concat(_styles.richMediaClassName, ".image-wrap-left"), {
|
|
80
|
+
clear: 'both'
|
|
81
|
+
}), ".".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"), {
|
|
82
|
+
marginRight: 0,
|
|
83
|
+
marginLeft: 0
|
|
84
|
+
}), "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
86
|
+
"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']": {
|
|
87
|
+
float: 'none',
|
|
88
|
+
overflow: 'auto',
|
|
89
|
+
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
90
|
+
}
|
|
91
|
+
}), "& [layout='full-width'] .".concat(_styles.richMediaClassName, ", & [layout='wide'] .").concat(_styles.richMediaClassName), {
|
|
92
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
93
|
+
marginLeft: '50%',
|
|
94
|
+
transform: 'translateX(-50%)'
|
|
95
|
+
}), (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-']", {
|
|
96
|
+
// override 'overflow: auto' when viewport <= 410 set by mediaSingleSharedStyle
|
|
97
|
+
// to prevent scroll bar
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
99
|
+
overflow: 'visible !important'
|
|
100
|
+
}), "& [layout^='wrap-'] + [layout^='wrap-']", (0, _defineProperty2.default)({
|
|
101
|
+
clear: 'none',
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
103
|
+
"& + p, & + div[class^='fabric-editor-align'], & + ul, & + ol, & + h1, & + h2, & + h3, & + h4, & + h5, & + h6": {
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
105
|
+
clear: 'both !important'
|
|
106
|
+
}
|
|
107
|
+
}, "& .".concat(_styles.richMediaClassName), {
|
|
108
|
+
marginLeft: 0,
|
|
109
|
+
marginRight: 0
|
|
110
|
+
})), ".".concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME), {
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
112
|
+
height: referenceHeights['p'],
|
|
113
|
+
transform: 'translateY(-2px)'
|
|
114
|
+
}), "h1", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
116
|
+
height: referenceHeights.h1,
|
|
117
|
+
transform: "translateY(-3px)"
|
|
118
|
+
})), "h2", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
120
|
+
height: referenceHeights.h2,
|
|
121
|
+
transform: "translateY(-3px)"
|
|
122
|
+
})), "h3", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
124
|
+
height: referenceHeights.h3,
|
|
125
|
+
transform: "translateY(-2px)"
|
|
126
|
+
})), "h4", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
128
|
+
height: referenceHeights.h4,
|
|
129
|
+
transform: "translateY(-2px)"
|
|
130
|
+
})), "h5", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
132
|
+
height: referenceHeights.h5,
|
|
133
|
+
transform: "translateY(-2px)"
|
|
134
|
+
})), "h6", (0, _defineProperty2.default)({}, inlineImageSelector, {
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
136
|
+
height: referenceHeights.h6,
|
|
137
|
+
transform: "translateY(-2px)"
|
|
138
|
+
})), ".mediaSingleView-content-wrap[layout='wrap-left']", {
|
|
139
|
+
float: 'left'
|
|
140
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ProseMirror, ".mediaSingleView-content-wrap[layout='wrap-right']", {
|
|
141
|
+
float: 'right'
|
|
142
|
+
}), ".mediaSingleView-content-wrap[layout='wrap-right'] + .mediaSingleView-content-wrap[layout='wrap-left']", {
|
|
143
|
+
clear: 'both'
|
|
144
|
+
}), '& > .mediaSingleView-content-wrap', {
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
146
|
+
'.richMedia-resize-handle-right': {
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
148
|
+
marginRight: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPaddingWide, "px")
|
|
149
|
+
},
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
151
|
+
'.richMedia-resize-handle-left': {
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
153
|
+
marginLeft: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPaddingWide, "px")
|
|
154
|
+
}
|
|
155
|
+
}))
|
|
156
|
+
}, (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), {
|
|
157
|
+
padding: 0
|
|
158
|
+
}), '.richMedia-resize-handle-right, .richMedia-resize-handle-left', {
|
|
159
|
+
display: 'flex',
|
|
160
|
+
flexDirection: 'column',
|
|
161
|
+
/* vertical align */
|
|
162
|
+
justifyContent: 'center'
|
|
163
|
+
}), '.richMedia-resize-handle-right', {
|
|
164
|
+
alignItems: 'flex-end',
|
|
165
|
+
paddingRight: "var(--ds-space-150, 12px)",
|
|
166
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
167
|
+
marginRight: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPadding, "px")
|
|
168
|
+
}), '.richMedia-resize-handle-left', {
|
|
169
|
+
alignItems: 'flex-start',
|
|
170
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
172
|
+
marginLeft: "-".concat(_editorSharedStyles.akEditorMediaResizeHandlerPadding, "px")
|
|
173
|
+
}), '.richMedia-resize-handle-right::after, .richMedia-resize-handle-left::after', {
|
|
174
|
+
content: "' '",
|
|
175
|
+
display: 'flex',
|
|
176
|
+
width: 3,
|
|
177
|
+
height: 64,
|
|
178
|
+
borderRadius: 6
|
|
179
|
+
}), ".".concat(_styles.richMediaClassName, ":hover .richMedia-resize-handle-left::after, .").concat(_styles.richMediaClassName, ":hover .richMedia-resize-handle-right::after"), {
|
|
180
|
+
background: "var(--ds-border, #091E4224)"
|
|
181
|
+
}), ".".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"), {
|
|
182
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
183
|
+
}), '.__resizable_base__', {
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
185
|
+
left: 'unset !important',
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
187
|
+
width: 'auto !important',
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
189
|
+
height: 'auto !important'
|
|
190
|
+
}), '.danger > div > div > .media-card-frame, .danger > span > a', {
|
|
191
|
+
backgroundColor: "var(--ds-background-danger, #FFECEB)",
|
|
192
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
193
|
+
boxShadow: "0px 0px 0px ".concat(_editorSharedStyles.akEditorSelectedBorderBoldSize, "px, ", "var(--ds-border-danger, #E2483D)"),
|
|
194
|
+
transition: 'background-color 0s, box-shadow 0s'
|
|
195
|
+
}), '.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(_mediaCard.fileCardImageViewSelector, "::after"), {
|
|
196
|
+
border: "1px solid ".concat("var(--ds-border-danger, #E2483D)")
|
|
197
|
+
}), ".".concat(_styles.richMediaClassName, " .").concat(_mediaCard.inlinePlayerClassName, "::after"), {
|
|
198
|
+
border: "1px solid ".concat("var(--ds-border-danger, #E2483D)")
|
|
199
|
+
}), ".".concat(_styles.richMediaClassName, " .").concat(_mediaCard.newFileExperienceClassName), {
|
|
200
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
201
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)", " !important")
|
|
202
|
+
}), '.richMedia-resize-handle-right::after, .richMedia-resize-handle-left::after', {
|
|
203
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
204
|
+
background: "var(--ds-icon-danger, #C9372C)".concat(" !important")
|
|
205
|
+
}), '.resizer-handle-thumb', {
|
|
206
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
207
|
+
background: "var(--ds-icon-danger, #C9372C)".concat(" !important")
|
|
208
|
+
}), 'div div .media-card-frame, .inlineCardView-content-wrap > span > a', {
|
|
209
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)",
|
|
210
|
+
transition: "background-color 0s"
|
|
211
|
+
}), 'div div .media-card-frame::after', {
|
|
212
|
+
boxShadow: 'none'
|
|
213
|
+
})), (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(_mediaCard.fileCardImageViewSelector, "::after"), {
|
|
214
|
+
border: "1px solid ".concat("var(--ds-border-warning, #E56910)")
|
|
215
|
+
}), ".".concat(_styles.richMediaClassName, " .").concat(_mediaCard.inlinePlayerClassName, "::after"), {
|
|
216
|
+
border: "1px solid ".concat("var(--ds-border-warning, #E56910)")
|
|
217
|
+
}), ".".concat(_styles.richMediaClassName, " .").concat(_mediaCard.newFileExperienceClassName), {
|
|
218
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
219
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-warning, #E56910)", " !important")
|
|
220
|
+
}), '.resizer-handle-thumb', {
|
|
221
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
222
|
+
background: "var(--ds-icon-warning, #E56910)".concat(" !important")
|
|
223
|
+
})), '.media-filmstrip-list-item', {
|
|
224
|
+
cursor: 'pointer'
|
|
225
|
+
}), ".mediaGroupView-content-wrap.".concat(_editorSharedStyles.akEditorSelectedNodeClassName, " #newFileExperienceWrapper"), {
|
|
226
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
227
|
+
boxShadow: _editorSharedStyles.akEditorSelectedBoxShadow
|
|
228
|
+
}), '.ak-editor-no-interaction #newFileExperienceWrapper', {
|
|
229
|
+
boxShadow: 'none'
|
|
230
|
+
})));
|
|
@@ -39,6 +39,8 @@ import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
|
39
39
|
/**
|
|
40
40
|
* Note: The order that presets are added determines
|
|
41
41
|
* their placement in the editor toolbar
|
|
42
|
+
* @param options
|
|
43
|
+
* @example
|
|
42
44
|
*/
|
|
43
45
|
export function createDefaultPreset(options) {
|
|
44
46
|
var _options$featureFlags, _options$featureFlags2;
|
|
@@ -69,6 +71,12 @@ export function createDefaultPreset(options) {
|
|
|
69
71
|
}]).add([codeBlockPlugin, options.codeBlock]);
|
|
70
72
|
return preset;
|
|
71
73
|
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @param props
|
|
78
|
+
* @example
|
|
79
|
+
*/
|
|
72
80
|
export function useDefaultPreset(props) {
|
|
73
81
|
const preset = createDefaultPreset(props);
|
|
74
82
|
return [preset];
|
|
@@ -15,7 +15,7 @@ import { EmojiSharedCssClassName, defaultEmojiHeight } from '@atlaskit/editor-co
|
|
|
15
15
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
16
16
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
17
17
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
18
|
-
import { CodeBlockSharedCssClassName, GRID_GUTTER,
|
|
18
|
+
import { CodeBlockSharedCssClassName, GRID_GUTTER, SmartCardSharedCssClassName, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
19
19
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
20
20
|
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
21
21
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
@@ -31,7 +31,6 @@ import { codeBlockStyles } from '../ContentStyles/code-block';
|
|
|
31
31
|
import { dateStyles, dateVanillaStyles } from '../ContentStyles/date';
|
|
32
32
|
import { expandStyles } from '../ContentStyles/expand';
|
|
33
33
|
import { extensionStyles } from '../ContentStyles/extension';
|
|
34
|
-
import { mediaStyles } from '../ContentStyles/media';
|
|
35
34
|
import { panelStyles } from '../ContentStyles/panel';
|
|
36
35
|
import { statusStyles, vanillaStatusStyles } from '../ContentStyles/status';
|
|
37
36
|
import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh as vanillaDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh as vanillaDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles as vanillaDecisionStyles, vanillaTaskItemStyles } from '../ContentStyles/tasks-and-decisions';
|
|
@@ -41,6 +40,7 @@ import { backgroundColorStyles } from './styles/backgroundColorStyles';
|
|
|
41
40
|
import { embedCardStyles } from './styles/embedCardStyles';
|
|
42
41
|
import { layoutBaseStyles, layoutViewStyles } from './styles/layout';
|
|
43
42
|
import { linkStyles, linkStylesOld } from './styles/link';
|
|
43
|
+
import { mediaStyles } from './styles/mediaStyles';
|
|
44
44
|
import { ruleStyles } from './styles/rule';
|
|
45
45
|
const vanillaMentionsStyles = css({
|
|
46
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -407,7 +407,7 @@ const contentStyles = () => css`
|
|
|
407
407
|
|
|
408
408
|
${ruleStyles}
|
|
409
409
|
|
|
410
|
-
${mediaStyles
|
|
410
|
+
${mediaStyles}
|
|
411
411
|
|
|
412
412
|
${fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly}
|
|
413
413
|
${gapCursorStyles};
|
|
@@ -539,8 +539,7 @@ const contentStyles = () => css`
|
|
|
539
539
|
clear: both;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
.hyperlink-floating-toolbar
|
|
543
|
-
.${MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT} {
|
|
542
|
+
.hyperlink-floating-toolbar {
|
|
544
543
|
padding: 0;
|
|
545
544
|
}
|
|
546
545
|
|