@atlaskit/editor-core 197.2.1 → 197.2.2

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +57 -66
  4. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +1 -18
  5. package/dist/cjs/ui/ContextPanel/index.js +1 -8
  6. package/dist/cjs/utils/document.js +0 -24
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/index.js +1 -1
  9. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +58 -68
  10. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -18
  11. package/dist/es2019/ui/ContextPanel/index.js +0 -5
  12. package/dist/es2019/utils/document.js +0 -20
  13. package/dist/es2019/version-wrapper.js +1 -1
  14. package/dist/esm/index.js +1 -1
  15. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +58 -67
  16. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -18
  17. package/dist/esm/ui/ContextPanel/index.js +0 -5
  18. package/dist/esm/utils/document.js +0 -22
  19. package/dist/esm/version-wrapper.js +1 -1
  20. package/dist/types/index.d.ts +1 -1
  21. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -1
  22. package/dist/types/ui/ContextPanel/index.d.ts +0 -1
  23. package/dist/types/utils/document.d.ts +0 -5
  24. package/dist/types-ts4.5/index.d.ts +1 -1
  25. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +0 -1
  26. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +0 -1
  27. package/dist/types-ts4.5/utils/document.d.ts +0 -5
  28. package/package.json +3 -7
  29. package/dist/cjs/ui/ContextPanel/deprecated.js +0 -283
  30. package/dist/cjs/utils/node-width.js +0 -20
  31. package/dist/es2019/ui/ContextPanel/deprecated.js +0 -258
  32. package/dist/es2019/utils/node-width.js +0 -9
  33. package/dist/esm/ui/ContextPanel/deprecated.js +0 -277
  34. package/dist/esm/utils/node-width.js +0 -9
  35. package/dist/types/ui/ContextPanel/deprecated.d.ts +0 -44
  36. package/dist/types/utils/node-width.d.ts +0 -7
  37. package/dist/types-ts4.5/ui/ContextPanel/deprecated.d.ts +0 -44
  38. package/dist/types-ts4.5/utils/node-width.d.ts +0 -7
@@ -9,13 +9,13 @@ import React, { useImperativeHandle, useRef } from 'react';
9
9
  import { jsx, useTheme } from '@emotion/react';
10
10
  import { injectIntl } from 'react-intl-next';
11
11
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
12
- import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
13
12
  import { ClickAreaBlock } from '../../Addon';
14
- import ContextPanel from '../../ContextPanel';
13
+ import { ContextPanel } from '../../ContextPanel';
15
14
  import PluginSlot from '../../PluginSlot';
16
- import { contentArea, contentAreaHeightNoToolbar, editorContentAreaStyle, editorContentGutterStyle, positionedOverEditorStyle, ScrollContainer, sidebarArea } from './StyledComponents';
15
+ import { contentArea, contentAreaHeightNoToolbar, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
17
16
  export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
18
17
  var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
18
+ var _contentAreaRef$curre;
19
19
  var theme = useTheme();
20
20
  var fullWidthMode = props.appearance === 'full-width';
21
21
  var scrollContainerRef = useRef(null);
@@ -34,70 +34,61 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
34
34
  }
35
35
  };
36
36
  }, []);
