@atlaskit/editor-core 238.0.0 → 238.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/composable-editor/editor-internal.js +3 -3
- package/dist/cjs/ui/Appearance/Comment/Comment.js +12 -11
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +8 -8
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -13
- package/dist/cjs/utils/performance/components/RenderTracking.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +5 -4
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +3 -3
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -13
- package/dist/es2019/utils/performance/components/RenderTracking.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +5 -4
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +3 -3
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -13
- package/dist/esm/utils/performance/components/RenderTracking.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +1 -1
- package/dist/types/composable-editor/hooks/useProviders.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +6 -3
- package/dist/types/ui/quick-insert/QuickInsertSkillMenuItem.d.ts +2 -2
- package/dist/types/utils/performance/components/RenderTracking.d.ts +2 -1
- package/package.json +11 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 238.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 238.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`56bd2d041039c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56bd2d041039c) -
|
|
14
|
+
Remove the disabled extension block spacing experiment and its unused editor styles.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 238.0.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ exports.EditorInternal = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
13
13
|
var _usePortalProvider5 = require("@atlaskit/editor-common/usePortalProvider");
|
|
14
14
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
15
15
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
@@ -65,8 +65,8 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
|
|
|
65
65
|
});
|
|
66
66
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, renderTrackingEnabled && /*#__PURE__*/_react.default.createElement(_RenderTracking.RenderTracking, {
|
|
67
67
|
componentProps: props,
|
|
68
|
-
action:
|
|
69
|
-
actionSubject:
|
|
68
|
+
action: _enums.ACTION.RE_RENDERED,
|
|
69
|
+
actionSubject: _enums.ACTION_SUBJECT.EDITOR,
|
|
70
70
|
handleAnalyticsEvent: handleAnalyticsEvent,
|
|
71
71
|
propsToIgnore: propsToIgnore,
|
|
72
72
|
useShallow: false
|
|
@@ -16,11 +16,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
17
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
18
18
|
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
19
|
-
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
20
19
|
var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
20
|
+
var _ToolbarArrowKeyNavigationProvider = require("@atlaskit/editor-common/ui-menu/ToolbarArrowKeyNavigationProvider");
|
|
21
|
+
var _useSharedPluginState3 = require("@atlaskit/editor-common/useSharedPluginState");
|
|
22
|
+
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
23
|
+
var _WidthProvider = require("@atlaskit/editor-common/WidthProvider");
|
|
24
|
+
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
24
25
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
25
26
|
var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
|
|
26
27
|
var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
|
|
@@ -52,7 +53,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
52
53
|
// Get useStandardNodeWidth from block menu plugin shared state
|
|
53
54
|
// Only access editorAPI when the experiment is enabled to avoid performance impact
|
|
54
55
|
var useStandardNodeWidth = (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') && ((_editorAPI$blockMenu$ = editorAPI === null || editorAPI === void 0 || (_editorAPI$blockMenu = editorAPI.blockMenu) === null || _editorAPI$blockMenu === void 0 || (_editorAPI$blockMenu = _editorAPI$blockMenu.sharedState) === null || _editorAPI$blockMenu === void 0 || (_editorAPI$blockMenu = _editorAPI$blockMenu.currentState()) === null || _editorAPI$blockMenu === void 0 ? void 0 : _editorAPI$blockMenu.useStandardNodeWidth) !== null && _editorAPI$blockMenu$ !== void 0 ? _editorAPI$blockMenu$ : false);
|
|
55
|
-
var _useSharedPluginState = (0,
|
|
56
|
+
var _useSharedPluginState = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(editorAPI, ['maxContentSize', 'primaryToolbar', 'editorViewMode'], function (states) {
|
|
56
57
|
var _states$maxContentSiz, _states$primaryToolba, _states$editorViewMod;
|
|
57
58
|
return {
|
|
58
59
|
maxContentSizeReached: !!((_states$maxContentSiz = states.maxContentSizeState) !== null && _states$maxContentSiz !== void 0 && _states$maxContentSiz.maxContentSizeReached),
|
|
@@ -64,7 +65,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
64
65
|
primaryToolbarComponentsState = _useSharedPluginState.primaryToolbarComponentsState,
|
|
65
66
|
maxContentSizeReached = _useSharedPluginState.maxContentSizeReached;
|
|
66
67
|
var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, primaryToolbarComponentsState);
|
|
67
|
-
var _useSharedPluginState2 = (0,
|
|
68
|
+
var _useSharedPluginState2 = (0, _useSharedPluginState3.useSharedPluginState)(editorAPI, ['media']),
|
|
68
69
|
mediaState = _useSharedPluginState2.mediaState;
|
|
69
70
|
var intl = (0, _reactIntl.useIntl)();
|
|
70
71
|
var editorDOMElement = props.editorDOMElement,
|
|
@@ -152,7 +153,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
152
153
|
}, customPrimaryToolbarComponents);
|
|
153
154
|
return /*#__PURE__*/_react.default.createElement(_WithFlash.default, {
|
|
154
155
|
animate: maxContentSizeReached
|
|
155
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
156
|
+
}, /*#__PURE__*/_react.default.createElement(_WidthProvider.WidthProvider, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
156
157
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- dynamic minHeight/maxHeight from props
|
|
157
158
|
style: wrapperStyle
|
|
158
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -164,7 +165,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
164
165
|
useStickyToolbar: useStickyToolbar,
|
|
165
166
|
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
166
167
|
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
167
|
-
}, isToolbarAIFCEnabled ? /*#__PURE__*/_react.default.createElement(
|
|
168
|
+
}, isToolbarAIFCEnabled ? /*#__PURE__*/_react.default.createElement(_ToolbarArrowKeyNavigationProvider.ToolbarArrowKeyNavigationProvider, {
|
|
168
169
|
editorView: editorView,
|
|
169
170
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
170
171
|
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
@@ -180,7 +181,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
180
181
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
181
182
|
popupsScrollableElement: popupsScrollableElement,
|
|
182
183
|
popupsMountPoint: popupsMountPoint
|
|
183
|
-
}), customPrimaryToolbarComponents ? customToolbarSlot : null) : /*#__PURE__*/_react.default.createElement(
|
|
184
|
+
}), customPrimaryToolbarComponents ? customToolbarSlot : null) : /*#__PURE__*/_react.default.createElement(_ToolbarArrowKeyNavigationProvider.ToolbarArrowKeyNavigationProvider, {
|
|
184
185
|
editorView: editorView,
|
|
185
186
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
186
187
|
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
@@ -214,7 +215,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
214
215
|
}), customToolbarSlot)), /*#__PURE__*/_react.default.createElement(_ClickAreaBlock.default, {
|
|
215
216
|
editorView: editorView,
|
|
216
217
|
editorDisabled: disabled
|
|
217
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
218
|
+
}, /*#__PURE__*/_react.default.createElement(_WidthProvider.WidthConsumer, null, function (_ref) {
|
|
218
219
|
var width = _ref.width;
|
|
219
220
|
return /*#__PURE__*/_react.default.createElement(_EditorContentContainer.default, {
|
|
220
221
|
ref: containerElement,
|
|
@@ -222,7 +223,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
222
223
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
223
224
|
,
|
|
224
225
|
className: (0, _runtime.ax)([maxHeight && commentEditorCompiledStyles.contentAreaMaxHeight, (0, _classnames.default)('ak-editor-content-area', {
|
|
225
|
-
'less-margin': width <
|
|
226
|
+
'less-margin': width < _constants.akEditorMobileBreakoutPoint
|
|
226
227
|
})]),
|
|
227
228
|
featureFlags: featureFlags,
|
|
228
229
|
viewMode: editorViewMode,
|
|
@@ -12,9 +12,9 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
15
|
+
var _fullPage = require("@atlaskit/editor-common/messages/full-page");
|
|
16
|
+
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
17
|
+
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
18
18
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
19
19
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
20
20
|
var _ClickAreaBlock = require("../../Addon/ClickAreaBlock");
|
|
@@ -35,7 +35,7 @@ var akLayoutGutterOffset = 12;
|
|
|
35
35
|
var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
|
|
36
36
|
var AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
37
37
|
var getTotalPadding = function getTotalPadding() {
|
|
38
|
-
return (0,
|
|
38
|
+
return (0, _constants.akEditorGutterPaddingDynamic)() * 2;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
// Isolates the scroll container's layout and size from the rest of the page.
|
|
@@ -74,7 +74,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
74
74
|
var contentAreaRef = (0, _react.useRef)(null);
|
|
75
75
|
var containerRef = (0, _react.useRef)(null);
|
|
76
76
|
var allowScrollGutter = (_props$editorAPI = props.editorAPI) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.base) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.sharedState.currentState()) === null || _props$editorAPI === void 0 ? void 0 : _props$editorAPI.allowScrollGutter;
|
|
77
|
-
var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth :
|
|
77
|
+
var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : _constants.akEditorDefaultLayoutWidth : akEditorFullWidthLayoutWidth);
|
|
78
78
|
|
|
79
79
|
// Get useStandardNodeWidth from block menu plugin shared state
|
|
80
80
|
// Only access editorAPI when the experiment is enabled to avoid performance impact
|
|
@@ -92,11 +92,11 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
}, []);
|
|
95
|
-
var markdownPluginCurrentView = (0,
|
|
95
|
+
var markdownPluginCurrentView = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(props.editorAPI, ['markdownMode'], function (states) {
|
|
96
96
|
var _states$markdownModeS;
|
|
97
97
|
return (_states$markdownModeS = states.markdownModeState) === null || _states$markdownModeS === void 0 ? void 0 : _states$markdownModeS.view;
|
|
98
98
|
});
|
|
99
|
-
var markdownPluginCurrentIsMarkdownMode = (0,
|
|
99
|
+
var markdownPluginCurrentIsMarkdownMode = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(props.editorAPI, ['markdownMode'], function (states) {
|
|
100
100
|
var _states$markdownModeS2;
|
|
101
101
|
return (_states$markdownModeS2 = states.markdownModeState) === null || _states$markdownModeS2 === void 0 ? void 0 : _states$markdownModeS2.isMarkdownMode;
|
|
102
102
|
});
|
|
@@ -130,7 +130,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
130
130
|
compiledStyles.editorContentAreaContainerStyleExcludeCodeBlockNew, compiledStyles.editorContentAreaContainerNestedDndStyle, "ak-editor-content-area-region"]),
|
|
131
131
|
"data-editor-editable-content": true,
|
|
132
132
|
role: "region",
|
|
133
|
-
"aria-label": props.intl.formatMessage(
|
|
133
|
+
"aria-label": props.intl.formatMessage(_fullPage.messages.editableContentLabel),
|
|
134
134
|
ref: contentAreaRef,
|
|
135
135
|
"data-vc": "editor-content-area-region"
|
|
136
136
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
.cc-123pw0y{--ak-editor--default-gutter-padding:32px}.cc-123pw0y{--ak-editor--default-layout-width:760px}.cc-123pw0y{--ak-editor--resizer-handle-spacing:12px}.cc-123pw0y{--ak-editor--full-width-layout-width:1800px}.cc-123pw0y{--ak-editor--line-length:min(calc(100cqw - var(--ak-editor--large-gutter-padding)*2),var(--ak-editor--default-layout-width))}.cc-123pw0y{--ak-editor--max-width-layout-width:4000px}.cc-123pw0y{--ak-editor--breakout-wide-layout-width:905px}.cc-123pw0y{--ak-editor--breakout-full-page-guttering-padding:calc(var(--ak-editor--large-gutter-padding)*2 + var(--ak-editor--default-gutter-padding))}.cc-123pw0y{--ak-editor--breakout-fallback-width:calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))}.cc-123pw0y{--ak-editor--breakout-min-width:100%}.cc-123pw0y .fabric-editor--full-width-mode{--ak-editor--line-length:min(calc(100cqw - var(--ak-editor--large-gutter-padding)*2),var(--ak-editor--full-width-layout-width));--ak-editor--breakout-fallback-width:100%;--ak-editor--breakout-min-width:0px}.cc-123pw0y .ProseMirror{--ak-editor-max-container-width:calc(100cqw - var(--ak-editor--large-gutter-padding));outline-color:currentColor;outline-style:none;outline-width:medium;font-size:var(--ak-editor-base-font-size)}.cc-123pw0y .ProseMirror>div[data-prosemirror-node-block] [data-prosemirror-node-block]{--ak-editor-max-container-width:100%}@container editor-area (width >= 1266px){.cc-123pw0y .ProseMirror{--ak-editor--breakout-wide-layout-width:1011px}}
|
|
9
9
|
.cc-cgsb4r .ProseMirror{--ak-editor-max-container-width:calc(100cqw - var(--ak-editor--large-gutter-padding)*2)}
|
|
10
10
|
.cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>p:first-child:not(style){margin-top:0}
|
|
11
|
-
.cc-mc43mp .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror>style:first-child+p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote:first-child{margin-top:0}.cc-mc43mp .ProseMirror .code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.ProseMirror-gapcursor:first-child+.code-block, .cc-mc43mp .ProseMirror li>.code-block:first-child{margin-top:0}.cc-mc43mp .ProseMirror li>div:last-of-type.code-block, .cc-mc43mp .ProseMirror li>pre:last-of-type.code-block{margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .blockCardView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror .extensionView-content-wrap, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:first-of-type{margin-top:0}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:last-of-type{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.extensionView-content-wrap{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-bottom:0}
|
|
12
11
|
.cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedExtension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=extension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=multiBodiedExtension]){margin-top:.75rem;margin-right:0;margin-bottom:.75rem;margin-left:0}
|
|
13
|
-
.cc-1syzwzx .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75em)}
|
|
14
12
|
.cc-1w88a35 .ProseMirror blockquote.danger{background-color:var(--ds-background-danger,#ffeceb);border-left-color:var(--ds-border-danger,#e2483d)}
|
|
15
13
|
.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node{background:var(--ds-background-accent-blue-subtler,#cfe1fd);border-left-color:var(--ds-border-selected,#1868db);-webkit-user-select:text}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::selection{background-color:transparent}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::-moz-selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::-moz-selection{background-color:transparent}
|
|
16
14
|
.cc-2psl3e .ProseMirror blockquote{box-sizing:border-box;color:inherit;width:100%;display:inline-block;padding-top:0;padding-bottom:0;padding-left:var(--ds-space-200,1pc);border-left-width:var(--ds-border-width-selected,2px);border-left-style:solid;border-left-color:var(--ds-border,#0b120e24);margin-top:.75rem;margin-bottom:0;margin-left:0;margin-right:0}.cc-2psl3e .ProseMirror blockquote:first-child{margin-top:0}.cc-2psl3e .ProseMirror blockquote:before{content:""}.cc-2psl3e .ProseMirror blockquote:after{content:none}.cc-2psl3e .ProseMirror blockquote p{display:block}.cc-2psl3e .ProseMirror blockquote table, .cc-2psl3e .ProseMirror blockquote table:last-child{display:inline-table}.cc-2psl3e .ProseMirror blockquote>.code-block:last-child, .cc-2psl3e .ProseMirror blockquote>.mediaGroupView-content-wrap:last-child, .cc-2psl3e .ProseMirror blockquote>.mediaSingleView-content-wrap:last-child{display:block}.cc-2psl3e .ProseMirror blockquote>.extensionView-content-wrap:last-child{display:block}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h1:first-child{margin-top:1.667em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h2:first-child{margin-top:1.8em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h3:first-child{margin-top:2em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h4:first-child{margin-top:1.357em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h5:first-child{margin-top:1.667em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h6:first-child{margin-top:1.455em}.cc-2psl3e .ProseMirror .ProseMirror-gapcursor:first-child+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child, .cc-2psl3e .ProseMirror .ProseMirror-widget:first-child+.ProseMirror-widget:nth-child(2)+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child, .cc-2psl3e .ProseMirror .ProseMirror-widget:first-child+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child{margin-top:0}
|
|
@@ -55,13 +55,6 @@ var GRID_GUTTER = 12;
|
|
|
55
55
|
var blockNodesVerticalMargin = '0.75rem';
|
|
56
56
|
var fontSize14px = "".concat(14 / 16, "rem");
|
|
57
57
|
var scaledBlockNodesVerticalMargin = '0.75em';
|
|
58
|
-
// Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
|
|
59
|
-
// When the experiment is on, these variants re-declare the block margins to read from the
|
|
60
|
-
// `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
|
|
61
|
-
// When the experiment is off, none of these are applied and behaviour is identical to before.
|
|
62
|
-
var blockNodesVerticalMarginVar = 'var(--ak-editor-extension-block-spacing, 0.75rem)';
|
|
63
|
-
var scaledBlockNodesVerticalMarginVar = 'var(--ak-editor-extension-block-spacing, 0.75em)';
|
|
64
|
-
|
|
65
58
|
// emoji constants — values inlined from packages/elements/emoji/src/util/constants.ts
|
|
66
59
|
// If you need to update these values, please also update packages/elements/emoji/src/util/constants.ts
|
|
67
60
|
var defaultEmojiHeight = 20;
|
|
@@ -156,9 +149,7 @@ var editorContentStyles = {
|
|
|
156
149
|
baseStyles: "cc-123pw0y",
|
|
157
150
|
baseStylesMaxContainerWidthFixes: "cc-cgsb4r",
|
|
158
151
|
blockMarksStyles: "cc-11zeupy",
|
|
159
|
-
blockSpacingVarStyles: "cc-mc43mp",
|
|
160
152
|
extensionWithBreakoutStyles: "cc-104fmpo",
|
|
161
|
-
blockSpacingVarScaledStyles: "cc-1syzwzx",
|
|
162
153
|
blockquoteDangerStyles: "cc-1w88a35",
|
|
163
154
|
blockquoteSelectedNodeStyles: "cc-pt15wg",
|
|
164
155
|
blocktypeStyles: "cc-2psl3e",
|
|
@@ -396,9 +387,6 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
396
387
|
});
|
|
397
388
|
}, [tableOverflowShadow]);
|
|
398
389
|
var browser = (0, _browser.getBrowserInfo)();
|
|
399
|
-
|
|
400
|
-
// Evaluate the block-spacing experiment once per render.
|
|
401
|
-
var isBlockSpacingEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing');
|
|
402
390
|
var isFloatingTocEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_floating_toc');
|
|
403
391
|
var isUpdateStatusColorsEnabled = (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors', 'isEnabled', false) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
404
392
|
var isStatusStylesTeam26 = (0, _fg.fg)('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
@@ -407,7 +395,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
407
395
|
className: (0, _runtime.ax)([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
408
396
|
exposure: true
|
|
409
397
|
}) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout_2') && editorContentStyles.extensionScrollInlineShadowStyles, editorContentStyles.InlineNodeViewSharedStyles, editorContentStyles.hideSelectionStyles, editorContentStyles.hideCursorWhenHideSelectionStyles, editorContentStyles.selectedNodeStyles, editorContentStyles.cursorStyles, editorContentStyles.firstFloatingToolbarButtonStyles, editorContentStyles.placeholderTextStyles, editorContentStyles.placeholderStyles, (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') && editorContentStyles.placeholderOverflowStyles, editorContentStyles.codeBlockStyles, contentMode === 'compact' && editorContentStyles.codeBlockStylesWithEmUnits, editorContentStyles.editorUGCTokensRefreshed, editorContentStyles.editorUGCSmallText, editorContentStyles.blocktypeStyles, editorContentStyles.blocktypeStylesRtlBlockquote, isFloatingTocEnabled && editorContentStyles.headingScrollMarginStyles, editorContentStyles.blockquoteSelectedNodeStyles, editorContentStyles.listSelectedNodeStyles, editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !(0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_dividers_attributes') && editorContentStyles.ruleWithAttrsStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_numbered_headings') && editorContentStyles.numberedHeadingsStyles, editorContentStyles.smartCardDiffStyles, editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaCaptionStyles, contentMode === 'compact' && editorContentStyles.mediaCaptionStyles, editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
410
|
-
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, (0, _fg.fg)('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : (0, _fg.fg)('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, (0, _fg.fg)('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, (0, _fg.fg)('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-maui-experiment', 'isEnabled', true) && (0, _expValEquals.expValEquals)('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, (0, _fg.fg)('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && !(0, _fg.fg)('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && (0, _fg.fg)('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout') && !(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout') && !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && (0, _editorExperiment.editorExperiment)('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !(0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, (0, _expValEquals.expValEquals)('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, (0, _fg.fg)('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, (0, _fg.fg)('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
398
|
+
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, (0, _fg.fg)('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : (0, _fg.fg)('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, (0, _fg.fg)('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, (0, _fg.fg)('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-maui-experiment', 'isEnabled', true) && (0, _expValEquals.expValEquals)('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, (0, _fg.fg)('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && !(0, _fg.fg)('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && (0, _fg.fg)('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout') && !(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout') && !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && (0, _editorExperiment.editorExperiment)('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && (0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !(0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, (0, _expValEquals.expValEquals)('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, (0, _fg.fg)('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, (0, _fg.fg)('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, className || undefined]),
|
|
411
399
|
ref: ref,
|
|
412
400
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
413
401
|
"data-testid": "editor-content-container"
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.RenderTracking = RenderTracking;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
10
|
-
var
|
|
10
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
11
11
|
var _useComponentRenderTracking = require("@atlaskit/editor-common/use-component-render-tracking");
|
|
12
12
|
function RenderTracking(props) {
|
|
13
13
|
var debouncedHandleAnalyticsEvent = (0, _react.useMemo)(function () {
|
|
@@ -28,7 +28,7 @@ function RenderTracking(props) {
|
|
|
28
28
|
count: renderCount,
|
|
29
29
|
propsDifference: propsDifference
|
|
30
30
|
},
|
|
31
|
-
eventType:
|
|
31
|
+
eventType: _enums.EVENT_TYPE.OPERATIONAL
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
},
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "
|
|
9
|
+
var version = exports.version = "238.0.2";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Fragment, memo } from 'react';
|
|
2
|
-
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import { usePortalProvider } from '@atlaskit/editor-common/usePortalProvider';
|
|
4
4
|
import { editorFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -6,11 +6,12 @@ import classnames from 'classnames';
|
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
8
8
|
import Button from '@atlaskit/button/default/button';
|
|
9
|
-
import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
10
9
|
import messages from '@atlaskit/editor-common/messages';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
10
|
+
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
11
|
+
import { useSharedPluginState } from '@atlaskit/editor-common/useSharedPluginState';
|
|
12
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
13
|
+
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/WidthProvider';
|
|
14
|
+
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles/constants';
|
|
14
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
16
|
// Ignored via go/ees005
|
|
16
17
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -4,9 +4,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import { injectIntl } from 'react-intl';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { akEditorGutterPaddingDynamic, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
7
|
+
import { messages } from '@atlaskit/editor-common/messages/full-page';
|
|
8
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
9
|
+
import { akEditorGutterPaddingDynamic, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
10
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
11
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
12
|
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
.cc-123pw0y{--ak-editor--default-gutter-padding:32px}.cc-123pw0y{--ak-editor--default-layout-width:760px}.cc-123pw0y{--ak-editor--resizer-handle-spacing:12px}.cc-123pw0y{--ak-editor--full-width-layout-width:1800px}.cc-123pw0y{--ak-editor--line-length:min(calc(100cqw - var(--ak-editor--large-gutter-padding)*2),var(--ak-editor--default-layout-width))}.cc-123pw0y{--ak-editor--max-width-layout-width:4000px}.cc-123pw0y{--ak-editor--breakout-wide-layout-width:905px}.cc-123pw0y{--ak-editor--breakout-full-page-guttering-padding:calc(var(--ak-editor--large-gutter-padding)*2 + var(--ak-editor--default-gutter-padding))}.cc-123pw0y{--ak-editor--breakout-fallback-width:calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))}.cc-123pw0y{--ak-editor--breakout-min-width:100%}.cc-123pw0y .fabric-editor--full-width-mode{--ak-editor--line-length:min(calc(100cqw - var(--ak-editor--large-gutter-padding)*2),var(--ak-editor--full-width-layout-width));--ak-editor--breakout-fallback-width:100%;--ak-editor--breakout-min-width:0px}.cc-123pw0y .ProseMirror{--ak-editor-max-container-width:calc(100cqw - var(--ak-editor--large-gutter-padding));outline-color:currentColor;outline-style:none;outline-width:medium;font-size:var(--ak-editor-base-font-size)}.cc-123pw0y .ProseMirror>div[data-prosemirror-node-block] [data-prosemirror-node-block]{--ak-editor-max-container-width:100%}@container editor-area (width >= 1266px){.cc-123pw0y .ProseMirror{--ak-editor--breakout-wide-layout-width:1011px}}
|
|
9
9
|
.cc-cgsb4r .ProseMirror{--ak-editor-max-container-width:calc(100cqw - var(--ak-editor--large-gutter-padding)*2)}
|
|
10
10
|
.cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>p:first-child:not(style){margin-top:0}
|
|
11
|
-
.cc-mc43mp .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror>style:first-child+p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote:first-child{margin-top:0}.cc-mc43mp .ProseMirror .code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.ProseMirror-gapcursor:first-child+.code-block, .cc-mc43mp .ProseMirror li>.code-block:first-child{margin-top:0}.cc-mc43mp .ProseMirror li>div:last-of-type.code-block, .cc-mc43mp .ProseMirror li>pre:last-of-type.code-block{margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .blockCardView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror .extensionView-content-wrap, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:first-of-type{margin-top:0}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:last-of-type{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.extensionView-content-wrap{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-bottom:0}
|
|
12
11
|
.cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedExtension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=extension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=multiBodiedExtension]){margin-top:.75rem;margin-right:0;margin-bottom:.75rem;margin-left:0}
|
|
13
|
-
.cc-1syzwzx .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75em)}
|
|
14
12
|
.cc-1w88a35 .ProseMirror blockquote.danger{background-color:var(--ds-background-danger,#ffeceb);border-left-color:var(--ds-border-danger,#e2483d)}
|
|
15
13
|
.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node{background:var(--ds-background-accent-blue-subtler,#cfe1fd);border-left-color:var(--ds-border-selected,#1868db);-webkit-user-select:text}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::selection{background-color:transparent}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::-moz-selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::-moz-selection{background-color:transparent}
|
|
16
14
|
.cc-2psl3e .ProseMirror blockquote{box-sizing:border-box;color:inherit;width:100%;display:inline-block;padding-top:0;padding-bottom:0;padding-left:var(--ds-space-200,1pc);border-left-width:var(--ds-border-width-selected,2px);border-left-style:solid;border-left-color:var(--ds-border,#0b120e24);margin-top:.75rem;margin-bottom:0;margin-left:0;margin-right:0}.cc-2psl3e .ProseMirror blockquote:first-child{margin-top:0}.cc-2psl3e .ProseMirror blockquote:before{content:""}.cc-2psl3e .ProseMirror blockquote:after{content:none}.cc-2psl3e .ProseMirror blockquote p{display:block}.cc-2psl3e .ProseMirror blockquote table, .cc-2psl3e .ProseMirror blockquote table:last-child{display:inline-table}.cc-2psl3e .ProseMirror blockquote>.code-block:last-child, .cc-2psl3e .ProseMirror blockquote>.mediaGroupView-content-wrap:last-child, .cc-2psl3e .ProseMirror blockquote>.mediaSingleView-content-wrap:last-child{display:block}.cc-2psl3e .ProseMirror blockquote>.extensionView-content-wrap:last-child{display:block}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h1:first-child{margin-top:1.667em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h2:first-child{margin-top:1.8em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h3:first-child{margin-top:2em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h4:first-child{margin-top:1.357em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h5:first-child{margin-top:1.667em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h6:first-child{margin-top:1.455em}.cc-2psl3e .ProseMirror .ProseMirror-gapcursor:first-child+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child, .cc-2psl3e .ProseMirror .ProseMirror-widget:first-child+.ProseMirror-widget:nth-child(2)+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child, .cc-2psl3e .ProseMirror .ProseMirror-widget:first-child+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child{margin-top:0}
|
|
@@ -50,13 +50,6 @@ const GRID_GUTTER = 12;
|
|
|
50
50
|
const blockNodesVerticalMargin = '0.75rem';
|
|
51
51
|
const fontSize14px = `${14 / 16}rem`;
|
|
52
52
|
const scaledBlockNodesVerticalMargin = '0.75em';
|
|
53
|
-
// Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
|
|
54
|
-
// When the experiment is on, these variants re-declare the block margins to read from the
|
|
55
|
-
// `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
|
|
56
|
-
// When the experiment is off, none of these are applied and behaviour is identical to before.
|
|
57
|
-
const blockNodesVerticalMarginVar = 'var(--ak-editor-extension-block-spacing, 0.75rem)';
|
|
58
|
-
const scaledBlockNodesVerticalMarginVar = 'var(--ak-editor-extension-block-spacing, 0.75em)';
|
|
59
|
-
|
|
60
53
|
// emoji constants — values inlined from packages/elements/emoji/src/util/constants.ts
|
|
61
54
|
// If you need to update these values, please also update packages/elements/emoji/src/util/constants.ts
|
|
62
55
|
const defaultEmojiHeight = 20;
|
|
@@ -208,9 +201,7 @@ const editorContentStyles = {
|
|
|
208
201
|
baseStyles: "cc-123pw0y",
|
|
209
202
|
baseStylesMaxContainerWidthFixes: "cc-cgsb4r",
|
|
210
203
|
blockMarksStyles: "cc-11zeupy",
|
|
211
|
-
blockSpacingVarStyles: "cc-mc43mp",
|
|
212
204
|
extensionWithBreakoutStyles: "cc-104fmpo",
|
|
213
|
-
blockSpacingVarScaledStyles: "cc-1syzwzx",
|
|
214
205
|
blockquoteDangerStyles: "cc-1w88a35",
|
|
215
206
|
blockquoteSelectedNodeStyles: "cc-pt15wg",
|
|
216
207
|
blocktypeStyles: "cc-2psl3e",
|
|
@@ -452,9 +443,6 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
|
|
|
452
443
|
})
|
|
453
444
|
}), [tableOverflowShadow]);
|
|
454
445
|
const browser = getBrowserInfo();
|
|
455
|
-
|
|
456
|
-
// Evaluate the block-spacing experiment once per render.
|
|
457
|
-
const isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
458
446
|
const isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
|
|
459
447
|
const isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
460
448
|
const isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
@@ -463,7 +451,7 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
|
|
|
463
451
|
className: ax([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
464
452
|
exposure: true
|
|
465
453
|
}) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, isExperimentEnabled('platform_editor_reduce_forced_layout_2') && editorContentStyles.extensionScrollInlineShadowStyles, editorContentStyles.InlineNodeViewSharedStyles, editorContentStyles.hideSelectionStyles, editorContentStyles.hideCursorWhenHideSelectionStyles, editorContentStyles.selectedNodeStyles, editorContentStyles.cursorStyles, editorContentStyles.firstFloatingToolbarButtonStyles, editorContentStyles.placeholderTextStyles, editorContentStyles.placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') && editorContentStyles.placeholderOverflowStyles, editorContentStyles.codeBlockStyles, contentMode === 'compact' && editorContentStyles.codeBlockStylesWithEmUnits, editorContentStyles.editorUGCTokensRefreshed, editorContentStyles.editorUGCSmallText, editorContentStyles.blocktypeStyles, editorContentStyles.blocktypeStylesRtlBlockquote, isFloatingTocEnabled && editorContentStyles.headingScrollMarginStyles, editorContentStyles.blockquoteSelectedNodeStyles, editorContentStyles.listSelectedNodeStyles, editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, isExperimentEnabled('platform_editor_lovability_dividers_attributes') && editorContentStyles.ruleWithAttrsStyles, isExperimentEnabled('platform_editor_numbered_headings') && editorContentStyles.numberedHeadingsStyles, editorContentStyles.smartCardDiffStyles, editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaCaptionStyles, contentMode === 'compact' && editorContentStyles.mediaCaptionStyles, editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
466
|
-
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, isExperimentEnabled('platform_editor_reduce_forced_layout') && !expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, isExperimentEnabled('platform_editor_reduce_forced_layout') && !isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, editorExperiment('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, isExperimentEnabled('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
454
|
+
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, isExperimentEnabled('platform_editor_reduce_forced_layout') && !expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, isExperimentEnabled('platform_editor_reduce_forced_layout') && !isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, editorExperiment('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, isExperimentEnabled('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, className || undefined]),
|
|
467
455
|
ref: ref,
|
|
468
456
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
469
457
|
"data-testid": "editor-content-container"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import debounce from 'lodash/debounce';
|
|
3
|
-
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
4
|
import { useComponentRenderTracking } from '@atlaskit/editor-common/use-component-render-tracking';
|
|
5
5
|
export function RenderTracking(props) {
|
|
6
6
|
const debouncedHandleAnalyticsEvent = useMemo(() => debounce(props.handleAnalyticsEvent, 500), [props.handleAnalyticsEvent]);
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React, { Fragment, memo } from 'react';
|
|
6
|
-
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
7
|
import { usePortalProvider } from '@atlaskit/editor-common/usePortalProvider';
|
|
8
8
|
import { editorFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -10,11 +10,12 @@ import classnames from 'classnames';
|
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
12
12
|
import Button from '@atlaskit/button/default/button';
|
|
13
|
-
import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
14
13
|
import messages from '@atlaskit/editor-common/messages';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
15
|
+
import { useSharedPluginState } from '@atlaskit/editor-common/useSharedPluginState';
|
|
16
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
17
|
+
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/WidthProvider';
|
|
18
|
+
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles/constants';
|
|
18
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
20
|
// Ignored via go/ees005
|
|
20
21
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -4,9 +4,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import { injectIntl } from 'react-intl';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { akEditorGutterPaddingDynamic, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
7
|
+
import { messages } from '@atlaskit/editor-common/messages/full-page';
|
|
8
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
9
|
+
import { akEditorGutterPaddingDynamic, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
10
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
11
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
12
|
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
.cc-123pw0y{--ak-editor--default-gutter-padding:32px}.cc-123pw0y{--ak-editor--default-layout-width:760px}.cc-123pw0y{--ak-editor--resizer-handle-spacing:12px}.cc-123pw0y{--ak-editor--full-width-layout-width:1800px}.cc-123pw0y{--ak-editor--line-length:min(calc(100cqw - var(--ak-editor--large-gutter-padding)*2),var(--ak-editor--default-layout-width))}.cc-123pw0y{--ak-editor--max-width-layout-width:4000px}.cc-123pw0y{--ak-editor--breakout-wide-layout-width:905px}.cc-123pw0y{--ak-editor--breakout-full-page-guttering-padding:calc(var(--ak-editor--large-gutter-padding)*2 + var(--ak-editor--default-gutter-padding))}.cc-123pw0y{--ak-editor--breakout-fallback-width:calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))}.cc-123pw0y{--ak-editor--breakout-min-width:100%}.cc-123pw0y .fabric-editor--full-width-mode{--ak-editor--line-length:min(calc(100cqw - var(--ak-editor--large-gutter-padding)*2),var(--ak-editor--full-width-layout-width));--ak-editor--breakout-fallback-width:100%;--ak-editor--breakout-min-width:0px}.cc-123pw0y .ProseMirror{--ak-editor-max-container-width:calc(100cqw - var(--ak-editor--large-gutter-padding));outline-color:currentColor;outline-style:none;outline-width:medium;font-size:var(--ak-editor-base-font-size)}.cc-123pw0y .ProseMirror>div[data-prosemirror-node-block] [data-prosemirror-node-block]{--ak-editor-max-container-width:100%}@container editor-area (width >= 1266px){.cc-123pw0y .ProseMirror{--ak-editor--breakout-wide-layout-width:1011px}}
|
|
9
9
|
.cc-cgsb4r .ProseMirror{--ak-editor-max-container-width:calc(100cqw - var(--ak-editor--large-gutter-padding)*2)}
|
|
10
10
|
.cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>p:first-child:not(style){margin-top:0}
|
|
11
|
-
.cc-mc43mp .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror>style:first-child+p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote:first-child{margin-top:0}.cc-mc43mp .ProseMirror .code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.ProseMirror-gapcursor:first-child+.code-block, .cc-mc43mp .ProseMirror li>.code-block:first-child{margin-top:0}.cc-mc43mp .ProseMirror li>div:last-of-type.code-block, .cc-mc43mp .ProseMirror li>pre:last-of-type.code-block{margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .blockCardView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror .extensionView-content-wrap, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:first-of-type{margin-top:0}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:last-of-type{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.extensionView-content-wrap{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-bottom:0}
|
|
12
11
|
.cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedExtension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=extension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=multiBodiedExtension]){margin-top:.75rem;margin-right:0;margin-bottom:.75rem;margin-left:0}
|
|
13
|
-
.cc-1syzwzx .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75em)}
|
|
14
12
|
.cc-1w88a35 .ProseMirror blockquote.danger{background-color:var(--ds-background-danger,#ffeceb);border-left-color:var(--ds-border-danger,#e2483d)}
|
|
15
13
|
.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node{background:var(--ds-background-accent-blue-subtler,#cfe1fd);border-left-color:var(--ds-border-selected,#1868db);-webkit-user-select:text}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::selection{background-color:transparent}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::-moz-selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::-moz-selection{background-color:transparent}
|
|
16
14
|
.cc-2psl3e .ProseMirror blockquote{box-sizing:border-box;color:inherit;width:100%;display:inline-block;padding-top:0;padding-bottom:0;padding-left:var(--ds-space-200,1pc);border-left-width:var(--ds-border-width-selected,2px);border-left-style:solid;border-left-color:var(--ds-border,#0b120e24);margin-top:.75rem;margin-bottom:0;margin-left:0;margin-right:0}.cc-2psl3e .ProseMirror blockquote:first-child{margin-top:0}.cc-2psl3e .ProseMirror blockquote:before{content:""}.cc-2psl3e .ProseMirror blockquote:after{content:none}.cc-2psl3e .ProseMirror blockquote p{display:block}.cc-2psl3e .ProseMirror blockquote table, .cc-2psl3e .ProseMirror blockquote table:last-child{display:inline-table}.cc-2psl3e .ProseMirror blockquote>.code-block:last-child, .cc-2psl3e .ProseMirror blockquote>.mediaGroupView-content-wrap:last-child, .cc-2psl3e .ProseMirror blockquote>.mediaSingleView-content-wrap:last-child{display:block}.cc-2psl3e .ProseMirror blockquote>.extensionView-content-wrap:last-child{display:block}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h1:first-child{margin-top:1.667em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h2:first-child{margin-top:1.8em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h3:first-child{margin-top:2em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h4:first-child{margin-top:1.357em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h5:first-child{margin-top:1.667em}.cc-2psl3e .ProseMirror .fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)>h6:first-child{margin-top:1.455em}.cc-2psl3e .ProseMirror .ProseMirror-gapcursor:first-child+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child, .cc-2psl3e .ProseMirror .ProseMirror-widget:first-child+.ProseMirror-widget:nth-child(2)+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child, .cc-2psl3e .ProseMirror .ProseMirror-widget:first-child+.fabric-editor-block-mark.fabric-editor-alignment>:is(h1,h2,h3,h4,h5,h6):first-child{margin-top:0}
|
|
@@ -55,13 +55,6 @@ var GRID_GUTTER = 12;
|
|
|
55
55
|
var blockNodesVerticalMargin = '0.75rem';
|
|
56
56
|
var fontSize14px = "".concat(14 / 16, "rem");
|
|
57
57
|
var scaledBlockNodesVerticalMargin = '0.75em';
|
|
58
|
-
// Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
|
|
59
|
-
// When the experiment is on, these variants re-declare the block margins to read from the
|
|
60
|
-
// `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
|
|
61
|
-
// When the experiment is off, none of these are applied and behaviour is identical to before.
|
|
62
|
-
var blockNodesVerticalMarginVar = 'var(--ak-editor-extension-block-spacing, 0.75rem)';
|
|
63
|
-
var scaledBlockNodesVerticalMarginVar = 'var(--ak-editor-extension-block-spacing, 0.75em)';
|
|
64
|
-
|
|
65
58
|
// emoji constants — values inlined from packages/elements/emoji/src/util/constants.ts
|
|
66
59
|
// If you need to update these values, please also update packages/elements/emoji/src/util/constants.ts
|
|
67
60
|
var defaultEmojiHeight = 20;
|
|
@@ -156,9 +149,7 @@ var editorContentStyles = {
|
|
|
156
149
|
baseStyles: "cc-123pw0y",
|
|
157
150
|
baseStylesMaxContainerWidthFixes: "cc-cgsb4r",
|
|
158
151
|
blockMarksStyles: "cc-11zeupy",
|
|
159
|
-
blockSpacingVarStyles: "cc-mc43mp",
|
|
160
152
|
extensionWithBreakoutStyles: "cc-104fmpo",
|
|
161
|
-
blockSpacingVarScaledStyles: "cc-1syzwzx",
|
|
162
153
|
blockquoteDangerStyles: "cc-1w88a35",
|
|
163
154
|
blockquoteSelectedNodeStyles: "cc-pt15wg",
|
|
164
155
|
blocktypeStyles: "cc-2psl3e",
|
|
@@ -396,9 +387,6 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
|
|
|
396
387
|
});
|
|
397
388
|
}, [tableOverflowShadow]);
|
|
398
389
|
var browser = getBrowserInfo();
|
|
399
|
-
|
|
400
|
-
// Evaluate the block-spacing experiment once per render.
|
|
401
|
-
var isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
402
390
|
var isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
|
|
403
391
|
var isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
404
392
|
var isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
@@ -407,7 +395,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
|
|
|
407
395
|
className: ax([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
408
396
|
exposure: true
|
|
409
397
|
}) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, isExperimentEnabled('platform_editor_reduce_forced_layout_2') && editorContentStyles.extensionScrollInlineShadowStyles, editorContentStyles.InlineNodeViewSharedStyles, editorContentStyles.hideSelectionStyles, editorContentStyles.hideCursorWhenHideSelectionStyles, editorContentStyles.selectedNodeStyles, editorContentStyles.cursorStyles, editorContentStyles.firstFloatingToolbarButtonStyles, editorContentStyles.placeholderTextStyles, editorContentStyles.placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') && editorContentStyles.placeholderOverflowStyles, editorContentStyles.codeBlockStyles, contentMode === 'compact' && editorContentStyles.codeBlockStylesWithEmUnits, editorContentStyles.editorUGCTokensRefreshed, editorContentStyles.editorUGCSmallText, editorContentStyles.blocktypeStyles, editorContentStyles.blocktypeStylesRtlBlockquote, isFloatingTocEnabled && editorContentStyles.headingScrollMarginStyles, editorContentStyles.blockquoteSelectedNodeStyles, editorContentStyles.listSelectedNodeStyles, editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, isExperimentEnabled('platform_editor_lovability_dividers_attributes') && editorContentStyles.ruleWithAttrsStyles, isExperimentEnabled('platform_editor_numbered_headings') && editorContentStyles.numberedHeadingsStyles, editorContentStyles.smartCardDiffStyles, editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaCaptionStyles, contentMode === 'compact' && editorContentStyles.mediaCaptionStyles, editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
410
|
-
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, isExperimentEnabled('platform_editor_reduce_forced_layout') && !expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, isExperimentEnabled('platform_editor_reduce_forced_layout') && !isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, editorExperiment('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, isExperimentEnabled('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
398
|
+
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, isExperimentEnabled('platform_editor_reduce_forced_layout') && !expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, isExperimentEnabled('platform_editor_reduce_forced_layout') && !isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, editorExperiment('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, isExperimentEnabled('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, className || undefined]),
|
|
411
399
|
ref: ref,
|
|
412
400
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
413
401
|
"data-testid": "editor-content-container"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import debounce from 'lodash/debounce';
|
|
3
|
-
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
4
|
import { useComponentRenderTracking } from '@atlaskit/editor-common/use-component-render-tracking';
|
|
5
5
|
export function RenderTracking(props) {
|
|
6
6
|
var debouncedHandleAnalyticsEvent = useMemo(function () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MemoExoticComponent } from 'react';
|
|
3
3
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
|
-
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics/types/events';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
6
|
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset/builder';
|
|
7
7
|
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
@@ -10,7 +10,7 @@ import type { EmojiPlugin } from '@atlaskit/editor-plugins/emoji';
|
|
|
10
10
|
import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
|
|
11
11
|
import type { MentionsPlugin } from '@atlaskit/editor-plugins/mentions';
|
|
12
12
|
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
|
|
13
|
-
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
13
|
+
import type { EmojiProvider } from '@atlaskit/emoji/types';
|
|
14
14
|
import type { MentionProvider } from '@atlaskit/mention/types';
|
|
15
15
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
16
16
|
interface UseProvidersProps {
|
|
@@ -38,7 +38,7 @@ import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
|
38
38
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
39
39
|
import type { SyncedBlockProvider } from '@atlaskit/editor-synced-block-provider/syncBlockProvider';
|
|
40
40
|
import type { MentionProvider } from '@atlaskit/mention/types';
|
|
41
|
-
import type { TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
41
|
+
import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
42
42
|
import type EditorActions from '../actions';
|
|
43
43
|
import type { EditorOnChangeHandler } from './editor-onchange';
|
|
44
44
|
import type { ExtensionConfig } from './extension-config';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
|
|
6
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
7
|
+
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
|
|
8
8
|
import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
|
|
9
9
|
import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
|
|
10
10
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
|
|
@@ -5,10 +5,13 @@
|
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
8
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
9
9
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
|
-
import type
|
|
11
|
-
import type { EditorAppearance, EditorContentMode
|
|
10
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
11
|
+
import type { EditorAppearance, EditorContentMode } from '@atlaskit/editor-common/types/editor-appearance';
|
|
12
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
13
|
+
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
14
|
+
import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types/ui-components';
|
|
12
15
|
import type { BasePlugin } from '@atlaskit/editor-plugins/base';
|
|
13
16
|
import type { BlockMenuPlugin } from '@atlaskit/editor-plugins/block-menu';
|
|
14
17
|
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
|
-
import type { MenuItem } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { MenuItem } from '@atlaskit/editor-common/extensions/types/utils';
|
|
4
|
+
import type { PublicPluginAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
5
|
import type { ExtensionPlugin } from '@atlaskit/editor-plugins/extension';
|
|
6
6
|
import type EditorActions from '../../actions';
|
|
7
7
|
export declare const QuickInsertSkillMenuItem: ({ apiRef, createAnalyticsEvent, editorActions, item, onInsert, }: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ACTION, ACTION_SUBJECT
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics/types/events';
|
|
2
3
|
type RenderActions = ACTION.RE_RENDERED;
|
|
3
4
|
type RenderActionSubjects = ACTION_SUBJECT.EDITOR | ACTION_SUBJECT.REACT_EDITOR_VIEW;
|
|
4
5
|
export type RenderTrackingProps<ComponentProps> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "238.0.
|
|
3
|
+
"version": "238.0.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
73
73
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
75
|
-
"@atlaskit/popup": "^
|
|
75
|
+
"@atlaskit/popup": "^10.0.0",
|
|
76
76
|
"@atlaskit/primitives": "^22.6.0",
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.1.0",
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@af/editor-examples-helpers": "workspace:^",
|
|
108
108
|
"@af/editor-libra": "workspace:^",
|
|
109
|
+
"@af/integration-testing": "workspace:^",
|
|
109
110
|
"@af/suppress-react-warnings": "workspace:^",
|
|
110
111
|
"@af/visual-regression": "workspace:^",
|
|
111
112
|
"@atlaskit/adf-utils": "^20.9.0",
|
|
@@ -116,7 +117,7 @@
|
|
|
116
117
|
"@atlaskit/docs": "^12.3.0",
|
|
117
118
|
"@atlaskit/drawer": "^14.3.0",
|
|
118
119
|
"@atlaskit/editor-plugin-alignment": "^29.0.0",
|
|
119
|
-
"@atlaskit/editor-plugin-annotation": "^28.
|
|
120
|
+
"@atlaskit/editor-plugin-annotation": "^28.1.0",
|
|
120
121
|
"@atlaskit/editor-plugin-base": "^29.0.0",
|
|
121
122
|
"@atlaskit/editor-plugin-card": "^34.0.0",
|
|
122
123
|
"@atlaskit/editor-plugin-code-block-advanced": "^28.0.0",
|
|
@@ -127,11 +128,13 @@
|
|
|
127
128
|
"@atlaskit/editor-plugin-grid": "^28.0.0",
|
|
128
129
|
"@atlaskit/editor-plugin-guideline": "^28.0.0",
|
|
129
130
|
"@atlaskit/editor-plugin-highlight": "^28.0.0",
|
|
131
|
+
"@atlaskit/editor-plugin-hyperlink": "^30.0.0",
|
|
130
132
|
"@atlaskit/editor-plugin-insert-block": "^29.0.0",
|
|
131
133
|
"@atlaskit/editor-plugin-layout": "^29.0.0",
|
|
132
134
|
"@atlaskit/editor-plugin-limited-mode": "^25.0.0",
|
|
133
135
|
"@atlaskit/editor-plugin-list": "^30.0.0",
|
|
134
136
|
"@atlaskit/editor-plugin-media": "^30.0.0",
|
|
137
|
+
"@atlaskit/editor-plugin-media-insert": "^46.0.0",
|
|
135
138
|
"@atlaskit/editor-plugin-paste": "^29.0.0",
|
|
136
139
|
"@atlaskit/editor-plugin-selection-marker": "^28.0.0",
|
|
137
140
|
"@atlaskit/editor-plugin-show-diff": "^26.0.0",
|
|
@@ -139,10 +142,13 @@
|
|
|
139
142
|
"@atlaskit/editor-plugin-table": "^40.0.0",
|
|
140
143
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^31.0.0",
|
|
141
144
|
"@atlaskit/editor-plugin-text-color": "^28.0.0",
|
|
145
|
+
"@atlaskit/editor-plugin-text-formatting": "^28.0.0",
|
|
146
|
+
"@atlaskit/editor-plugin-toolbar": "^25.0.0",
|
|
142
147
|
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^29.0.0",
|
|
143
148
|
"@atlaskit/editor-plugin-track-changes": "^27.0.0",
|
|
144
149
|
"@atlaskit/editor-synced-block-provider": "^24.0.0",
|
|
145
150
|
"@atlaskit/editor-synced-block-renderer": "^26.0.0",
|
|
151
|
+
"@atlaskit/editor-tables": "^3.2.0",
|
|
146
152
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
147
153
|
"@atlaskit/form": "^18.2.0",
|
|
148
154
|
"@atlaskit/link-provider": "^6.0.0",
|
|
@@ -153,7 +159,7 @@
|
|
|
153
159
|
"@atlaskit/media-picker": "^73.2.0",
|
|
154
160
|
"@atlaskit/media-test-helpers": "^43.0.0",
|
|
155
161
|
"@atlaskit/media-ui": "^31.3.0",
|
|
156
|
-
"@atlaskit/modal-dialog": "^17.
|
|
162
|
+
"@atlaskit/modal-dialog": "^17.1.0",
|
|
157
163
|
"@atlaskit/navigation-system": "^11.3.0",
|
|
158
164
|
"@atlaskit/popper": "^9.4.0",
|
|
159
165
|
"@atlaskit/portal": "^7.0.0",
|
|
@@ -172,6 +178,7 @@
|
|
|
172
178
|
"@atlassian/adf-schema-json": "^1.35.0",
|
|
173
179
|
"@atlassian/editor-rovo-bridge": "^27.0.0",
|
|
174
180
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
181
|
+
"@atlassian/feature-flags-storybook-utils": "^0.5.0",
|
|
175
182
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
176
183
|
"@atlassian/search-client": "^3.9.0",
|
|
177
184
|
"@atlassian/search-provider": "^29.0.0",
|