@atlaskit/editor-core 189.6.0 → 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 +15 -0
- package/dist/cjs/composable-editor/editor.js +11 -191
- package/dist/cjs/composable-editor/hooks/useMemoEditorProps.js +122 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor.js +7 -185
- package/dist/es2019/composable-editor/hooks/useMemoEditorProps.js +115 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor.js +9 -191
- package/dist/esm/composable-editor/hooks/useMemoEditorProps.js +115 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/hooks/useMemoEditorProps.d.ts +6 -0
- package/dist/types/types/editor-appearance-component.d.ts +2 -2
- package/dist/types/types/editor-props.d.ts +6 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/dist/types-ts4.5/composable-editor/hooks/useMemoEditorProps.d.ts +6 -0
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +2 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +6 -1
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/package.json +10 -9
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
export var useMemoEditorProps = function useMemoEditorProps(passedProps) {
|
|
6
|
+
var memodProps = useMemo(function () {
|
|
7
|
+
// That sounds awful but this is the only way to make sure we didn't missed any EditorProps
|
|
8
|
+
var allProps = {
|
|
9
|
+
preset: passedProps.preset,
|
|
10
|
+
appearance: passedProps.appearance,
|
|
11
|
+
contentComponents: passedProps.contentComponents,
|
|
12
|
+
primaryToolbarIconBefore: passedProps.primaryToolbarIconBefore,
|
|
13
|
+
secondaryToolbarComponents: passedProps.secondaryToolbarComponents,
|
|
14
|
+
persistScrollGutter: passedProps.persistScrollGutter,
|
|
15
|
+
quickInsert: passedProps.quickInsert,
|
|
16
|
+
shouldFocus: passedProps.shouldFocus,
|
|
17
|
+
disabled: passedProps.disabled,
|
|
18
|
+
contextPanel: passedProps.contextPanel,
|
|
19
|
+
errorReporterHandler: passedProps.errorReporterHandler,
|
|
20
|
+
contentTransformerProvider: passedProps.contentTransformerProvider,
|
|
21
|
+
maxHeight: passedProps.maxHeight,
|
|
22
|
+
minHeight: passedProps.minHeight,
|
|
23
|
+
placeholder: passedProps.placeholder,
|
|
24
|
+
placeholderBracketHint: passedProps.placeholderBracketHint,
|
|
25
|
+
defaultValue: passedProps.defaultValue,
|
|
26
|
+
assistiveLabel: passedProps.assistiveLabel,
|
|
27
|
+
popupsMountPoint: passedProps.popupsMountPoint,
|
|
28
|
+
popupsBoundariesElement: passedProps.popupsBoundariesElement,
|
|
29
|
+
popupsScrollableElement: passedProps.popupsScrollableElement,
|
|
30
|
+
editorActions: passedProps.editorActions,
|
|
31
|
+
onEditorReady: passedProps.onEditorReady,
|
|
32
|
+
onDestroy: passedProps.onDestroy,
|
|
33
|
+
onChange: passedProps.onChange,
|
|
34
|
+
onCancel: passedProps.onCancel,
|
|
35
|
+
inputSamplingLimit: passedProps.inputSamplingLimit,
|
|
36
|
+
extensionProviders: passedProps.extensionProviders,
|
|
37
|
+
UNSAFE_useAnalyticsContext: passedProps.UNSAFE_useAnalyticsContext,
|
|
38
|
+
trackValidTransactions: passedProps.trackValidTransactions,
|
|
39
|
+
useStickyToolbar: passedProps.useStickyToolbar,
|
|
40
|
+
featureFlags: passedProps.featureFlags,
|
|
41
|
+
onSave: passedProps.onSave,
|
|
42
|
+
performanceTracking: passedProps.performanceTracking,
|
|
43
|
+
sanitizePrivateContent: passedProps.sanitizePrivateContent,
|
|
44
|
+
media: passedProps.media,
|
|
45
|
+
collabEdit: passedProps.collabEdit,
|
|
46
|
+
primaryToolbarComponents: passedProps.primaryToolbarComponents,
|
|
47
|
+
allowUndoRedoButtons: passedProps.allowUndoRedoButtons,
|
|
48
|
+
linking: passedProps.linking,
|
|
49
|
+
hideAvatarGroup: passedProps.hideAvatarGroup,
|
|
50
|
+
activityProvider: passedProps.activityProvider,
|
|
51
|
+
searchProvider: passedProps.searchProvider,
|
|
52
|
+
annotationProviders: passedProps.annotationProviders,
|
|
53
|
+
collabEditProvider: passedProps.collabEditProvider,
|
|
54
|
+
presenceProvider: passedProps.presenceProvider,
|
|
55
|
+
emojiProvider: passedProps.emojiProvider,
|
|
56
|
+
taskDecisionProvider: passedProps.taskDecisionProvider,
|
|
57
|
+
legacyImageUploadProvider: passedProps.legacyImageUploadProvider,
|
|
58
|
+
mentionProvider: passedProps.mentionProvider,
|
|
59
|
+
autoformattingProvider: passedProps.autoformattingProvider,
|
|
60
|
+
macroProvider: passedProps.macroProvider,
|
|
61
|
+
contextIdentifierProvider: passedProps.contextIdentifierProvider,
|
|
62
|
+
allowExpand: passedProps.allowExpand,
|
|
63
|
+
allowNestedTasks: passedProps.allowNestedTasks,
|
|
64
|
+
allowBlockType: passedProps.allowBlockType,
|
|
65
|
+
allowTasksAndDecisions: passedProps.allowTasksAndDecisions,
|
|
66
|
+
allowBreakout: passedProps.allowBreakout,
|
|
67
|
+
allowRule: passedProps.allowRule,
|
|
68
|
+
allowHelpDialog: passedProps.allowHelpDialog,
|
|
69
|
+
allowJiraIssue: passedProps.allowJiraIssue,
|
|
70
|
+
allowPanel: passedProps.allowPanel,
|
|
71
|
+
allowExtension: passedProps.allowExtension,
|
|
72
|
+
allowConfluenceInlineComment: passedProps.allowConfluenceInlineComment,
|
|
73
|
+
allowTemplatePlaceholders: passedProps.allowTemplatePlaceholders,
|
|
74
|
+
allowDate: passedProps.allowDate,
|
|
75
|
+
allowLayouts: passedProps.allowLayouts,
|
|
76
|
+
allowStatus: passedProps.allowStatus,
|
|
77
|
+
allowTextAlignment: passedProps.allowTextAlignment,
|
|
78
|
+
allowIndentation: passedProps.allowIndentation,
|
|
79
|
+
showIndentationButtons: passedProps.showIndentationButtons,
|
|
80
|
+
allowNewInsertionBehaviour: passedProps.allowNewInsertionBehaviour,
|
|
81
|
+
allowFindReplace: passedProps.allowFindReplace,
|
|
82
|
+
UNSAFE_allowBorderMark: passedProps.UNSAFE_allowBorderMark,
|
|
83
|
+
allowBorderMark: passedProps.allowBorderMark,
|
|
84
|
+
allowFragmentMark: passedProps.allowFragmentMark,
|
|
85
|
+
autoScrollIntoView: passedProps.autoScrollIntoView,
|
|
86
|
+
elementBrowser: passedProps.elementBrowser,
|
|
87
|
+
maxContentSize: passedProps.maxContentSize,
|
|
88
|
+
saveOnEnter: passedProps.saveOnEnter,
|
|
89
|
+
feedbackInfo: passedProps.feedbackInfo,
|
|
90
|
+
mention: passedProps.mention,
|
|
91
|
+
mentionInsertDisplayName: passedProps.mentionInsertDisplayName,
|
|
92
|
+
uploadErrorHandler: passedProps.uploadErrorHandler,
|
|
93
|
+
waitForMediaUpload: passedProps.waitForMediaUpload,
|
|
94
|
+
extensionHandlers: passedProps.extensionHandlers,
|
|
95
|
+
allowTextColor: passedProps.allowTextColor,
|
|
96
|
+
allowTables: passedProps.allowTables,
|
|
97
|
+
insertMenuItems: passedProps.insertMenuItems,
|
|
98
|
+
UNSAFE_cards: passedProps.UNSAFE_cards,
|
|
99
|
+
smartLinks: passedProps.smartLinks,
|
|
100
|
+
allowAnalyticsGASV3: passedProps.allowAnalyticsGASV3,
|
|
101
|
+
codeBlock: passedProps.codeBlock,
|
|
102
|
+
textFormatting: passedProps.textFormatting,
|
|
103
|
+
dangerouslyAppendPlugins: passedProps.dangerouslyAppendPlugins
|
|
104
|
+
};
|
|
105
|
+
var defaultProps = {
|
|
106
|
+
appearance: 'comment',
|
|
107
|
+
disabled: false,
|
|
108
|
+
quickInsert: true
|
|
109
|
+
};
|
|
110
|
+
var nextProps = _objectSpread(_objectSpread({}, defaultProps), allProps);
|
|
111
|
+
return nextProps;
|
|
112
|
+
}, [passedProps.preset, passedProps.appearance, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.inputSamplingLimit, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.trackValidTransactions, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.performanceTracking, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.hideAvatarGroup, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowJiraIssue, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowNewInsertionBehaviour, passedProps.allowFindReplace, passedProps.UNSAFE_allowBorderMark, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.dangerouslyAppendPlugins]);
|
|
113
|
+
return memodProps;
|
|
114
|
+
};
|
|
115
|
+
export default useMemoEditorProps;
|
|
@@ -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.
|
|
2
|
+
export var version = "189.6.2";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorProps, EditorNextProps } from '../../types/editor-props';
|
|
2
|
+
export type Complete<T> = {
|
|
3
|
+
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
4
|
+
};
|
|
5
|
+
export declare const useMemoEditorProps: (passedProps: EditorProps & EditorNextProps) => EditorProps & EditorNextProps;
|
|
6
|
+
export default useMemoEditorProps;
|
|
@@ -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?:
|
|
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?:
|
|
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:
|
|
17
|
+
customContentComponents: ContentComponents | undefined;
|
|
18
18
|
disabled: boolean | undefined;
|
|
19
19
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent | undefined;
|
|
20
20
|
editorActions: EditorActions | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorProps, EditorNextProps } from '../../types/editor-props';
|
|
2
|
+
export type Complete<T> = {
|
|
3
|
+
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
4
|
+
};
|
|
5
|
+
export declare const useMemoEditorProps: (passedProps: EditorProps & EditorNextProps) => EditorProps & EditorNextProps;
|
|
6
|
+
export default useMemoEditorProps;
|
|
@@ -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?:
|
|
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?:
|
|
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:
|
|
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.
|
|
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/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/button": "^16.18.0",
|
|
51
51
|
"@atlaskit/checkbox": "^13.0.0",
|
|
52
52
|
"@atlaskit/date": "^0.10.0",
|
|
53
|
-
"@atlaskit/datetime-picker": "^13.0.
|
|
53
|
+
"@atlaskit/datetime-picker": "^13.0.3",
|
|
54
54
|
"@atlaskit/editor-common": "^76.26.0",
|
|
55
55
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
56
56
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
@@ -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.
|
|
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",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
120
120
|
"@atlaskit/emoji": "^67.6.0",
|
|
121
121
|
"@atlaskit/empty-state": "^7.6.0",
|
|
122
|
-
"@atlaskit/form": "^9.0.
|
|
122
|
+
"@atlaskit/form": "^9.0.3",
|
|
123
123
|
"@atlaskit/icon": "^22.0.0",
|
|
124
124
|
"@atlaskit/logo": "^13.14.0",
|
|
125
125
|
"@atlaskit/media-card": "^77.5.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
131
131
|
"@atlaskit/radio": "^6.0.0",
|
|
132
132
|
"@atlaskit/section-message": "^6.4.0",
|
|
133
|
-
"@atlaskit/select": "^17.0.
|
|
133
|
+
"@atlaskit/select": "^17.0.3",
|
|
134
134
|
"@atlaskit/smart-card": "^26.43.0",
|
|
135
135
|
"@atlaskit/smart-user-picker": "^6.4.0",
|
|
136
136
|
"@atlaskit/spinner": "^16.0.0",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"@af/visual-regression": "*",
|
|
172
172
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
173
173
|
"@atlaskit/code": "^15.1.0",
|
|
174
|
-
"@atlaskit/collab-provider": "9.
|
|
174
|
+
"@atlaskit/collab-provider": "9.20.0",
|
|
175
175
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
176
176
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
177
177
|
"@atlaskit/editor-palette": "1.5.2",
|
|
@@ -241,9 +241,6 @@
|
|
|
241
241
|
},
|
|
242
242
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
243
243
|
"platform-feature-flags": {
|
|
244
|
-
"platform.editor.less-editor-props-rerendering": {
|
|
245
|
-
"type": "boolean"
|
|
246
|
-
},
|
|
247
244
|
"platform.editor.custom-table-width": {
|
|
248
245
|
"type": "boolean"
|
|
249
246
|
},
|
|
@@ -361,6 +358,10 @@
|
|
|
361
358
|
"platform.editor.a11y-media-resizing_b5v0o": {
|
|
362
359
|
"type": "boolean",
|
|
363
360
|
"referenceOnly": "true"
|
|
361
|
+
},
|
|
362
|
+
"platform.editor.a11y-table-resizing_uapcv": {
|
|
363
|
+
"type": "boolean",
|
|
364
|
+
"referenceOnly": "true"
|
|
364
365
|
}
|
|
365
366
|
}
|
|
366
367
|
}
|