37
- return (
38
- // Cleaned up with: platform_editor_context-panel_simplify_behaviour
39
- jsx(ContextPanelConsumer, null, function (_ref) {
40
- var _contentAreaRef$curre;
41
- var positionedOverEditor = _ref.positionedOverEditor;
42
- return jsx("div", {
43
- css: [
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
45
- contentArea,
46
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
47
- props.isEditorToolbarHidden && contentAreaHeightNoToolbar,
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
49
- positionedOverEditor && positionedOverEditorStyle],
50
- "data-testid": CONTENT_AREA_TEST_ID,
51
- ref: containerRef
52
- }, jsx(ScrollContainer
53
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
54
- , {
55
- className: "fabric-editor-popup-scroll-parent",
56
- featureFlags: props.featureFlags,
57
- ref: scrollContainerRef
58
- }, jsx(ClickAreaBlock, {
59
- editorView: props.editorView,
60
- editorDisabled: props.disabled
61
- }, jsx("div", {
62
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
63
- css: editorContentAreaStyle({
64
- fullWidthMode: fullWidthMode,
65
- layoutMaxWidth: theme.layoutMaxWidth
66
- }),
67
- role: "region",
68
- "aria-label": props.intl.formatMessage(messages.editableContentLabel),
69
- ref: contentAreaRef
70
- }, jsx("div", {
71
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
72
- css: editorContentGutterStyle()
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
74
- ,
75
- className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
76
- ref: contentAreaRef
77
- }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, jsx(PluginSlot, {
78
- editorView: props.editorView,
79
- editorActions: props.editorActions,
80
- eventDispatcher: props.eventDispatcher,
81
- providerFactory: props.providerFactory,
82
- appearance: props.appearance,
83
- items: props.contentComponents,
84
- pluginHooks: props.pluginHooks,
85
- contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
86
- popupsMountPoint: props.popupsMountPoint,
87
- popupsBoundariesElement: props.popupsBoundariesElement,
88
- popupsScrollableElement: props.popupsScrollableElement,
89
- disabled: !!props.disabled,
90
- containerElement: scrollContainerRef.current,
91
- dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
92
- wrapperElement: props.wrapperElement
93
- }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? props.customContentComponents.after : null)))), jsx("div", {
94
- css: sidebarArea
95
- }, props.contextPanel || jsx(ContextPanel, {
96
- editorAPI: props.editorAPI,
97
- visible: false
98
- })));
99
- })
100
- );
37
+ return jsx("div", {
38
+ css: [
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
40
+ contentArea,
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
42
+ props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
43
+ "data-testid": CONTENT_AREA_TEST_ID,
44
+ ref: containerRef
45
+ }, jsx(ScrollContainer
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
47
+ , {
48
+ className: "fabric-editor-popup-scroll-parent",
49
+ featureFlags: props.featureFlags,
50
+ ref: scrollContainerRef
51
+ }, jsx(ClickAreaBlock, {
52
+ editorView: props.editorView,
53
+ editorDisabled: props.disabled
54
+ }, jsx("div", {
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
56
+ css: editorContentAreaStyle({
57
+ fullWidthMode: fullWidthMode,
58
+ layoutMaxWidth: theme.layoutMaxWidth
59
+ }),
60
+ role: "region",
61
+ "aria-label": props.intl.formatMessage(messages.editableContentLabel),
62
+ ref: contentAreaRef
63
+ }, jsx("div", {
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
65
+ css: editorContentGutterStyle()
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
67
+ ,
68
+ className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
69
+ ref: contentAreaRef
70
+ }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, jsx(PluginSlot, {
71
+ editorView: props.editorView,
72
+ editorActions: props.editorActions,
73
+ eventDispatcher: props.eventDispatcher,
74
+ providerFactory: props.providerFactory,
75
+ appearance: props.appearance,
76
+ items: props.contentComponents,
77
+ pluginHooks: props.pluginHooks,
78
+ contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
79
+ popupsMountPoint: props.popupsMountPoint,
80
+ popupsBoundariesElement: props.popupsBoundariesElement,
81
+ popupsScrollableElement: props.popupsScrollableElement,
82
+ disabled: !!props.disabled,
83
+ containerElement: scrollContainerRef.current,
84
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
85
+ wrapperElement: props.wrapperElement
86
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? props.customContentComponents.after : null)))), jsx("div", {
87
+ css: sidebarArea
88
+ }, props.contextPanel || jsx(ContextPanel, {
89
+ editorAPI: props.editorAPI,
90
+ visible: false
91
+ })));
101
92
  });
102
93
  export var FullPageContentArea = injectIntl(Content, {
103
94
  forwardRef: true
@@ -5,7 +5,7 @@ import { css } from '@emotion/react';
5
5
  import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
6
6
  import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
7
7
  import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
8
- import { akEditorContextPanelWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
8
+ import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
9
9
  import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
11
  import { createEditorContentStyle } from '../../ContentStyles';
@@ -40,23 +40,6 @@ scrollbarStyles);
40
40
  export var ScrollContainer = createEditorContentStyle(scrollStyles);
41
41
  ScrollContainer.displayName = 'ScrollContainer';
42
42
 
43
- // transition used to match scrollbar with config panel opening animation
44
- // only use animation when opening as there is a bug with floating toolbars.
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
46
- export var positionedOverEditorStyle = css({
47
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
48
- paddingRight: "".concat(akEditorContextPanelWidth, "px"),
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
50
- transition: "padding 500ms ".concat(akEditorSwoopCubicBezier),
51
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
52
- '.fabric-editor-popup-scroll-parent': {
53
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
54
- paddingLeft: "".concat(akEditorContextPanelWidth, "px"),
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
56
- transition: "padding 500ms ".concat(akEditorSwoopCubicBezier)
57
- }
58
- });
59
-
60
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
61
44
  export var contentArea = function contentArea() {
62
45
  var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
@@ -22,9 +22,7 @@ import Transition from 'react-transition-group/Transition';
22
22
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
23
23
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
24
24
  import { akEditorContextPanelWidth, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
25
- import { fg } from '@atlaskit/platform-feature-flags';
26
25
  import { N30 } from '@atlaskit/theme/colors';
27
- import ContextPanelDeprecated from './deprecated';
28
26
  var ANIM_SPEED_MS = 500;
29
27
  var panelHidden = css({
30
28
  width: 0
@@ -163,7 +161,4 @@ export function ContextPanel(props) {
163
161
  editorAPI: props.editorAPI,
164
162
  pluginContent: firstContent
165
163
  }));
166
- }
167
- export default function ContextPanelDefault(props) {
168
- return fg('platform_editor_context-panel_simplify_behaviour') ? jsx(ContextPanel, props) : jsx(ContextPanelDeprecated, props);
169
164
  }
@@ -1,7 +1,5 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
1
  import { processRawValue } from '@atlaskit/editor-common/utils';
3
2
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
- import { getBreakoutMode } from './node-width';
5
3
  export function processRawFragmentValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
6
4
  if (!value) {
7
5
  return;
@@ -22,24 +20,4 @@ export function getNodesCount(node) {
22
20
  count[node.type.name] = (count[node.type.name] || 0) + 1;
23
21
  });
24
22
  return count;
25
- }
26
-
27
- /**
28
- * Returns a set of active child breakout modes
29
- */
30
- export function getChildBreakoutModes(doc, schema) {
31
- var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ['wide', 'full-width'];
32
- var breakoutModes = new Set();
33
- if (doc.type.name === 'doc' && doc.childCount) {
34
- for (var i = 0; i < doc.childCount; ++i) {
35
- if (breakoutModes.size === filter.length) {
36
- break;
37
- }
38
- var breakoutMode = getBreakoutMode(doc.child(i), schema.marks.breakout);
39
- if (breakoutMode && filter.includes(breakoutMode)) {
40
- breakoutModes.add(breakoutMode);
41
- }
42
- }
43
- }
44
- return _toConsumableArray(breakoutModes);
45
23
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "197.2.1";
2
+ export var version = "197.2.2";
@@ -11,7 +11,7 @@ export {
11
11
  * @deprecated
12
12
  * DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
13
13
  */
14
- default as ContextPanel, } from './ui/ContextPanel';
14
+ ContextPanel, } from './ui/ContextPanel';
15
15
  export { EmojiResource } from '@atlaskit/emoji/resource';
16
16
  export { MentionResource } from '@atlaskit/mention/resource';
17
17
  export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';
@@ -11,7 +11,6 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
11
11
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
12
12
  viewMode?: "view" | "edit" | undefined;
13
13
  } | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
14
- export declare const positionedOverEditorStyle: import("@emotion/react").SerializedStyles;
15
14
  export declare const contentArea: () => import("@emotion/react").SerializedStyles;
16
15
  export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
17
16
  export declare const sidebarArea: import("@emotion/react").SerializedStyles;
@@ -36,5 +36,4 @@ export declare class SwappableContentArea extends React.PureComponent<SwappableC
36
36
  render(): jsx.JSX.Element;
37
37
  }
38
38
  export declare function ContextPanel(props: Props): jsx.JSX.Element;
39
- export default function ContextPanelDefault(props: Props): jsx.JSX.Element;
40
39
  export {};
@@ -1,4 +1,3 @@
1
- import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
2
1
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
2
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
3
  import type { ReplaceRawValue, Transformer } from '@atlaskit/editor-common/types';
@@ -6,7 +5,3 @@ import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
6
5
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
7
6
  export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
8
7
  export declare function getNodesCount(node: Node): Record<string, number>;
9
- /**
10
- * Returns a set of active child breakout modes
11
- */
12
- export declare function getChildBreakoutModes(doc: Node, schema: Schema, filter?: BreakoutMarkAttrs['mode'][]): BreakoutMarkAttrs['mode'][];
@@ -11,7 +11,7 @@ export {
11
11
  * @deprecated
12
12
  * DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
13
13
  */
14
- default as ContextPanel, } from './ui/ContextPanel';
14
+ ContextPanel, } from './ui/ContextPanel';
15
15
  export { EmojiResource } from '@atlaskit/emoji/resource';
16
16
  export { MentionResource } from '@atlaskit/mention/resource';
17
17
  export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';
@@ -11,7 +11,6 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
11
11
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
12
12
  viewMode?: "view" | "edit" | undefined;
13
13
  } | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
