@atlaskit/editor-core 210.1.6 → 210.1.8
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 +23 -0
- package/afm-cc/tsconfig.json +2 -2
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +3 -5
- package/dist/cjs/ui/ContentStyles/index.js +3 -3
- package/dist/cjs/ui/ContentStyles/status.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +7 -9
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -174
- package/dist/cjs/ui/Toolbar/Toolbar.js +6 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +3 -5
- package/dist/es2019/ui/ContentStyles/index.js +5 -5
- package/dist/es2019/ui/ContentStyles/status.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +8 -10
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -225
- package/dist/es2019/ui/Toolbar/Toolbar.js +6 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +3 -5
- package/dist/esm/ui/ContentStyles/index.js +4 -4
- package/dist/esm/ui/ContentStyles/status.js +2 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +8 -10
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +0 -173
- package/dist/esm/ui/Toolbar/Toolbar.js +6 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/CollapsedEditor/index.d.ts +1 -1
- package/dist/types/composable-editor/BaseThemeWrapper.d.ts +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +6 -6
- package/dist/types/composable-editor/hooks/useProviders.d.ts +4 -4
- package/dist/types/create-editor/ErrorBoundary.d.ts +4 -4
- package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +2 -2
- package/dist/types/create-editor/ReactEditorView.d.ts +16 -16
- package/dist/types/create-editor/create-schema.d.ts +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +203 -195
- package/dist/types/create-editor/editorStateNotificationPlugin.d.ts +2 -2
- package/dist/types/create-editor/get-plugins.d.ts +13 -13
- package/dist/types/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types/presets/default.d.ts +21 -21
- package/dist/types/presets/universal.d.ts +214 -206
- package/dist/types/presets/useUniversalPreset.d.ts +202 -194
- package/dist/types/test-utils.d.ts +6 -6
- package/dist/types/types/editor-appearance-component.d.ts +23 -23
- package/dist/types/types/editor-config.d.ts +9 -9
- package/dist/types/types/editor-instance.d.ts +7 -7
- package/dist/types/types/editor-onchange.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +100 -100
- package/dist/types/types/i18n.d.ts +2 -2
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
- package/dist/types/ui/Addon/Dropdown/index.d.ts +1 -1
- package/dist/types/ui/Addon/types.d.ts +1 -1
- package/dist/types/ui/Appearance/Chromeless.d.ts +6 -6
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +3 -3
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +11 -11
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +12 -12
- package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +3 -1
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/types.d.ts +2 -2
- package/dist/types/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types/ui/CollapsedEditor/index.d.ts +2 -2
- package/dist/types/ui/ContentStyles/index.d.ts +4 -4
- package/dist/types/ui/ContextPanel/index.d.ts +4 -4
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +3 -3
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -1
- package/dist/types/ui/PluginSlot/index.d.ts +10 -10
- package/dist/types/ui/PluginSlot/mount-plugin-hooks.d.ts +1 -1
- package/dist/types/ui/Toolbar/Toolbar.d.ts +4 -4
- package/dist/types/ui/Toolbar/ToolbarPortal.d.ts +2 -2
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +11 -11
- package/dist/types/ui/ToolbarHelp/index.d.ts +1 -1
- package/dist/types/utils/deprecation-warnings.d.ts +2 -2
- package/dist/types/utils/performance/components/RenderTracking.d.ts +1 -1
- package/dist/types/utils/performance/plugin-performance-report.d.ts +4 -4
- package/dist/types/utils/performance/simple-measure-to-entries.d.ts +1 -1
- package/dist/types/utils/performance/track-transactions.d.ts +1 -1
- package/dist/types-ts4.5/CollapsedEditor/index.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/BaseThemeWrapper.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +7 -7
- package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +4 -4
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +4 -4
- package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +16 -16
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +239 -231
- package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +13 -13
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types-ts4.5/presets/default.d.ts +21 -21
- package/dist/types-ts4.5/presets/universal.d.ts +250 -242
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +238 -230
- package/dist/types-ts4.5/test-utils.d.ts +6 -6
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +23 -23
- package/dist/types-ts4.5/types/editor-config.d.ts +9 -9
- package/dist/types-ts4.5/types/editor-instance.d.ts +7 -7
- package/dist/types-ts4.5/types/editor-onchange.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-props.d.ts +100 -100
- package/dist/types-ts4.5/types/i18n.d.ts +2 -2
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +6 -6
- package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +3 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +13 -13
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +12 -12
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +3 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +3 -3
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -1
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +10 -10
- package/dist/types-ts4.5/ui/PluginSlot/mount-plugin-hooks.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +4 -4
- package/dist/types-ts4.5/ui/Toolbar/ToolbarPortal.d.ts +2 -2
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +11 -11
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +1 -1
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +4 -4
- package/dist/types-ts4.5/utils/performance/simple-measure-to-entries.d.ts +1 -1
- package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +1 -1
- package/package.json +6 -18
- package/dist/cjs/ui/Appearance/FullPage/getEditorViewModeSync.js +0 -43
- package/dist/es2019/ui/Appearance/FullPage/getEditorViewModeSync.js +0 -33
- package/dist/esm/ui/Appearance/FullPage/getEditorViewModeSync.js +0 -36
- package/dist/types/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +0 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 210.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bcc3b620154b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcc3b620154b0) -
|
|
8
|
+
[ux] ED-28739 [Register] [Primary toolbar] Insert button
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 210.1.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`977517b25c6f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/977517b25c6f3) -
|
|
16
|
+
Cleanup synchronous view mode check that is no longer required
|
|
17
|
+
- [`e229628ac96dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e229628ac96dd) -
|
|
18
|
+
[ED-28430] clean up FG platform_editor_find_and_replace_improvements_1 for find & replace
|
|
19
|
+
additional fixes
|
|
20
|
+
- [`b1a4bc3fda78c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1a4bc3fda78c) -
|
|
21
|
+
[EDITOR-1128] clean up fg platform_editor_editor_container_a11y_focus
|
|
22
|
+
- [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
|
|
23
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 210.1.6
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -22,7 +22,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
22
22
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
23
23
|
var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
27
26
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
28
27
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -299,7 +298,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
299
298
|
// so need to set overflow-y as auto to make sure the content area is scrollable
|
|
300
299
|
overflowY: 'auto'
|
|
301
300
|
}) : null],
|
|
302
|
-
isScrollable: maxHeight
|
|
301
|
+
isScrollable: maxHeight ? true : undefined
|
|
303
302
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
304
303
|
,
|
|
305
304
|
className: (0, _classnames.default)('ak-editor-content-area', {
|
|
@@ -22,7 +22,6 @@ var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarCompo
|
|
|
22
22
|
var _FullPageContentArea = require("./FullPageContentArea");
|
|
23
23
|
var _FullPageToolbar = require("./FullPageToolbar");
|
|
24
24
|
var _FullPageToolbarNext = require("./FullPageToolbarNext");
|
|
25
|
-
var _getEditorViewModeSync = require("./getEditorViewModeSync");
|
|
26
25
|
var _StyledComponents = require("./StyledComponents");
|
|
27
26
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
28
27
|
/**
|
|
@@ -113,7 +112,6 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
113
112
|
primaryToolbarHookState = _useFullPageEditorPlu.primaryToolbarState,
|
|
114
113
|
interactionState = _useFullPageEditorPlu.interactionState;
|
|
115
114
|
var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, primaryToolbarHookState === null || primaryToolbarHookState === void 0 ? void 0 : primaryToolbarHookState.components);
|
|
116
|
-
var viewMode = (0, _getEditorViewModeSync.getEditorViewMode)(editorViewModeState, props.preset);
|
|
117
115
|
var hasHadInteraction = interactionState !== 'hasNotHadInteraction';
|
|
118
116
|
var toolbarDocking = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'selectionToolbar.toolbarDocking', {
|
|
119
117
|
disabled: (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
|
|
@@ -147,9 +145,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
147
145
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
148
146
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
149
147
|
}
|
|
150
|
-
var isEditorToolbarHidden =
|
|
151
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
152
|
-
(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state') && !(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
148
|
+
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
153
149
|
var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
|
|
154
150
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
155
151
|
exposure: true
|
|
@@ -191,6 +187,8 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
191
187
|
editorAPI: editorAPI,
|
|
192
188
|
editorView: props.editorView,
|
|
193
189
|
popupsMountPoint: props.popupsMountPoint,
|
|
190
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
191
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
194
192
|
showKeyline: showKeyline
|
|
195
193
|
})) : (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
|
|
196
194
|
appearance: props.appearance,
|
|
@@ -171,7 +171,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
171
171
|
var legacyContentStyles = function legacyContentStyles(props) {
|
|
172
172
|
return (0, _react2.css)(_templateObject0 || (_templateObject0 = (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--resizer-handle-spacing: 12px;\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\t--ak-editor--breakout-min-width: 100%;\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\t--ak-editor--breakout-min-width: 0px;\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", "\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.ProseMirror-hideselection {\n\t\tcaret-color: transparent;\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\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? (0, _react2.css)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), _editorSharedStyles.akEditorFullPageNarrowBreakout, _editorSharedStyles.akEditorGutterPaddingReduced) : null, (0, _editorSharedStyles.editorFontSize)({
|
|
173
173
|
theme: props.theme
|
|
174
|
-
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
174
|
+
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ? _tasksAndDecisions.taskItemStylesWithBlockTaskItem : _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
175
175
|
};
|
|
176
176
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
177
177
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -201,8 +201,8 @@ var createEditorContentStyle = exports.createEditorContentStyle = function creat
|
|
|
201
201
|
"data-testid": "editor-content-container"
|
|
202
202
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
|
|
203
203
|
,
|
|
204
|
-
tabIndex:
|
|
205
|
-
role:
|
|
204
|
+
tabIndex: 0,
|
|
205
|
+
role: "region"
|
|
206
206
|
}, children);
|
|
207
207
|
}
|
|
208
208
|
return (0, _react2.jsx)("div", {
|
|
@@ -16,11 +16,11 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
16
16
|
var getVisualRefreshStatusStyles = function getVisualRefreshStatusStyles() {
|
|
17
17
|
return (
|
|
18
18
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
19
|
-
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
19
|
+
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _react.css)((0, _defineProperty2.default)({}, "&.".concat(_editorSharedStyles.akEditorSelectedNodeClassName, ":not('.search-match-block') .").concat(_styles.StatusSharedCssClassName.STATUS_LOZENGE, " > span"), {
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
21
21
|
boxShadow: _editorSharedStyles.akEditorSelectedBoldBoxShadow
|
|
22
22
|
})) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
23
|
-
(0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t\tbox-shadow: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBoldBoxShadow) : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
23
|
+
(0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t\tbox-shadow: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBoldBoxShadow) : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
24
24
|
(0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", ":not('.search-match-block')\n\t\t\t\t\t\t.", "\n\t\t\t\t\t\t> span {\n\t\t\t\t\t\t", "\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow])) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
25
25
|
(0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t&.", " .", " > span {\n\t\t\t\t\t\t", "\n\t\t\t\t\t}\n\t\t\t\t"])), _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]))
|
|
26
26
|
);
|
|
@@ -209,9 +209,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
209
209
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
210
210
|
_expandStyles.expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
211
211
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
212
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
213
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
214
|
-
_findReplaceStyles.findReplaceStylesNewNoImportant :
|
|
212
|
+
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _expandStyles.expandStylesMixin_fg_platform_visual_refresh_icons, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
215
213
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
216
214
|
_findReplaceStyles.findReplaceStylesNew :
|
|
217
215
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -231,17 +229,17 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
231
229
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
232
230
|
_tasksAndDecisionsStyles.decisionIconWithoutVisualRefresh,
|
|
233
231
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
234
|
-
_statusStyles.statusStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
232
|
+
_statusStyles.statusStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
235
233
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
236
234
|
_statusStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match :
|
|
237
235
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
238
|
-
_statusStyles.statusStylesMixin_fg_platform_component_visual_refresh : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
236
|
+
_statusStyles.statusStylesMixin_fg_platform_component_visual_refresh : (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
239
237
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
240
238
|
_statusStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match :
|
|
241
239
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
242
240
|
_statusStyles.statusStylesMixin_without_fg_platform_component_visual_refresh,
|
|
243
241
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
244
|
-
_annotationStyles.annotationStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
242
|
+
_annotationStyles.annotationStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
245
243
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
246
244
|
_smartCardStyles.smartCardStylesWithSearchMatch :
|
|
247
245
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -341,7 +339,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
341
339
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
342
340
|
_firstBlockNodeStyles.firstBlockNodeStyles,
|
|
343
341
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
344
|
-
_mentions.mentionNodeStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
342
|
+
_mentions.mentionNodeStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
345
343
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
346
344
|
_mentions.mentionsSelectionStylesWithSearchMatch :
|
|
347
345
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -375,8 +373,8 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
375
373
|
style: style
|
|
376
374
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
|
|
377
375
|
,
|
|
378
|
-
tabIndex: isScrollable
|
|
379
|
-
role: isScrollable
|
|
376
|
+
tabIndex: isScrollable ? 0 : undefined,
|
|
377
|
+
role: isScrollable ? 'region' : undefined
|
|
380
378
|
}, children);
|
|
381
379
|
});
|
|
382
380
|
var _default = exports.default = EditorContentContainer;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.findReplaceStylesNew = exports.findReplaceStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
9
|
|
|
@@ -28,179 +28,6 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
|
|
|
28
28
|
|
|
29
29
|
/** Light mode */
|
|
30
30
|
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
32
|
-
'.search-match-text': {
|
|
33
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
34
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
36
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)".concat(" !important"),
|
|
37
|
-
color: "var(--ds-text, #172B4D)"
|
|
38
|
-
},
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
40
|
-
'.search-match-text.selected-search-match': {
|
|
41
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
43
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)".concat(" !important")
|
|
44
|
-
},
|
|
45
|
-
/** Dark mode */
|
|
46
|
-
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
48
|
-
'.search-match-text.search-match-dark': {
|
|
49
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
51
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)".concat(" !important"),
|
|
52
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
53
|
-
},
|
|
54
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
55
|
-
'.search-match-text.selected-search-match.search-match-dark': {
|
|
56
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
58
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)".concat(" !important")
|
|
59
|
-
},
|
|
60
|
-
/** Block match styles */
|
|
61
|
-
|
|
62
|
-
/** Light mode */
|
|
63
|
-
|
|
64
|
-
/** Without node selection */
|
|
65
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
66
|
-
'.search-match-block': {
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
69
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t\t")
|
|
70
|
-
},
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
73
|
-
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
77
|
-
'.search-match-block.search-match-block-selected': {
|
|
78
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
79
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
80
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t\t")
|
|
81
|
-
},
|
|
82
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
83
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
84
|
-
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)")
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
/** With node selection */
|
|
88
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
89
|
-
'.search-match-block.ak-editor-selected-node': {
|
|
90
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
91
|
-
'.loader-wrapper>div::after': {
|
|
92
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
93
|
-
},
|
|
94
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
95
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
96
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
97
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
101
|
-
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
102
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
103
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
104
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
105
|
-
},
|
|
106
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
107
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
108
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
109
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", " !important")
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
/** Dark mode */
|
|
113
|
-
/** Without node selection */
|
|
114
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
115
|
-
'.search-match-block.search-match-dark': {
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
117
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
118
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t\t")
|
|
119
|
-
},
|
|
120
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
121
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
122
|
-
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
126
|
-
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
127
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
128
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
129
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t\t")
|
|
130
|
-
},
|
|
131
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
132
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
133
|
-
boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)")
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
/** With node selection */
|
|
137
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
138
|
-
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
139
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
140
|
-
'.loader-wrapper>div::after': {
|
|
141
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
142
|
-
},
|
|
143
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
144
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
145
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
146
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
150
|
-
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
151
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
152
|
-
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
153
|
-
boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
|
|
154
|
-
},
|
|
155
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
156
|
-
'.loader-wrapper>a, .hover-card-trigger-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
157
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
158
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-magenta-bolder, #AE4787)", " !important")
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
/** Expand title match styles */
|
|
162
|
-
|
|
163
|
-
/** Light mode */
|
|
164
|
-
|
|
165
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
166
|
-
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
167
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
168
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
169
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
170
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
171
|
-
'.ak-editor-expand__title-input': {
|
|
172
|
-
color: "var(--ds-text, #172B4D)"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
176
|
-
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
177
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-subtler-pressed, #E774BB)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)", "\n\t\t"),
|
|
178
|
-
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
179
|
-
},
|
|
180
|
-
/** Dark mode */
|
|
181
|
-
|
|
182
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
183
|
-
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
184
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #50253F)", "\n\t\t"),
|
|
185
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
186
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
187
|
-
'.ak-editor-expand__title-input': {
|
|
188
|
-
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
192
|
-
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
193
|
-
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
194
|
-
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
199
|
-
var findReplaceStylesNewNoImportant = exports.findReplaceStylesNewNoImportant = (0, _react.css)({
|
|
200
|
-
/** Text match styles */
|
|
201
|
-
|
|
202
|
-
/** Light mode */
|
|
203
|
-
|
|
204
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
205
32
|
'.search-match-text': {
|
|
206
33
|
borderRadius: "var(--ds-space-050, 4px)",
|
|
@@ -47,7 +47,9 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
|
|
|
47
47
|
editorView = _ref.editorView,
|
|
48
48
|
editorAPI = _ref.editorAPI,
|
|
49
49
|
popupsMountPoint = _ref.popupsMountPoint,
|
|
50
|
-
editorAppearance = _ref.editorAppearance
|
|
50
|
+
editorAppearance = _ref.editorAppearance,
|
|
51
|
+
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
52
|
+
popupsScrollableElement = _ref.popupsScrollableElement;
|
|
51
53
|
var connectivityStateMode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'connectivity.mode');
|
|
52
54
|
var isOffline = connectivityStateMode === 'offline';
|
|
53
55
|
return /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
|
|
@@ -56,7 +58,9 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
|
|
|
56
58
|
}, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
|
|
57
59
|
api: editorAPI,
|
|
58
60
|
isDisabled: isOffline,
|
|
59
|
-
popupsMountPoint: popupsMountPoint
|
|
61
|
+
popupsMountPoint: popupsMountPoint,
|
|
62
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
63
|
+
popupsScrollableElement: popupsScrollableElement
|
|
60
64
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbarModel.ToolbarModelRenderer, {
|
|
61
65
|
toolbar: toolbar,
|
|
62
66
|
components: components,
|
|
@@ -17,7 +17,6 @@ import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
|
17
17
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
18
18
|
import { tableCommentEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
|
|
19
19
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
20
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
22
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -302,7 +301,7 @@ export const CommentEditorWithIntl = props => {
|
|
|
302
301
|
// so need to set overflow-y as auto to make sure the content area is scrollable
|
|
303
302
|
overflowY: 'auto'
|
|
304
303
|
}) : null],
|
|
305
|
-
isScrollable: maxHeight
|
|
304
|
+
isScrollable: maxHeight ? true : undefined
|
|
306
305
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
307
306
|
,
|
|
308
307
|
className: classnames('ak-editor-content-area', {
|
|
@@ -19,7 +19,6 @@ import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComp
|
|
|
19
19
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
20
20
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
21
21
|
import { FullPageToolbarNext } from './FullPageToolbarNext';
|
|
22
|
-
import { getEditorViewMode } from './getEditorViewModeSync';
|
|
23
22
|
import { fullPageEditorWrapper } from './StyledComponents';
|
|
24
23
|
const useShowKeyline = contentAreaRef => {
|
|
25
24
|
const [showKeyline, setShowKeyline] = useState(false);
|
|
@@ -97,7 +96,6 @@ export const FullPageEditor = props => {
|
|
|
97
96
|
interactionState
|
|
98
97
|
} = useFullPageEditorPluginsStates(editorAPI);
|
|
99
98
|
const primaryToolbarState = getPrimaryToolbarComponents(editorAPI, primaryToolbarHookState === null || primaryToolbarHookState === void 0 ? void 0 : primaryToolbarHookState.components);
|
|
100
|
-
const viewMode = getEditorViewMode(editorViewModeState, props.preset);
|
|
101
99
|
const hasHadInteraction = interactionState !== 'hasNotHadInteraction';
|
|
102
100
|
let toolbarDocking = useSharedPluginStateSelector(editorAPI, 'selectionToolbar.toolbarDocking', {
|
|
103
101
|
disabled: fg('platform_editor_use_preferences_plugin')
|
|
@@ -132,9 +130,7 @@ export const FullPageEditor = props => {
|
|
|
132
130
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
133
131
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
134
132
|
}
|
|
135
|
-
let isEditorToolbarHidden =
|
|
136
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
137
|
-
fg('platform_editor_sync_editor_view_mode_state') && !fg('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
133
|
+
let isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
138
134
|
const {
|
|
139
135
|
customPrimaryToolbarComponents
|
|
140
136
|
} = props;
|
|
@@ -178,6 +174,8 @@ export const FullPageEditor = props => {
|
|
|
178
174
|
editorAPI: editorAPI,
|
|
179
175
|
editorView: props.editorView,
|
|
180
176
|
popupsMountPoint: props.popupsMountPoint,
|
|
177
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
178
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
181
179
|
showKeyline: showKeyline
|
|
182
180
|
})) : jsx(FullPageToolbar, {
|
|
183
181
|
appearance: props.appearance,
|
|
@@ -19,7 +19,7 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
|
19
19
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
20
20
|
import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, ruleSharedStyles, shadowSharedStyle, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
21
21
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
22
|
-
import { findReplaceStyles, findReplaceStylesNew
|
|
22
|
+
import { findReplaceStyles, findReplaceStylesNew } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
23
23
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
24
24
|
import { placeholderTextStyles, placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour } from '@atlaskit/editor-plugins/placeholder-text/styles';
|
|
25
25
|
import { SelectionStyle, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles } from '@atlaskit/editor-shared-styles';
|
|
@@ -452,7 +452,7 @@ const legacyContentStyles = props => css`
|
|
|
452
452
|
${mentionsStyles}
|
|
453
453
|
${mentionNodeStyles}
|
|
454
454
|
${fg('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding}
|
|
455
|
-
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
455
|
+
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles}
|
|
456
456
|
${fg('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles}
|
|
457
457
|
${tasksAndDecisionsStyles}
|
|
458
458
|
${gridStyles}
|
|
@@ -461,7 +461,7 @@ const legacyContentStyles = props => css`
|
|
|
461
461
|
${dateSharedStyle}
|
|
462
462
|
${extensionStyles}
|
|
463
463
|
${expandStyles()}
|
|
464
|
-
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
464
|
+
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? findReplaceStylesNew : findReplaceStyles}
|
|
465
465
|
${textHighlightStyle}
|
|
466
466
|
${taskDecisionStyles}
|
|
467
467
|
${expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ? taskItemStylesWithBlockTaskItem : taskItemStyles}
|
|
@@ -582,8 +582,8 @@ export const createEditorContentStyle = styles => {
|
|
|
582
582
|
"data-testid": "editor-content-container"
|
|
583
583
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
|
|
584
584
|
,
|
|
585
|
-
tabIndex:
|
|
586
|
-
role:
|
|
585
|
+
tabIndex: 0,
|
|
586
|
+
role: "region"
|
|
587
587
|
}, children);
|
|
588
588
|
}
|
|
589
589
|
return jsx("div", {
|
|
@@ -6,7 +6,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
6
6
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
7
|
const getVisualRefreshStatusStyles = () =>
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
9
|
-
fg('platform-component-visual-refresh') ? expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
9
|
+
fg('platform-component-visual-refresh') ? expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? css({
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
11
11
|
[`&.${akEditorSelectedNodeClassName}:not('.search-match-block') .${StatusSharedCssClassName.STATUS_LOZENGE} > span`]: {
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -18,7 +18,7 @@ css`
|
|
|
18
18
|
&.${akEditorSelectedNodeClassName} .${StatusSharedCssClassName.STATUS_LOZENGE} > span {
|
|
19
19
|
box-shadow: ${akEditorSelectedBoldBoxShadow};
|
|
20
20
|
}
|
|
21
|
-
` : expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true)
|
|
21
|
+
` : expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
22
22
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
23
23
|
css`
|
|
24
24
|
&.${akEditorSelectedNodeClassName}:not('.search-match-block')
|