@atlaskit/editor-core 235.0.4 → 236.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/create-editor/create-plugins-list.js +1 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
- package/dist/cjs/ui/Toolbar/toolbar-size.js +2 -47
- package/dist/cjs/utils/extensions.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +1 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
- package/dist/es2019/ui/Toolbar/toolbar-size.js +3 -48
- package/dist/es2019/utils/extensions.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +1 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
- package/dist/esm/ui/Toolbar/toolbar-size.js +3 -48
- package/dist/esm/utils/extensions.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +43 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 236.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`aaf461aabb51c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aaf461aabb51c) -
|
|
8
|
+
Under `platform-dst-top-layer-tooltip` with advanced layouts, the layout column drag handle no
|
|
9
|
+
longer adds an extra flex gap that moves the columns when it mounts.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 236.0.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`6be0c3f7c55b3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6be0c3f7c55b3) -
|
|
17
|
+
Clean up experiment `platform_editor_slash_app_category_analytics`
|
|
18
|
+
- [`92fc57a354c33`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/92fc57a354c33) -
|
|
19
|
+
Clean up feature gate `platform_editor_toolbar_responsive_fixes`. The responsive toolbar behaviour
|
|
20
|
+
is now permanently enabled. Remove the obsolete `ToolbarWidths` and `ToolbarWidthsFullPage`
|
|
21
|
+
exports; consumers should use `ToolbarWidthsNext` and `ToolbarWidthsFullPageNext`. Also remove the
|
|
22
|
+
unread `BlockTypePluginOptions.isUndoRedoButtonsEnabled` option, which no longer affects toolbar
|
|
23
|
+
sizing.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 235.0.4
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -38,8 +38,7 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent
|
|
|
38
38
|
},
|
|
39
39
|
blockType: {
|
|
40
40
|
lastNodeMustBeParagraph: appearance === 'comment' || appearance === 'chromeless',
|
|
41
|
-
allowBlockType: props.allowBlockType
|
|
42
|
-
isUndoRedoButtonsEnabled: props.allowUndoRedoButtons
|
|
41
|
+
allowBlockType: props.allowBlockType
|
|
43
42
|
},
|
|
44
43
|
placeholder: {
|
|
45
44
|
placeholder: props.placeholder,
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
@container editor-area (max-width: 724px){.cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 724px){.cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}@container editor-area (max-width: 788px){.cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 788px){.cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}@container editor-area (max-width: 820px){.cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 820px){.cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}
|
|
85
85
|
@container editor-area (max-width: 724px){.cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}@container editor-area (max-width: 788px){.cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}@container editor-area (max-width: 820px){.cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}
|
|
86
86
|
.cc-gizmrx .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drag-handle-container] div{display:contents!important}
|
|
87
|
+
.cc-94r9i3 .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drag-handle-container]>div:not([popover]){display:contents!important}
|
|
87
88
|
.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget{flex-grow:0;flex-shrink:0;flex-basis:auto;display:contents!important}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drop-target-container]{display:block!important;margin:var(--ds-space-negative-050,-4px)}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drop-target-container] [data-drop-target-for-element]{position:absolute}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider{display:block!important;flex-grow:0;flex-shrink:0;flex-basis:auto;opacity:0;transition:opacity .2s}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget+[data-layout-column]{margin-top:0;margin-right:0;margin-bottom:0;margin-left:0}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>[data-layout-column]{margin-top:0;margin-right:0;margin-bottom:0;margin-left:0}.cc-1fxar8a .ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider{opacity:1}.cc-1fxar8a .ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider~[data-layout-column] [data-layout-content]:before{display:none!important}
|
|
88
89
|
.cc-tbpbzb .ProseMirror [data-layout-section]{position:relative;display:flex;flex-direction:row}.cc-tbpbzb .ProseMirror [data-layout-section]>*{flex-grow:1;flex-shrink:1;flex-basis:0%;min-width:0}.cc-tbpbzb .ProseMirror [data-layout-section]>.unsupportedBlockView-content-wrap{min-width:auto}.cc-tbpbzb .ProseMirror [data-layout-section]>.layout-column-divider{flex-grow:0;flex-shrink:0;flex-basis:auto}@media screen and (max-width:1024px){.cc-tbpbzb .ProseMirror [data-layout-section]{flex-direction:column}}
|
|
89
90
|
.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap [data-empty-layout=true] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section] [data-empty-layout=true] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section]:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-left:1px solid var(--ds-border,#0b120e24);position:absolute;height:calc(100% - 24px);margin-left:-25px}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap [data-empty-layout=true] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap:hover [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section] [data-empty-layout=true] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section]:hover [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before{top:var(--ds-space-150,9pt)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section], .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section]{background-color:var(--ds-background-danger,#ffeceb);box-shadow:0 0 0 1px var(--ds-border-danger,#e2483d);border-radius:var(--ds-radius-small,4px)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section]{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db);border-radius:var(--ds-radius-small,4px);background-color:var(--ds-background-selected,#e9f2fe)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]{position:relative;-webkit-user-select:text}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before{position:absolute;content:"";left:0;right:0;top:0;bottom:0;width:100%;pointer-events:none;z-index:12;background-color:var(--ds-blanket-selected,#388bff14)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::selection, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::selection{background-color:transparent}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::-moz-selection, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::-moz-selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::-moz-selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::-moz-selection{background-color:transparent}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]{border:0}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before{background-color:transparent}
|
|
@@ -245,6 +245,7 @@ var editorContentStyles = {
|
|
|
245
245
|
layoutResponsiveBaseStyles: "cc-1ubc444",
|
|
246
246
|
layoutResponsiveStylesForView: "cc-1109zih",
|
|
247
247
|
layoutDragHandleWrapperStylesLegacy: "cc-gizmrx",
|
|
248
|
+
layoutDragHandleWrapperStylesTopLayer: "cc-94r9i3",
|
|
248
249
|
layoutSectionStylesAdvanced: "cc-1fxar8a",
|
|
249
250
|
layoutSectionStylesNotAdvanced: "cc-tbpbzb",
|
|
250
251
|
layoutSelectedStylesAdvanced: "cc-186ms2c",
|
|
@@ -413,7 +414,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
413
414
|
className: (0, _runtime.ax)([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
414
415
|
exposure: true
|
|
415
416
|
}) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, 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, 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 */
|
|
416
|
-
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, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, 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, ((0, _fg.fg)('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && 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) && 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, _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, 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, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
417
|
+
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, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, 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, ((0, _fg.fg)('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && 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, _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, 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, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
417
418
|
ref: ref,
|
|
418
419
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
419
420
|
"data-testid": "editor-content-container"
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.widthToToolbarSize = exports.toolbarSizeToWidth = void 0;
|
|
7
7
|
var _types = require("@atlaskit/editor-common/types");
|
|
8
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
8
|
var _isFullPage = require("../../utils/is-full-page");
|
|
10
9
|
// Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
|
|
11
10
|
var toolbarSizesFullPageNext = [{
|
|
@@ -24,28 +23,6 @@ var toolbarSizesFullPageNext = [{
|
|
|
24
23
|
width: _types.ToolbarWidthsFullPageNext.S,
|
|
25
24
|
size: _types.ToolbarSize.S
|
|
26
25
|
}];
|
|
27
|
-
|
|
28
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
29
|
-
/** @deprecated
|
|
30
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
|
|
31
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
32
|
-
*/
|
|
33
|
-
var toolbarSizesFullPage = [{
|
|
34
|
-
width: _types.ToolbarWidthsFullPage.XXL,
|
|
35
|
-
size: _types.ToolbarSize.XXL
|
|
36
|
-
}, {
|
|
37
|
-
width: _types.ToolbarWidthsFullPage.XL,
|
|
38
|
-
size: _types.ToolbarSize.XL
|
|
39
|
-
}, {
|
|
40
|
-
width: _types.ToolbarWidthsFullPage.L,
|
|
41
|
-
size: _types.ToolbarSize.L
|
|
42
|
-
}, {
|
|
43
|
-
width: _types.ToolbarWidthsFullPage.M,
|
|
44
|
-
size: _types.ToolbarSize.M
|
|
45
|
-
}, {
|
|
46
|
-
width: _types.ToolbarWidthsFullPage.S,
|
|
47
|
-
size: _types.ToolbarSize.S
|
|
48
|
-
}];
|
|
49
26
|
var toolbarSizesNext = [{
|
|
50
27
|
width: _types.ToolbarWidthsNext.XXL,
|
|
51
28
|
size: _types.ToolbarSize.XXL
|
|
@@ -62,37 +39,15 @@ var toolbarSizesNext = [{
|
|
|
62
39
|
width: _types.ToolbarWidthsNext.S,
|
|
63
40
|
size: _types.ToolbarSize.S
|
|
64
41
|
}];
|
|
65
|
-
|
|
66
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
67
|
-
/** @deprecated
|
|
68
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
|
|
69
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
70
|
-
*/
|
|
71
|
-
var toolbarSizes = [{
|
|
72
|
-
width: _types.ToolbarWidths.XXL,
|
|
73
|
-
size: _types.ToolbarSize.XXL
|
|
74
|
-
}, {
|
|
75
|
-
width: _types.ToolbarWidths.XL,
|
|
76
|
-
size: _types.ToolbarSize.XL
|
|
77
|
-
}, {
|
|
78
|
-
width: _types.ToolbarWidths.L,
|
|
79
|
-
size: _types.ToolbarSize.L
|
|
80
|
-
}, {
|
|
81
|
-
width: _types.ToolbarWidths.M,
|
|
82
|
-
size: _types.ToolbarSize.M
|
|
83
|
-
}, {
|
|
84
|
-
width: _types.ToolbarWidths.S,
|
|
85
|
-
size: _types.ToolbarSize.S
|
|
86
|
-
}];
|
|
87
42
|
var toolbarSizesForAppearance = function toolbarSizesForAppearance(appearance) {
|
|
88
|
-
return (0, _isFullPage.isFullPage)(appearance) ?
|
|
43
|
+
return (0, _isFullPage.isFullPage)(appearance) ? toolbarSizesFullPageNext : toolbarSizesNext;
|
|
89
44
|
};
|
|
90
45
|
var toolbarSizeToWidth = exports.toolbarSizeToWidth = function toolbarSizeToWidth(toolbarSize, appearance) {
|
|
91
46
|
return (toolbarSizesForAppearance(appearance).find(function (_ref) {
|
|
92
47
|
var size = _ref.size;
|
|
93
48
|
return toolbarSize === size;
|
|
94
49
|
}) || {
|
|
95
|
-
width: _types.
|
|
50
|
+
width: _types.ToolbarWidthsNext.S
|
|
96
51
|
}).width;
|
|
97
52
|
};
|
|
98
53
|
|
|
@@ -140,7 +140,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
140
140
|
return Promise.resolve([]);
|
|
141
141
|
}
|
|
142
142
|
var quickInsertItems = (0, _extensions.getQuickInsertItemsFromModule)(extensions, function (item) {
|
|
143
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
|
|
143
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
|
|
144
144
|
app: item.app
|
|
145
145
|
} : {}), {}, {
|
|
146
146
|
// Add module key so typeahead/quick-insert can identify items
|
|
@@ -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 = "236.0.0";
|
|
@@ -28,8 +28,7 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
28
28
|
},
|
|
29
29
|
blockType: {
|
|
30
30
|
lastNodeMustBeParagraph: appearance === 'comment' || appearance === 'chromeless',
|
|
31
|
-
allowBlockType: props.allowBlockType
|
|
32
|
-
isUndoRedoButtonsEnabled: props.allowUndoRedoButtons
|
|
31
|
+
allowBlockType: props.allowBlockType
|
|
33
32
|
},
|
|
34
33
|
placeholder: {
|
|
35
34
|
placeholder: props.placeholder,
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
@container editor-area (max-width: 724px){.cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 724px){.cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}@container editor-area (max-width: 788px){.cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 788px){.cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}@container editor-area (max-width: 820px){.cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 820px){.cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}
|
|
85
85
|
@container editor-area (max-width: 724px){.cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}@container editor-area (max-width: 788px){.cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}@container editor-area (max-width: 820px){.cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}
|
|
86
86
|
.cc-gizmrx .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drag-handle-container] div{display:contents!important}
|
|
87
|
+
.cc-94r9i3 .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drag-handle-container]>div:not([popover]){display:contents!important}
|
|
87
88
|
.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget{flex-grow:0;flex-shrink:0;flex-basis:auto;display:contents!important}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drop-target-container]{display:block!important;margin:var(--ds-space-negative-050,-4px)}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drop-target-container] [data-drop-target-for-element]{position:absolute}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider{display:block!important;flex-grow:0;flex-shrink:0;flex-basis:auto;opacity:0;transition:opacity .2s}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget+[data-layout-column]{margin-top:0;margin-right:0;margin-bottom:0;margin-left:0}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>[data-layout-column]{margin-top:0;margin-right:0;margin-bottom:0;margin-left:0}.cc-1fxar8a .ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider{opacity:1}.cc-1fxar8a .ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider~[data-layout-column] [data-layout-content]:before{display:none!important}
|
|
88
89
|
.cc-tbpbzb .ProseMirror [data-layout-section]{position:relative;display:flex;flex-direction:row}.cc-tbpbzb .ProseMirror [data-layout-section]>*{flex-grow:1;flex-shrink:1;flex-basis:0%;min-width:0}.cc-tbpbzb .ProseMirror [data-layout-section]>.unsupportedBlockView-content-wrap{min-width:auto}.cc-tbpbzb .ProseMirror [data-layout-section]>.layout-column-divider{flex-grow:0;flex-shrink:0;flex-basis:auto}@media screen and (max-width:1024px){.cc-tbpbzb .ProseMirror [data-layout-section]{flex-direction:column}}
|
|
89
90
|
.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap [data-empty-layout=true] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section] [data-empty-layout=true] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section]:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-left:1px solid var(--ds-border,#0b120e24);position:absolute;height:calc(100% - 24px);margin-left:-25px}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap [data-empty-layout=true] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap:hover [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section] [data-empty-layout=true] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section]:hover [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before{top:var(--ds-space-150,9pt)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section], .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section]{background-color:var(--ds-background-danger,#ffeceb);box-shadow:0 0 0 1px var(--ds-border-danger,#e2483d);border-radius:var(--ds-radius-small,4px)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section]{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db);border-radius:var(--ds-radius-small,4px);background-color:var(--ds-background-selected,#e9f2fe)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]{position:relative;-webkit-user-select:text}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before{position:absolute;content:"";left:0;right:0;top:0;bottom:0;width:100%;pointer-events:none;z-index:12;background-color:var(--ds-blanket-selected,#388bff14)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::selection, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::selection{background-color:transparent}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::-moz-selection, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::-moz-selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::-moz-selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::-moz-selection{background-color:transparent}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]{border:0}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before{background-color:transparent}
|
|
@@ -296,6 +296,7 @@ const editorContentStyles = {
|
|
|
296
296
|
layoutResponsiveBaseStyles: "cc-1ubc444",
|
|
297
297
|
layoutResponsiveStylesForView: "cc-1109zih",
|
|
298
298
|
layoutDragHandleWrapperStylesLegacy: "cc-gizmrx",
|
|
299
|
+
layoutDragHandleWrapperStylesTopLayer: "cc-94r9i3",
|
|
299
300
|
layoutSectionStylesAdvanced: "cc-1fxar8a",
|
|
300
301
|
layoutSectionStylesNotAdvanced: "cc-tbpbzb",
|
|
301
302
|
layoutSelectedStylesAdvanced: "cc-186ms2c",
|
|
@@ -468,7 +469,7 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
|
|
|
468
469
|
className: ax([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
469
470
|
exposure: true
|
|
470
471
|
}) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, 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, 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 */
|
|
471
|
-
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, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, 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, (fg('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && 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) && 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, 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, 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, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
472
|
+
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, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, 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, (fg('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && 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, 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, 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, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
472
473
|
ref: ref,
|
|
473
474
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
474
475
|
"data-testid": "editor-content-container"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ToolbarSize,
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
1
|
+
import { ToolbarSize, ToolbarWidthsFullPageNext, ToolbarWidthsNext } from '@atlaskit/editor-common/types';
|
|
3
2
|
import { isFullPage } from '../../utils/is-full-page';
|
|
4
3
|
// Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
|
|
5
4
|
const toolbarSizesFullPageNext = [{
|
|
@@ -18,28 +17,6 @@ const toolbarSizesFullPageNext = [{
|
|
|
18
17
|
width: ToolbarWidthsFullPageNext.S,
|
|
19
18
|
size: ToolbarSize.S
|
|
20
19
|
}];
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
23
|
-
/** @deprecated
|
|
24
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
|
|
25
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
26
|
-
*/
|
|
27
|
-
const toolbarSizesFullPage = [{
|
|
28
|
-
width: ToolbarWidthsFullPage.XXL,
|
|
29
|
-
size: ToolbarSize.XXL
|
|
30
|
-
}, {
|
|
31
|
-
width: ToolbarWidthsFullPage.XL,
|
|
32
|
-
size: ToolbarSize.XL
|
|
33
|
-
}, {
|
|
34
|
-
width: ToolbarWidthsFullPage.L,
|
|
35
|
-
size: ToolbarSize.L
|
|
36
|
-
}, {
|
|
37
|
-
width: ToolbarWidthsFullPage.M,
|
|
38
|
-
size: ToolbarSize.M
|
|
39
|
-
}, {
|
|
40
|
-
width: ToolbarWidthsFullPage.S,
|
|
41
|
-
size: ToolbarSize.S
|
|
42
|
-
}];
|
|
43
20
|
const toolbarSizesNext = [{
|
|
44
21
|
width: ToolbarWidthsNext.XXL,
|
|
45
22
|
size: ToolbarSize.XXL
|
|
@@ -56,34 +33,12 @@ const toolbarSizesNext = [{
|
|
|
56
33
|
width: ToolbarWidthsNext.S,
|
|
57
34
|
size: ToolbarSize.S
|
|
58
35
|
}];
|
|
59
|
-
|
|
60
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
61
|
-
/** @deprecated
|
|
62
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
|
|
63
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
64
|
-
*/
|
|
65
|
-
const toolbarSizes = [{
|
|
66
|
-
width: ToolbarWidths.XXL,
|
|
67
|
-
size: ToolbarSize.XXL
|
|
68
|
-
}, {
|
|
69
|
-
width: ToolbarWidths.XL,
|
|
70
|
-
size: ToolbarSize.XL
|
|
71
|
-
}, {
|
|
72
|
-
width: ToolbarWidths.L,
|
|
73
|
-
size: ToolbarSize.L
|
|
74
|
-
}, {
|
|
75
|
-
width: ToolbarWidths.M,
|
|
76
|
-
size: ToolbarSize.M
|
|
77
|
-
}, {
|
|
78
|
-
width: ToolbarWidths.S,
|
|
79
|
-
size: ToolbarSize.S
|
|
80
|
-
}];
|
|
81
|
-
const toolbarSizesForAppearance = appearance => isFullPage(appearance) ? fg('platform_editor_toolbar_responsive_fixes') ? toolbarSizesFullPageNext : toolbarSizesFullPage : fg('platform_editor_toolbar_responsive_fixes') ? toolbarSizesNext : toolbarSizes;
|
|
36
|
+
const toolbarSizesForAppearance = appearance => isFullPage(appearance) ? toolbarSizesFullPageNext : toolbarSizesNext;
|
|
82
37
|
export const toolbarSizeToWidth = (toolbarSize, appearance) => {
|
|
83
38
|
return (toolbarSizesForAppearance(appearance).find(({
|
|
84
39
|
size
|
|
85
40
|
}) => toolbarSize === size) || {
|
|
86
|
-
width:
|
|
41
|
+
width: ToolbarWidthsNext.S
|
|
87
42
|
}).width;
|
|
88
43
|
};
|
|
89
44
|
|
|
@@ -104,7 +104,7 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
|
|
|
104
104
|
}
|
|
105
105
|
const quickInsertItems = getQuickInsertItemsFromModule(extensions, item => {
|
|
106
106
|
return {
|
|
107
|
-
...(
|
|
107
|
+
...(item.app ? {
|
|
108
108
|
app: item.app
|
|
109
109
|
} : {}),
|
|
110
110
|
// Add module key so typeahead/quick-insert can identify items
|
|
@@ -30,8 +30,7 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
30
30
|
},
|
|
31
31
|
blockType: {
|
|
32
32
|
lastNodeMustBeParagraph: appearance === 'comment' || appearance === 'chromeless',
|
|
33
|
-
allowBlockType: props.allowBlockType
|
|
34
|
-
isUndoRedoButtonsEnabled: props.allowUndoRedoButtons
|
|
33
|
+
allowBlockType: props.allowBlockType
|
|
35
34
|
},
|
|
36
35
|
placeholder: {
|
|
37
36
|
placeholder: props.placeholder,
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
@container editor-area (max-width: 724px){.cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 724px){.cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}@container editor-area (max-width: 788px){.cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 788px){.cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}@container editor-area (max-width: 820px){.cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap [data-layout-section]{flex-direction:column}}@container editor-area (max-width: 820px){.cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1ubc444 .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-top:1px solid var(--ds-border,#0b120e24);position:absolute;width:calc(100% - 2pc);margin-top:-13px;border-left:unset;margin-left:unset;height:unset}}
|
|
85
85
|
@container editor-area (max-width: 724px){.cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .fabric-editor--full-width-mode .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}@container editor-area (max-width: 788px){.cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror>.layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}@container editor-area (max-width: 820px){.cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap.selected.danger [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-1109zih .ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{border-top:0}}
|
|
86
86
|
.cc-gizmrx .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drag-handle-container] div{display:contents!important}
|
|
87
|
+
.cc-94r9i3 .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drag-handle-container]>div:not([popover]){display:contents!important}
|
|
87
88
|
.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget{flex-grow:0;flex-shrink:0;flex-basis:auto;display:contents!important}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drop-target-container]{display:block!important;margin:var(--ds-space-negative-050,-4px)}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget[data-blocks-drop-target-container] [data-drop-target-for-element]{position:absolute}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider{display:block!important;flex-grow:0;flex-shrink:0;flex-basis:auto;opacity:0;transition:opacity .2s}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>.ProseMirror-widget+[data-layout-column]{margin-top:0;margin-right:0;margin-bottom:0;margin-left:0}.cc-1fxar8a .ProseMirror .layout-section-container [data-layout-section]>[data-layout-column]{margin-top:0;margin-right:0;margin-bottom:0;margin-left:0}.cc-1fxar8a .ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider{opacity:1}.cc-1fxar8a .ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]>.ProseMirror-widget.layout-column-divider~[data-layout-column] [data-layout-content]:before{display:none!important}
|
|
88
89
|
.cc-tbpbzb .ProseMirror [data-layout-section]{position:relative;display:flex;flex-direction:row}.cc-tbpbzb .ProseMirror [data-layout-section]>*{flex-grow:1;flex-shrink:1;flex-basis:0%;min-width:0}.cc-tbpbzb .ProseMirror [data-layout-section]>.unsupportedBlockView-content-wrap{min-width:auto}.cc-tbpbzb .ProseMirror [data-layout-section]>.layout-column-divider{flex-grow:0;flex-shrink:0;flex-basis:auto}@media screen and (max-width:1024px){.cc-tbpbzb .ProseMirror [data-layout-section]{flex-direction:column}}
|
|
89
90
|
.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap [data-empty-layout=true] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section] [data-empty-layout=true] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section] [data-layout-column]:not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section]:hover [data-layout-column]:not(:first-of-type) [data-layout-content]:before{content:"";border-left:1px solid var(--ds-border,#0b120e24);position:absolute;height:calc(100% - 24px);margin-left:-25px}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap [data-empty-layout=true] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap:hover [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section] [data-empty-layout=true] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section] [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before, .cc-186ms2c .ProseMirror [data-layout-section]:hover [data-layout-column]:is([data-valign=middle],[data-valign=bottom]):not(:first-of-type) [data-layout-content]:before{top:var(--ds-space-150,9pt)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.selected.danger [data-layout-section], .cc-186ms2c .ProseMirror [data-layout-section].selected.danger [data-layout-section]{background-color:var(--ds-background-danger,#ffeceb);box-shadow:0 0 0 1px var(--ds-border-danger,#e2483d);border-radius:var(--ds-radius-small,4px)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section]{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db);border-radius:var(--ds-radius-small,4px);background-color:var(--ds-background-selected,#e9f2fe)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]{position:relative;-webkit-user-select:text}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before{position:absolute;content:"";left:0;right:0;top:0;bottom:0;width:100%;pointer-events:none;z-index:12;background-color:var(--ds-blanket-selected,#388bff14)}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::selection, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::selection{background-color:transparent}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::-moz-selection, .cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::-moz-selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column] ::-moz-selection, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]::-moz-selection{background-color:transparent}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column], .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]{border:0}.cc-186ms2c .ProseMirror .layoutSectionView-content-wrap.ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before, .cc-186ms2c .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-section] [data-layout-column]:before{background-color:transparent}
|
|
@@ -244,6 +244,7 @@ var editorContentStyles = {
|
|
|
244
244
|
layoutResponsiveBaseStyles: "cc-1ubc444",
|
|
245
245
|
layoutResponsiveStylesForView: "cc-1109zih",
|
|
246
246
|
layoutDragHandleWrapperStylesLegacy: "cc-gizmrx",
|
|
247
|
+
layoutDragHandleWrapperStylesTopLayer: "cc-94r9i3",
|
|
247
248
|
layoutSectionStylesAdvanced: "cc-1fxar8a",
|
|
248
249
|
layoutSectionStylesNotAdvanced: "cc-tbpbzb",
|
|
249
250
|
layoutSelectedStylesAdvanced: "cc-186ms2c",
|
|
@@ -412,7 +413,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
|
|
|
412
413
|
className: ax([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
413
414
|
exposure: true
|
|
414
415
|
}) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, 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, 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 */
|
|
415
|
-
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, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, 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, (fg('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && 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) && 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, 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, 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, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
416
|
+
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, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, 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, (fg('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && 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, 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, 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, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
416
417
|
ref: ref,
|
|
417
418
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
418
419
|
"data-testid": "editor-content-container"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ToolbarSize,
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
1
|
+
import { ToolbarSize, ToolbarWidthsFullPageNext, ToolbarWidthsNext } from '@atlaskit/editor-common/types';
|
|
3
2
|
import { isFullPage } from '../../utils/is-full-page';
|
|
4
3
|
// Toolbar sizes for full page editor a little bit different, because it has more buttons e.g. actions button...
|
|
5
4
|
var toolbarSizesFullPageNext = [{
|
|
@@ -18,28 +17,6 @@ var toolbarSizesFullPageNext = [{
|
|
|
18
17
|
width: ToolbarWidthsFullPageNext.S,
|
|
19
18
|
size: ToolbarSize.S
|
|
20
19
|
}];
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
23
|
-
/** @deprecated
|
|
24
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
|
|
25
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
26
|
-
*/
|
|
27
|
-
var toolbarSizesFullPage = [{
|
|
28
|
-
width: ToolbarWidthsFullPage.XXL,
|
|
29
|
-
size: ToolbarSize.XXL
|
|
30
|
-
}, {
|
|
31
|
-
width: ToolbarWidthsFullPage.XL,
|
|
32
|
-
size: ToolbarSize.XL
|
|
33
|
-
}, {
|
|
34
|
-
width: ToolbarWidthsFullPage.L,
|
|
35
|
-
size: ToolbarSize.L
|
|
36
|
-
}, {
|
|
37
|
-
width: ToolbarWidthsFullPage.M,
|
|
38
|
-
size: ToolbarSize.M
|
|
39
|
-
}, {
|
|
40
|
-
width: ToolbarWidthsFullPage.S,
|
|
41
|
-
size: ToolbarSize.S
|
|
42
|
-
}];
|
|
43
20
|
var toolbarSizesNext = [{
|
|
44
21
|
width: ToolbarWidthsNext.XXL,
|
|
45
22
|
size: ToolbarSize.XXL
|
|
@@ -56,37 +33,15 @@ var toolbarSizesNext = [{
|
|
|
56
33
|
width: ToolbarWidthsNext.S,
|
|
57
34
|
size: ToolbarSize.S
|
|
58
35
|
}];
|
|
59
|
-
|
|
60
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
|
|
61
|
-
/** @deprecated
|
|
62
|
-
* To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
|
|
63
|
-
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
64
|
-
*/
|
|
65
|
-
var toolbarSizes = [{
|
|
66
|
-
width: ToolbarWidths.XXL,
|
|
67
|
-
size: ToolbarSize.XXL
|
|
68
|
-
}, {
|
|
69
|
-
width: ToolbarWidths.XL,
|
|
70
|
-
size: ToolbarSize.XL
|
|
71
|
-
}, {
|
|
72
|
-
width: ToolbarWidths.L,
|
|
73
|
-
size: ToolbarSize.L
|
|
74
|
-
}, {
|
|
75
|
-
width: ToolbarWidths.M,
|
|
76
|
-
size: ToolbarSize.M
|
|
77
|
-
}, {
|
|
78
|
-
width: ToolbarWidths.S,
|
|
79
|
-
size: ToolbarSize.S
|
|
80
|
-
}];
|
|
81
36
|
var toolbarSizesForAppearance = function toolbarSizesForAppearance(appearance) {
|
|
82
|
-
return isFullPage(appearance) ?
|
|
37
|
+
return isFullPage(appearance) ? toolbarSizesFullPageNext : toolbarSizesNext;
|
|
83
38
|
};
|
|
84
39
|
export var toolbarSizeToWidth = function toolbarSizeToWidth(toolbarSize, appearance) {
|
|
85
40
|
return (toolbarSizesForAppearance(appearance).find(function (_ref) {
|
|
86
41
|
var size = _ref.size;
|
|
87
42
|
return toolbarSize === size;
|
|
88
43
|
}) || {
|
|
89
|
-
width:
|
|
44
|
+
width: ToolbarWidthsNext.S
|
|
90
45
|
}).width;
|
|
91
46
|
};
|
|
92
47
|
|
|
@@ -135,7 +135,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
135
135
|
return Promise.resolve([]);
|
|
136
136
|
}
|
|
137
137
|
var quickInsertItems = getQuickInsertItemsFromModule(extensions, function (item) {
|
|
138
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
|
|
138
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
|
|
139
139
|
app: item.app
|
|
140
140
|
} : {}), {}, {
|
|
141
141
|
// Add module key so typeahead/quick-insert can identify items
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "236.0.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@atlaskit/button": "^25.4.0",
|
|
51
51
|
"@atlaskit/css": "^1.1.0",
|
|
52
52
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
53
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
54
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
55
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
56
|
-
"@atlaskit/editor-plugin-selection-extension": "^
|
|
57
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
53
|
+
"@atlaskit/editor-plugin-block-menu": "^25.0.0",
|
|
54
|
+
"@atlaskit/editor-plugin-connectivity": "^26.0.0",
|
|
55
|
+
"@atlaskit/editor-plugin-quick-insert": "^26.0.0",
|
|
56
|
+
"@atlaskit/editor-plugin-selection-extension": "^29.0.0",
|
|
57
|
+
"@atlaskit/editor-plugin-user-preferences": "^24.0.0",
|
|
58
58
|
"@atlaskit/editor-plugins": "^16.2.0",
|
|
59
59
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
60
60
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
61
|
-
"@atlaskit/editor-ssr-renderer": "^
|
|
61
|
+
"@atlaskit/editor-ssr-renderer": "^21.0.0",
|
|
62
62
|
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
63
63
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
64
64
|
"@atlaskit/emoji": "^72.5.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.1.0",
|
|
79
79
|
"@atlaskit/task-decision": "^21.12.0",
|
|
80
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
81
|
-
"@atlaskit/tokens": "^20.
|
|
80
|
+
"@atlaskit/tmp-editor-statsig": "^228.0.0",
|
|
81
|
+
"@atlaskit/tokens": "^20.4.0",
|
|
82
82
|
"@atlaskit/tooltip": "^24.4.0",
|
|
83
83
|
"@atlaskit/width-detector": "^7.2.0",
|
|
84
84
|
"@babel/runtime": "^7.0.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"uuid": "^11.1.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@atlaskit/editor-common": "^
|
|
99
|
+
"@atlaskit/editor-common": "^130.1.0",
|
|
100
100
|
"@atlaskit/link-provider": "^6.0.0",
|
|
101
101
|
"@atlaskit/media-core": "^39.0.0",
|
|
102
102
|
"react": "^18.2.0 || ^19.2.0",
|
|
@@ -112,37 +112,37 @@
|
|
|
112
112
|
"@atlaskit/analytics-gas-types": "^6.2.0",
|
|
113
113
|
"@atlaskit/analytics-listeners": "^11.4.0",
|
|
114
114
|
"@atlaskit/code": "^20.0.0",
|
|
115
|
-
"@atlaskit/collab-provider": "^
|
|
115
|
+
"@atlaskit/collab-provider": "^35.0.0",
|
|
116
116
|
"@atlaskit/docs": "^12.3.0",
|
|
117
117
|
"@atlaskit/drawer": "^14.3.0",
|
|
118
|
-
"@atlaskit/editor-plugin-alignment": "^
|
|
119
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
120
|
-
"@atlaskit/editor-plugin-base": "^
|
|
121
|
-
"@atlaskit/editor-plugin-card": "^
|
|
122
|
-
"@atlaskit/editor-plugin-code-block-advanced": "^
|
|
123
|
-
"@atlaskit/editor-plugin-collab-edit": "^
|
|
124
|
-
"@atlaskit/editor-plugin-content-insertion": "^
|
|
125
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
126
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
127
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
128
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
129
|
-
"@atlaskit/editor-plugin-highlight": "^
|
|
130
|
-
"@atlaskit/editor-plugin-insert-block": "^
|
|
131
|
-
"@atlaskit/editor-plugin-layout": "^
|
|
132
|
-
"@atlaskit/editor-plugin-limited-mode": "^
|
|
133
|
-
"@atlaskit/editor-plugin-list": "^
|
|
134
|
-
"@atlaskit/editor-plugin-media": "^
|
|
135
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
136
|
-
"@atlaskit/editor-plugin-selection-marker": "^
|
|
137
|
-
"@atlaskit/editor-plugin-show-diff": "^
|
|
138
|
-
"@atlaskit/editor-plugin-synced-block": "^
|
|
139
|
-
"@atlaskit/editor-plugin-table": "^
|
|
140
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^
|
|
141
|
-
"@atlaskit/editor-plugin-text-color": "^
|
|
142
|
-
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^
|
|
143
|
-
"@atlaskit/editor-plugin-track-changes": "^
|
|
144
|
-
"@atlaskit/editor-synced-block-provider": "^
|
|
145
|
-
"@atlaskit/editor-synced-block-renderer": "^
|
|
118
|
+
"@atlaskit/editor-plugin-alignment": "^27.0.0",
|
|
119
|
+
"@atlaskit/editor-plugin-annotation": "^26.0.0",
|
|
120
|
+
"@atlaskit/editor-plugin-base": "^27.0.0",
|
|
121
|
+
"@atlaskit/editor-plugin-card": "^32.1.0",
|
|
122
|
+
"@atlaskit/editor-plugin-code-block-advanced": "^26.0.0",
|
|
123
|
+
"@atlaskit/editor-plugin-collab-edit": "^27.0.0",
|
|
124
|
+
"@atlaskit/editor-plugin-content-insertion": "^26.0.0",
|
|
125
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^28.0.0",
|
|
126
|
+
"@atlaskit/editor-plugin-extension": "^29.0.0",
|
|
127
|
+
"@atlaskit/editor-plugin-grid": "^26.0.0",
|
|
128
|
+
"@atlaskit/editor-plugin-guideline": "^26.0.0",
|
|
129
|
+
"@atlaskit/editor-plugin-highlight": "^26.0.0",
|
|
130
|
+
"@atlaskit/editor-plugin-insert-block": "^27.0.0",
|
|
131
|
+
"@atlaskit/editor-plugin-layout": "^27.0.0",
|
|
132
|
+
"@atlaskit/editor-plugin-limited-mode": "^23.0.0",
|
|
133
|
+
"@atlaskit/editor-plugin-list": "^28.0.0",
|
|
134
|
+
"@atlaskit/editor-plugin-media": "^28.0.0",
|
|
135
|
+
"@atlaskit/editor-plugin-paste": "^27.0.0",
|
|
136
|
+
"@atlaskit/editor-plugin-selection-marker": "^26.0.0",
|
|
137
|
+
"@atlaskit/editor-plugin-show-diff": "^24.0.0",
|
|
138
|
+
"@atlaskit/editor-plugin-synced-block": "^24.0.0",
|
|
139
|
+
"@atlaskit/editor-plugin-table": "^38.0.0",
|
|
140
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^29.0.0",
|
|
141
|
+
"@atlaskit/editor-plugin-text-color": "^26.0.0",
|
|
142
|
+
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^27.0.0",
|
|
143
|
+
"@atlaskit/editor-plugin-track-changes": "^25.0.0",
|
|
144
|
+
"@atlaskit/editor-synced-block-provider": "^22.0.0",
|
|
145
|
+
"@atlaskit/editor-synced-block-renderer": "^24.0.0",
|
|
146
146
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
147
147
|
"@atlaskit/form": "^18.2.0",
|
|
148
148
|
"@atlaskit/link-provider": "^6.0.0",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@atlaskit/portal": "^7.0.0",
|
|
160
160
|
"@atlaskit/profilecard": "^27.1.0",
|
|
161
161
|
"@atlaskit/radio": "^10.2.0",
|
|
162
|
-
"@atlaskit/renderer": "^
|
|
162
|
+
"@atlaskit/renderer": "^149.0.0",
|
|
163
163
|
"@atlaskit/section-message": "^10.2.0",
|
|
164
164
|
"@atlaskit/spinner": "^20.4.0",
|
|
165
165
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
@@ -170,11 +170,11 @@
|
|
|
170
170
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
171
171
|
"@atlassian/a11y-playwright-testing": "^0.13.0",
|
|
172
172
|
"@atlassian/adf-schema-json": "^1.35.0",
|
|
173
|
-
"@atlassian/editor-rovo-bridge": "^
|
|
173
|
+
"@atlassian/editor-rovo-bridge": "^25.0.0",
|
|
174
174
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
175
175
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
176
|
-
"@atlassian/search-client": "^3.
|
|
177
|
-
"@atlassian/search-provider": "^
|
|
176
|
+
"@atlassian/search-client": "^3.8.0",
|
|
177
|
+
"@atlassian/search-provider": "^27.0.0",
|
|
178
178
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
179
179
|
"@atlassian/testing-library": "^0.11.0",
|
|
180
180
|
"@atlassian/user-profile-card": "^1.44.0",
|
|
@@ -216,9 +216,6 @@
|
|
|
216
216
|
"type": "boolean",
|
|
217
217
|
"referenceOnly": true
|
|
218
218
|
},
|
|
219
|
-
"platform_editor_toolbar_responsive_fixes": {
|
|
220
|
-
"type": "boolean"
|
|
221
|
-
},
|
|
222
219
|
"platform-component-visual-refresh": {
|
|
223
220
|
"type": "boolean",
|
|
224
221
|
"referenceOnly": true
|