@atlaskit/editor-core 195.5.1 → 195.6.1
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/.eslintrc.js +2 -0
- package/CHANGELOG.md +16 -0
- package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +1 -1
- package/codemods/migrates/remove-config-panel-width-prop.ts +1 -1
- package/codemods/migrates/rename-editor-to-editor-migration-component.ts +1 -1
- package/codemods/migrates/rename-smartlinks-prop.ts +1 -1
- package/codemods/utils.ts +11 -4
- package/dist/cjs/CollapsedEditor/index.js +1 -0
- package/dist/cjs/actions/index.js +6 -1
- package/dist/cjs/composable-editor/editor-internal.js +6 -2
- package/dist/cjs/create-editor/ReactEditorView.js +1 -0
- package/dist/cjs/create-editor/create-plugins-list.js +3 -1
- package/dist/cjs/create-editor/create-universal-preset.js +3 -1
- package/dist/cjs/presets/context.js +3 -0
- package/dist/cjs/presets/universal.js +2 -2
- package/dist/cjs/test-utils.js +3 -1
- package/dist/cjs/ui/ContextPanel/index.js +2 -0
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +3 -4
- package/dist/cjs/ui/ToolbarFeedback/index.js +1 -0
- package/dist/cjs/ui/WithHelpTrigger/index.js +2 -0
- package/dist/cjs/use-preset.js +2 -0
- package/dist/cjs/utils/action.js +1 -0
- package/dist/cjs/utils/deprecation-warnings.js +2 -2
- package/dist/cjs/utils/performance/instrumented-plugin.js +2 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/CollapsedEditor/index.js +3 -0
- package/dist/es2019/actions/index.js +6 -1
- package/dist/es2019/composable-editor/editor-internal.js +6 -2
- package/dist/es2019/create-editor/ReactEditorView.js +1 -0
- package/dist/es2019/create-editor/create-plugins-list.js +3 -1
- package/dist/es2019/create-editor/create-universal-preset.js +3 -1
- package/dist/es2019/presets/context.js +4 -0
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/test-utils.js +3 -1
- package/dist/es2019/ui/Appearance/Mobile.js +1 -0
- package/dist/es2019/ui/ContextPanel/index.js +2 -0
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +3 -4
- package/dist/es2019/ui/ToolbarFeedback/index.js +1 -0
- package/dist/es2019/ui/WithHelpTrigger/index.js +2 -0
- package/dist/es2019/use-preset.js +3 -0
- package/dist/es2019/utils/action.js +1 -0
- package/dist/es2019/utils/deprecation-warnings.js +2 -2
- package/dist/es2019/utils/performance/instrumented-plugin.js +2 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/CollapsedEditor/index.js +2 -0
- package/dist/esm/actions/index.js +6 -1
- package/dist/esm/composable-editor/editor-internal.js +6 -2
- package/dist/esm/create-editor/ReactEditorView.js +1 -0
- package/dist/esm/create-editor/create-plugins-list.js +3 -1
- package/dist/esm/create-editor/create-universal-preset.js +3 -1
- package/dist/esm/presets/context.js +4 -0
- package/dist/esm/presets/universal.js +2 -2
- package/dist/esm/test-utils.js +3 -1
- package/dist/esm/ui/ContextPanel/index.js +2 -0
- package/dist/esm/ui/Toolbar/ToolbarInner.js +3 -4
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -0
- package/dist/esm/ui/WithHelpTrigger/index.js +2 -0
- package/dist/esm/use-preset.js +3 -0
- package/dist/esm/utils/action.js +1 -0
- package/dist/esm/utils/deprecation-warnings.js +2 -2
- package/dist/esm/utils/performance/instrumented-plugin.js +2 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/CollapsedEditor/index.d.ts +7 -7
- package/dist/types/EditorWithActions/index.d.ts +1 -6
- package/dist/types/create-editor/create-universal-preset.d.ts +154 -2
- package/dist/types/create-editor/get-plugins.d.ts +4 -2
- package/dist/types/presets/default.d.ts +150 -2
- package/dist/types/presets/universal.d.ts +162 -3
- package/dist/types/presets/useUniversalPreset.d.ts +154 -2
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +6 -1
- package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +1 -1
- package/dist/types/ui/Addon/Dropdown/index.d.ts +1 -1
- package/dist/types/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types/ui/Addon/types.d.ts +3 -3
- package/dist/types/ui/Appearance/Chromeless.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types/ui/CollapsedEditor/index.d.ts +2 -2
- package/dist/types/ui/ContentStyles/index.d.ts +2 -1
- package/dist/types/ui/PluginSlot/index.d.ts +1 -1
- package/dist/types/ui/WithEditorActions/index.d.ts +2 -2
- package/dist/types/ui/WithFlash/index.d.ts +1 -1
- package/dist/types/ui/WithHelpTrigger/index.d.ts +1 -1
- package/dist/types/use-preset.d.ts +2 -1
- package/dist/types/utils/deprecation-warnings.d.ts +3 -3
- package/dist/types-ts4.5/CollapsedEditor/index.d.ts +7 -7
- package/dist/types-ts4.5/EditorWithActions/index.d.ts +1 -6
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +178 -2
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +4 -2
- package/dist/types-ts4.5/presets/default.d.ts +174 -2
- package/dist/types-ts4.5/presets/universal.d.ts +186 -3
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +178 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaMobile/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/types.d.ts +3 -3
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +1 -1
- package/dist/types-ts4.5/use-preset.d.ts +2 -1
- package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +3 -3
- package/docs/4-annotations.tsx +1 -0
- package/package.json +6 -6
|
@@ -11,6 +11,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import ChromeCollapsed from '../ui/ChromeCollapsed';
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
16
|
var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
15
17
|
_inherits(CollapsedEditor, _React$Component);
|
|
16
18
|
var _super = _createSuper(CollapsedEditor);
|
|
@@ -19,9 +19,12 @@ import { findNodePosByFragmentLocalIds } from '../utils/nodes-by-localIds';
|
|
|
19
19
|
var fakePluginKey = {
|
|
20
20
|
key: 'nativeCollabProviderPlugin$',
|
|
21
21
|
getState: function getState(state) {
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
23
|
return state['nativeCollabProviderPlugin$'];
|
|
23
24
|
}
|
|
24
25
|
};
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
28
|
var EditorActions = /*#__PURE__*/function () {
|
|
26
29
|
function EditorActions() {
|
|
27
30
|
var _this = this;
|
|
@@ -321,7 +324,9 @@ var EditorActions = /*#__PURE__*/function () {
|
|
|
321
324
|
}
|
|
322
325
|
}, {
|
|
323
326
|
key: "replaceDocument",
|
|
324
|
-
value: function replaceDocument(
|
|
327
|
+
value: function replaceDocument(
|
|
328
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
329
|
+
rawValue) {
|
|
325
330
|
var shouldScrollToBottom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
326
331
|
var shouldAddToHistory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
327
332
|
deprecationWarnings('EditorActions.replaceDocument', {
|
|
@@ -40,7 +40,9 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
|
40
40
|
onEditorDestroyed = _ref.onEditorDestroyed,
|
|
41
41
|
preset = _ref.preset;
|
|
42
42
|
var Component = getUiComponent(props.appearance);
|
|
43
|
-
var setEditorApi = useCallback(
|
|
43
|
+
var setEditorApi = useCallback(
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
|
+
function (api) {
|
|
44
46
|
// This is an workaround to unblock Editor Lego Decoupling project, if you have questions ping us #cc-editor-lego
|
|
45
47
|
// We may clean up this code when EditorActions deprecation process starts
|
|
46
48
|
// @ts-expect-error 2339: Property '__EDITOR_INTERNALS_DO_NOT_USE__API' does not exist on type 'EditorActions<any>'.
|
|
@@ -153,7 +155,9 @@ function ReactEditorViewContextWrapper(props) {
|
|
|
153
155
|
* so we should also set the value for the `EditorContext` that is used in
|
|
154
156
|
* `EditorInternal`.
|
|
155
157
|
*/
|
|
156
|
-
var setEditorAPI = useCallback(
|
|
158
|
+
var setEditorAPI = useCallback(
|
|
159
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
160
|
+
function (api) {
|
|
157
161
|
setInternalEditorAPI === null || setInternalEditorAPI === void 0 || setInternalEditorAPI(api);
|
|
158
162
|
setExternalEditorAPI === null || setExternalEditorAPI === void 0 || setExternalEditorAPI(api);
|
|
159
163
|
}, [setInternalEditorAPI, setExternalEditorAPI]);
|
|
@@ -609,6 +609,7 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
609
609
|
}, {
|
|
610
610
|
key: "getPluginNames",
|
|
611
611
|
value: function getPluginNames() {
|
|
612
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
612
613
|
return this.editorState.plugins.map(function (p) {
|
|
613
614
|
return p.key;
|
|
614
615
|
});
|
|
@@ -100,7 +100,9 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
100
100
|
* Note: The order that presets are added determines
|
|
101
101
|
* their placement in the editor toolbar.
|
|
102
102
|
*/
|
|
103
|
-
export default function createPluginsList(
|
|
103
|
+
export default function createPluginsList(
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
105
|
+
preset, props, pluginInjectionAPI) {
|
|
104
106
|
var excludes = new Set();
|
|
105
107
|
if (!isCodeBlockAllowed({
|
|
106
108
|
allowBlockType: props.allowBlockType
|
|
@@ -19,7 +19,9 @@ export function createUniversalPreset(_ref) {
|
|
|
19
19
|
return withDangerouslyAppendPlugins(preset)((_props$dangerouslyApp = props.dangerouslyAppendPlugins) === null || _props$dangerouslyApp === void 0 ? void 0 : _props$dangerouslyApp.__plugins);
|
|
20
20
|
}
|
|
21
21
|
function withDangerouslyAppendPlugins(preset) {
|
|
22
|
-
function createEditorNextPluginsFromDangerouslyAppended(plugins
|
|
22
|
+
function createEditorNextPluginsFromDangerouslyAppended(plugins
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
+
) {
|
|
23
25
|
return plugins ? plugins.map(function (plugin) {
|
|
24
26
|
return function () {
|
|
25
27
|
return plugin;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useContext, useMemo, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
|
|
3
6
|
export var EditorAPIContext = /*#__PURE__*/React.createContext({});
|
|
4
7
|
export var PresetContextProvider = function PresetContextProvider(_ref) {
|
|
5
8
|
var children = _ref.children;
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
10
|
var _useState = useState(),
|
|
7
11
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8
12
|
editorApi = _useState2[0],
|
|
@@ -126,13 +126,13 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
126
126
|
isCopyPasteEnabled: !isMobile,
|
|
127
127
|
alignLeftOnInsert: typeof ((_props$media3 = props.media) === null || _props$media3 === void 0 ? void 0 : _props$media3.alignLeftOnInsert) !== 'undefined' ? (_props$media4 = props.media) === null || _props$media4 === void 0 ? void 0 : _props$media4.alignLeftOnInsert : isComment,
|
|
128
128
|
getEditorFeatureFlags: getEditorFeatureFlags
|
|
129
|
-
})], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && fg('platform_editor_insert_media_plugin_phase_one'))).maybeAdd(captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([mentionsPlugin, {
|
|
129
|
+
})], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && fg('platform_editor_insert_media_plugin_phase_one'))).maybeAdd(captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([mentionsPlugin, _objectSpread({
|
|
130
130
|
sanitizePrivateContent: props.sanitizePrivateContent,
|
|
131
131
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
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
|
-
}], 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, {
|
|
136
136
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
137
137
|
tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
|
|
138
138
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
package/dist/esm/test-utils.js
CHANGED
|
@@ -215,6 +215,7 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
215
215
|
var widthPluginKey = {
|
|
216
216
|
key: 'widthPlugin$',
|
|
217
217
|
getState: function getState(state) {
|
|
218
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
218
219
|
return state['widthPlugin$'];
|
|
219
220
|
}
|
|
220
221
|
};
|
|
@@ -223,6 +224,7 @@ var widthPluginKey = {
|
|
|
223
224
|
var contextPanelPluginKey = {
|
|
224
225
|
key: 'contextPanelPluginKey$',
|
|
225
226
|
getState: function getState(state) {
|
|
227
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
226
228
|
return state['contextPanelPluginKey$'];
|
|
227
229
|
}
|
|
228
230
|
};
|
|
@@ -56,9 +56,6 @@ export var ToolbarInner = /*#__PURE__*/function (_React$Component) {
|
|
|
56
56
|
return jsx("div", {
|
|
57
57
|
css: toolbarComponentsWrapper
|
|
58
58
|
}, items.map(function (component, key) {
|
|
59
|
-
var props = {
|
|
60
|
-
key: key
|
|
61
|
-
};
|
|
62
59
|
var element = component({
|
|
63
60
|
editorView: editorView,
|
|
64
61
|
editorActions: editorActions,
|
|
@@ -76,7 +73,9 @@ export var ToolbarInner = /*#__PURE__*/function (_React$Component) {
|
|
|
76
73
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
77
74
|
wrapperElement: null
|
|
78
75
|
});
|
|
79
|
-
return element && /*#__PURE__*/React.cloneElement(element,
|
|
76
|
+
return element && /*#__PURE__*/React.cloneElement(element, {
|
|
77
|
+
key: key
|
|
78
|
+
});
|
|
80
79
|
}));
|
|
81
80
|
}
|
|
82
81
|
}]);
|
|
@@ -202,6 +202,7 @@ var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
|
|
|
202
202
|
}]);
|
|
203
203
|
return ToolbarFeedbackInternal;
|
|
204
204
|
}(PureComponent);
|
|
205
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
205
206
|
_defineProperty(ToolbarFeedbackInternal, "contextTypes", {
|
|
206
207
|
editorActions: PropTypes.object.isRequired
|
|
207
208
|
});
|
|
@@ -26,6 +26,8 @@ var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
|
|
|
26
26
|
_defineProperty(_assertThisInitialized(_this), "openHelp", function () {
|
|
27
27
|
var _ref = _this.context,
|
|
28
28
|
editorActions = _ref.editorActions;
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
31
|
var dispatch = createDispatch(editorActions.eventDispatcher);
|
|
30
32
|
dispatch(analyticsEventKey, {
|
|
31
33
|
payload: {
|
package/dist/esm/use-preset.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useLayoutEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
|
|
4
7
|
/**
|
|
5
8
|
* Creates a preset.
|
|
6
9
|
*
|
package/dist/esm/utils/action.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
2
2
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3
3
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
4
|
-
|
|
4
|
+
function deprecationWarnings(className, props, deprecations) {
|
|
5
5
|
if (process.env.NODE_ENV === 'production') {
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
@@ -31,5 +31,5 @@ var deprecationWarnings = function deprecationWarnings(className, props, depreca
|
|
|
31
31
|
} finally {
|
|
32
32
|
_iterator.f();
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
35
|
export default deprecationWarnings;
|
|
@@ -29,6 +29,7 @@ export var InstrumentedPlugin = /*#__PURE__*/function (_SafePlugin) {
|
|
|
29
29
|
if (spec.state) {
|
|
30
30
|
var originalApply = spec.state.apply.bind(spec.state);
|
|
31
31
|
spec.state.apply = function (aTr, value, oldState, newState) {
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
33
|
var self = _assertThisInitialized(_this);
|
|
33
34
|
var tr = new Proxy(aTr, freezeUnsafeTransactionProperties({
|
|
34
35
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
@@ -53,6 +54,7 @@ export var InstrumentedPlugin = /*#__PURE__*/function (_SafePlugin) {
|
|
|
53
54
|
if (uiTracking.enabled && spec.view) {
|
|
54
55
|
var originalView = spec.view.bind(spec);
|
|
55
56
|
spec.view = function (editorView) {
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
56
58
|
var self = _assertThisInitialized(_this);
|
|
57
59
|
var measure = "\uD83E\uDD89".concat(self.key, "::view::update");
|
|
58
60
|
var view = originalView(editorView);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.
|
|
2
|
+
export var version = "195.6.1";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type * as EditorImports from '../index';
|
|
3
|
+
type EditorModules = {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
};
|
|
3
6
|
export type EditorModule = {
|
|
4
7
|
EditorContext: typeof EditorImports.EditorContext;
|
|
5
8
|
WithEditorActions: typeof EditorImports.WithEditorActions;
|
|
6
|
-
} &
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
};
|
|
9
|
+
} & EditorModules;
|
|
9
10
|
export interface Props {
|
|
10
11
|
placeholder?: string;
|
|
11
12
|
isExpanded?: boolean;
|
|
@@ -13,14 +14,13 @@ export interface Props {
|
|
|
13
14
|
renderEditor: (Editor: typeof EditorImports.Editor, modules: EditorModule) => JSX.Element;
|
|
14
15
|
}
|
|
15
16
|
export interface State {
|
|
16
|
-
editorModules?:
|
|
17
|
-
[x: string]: any;
|
|
18
|
-
};
|
|
17
|
+
editorModules?: EditorModules;
|
|
19
18
|
}
|
|
20
19
|
export default class CollapsedEditor extends React.Component<Props, State> {
|
|
21
|
-
static editorModules:
|
|
20
|
+
static editorModules: EditorModules;
|
|
22
21
|
state: State;
|
|
23
22
|
componentDidMount(): void;
|
|
24
23
|
loadEditorModules(): void;
|
|
25
24
|
render(): JSX.Element;
|
|
26
25
|
}
|
|
26
|
+
export {};
|
|
@@ -2,12 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import type EditorActions from '../actions';
|
|
4
4
|
import type { EditorProps } from '../editor';
|
|
5
|
-
export interface
|
|
6
|
-
onSave?: any;
|
|
7
|
-
onChange?: any;
|
|
8
|
-
onCancel?: any;
|
|
9
|
-
}
|
|
10
|
-
export interface EditorWithActionsProps extends EditorWithActionsPropsOverride {
|
|
5
|
+
export interface EditorWithActionsProps extends Omit<EditorProps, 'onSave' | 'onChange' | 'onCancel'> {
|
|
11
6
|
onSave?: (actions: EditorActions) => void;
|
|
12
7
|
onChange?: (actions: EditorActions) => void;
|
|
13
8
|
onCancel?: (actions: EditorActions) => void;
|
|
@@ -696,7 +696,81 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
696
696
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined, targetNodeId?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
697
697
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
698
698
|
};
|
|
699
|
-
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined
|
|
699
|
+
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mention", {
|
|
700
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined;
|
|
701
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
702
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
703
|
+
sharedState: {
|
|
704
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
705
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
706
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
707
|
+
};
|
|
708
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
709
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
710
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
711
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
712
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
713
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
714
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
715
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
716
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
717
|
+
sharedState: {
|
|
718
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
719
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
720
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
721
|
+
};
|
|
722
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
723
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
724
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
725
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
726
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
727
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
728
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
729
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
730
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
731
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
732
|
+
actions: {
|
|
733
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
734
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
735
|
+
insert: (props: {
|
|
736
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
737
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
738
|
+
query: string;
|
|
739
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
740
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
741
|
+
}) => boolean;
|
|
742
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
743
|
+
open: (props: {
|
|
744
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
745
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
746
|
+
query?: string | undefined;
|
|
747
|
+
}) => boolean;
|
|
748
|
+
close: (props: {
|
|
749
|
+
insertCurrentQueryAsRawText: boolean;
|
|
750
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
751
|
+
}) => boolean;
|
|
752
|
+
openAtTransaction: (props: {
|
|
753
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
754
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
755
|
+
query?: string | undefined;
|
|
756
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
757
|
+
};
|
|
758
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
759
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
760
|
+
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
761
|
+
commands: {
|
|
762
|
+
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
763
|
+
};
|
|
764
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
765
|
+
sharedState: import("@atlaskit/editor-plugin-mentions").MentionSharedState | undefined;
|
|
766
|
+
actions: {
|
|
767
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
768
|
+
announceMentionsInsertion: (mentionIds: {
|
|
769
|
+
localId: string;
|
|
770
|
+
id: string;
|
|
771
|
+
}[]) => void;
|
|
772
|
+
};
|
|
773
|
+
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
|
700
774
|
sharedState: {
|
|
701
775
|
lastContentPasted: import("@atlaskit/editor-plugin-paste").LastContentPasted | null;
|
|
702
776
|
};
|
|
@@ -2243,6 +2317,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2243
2317
|
sharedState: import("@atlaskit/editor-plugin-mentions").MentionSharedState | undefined;
|
|
2244
2318
|
actions: {
|
|
2245
2319
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2320
|
+
announceMentionsInsertion: (mentionIds: {
|
|
2321
|
+
localId: string;
|
|
2322
|
+
id: string;
|
|
2323
|
+
}[]) => void;
|
|
2246
2324
|
};
|
|
2247
2325
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
|
|
2248
2326
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -4935,7 +5013,81 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
4935
5013
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined, targetNodeId?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4936
5014
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4937
5015
|
};
|
|
4938
|
-
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined
|
|
5016
|
+
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mention", {
|
|
5017
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined;
|
|
5018
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
5019
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
5020
|
+
sharedState: {
|
|
5021
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
5022
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
5023
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
5024
|
+
};
|
|
5025
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5026
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5027
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5028
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
5029
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
5030
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
5031
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
5032
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
5033
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
5034
|
+
sharedState: {
|
|
5035
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
5036
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
5037
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
5038
|
+
};
|
|
5039
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5040
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5041
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5042
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
5043
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
5044
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5045
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5046
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5047
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
5048
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
5049
|
+
actions: {
|
|
5050
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5051
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5052
|
+
insert: (props: {
|
|
5053
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
5054
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
5055
|
+
query: string;
|
|
5056
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
5057
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
5058
|
+
}) => boolean;
|
|
5059
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
5060
|
+
open: (props: {
|
|
5061
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
5062
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
5063
|
+
query?: string | undefined;
|
|
5064
|
+
}) => boolean;
|
|
5065
|
+
close: (props: {
|
|
5066
|
+
insertCurrentQueryAsRawText: boolean;
|
|
5067
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
5068
|
+
}) => boolean;
|
|
5069
|
+
openAtTransaction: (props: {
|
|
5070
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
5071
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
5072
|
+
query?: string | undefined;
|
|
5073
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5074
|
+
};
|
|
5075
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
5076
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
5077
|
+
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
5078
|
+
commands: {
|
|
5079
|
+
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5080
|
+
};
|
|
5081
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
5082
|
+
sharedState: import("@atlaskit/editor-plugin-mentions").MentionSharedState | undefined;
|
|
5083
|
+
actions: {
|
|
5084
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
5085
|
+
announceMentionsInsertion: (mentionIds: {
|
|
5086
|
+
localId: string;
|
|
5087
|
+
id: string;
|
|
5088
|
+
}[]) => void;
|
|
5089
|
+
};
|
|
5090
|
+
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
|
4939
5091
|
sharedState: {
|
|
4940
5092
|
lastContentPasted: import("@atlaskit/editor-plugin-paste").LastContentPasted | null;
|
|
4941
5093
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
2
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
5
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
6
|
import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
@@ -15,9 +17,9 @@ export type LightPMPluginFactoryParams = {
|
|
|
15
17
|
providerFactory: ProviderFactory;
|
|
16
18
|
props: {};
|
|
17
19
|
prevProps?: {};
|
|
18
|
-
portalProviderAPI:
|
|
20
|
+
portalProviderAPI: PortalProviderAPI;
|
|
19
21
|
reactContext: () => EditorReactContext;
|
|
20
|
-
dispatchAnalyticsEvent:
|
|
22
|
+
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
21
23
|
featureFlags: FeatureFlags;
|
|
22
24
|
getIntl: () => IntlShape;
|
|
23
25
|
};
|