14
- export declare const positionedOverEditorStyle: import("@emotion/react").SerializedStyles;
15
14
  export declare const contentArea: () => import("@emotion/react").SerializedStyles;
16
15
  export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
17
16
  export declare const sidebarArea: import("@emotion/react").SerializedStyles;
@@ -38,5 +38,4 @@ export declare class SwappableContentArea extends React.PureComponent<SwappableC
38
38
  render(): jsx.JSX.Element;
39
39
  }
40
40
  export declare function ContextPanel(props: Props): jsx.JSX.Element;
41
- export default function ContextPanelDefault(props: Props): jsx.JSX.Element;
42
41
  export {};
@@ -1,4 +1,3 @@
1
- import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
2
1
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
2
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
3
  import type { ReplaceRawValue, Transformer } from '@atlaskit/editor-common/types';
@@ -6,7 +5,3 @@ import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
6
5
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
7
6
  export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
8
7
  export declare function getNodesCount(node: Node): Record<string, number>;
9
- /**
10
- * Returns a set of active child breakout modes
11
- */
12
- export declare function getChildBreakoutModes(doc: Node, schema: Schema, filter?: BreakoutMarkAttrs['mode'][]): BreakoutMarkAttrs['mode'][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "197.2.1",
3
+ "version": "197.2.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/analytics-next": "^10.1.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
45
  "@atlaskit/button": "^20.1.0",
46
- "@atlaskit/editor-common": "^88.6.0",
46
+ "@atlaskit/editor-common": "^88.7.0",
47
47
  "@atlaskit/editor-plugins": "^4.3.0",
48
48
  "@atlaskit/editor-prosemirror": "5.0.1",
49
49
  "@atlaskit/editor-shared-styles": "^2.13.0",
@@ -106,8 +106,7 @@
106
106
  "@atlaskit/util-data-test": "^17.9.0",
107
107
  "@atlaskit/visual-regression": "*",
108
108
  "@atlassian/adf-schema-json": "^1.22.0",
109
- "@atlassian/feature-flags-test-utils": "*",
110
- "@atlassian/search-provider": "2.4.117",
109
+ "@atlassian/search-provider": "2.4.118",
111
110
  "@emotion/jest": "^11.8.0",
112
111
  "@storybook/addon-knobs": "^5.3.18",
113
112
  "@testing-library/react": "^12.1.5",
@@ -218,9 +217,6 @@
218
217
  "type": "boolean",
219
218
  "referenceOnly": "true"
220
219
  },
221
- "platform_editor_context-panel_simplify_behaviour": {
222
- "type": "boolean"
223
- },
224
220
  "platform.confluence.frontend.narrow-full-page-editor-toolbar": {
225
221
  "type": "boolean"
226
222
  },