@atlaskit/editor-core 208.3.3 → 208.3.5
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 +34 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +334 -7
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -189
- package/dist/cjs/ui/ContentStyles/index.js +8 -7
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +8 -12
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +82 -1
- package/dist/cjs/ui/EditorContentContainer/styles/mentions.js +7 -3
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +329 -8
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +2 -180
- package/dist/es2019/ui/ContentStyles/index.js +11 -10
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +10 -14
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +109 -0
- package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +6 -2
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +335 -8
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +2 -187
- package/dist/esm/ui/ContentStyles/index.js +9 -8
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +10 -14
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +81 -0
- package/dist/esm/ui/EditorContentContainer/styles/mentions.js +6 -2
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -7
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/mentions.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +0 -7
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mentions.d.ts +2 -2
- package/package.json +6 -14
|
@@ -21,11 +21,12 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
|
21
21
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
22
22
|
import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, ruleSharedStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
23
23
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
24
|
-
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
24
|
+
import { findReplaceStyles, findReplaceStylesNew } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
25
25
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
26
26
|
import { placeholderTextStyles, placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour } from '@atlaskit/editor-plugins/placeholder-text/styles';
|
|
27
27
|
import { SelectionStyle, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles } from '@atlaskit/editor-shared-styles';
|
|
28
28
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
29
30
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
30
31
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
31
32
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
@@ -44,13 +45,17 @@ export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplat
|
|
|
44
45
|
var ruleStyles = function ruleStyles() {
|
|
45
46
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\n\t\thr {\n\t\t\tcursor: pointer;\n\t\t\tpadding: ", " 0;\n\t\t\tmargin: ", " 0;\n\t\t\tbackground-clip: content-box;\n\n\t\t\t&.", " {\n\t\t\t\toutline: none;\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t}\n\t}\n"])), ruleSharedStyles(), "var(--ds-space-050, 4px)", "var(--ds-space-300, 24px)", akEditorSelectedNodeClassName, "var(--ds-border-selected, ".concat(akEditorSelectedBorderColor, ")"));
|
|
46
47
|
};
|
|
47
|
-
var
|
|
48
|
+
var mentionNodeStyles = css({
|
|
48
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
50
|
'.editor-mention-primitive': {
|
|
50
51
|
display: 'inline',
|
|
51
52
|
borderRadius: '20px',
|
|
52
53
|
cursor: 'pointer',
|
|
53
54
|
padding: '0 0.3em 2px 0.23em',
|
|
55
|
+
// To match `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx` implementation
|
|
56
|
+
// we match the line height exactly
|
|
57
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
58
|
+
lineHeight: '1.714',
|
|
54
59
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
55
60
|
wordBreak: 'break-word',
|
|
56
61
|
background: "var(--ds-background-neutral, #091E420F)",
|
|
@@ -147,15 +152,11 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
147
152
|
var legacyContentStyles = function legacyContentStyles(props) {
|
|
148
153
|
return css(_templateObject9 || (_templateObject9 = _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--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-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\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\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: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\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\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\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\t", "\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\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn 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.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
149
154
|
theme: props.theme
|
|
150
|
-
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject0 || (_templateObject0 = _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(_templateObject1 || (_templateObject1 = _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)",
|
|
151
|
-
exposure: false
|
|
152
|
-
}) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
155
|
+
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject0 || (_templateObject0 = _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(_templateObject1 || (_templateObject1 = _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)", firstFloatingToolbarButtonStyles, placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') && placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, mentionNodeStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
153
156
|
exposure: false
|
|
154
157
|
}) && vanillaSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
155
158
|
exposure: false
|
|
156
|
-
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
157
|
-
exposure: false
|
|
158
|
-
}) && vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
159
|
+
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? findReplaceStylesNew : findReplaceStyles, textHighlightStyle, taskDecisionStyles, vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
159
160
|
exposure: false
|
|
160
161
|
}) && vanillaDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
161
162
|
exposure: false
|
|
@@ -153,7 +153,7 @@ export var vanillaTaskItemStyles = css(_defineProperty({
|
|
|
153
153
|
display: 'none'
|
|
154
154
|
},
|
|
155
155
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
156
|
-
|
|
156
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
|
|
157
157
|
display: 'block'
|
|
158
158
|
},
|
|
159
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -30,7 +30,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
30
30
|
import { reactEmojiStyles, vanillaEmojiStyles } from './styles/emoji';
|
|
31
31
|
import { expandStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes } from './styles/expandStyles';
|
|
32
32
|
import { extensionStyles } from './styles/extensionStyles';
|
|
33
|
-
import { findReplaceStyles } from './styles/findReplaceStyles';
|
|
33
|
+
import { findReplaceStyles, findReplaceStylesNew } from './styles/findReplaceStyles';
|
|
34
34
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
35
35
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
36
36
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -42,7 +42,7 @@ import { layoutBaseStyles, layoutBaseStylesAdvanced, layoutBaseStylesFixesUnderN
|
|
|
42
42
|
import { hyperLinkFloatingToolbarStyles, linkLegacyIconStylesFix, linkStyles, linkStylesOld } from './styles/link';
|
|
43
43
|
import { listsStyles, listsStylesSafariFix } from './styles/list';
|
|
44
44
|
import { mediaAlignmentStyles, mediaGroupStyles, mediaStyles } from './styles/mediaStyles';
|
|
45
|
-
import { mentionsStyles,
|
|
45
|
+
import { mentionsStyles, mentionsSelectionStyles, mentionNodeStyles } from './styles/mentions';
|
|
46
46
|
import { panelStyles, panelStylesMixin, panelStylesMixin_fg_platform_editor_add_border_for_nested_panel, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelViewStyles } from './styles/panelStyles';
|
|
47
47
|
import { paragraphStylesOld, paragraphStylesUGCModernized, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
|
|
48
48
|
import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderTextStylesMixin_fg_platform_editor_system_fake_text_highlight_colour, placeholderWrapStyles } from './styles/placeholderStyles';
|
|
@@ -104,7 +104,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
104
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
105
105
|
cursorStyles,
|
|
106
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
107
|
-
|
|
107
|
+
firstFloatingToolbarButtonStyles,
|
|
108
108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
109
109
|
placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') &&
|
|
110
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -180,15 +180,15 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
180
180
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
181
181
|
expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
182
182
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
183
|
-
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons,
|
|
183
|
+
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
185
|
+
findReplaceStylesNew :
|
|
184
186
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
185
187
|
findReplaceStyles,
|
|
186
188
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
187
189
|
textHighlightStyle,
|
|
188
190
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
189
|
-
decisionStyles,
|
|
190
|
-
exposure: false
|
|
191
|
-
}) &&
|
|
191
|
+
decisionStyles,
|
|
192
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
193
193
|
vanillaTaskItemStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
194
194
|
exposure: false
|
|
@@ -310,15 +310,11 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
310
310
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
311
311
|
firstCodeBlockWithNoMarginOld,
|
|
312
312
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
313
|
-
firstBlockNodeStyles,
|
|
314
|
-
exposure: false
|
|
315
|
-
}) &&
|
|
313
|
+
firstBlockNodeStyles,
|
|
316
314
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
317
|
-
|
|
318
|
-
exposure: false
|
|
319
|
-
}) &&
|
|
315
|
+
mentionNodeStyles,
|
|
320
316
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
321
|
-
|
|
317
|
+
mentionsSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
322
318
|
exposure: false
|
|
323
319
|
}) ?
|
|
324
320
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -12,4 +12,85 @@ export var findReplaceStyles = css({
|
|
|
12
12
|
'.selected-search-match': {
|
|
13
13
|
backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
14
14
|
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
+
export var findReplaceStylesNew = css({
|
|
19
|
+
/** Text match styles */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
21
|
+
'.search-match': {
|
|
22
|
+
borderRadius: '3px',
|
|
23
|
+
backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
|
|
24
|
+
boxShadow: "var(--ds-shadow-raised, 0 1px 1px 0 rgba(9, 30, 66, 0.25), 0 0 1px 0 rgba(9, 30, 66, 0.31))".concat(", inset 0 0 0 1px ", "var(--ds-border-input, #8590A2)")
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
27
|
+
'.search-match-selected': {
|
|
28
|
+
backgroundColor: "var(--ds-background-accent-teal-subtle, #6CC3E0)"
|
|
29
|
+
},
|
|
30
|
+
/** Block match styles */
|
|
31
|
+
|
|
32
|
+
/** Light mode */
|
|
33
|
+
|
|
34
|
+
/** Without node selection */
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
36
|
+
'.search-match-block': {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
38
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
39
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", "\n\t\t\t")
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
43
|
+
'.search-match-selected.search-match-block': {
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
45
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
46
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", "\n\t\t\t")
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
/** With node selection */
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
51
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
53
|
+
'.loader-wrapper>div::after': {
|
|
54
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
58
|
+
'.search-match-selected.search-match-block.ak-editor-selected-node': {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
60
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
61
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
/** Dark mode */
|
|
65
|
+
|
|
66
|
+
/** Without node selection */
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
+
'.search-match-block.search-match-dark': {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
70
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
71
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", "\n\t\t\t")
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
75
|
+
'.search-match-selected.search-match-block.search-match-dark': {
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
77
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
78
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", "\n\t\t\t")
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
/** With node selection */
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
83
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
85
|
+
'.loader-wrapper>div::after': {
|
|
86
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
90
|
+
'.search-match-selected.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
92
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
93
|
+
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
94
|
+
}
|
|
95
|
+
}
|
|
15
96
|
});
|
|
@@ -29,13 +29,17 @@ backgroundSelectionStyles, mentionsSelectedColor])), '.danger', _defineProperty(
|
|
|
29
29
|
})));
|
|
30
30
|
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
32
|
-
export var
|
|
32
|
+
export var mentionNodeStyles = css({
|
|
33
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
34
|
'.editor-mention-primitive': {
|
|
35
35
|
display: 'inline',
|
|
36
36
|
borderRadius: '20px',
|
|
37
37
|
cursor: 'pointer',
|
|
38
38
|
padding: '0 0.3em 2px 0.23em',
|
|
39
|
+
// To match `packages/elements/mention/src/components/Mention/PrimitiveMention.tsx` implementation
|
|
40
|
+
// we match the line height exactly
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
42
|
+
lineHeight: '1.714',
|
|
39
43
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
40
44
|
wordBreak: 'break-word',
|
|
41
45
|
background: "var(--ds-background-neutral, #091E420F)",
|
|
@@ -76,7 +80,7 @@ export var vanillaMentionsStyles = css({
|
|
|
76
80
|
|
|
77
81
|
// This is mentions styles for mentions selection styles based on the vanilla node view
|
|
78
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
79
|
-
export var
|
|
83
|
+
export var mentionsSelectionStyles = css(_defineProperty({
|
|
80
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
81
85
|
'.danger': {
|
|
82
86
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -238,7 +238,7 @@ export var vanillaTaskItemStyles = css(_defineProperty({
|
|
|
238
238
|
display: 'none'
|
|
239
239
|
},
|
|
240
240
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
241
|
-
|
|
241
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
|
|
242
242
|
display: 'block'
|
|
243
243
|
},
|
|
244
244
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "208.3.
|
|
2
|
+
export var version = "208.3.4";
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export declare const fullPageEditorWrapper: import("@emotion/react").SerializedStyles;
|
|
2
2
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const contentAreaWrapper: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
|
|
5
4
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
6
5
|
export declare const editorContentAreaHideContainer: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, isEditorToolbarHidden, }: {
|
|
8
|
-
layoutMaxWidth: number;
|
|
9
|
-
fullWidthMode: boolean;
|
|
10
|
-
isEditorToolbarHidden?: boolean | undefined;
|
|
11
|
-
}) => (false | import("@emotion/react").SerializedStyles | undefined)[];
|
|
12
|
-
export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const mentionsStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const mentionNodeStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const mentionsSelectionStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export declare const fullPageEditorWrapper: import("@emotion/react").SerializedStyles;
|
|
2
2
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const contentAreaWrapper: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
|
|
5
4
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
6
5
|
export declare const editorContentAreaHideContainer: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, isEditorToolbarHidden, }: {
|
|
8
|
-
layoutMaxWidth: number;
|
|
9
|
-
fullWidthMode: boolean;
|
|
10
|
-
isEditorToolbarHidden?: boolean | undefined;
|
|
11
|
-
}) => (false | import("@emotion/react").SerializedStyles | undefined)[];
|
|
12
|
-
export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const mentionsStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const mentionNodeStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const mentionsSelectionStyles: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "208.3.
|
|
3
|
+
"version": "208.3.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
56
56
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
57
57
|
"@atlaskit/emoji": "^69.3.0",
|
|
58
|
-
"@atlaskit/icon": "^27.
|
|
58
|
+
"@atlaskit/icon": "^27.2.0",
|
|
59
59
|
"@atlaskit/link": "^3.2.0",
|
|
60
60
|
"@atlaskit/media-card": "^79.3.0",
|
|
61
61
|
"@atlaskit/mention": "^24.2.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
63
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
64
|
-
"@atlaskit/react-ufo": "^3.
|
|
64
|
+
"@atlaskit/react-ufo": "^3.14.0",
|
|
65
65
|
"@atlaskit/task-decision": "^19.2.0",
|
|
66
66
|
"@atlaskit/tmp-editor-statsig": "^8.2.0",
|
|
67
67
|
"@atlaskit/tokens": "^5.4.0",
|
|
@@ -418,10 +418,6 @@
|
|
|
418
418
|
"type": "boolean",
|
|
419
419
|
"referenceOnly": true
|
|
420
420
|
},
|
|
421
|
-
"platform_editor_scroll_table_flickering_fix": {
|
|
422
|
-
"type": "boolean",
|
|
423
|
-
"referenceOnly": true
|
|
424
|
-
},
|
|
425
421
|
"platform_editor_paste_full_table_inside_empty_cell": {
|
|
426
422
|
"type": "boolean",
|
|
427
423
|
"referenceOnly": true
|
|
@@ -529,10 +525,6 @@
|
|
|
529
525
|
"type": "boolean",
|
|
530
526
|
"referenceOnly": true
|
|
531
527
|
},
|
|
532
|
-
"platform_editor_controls_patch_12": {
|
|
533
|
-
"type": "boolean",
|
|
534
|
-
"referenceOnly": true
|
|
535
|
-
},
|
|
536
528
|
"platform_editor_controls_patch_13": {
|
|
537
529
|
"type": "boolean",
|
|
538
530
|
"referenceOnly": true
|
|
@@ -584,9 +576,6 @@
|
|
|
584
576
|
"should-render-to-parent-should-be-true-editor": {
|
|
585
577
|
"type": "boolean"
|
|
586
578
|
},
|
|
587
|
-
"platform_editor_fix_floating_toolbar_focus": {
|
|
588
|
-
"type": "boolean"
|
|
589
|
-
},
|
|
590
579
|
"platform_editor_add_border_for_nested_panel": {
|
|
591
580
|
"type": "boolean",
|
|
592
581
|
"referenceOnly": true
|
|
@@ -594,6 +583,9 @@
|
|
|
594
583
|
"platform_editor_system_fake_text_highlight_colour": {
|
|
595
584
|
"type": "boolean"
|
|
596
585
|
},
|
|
586
|
+
"platform_editor_controls_increase_full_page_gutter": {
|
|
587
|
+
"type": "boolean"
|
|
588
|
+
},
|
|
597
589
|
"cc_editor_focus_before_editor_on_load": {
|
|
598
590
|
"type": "boolean"
|
|
599
591
|
}
|