@atlaskit/editor-core 207.11.1 → 207.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +54 -5
- package/dist/cjs/ui/EditorContentContainer/styles/telepointerStyles.js +207 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +54 -5
- package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +200 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +2 -2
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +54 -5
- package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +200 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/telepointerStyles.d.ts +3 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/telepointerStyles.d.ts +3 -0
- package/package.json +6 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 207.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#160456](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160456)
|
|
8
|
+
[`f1c9353c46649`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1c9353c46649) -
|
|
9
|
+
[ux] ED-28026 fix resize handle styles for pragmatic-dnd resizer
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 207.11.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
12
|
-
var _collab = require("@atlaskit/editor-common/collab");
|
|
13
12
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
14
13
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
15
14
|
var _styles2 = require("@atlaskit/editor-plugins/block-type/styles");
|
|
@@ -51,6 +50,7 @@ var _rule = require("./styles/rule");
|
|
|
51
50
|
var _shadowStyles = require("./styles/shadowStyles");
|
|
52
51
|
var _smartCardStyles = require("./styles/smartCardStyles");
|
|
53
52
|
var _tasksAndDecisionsStyles = require("./styles/tasksAndDecisionsStyles");
|
|
53
|
+
var _telepointerStyles = require("./styles/telepointerStyles");
|
|
54
54
|
var _textColorStyles = require("./styles/textColorStyles");
|
|
55
55
|
var _unsupportedStyles = require("./styles/unsupportedStyles");
|
|
56
56
|
var _whitespaceStyles = require("./styles/whitespaceStyles");
|
|
@@ -104,7 +104,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
104
104
|
|
|
105
105
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
106
106
|
var contentStyles = function contentStyles() {
|
|
107
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (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\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 // 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 ", "\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, _whitespaceStyles.whitespaceStyles, _styles.listsSharedStyles, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject2 || (_templateObject2 = (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)(_templateObject3 || (_templateObject3 = (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)(_templateObject4 || (_templateObject4 = (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, _codeBlockStyles.codeBlockStyles, (0, _styles2.blocktypeStyles)(), _codeMarkStyles.codeMarkStyles, _textColorStyles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, _list.listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ?
|
|
107
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (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\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 /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\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 // 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 ", "\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, _whitespaceStyles.whitespaceStyles, _styles.listsSharedStyles, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject2 || (_templateObject2 = (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)(_templateObject3 || (_templateObject3 = (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)(_templateObject4 || (_templateObject4 = (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, _codeBlockStyles.codeBlockStyles, (0, _styles2.blocktypeStyles)(), _codeMarkStyles.codeMarkStyles, _textColorStyles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, _list.listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _telepointerStyles.telepointerStyle : _telepointerStyles.telepointerStyleWithInitialOnly, _telepointerStyles.telepointerColorAndCommonStyle, _selection.gapCursorStyles, (0, _panel.panelStyles)(), _mentions.mentionsStyles, _tasksAndDecisionsStyles.tasksAndDecisionsStyles, _gridStyles.gridStyles, _blockMarksStyles.blockMarksStyles, _dateStyles.dateStyles, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
108
108
|
exposure: false
|
|
109
109
|
}) && _tasksAndDecisions.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
110
110
|
exposure: false
|
|
@@ -164,6 +164,57 @@ var resizerStyles = exports.resizerStyles = (0, _react.css)((0, _defineProperty2
|
|
|
164
164
|
|
|
165
165
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
166
166
|
var pragmaticResizerStyles = exports.pragmaticResizerStyles = (0, _react.css)({
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
168
|
+
'.fabric-editor-breakout-mark': {
|
|
169
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
170
|
+
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
172
|
+
'> .pm-breakout-resize-handle-left': {
|
|
173
|
+
left: '-12px'
|
|
174
|
+
},
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
176
|
+
'> .pm-breakout-resize-handle-right': {
|
|
177
|
+
right: '-12px'
|
|
178
|
+
},
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
180
|
+
'> .pm-breakout-resize-handle': {
|
|
181
|
+
height: 'calc(100% - 12px)'
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
185
|
+
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
187
|
+
'> .pm-breakout-resize-handle-left': {
|
|
188
|
+
left: '-32px'
|
|
189
|
+
},
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
191
|
+
'> .pm-breakout-resize-handle-right': {
|
|
192
|
+
right: '-32px'
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
196
|
+
'&:has([data-prosemirror-node-name="expand"])': {
|
|
197
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
198
|
+
'> .pm-breakout-resize-handle': {
|
|
199
|
+
height: 'calc(100% - 4px)'
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
203
|
+
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
205
|
+
'> .pm-breakout-resize-handle': {
|
|
206
|
+
height: 'calc(100% - 8px)'
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
// the first node in the document always has margin-top = 0
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
211
|
+
'&:has(.first-node-in-document)': {
|
|
212
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
213
|
+
'> .pm-breakout-resize-handle': {
|
|
214
|
+
height: '100%'
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
167
218
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
168
219
|
'.pm-breakout-resize-handle': {
|
|
169
220
|
position: 'relative',
|
|
@@ -172,7 +223,7 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = (0, _react.css)({
|
|
|
172
223
|
justifyContent: 'center',
|
|
173
224
|
height: '100%',
|
|
174
225
|
width: 7,
|
|
175
|
-
alignSelf: '
|
|
226
|
+
alignSelf: 'end',
|
|
176
227
|
gridRow: 1,
|
|
177
228
|
gridColumn: 1,
|
|
178
229
|
cursor: 'col-resize',
|
|
@@ -188,13 +239,11 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = (0, _react.css)({
|
|
|
188
239
|
},
|
|
189
240
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
190
241
|
'.pm-breakout-resize-handle-left': {
|
|
191
|
-
justifySelf: 'start'
|
|
192
|
-
left: -20
|
|
242
|
+
justifySelf: 'start'
|
|
193
243
|
},
|
|
194
244
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
195
245
|
'.pm-breakout-resize-handle-right': {
|
|
196
|
-
justifySelf: 'end'
|
|
197
|
-
right: -20
|
|
246
|
+
justifySelf: 'end'
|
|
198
247
|
},
|
|
199
248
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
200
249
|
'.pm-breakout-resize-handle-inner': {
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.telepointerStyleWithInitialOnly = exports.telepointerStyle = exports.telepointerColorAndCommonStyle = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
9
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-exported-styles */
|
|
10
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled */
|
|
11
|
+
|
|
12
|
+
var pulseIn = (0, _react.keyframes)({
|
|
13
|
+
'0%, 100%': {
|
|
14
|
+
transform: 'scaleX(0)',
|
|
15
|
+
opacity: 0
|
|
16
|
+
},
|
|
17
|
+
'13%': {
|
|
18
|
+
transform: 'scaleX(1.4) scaleY(1.4)',
|
|
19
|
+
opacity: 1
|
|
20
|
+
},
|
|
21
|
+
'20%, 85%': {
|
|
22
|
+
transform: 'scaleX(1) scaleY(1)',
|
|
23
|
+
opacity: 1
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
var pulseOut = (0, _react.keyframes)({
|
|
27
|
+
'0%, 90%, 100%': {
|
|
28
|
+
transform: 'scaleX(1)',
|
|
29
|
+
opacity: 1
|
|
30
|
+
},
|
|
31
|
+
'10%, 80%': {
|
|
32
|
+
transform: 'scaleX(0)',
|
|
33
|
+
opacity: 0
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var telepointerColorAndCommonStyle = exports.telepointerColorAndCommonStyle = (0, _react.css)({
|
|
37
|
+
'.ProseMirror .telepointer': {
|
|
38
|
+
position: 'relative',
|
|
39
|
+
transition: 'opacity 200ms',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
41
|
+
'&.telepointer-selection:not(.inlineNodeView)': {
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
43
|
+
lineHeight: 1.2,
|
|
44
|
+
pointerEvents: 'none',
|
|
45
|
+
userSelect: 'none'
|
|
46
|
+
},
|
|
47
|
+
'&.telepointer-dim': {
|
|
48
|
+
opacity: 0.2
|
|
49
|
+
},
|
|
50
|
+
'&.color-0': {
|
|
51
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
52
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-red-bolder, #C9372C)"
|
|
53
|
+
},
|
|
54
|
+
'&.color-1': {
|
|
55
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
56
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-blue-bolder, #0C66E4)"
|
|
57
|
+
},
|
|
58
|
+
'&.color-2': {
|
|
59
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
60
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-green-bolder, #1F845A)"
|
|
61
|
+
},
|
|
62
|
+
'&.color-3': {
|
|
63
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
64
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-yellow-bolder, #946F00)"
|
|
65
|
+
},
|
|
66
|
+
'&.color-4': {
|
|
67
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
68
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-purple-bolder, #6E5DC6)"
|
|
69
|
+
},
|
|
70
|
+
'&.color-5': {
|
|
71
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
72
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-magenta-bolder, #AE4787)"
|
|
73
|
+
},
|
|
74
|
+
'&.color-6': {
|
|
75
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
76
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-teal-bolder, #227D9B)"
|
|
77
|
+
},
|
|
78
|
+
'&.color-7': {
|
|
79
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
80
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-orange-bolder, #C25100)"
|
|
81
|
+
},
|
|
82
|
+
'&.color-8': {
|
|
83
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
84
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-lime-bolder, #5B7F24)"
|
|
85
|
+
},
|
|
86
|
+
'&.color-9': {
|
|
87
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
88
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-gray-bolder, #626F86)"
|
|
89
|
+
},
|
|
90
|
+
'&.color-10': {
|
|
91
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
92
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-blue-subtle, #579DFF)"
|
|
93
|
+
},
|
|
94
|
+
'&.color-11': {
|
|
95
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
96
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-red-subtle, #F87168)"
|
|
97
|
+
},
|
|
98
|
+
'&.color-12': {
|
|
99
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
100
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-orange-subtle, #FEA362)"
|
|
101
|
+
},
|
|
102
|
+
'&.color-13': {
|
|
103
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
104
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-yellow-subtle, #F5CD47)"
|
|
105
|
+
},
|
|
106
|
+
'&.color-14': {
|
|
107
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
108
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-green-subtle, #4BCE97)"
|
|
109
|
+
},
|
|
110
|
+
'&.color-15': {
|
|
111
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
112
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
113
|
+
},
|
|
114
|
+
'&.color-16': {
|
|
115
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
116
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-purple-subtle, #9F8FEF)"
|
|
117
|
+
},
|
|
118
|
+
'&.color-17': {
|
|
119
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
120
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-magenta-subtle, #E774BB)"
|
|
121
|
+
},
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
123
|
+
'html:not([data-color-mode=dark]) &': {
|
|
124
|
+
'--telepointer-participant-background-first-stop': '-850000%',
|
|
125
|
+
'--telepointer-participant-background-second-stop': '150000%'
|
|
126
|
+
},
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
128
|
+
'html[data-color-mode=dark] &': {
|
|
129
|
+
'--telepointer-participant-background-first-stop': '-800000%',
|
|
130
|
+
'--telepointer-participant-background-second-stop': '200000%'
|
|
131
|
+
},
|
|
132
|
+
'&[class*="color-"]': {
|
|
133
|
+
background: 'linear-gradient(to bottom, var(--telepointer-participant-bg-color) var(--telepointer-participant-background-first-stop), transparent var(--telepointer-participant-background-second-stop))',
|
|
134
|
+
'&::after': {
|
|
135
|
+
backgroundColor: 'var(--telepointer-participant-bg-color)',
|
|
136
|
+
color: 'var(--telepointer-participant-text-color)',
|
|
137
|
+
borderColor: 'var(--telepointer-participant-bg-color)'
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
var telepointerStyle = exports.telepointerStyle = (0, _react.css)({
|
|
143
|
+
'.ProseMirror .telepointer': {
|
|
144
|
+
'&.telepointer-selection-badge': {
|
|
145
|
+
'.telepointer-initial, .telepointer-fullname': {
|
|
146
|
+
position: 'absolute',
|
|
147
|
+
display: 'block',
|
|
148
|
+
userSelect: 'none',
|
|
149
|
+
whiteSpace: 'pre',
|
|
150
|
+
top: -14,
|
|
151
|
+
left: 0,
|
|
152
|
+
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
153
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
154
|
+
paddingRight: "var(--ds-space-050, 4px)",
|
|
155
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
156
|
+
borderRadius: '0 2px 2px 0'
|
|
157
|
+
},
|
|
158
|
+
'.telepointer-initial': {
|
|
159
|
+
opacity: 1,
|
|
160
|
+
transition: 'opacity 0.15s ease-out'
|
|
161
|
+
},
|
|
162
|
+
'.telepointer-fullname': {
|
|
163
|
+
opacity: 0,
|
|
164
|
+
transform: 'scaleX(0)',
|
|
165
|
+
transformOrigin: 'top left',
|
|
166
|
+
transition: 'transform 0.15s ease-out, opacity 0.15s ease-out'
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
'&.telepointer-pulse-animate': {
|
|
170
|
+
'.telepointer-initial': {
|
|
171
|
+
animation: "".concat(pulseOut, " 2s ease-in-out")
|
|
172
|
+
},
|
|
173
|
+
'.telepointer-fullname': {
|
|
174
|
+
animation: "".concat(pulseIn, " 2s ease-in-out")
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
'&:hover': {
|
|
178
|
+
'.telepointer-initial': {
|
|
179
|
+
opacity: 0,
|
|
180
|
+
transitionDelay: '150ms'
|
|
181
|
+
},
|
|
182
|
+
'.telepointer-fullname': {
|
|
183
|
+
transform: 'scaleX(1)',
|
|
184
|
+
opacity: 1,
|
|
185
|
+
zIndex: 1
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
var telepointerStyleWithInitialOnly = exports.telepointerStyleWithInitialOnly = (0, _react.css)({
|
|
191
|
+
'.ProseMirror .telepointer': {
|
|
192
|
+
'&.telepointer-selection-badge::after': {
|
|
193
|
+
content: 'attr(data-initial)',
|
|
194
|
+
position: 'absolute',
|
|
195
|
+
display: 'block',
|
|
196
|
+
top: -14,
|
|
197
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
198
|
+
fontSize: '0.5625rem',
|
|
199
|
+
padding: "var(--ds-space-025, 2px)",
|
|
200
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
201
|
+
left: 0,
|
|
202
|
+
borderRadius: '2px 2px 2px 0',
|
|
203
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
204
|
+
lineHeight: 'initial'
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
});
|
|
@@ -10,7 +10,6 @@ import React from 'react';
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
12
12
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
13
|
-
import { telepointerStyle, telepointerStyleWithInitialOnly } from '@atlaskit/editor-common/collab';
|
|
14
13
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
15
14
|
import { GRID_GUTTER, listsSharedStyles } from '@atlaskit/editor-common/styles';
|
|
16
15
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
@@ -52,6 +51,7 @@ import { ruleStyles } from './styles/rule';
|
|
|
52
51
|
import { shadowStyles } from './styles/shadowStyles';
|
|
53
52
|
import { linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
|
|
54
53
|
import { tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
54
|
+
import { telepointerColorAndCommonStyle, telepointerStyle, telepointerStyleWithInitialOnly } from './styles/telepointerStyles';
|
|
55
55
|
import { textColorStyles } from './styles/textColorStyles';
|
|
56
56
|
import { unsupportedStyles } from './styles/unsupportedStyles';
|
|
57
57
|
import { whitespaceStyles } from './styles/whitespaceStyles';
|
|
@@ -224,6 +224,10 @@ const contentStyles = () => css`
|
|
|
224
224
|
${mediaStyles}
|
|
225
225
|
|
|
226
226
|
${fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly}
|
|
227
|
+
|
|
228
|
+
/* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
229
|
+
${telepointerColorAndCommonStyle}
|
|
230
|
+
|
|
227
231
|
${gapCursorStyles};
|
|
228
232
|
|
|
229
233
|
${panelStyles()}
|
|
@@ -209,6 +209,57 @@ export const resizerStyles = css({
|
|
|
209
209
|
|
|
210
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
211
211
|
export const pragmaticResizerStyles = css({
|
|
212
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
213
|
+
'.fabric-editor-breakout-mark': {
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
215
|
+
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
216
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
217
|
+
'> .pm-breakout-resize-handle-left': {
|
|
218
|
+
left: '-12px'
|
|
219
|
+
},
|
|
220
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
221
|
+
'> .pm-breakout-resize-handle-right': {
|
|
222
|
+
right: '-12px'
|
|
223
|
+
},
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
225
|
+
'> .pm-breakout-resize-handle': {
|
|
226
|
+
height: 'calc(100% - 12px)'
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
230
|
+
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
231
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
232
|
+
'> .pm-breakout-resize-handle-left': {
|
|
233
|
+
left: '-32px'
|
|
234
|
+
},
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
236
|
+
'> .pm-breakout-resize-handle-right': {
|
|
237
|
+
right: '-32px'
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
241
|
+
'&:has([data-prosemirror-node-name="expand"])': {
|
|
242
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
243
|
+
'> .pm-breakout-resize-handle': {
|
|
244
|
+
height: 'calc(100% - 4px)'
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
248
|
+
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
250
|
+
'> .pm-breakout-resize-handle': {
|
|
251
|
+
height: 'calc(100% - 8px)'
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
// the first node in the document always has margin-top = 0
|
|
255
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
256
|
+
'&:has(.first-node-in-document)': {
|
|
257
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
258
|
+
'> .pm-breakout-resize-handle': {
|
|
259
|
+
height: '100%'
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
212
263
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
213
264
|
'.pm-breakout-resize-handle': {
|
|
214
265
|
position: 'relative',
|
|
@@ -217,7 +268,7 @@ export const pragmaticResizerStyles = css({
|
|
|
217
268
|
justifyContent: 'center',
|
|
218
269
|
height: '100%',
|
|
219
270
|
width: 7,
|
|
220
|
-
alignSelf: '
|
|
271
|
+
alignSelf: 'end',
|
|
221
272
|
gridRow: 1,
|
|
222
273
|
gridColumn: 1,
|
|
223
274
|
cursor: 'col-resize',
|
|
@@ -233,13 +284,11 @@ export const pragmaticResizerStyles = css({
|
|
|
233
284
|
},
|
|
234
285
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
286
|
'.pm-breakout-resize-handle-left': {
|
|
236
|
-
justifySelf: 'start'
|
|
237
|
-
left: -20
|
|
287
|
+
justifySelf: 'start'
|
|
238
288
|
},
|
|
239
289
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
290
|
'.pm-breakout-resize-handle-right': {
|
|
241
|
-
justifySelf: 'end'
|
|
242
|
-
right: -20
|
|
291
|
+
justifySelf: 'end'
|
|
243
292
|
},
|
|
244
293
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
245
294
|
'.pm-breakout-resize-handle-inner': {
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
2
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-exported-styles */
|
|
3
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled */
|
|
4
|
+
import { css, keyframes } from '@emotion/react';
|
|
5
|
+
const pulseIn = keyframes({
|
|
6
|
+
'0%, 100%': {
|
|
7
|
+
transform: 'scaleX(0)',
|
|
8
|
+
opacity: 0
|
|
9
|
+
},
|
|
10
|
+
'13%': {
|
|
11
|
+
transform: 'scaleX(1.4) scaleY(1.4)',
|
|
12
|
+
opacity: 1
|
|
13
|
+
},
|
|
14
|
+
'20%, 85%': {
|
|
15
|
+
transform: 'scaleX(1) scaleY(1)',
|
|
16
|
+
opacity: 1
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const pulseOut = keyframes({
|
|
20
|
+
'0%, 90%, 100%': {
|
|
21
|
+
transform: 'scaleX(1)',
|
|
22
|
+
opacity: 1
|
|
23
|
+
},
|
|
24
|
+
'10%, 80%': {
|
|
25
|
+
transform: 'scaleX(0)',
|
|
26
|
+
opacity: 0
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export const telepointerColorAndCommonStyle = css({
|
|
30
|
+
'.ProseMirror .telepointer': {
|
|
31
|
+
position: 'relative',
|
|
32
|
+
transition: 'opacity 200ms',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
34
|
+
'&.telepointer-selection:not(.inlineNodeView)': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
36
|
+
lineHeight: 1.2,
|
|
37
|
+
pointerEvents: 'none',
|
|
38
|
+
userSelect: 'none'
|
|
39
|
+
},
|
|
40
|
+
'&.telepointer-dim': {
|
|
41
|
+
opacity: 0.2
|
|
42
|
+
},
|
|
43
|
+
'&.color-0': {
|
|
44
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
45
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-red-bolder, #C9372C)"
|
|
46
|
+
},
|
|
47
|
+
'&.color-1': {
|
|
48
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
49
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-blue-bolder, #0C66E4)"
|
|
50
|
+
},
|
|
51
|
+
'&.color-2': {
|
|
52
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
53
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-green-bolder, #1F845A)"
|
|
54
|
+
},
|
|
55
|
+
'&.color-3': {
|
|
56
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
57
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-yellow-bolder, #946F00)"
|
|
58
|
+
},
|
|
59
|
+
'&.color-4': {
|
|
60
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
61
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-purple-bolder, #6E5DC6)"
|
|
62
|
+
},
|
|
63
|
+
'&.color-5': {
|
|
64
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
65
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-magenta-bolder, #AE4787)"
|
|
66
|
+
},
|
|
67
|
+
'&.color-6': {
|
|
68
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
69
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-teal-bolder, #227D9B)"
|
|
70
|
+
},
|
|
71
|
+
'&.color-7': {
|
|
72
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
73
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-orange-bolder, #C25100)"
|
|
74
|
+
},
|
|
75
|
+
'&.color-8': {
|
|
76
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
77
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-lime-bolder, #5B7F24)"
|
|
78
|
+
},
|
|
79
|
+
'&.color-9': {
|
|
80
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
81
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-gray-bolder, #626F86)"
|
|
82
|
+
},
|
|
83
|
+
'&.color-10': {
|
|
84
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
85
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-blue-subtle, #579DFF)"
|
|
86
|
+
},
|
|
87
|
+
'&.color-11': {
|
|
88
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
89
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-red-subtle, #F87168)"
|
|
90
|
+
},
|
|
91
|
+
'&.color-12': {
|
|
92
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
93
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-orange-subtle, #FEA362)"
|
|
94
|
+
},
|
|
95
|
+
'&.color-13': {
|
|
96
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
97
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-yellow-subtle, #F5CD47)"
|
|
98
|
+
},
|
|
99
|
+
'&.color-14': {
|
|
100
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
101
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-green-subtle, #4BCE97)"
|
|
102
|
+
},
|
|
103
|
+
'&.color-15': {
|
|
104
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
105
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
106
|
+
},
|
|
107
|
+
'&.color-16': {
|
|
108
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
109
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-purple-subtle, #9F8FEF)"
|
|
110
|
+
},
|
|
111
|
+
'&.color-17': {
|
|
112
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
113
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-magenta-subtle, #E774BB)"
|
|
114
|
+
},
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
116
|
+
'html:not([data-color-mode=dark]) &': {
|
|
117
|
+
'--telepointer-participant-background-first-stop': '-850000%',
|
|
118
|
+
'--telepointer-participant-background-second-stop': '150000%'
|
|
119
|
+
},
|
|
120
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
121
|
+
'html[data-color-mode=dark] &': {
|
|
122
|
+
'--telepointer-participant-background-first-stop': '-800000%',
|
|
123
|
+
'--telepointer-participant-background-second-stop': '200000%'
|
|
124
|
+
},
|
|
125
|
+
'&[class*="color-"]': {
|
|
126
|
+
background: 'linear-gradient(to bottom, var(--telepointer-participant-bg-color) var(--telepointer-participant-background-first-stop), transparent var(--telepointer-participant-background-second-stop))',
|
|
127
|
+
'&::after': {
|
|
128
|
+
backgroundColor: 'var(--telepointer-participant-bg-color)',
|
|
129
|
+
color: 'var(--telepointer-participant-text-color)',
|
|
130
|
+
borderColor: 'var(--telepointer-participant-bg-color)'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
export const telepointerStyle = css({
|
|
136
|
+
'.ProseMirror .telepointer': {
|
|
137
|
+
'&.telepointer-selection-badge': {
|
|
138
|
+
'.telepointer-initial, .telepointer-fullname': {
|
|
139
|
+
position: 'absolute',
|
|
140
|
+
display: 'block',
|
|
141
|
+
userSelect: 'none',
|
|
142
|
+
whiteSpace: 'pre',
|
|
143
|
+
top: -14,
|
|
144
|
+
left: 0,
|
|
145
|
+
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
146
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
147
|
+
paddingRight: "var(--ds-space-050, 4px)",
|
|
148
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
149
|
+
borderRadius: '0 2px 2px 0'
|
|
150
|
+
},
|
|
151
|
+
'.telepointer-initial': {
|
|
152
|
+
opacity: 1,
|
|
153
|
+
transition: 'opacity 0.15s ease-out'
|
|
154
|
+
},
|
|
155
|
+
'.telepointer-fullname': {
|
|
156
|
+
opacity: 0,
|
|
157
|
+
transform: 'scaleX(0)',
|
|
158
|
+
transformOrigin: 'top left',
|
|
159
|
+
transition: 'transform 0.15s ease-out, opacity 0.15s ease-out'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
'&.telepointer-pulse-animate': {
|
|
163
|
+
'.telepointer-initial': {
|
|
164
|
+
animation: `${pulseOut} 2s ease-in-out`
|
|
165
|
+
},
|
|
166
|
+
'.telepointer-fullname': {
|
|
167
|
+
animation: `${pulseIn} 2s ease-in-out`
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
'&:hover': {
|
|
171
|
+
'.telepointer-initial': {
|
|
172
|
+
opacity: 0,
|
|
173
|
+
transitionDelay: '150ms'
|
|
174
|
+
},
|
|
175
|
+
'.telepointer-fullname': {
|
|
176
|
+
transform: 'scaleX(1)',
|
|
177
|
+
opacity: 1,
|
|
178
|
+
zIndex: 1
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
export const telepointerStyleWithInitialOnly = css({
|
|
184
|
+
'.ProseMirror .telepointer': {
|
|
185
|
+
'&.telepointer-selection-badge::after': {
|
|
186
|
+
content: 'attr(data-initial)',
|
|
187
|
+
position: 'absolute',
|
|
188
|
+
display: 'block',
|
|
189
|
+
top: -14,
|
|
190
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
191
|
+
fontSize: '0.5625rem',
|
|
192
|
+
padding: "var(--ds-space-025, 2px)",
|
|
193
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
194
|
+
left: 0,
|
|
195
|
+
borderRadius: '2px 2px 2px 0',
|
|
196
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
197
|
+
lineHeight: 'initial'
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "207.11.
|
|
2
|
+
export const version = "207.11.2";
|
|
@@ -12,7 +12,6 @@ import React from 'react';
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
14
14
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
15
|
-
import { telepointerStyle, telepointerStyleWithInitialOnly } from '@atlaskit/editor-common/collab';
|
|
16
15
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
17
16
|
import { GRID_GUTTER, listsSharedStyles } from '@atlaskit/editor-common/styles';
|
|
18
17
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
@@ -54,6 +53,7 @@ import { ruleStyles } from './styles/rule';
|
|
|
54
53
|
import { shadowStyles } from './styles/shadowStyles';
|
|
55
54
|
import { linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
|
|
56
55
|
import { tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
56
|
+
import { telepointerColorAndCommonStyle, telepointerStyle, telepointerStyleWithInitialOnly } from './styles/telepointerStyles';
|
|
57
57
|
import { textColorStyles } from './styles/textColorStyles';
|
|
58
58
|
import { unsupportedStyles } from './styles/unsupportedStyles';
|
|
59
59
|
import { whitespaceStyles } from './styles/whitespaceStyles';
|
|
@@ -98,7 +98,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
98
98
|
|
|
99
99
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
100
100
|
var contentStyles = function contentStyles() {
|
|
101
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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\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 // 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 ", "\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"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, whitespaceStyles, listsSharedStyles, indentationStyles, shadowStyles, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\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)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles, blocktypeStyles(), codeMarkStyles, textColorStyles, backgroundColorStyles, listsStyles, ruleStyles, mediaStyles, fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, tasksAndDecisionsStyles, gridStyles, blockMarksStyles, dateStyles, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
101
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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\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 /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\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 // 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 ", "\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"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, whitespaceStyles, listsSharedStyles, indentationStyles, shadowStyles, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\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)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles, blocktypeStyles(), codeMarkStyles, textColorStyles, backgroundColorStyles, listsStyles, ruleStyles, mediaStyles, fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, telepointerColorAndCommonStyle, gapCursorStyles, panelStyles(), mentionsStyles, tasksAndDecisionsStyles, gridStyles, blockMarksStyles, dateStyles, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
102
102
|
exposure: false
|
|
103
103
|
}) && vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
104
104
|
exposure: false
|
|
@@ -156,6 +156,57 @@ export var resizerStyles = css(_defineProperty(_defineProperty(_defineProperty(_
|
|
|
156
156
|
|
|
157
157
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
158
158
|
export var pragmaticResizerStyles = css({
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
160
|
+
'.fabric-editor-breakout-mark': {
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
162
|
+
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
163
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
164
|
+
'> .pm-breakout-resize-handle-left': {
|
|
165
|
+
left: '-12px'
|
|
166
|
+
},
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
168
|
+
'> .pm-breakout-resize-handle-right': {
|
|
169
|
+
right: '-12px'
|
|
170
|
+
},
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
172
|
+
'> .pm-breakout-resize-handle': {
|
|
173
|
+
height: 'calc(100% - 12px)'
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
177
|
+
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
179
|
+
'> .pm-breakout-resize-handle-left': {
|
|
180
|
+
left: '-32px'
|
|
181
|
+
},
|
|
182
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
183
|
+
'> .pm-breakout-resize-handle-right': {
|
|
184
|
+
right: '-32px'
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
188
|
+
'&:has([data-prosemirror-node-name="expand"])': {
|
|
189
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
190
|
+
'> .pm-breakout-resize-handle': {
|
|
191
|
+
height: 'calc(100% - 4px)'
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
195
|
+
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
196
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
197
|
+
'> .pm-breakout-resize-handle': {
|
|
198
|
+
height: 'calc(100% - 8px)'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
// the first node in the document always has margin-top = 0
|
|
202
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
203
|
+
'&:has(.first-node-in-document)': {
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
205
|
+
'> .pm-breakout-resize-handle': {
|
|
206
|
+
height: '100%'
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
159
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
160
211
|
'.pm-breakout-resize-handle': {
|
|
161
212
|
position: 'relative',
|
|
@@ -164,7 +215,7 @@ export var pragmaticResizerStyles = css({
|
|
|
164
215
|
justifyContent: 'center',
|
|
165
216
|
height: '100%',
|
|
166
217
|
width: 7,
|
|
167
|
-
alignSelf: '
|
|
218
|
+
alignSelf: 'end',
|
|
168
219
|
gridRow: 1,
|
|
169
220
|
gridColumn: 1,
|
|
170
221
|
cursor: 'col-resize',
|
|
@@ -180,13 +231,11 @@ export var pragmaticResizerStyles = css({
|
|
|
180
231
|
},
|
|
181
232
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
182
233
|
'.pm-breakout-resize-handle-left': {
|
|
183
|
-
justifySelf: 'start'
|
|
184
|
-
left: -20
|
|
234
|
+
justifySelf: 'start'
|
|
185
235
|
},
|
|
186
236
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
187
237
|
'.pm-breakout-resize-handle-right': {
|
|
188
|
-
justifySelf: 'end'
|
|
189
|
-
right: -20
|
|
238
|
+
justifySelf: 'end'
|
|
190
239
|
},
|
|
191
240
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
192
241
|
'.pm-breakout-resize-handle-inner': {
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
2
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-exported-styles */
|
|
3
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled */
|
|
4
|
+
import { css, keyframes } from '@emotion/react';
|
|
5
|
+
var pulseIn = keyframes({
|
|
6
|
+
'0%, 100%': {
|
|
7
|
+
transform: 'scaleX(0)',
|
|
8
|
+
opacity: 0
|
|
9
|
+
},
|
|
10
|
+
'13%': {
|
|
11
|
+
transform: 'scaleX(1.4) scaleY(1.4)',
|
|
12
|
+
opacity: 1
|
|
13
|
+
},
|
|
14
|
+
'20%, 85%': {
|
|
15
|
+
transform: 'scaleX(1) scaleY(1)',
|
|
16
|
+
opacity: 1
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var pulseOut = keyframes({
|
|
20
|
+
'0%, 90%, 100%': {
|
|
21
|
+
transform: 'scaleX(1)',
|
|
22
|
+
opacity: 1
|
|
23
|
+
},
|
|
24
|
+
'10%, 80%': {
|
|
25
|
+
transform: 'scaleX(0)',
|
|
26
|
+
opacity: 0
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export var telepointerColorAndCommonStyle = css({
|
|
30
|
+
'.ProseMirror .telepointer': {
|
|
31
|
+
position: 'relative',
|
|
32
|
+
transition: 'opacity 200ms',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
34
|
+
'&.telepointer-selection:not(.inlineNodeView)': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
36
|
+
lineHeight: 1.2,
|
|
37
|
+
pointerEvents: 'none',
|
|
38
|
+
userSelect: 'none'
|
|
39
|
+
},
|
|
40
|
+
'&.telepointer-dim': {
|
|
41
|
+
opacity: 0.2
|
|
42
|
+
},
|
|
43
|
+
'&.color-0': {
|
|
44
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
45
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-red-bolder, #C9372C)"
|
|
46
|
+
},
|
|
47
|
+
'&.color-1': {
|
|
48
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
49
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-blue-bolder, #0C66E4)"
|
|
50
|
+
},
|
|
51
|
+
'&.color-2': {
|
|
52
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
53
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-green-bolder, #1F845A)"
|
|
54
|
+
},
|
|
55
|
+
'&.color-3': {
|
|
56
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
57
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-yellow-bolder, #946F00)"
|
|
58
|
+
},
|
|
59
|
+
'&.color-4': {
|
|
60
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
61
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-purple-bolder, #6E5DC6)"
|
|
62
|
+
},
|
|
63
|
+
'&.color-5': {
|
|
64
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
65
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-magenta-bolder, #AE4787)"
|
|
66
|
+
},
|
|
67
|
+
'&.color-6': {
|
|
68
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
69
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-teal-bolder, #227D9B)"
|
|
70
|
+
},
|
|
71
|
+
'&.color-7': {
|
|
72
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
73
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-orange-bolder, #C25100)"
|
|
74
|
+
},
|
|
75
|
+
'&.color-8': {
|
|
76
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
77
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-lime-bolder, #5B7F24)"
|
|
78
|
+
},
|
|
79
|
+
'&.color-9': {
|
|
80
|
+
'--telepointer-participant-text-color': "var(--ds-text-inverse, #FFFFFF)",
|
|
81
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-gray-bolder, #626F86)"
|
|
82
|
+
},
|
|
83
|
+
'&.color-10': {
|
|
84
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
85
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-blue-subtle, #579DFF)"
|
|
86
|
+
},
|
|
87
|
+
'&.color-11': {
|
|
88
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
89
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-red-subtle, #F87168)"
|
|
90
|
+
},
|
|
91
|
+
'&.color-12': {
|
|
92
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
93
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-orange-subtle, #FEA362)"
|
|
94
|
+
},
|
|
95
|
+
'&.color-13': {
|
|
96
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
97
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-yellow-subtle, #F5CD47)"
|
|
98
|
+
},
|
|
99
|
+
'&.color-14': {
|
|
100
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
101
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-green-subtle, #4BCE97)"
|
|
102
|
+
},
|
|
103
|
+
'&.color-15': {
|
|
104
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
105
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
106
|
+
},
|
|
107
|
+
'&.color-16': {
|
|
108
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
109
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-purple-subtle, #9F8FEF)"
|
|
110
|
+
},
|
|
111
|
+
'&.color-17': {
|
|
112
|
+
'--telepointer-participant-text-color': "var(--ds-text-accent-gray-bolder, #091E42)",
|
|
113
|
+
'--telepointer-participant-bg-color': "var(--ds-background-accent-magenta-subtle, #E774BB)"
|
|
114
|
+
},
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
116
|
+
'html:not([data-color-mode=dark]) &': {
|
|
117
|
+
'--telepointer-participant-background-first-stop': '-850000%',
|
|
118
|
+
'--telepointer-participant-background-second-stop': '150000%'
|
|
119
|
+
},
|
|
120
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
121
|
+
'html[data-color-mode=dark] &': {
|
|
122
|
+
'--telepointer-participant-background-first-stop': '-800000%',
|
|
123
|
+
'--telepointer-participant-background-second-stop': '200000%'
|
|
124
|
+
},
|
|
125
|
+
'&[class*="color-"]': {
|
|
126
|
+
background: 'linear-gradient(to bottom, var(--telepointer-participant-bg-color) var(--telepointer-participant-background-first-stop), transparent var(--telepointer-participant-background-second-stop))',
|
|
127
|
+
'&::after': {
|
|
128
|
+
backgroundColor: 'var(--telepointer-participant-bg-color)',
|
|
129
|
+
color: 'var(--telepointer-participant-text-color)',
|
|
130
|
+
borderColor: 'var(--telepointer-participant-bg-color)'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
export var telepointerStyle = css({
|
|
136
|
+
'.ProseMirror .telepointer': {
|
|
137
|
+
'&.telepointer-selection-badge': {
|
|
138
|
+
'.telepointer-initial, .telepointer-fullname': {
|
|
139
|
+
position: 'absolute',
|
|
140
|
+
display: 'block',
|
|
141
|
+
userSelect: 'none',
|
|
142
|
+
whiteSpace: 'pre',
|
|
143
|
+
top: -14,
|
|
144
|
+
left: 0,
|
|
145
|
+
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
146
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
147
|
+
paddingRight: "var(--ds-space-050, 4px)",
|
|
148
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
149
|
+
borderRadius: '0 2px 2px 0'
|
|
150
|
+
},
|
|
151
|
+
'.telepointer-initial': {
|
|
152
|
+
opacity: 1,
|
|
153
|
+
transition: 'opacity 0.15s ease-out'
|
|
154
|
+
},
|
|
155
|
+
'.telepointer-fullname': {
|
|
156
|
+
opacity: 0,
|
|
157
|
+
transform: 'scaleX(0)',
|
|
158
|
+
transformOrigin: 'top left',
|
|
159
|
+
transition: 'transform 0.15s ease-out, opacity 0.15s ease-out'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
'&.telepointer-pulse-animate': {
|
|
163
|
+
'.telepointer-initial': {
|
|
164
|
+
animation: "".concat(pulseOut, " 2s ease-in-out")
|
|
165
|
+
},
|
|
166
|
+
'.telepointer-fullname': {
|
|
167
|
+
animation: "".concat(pulseIn, " 2s ease-in-out")
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
'&:hover': {
|
|
171
|
+
'.telepointer-initial': {
|
|
172
|
+
opacity: 0,
|
|
173
|
+
transitionDelay: '150ms'
|
|
174
|
+
},
|
|
175
|
+
'.telepointer-fullname': {
|
|
176
|
+
transform: 'scaleX(1)',
|
|
177
|
+
opacity: 1,
|
|
178
|
+
zIndex: 1
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
export var telepointerStyleWithInitialOnly = css({
|
|
184
|
+
'.ProseMirror .telepointer': {
|
|
185
|
+
'&.telepointer-selection-badge::after': {
|
|
186
|
+
content: 'attr(data-initial)',
|
|
187
|
+
position: 'absolute',
|
|
188
|
+
display: 'block',
|
|
189
|
+
top: -14,
|
|
190
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
191
|
+
fontSize: '0.5625rem',
|
|
192
|
+
padding: "var(--ds-space-025, 2px)",
|
|
193
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
194
|
+
left: 0,
|
|
195
|
+
borderRadius: '2px 2px 2px 0',
|
|
196
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
197
|
+
lineHeight: 'initial'
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.11.
|
|
2
|
+
export var version = "207.11.2";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const telepointerColorAndCommonStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const telepointerStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const telepointerStyleWithInitialOnly: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const telepointerColorAndCommonStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const telepointerStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const telepointerStyleWithInitialOnly: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.11.
|
|
3
|
+
"version": "207.11.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.5.0",
|
|
53
|
-
"@atlaskit/editor-plugins": "^9.
|
|
53
|
+
"@atlaskit/editor-plugins": "^9.1.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
56
56
|
"@atlaskit/emoji": "^69.2.0",
|
|
57
|
-
"@atlaskit/icon": "^26.
|
|
57
|
+
"@atlaskit/icon": "^26.4.0",
|
|
58
58
|
"@atlaskit/link": "^3.2.0",
|
|
59
59
|
"@atlaskit/media-card": "^79.3.0",
|
|
60
60
|
"@atlaskit/mention": "^24.2.0",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
63
63
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
64
64
|
"@atlaskit/task-decision": "^19.2.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^5.2.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.9.0",
|
|
67
|
-
"@atlaskit/tooltip": "^20.
|
|
67
|
+
"@atlaskit/tooltip": "^20.2.0",
|
|
68
68
|
"@atlaskit/width-detector": "^5.0.0",
|
|
69
69
|
"@babel/runtime": "^7.0.0",
|
|
70
70
|
"@emotion/react": "^11.7.1",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
93
93
|
"@atlaskit/collab-provider": "^10.16.0",
|
|
94
94
|
"@atlaskit/editor-plugin-annotation": "^2.9.0",
|
|
95
|
-
"@atlaskit/editor-plugin-card": "^6.
|
|
95
|
+
"@atlaskit/editor-plugin-card": "^6.4.0",
|
|
96
96
|
"@atlaskit/editor-plugin-list": "^4.2.0",
|
|
97
97
|
"@atlaskit/editor-plugin-paste": "^3.3.0",
|
|
98
98
|
"@atlaskit/link-provider": "^3.1.0",
|
|
@@ -151,10 +151,6 @@
|
|
|
151
151
|
"cc_complexit_fe_improve_node_validation": {
|
|
152
152
|
"type": "boolean"
|
|
153
153
|
},
|
|
154
|
-
"platform_editor_scroll_into_view_tr_steps": {
|
|
155
|
-
"type": "boolean",
|
|
156
|
-
"referenceOnly": true
|
|
157
|
-
},
|
|
158
154
|
"platform_editor_reduce_scroll_jump_on_editor_start": {
|
|
159
155
|
"type": "boolean"
|
|
160
156
|
},
|