@atlaskit/editor-core 227.0.4 → 227.0.6
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 +21 -0
- package/dist/cjs/composable-editor/editor-internal-compiled.js +1 -1
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Chromeless-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +1 -1
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +1 -1
- package/dist/cjs/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -1
- package/dist/cjs/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +29 -0
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarPortal.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +1 -1
- package/dist/cjs/ui/WithFlash/withFlash-compiled.js +1 -1
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertMenuItem.js +3 -1
- package/dist/cjs/ui/quick-insert/executeExtensionQuickInsertItem.js +10 -5
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +2 -0
- package/dist/cjs/utils/extensions.js +1 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal-compiled.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +1 -1
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +1 -1
- package/dist/es2019/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -1
- package/dist/es2019/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +22 -0
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarPortal.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +1 -1
- package/dist/es2019/ui/WithFlash/withFlash-compiled.js +1 -1
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertMenuItem.js +3 -1
- package/dist/es2019/ui/quick-insert/executeExtensionQuickInsertItem.js +10 -5
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +2 -0
- package/dist/es2019/utils/extensions.js +1 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal-compiled.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbar-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +1 -1
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +1 -1
- package/dist/esm/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -1
- package/dist/esm/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +22 -0
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarPortal.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +1 -1
- package/dist/esm/ui/WithFlash/withFlash-compiled.js +1 -1
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertMenuItem.js +3 -1
- package/dist/esm/ui/quick-insert/executeExtensionQuickInsertItem.js +10 -5
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +2 -0
- package/dist/esm/utils/extensions.js +1 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/extensionBreakoutStyles.d.ts +8 -0
- package/dist/types/ui/quick-insert/ExtensionQuickInsertMenuItem.d.ts +3 -1
- package/dist/types/ui/quick-insert/executeExtensionQuickInsertItem.d.ts +3 -1
- package/dist/types/ui/quick-insert/getExtensionQuickInsertComponents.d.ts +3 -1
- package/package.json +6 -3
- package/afm-cc/tsconfig.json +0 -150
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 227.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6857dcfa86d94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6857dcfa86d94) -
|
|
8
|
+
Fix asynchronous database and extension insertions in the `platform_editor_slash_command`
|
|
9
|
+
treatment, both when the editor API is available and when it is unavailable.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 227.0.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`9f200fd3beece`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f200fd3beece) -
|
|
17
|
+
Cleanup experiment `platform_editor_table_fit_to_content_patch_1`. Make extension containment
|
|
18
|
+
styles permanent in editor tables and preserve renderer container styles outside tables.
|
|
19
|
+
- [`c4c27f441791e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4c27f441791e) -
|
|
20
|
+
[ux] [EDITOR-8436] preserve spacing between breakout-wrapped extensions behind FG
|
|
21
|
+
`platform_editor_lovability_resize_exts_gracefully`
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 227.0.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* editor-internal-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* editor-internal-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* BeforeWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* BeforeWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `BeforeWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* CustomToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* CustomToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FullPage-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* FullPage-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `FullPage.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MainToolbar-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* MainToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MainToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* MainToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
.cc-cgsb4r .ProseMirror{--ak-editor-max-container-width:calc(100cqw - var(--ak-editor--large-gutter-padding)*2)}
|
|
10
10
|
.cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p style:first-child+*, .cc-11zeupy .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-alignment:first-of-type:first-child p:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child .heading-wrapper:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h1:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h2:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h3:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h4:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h5:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6 style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child h6:first-child:not(style), .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p style:first-child+*, .cc-11zeupy .fabric-editor-font-size:first-of-type:first-child p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>.heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) .heading-wrapper:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size) p:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h1 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h1:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h2 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h2:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h3 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h3:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h4 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h4:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h5 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h5:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>h6 style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>h6:first-child:not(style), .cc-11zeupy :not(.fabric-editor-block-mark)>p style:first-child+*, .cc-11zeupy :not(.fabric-editor-block-mark)>p:first-child:not(style){margin-top:0}
|
|
11
11
|
.cc-mc43mp .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror>style:first-child+p{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror blockquote:first-child{margin-top:0}.cc-mc43mp .ProseMirror .code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.code-block{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror li>.ProseMirror-gapcursor:first-child+.code-block, .cc-mc43mp .ProseMirror li>.code-block:first-child{margin-top:0}.cc-mc43mp .ProseMirror li>div:last-of-type.code-block, .cc-mc43mp .ProseMirror li>pre:last-of-type.code-block{margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .blockCardView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror .extensionView-content-wrap, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:first-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:first-of-type{margin-top:0}.cc-mc43mp .ProseMirror .bodiedExtensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .extensionView-content-wrap:last-of-type, .cc-mc43mp .ProseMirror .multiBodiedExtensionView-content-wrap:last-of-type{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:var(--ak-editor-extension-block-spacing,.75rem);margin-bottom:var(--ak-editor-extension-block-spacing,.75rem)}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:first-child>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-top:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>.extensionView-content-wrap{margin-bottom:0}.cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.bodiedExtensionView-content-wrap, .cc-mc43mp .ProseMirror [data-mark-type=fragment]:nth-last-of-type(-n+2):not(:first-of-type)>[data-mark-type=dataConsumer]>.extensionView-content-wrap{margin-bottom:0}
|
|
12
|
+
.cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedExtension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=extension]), .cc-104fmpo .fabric-editor-breakout-mark:has([data-prosemirror-node-name=multiBodiedExtension]){margin-top:.75rem;margin-right:0;margin-bottom:.75rem;margin-left:0}
|
|
12
13
|
.cc-1syzwzx .ProseMirror p{margin-top:var(--ak-editor-extension-block-spacing,.75em)}
|
|
13
14
|
.cc-1w88a35 .ProseMirror blockquote.danger{background-color:var(--ds-background-danger,#ffeceb);border-left-color:var(--ds-border-danger,#e2483d)}
|
|
14
15
|
.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node{background:var(--ds-background-accent-blue-subtler,#cfe1fd);border-left-color:var(--ds-border-selected,#1868db);-webkit-user-select:text}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::selection{background-color:transparent}.cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node ::-moz-selection, .cc-pt15wg .ProseMirror blockquote.ak-editor-selected-node::-moz-selection{background-color:transparent}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* EditorContentContainer-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* EditorContentContainer-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -175,6 +175,7 @@ var editorContentStyles = {
|
|
|
175
175
|
baseStylesMaxContainerWidthFixes: "cc-cgsb4r",
|
|
176
176
|
blockMarksStyles: "cc-11zeupy",
|
|
177
177
|
blockSpacingVarStyles: "cc-mc43mp",
|
|
178
|
+
extensionWithBreakoutStyles: "cc-104fmpo",
|
|
178
179
|
blockSpacingVarScaledStyles: "cc-1syzwzx",
|
|
179
180
|
blockquoteDangerStyles: "cc-1w88a35",
|
|
180
181
|
blockquoteSelectedNodeStyles: "cc-pt15wg",
|
|
@@ -422,7 +423,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
422
423
|
}) && editorContentStyles.listSelectedNodeStyles, (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
|
|
423
424
|
exposure: true
|
|
424
425
|
}) && 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, 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 */
|
|
425
|
-
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, contentMode === 'compact' && editorContentStyles.extensionStylesDense, (0, _expValEquals.expValEquals)('platform_editor_bodiedextension_layoutshift_fix', 'isEnabled', true) && 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, (0, _fg.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? 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, 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, _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, !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) && (0, _fg.fg)('platform_comment_container_query') && 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, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, 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, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_fit_to_content_patch_1') && editorContentStyles.tableContentModeExtensionContainmentStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && 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]),
|
|
426
|
+
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, (0, _expValEquals.expValEquals)('platform_editor_bodiedextension_layoutshift_fix', 'isEnabled', true) && 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, (0, _fg.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? 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, 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, _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, !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) && (0, _fg.fg)('platform_comment_container_query') && 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, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, 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, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && 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]),
|
|
426
427
|
ref: ref,
|
|
427
428
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
428
429
|
"data-testid": "editor-content-container"
|
|
@@ -37,6 +37,7 @@ var _embedCardStyles = require("./styles/embedCardStyles");
|
|
|
37
37
|
var _emoji = require("./styles/emoji");
|
|
38
38
|
var _expandStyles = require("./styles/expandStyles");
|
|
39
39
|
var _extensionStyles = require("./styles/extensionStyles");
|
|
40
|
+
var _extensionBreakoutStyles = require("./styles/extensionBreakoutStyles");
|
|
40
41
|
var _findReplaceStyles = require("./styles/findReplaceStyles");
|
|
41
42
|
var _firstBlockNodeStyles = require("./styles/firstBlockNodeStyles");
|
|
42
43
|
var _floatingToolbarStyles = require("./styles/floatingToolbarStyles");
|
|
@@ -310,6 +311,8 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
310
311
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
311
312
|
(0, _extensionStyles.getExtensionStyles)(contentMode),
|
|
312
313
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
314
|
+
(0, _fg.fg)('platform_editor_lovability_resize_exts_gracefully') && _extensionBreakoutStyles.extensionWithBreakoutStyles,
|
|
315
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
313
316
|
_extensionStyles.extensionDiffStyles,
|
|
314
317
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
315
318
|
_expandStyles.expandStylesBase,
|
|
@@ -545,7 +548,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
545
548
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
546
549
|
(0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) &&
|
|
547
550
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
548
|
-
_tableStyles.tableContentModeStyles,
|
|
551
|
+
_tableStyles.tableContentModeStyles,
|
|
549
552
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
550
553
|
_tableStyles.tableContentModeExtensionContainmentStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) &&
|
|
551
554
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.extensionWithBreakoutStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
9
|
+
@repo/internal/deprecations/deprecation-ticket-required,
|
|
10
|
+
@atlaskit/ui-styling-standard/no-exported-styles */
|
|
11
|
+
|
|
12
|
+
// copied from packages/editor/editor-shared-styles/src/consts/consts.ts
|
|
13
|
+
var blockNodesVerticalMargin = '0.75rem';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
17
|
+
* If you need to make changes here, also update the corresponding style in
|
|
18
|
+
* packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
19
|
+
* See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
|
|
20
|
+
*/
|
|
21
|
+
var extensionWithBreakoutStyles = exports.extensionWithBreakoutStyles = (0, _react.css)({
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
23
|
+
'.fabric-editor-breakout-mark': {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
25
|
+
'&:has([data-prosemirror-node-name="extension"]), &:has([data-prosemirror-node-name="bodiedExtension"]), &:has([data-prosemirror-node-name="multiBodiedExtension"])': {
|
|
26
|
+
margin: "".concat(blockNodesVerticalMargin, " 0")
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarComponentsWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* ToolbarComponentsWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `ToolbarInner.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarSizeDetectorWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* ToolbarSizeDetectorWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `ToolbarWithSizeDetector.tsx`.
|
|
@@ -14,6 +14,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
14
14
|
var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(_ref) {
|
|
15
15
|
var apiRef = _ref.apiRef,
|
|
16
16
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
17
|
+
editorActions = _ref.editorActions,
|
|
17
18
|
item = _ref.item,
|
|
18
19
|
onInsert = _ref.onInsert;
|
|
19
20
|
var _useQuickInsertContex = (0, _useQuickInsertContext.useQuickInsertContext)(),
|
|
@@ -25,6 +26,7 @@ var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = functi
|
|
|
25
26
|
var result = (0, _executeExtensionQuickInsertItem.executeExtensionQuickInsertItem)({
|
|
26
27
|
apiRef: apiRef,
|
|
27
28
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
29
|
+
editorActions: editorActions,
|
|
28
30
|
insert: insert,
|
|
29
31
|
item: item,
|
|
30
32
|
source: source,
|
|
@@ -34,7 +36,7 @@ var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = functi
|
|
|
34
36
|
onInsert === null || onInsert === void 0 || onInsert();
|
|
35
37
|
}
|
|
36
38
|
return result;
|
|
37
|
-
}, [apiRef, createAnalyticsEvent, editorView.state, item, onInsert]);
|
|
39
|
+
}, [apiRef, createAnalyticsEvent, editorActions, editorView.state, item, onInsert]);
|
|
38
40
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
39
41
|
iconBefore: /*#__PURE__*/_react.default.createElement(_ExtensionQuickInsertIcon.ExtensionQuickInsertIcon, {
|
|
40
42
|
getIcon: item.icon,
|
|
@@ -8,10 +8,10 @@ exports.executeExtensionQuickInsertItem = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
10
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
11
|
-
var _insert = require("@atlaskit/editor-common/insert");
|
|
12
11
|
var _monitoring = require("@atlaskit/editor-common/monitoring");
|
|
13
12
|
var _processRawValue = require("@atlaskit/editor-common/process-raw-value");
|
|
14
13
|
var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
|
|
14
|
+
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
var sendAnalytics = function sendAnalytics(item, selection, createAnalyticsEvent, source) {
|
|
@@ -69,6 +69,7 @@ var dummyExtensionAPI = {
|
|
|
69
69
|
var executeExtensionQuickInsertItem = exports.executeExtensionQuickInsertItem = function executeExtensionQuickInsertItem(_ref) {
|
|
70
70
|
var apiRef = _ref.apiRef,
|
|
71
71
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
72
|
+
editorActions = _ref.editorActions,
|
|
72
73
|
insert = _ref.insert,
|
|
73
74
|
item = _ref.item,
|
|
74
75
|
source = _ref.source,
|
|
@@ -78,12 +79,16 @@ var executeExtensionQuickInsertItem = exports.executeExtensionQuickInsertItem =
|
|
|
78
79
|
var extensionAPI = (_apiRef$current$exten = (_apiRef$current = apiRef.current) === null || _apiRef$current === void 0 || (_apiRef$current = _apiRef$current.extension) === null || _apiRef$current === void 0 || (_apiRef$current = _apiRef$current.actions) === null || _apiRef$current === void 0 ? void 0 : _apiRef$current.api()) !== null && _apiRef$current$exten !== void 0 ? _apiRef$current$exten : dummyExtensionAPI;
|
|
79
80
|
void (0, _extensions.resolveImport)(item.node(extensionAPI)).then(function (node) {
|
|
80
81
|
sendAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
81
|
-
if (node
|
|
82
|
-
apiRef.current
|
|
83
|
-
|
|
82
|
+
if (node) {
|
|
83
|
+
var api = apiRef.current;
|
|
84
|
+
if (!api) {
|
|
85
|
+
editorActions.replaceSelection(node);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
api.core.actions.execute(function (_ref2) {
|
|
84
89
|
var tr = _ref2.tr;
|
|
85
90
|
var content = (0, _processRawValue.processRawValue)(tr.doc.type.schema, node);
|
|
86
|
-
return content ? (
|
|
91
|
+
return content ? (0, _utils.safeInsert)(content)(tr).scrollIntoView() : null;
|
|
87
92
|
});
|
|
88
93
|
}
|
|
89
94
|
}).catch(function (error) {
|
|
@@ -67,6 +67,7 @@ var getFallbackRank = function getFallbackRank(_ref) {
|
|
|
67
67
|
var getExtensionQuickInsertComponents = exports.getExtensionQuickInsertComponents = function getExtensionQuickInsertComponents(_ref3) {
|
|
68
68
|
var apiRef = _ref3.apiRef,
|
|
69
69
|
createAnalyticsEvent = _ref3.createAnalyticsEvent,
|
|
70
|
+
editorActions = _ref3.editorActions,
|
|
70
71
|
items = _ref3.items;
|
|
71
72
|
var unrecognizedStructureItemRanks = getUnrecognizedStructureItemRanks(items);
|
|
72
73
|
var unrecognizedDataAndChartsItemRanks = getUnrecognizedDataAndChartsItemRanks(items);
|
|
@@ -99,6 +100,7 @@ var getExtensionQuickInsertComponents = exports.getExtensionQuickInsertComponent
|
|
|
99
100
|
return /*#__PURE__*/_react.default.createElement(_ExtensionQuickInsertMenuItem.ExtensionQuickInsertMenuItem, {
|
|
100
101
|
apiRef: apiRef,
|
|
101
102
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
103
|
+
editorActions: editorActions,
|
|
102
104
|
item: item,
|
|
103
105
|
onInsert: props.onInsert
|
|
104
106
|
});
|
|
@@ -107,6 +107,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
107
107
|
return Promise.resolve((0, _getExtensionQuickInsertComponents.getExtensionQuickInsertComponents)({
|
|
108
108
|
apiRef: apiRef,
|
|
109
109
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
110
|
+
editorActions: editorActions,
|
|
110
111
|
items: getMenuItems()
|
|
111
112
|
}));
|
|
112
113
|
},
|
|
@@ -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 = "227.0.
|
|
9
|
+
var version = exports.version = "227.0.5";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* editor-internal-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* editor-internal-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* clickAreaBlock-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* clickAreaBlock-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./clickAreaBlock-compiled.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Comment-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* Comment-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Comment.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* StickyToolbar-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* StickyToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* BeforeWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* BeforeWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `BeforeWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* CustomToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* CustomToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FullPage-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* FullPage-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `FullPage.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FullPageContentArea-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* FullPageContentArea-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./FullPageContentArea-compiled.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FullPageToolbarNext.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./FullPageToolbarNext.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useMemo } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MainToolbar-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* MainToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MainToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* MainToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ChromeCollapsed-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* ChromeCollapsed-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ChromeCollapsed-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|