@atlaskit/editor-core 189.6.1 → 189.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 189.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#57660](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57660) [`2c320c63b42f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2c320c63b42f) - Adjust contentComponents editor prop to support before and after, enabling content to be shown below the editor
8
+ - [#56823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/56823) [`d2fbdf3b6822`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2fbdf3b6822) - [ux] ECA11Y-111: Keyboard accessibility of table resizer
9
+ - Updated dependencies
10
+
3
11
  ## 189.6.1
4
12
 
5
13
  ### Patch Changes
@@ -63,7 +63,7 @@ var Content = /*#__PURE__*/_react2.default.forwardRef(function (props, ref) {
63
63
  css: _StyledComponents.editorContentGutterStyle,
64
64
  className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
65
65
  ref: contentAreaRef
66
- }, props.customContentComponents, (0, _react.jsx)(_PluginSlot.default, {
66
+ }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, (0, _react.jsx)(_PluginSlot.default, {
67
67
  editorView: props.editorView,
68
68
  editorActions: props.editorActions,
69
69
  eventDispatcher: props.eventDispatcher,
@@ -79,7 +79,7 @@ var Content = /*#__PURE__*/_react2.default.forwardRef(function (props, ref) {
79
79
  containerElement: scrollContainerRef.current,
80
80
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
81
81
  wrapperElement: props.wrapperElement
82
- }), props.editorDOMElement)))), (0, _react.jsx)("div", {
82
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? props.customContentComponents.after : null)))), (0, _react.jsx)("div", {
83
83
  css: _StyledComponents.sidebarArea
84
84
  }, props.contextPanel || (0, _react.jsx)(_ContextPanel.default, {
85
85
  visible: false
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "189.6.1";
8
+ var version = exports.version = "189.6.2";
@@ -51,7 +51,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
51
51
  css: editorContentGutterStyle,
52
52
  className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
53
53
  ref: contentAreaRef
54
- }, props.customContentComponents, jsx(PluginSlot, {
54
+ }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, jsx(PluginSlot, {
55
55
  editorView: props.editorView,
56
56
  editorActions: props.editorActions,
57
57
  eventDispatcher: props.eventDispatcher,
@@ -67,7 +67,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
67
67
  containerElement: scrollContainerRef.current,
68
68
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
69
69
  wrapperElement: props.wrapperElement
70
- }), props.editorDOMElement)))), jsx("div", {
70
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? props.customContentComponents.after : null)))), jsx("div", {
71
71
  css: sidebarArea
72
72
  }, props.contextPanel || jsx(ContextPanel, {
73
73
  visible: false
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "189.6.1";
2
+ export const version = "189.6.2";
@@ -52,7 +52,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
52
52
  css: editorContentGutterStyle,
53
53
  className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
54
54
  ref: contentAreaRef
55
- }, props.customContentComponents, jsx(PluginSlot, {
55
+ }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, jsx(PluginSlot, {
56
56
  editorView: props.editorView,
57
57
  editorActions: props.editorActions,
58
58
  eventDispatcher: props.eventDispatcher,
@@ -68,7 +68,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
68
68
  containerElement: scrollContainerRef.current,
69
69
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
70
70
  wrapperElement: props.wrapperElement
71
- }), props.editorDOMElement)))), jsx("div", {
71
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? props.customContentComponents.after : null)))), jsx("div", {
72
72
  css: sidebarArea
73
73
  }, props.contextPanel || jsx(ContextPanel, {
74
74
  visible: false
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "189.6.1";
2
+ export var version = "189.6.2";
@@ -7,7 +7,7 @@ import type { ReactHookFactory } from '@atlaskit/editor-common/types';
7
7
  import type EditorActions from '../actions';
8
8
  import type { EventDispatcher } from '../event-dispatcher';
9
9
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
10
- import type { PrimaryToolbarComponents, ReactComponents } from '../types/editor-props';
10
+ import type { PrimaryToolbarComponents, ContentComponents, ReactComponents } from '../types/editor-props';
11
11
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
12
12
  import type { UIComponentFactory } from '../types/ui-components';
13
13
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
@@ -31,7 +31,7 @@ export interface EditorAppearanceComponentProps {
31
31
  primaryToolbarComponents?: ToolbarUIComponentFactory[];
32
32
  primaryToolbarIconBefore?: ReactElement;
33
33
  secondaryToolbarComponents?: UIComponentFactory[];
34
- customContentComponents?: ReactComponents;
34
+ customContentComponents?: ContentComponents;
35
35
  customPrimaryToolbarComponents?: PrimaryToolbarComponents;
36
36
  customSecondaryToolbarComponents?: ReactComponents;
37
37
  insertMenuItems?: MenuItem[];
@@ -51,9 +51,14 @@ export type BeforeAndAfterToolbarComponents = {
51
51
  after: ReactComponents;
52
52
  };
53
53
  export type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
54
+ export type BeforeAndAfterContentComponents = {
55
+ before: ReactComponents;
56
+ after: ReactComponents;
57
+ };
58
+ export type ContentComponents = BeforeAndAfterContentComponents | ReactComponents;
54
59
  interface EditorBaseProps {
55
60
  appearance?: EditorAppearance;
56
- contentComponents?: ReactComponents;
61
+ contentComponents?: ContentComponents;
57
62
  primaryToolbarIconBefore?: ReactElement;
58
63
  secondaryToolbarComponents?: ReactComponents;
59
64
  persistScrollGutter?: boolean;
@@ -3,7 +3,7 @@ export type { EditorInstance } from './editor-instance';
3
3
  export type { EditorConfig } from './editor-config';
4
4
  export type { NextEditorPlugin, EditorPlugin, PluginsOptions, } from './editor-plugin';
5
5
  export type { EditorReactContext } from './editor-react-context';
6
- export type { EditorProps, FeedbackInfo, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, } from './editor-props';
6
+ export type { EditorProps, FeedbackInfo, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, ContentComponents, } from './editor-props';
7
7
  export type { EditorAppearanceComponentProps } from './editor-appearance-component';
8
8
  export type { Command, CommandDispatch } from './command';
9
9
  export type { MessageDescriptor } from './i18n';
@@ -5,7 +5,7 @@ import React from 'react';
5
5
  import type { WrappedComponentProps } from 'react-intl-next';
6
6
  import type EditorActions from '../../../actions';
7
7
  import type { EventDispatcher } from '../../../event-dispatcher';
8
- import type { ReactComponents, EditorAppearance, UIComponentFactory } from '../../../types';
8
+ import type { ReactComponents, EditorAppearance, UIComponentFactory, ContentComponents } from '../../../types';
9
9
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
10
10
  import type { ReactHookFactory } from '@atlaskit/editor-common/types';
11
11
  import type { FeatureFlags } from '../../../types/feature-flags';
@@ -14,7 +14,7 @@ interface FullPageEditorContentAreaProps {
14
14
  contentComponents: UIComponentFactory[] | undefined;
15
15
  pluginHooks: ReactHookFactory[] | undefined;
16
16
  contextPanel: ReactComponents | undefined;
17
- customContentComponents: ReactComponents | undefined;
17
+ customContentComponents: ContentComponents | undefined;
18
18
  disabled: boolean | undefined;
19
19
  dispatchAnalyticsEvent: DispatchAnalyticsEvent | undefined;
20
20
  editorActions: EditorActions | undefined;
@@ -7,7 +7,7 @@ import type { ReactHookFactory } from '@atlaskit/editor-common/types';
7
7
  import type EditorActions from '../actions';
8
8
  import type { EventDispatcher } from '../event-dispatcher';
9
9
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
10
- import type { PrimaryToolbarComponents, ReactComponents } from '../types/editor-props';
10
+ import type { PrimaryToolbarComponents, ContentComponents, ReactComponents } from '../types/editor-props';
11
11
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
12
12
  import type { UIComponentFactory } from '../types/ui-components';
13
13
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
@@ -31,7 +31,7 @@ export interface EditorAppearanceComponentProps {
31
31
  primaryToolbarComponents?: ToolbarUIComponentFactory[];
32
32
  primaryToolbarIconBefore?: ReactElement;
33
33
  secondaryToolbarComponents?: UIComponentFactory[];
34
- customContentComponents?: ReactComponents;
34
+ customContentComponents?: ContentComponents;
35
35
  customPrimaryToolbarComponents?: PrimaryToolbarComponents;
36
36
  customSecondaryToolbarComponents?: ReactComponents;
37
37
  insertMenuItems?: MenuItem[];
@@ -51,9 +51,14 @@ export type BeforeAndAfterToolbarComponents = {
51
51
  after: ReactComponents;
52
52
  };
53
53
  export type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
54
+ export type BeforeAndAfterContentComponents = {
55
+ before: ReactComponents;
56
+ after: ReactComponents;
57
+ };
58
+ export type ContentComponents = BeforeAndAfterContentComponents | ReactComponents;
54
59
  interface EditorBaseProps {
55
60
  appearance?: EditorAppearance;
56
- contentComponents?: ReactComponents;
61
+ contentComponents?: ContentComponents;
57
62
  primaryToolbarIconBefore?: ReactElement;
58
63
  secondaryToolbarComponents?: ReactComponents;
59
64
  persistScrollGutter?: boolean;
@@ -3,7 +3,7 @@ export type { EditorInstance } from './editor-instance';
3
3
  export type { EditorConfig } from './editor-config';
4
4
  export type { NextEditorPlugin, EditorPlugin, PluginsOptions, } from './editor-plugin';
5
5
  export type { EditorReactContext } from './editor-react-context';
6
- export type { EditorProps, FeedbackInfo, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, } from './editor-props';
6
+ export type { EditorProps, FeedbackInfo, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, ContentComponents, } from './editor-props';
7
7
  export type { EditorAppearanceComponentProps } from './editor-appearance-component';
8
8
  export type { Command, CommandDispatch } from './command';
9
9
  export type { MessageDescriptor } from './i18n';
@@ -5,7 +5,7 @@ import React from 'react';
5
5
  import type { WrappedComponentProps } from 'react-intl-next';
6
6
  import type EditorActions from '../../../actions';
7
7
  import type { EventDispatcher } from '../../../event-dispatcher';
8
- import type { ReactComponents, EditorAppearance, UIComponentFactory } from '../../../types';
8
+ import type { ReactComponents, EditorAppearance, UIComponentFactory, ContentComponents } from '../../../types';
9
9
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
10
10
  import type { ReactHookFactory } from '@atlaskit/editor-common/types';
11
11
  import type { FeatureFlags } from '../../../types/feature-flags';
@@ -14,7 +14,7 @@ interface FullPageEditorContentAreaProps {
14
14
  contentComponents: UIComponentFactory[] | undefined;
15
15
  pluginHooks: ReactHookFactory[] | undefined;
16
16
  contextPanel: ReactComponents | undefined;
17
- customContentComponents: ReactComponents | undefined;
17
+ customContentComponents: ContentComponents | undefined;
18
18
  disabled: boolean | undefined;
19
19
  dispatchAnalyticsEvent: DispatchAnalyticsEvent | undefined;
20
20
  editorActions: EditorActions | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "189.6.1",
3
+ "version": "189.6.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -106,7 +106,7 @@
106
106
  "@atlaskit/editor-plugin-selection-toolbar": "^0.1.0",
107
107
  "@atlaskit/editor-plugin-status": "^0.2.0",
108
108
  "@atlaskit/editor-plugin-submit-editor": "^0.1.0",
109
- "@atlaskit/editor-plugin-table": "^5.4.0",
109
+ "@atlaskit/editor-plugin-table": "^5.5.0",
110
110
  "@atlaskit/editor-plugin-tasks-and-decisions": "^0.2.0",
111
111
  "@atlaskit/editor-plugin-text-color": "^0.1.0",
112
112
  "@atlaskit/editor-plugin-text-formatting": "^0.4.0",
@@ -358,6 +358,10 @@
358
358
  "platform.editor.a11y-media-resizing_b5v0o": {
359
359
  "type": "boolean",
360
360
  "referenceOnly": "true"
361
+ },
362
+ "platform.editor.a11y-table-resizing_uapcv": {
363
+ "type": "boolean",
364
+ "referenceOnly": "true"
361
365
  }
362
366
  }
363
367
  }