@atlaskit/editor-core 207.0.5 → 207.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 +17 -0
- package/dist/cjs/composable-editor/core-editor.js +9 -2
- package/dist/cjs/create-editor/ReactEditorView.js +3 -2
- package/dist/cjs/ui/Appearance/Chromeless.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/cjs/ui/ContentStyles/layout.js +1 -1
- package/dist/cjs/ui/{EditorContentContainer.js → EditorContentContainer/EditorContentContainer.js} +10 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +9 -2
- package/dist/es2019/create-editor/ReactEditorView.js +3 -2
- package/dist/es2019/ui/Appearance/Chromeless.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/es2019/ui/ContentStyles/layout.js +1 -2
- package/dist/es2019/ui/{EditorContentContainer.js → EditorContentContainer/EditorContentContainer.js} +59 -12
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +9 -2
- package/dist/esm/create-editor/ReactEditorView.js +3 -2
- package/dist/esm/ui/Appearance/Chromeless.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/esm/ui/ContentStyles/layout.js +1 -1
- package/dist/esm/ui/{EditorContentContainer.js → EditorContentContainer/EditorContentContainer.js} +10 -10
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/core-editor.d.ts +5 -0
- package/dist/types/create-editor/create-universal-preset.d.ts +23 -3
- package/dist/types/presets/universal.d.ts +23 -3
- package/dist/types/presets/useUniversalPreset.d.ts +23 -3
- package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/core-editor.d.ts +5 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +24 -3
- package/dist/types-ts4.5/presets/universal.d.ts +24 -3
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +24 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/package.json +12 -19
- package/dist/cjs/composable-editor/core-performance-metrics.js +0 -109
- package/dist/es2019/composable-editor/core-performance-metrics.js +0 -92
- package/dist/esm/composable-editor/core-performance-metrics.js +0 -101
- package/dist/types/composable-editor/core-performance-metrics.d.ts +0 -4
- package/dist/types-ts4.5/composable-editor/core-performance-metrics.d.ts +0 -4
- /package/dist/types/ui/{EditorContentContainer.d.ts → EditorContentContainer/EditorContentContainer.d.ts} +0 -0
- /package/dist/types-ts4.5/ui/{EditorContentContainer.d.ts → EditorContentContainer/EditorContentContainer.d.ts} +0 -0
|
@@ -21,7 +21,7 @@ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
|
|
|
21
21
|
import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
|
|
22
22
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
23
23
|
import { ContextPanel } from '../../ContextPanel';
|
|
24
|
-
import EditorContentContainer from '../../EditorContentContainer';
|
|
24
|
+
import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
|
|
25
25
|
import PluginSlot from '../../PluginSlot';
|
|
26
26
|
import { contentArea, contentAreaHeightNoToolbar, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, sidebarArea } from './StyledComponents';
|
|
27
27
|
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
@@ -67,7 +67,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
67
67
|
};
|
|
68
68
|
}, []);
|
|
69
69
|
var interactionClassName;
|
|
70
|
-
if (props.hasHadInteraction
|
|
70
|
+
if (props.hasHadInteraction && fg('platform_editor_no_selection_until_interaction')) {
|
|
71
71
|
interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
|
|
72
72
|
}
|
|
73
73
|
return jsx("div", {
|
|
@@ -71,5 +71,5 @@ var layoutResponsiveStyles = function layoutResponsiveStyles(viewMode) {
|
|
|
71
71
|
|
|
72
72
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
73
73
|
export var layoutStyles = function layoutStyles(viewMode) {
|
|
74
|
-
return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t\t[data-layout-section] {\n\t\t\t/* Ignored via go/ees007\n\t\t\tTODO: Migrate away from gridSize\n\t\t\tRecommendation: Replace directly with 7px */\n\t\t\tmargin: ", " -", "px
|
|
74
|
+
return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t\t[data-layout-section] {\n\t\t\t/* Ignored via go/ees007\n\t\t\tTODO: Migrate away from gridSize\n\t\t\tRecommendation: Replace directly with 7px */\n\t\t\tmargin: ", " -", "px 0;\n\t\t\ttransition: border-color 0.3s ", ";\n\t\t\tcursor: ", ";\n\n\t\t\t/* Inner cursor located 26px from left */\n\t\t\t[data-layout-column] {\n\t\t\t\tflex: 1;\n\t\t\t\tposition: relative;\n\n\t\t\t\tmin-width: 0;\n\t\t\t\t/* disable 4 borders when in view mode and advanced layouts is on */\n\t\t\t\tborder: ", "px\n\t\t\t\t\tsolid ", ";\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tpadding: ", "px\n\t\t\t\t\t", "px;\n\t\t\t\tbox-sizing: border-box;\n\n\t\t\t\t> div {\n\t\t\t\t\t", "\n\n\t\t\t\t\t> .embedCardView-content-wrap:first-of-type .rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t> .mediaSingleView-content-wrap:first-of-type .rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t> .ProseMirror-gapcursor.-right:first-child\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item,\n\t\t\t\t\t> style:first-child\n\t\t\t\t\t\t+ .ProseMirror-gapcursor.-right\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item,\n\t\t\t\t\t> .ProseMirror-gapcursor.-right:first-of-type\n\t\t\t\t\t\t+ .embedCardView-content-wrap\n\t\t\t\t\t\t.rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t> .ProseMirror-gapcursor:first-child\n\t\t\t\t\t\t+ span\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item,\n\t\t\t\t\t> style:first-child\n\t\t\t\t\t\t+ .ProseMirror-gapcursor\n\t\t\t\t\t\t+ span\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down\n and shrinking layout's node selectable area (leniency margin) */\n\t\t\t\t\t> [data-node-type='decisionList'] {\n\t\t\t\t\t\tli:first-of-type [data-decision-wrapper] {\n\t\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* Make the 'content' fill the entire height of the layout column to allow click\n handler of layout section nodeview to target only data-layout-column */\n\t\t\t\t[data-layout-content] {\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tcursor: text;\n\t\t\t\t\t.mediaGroupView-content-wrap {\n\t\t\t\t\t\tclear: both;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\n\t\t/* styles to support borders for layout */\n\t\t[data-layout-section],\n\t\t.layoutSectionView-content-wrap {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", "\n\n\t/* hide separator when element is dragging on top of a layout column */\n\t[data-blocks-drop-target-container] ~ [data-layout-column] > [data-layout-content]::before {\n\t\tdisplay: none;\n\t}\n\n\t.fabric-editor--full-width-mode .ProseMirror {\n\t\t[data-layout-section] {\n\t\t\t.", " {\n\t\t\t\tmargin: 0 ", "px;\n\t\t\t}\n\t\t}\n\t}\n\n\t", "\n"])), layoutSectionStyles(), "var(--ds-space-100, 8px)", akLayoutGutterOffset + (fg('platform_editor_nested_dnd_styles_changes') ? akNestedDndGutterOffset : 0), akEditorSwoopCubicBezier, viewMode === 'view' ? 'default' : 'pointer', viewMode === 'view' || editorExperiment('advanced_layouts', true) ? 0 : akEditorSelectedBorderSize, "var(--ds-border, #091E4224)", LAYOUT_COLUMN_PADDING, LAYOUT_COLUMN_PADDING + (fg('platform_editor_nested_dnd_styles_changes') ? 8 : 0), firstNodeWithNotMarginTop(), layoutColumnStyles(), editorExperiment('advanced_layouts', true) ? layoutWithSeparatorBorderStyles(viewMode) : layoutBorderStyles(viewMode), editorExperiment('advanced_layouts', true) && layoutResponsiveStyles(viewMode), TableCssClassName.TABLE_CONTAINER, tableMarginFullWidthMode, editorExperiment('advanced_layouts', false) && fg('platform_editor_nested_dnd_styles_changes') && ".ak-editor-content-area.appearance-full-page .ProseMirror [data-layout-section] {\n\t\t\t\tmargin: ".concat("var(--ds-space-100, 8px)", " -", akLayoutGutterOffset + 8, "px 0;\n\t\t\t\t}"));
|
|
75
75
|
};
|
package/dist/esm/ui/{EditorContentContainer.js → EditorContentContainer/EditorContentContainer.js}
RENAMED
|
@@ -33,15 +33,15 @@ import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
|
33
33
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
34
34
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
35
35
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
36
|
-
import { InlineNodeViewSharedStyles } from '
|
|
37
|
-
import { codeBlockStyles } from '
|
|
38
|
-
import { dateStyles, dateVanillaStyles } from '
|
|
39
|
-
import { expandStyles } from '
|
|
40
|
-
import { extensionStyles } from '
|
|
41
|
-
import { mediaStyles } from '
|
|
42
|
-
import { panelStyles } from '
|
|
43
|
-
import { statusStyles, vanillaStatusStyles } from '
|
|
44
|
-
import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh as vanillaDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh as vanillaDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles as vanillaDecisionStyles, vanillaTaskItemStyles } from '
|
|
36
|
+
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
37
|
+
import { codeBlockStyles } from '../ContentStyles/code-block';
|
|
38
|
+
import { dateStyles, dateVanillaStyles } from '../ContentStyles/date';
|
|
39
|
+
import { expandStyles } from '../ContentStyles/expand';
|
|
40
|
+
import { extensionStyles } from '../ContentStyles/extension';
|
|
41
|
+
import { mediaStyles } from '../ContentStyles/media';
|
|
42
|
+
import { panelStyles } from '../ContentStyles/panel';
|
|
43
|
+
import { statusStyles, vanillaStatusStyles } from '../ContentStyles/status';
|
|
44
|
+
import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh as vanillaDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh as vanillaDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles as vanillaDecisionStyles, vanillaTaskItemStyles } from '../ContentStyles/tasks-and-decisions';
|
|
45
45
|
|
|
46
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
47
47
|
export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t}\n"])), linkSharedStyle());
|
|
@@ -346,7 +346,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
346
346
|
|
|
347
347
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
348
348
|
var contentStyles = function contentStyles() {
|
|
349
|
-
return css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\
|
|
349
|
+
return css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, whitespaceSharedStyles, paragraphSharedStyles(), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
350
350
|
exposure: false
|
|
351
351
|
}) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
352
352
|
exposure: false
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.0.
|
|
2
|
+
export var version = "207.0.7";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { EditorNextProps } from '../types/editor-props';
|
|
3
3
|
import { type WithAppearanceComponent } from '../types/with-appearance-component';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param props
|
|
7
|
+
* @example
|
|
8
|
+
*/
|
|
4
9
|
export declare function CoreEditor(props: EditorNextProps & WithAppearanceComponent): jsx.JSX.Element;
|
|
5
10
|
export declare namespace CoreEditor {
|
|
6
11
|
var propTypes: {
|
|
@@ -347,7 +347,15 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
347
347
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
348
348
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
349
349
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
350
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags
|
|
350
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
351
|
+
sharedState: {
|
|
352
|
+
hasHadInteraction: boolean;
|
|
353
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
354
|
+
};
|
|
355
|
+
commands: {
|
|
356
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
357
|
+
};
|
|
358
|
+
}, undefined>>];
|
|
351
359
|
sharedState: {
|
|
352
360
|
copyButtonHoverNode: import("prosemirror-model").Node;
|
|
353
361
|
} | undefined;
|
|
@@ -358,7 +366,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
358
366
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
359
367
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
360
368
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
361
|
-
sharedState:
|
|
369
|
+
sharedState: {
|
|
370
|
+
hasHadInteraction: boolean;
|
|
371
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
372
|
+
};
|
|
373
|
+
commands: {
|
|
374
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
375
|
+
};
|
|
362
376
|
}, undefined>>];
|
|
363
377
|
commands: {
|
|
364
378
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -1127,7 +1141,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1127
1141
|
}, import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
1128
1142
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1129
1143
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1130
|
-
sharedState:
|
|
1144
|
+
sharedState: {
|
|
1145
|
+
hasHadInteraction: boolean;
|
|
1146
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
1147
|
+
};
|
|
1148
|
+
commands: {
|
|
1149
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1150
|
+
};
|
|
1131
1151
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1132
1152
|
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
1133
1153
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
|
|
@@ -399,7 +399,15 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
399
399
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
400
400
|
pluginConfiguration: FeatureFlags;
|
|
401
401
|
sharedState: FeatureFlags;
|
|
402
|
-
}, FeatureFlags
|
|
402
|
+
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
403
|
+
sharedState: {
|
|
404
|
+
hasHadInteraction: boolean;
|
|
405
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
406
|
+
};
|
|
407
|
+
commands: {
|
|
408
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
409
|
+
};
|
|
410
|
+
}, undefined>>];
|
|
403
411
|
sharedState: {
|
|
404
412
|
copyButtonHoverNode: import("prosemirror-model").Node;
|
|
405
413
|
} | undefined;
|
|
@@ -410,7 +418,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
410
418
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
411
419
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
412
420
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
413
|
-
sharedState:
|
|
421
|
+
sharedState: {
|
|
422
|
+
hasHadInteraction: boolean;
|
|
423
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
424
|
+
};
|
|
425
|
+
commands: {
|
|
426
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
427
|
+
};
|
|
414
428
|
}, undefined>>];
|
|
415
429
|
commands: {
|
|
416
430
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -1179,7 +1193,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1179
1193
|
}, import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
1180
1194
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1181
1195
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1182
|
-
sharedState:
|
|
1196
|
+
sharedState: {
|
|
1197
|
+
hasHadInteraction: boolean;
|
|
1198
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
1199
|
+
};
|
|
1200
|
+
commands: {
|
|
1201
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1202
|
+
};
|
|
1183
1203
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1184
1204
|
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
1185
1205
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
|
|
@@ -347,7 +347,15 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
347
347
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
348
348
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
349
349
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
350
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags
|
|
350
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
351
|
+
sharedState: {
|
|
352
|
+
hasHadInteraction: boolean;
|
|
353
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
354
|
+
};
|
|
355
|
+
commands: {
|
|
356
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
357
|
+
};
|
|
358
|
+
}, undefined>>];
|
|
351
359
|
sharedState: {
|
|
352
360
|
copyButtonHoverNode: import("prosemirror-model").Node;
|
|
353
361
|
} | undefined;
|
|
@@ -358,7 +366,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
358
366
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
359
367
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
360
368
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
361
|
-
sharedState:
|
|
369
|
+
sharedState: {
|
|
370
|
+
hasHadInteraction: boolean;
|
|
371
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
372
|
+
};
|
|
373
|
+
commands: {
|
|
374
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
375
|
+
};
|
|
362
376
|
}, undefined>>];
|
|
363
377
|
commands: {
|
|
364
378
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -1127,7 +1141,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1127
1141
|
}, import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
1128
1142
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1129
1143
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1130
|
-
sharedState:
|
|
1144
|
+
sharedState: {
|
|
1145
|
+
hasHadInteraction: boolean;
|
|
1146
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
1147
|
+
};
|
|
1148
|
+
commands: {
|
|
1149
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1150
|
+
};
|
|
1131
1151
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1132
1152
|
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
1133
1153
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
4
|
-
import { InteractionPlugin } from '@atlaskit/editor-plugins/interaction';
|
|
4
|
+
import { type InteractionPlugin } from '@atlaskit/editor-plugins/interaction';
|
|
5
5
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
|
|
6
6
|
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugins/selection-toolbar';
|
|
7
7
|
import type { EditorAppearanceComponentProps } from '../../../types';
|
|
@@ -33,10 +33,10 @@ interface FullPageEditorContentAreaProps {
|
|
|
33
33
|
popupsScrollableElement: HTMLElement | undefined;
|
|
34
34
|
providerFactory: ProviderFactory;
|
|
35
35
|
wrapperElement: HTMLElement | null;
|
|
36
|
+
hasHadInteraction: boolean;
|
|
36
37
|
featureFlags?: FeatureFlags;
|
|
37
38
|
viewMode: ViewMode | undefined;
|
|
38
39
|
isEditorToolbarHidden?: boolean;
|
|
39
|
-
hasHadInteraction?: boolean;
|
|
40
40
|
}
|
|
41
41
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
42
42
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { EditorNextProps } from '../types/editor-props';
|
|
3
3
|
import { type WithAppearanceComponent } from '../types/with-appearance-component';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param props
|
|
7
|
+
* @example
|
|
8
|
+
*/
|
|
4
9
|
export declare function CoreEditor(props: EditorNextProps & WithAppearanceComponent): jsx.JSX.Element;
|
|
5
10
|
export declare namespace CoreEditor {
|
|
6
11
|
var propTypes: {
|
|
@@ -491,7 +491,16 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
491
491
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
492
492
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
493
493
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
494
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags
|
|
494
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
495
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
496
|
+
sharedState: {
|
|
497
|
+
hasHadInteraction: boolean;
|
|
498
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
499
|
+
};
|
|
500
|
+
commands: {
|
|
501
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
502
|
+
};
|
|
503
|
+
}, undefined>>
|
|
495
504
|
];
|
|
496
505
|
sharedState: {
|
|
497
506
|
copyButtonHoverNode: import("prosemirror-model").Node;
|
|
@@ -505,7 +514,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
505
514
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
506
515
|
dependencies: [
|
|
507
516
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
508
|
-
sharedState:
|
|
517
|
+
sharedState: {
|
|
518
|
+
hasHadInteraction: boolean;
|
|
519
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
520
|
+
};
|
|
521
|
+
commands: {
|
|
522
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
523
|
+
};
|
|
509
524
|
}, undefined>>
|
|
510
525
|
];
|
|
511
526
|
commands: {
|
|
@@ -1413,7 +1428,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1413
1428
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1414
1429
|
}, undefined>,
|
|
1415
1430
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1416
|
-
sharedState:
|
|
1431
|
+
sharedState: {
|
|
1432
|
+
hasHadInteraction: boolean;
|
|
1433
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
1434
|
+
};
|
|
1435
|
+
commands: {
|
|
1436
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1437
|
+
};
|
|
1417
1438
|
}, undefined> | undefined,
|
|
1418
1439
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1419
1440
|
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
@@ -543,7 +543,16 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
543
543
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
544
544
|
pluginConfiguration: FeatureFlags;
|
|
545
545
|
sharedState: FeatureFlags;
|
|
546
|
-
}, FeatureFlags
|
|
546
|
+
}, FeatureFlags>>,
|
|
547
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
548
|
+
sharedState: {
|
|
549
|
+
hasHadInteraction: boolean;
|
|
550
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
551
|
+
};
|
|
552
|
+
commands: {
|
|
553
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
554
|
+
};
|
|
555
|
+
}, undefined>>
|
|
547
556
|
];
|
|
548
557
|
sharedState: {
|
|
549
558
|
copyButtonHoverNode: import("prosemirror-model").Node;
|
|
@@ -557,7 +566,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
557
566
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
558
567
|
dependencies: [
|
|
559
568
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
560
|
-
sharedState:
|
|
569
|
+
sharedState: {
|
|
570
|
+
hasHadInteraction: boolean;
|
|
571
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
572
|
+
};
|
|
573
|
+
commands: {
|
|
574
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
575
|
+
};
|
|
561
576
|
}, undefined>>
|
|
562
577
|
];
|
|
563
578
|
commands: {
|
|
@@ -1465,7 +1480,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1465
1480
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1466
1481
|
}, undefined>,
|
|
1467
1482
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1468
|
-
sharedState:
|
|
1483
|
+
sharedState: {
|
|
1484
|
+
hasHadInteraction: boolean;
|
|
1485
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
1486
|
+
};
|
|
1487
|
+
commands: {
|
|
1488
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1489
|
+
};
|
|
1469
1490
|
}, undefined> | undefined,
|
|
1470
1491
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1471
1492
|
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
@@ -491,7 +491,16 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
491
491
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
492
492
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
493
493
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
494
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags
|
|
494
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
495
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
496
|
+
sharedState: {
|
|
497
|
+
hasHadInteraction: boolean;
|
|
498
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
499
|
+
};
|
|
500
|
+
commands: {
|
|
501
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
502
|
+
};
|
|
503
|
+
}, undefined>>
|
|
495
504
|
];
|
|
496
505
|
sharedState: {
|
|
497
506
|
copyButtonHoverNode: import("prosemirror-model").Node;
|
|
@@ -505,7 +514,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
505
514
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
506
515
|
dependencies: [
|
|
507
516
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
508
|
-
sharedState:
|
|
517
|
+
sharedState: {
|
|
518
|
+
hasHadInteraction: boolean;
|
|
519
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
520
|
+
};
|
|
521
|
+
commands: {
|
|
522
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
523
|
+
};
|
|
509
524
|
}, undefined>>
|
|
510
525
|
];
|
|
511
526
|
commands: {
|
|
@@ -1413,7 +1428,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1413
1428
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1414
1429
|
}, undefined>,
|
|
1415
1430
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1416
|
-
sharedState:
|
|
1431
|
+
sharedState: {
|
|
1432
|
+
hasHadInteraction: boolean;
|
|
1433
|
+
interactionState: "hasNotHadInteraction" | null;
|
|
1434
|
+
};
|
|
1435
|
+
commands: {
|
|
1436
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1437
|
+
};
|
|
1417
1438
|
}, undefined> | undefined,
|
|
1418
1439
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1419
1440
|
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
4
|
-
import { InteractionPlugin } from '@atlaskit/editor-plugins/interaction';
|
|
4
|
+
import { type InteractionPlugin } from '@atlaskit/editor-plugins/interaction';
|
|
5
5
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
|
|
6
6
|
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugins/selection-toolbar';
|
|
7
7
|
import type { EditorAppearanceComponentProps } from '../../../types';
|
|
@@ -35,10 +35,10 @@ interface FullPageEditorContentAreaProps {
|
|
|
35
35
|
popupsScrollableElement: HTMLElement | undefined;
|
|
36
36
|
providerFactory: ProviderFactory;
|
|
37
37
|
wrapperElement: HTMLElement | null;
|
|
38
|
+
hasHadInteraction: boolean;
|
|
38
39
|
featureFlags?: FeatureFlags;
|
|
39
40
|
viewMode: ViewMode | undefined;
|
|
40
41
|
isEditorToolbarHidden?: boolean;
|
|
41
|
-
hasHadInteraction?: boolean;
|
|
42
42
|
}
|
|
43
43
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
44
44
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.0.
|
|
3
|
+
"version": "207.0.7",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
|
-
"@atlaskit/button": "^23.
|
|
47
|
+
"@atlaskit/button": "^23.2.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^105.
|
|
49
|
+
"@atlaskit/editor-common": "^105.6.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.5.0",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
56
56
|
"@atlaskit/emoji": "^69.2.0",
|
|
57
|
-
"@atlaskit/icon": "^26.
|
|
57
|
+
"@atlaskit/icon": "^26.1.0",
|
|
58
58
|
"@atlaskit/media-card": "^79.2.0",
|
|
59
59
|
"@atlaskit/mention": "^24.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
62
|
-
"@atlaskit/react-ufo": "^3.
|
|
62
|
+
"@atlaskit/react-ufo": "^3.13.0",
|
|
63
63
|
"@atlaskit/task-decision": "^19.2.0",
|
|
64
64
|
"@atlaskit/tmp-editor-statsig": "^4.22.0",
|
|
65
|
-
"@atlaskit/tokens": "^4.
|
|
65
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
66
66
|
"@atlaskit/tooltip": "^20.0.0",
|
|
67
67
|
"@atlaskit/width-detector": "^5.0.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
92
92
|
"@atlaskit/collab-provider": "^10.14.0",
|
|
93
93
|
"@atlaskit/editor-plugin-annotation": "^2.8.0",
|
|
94
|
-
"@atlaskit/editor-plugin-card": "^6.
|
|
94
|
+
"@atlaskit/editor-plugin-card": "^6.2.0",
|
|
95
95
|
"@atlaskit/editor-plugin-list": "^4.2.0",
|
|
96
96
|
"@atlaskit/editor-plugin-paste": "^3.3.0",
|
|
97
97
|
"@atlaskit/link-provider": "^3.0.0",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
101
101
|
"@atlaskit/media-test-helpers": "^36.0.0",
|
|
102
102
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
103
|
-
"@atlaskit/primitives": "^14.
|
|
103
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
104
104
|
"@atlaskit/renderer": "^118.1.0",
|
|
105
|
-
"@atlaskit/smart-card": "^38.
|
|
105
|
+
"@atlaskit/smart-card": "^38.2.0",
|
|
106
106
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
107
107
|
"@atlaskit/toggle": "^15.0.0",
|
|
108
108
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
@@ -156,12 +156,6 @@
|
|
|
156
156
|
"platform_editor_reduce_scroll_jump_on_editor_start": {
|
|
157
157
|
"type": "boolean"
|
|
158
158
|
},
|
|
159
|
-
"platform_editor_fe--performance_metrics": {
|
|
160
|
-
"type": "boolean"
|
|
161
|
-
},
|
|
162
|
-
"platform_editor_fe--ufo-bridge": {
|
|
163
|
-
"type": "boolean"
|
|
164
|
-
},
|
|
165
159
|
"platform_editor_fe--inp-metrics": {
|
|
166
160
|
"type": "boolean"
|
|
167
161
|
},
|
|
@@ -590,10 +584,6 @@
|
|
|
590
584
|
"type": "boolean",
|
|
591
585
|
"referenceOnly": true
|
|
592
586
|
},
|
|
593
|
-
"platform_editor_yellow_text_highlight_shortcut": {
|
|
594
|
-
"type": "boolean",
|
|
595
|
-
"referenceOnly": true
|
|
596
|
-
},
|
|
597
587
|
"platform_editor_controls_widget_visibility": {
|
|
598
588
|
"type": "boolean",
|
|
599
589
|
"referenceOnly": true
|
|
@@ -664,6 +654,9 @@
|
|
|
664
654
|
"confluence_team_presence_scroll_to_pointer": {
|
|
665
655
|
"type": "boolean"
|
|
666
656
|
},
|
|
657
|
+
"platform_editor_interaction_api_refactor": {
|
|
658
|
+
"type": "boolean"
|
|
659
|
+
},
|
|
667
660
|
"platform_editor_ssr_fix_lists": {
|
|
668
661
|
"type": "boolean"
|
|
669
662
|
}
|