@atlaskit/editor-core 227.0.5 → 227.0.7
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 +34 -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 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +31 -35
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +40 -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 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +31 -35
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +40 -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 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +31 -35
- package/dist/esm/ui/EditorContentContainer/styles/list.js +40 -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/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 +4 -4
|
@@ -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
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./EditorContentContainer-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -422,7 +422,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
|
|
|
422
422
|
}) && editorContentStyles.listSelectedNodeStyles, editorExperiment('platform_editor_block_menu', true, {
|
|
423
423
|
exposure: true
|
|
424
424
|
}) && editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, expValEquals('platform_editor_a11y_scrollable_region', 'isEnabled', true) && editorContentStyles.codeMarkStylesA11yFix, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, expValEqualsNoExposure('platform_editor_flexible_list_schema', 'isEnabled', true) && editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, editorContentStyles.smartCardDiffStyles, expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? editorContentStyles.showDiffDeletedNodeStylesNew : editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaCaptionStyles, contentMode === 'compact' && editorContentStyles.mediaCaptionStyles, editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
425
|
-
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, 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, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, editorContentStyles.annotationStyles, editorExperiment('platform_editor_block_menu', true) ? editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles : editorContentStyles.smartCardStylesWithSearchMatch, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, 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, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesPanelAndRule, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && (editorExperiment('advanced_layouts', true) || 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' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && 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, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
425
|
+
editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, editorContentStyles.annotationStyles, editorExperiment('platform_editor_block_menu', true) ? editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles : editorContentStyles.smartCardStylesWithSearchMatch, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, 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, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesPanelAndRule, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && (editorExperiment('advanced_layouts', true) || 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' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && 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, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) ? editorContentStyles.tableLayoutFixesWithFontSize : editorContentStyles.tableLayoutFixes, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.blockquoteDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.textDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.listDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerDateStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.emojiDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mentionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.decisionDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.statusDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.dangerRuleStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.mediaDangerStyles, editorExperiment('platform_editor_block_menu', true) && editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
|
|
426
426
|
ref: ref,
|
|
427
427
|
"data-editor-scroll-container": isScrollable ? 'true' : undefined,
|
|
428
428
|
"data-testid": "editor-content-container"
|
|
@@ -3,7 +3,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
@repo/internal/deprecations/deprecation-ticket-required,
|
|
4
4
|
@atlaskit/ui-styling-standard/no-exported-styles */
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { blanketSelectionStyles, boxShadowSelectionStyles, hideNativeBrowserTextSelectionStyles } from './selectionStyles';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -326,6 +325,36 @@ export var getExtensionStyles = function getExtensionStyles(contentMode) {
|
|
|
326
325
|
maxWidth: '100%' // ensure width can't go over 100%
|
|
327
326
|
},
|
|
328
327
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
328
|
+
'.bodiedExtensionView-content-wrap': {
|
|
329
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
330
|
+
'.bodiedExtension-content-outer-wrapper': {
|
|
331
|
+
margin: '23px -1px -1px -1px' // Reserve space for lozenge (24px) then subtract 1px to account for the border of the inner wrapper preventing layoutshift
|
|
332
|
+
},
|
|
333
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
334
|
+
'.bodiedExtension-content-inner-wrapper': {
|
|
335
|
+
margin: "0 ".concat("var(--ds-space-negative-250, -20px)"),
|
|
336
|
+
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-250, 20px)"),
|
|
337
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
338
|
+
borderRadius: "var(--ds-radius-small, 3px)"
|
|
339
|
+
},
|
|
340
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
341
|
+
'.extension-container': {
|
|
342
|
+
// Remove styling when Prosemirror moves content inside
|
|
343
|
+
|
|
344
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
345
|
+
'.bodiedExtension-content-outer-wrapper': {
|
|
346
|
+
margin: '0'
|
|
347
|
+
},
|
|
348
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
349
|
+
'.bodiedExtension-content-inner-wrapper': {
|
|
350
|
+
margin: 0,
|
|
351
|
+
padding: 0,
|
|
352
|
+
border: 'none',
|
|
353
|
+
borderRadius: 0
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
329
358
|
"[data-mark-type='fragment']": {
|
|
330
359
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
331
360
|
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
@@ -385,41 +414,8 @@ export var getExtensionStyles = function getExtensionStyles(contentMode) {
|
|
|
385
414
|
fontSize: 'var(--ak-editor-base-font-size)'
|
|
386
415
|
}
|
|
387
416
|
}) : css({});
|
|
388
|
-
var bodiedExtensionLayoutShiftFixStyles = expValEquals('platform_editor_bodiedextension_layoutshift_fix', 'isEnabled', true) ? css({
|
|
389
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
390
|
-
'.bodiedExtensionView-content-wrap': {
|
|
391
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
392
|
-
'.bodiedExtension-content-outer-wrapper': {
|
|
393
|
-
margin: '23px -1px -1px -1px' // Reserve space for lozenge (24px) then subtract 1px to account for the border of the inner wrapper preventing layoutshift
|
|
394
|
-
},
|
|
395
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
396
|
-
'.bodiedExtension-content-inner-wrapper': {
|
|
397
|
-
margin: "0 ".concat("var(--ds-space-negative-250, -20px)"),
|
|
398
|
-
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-250, 20px)"),
|
|
399
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
400
|
-
borderRadius: "var(--ds-radius-small, 3px)"
|
|
401
|
-
},
|
|
402
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
403
|
-
'.extension-container': {
|
|
404
|
-
// Remove styling when Prosemirror moves content inside
|
|
405
|
-
|
|
406
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
407
|
-
'.bodiedExtension-content-outer-wrapper': {
|
|
408
|
-
margin: '0'
|
|
409
|
-
},
|
|
410
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
411
|
-
'.bodiedExtension-content-inner-wrapper': {
|
|
412
|
-
margin: 0,
|
|
413
|
-
padding: 0,
|
|
414
|
-
border: 'none',
|
|
415
|
-
borderRadius: 0
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}) : css({});
|
|
420
|
-
|
|
421
417
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
422
|
-
return css(baseExtensionStyles, denseExtensionStyles
|
|
418
|
+
return css(baseExtensionStyles, denseExtensionStyles);
|
|
423
419
|
};
|
|
424
420
|
/**
|
|
425
421
|
* @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
|
|
@@ -118,6 +118,46 @@ export var listsStyles = css({
|
|
|
118
118
|
"ul[data-indent-level='3'], ul[data-indent-level='6']": {
|
|
119
119
|
listStyleType: 'square'
|
|
120
120
|
},
|
|
121
|
+
/* ======== PREDICTABLE LISTS WITHOUT DECORATIONS ======== */
|
|
122
|
+
|
|
123
|
+
/*
|
|
124
|
+
* Equivalent of the `data-indent-level` rules above, expressed purely in CSS so the list
|
|
125
|
+
* plugin does not have to emit an indentation decoration for every list on every keystroke.
|
|
126
|
+
*
|
|
127
|
+
* `:is(ul, ol)` is what makes this work: a plain `ul ul` chain only counts ancestors of the
|
|
128
|
+
* same type, so a numbered list nested under a bullet list resolved to `decimal` instead of
|
|
129
|
+
* `lower-alpha`. Matching either list type counts every list ancestor, which is exactly what
|
|
130
|
+
* `data-indent-level` counted. Each extra `:is(ul, ol)` adds one to the selector's element
|
|
131
|
+
* count, so the deepest matching rule always wins.
|
|
132
|
+
*
|
|
133
|
+
* `:not([data-indent-level])` keeps these rules inert while the decoration is still being
|
|
134
|
+
* emitted, so they only take effect for the cohort that has it removed.
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
138
|
+
'& ul:not([data-indent-level]), & :is(ul, ol) :is(ul, ol) :is(ul, ol) ul:not([data-indent-level])': {
|
|
139
|
+
listStyleType: 'disc'
|
|
140
|
+
},
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
142
|
+
'& :is(ul, ol) ul:not([data-indent-level]), & :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ul:not([data-indent-level])': {
|
|
143
|
+
listStyleType: 'circle'
|
|
144
|
+
},
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
146
|
+
'& :is(ul, ol) :is(ul, ol) ul:not([data-indent-level]), & :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ul:not([data-indent-level])': {
|
|
147
|
+
listStyleType: 'square'
|
|
148
|
+
},
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
150
|
+
'& ol:not([data-indent-level]), & :is(ul, ol) :is(ul, ol) :is(ul, ol) ol:not([data-indent-level])': {
|
|
151
|
+
listStyleType: 'decimal'
|
|
152
|
+
},
|
|
153
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
154
|
+
'& :is(ul, ol) ol:not([data-indent-level]), & :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ol:not([data-indent-level])': {
|
|
155
|
+
listStyleType: 'lower-alpha'
|
|
156
|
+
},
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
158
|
+
'& :is(ul, ol) :is(ul, ol) ol:not([data-indent-level]), & :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ol:not([data-indent-level])': {
|
|
159
|
+
listStyleType: 'lower-roman'
|
|
160
|
+
},
|
|
121
161
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
122
162
|
li: {
|
|
123
163
|
position: 'relative',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PluginSlot-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* PluginSlot-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children"];
|
|
@@ -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`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* withFlash-compiled.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -6,6 +6,7 @@ import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
|
|
|
6
6
|
export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(_ref) {
|
|
7
7
|
var apiRef = _ref.apiRef,
|
|
8
8
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
9
|
+
editorActions = _ref.editorActions,
|
|
9
10
|
item = _ref.item,
|
|
10
11
|
onInsert = _ref.onInsert;
|
|
11
12
|
var _useQuickInsertContex = useQuickInsertContext(),
|
|
@@ -17,6 +18,7 @@ export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(
|
|
|
17
18
|
var result = executeExtensionQuickInsertItem({
|
|
18
19
|
apiRef: apiRef,
|
|
19
20
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
21
|
+
editorActions: editorActions,
|
|
20
22
|
insert: insert,
|
|
21
23
|
item: item,
|
|
22
24
|
source: source,
|
|
@@ -26,7 +28,7 @@ export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(
|
|
|
26
28
|
onInsert === null || onInsert === void 0 || onInsert();
|
|
27
29
|
}
|
|
28
30
|
return result;
|
|
29
|
-
}, [apiRef, createAnalyticsEvent, editorView.state, item, onInsert]);
|
|
31
|
+
}, [apiRef, createAnalyticsEvent, editorActions, editorView.state, item, onInsert]);
|
|
30
32
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
31
33
|
iconBefore: /*#__PURE__*/React.createElement(ExtensionQuickInsertIcon, {
|
|
32
34
|
getIcon: item.icon,
|
|
@@ -3,10 +3,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { resolveImport } from '@atlaskit/editor-common/extensions';
|
|
6
|
-
import { safeInsert } from '@atlaskit/editor-common/insert';
|
|
7
6
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
8
7
|
import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
9
8
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
9
|
+
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
var sendAnalytics = function sendAnalytics(item, selection, createAnalyticsEvent, source) {
|
|
11
11
|
if (createAnalyticsEvent) {
|
|
12
12
|
var insertLocation = findInsertLocation(selection);
|
|
@@ -62,6 +62,7 @@ var dummyExtensionAPI = {
|
|
|
62
62
|
export var executeExtensionQuickInsertItem = function executeExtensionQuickInsertItem(_ref) {
|
|
63
63
|
var apiRef = _ref.apiRef,
|
|
64
64
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
65
|
+
editorActions = _ref.editorActions,
|
|
65
66
|
insert = _ref.insert,
|
|
66
67
|
item = _ref.item,
|
|
67
68
|
source = _ref.source,
|
|
@@ -71,12 +72,16 @@ export var executeExtensionQuickInsertItem = function executeExtensionQuickInser
|
|
|
71
72
|
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;
|
|
72
73
|
void resolveImport(item.node(extensionAPI)).then(function (node) {
|
|
73
74
|
sendAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
74
|
-
if (node
|
|
75
|
-
apiRef.current
|
|
76
|
-
|
|
75
|
+
if (node) {
|
|
76
|
+
var api = apiRef.current;
|
|
77
|
+
if (!api) {
|
|
78
|
+
editorActions.replaceSelection(node);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
api.core.actions.execute(function (_ref2) {
|
|
77
82
|
var tr = _ref2.tr;
|
|
78
83
|
var content = processRawValue(tr.doc.type.schema, node);
|
|
79
|
-
return content ?
|
|
84
|
+
return content ? safeInsert(content)(tr).scrollIntoView() : null;
|
|
80
85
|
});
|
|
81
86
|
}
|
|
82
87
|
}).catch(function (error) {
|
|
@@ -60,6 +60,7 @@ var getFallbackRank = function getFallbackRank(_ref) {
|
|
|
60
60
|
export var getExtensionQuickInsertComponents = function getExtensionQuickInsertComponents(_ref3) {
|
|
61
61
|
var apiRef = _ref3.apiRef,
|
|
62
62
|
createAnalyticsEvent = _ref3.createAnalyticsEvent,
|
|
63
|
+
editorActions = _ref3.editorActions,
|
|
63
64
|
items = _ref3.items;
|
|
64
65
|
var unrecognizedStructureItemRanks = getUnrecognizedStructureItemRanks(items);
|
|
65
66
|
var unrecognizedDataAndChartsItemRanks = getUnrecognizedDataAndChartsItemRanks(items);
|
|
@@ -92,6 +93,7 @@ export var getExtensionQuickInsertComponents = function getExtensionQuickInsertC
|
|
|
92
93
|
return /*#__PURE__*/React.createElement(ExtensionQuickInsertMenuItem, {
|
|
93
94
|
apiRef: apiRef,
|
|
94
95
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
96
|
+
editorActions: editorActions,
|
|
95
97
|
item: item,
|
|
96
98
|
onInsert: props.onInsert
|
|
97
99
|
});
|
|
@@ -101,6 +101,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
101
101
|
return Promise.resolve(getExtensionQuickInsertComponents({
|
|
102
102
|
apiRef: apiRef,
|
|
103
103
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
104
|
+
editorActions: editorActions,
|
|
104
105
|
items: getMenuItems()
|
|
105
106
|
}));
|
|
106
107
|
},
|
|
@@ -3,9 +3,11 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
|
3
3
|
import type { MenuItem } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin } from '@atlaskit/editor-plugins/extension';
|
|
6
|
-
|
|
6
|
+
import type EditorActions from '../../actions';
|
|
7
|
+
export declare const ExtensionQuickInsertMenuItem: ({ apiRef, createAnalyticsEvent, editorActions, item, onInsert, }: {
|
|
7
8
|
apiRef: React.MutableRefObject<PublicPluginAPI<[ExtensionPlugin]> | undefined>;
|
|
8
9
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
10
|
+
editorActions: EditorActions;
|
|
9
11
|
item: MenuItem;
|
|
10
12
|
onInsert?: () => void;
|
|
11
13
|
}) => React.JSX.Element;
|
|
@@ -6,9 +6,11 @@ import type { MenuItem } from '@atlaskit/editor-common/extensions';
|
|
|
6
6
|
import type { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import type { ExtensionPlugin } from '@atlaskit/editor-plugins/extension';
|
|
9
|
-
|
|
9
|
+
import type EditorActions from '../../actions';
|
|
10
|
+
export declare const executeExtensionQuickInsertItem: ({ apiRef, createAnalyticsEvent, editorActions, insert, item, source, state, }: {
|
|
10
11
|
apiRef: React.MutableRefObject<PublicPluginAPI<[ExtensionPlugin]> | undefined>;
|
|
11
12
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
13
|
+
editorActions: EditorActions;
|
|
12
14
|
insert: QuickInsertActionInsert;
|
|
13
15
|
item: MenuItem;
|
|
14
16
|
source?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER;
|
|
@@ -4,12 +4,14 @@ import type { MenuItem } from '@atlaskit/editor-common/extensions';
|
|
|
4
4
|
import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin } from '@atlaskit/editor-plugins/extension';
|
|
6
6
|
import type { CommonComponentProps, RegisterMenuItem } from '@atlaskit/editor-ui-control-model/types';
|
|
7
|
+
import type EditorActions from '../../actions';
|
|
7
8
|
type ExtensionQuickInsertComponentProps = CommonComponentProps & {
|
|
8
9
|
onInsert?: () => void;
|
|
9
10
|
};
|
|
10
|
-
export declare const getExtensionQuickInsertComponents: ({ apiRef, createAnalyticsEvent, items, }: {
|
|
11
|
+
export declare const getExtensionQuickInsertComponents: ({ apiRef, createAnalyticsEvent, editorActions, items, }: {
|
|
11
12
|
apiRef: React.MutableRefObject<PublicPluginAPI<[ExtensionPlugin]> | undefined>;
|
|
12
13
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
14
|
+
editorActions: EditorActions;
|
|
13
15
|
items: MenuItem[];
|
|
14
16
|
}) => RegisterMenuItem<ExtensionQuickInsertComponentProps>[];
|
|
15
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "227.0.
|
|
3
|
+
"version": "227.0.7",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
74
74
|
"@atlaskit/react-ufo": "^7.8.0",
|
|
75
75
|
"@atlaskit/task-decision": "^21.9.0",
|
|
76
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
76
|
+
"@atlaskit/tmp-editor-statsig": "^185.0.0",
|
|
77
77
|
"@atlaskit/tokens": "^16.11.0",
|
|
78
78
|
"@atlaskit/tooltip": "^24.3.0",
|
|
79
79
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"uuid": "^11.1.1"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@atlaskit/editor-common": "^121.
|
|
94
|
+
"@atlaskit/editor-common": "^121.3.0",
|
|
95
95
|
"@atlaskit/link-provider": "^5.6.0",
|
|
96
96
|
"@atlaskit/media-core": "^38.2.0",
|
|
97
97
|
"react": "^18.2.0",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"@atlassian/editor-rovo-bridge": "^15.1.0",
|
|
169
169
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
170
170
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
171
|
-
"@atlassian/search-client": "^2.
|
|
171
|
+
"@atlassian/search-client": "^2.27.0",
|
|
172
172
|
"@atlassian/search-provider": "^18.0.0",
|
|
173
173
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
174
174
|
"@atlassian/testing-library": "^0.11.0",
|