@atlaskit/editor-core 195.8.1 → 195.8.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 +8 -0
- package/dist/cjs/editor.js +6 -3
- package/dist/cjs/presets/universal.js +2 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/editor.js +6 -3
- package/dist/es2019/presets/universal.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/editor.js +6 -3
- package/dist/esm/presets/universal.js +2 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +4 -1
- package/dist/types/editor.d.ts +6 -2
- package/dist/types/presets/default.d.ts +8 -2
- package/dist/types/presets/universal.d.ts +7 -1
- package/dist/types/presets/useUniversalPreset.d.ts +4 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +5 -1
- package/dist/types-ts4.5/editor.d.ts +6 -2
- package/dist/types-ts4.5/presets/default.d.ts +10 -2
- package/dist/types-ts4.5/presets/universal.d.ts +8 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +5 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a88c92506a873`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a88c92506a873) -
|
|
8
|
+
Use initialPluginConfiguration to enabled table resizing
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 195.8.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/editor.js
CHANGED
|
@@ -23,9 +23,11 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
|
|
26
|
-
var props = _ref.props
|
|
26
|
+
var props = _ref.props,
|
|
27
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration;
|
|
27
28
|
var preset = (0, _useUniversalPreset.default)({
|
|
28
|
-
props: props
|
|
29
|
+
props: props,
|
|
30
|
+
initialPluginConfiguration: initialPluginConfiguration
|
|
29
31
|
});
|
|
30
32
|
return (0, _react2.jsx)(_composableEditor.ComposableEditor, (0, _extends2.default)({
|
|
31
33
|
preset: preset
|
|
@@ -45,7 +47,8 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
45
47
|
key: "render",
|
|
46
48
|
value: function render() {
|
|
47
49
|
return (0, _react2.jsx)(ComposableEditorWrapper, {
|
|
48
|
-
props: this.props
|
|
50
|
+
props: this.props,
|
|
51
|
+
initialPluginConfiguration: this.props.initialPluginConfiguration
|
|
49
52
|
});
|
|
50
53
|
}
|
|
51
54
|
}]);
|
|
@@ -139,9 +139,8 @@ function createUniversalPresetInternal(_ref) {
|
|
|
139
139
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
140
140
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
141
141
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
142
|
-
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
142
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, _objectSpread({
|
|
143
143
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
144
|
-
tableResizingEnabled: isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
|
|
145
144
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
146
145
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
147
146
|
allowContextualMenu: !isMobile,
|
|
@@ -152,7 +151,7 @@ function createUniversalPresetInternal(_ref) {
|
|
|
152
151
|
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
|
|
153
152
|
isCommentEditor: isComment,
|
|
154
153
|
isChromelessEditor: isChromeless
|
|
155
|
-
}], Boolean(props.allowTables)).maybeAdd([_tasksAndDecisions.tasksAndDecisionsPlugin, {
|
|
154
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.tablesPlugin)], Boolean(props.allowTables)).maybeAdd([_tasksAndDecisions.tasksAndDecisionsPlugin, {
|
|
156
155
|
allowNestedTasks: props.allowNestedTasks,
|
|
157
156
|
consumeTabs: isFullPage,
|
|
158
157
|
useLongPressSelection: false
|
package/dist/es2019/editor.js
CHANGED
|
@@ -12,10 +12,12 @@ import { ComposableEditor } from './composable-editor';
|
|
|
12
12
|
import useUniversalPreset from './presets/useUniversalPreset';
|
|
13
13
|
import editorDeprecationWarnings from './utils/editorDeprecationWarnings';
|
|
14
14
|
const ComposableEditorWrapper = ({
|
|
15
|
-
props
|
|
15
|
+
props,
|
|
16
|
+
initialPluginConfiguration
|
|
16
17
|
}) => {
|
|
17
18
|
const preset = useUniversalPreset({
|
|
18
|
-
props
|
|
19
|
+
props,
|
|
20
|
+
initialPluginConfiguration
|
|
19
21
|
});
|
|
20
22
|
return jsx(ComposableEditor, _extends({
|
|
21
23
|
preset: preset
|
|
@@ -28,7 +30,8 @@ export default class Editor extends React.Component {
|
|
|
28
30
|
}
|
|
29
31
|
render() {
|
|
30
32
|
return jsx(ComposableEditorWrapper, {
|
|
31
|
-
props: this.props
|
|
33
|
+
props: this.props,
|
|
34
|
+
initialPluginConfiguration: this.props.initialPluginConfiguration
|
|
32
35
|
});
|
|
33
36
|
}
|
|
34
37
|
}
|
|
@@ -133,7 +133,6 @@ export default function createUniversalPresetInternal({
|
|
|
133
133
|
...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)
|
|
134
134
|
}], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
135
135
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
136
|
-
tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
|
|
137
136
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
|
138
137
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
139
138
|
allowContextualMenu: !isMobile,
|
|
@@ -143,7 +142,8 @@ export default function createUniversalPresetInternal({
|
|
|
143
142
|
isTableAlignmentEnabled: fg('platform.editor.table.allow-table-alignment') && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
144
143
|
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
|
|
145
144
|
isCommentEditor: isComment,
|
|
146
|
-
isChromelessEditor: isChromeless
|
|
145
|
+
isChromelessEditor: isChromeless,
|
|
146
|
+
...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.tablesPlugin)
|
|
147
147
|
}], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
148
148
|
allowNestedTasks: props.allowNestedTasks,
|
|
149
149
|
consumeTabs: isFullPage,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.8.
|
|
2
|
+
export const version = "195.8.2";
|
package/dist/esm/editor.js
CHANGED
|
@@ -19,9 +19,11 @@ import { ComposableEditor } from './composable-editor';
|
|
|
19
19
|
import useUniversalPreset from './presets/useUniversalPreset';
|
|
20
20
|
import editorDeprecationWarnings from './utils/editorDeprecationWarnings';
|
|
21
21
|
var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
|
|
22
|
-
var props = _ref.props
|
|
22
|
+
var props = _ref.props,
|
|
23
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration;
|
|
23
24
|
var preset = useUniversalPreset({
|
|
24
|
-
props: props
|
|
25
|
+
props: props,
|
|
26
|
+
initialPluginConfiguration: initialPluginConfiguration
|
|
25
27
|
});
|
|
26
28
|
return jsx(ComposableEditor, _extends({
|
|
27
29
|
preset: preset
|
|
@@ -41,7 +43,8 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
41
43
|
key: "render",
|
|
42
44
|
value: function render() {
|
|
43
45
|
return jsx(ComposableEditorWrapper, {
|
|
44
|
-
props: this.props
|
|
46
|
+
props: this.props,
|
|
47
|
+
initialPluginConfiguration: this.props.initialPluginConfiguration
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
}]);
|
|
@@ -132,9 +132,8 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
132
132
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
133
133
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
134
134
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
135
|
-
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
135
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, _objectSpread({
|
|
136
136
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
137
|
-
tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
|
|
138
137
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
|
139
138
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
140
139
|
allowContextualMenu: !isMobile,
|
|
@@ -145,7 +144,7 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
145
144
|
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
|
|
146
145
|
isCommentEditor: isComment,
|
|
147
146
|
isChromelessEditor: isChromeless
|
|
148
|
-
}], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
147
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.tablesPlugin)], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
149
148
|
allowNestedTasks: props.allowNestedTasks,
|
|
150
149
|
consumeTabs: isFullPage,
|
|
151
150
|
useLongPressSelection: false
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.8.
|
|
2
|
+
export var version = "195.8.2";
|
|
@@ -4252,7 +4252,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
4252
4252
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4253
4253
|
}) => void;
|
|
4254
4254
|
};
|
|
4255
|
-
}, undefined
|
|
4255
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4256
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4257
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4258
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
4256
4259
|
sharedState: import("@atlaskit/editor-plugin-block-type").BlockTypeState | undefined;
|
|
4257
4260
|
actions: {
|
|
4258
4261
|
insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugin-block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { InitialPluginConfiguration } from './preset-universal';
|
|
7
8
|
import type { EditorProps } from './types/editor-props';
|
|
8
9
|
export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
|
|
9
10
|
export type { FeedbackInfo } from '@atlaskit/editor-common/types';
|
|
10
|
-
|
|
11
|
+
interface EditorPropsWithInitialPluginConfiguration extends EditorProps {
|
|
12
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
13
|
+
}
|
|
14
|
+
export default class Editor extends React.Component<EditorPropsWithInitialPluginConfiguration> {
|
|
11
15
|
static defaultProps: EditorProps;
|
|
12
|
-
constructor(props:
|
|
16
|
+
constructor(props: EditorPropsWithInitialPluginConfiguration);
|
|
13
17
|
render(): jsx.JSX.Element;
|
|
14
18
|
}
|
|
@@ -971,7 +971,10 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
971
971
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
972
972
|
}) => void;
|
|
973
973
|
};
|
|
974
|
-
}, undefined
|
|
974
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
975
|
+
pluginConfiguration: FeatureFlags;
|
|
976
|
+
sharedState: FeatureFlags;
|
|
977
|
+
}, FeatureFlags>>];
|
|
975
978
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
976
979
|
actions: {
|
|
977
980
|
insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2834,7 +2837,10 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2834
2837
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2835
2838
|
}) => void;
|
|
2836
2839
|
};
|
|
2837
|
-
}, undefined
|
|
2840
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2841
|
+
pluginConfiguration: FeatureFlags;
|
|
2842
|
+
sharedState: FeatureFlags;
|
|
2843
|
+
}, FeatureFlags>>];
|
|
2838
2844
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
2839
2845
|
actions: {
|
|
2840
2846
|
insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -18,6 +18,9 @@ export type InitialPluginConfiguration = {
|
|
|
18
18
|
id: string;
|
|
19
19
|
}[]) => void;
|
|
20
20
|
};
|
|
21
|
+
tablesPlugin?: {
|
|
22
|
+
tableResizingEnabled?: boolean;
|
|
23
|
+
};
|
|
21
24
|
};
|
|
22
25
|
/**
|
|
23
26
|
* Creates a preset with all of the available plugins.
|
|
@@ -4288,7 +4291,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4288
4291
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4289
4292
|
}) => void;
|
|
4290
4293
|
};
|
|
4291
|
-
}, undefined
|
|
4294
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4295
|
+
pluginConfiguration: FeatureFlags;
|
|
4296
|
+
sharedState: FeatureFlags;
|
|
4297
|
+
}, FeatureFlags>>];
|
|
4292
4298
|
sharedState: import("@atlaskit/editor-plugin-block-type").BlockTypeState | undefined;
|
|
4293
4299
|
actions: {
|
|
4294
4300
|
insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugin-block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -4252,7 +4252,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4252
4252
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4253
4253
|
}) => void;
|
|
4254
4254
|
};
|
|
4255
|
-
}, undefined
|
|
4255
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
4256
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4257
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4258
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
4256
4259
|
sharedState: import("@atlaskit/editor-plugin-block-type").BlockTypeState | undefined;
|
|
4257
4260
|
actions: {
|
|
4258
4261
|
insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugin-block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -5271,7 +5271,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
5271
5271
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
5272
5272
|
}) => void;
|
|
5273
5273
|
};
|
|
5274
|
-
}, undefined
|
|
5274
|
+
}, undefined>>,
|
|
5275
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5276
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5277
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5278
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
5275
5279
|
];
|
|
5276
5280
|
sharedState: import("@atlaskit/editor-plugin-block-type").BlockTypeState | undefined;
|
|
5277
5281
|
actions: {
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { InitialPluginConfiguration } from './preset-universal';
|
|
7
8
|
import type { EditorProps } from './types/editor-props';
|
|
8
9
|
export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
|
|
9
10
|
export type { FeedbackInfo } from '@atlaskit/editor-common/types';
|
|
10
|
-
|
|
11
|
+
interface EditorPropsWithInitialPluginConfiguration extends EditorProps {
|
|
12
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
13
|
+
}
|
|
14
|
+
export default class Editor extends React.Component<EditorPropsWithInitialPluginConfiguration> {
|
|
11
15
|
static defaultProps: EditorProps;
|
|
12
|
-
constructor(props:
|
|
16
|
+
constructor(props: EditorPropsWithInitialPluginConfiguration);
|
|
13
17
|
render(): jsx.JSX.Element;
|
|
14
18
|
}
|
|
@@ -1211,7 +1211,11 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1211
1211
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1212
1212
|
}) => void;
|
|
1213
1213
|
};
|
|
1214
|
-
}, undefined
|
|
1214
|
+
}, undefined>>,
|
|
1215
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1216
|
+
pluginConfiguration: FeatureFlags;
|
|
1217
|
+
sharedState: FeatureFlags;
|
|
1218
|
+
}, FeatureFlags>>
|
|
1215
1219
|
];
|
|
1216
1220
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
1217
1221
|
actions: {
|
|
@@ -3518,7 +3522,11 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3518
3522
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3519
3523
|
}) => void;
|
|
3520
3524
|
};
|
|
3521
|
-
}, undefined
|
|
3525
|
+
}, undefined>>,
|
|
3526
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3527
|
+
pluginConfiguration: FeatureFlags;
|
|
3528
|
+
sharedState: FeatureFlags;
|
|
3529
|
+
}, FeatureFlags>>
|
|
3522
3530
|
];
|
|
3523
3531
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
3524
3532
|
actions: {
|
|
@@ -18,6 +18,9 @@ export type InitialPluginConfiguration = {
|
|
|
18
18
|
id: string;
|
|
19
19
|
}[]) => void;
|
|
20
20
|
};
|
|
21
|
+
tablesPlugin?: {
|
|
22
|
+
tableResizingEnabled?: boolean;
|
|
23
|
+
};
|
|
21
24
|
};
|
|
22
25
|
/**
|
|
23
26
|
* Creates a preset with all of the available plugins.
|
|
@@ -5307,7 +5310,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5307
5310
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
5308
5311
|
}) => void;
|
|
5309
5312
|
};
|
|
5310
|
-
}, undefined
|
|
5313
|
+
}, undefined>>,
|
|
5314
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5315
|
+
pluginConfiguration: FeatureFlags;
|
|
5316
|
+
sharedState: FeatureFlags;
|
|
5317
|
+
}, FeatureFlags>>
|
|
5311
5318
|
];
|
|
5312
5319
|
sharedState: import("@atlaskit/editor-plugin-block-type").BlockTypeState | undefined;
|
|
5313
5320
|
actions: {
|
|
@@ -5271,7 +5271,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
5271
5271
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
5272
5272
|
}) => void;
|
|
5273
5273
|
};
|
|
5274
|
-
}, undefined
|
|
5274
|
+
}, undefined>>,
|
|
5275
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
5276
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5277
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5278
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
5275
5279
|
];
|
|
5276
5280
|
sharedState: import("@atlaskit/editor-plugin-block-type").BlockTypeState | undefined;
|
|
5277
5281
|
actions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.8.
|
|
3
|
+
"version": "195.8.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/editor-prosemirror": "5.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.7.0",
|
|
53
|
-
"@atlaskit/icon": "^22.
|
|
53
|
+
"@atlaskit/icon": "^22.15.0",
|
|
54
54
|
"@atlaskit/media-card": "^78.1.0",
|
|
55
55
|
"@atlaskit/mention": "^23.2.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@af/editor-examples-helpers": "0.3.
|
|
83
|
+
"@af/editor-examples-helpers": "0.3.2",
|
|
84
84
|
"@af/editor-libra": "*",
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
86
|
"@atlaskit/adf-utils": "^19.8.0",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
102
102
|
"@atlaskit/primitives": "^12.0.0",
|
|
103
103
|
"@atlaskit/renderer": "^109.50.0",
|
|
104
|
-
"@atlaskit/smart-card": "^27.
|
|
104
|
+
"@atlaskit/smart-card": "^27.18.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
106
106
|
"@atlaskit/toggle": "^13.3.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
110
110
|
"@atlassian/feature-flags-test-utils": "*",
|
|
111
|
-
"@atlassian/search-provider": "2.4.
|
|
111
|
+
"@atlassian/search-provider": "2.4.114",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^5.3.18",
|
|
114
114
|
"@testing-library/react": "^12.1.5",
|