@atlaskit/editor-core 228.1.12 → 228.1.14
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 +27 -0
- package/dist/cjs/create-editor/ReactEditorView.js +1 -1
- package/dist/cjs/presets/default.js +2 -5
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +15 -42
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -3
- package/dist/cjs/ui/EditorContentContainer/styles/layout.js +6 -27
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertIcon.js +0 -15
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertMenuItem.js +0 -1
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +48 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +1 -1
- package/dist/es2019/presets/default.js +2 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +16 -43
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -4
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +5 -26
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertIcon.js +0 -15
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertMenuItem.js +0 -1
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +48 -10
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +1 -1
- package/dist/esm/presets/default.js +2 -5
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +15 -42
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -4
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +5 -26
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertIcon.js +0 -15
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertMenuItem.js +0 -1
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +48 -10
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +0 -7
- package/dist/types/ui/quick-insert/ExtensionQuickInsertIcon.d.ts +1 -2
- package/dist/types/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.d.ts +1 -1
- package/package.json +9 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 228.1.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`88fb7a8d4013a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88fb7a8d4013a) -
|
|
8
|
+
[ux] Add optional light and dark preview URLs to slash-command menu items and pass theme-aware
|
|
9
|
+
previews to supported commands when the `platform_editor_slash_command` experiment is enabled.
|
|
10
|
+
- [`04a147a4ed8b5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04a147a4ed8b5) -
|
|
11
|
+
Remove the platform_editor_table_excerpts_fix experiment and make its enabled behavior permanent.
|
|
12
|
+
Tables inside layout columns retain their full-width styling in both Emotion and Compiled editors.
|
|
13
|
+
|
|
14
|
+
The experiment key has been removed from tmp-editor-statsig configuration. Consumers must remove
|
|
15
|
+
checks for this key and retain the isEnabled: true behavior.
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 228.1.13
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
24
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
25
|
+
- [`df3b4a62decdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df3b4a62decdd) -
|
|
26
|
+
Replace the `fix_editor_blur_issue` feature gate with the `fix_editor_blur_issue_exp` experiment
|
|
27
|
+
for blur selection clearing, including updated experiment-based unit test coverage.
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 228.1.12
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -307,7 +307,7 @@ function ReactEditorView(props) {
|
|
|
307
307
|
// @ts-expect-error
|
|
308
308
|
var sel = viewRef.current.root.getSelection();
|
|
309
309
|
if (sel) {
|
|
310
|
-
if (!(0,
|
|
310
|
+
if (!(0, _isExperimentEnabled.isExperimentEnabled)('fix_editor_blur_issue_exp')) {
|
|
311
311
|
sel.removeAllRanges();
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
@@ -44,7 +44,6 @@ var _unsupportedContent = require("@atlaskit/editor-plugins/unsupported-content"
|
|
|
44
44
|
var _userIntent = require("@atlaskit/editor-plugins/user-intent");
|
|
45
45
|
var _width = require("@atlaskit/editor-plugins/width");
|
|
46
46
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
47
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
48
47
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
49
48
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
50
49
|
var _isFullPage = require("../utils/is-full-page");
|
|
@@ -66,13 +65,11 @@ function createDefaultPreset(options) {
|
|
|
66
65
|
performanceTracking: options.performanceTracking
|
|
67
66
|
}], Boolean(options.allowAnalyticsGASV3)).add(_betterTypeHistory.betterTypeHistoryPlugin).add([_paste.pastePlugin, _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.paste), {}, {
|
|
68
67
|
isFullPage: isFullPage
|
|
69
|
-
})]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).
|
|
68
|
+
})]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add([_editorPluginUserPreferences.userPreferencesPlugin, {
|
|
70
69
|
initialUserPreferences: {
|
|
71
70
|
toolbarDockingPosition: isFullPage ? 'none' : 'top'
|
|
72
71
|
}
|
|
73
|
-
}],
|
|
74
|
-
return (0, _fg.fg)('platform_editor_use_preferences_plugin');
|
|
75
|
-
}).maybeAdd(_interaction.interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || (0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
|
|
72
|
+
}]).maybeAdd(_interaction.interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || (0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
|
|
76
73
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
77
74
|
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(options.allowUndoRedoButtons)).add(_userIntent.userIntentPlugin).maybeAdd([_toolbar.toolbarPlugin, options.toolbar || {}], Boolean((_options$toolbar = options.toolbar) === null || _options$toolbar === void 0 ? void 0 : _options$toolbar.enableNewToolbarExperience)).add([_primaryToolbar.primaryToolbarPlugin, {
|
|
78
75
|
contextualFormattingEnabled: isFullPage
|
|
@@ -15,7 +15,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
15
15
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
17
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
18
|
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
20
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
20
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
@@ -96,33 +95,16 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
96
95
|
var interactionState = state.interactionState;
|
|
97
96
|
var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, state.primaryToolbarComponents);
|
|
98
97
|
var hasHadInteraction = interactionState !== 'hasNotHadInteraction';
|
|
99
|
-
var
|
|
100
|
-
disabled: (0, _fg.fg)('platform_editor_use_preferences_plugin')
|
|
101
|
-
});
|
|
102
|
-
if (!(0, _fg.fg)('platform_editor_use_preferences_plugin')) {
|
|
103
|
-
if (!toolbarDocking) {
|
|
104
|
-
var _editorAPI$selectionT, _editorAPI$selectionT2;
|
|
105
|
-
// This is a workaround for the rendering issue with the selection toolbar
|
|
106
|
-
// where using useSharedPluginStateSelector or useSharedPluginState the state are not
|
|
107
|
-
// available when the editor is first loaded. and cause the toolbar to blink.
|
|
108
|
-
var defaultDocking = props.__livePage ? 'none' : 'top';
|
|
109
|
-
toolbarDocking = (_editorAPI$selectionT = editorAPI === null || editorAPI === void 0 || (_editorAPI$selectionT2 = editorAPI.selectionToolbar) === null || _editorAPI$selectionT2 === void 0 || (_editorAPI$selectionT2 = _editorAPI$selectionT2.sharedState.currentState()) === null || _editorAPI$selectionT2 === void 0 ? void 0 : _editorAPI$selectionT2.toolbarDocking) !== null && _editorAPI$selectionT !== void 0 ? _editorAPI$selectionT : defaultDocking;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
var _ref3 = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'userPreferences.preferences', {
|
|
113
|
-
disabled: !(0, _fg.fg)('platform_editor_use_preferences_plugin')
|
|
114
|
-
}) || {},
|
|
98
|
+
var _ref3 = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'userPreferences.preferences') || {},
|
|
115
99
|
toolbarDockingPosition = _ref3.toolbarDockingPosition;
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 || (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 || (_editorAPI$userPrefer2 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : _editorAPI$userPrefer2.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
|
|
125
|
-
}
|
|
100
|
+
if (!toolbarDockingPosition) {
|
|
101
|
+
var _editorAPI$userPrefer, _editorAPI$userPrefer2;
|
|
102
|
+
// This is a workaround for the rendering issue with the selection toolbar
|
|
103
|
+
// when using useSharedPluginStateWithSelector the state is not yet
|
|
104
|
+
// available when the editor is first loaded.
|
|
105
|
+
// This causes the toolbar to blink creating a layout shift.
|
|
106
|
+
var defaultDockingPosition = props.__livePage ? 'none' : 'top';
|
|
107
|
+
toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 || (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 || (_editorAPI$userPrefer2 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : _editorAPI$userPrefer2.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
|
|
126
108
|
}
|
|
127
109
|
var primaryToolbarComponents = props.primaryToolbarComponents;
|
|
128
110
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
@@ -133,20 +115,11 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
133
115
|
if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
134
116
|
exposure: true
|
|
135
117
|
})) {
|
|
136
|
-
if
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
isEditorToolbarHidden = true;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
} else {
|
|
145
|
-
if (toolbarDocking === 'none' && !forcePrimaryToolbarPinned) {
|
|
146
|
-
primaryToolbarComponents = [];
|
|
147
|
-
if (!hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
148
|
-
isEditorToolbarHidden = true;
|
|
149
|
-
}
|
|
118
|
+
// need to check if the toolbarDockingPosition is set to 'none' or 'top'
|
|
119
|
+
if (toolbarDockingPosition === 'none' && !forcePrimaryToolbarPinned) {
|
|
120
|
+
primaryToolbarComponents = [];
|
|
121
|
+
if (!hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
122
|
+
isEditorToolbarHidden = true;
|
|
150
123
|
}
|
|
151
124
|
}
|
|
152
125
|
}
|
|
@@ -173,7 +146,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
173
146
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/_react.default.createElement(_FullPageToolbarNext.FullPageToolbarNext, {
|
|
174
147
|
disabled: (0, _expValEquals.expValEquals)('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_default_toolbar_state'),
|
|
175
148
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
176
|
-
toolbarDockingPosition: toolbarDockingPosition
|
|
149
|
+
toolbarDockingPosition: toolbarDockingPosition,
|
|
177
150
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
178
151
|
editorAPI: editorAPI,
|
|
179
152
|
editorView: props.editorView,
|
|
@@ -72,10 +72,9 @@
|
|
|
72
72
|
.cc-z6qi82 .hyperlink-floating-toolbar{padding-top:0;padding-right:0;padding-bottom:0;padding-left:0}
|
|
73
73
|
.cc-1soex6v .ProseMirror .fabric-editor-indentation-mark[data-level="1"]{margin-left:30px}.cc-1soex6v .ProseMirror .fabric-editor-indentation-mark[data-level="2"]{margin-left:60px}.cc-1soex6v .ProseMirror .fabric-editor-indentation-mark[data-level="3"]{margin-left:90px}.cc-1soex6v .ProseMirror .fabric-editor-indentation-mark[data-level="4"]{margin-left:90pt}.cc-1soex6v .ProseMirror .fabric-editor-indentation-mark[data-level="5"]{margin-left:150px}.cc-1soex6v .ProseMirror .fabric-editor-indentation-mark[data-level="6"]{margin-left:180px}
|
|
74
74
|
.cc-oocuhh .ProseMirror .inlineNodeView{display:inline;-webkit-user-select:all;user-select:all;white-space:nowrap}.cc-oocuhh .ProseMirror .inlineNodeView>:not(.zeroWidthSpaceContainer){white-space:pre-wrap}.cc-oocuhh .ProseMirror .inlineNodeView>.assistive{-webkit-user-select:none;-ms-user-select:none;user-select:none}.cc-oocuhh .ProseMirror.ua-safari .inlineNodeView ::selection, .cc-oocuhh .ProseMirror.ua-safari .inlineNodeView::selection{background-color:transparent}.cc-oocuhh .ProseMirror.ua-chrome .inlineNodeView>span{-webkit-user-select:none;-ms-user-select:none;user-select:none}.cc-oocuhh .ProseMirror .inlineNodeViewAddZeroWidthSpace:after{content:""}
|
|
75
|
-
.cc-vt5d4b .ProseMirror [data-layout-section]{margin:var(--ds-space-100,8px) -9pt 0;transition:border-color .3s cubic-bezier(.15,1,.3,1);cursor:pointer}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]{flex-grow:1;flex-shrink:1;flex-basis:0%;position:relative;min-width:0;border:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24);border-radius:var(--ds-radius-small,4px);padding:var(--ds-space-150,9pt);box-sizing:border-box}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.embedCardView-content-wrap:first-of-type .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.mediaSingleView-content-wrap:first-of-type .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.ProseMirror-gapcursor.-right:first-child+.mediaSingleView-content-wrap .rich-media-item, .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.ProseMirror-gapcursor.-right:first-of-type+.embedCardView-content-wrap .rich-media-item, .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>style:first-child+.ProseMirror-gapcursor.-right+.mediaSingleView-content-wrap .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.ProseMirror-gapcursor:first-child+span+.mediaSingleView-content-wrap .rich-media-item, .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>style:first-child+.ProseMirror-gapcursor+span+.mediaSingleView-content-wrap .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>[data-node-type=decisionList] li:first-of-type [data-decision-wrapper]{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column] [data-layout-content]{height:100%;cursor:text}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column] [data-layout-content] .mediaGroupView-content-wrap{clear:both}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content], .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{display:flex;flex-direction:column}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{justify-content:center}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{justify-content:flex-end}.cc-vt5d4b [data-blocks-drop-target-container]~[data-layout-column]>[data-layout-content]:before{display:none}.cc-vt5d4b .fabric-editor--full-width-mode .ProseMirror [data-layout-section] .pm-table-container{margin-top:0;margin-right:2px;margin-bottom:0;margin-left:2px}
|
|
75
|
+
.cc-vt5d4b .ProseMirror [data-layout-section]{margin:var(--ds-space-100,8px) -9pt 0;transition:border-color .3s cubic-bezier(.15,1,.3,1);cursor:pointer}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]{flex-grow:1;flex-shrink:1;flex-basis:0%;position:relative;min-width:0;border:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24);border-radius:var(--ds-radius-small,4px);padding:var(--ds-space-150,9pt);box-sizing:border-box}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div .pm-table-container{width:100%!important}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.embedCardView-content-wrap:first-of-type .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.mediaSingleView-content-wrap:first-of-type .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.ProseMirror-gapcursor.-right:first-child+.mediaSingleView-content-wrap .rich-media-item, .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.ProseMirror-gapcursor.-right:first-of-type+.embedCardView-content-wrap .rich-media-item, .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>style:first-child+.ProseMirror-gapcursor.-right+.mediaSingleView-content-wrap .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>.ProseMirror-gapcursor:first-child+span+.mediaSingleView-content-wrap .rich-media-item, .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>style:first-child+.ProseMirror-gapcursor+span+.mediaSingleView-content-wrap .rich-media-item{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column]>div>[data-node-type=decisionList] li:first-of-type [data-decision-wrapper]{margin-top:0}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column] [data-layout-content]{height:100%;cursor:text}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column] [data-layout-content] .mediaGroupView-content-wrap{clear:both}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content], .cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{display:flex;flex-direction:column}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{justify-content:center}.cc-vt5d4b .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{justify-content:flex-end}.cc-vt5d4b [data-blocks-drop-target-container]~[data-layout-column]>[data-layout-content]:before{display:none}.cc-vt5d4b .fabric-editor--full-width-mode .ProseMirror [data-layout-section] .pm-table-container{margin-top:0;margin-right:2px;margin-bottom:0;margin-left:2px}
|
|
76
76
|
.cc-nyj72m .ProseMirror [data-layout-section] [data-layout-column]{border:0}
|
|
77
77
|
.cc-19l8fhf .ProseMirror [data-layout-section]{margin:var(--ds-space-100,8px) -20px 0}.cc-19l8fhf .ProseMirror [data-prosemirror-node-name=bodiedSyncBlock] [data-layout-section]{margin:var(--ds-space-100,8px) -9pt 0}.cc-19l8fhf .ProseMirror [data-layout-section] [data-layout-column]{padding-top:9pt;padding-right:20px;padding-bottom:9pt;padding-left:20px}
|
|
78
|
-
.cc-e9amqv .ProseMirror [data-layout-section] [data-layout-column]>div .pm-table-container{width:100%!important}
|
|
79
78
|
.cc-17tg3cb .layout-column-divider{margin-inline:-15px 0;flex-shrink:0;box-sizing:content-box;cursor:col-resize;position:relative;z-index:2;align-self:stretch;display:flex;align-items:center;justify-content:center}.cc-17tg3cb .layout-column-divider:hover .layout-column-divider-rail{background:var(--ds-background-selected,#e9f2fe)}.cc-17tg3cb .layout-column-divider:hover .layout-column-divider-thumb{background:var(--ds-border-focused,#4688ec)}.cc-17tg3cb .layout-column-divider-rail{width:7px;height:100%;display:flex;align-items:center;justify-content:center;border-radius:var(--ds-radius-small,4px);transition:background-color .2s;pointer-events:none}.cc-17tg3cb .layout-column-divider-thumb{min-width:3px;height:clamp(27px,calc(100% - 2pc),6pc);background:var(--ds-border,#0b120e24);border-radius:var(--ds-radius-medium,6px);pointer-events:none;position:sticky;top:var(--ds-space-150,9pt);bottom:var(--ds-space-150,9pt)}
|
|
80
79
|
.cc-az4yk5 .layout-column-divider{margin-inline:0 -7px}
|
|
81
80
|
.cc-17reocz .ProseMirror [data-layout-section] [data-layout-column]>div>:nth-child(1 of :not(style,.ProseMirror-gapcursor,.ProseMirror-widget,span)){margin-top:0}
|
|
@@ -243,7 +243,6 @@ var editorContentStyles = {
|
|
|
243
243
|
layoutBaseStyles: "cc-vt5d4b",
|
|
244
244
|
layoutBaseStylesAdvanced: "cc-nyj72m",
|
|
245
245
|
layoutBaseStylesNestedDndExcludingBodiedSync: "cc-19l8fhf",
|
|
246
|
-
layoutBaseStylesWithTableExcerptsFix: "cc-e9amqv",
|
|
247
246
|
layoutColumnDividerStyles: "cc-17tg3cb",
|
|
248
247
|
layoutColumnDividerStylesNestedDnD: "cc-az4yk5",
|
|
249
248
|
layoutColumnMartinTopFixes: "cc-17reocz",
|
|
@@ -431,7 +430,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
431
430
|
}) && editorContentStyles.listSelectedNodeStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
|
|
432
431
|
exposure: true
|
|
433
432
|
}) && editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, (0, _expValEquals.expValEquals)('platform_editor_a11y_scrollable_region', 'isEnabled', true) && editorContentStyles.codeMarkStylesA11yFix, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !(0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_flexible_list_schema', 'isEnabled', true) && 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, (0, _expValEquals.expValEquals)('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? editorContentStyles.showDiffDeletedNodeStylesNew : 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 */
|
|
434
|
-
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, editorContentStyles.annotationStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) ? editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles : editorContentStyles.smartCardStylesWithSearchMatch, (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, (0, _expValEquals.expValEquals)('platform_editor_table_excerpts_fix', 'isEnabled', true) && editorContentStyles.layoutBaseStylesWithTableExcerptsFix, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, (0, _fg.fg)('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, isSyncBlockActivationEnabled && 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, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesPanelAndRule, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesForTooltip, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true) && ((0, _editorExperiment.editorExperiment)('advanced_layouts', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', 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, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
433
|
+
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, editorContentStyles.annotationStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) ? editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles : editorContentStyles.smartCardStylesWithSearchMatch, (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, isSyncBlockActivationEnabled && 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, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesPanelAndRule, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, (0, _editorExperiment.editorExperiment)('advanced_layouts', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesForTooltip, (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true) && ((0, _editorExperiment.editorExperiment)('advanced_layouts', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', 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, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
435
434
|
ref: ref,
|
|
436
435
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
437
436
|
"data-testid": "editor-content-container"
|
|
@@ -562,9 +562,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
562
562
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
563
563
|
_resizerStyles.resizerBottomHandleStyles,
|
|
564
564
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
565
|
-
_layout.layoutBaseStyles,
|
|
566
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
567
|
-
_layout.layoutBaseStylesWithTableExcerptsFix,
|
|
565
|
+
_layout.layoutBaseStyles,
|
|
568
566
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
569
567
|
alignMultipleWrappedImageInLayoutStyles,
|
|
570
568
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.layoutStylesForView = exports.layoutSelectedStylesNotAdvanced = exports.layoutSelectedStylesForViewNotAdvanced = exports.layoutSelectedStylesForViewAdvanced = exports.layoutSelectedStylesAdvancedFix = exports.layoutSelectedStylesAdvanced = exports.layoutSectionStylesNotAdvanced = exports.layoutSectionStylesAdvanced = exports.layoutResponsiveStylesForView = exports.layoutResponsiveBaseStyles = exports.layoutDragHandleWrapperStylesLegacy = exports.layoutColumnStylesNotAdvanced = exports.layoutColumnStylesAdvanced = exports.layoutColumnResponsiveStyles = exports.layoutColumnResizeStyles = exports.layoutColumnMartinTopFixes = exports.layoutColumnDividerStylesNestedDnD = exports.layoutColumnDividerStyles = exports.
|
|
7
|
+
exports.layoutStylesForView = exports.layoutSelectedStylesNotAdvanced = exports.layoutSelectedStylesForViewNotAdvanced = exports.layoutSelectedStylesForViewAdvanced = exports.layoutSelectedStylesAdvancedFix = exports.layoutSelectedStylesAdvanced = exports.layoutSectionStylesNotAdvanced = exports.layoutSectionStylesAdvanced = exports.layoutResponsiveStylesForView = exports.layoutResponsiveBaseStyles = exports.layoutDragHandleWrapperStylesLegacy = exports.layoutColumnStylesNotAdvanced = exports.layoutColumnStylesAdvanced = exports.layoutColumnResponsiveStyles = exports.layoutColumnResizeStyles = exports.layoutColumnMartinTopFixes = exports.layoutColumnDividerStylesNestedDnD = exports.layoutColumnDividerStyles = exports.layoutBaseStylesNestedDndExcludingBodiedSync = exports.layoutBaseStylesNestedDnd = exports.layoutBaseStylesAdvanced = exports.layoutBaseStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _selectionStyles = require("./selectionStyles");
|
|
@@ -549,6 +549,11 @@ var layoutBaseStyles = exports.layoutBaseStyles = (0, _react.css)({
|
|
|
549
549
|
boxSizing: 'border-box',
|
|
550
550
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
551
551
|
'> div': {
|
|
552
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
553
|
+
'.pm-table-container': {
|
|
554
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
555
|
+
width: '100% !important'
|
|
556
|
+
},
|
|
552
557
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
553
558
|
'> .embedCardView-content-wrap:first-of-type .rich-media-item': {
|
|
554
559
|
marginTop: 0
|
|
@@ -618,32 +623,6 @@ var layoutBaseStyles = exports.layoutBaseStyles = (0, _react.css)({
|
|
|
618
623
|
}
|
|
619
624
|
}
|
|
620
625
|
});
|
|
621
|
-
// on exp 'platform_editor_table_excerpts_fix' cleanup, merge this style to the one above
|
|
622
|
-
/**
|
|
623
|
-
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
624
|
-
* If you need to make changes here, also update the corresponding style in
|
|
625
|
-
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
626
|
-
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
627
|
-
*/
|
|
628
|
-
var layoutBaseStylesWithTableExcerptsFix = exports.layoutBaseStylesWithTableExcerptsFix = (0, _react.css)({
|
|
629
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
630
|
-
'.ProseMirror': {
|
|
631
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
632
|
-
'[data-layout-section]': {
|
|
633
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
634
|
-
'[data-layout-column]': {
|
|
635
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
636
|
-
'> div': {
|
|
637
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
638
|
-
'.pm-table-container': {
|
|
639
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
640
|
-
width: '100% !important'
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
});
|
|
647
626
|
|
|
648
627
|
/**
|
|
649
628
|
* Base styles overrides for layout columns when advanced layouts experiment is on
|
|
@@ -15,10 +15,6 @@ var _carousel = _interopRequireDefault(require("@atlaskit/icon-lab/core/carousel
|
|
|
15
15
|
var _tableOfContent = _interopRequireDefault(require("@atlaskit/icon-lab/core/table-of-content"));
|
|
16
16
|
var _template = _interopRequireDefault(require("@atlaskit/icon-lab/core/template"));
|
|
17
17
|
var lazyExtensionIconCache = new WeakMap();
|
|
18
|
-
var brandedSlashCommandIconUrls = {
|
|
19
|
-
amplitude: 'https://dam-cdn.atl.orangelogic.com/AssetLink/730r6bie0211kg6obni4343y4g1wv6n5.svg',
|
|
20
|
-
figma: 'https://dam-cdn.atl.orangelogic.com/AssetLink/68t3023r7347271te7qw370k2pk37rgb.svg'
|
|
21
|
-
};
|
|
22
18
|
var whiteboardQuickInsertItemKeys = new Set(['whiteboard-extension:create-whiteboard', 'whiteboard-extension:create-diagram', 'whiteboard-extension:create-flowchart', 'whiteboard-extension:create-brainstorming', 'whiteboard-extension:create-retrospective', 'whiteboard-extension:create-roadmap']);
|
|
23
19
|
var quickInsertItemIcons = {
|
|
24
20
|
'toc:toc': _tableOfContent.default,
|
|
@@ -92,9 +88,7 @@ var createLazyExtensionIcon = function createLazyExtensionIcon(getIcon) {
|
|
|
92
88
|
var ExtensionQuickInsertIcon = exports.ExtensionQuickInsertIcon = function ExtensionQuickInsertIcon(_ref2) {
|
|
93
89
|
var getIcon = _ref2.getIcon,
|
|
94
90
|
itemKey = _ref2.itemKey,
|
|
95
|
-
itemTitle = _ref2.itemTitle,
|
|
96
91
|
label = _ref2.label;
|
|
97
|
-
var brandedIconUrl = brandedSlashCommandIconUrls[itemTitle.toLowerCase()];
|
|
98
92
|
var Icon = _react.default.useMemo(function () {
|
|
99
93
|
var quickInsertItemIcon = quickInsertItemIcons[itemKey];
|
|
100
94
|
if (quickInsertItemIcon) {
|
|
@@ -105,15 +99,6 @@ var ExtensionQuickInsertIcon = exports.ExtensionQuickInsertIcon = function Exten
|
|
|
105
99
|
}
|
|
106
100
|
return getIcon ? createLazyExtensionIcon(getIcon) : _apps.default;
|
|
107
101
|
}, [getIcon, itemKey]);
|
|
108
|
-
if (brandedIconUrl) {
|
|
109
|
-
return /*#__PURE__*/_react.default.createElement("img", {
|
|
110
|
-
alt: "",
|
|
111
|
-
"aria-hidden": "true",
|
|
112
|
-
height: 24,
|
|
113
|
-
src: brandedIconUrl,
|
|
114
|
-
width: 24
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
102
|
return /*#__PURE__*/_react.default.createElement(Icon, {
|
|
118
103
|
label: label
|
|
119
104
|
});
|
|
@@ -42,7 +42,6 @@ var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = functi
|
|
|
42
42
|
iconBefore: /*#__PURE__*/_react.default.createElement(_ExtensionQuickInsertIcon.ExtensionQuickInsertIcon, {
|
|
43
43
|
getIcon: item.icon,
|
|
44
44
|
itemKey: item.key,
|
|
45
|
-
itemTitle: item.title,
|
|
46
45
|
label: ""
|
|
47
46
|
}),
|
|
48
47
|
isDisabled: isOffline,
|
|
@@ -4,28 +4,66 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getExtensionQuickInsertPreviewImageUrls = void 0;
|
|
7
|
-
var
|
|
8
|
-
|
|
7
|
+
var googleDrivePreviewImageUrls = {
|
|
8
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
|
|
9
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
|
|
10
|
+
};
|
|
11
|
+
var previewImageUrlsByKey = {
|
|
12
|
+
'third-party-quick-insert-embeds:third-party-embed-amplitude': {
|
|
9
13
|
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
|
|
10
14
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
|
|
11
15
|
},
|
|
12
|
-
dropbox: {
|
|
16
|
+
'dropbox:item': {
|
|
13
17
|
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
|
|
14
18
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
|
|
15
19
|
},
|
|
16
|
-
figma: {
|
|
20
|
+
'third-party-quick-insert-embeds:third-party-embed-figma': {
|
|
17
21
|
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
|
|
18
22
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
|
|
19
23
|
},
|
|
20
|
-
'google
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
iframe: {
|
|
24
|
+
'third-party-quick-insert-embeds:third-party-embed-google-drive': googleDrivePreviewImageUrls,
|
|
25
|
+
'google-drive:item': googleDrivePreviewImageUrls,
|
|
26
|
+
'iframe:iframe': {
|
|
25
27
|
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
|
|
26
28
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
|
|
29
|
+
},
|
|
30
|
+
'anchor:anchor': {
|
|
31
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5f440bb8m37yig3u77s6c8200re8mto0.png',
|
|
32
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y42w6i56fk22vb3g5120d43qfwte8a78.png'
|
|
33
|
+
},
|
|
34
|
+
'cards:quick-insert': {
|
|
35
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20cikbp248b6uuagmv870057c46b546m.png',
|
|
36
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1jdjwc5fe5q64gf4f6i6i66tp361fv86.png'
|
|
37
|
+
},
|
|
38
|
+
'carousel:quick-insert': {
|
|
39
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20g273op21fx0t521ap2xg3b36125vpa.png',
|
|
40
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/d5t273i2jkax3c2223172a15kpqxww35.png'
|
|
41
|
+
},
|
|
42
|
+
'com.atlassian.linking-platform.create:linking-platform-create-confluence-page': {
|
|
43
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3n23b6b5h222r3v068bt32dvx54l5f21.png',
|
|
44
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/bo85x7j087bjb2q45rb14nx2yf18k6l7.png'
|
|
45
|
+
},
|
|
46
|
+
'com.atlassian.linking-platform.create:linking-platform-create-jira-issue': {
|
|
47
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/r8200b630kethcrda0fbs4nt7j180715.png',
|
|
48
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0n02x8u7ip23y371rkval1ggq5qk738i.png'
|
|
49
|
+
},
|
|
50
|
+
'native-tabs:native-tabs': {
|
|
51
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/hvdl25h7i4xrv1gfxc8yo04nkfk63acq.png',
|
|
52
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/n857jlk2ahk2ymsh6derrt3sy75l026j.png'
|
|
53
|
+
},
|
|
54
|
+
'smart-button:quick-insert': {
|
|
55
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/101m1324u46r06ksvg8ak64s2u0vm7l7.png',
|
|
56
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3cqw35441m20336hn04h731532i1x2pe.png'
|
|
57
|
+
},
|
|
58
|
+
'spotlight:quick-insert': {
|
|
59
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/x2qdma2vfrd7h55vp5i4x66fr42b877w.png',
|
|
60
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ngi4osf40j5e37flt8e1pqw345pc346v.png'
|
|
61
|
+
},
|
|
62
|
+
'toc:toc': {
|
|
63
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7jj541q4pq1joqf0ar53j42kr6371t1t.png',
|
|
64
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v8eyy0fvu61fb8a4b4teea4pjs7g2842.png'
|
|
27
65
|
}
|
|
28
66
|
};
|
|
29
67
|
var getExtensionQuickInsertPreviewImageUrls = exports.getExtensionQuickInsertPreviewImageUrls = function getExtensionQuickInsertPreviewImageUrls(item) {
|
|
30
|
-
return
|
|
68
|
+
return previewImageUrlsByKey[item.key];
|
|
31
69
|
};
|
|
@@ -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 = "228.1.
|
|
9
|
+
var version = exports.version = "228.1.13";
|
|
@@ -269,7 +269,7 @@ export function ReactEditorView(props) {
|
|
|
269
269
|
// @ts-expect-error
|
|
270
270
|
const sel = viewRef.current.root.getSelection();
|
|
271
271
|
if (sel) {
|
|
272
|
-
if (!
|
|
272
|
+
if (!isExperimentEnabled('fix_editor_blur_issue_exp')) {
|
|
273
273
|
sel.removeAllRanges();
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
@@ -37,7 +37,6 @@ import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-c
|
|
|
37
37
|
import { userIntentPlugin } from '@atlaskit/editor-plugins/user-intent';
|
|
38
38
|
import { widthPlugin } from '@atlaskit/editor-plugins/width';
|
|
39
39
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
40
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
41
40
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
42
41
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
43
42
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
@@ -59,11 +58,11 @@ export function createDefaultPreset(options) {
|
|
|
59
58
|
}], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, {
|
|
60
59
|
...(options === null || options === void 0 ? void 0 : options.paste),
|
|
61
60
|
isFullPage
|
|
62
|
-
}]).add(clipboardPlugin).add(focusPlugin).
|
|
61
|
+
}]).add(clipboardPlugin).add(focusPlugin).add([userPreferencesPlugin, {
|
|
63
62
|
initialUserPreferences: {
|
|
64
63
|
toolbarDockingPosition: isFullPage ? 'none' : 'top'
|
|
65
64
|
}
|
|
66
|
-
}]
|
|
65
|
+
}]).maybeAdd(interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
67
66
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
68
67
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add(userIntentPlugin).maybeAdd([toolbarPlugin, options.toolbar || {}], Boolean((_options$toolbar = options.toolbar) === null || _options$toolbar === void 0 ? void 0 : _options$toolbar.enableNewToolbarExperience)).add([primaryToolbarPlugin, {
|
|
69
68
|
contextualFormattingEnabled: isFullPage
|
|
@@ -6,7 +6,6 @@ import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
|
6
6
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
7
7
|
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
9
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
11
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -53,7 +52,7 @@ const hasCustomComponents = components => {
|
|
|
53
52
|
return true;
|
|
54
53
|
};
|
|
55
54
|
export const FullPageEditor = props => {
|
|
56
|
-
var _scrollContentContain,
|
|
55
|
+
var _scrollContentContain, _scrollContentContain2, _scrollContentContain3, _wrapperElementRef$cu;
|
|
57
56
|
// Should be always the first statement in the component
|
|
58
57
|
const firstRenderStartTimestampRef = useRef(performance.now());
|
|
59
58
|
const wrapperElementRef = useMemo(() => props.innerRef, [props.innerRef]);
|
|
@@ -77,34 +76,17 @@ export const FullPageEditor = props => {
|
|
|
77
76
|
const interactionState = state.interactionState;
|
|
78
77
|
const primaryToolbarState = getPrimaryToolbarComponents(editorAPI, state.primaryToolbarComponents);
|
|
79
78
|
const hasHadInteraction = interactionState !== 'hasNotHadInteraction';
|
|
80
|
-
let toolbarDocking = useSharedPluginStateSelector(editorAPI, 'selectionToolbar.toolbarDocking', {
|
|
81
|
-
disabled: fg('platform_editor_use_preferences_plugin')
|
|
82
|
-
});
|
|
83
|
-
if (!fg('platform_editor_use_preferences_plugin')) {
|
|
84
|
-
if (!toolbarDocking) {
|
|
85
|
-
var _editorAPI$selectionT, _editorAPI$selectionT2, _editorAPI$selectionT3;
|
|
86
|
-
// This is a workaround for the rendering issue with the selection toolbar
|
|
87
|
-
// where using useSharedPluginStateSelector or useSharedPluginState the state are not
|
|
88
|
-
// available when the editor is first loaded. and cause the toolbar to blink.
|
|
89
|
-
const defaultDocking = props.__livePage ? 'none' : 'top';
|
|
90
|
-
toolbarDocking = (_editorAPI$selectionT = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$selectionT2 = editorAPI.selectionToolbar) === null || _editorAPI$selectionT2 === void 0 ? void 0 : (_editorAPI$selectionT3 = _editorAPI$selectionT2.sharedState.currentState()) === null || _editorAPI$selectionT3 === void 0 ? void 0 : _editorAPI$selectionT3.toolbarDocking) !== null && _editorAPI$selectionT !== void 0 ? _editorAPI$selectionT : defaultDocking;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
79
|
let {
|
|
94
80
|
toolbarDockingPosition
|
|
95
|
-
} = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences'
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
// This causes the toolbar to blink creating a layout shift.
|
|
105
|
-
const defaultDockingPosition = props.__livePage ? 'none' : 'top';
|
|
106
|
-
toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : (_editorAPI$userPrefer3 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer3 === void 0 ? void 0 : _editorAPI$userPrefer3.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
|
|
107
|
-
}
|
|
81
|
+
} = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences') || {};
|
|
82
|
+
if (!toolbarDockingPosition) {
|
|
83
|
+
var _editorAPI$userPrefer, _editorAPI$userPrefer2, _editorAPI$userPrefer3;
|
|
84
|
+
// This is a workaround for the rendering issue with the selection toolbar
|
|
85
|
+
// when using useSharedPluginStateWithSelector the state is not yet
|
|
86
|
+
// available when the editor is first loaded.
|
|
87
|
+
// This causes the toolbar to blink creating a layout shift.
|
|
88
|
+
const defaultDockingPosition = props.__livePage ? 'none' : 'top';
|
|
89
|
+
toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : (_editorAPI$userPrefer3 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer3 === void 0 ? void 0 : _editorAPI$userPrefer3.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
|
|
108
90
|
}
|
|
109
91
|
let primaryToolbarComponents = props.primaryToolbarComponents;
|
|
110
92
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
@@ -117,20 +99,11 @@ export const FullPageEditor = props => {
|
|
|
117
99
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
118
100
|
exposure: true
|
|
119
101
|
})) {
|
|
120
|
-
if
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
isEditorToolbarHidden = true;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
} else {
|
|
129
|
-
if (toolbarDocking === 'none' && !forcePrimaryToolbarPinned) {
|
|
130
|
-
primaryToolbarComponents = [];
|
|
131
|
-
if (!hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
132
|
-
isEditorToolbarHidden = true;
|
|
133
|
-
}
|
|
102
|
+
// need to check if the toolbarDockingPosition is set to 'none' or 'top'
|
|
103
|
+
if (toolbarDockingPosition === 'none' && !forcePrimaryToolbarPinned) {
|
|
104
|
+
primaryToolbarComponents = [];
|
|
105
|
+
if (!hasCustomComponents(customPrimaryToolbarComponents)) {
|
|
106
|
+
isEditorToolbarHidden = true;
|
|
134
107
|
}
|
|
135
108
|
}
|
|
136
109
|
}
|
|
@@ -157,7 +130,7 @@ export const FullPageEditor = props => {
|
|
|
157
130
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(FullPageToolbarNext, {
|
|
158
131
|
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction && isExperimentEnabled('platform_editor_default_toolbar_state'),
|
|
159
132
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
160
|
-
toolbarDockingPosition:
|
|
133
|
+
toolbarDockingPosition: toolbarDockingPosition,
|
|
161
134
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
162
135
|
editorAPI: editorAPI,
|
|
163
136
|
editorView: props.editorView,
|