@atlaskit/editor-core 215.27.3 → 215.28.0
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 +12 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +5 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +0 -4
- package/dist/types/presets/universal.d.ts +0 -4
- package/dist/types/presets/useUniversalPreset.d.ts +0 -4
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +0 -4
- package/dist/types-ts4.5/presets/universal.d.ts +0 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +0 -4
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3323827ca91e6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3323827ca91e6) -
|
|
8
|
+
[ux] EDITOR-4139 Refactor existing image editing functionality into its own plugin
|
|
9
|
+
editor-plugin-media-editing
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 215.27.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -57,7 +57,7 @@ var SecondChildWrapper = function SecondChildWrapper(_ref3) {
|
|
|
57
57
|
}, children);
|
|
58
58
|
};
|
|
59
59
|
var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
60
|
-
var _editorAPI$toolbar, _useToolbarPortal;
|
|
60
|
+
var _editorAPI$toolbar, _editorAPI$toolbar2, _useToolbarPortal;
|
|
61
61
|
var editorAPI = _ref4.editorAPI,
|
|
62
62
|
beforeIcon = _ref4.beforeIcon,
|
|
63
63
|
toolbarDockingPosition = _ref4.toolbarDockingPosition,
|
|
@@ -67,10 +67,12 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
67
67
|
customPrimaryToolbarComponents = _ref4.customPrimaryToolbarComponents,
|
|
68
68
|
disabled = _ref4.disabled;
|
|
69
69
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
70
|
+
var contextualFormattingEnabled = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
|
|
70
71
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
71
72
|
var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
|
|
72
73
|
return component.key === _toolbar.TOOLBARS.PRIMARY_TOOLBAR;
|
|
73
74
|
});
|
|
75
|
+
var primaryToolbarDockingConfigEnabled = (0, _toolbar.shouldShowPrimaryToolbar)(contextualFormattingEnabled, toolbarDockingPosition);
|
|
74
76
|
|
|
75
77
|
// When a toolbar portal context is provided, render the toolbar inside a portal.
|
|
76
78
|
// Otherwise fall back to a fragment just to avoid forking rendering logic.
|
|
@@ -104,7 +106,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
104
106
|
showKeyline: showKeyline || ContextPanelWidth > 0
|
|
105
107
|
}, beforeIcon && /*#__PURE__*/_react.default.createElement("div", {
|
|
106
108
|
className: (0, _runtime.ax)([styles.mainToolbarIconBefore, (0, _expValEquals.expValEquals)('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
|
|
107
|
-
}, beforeIcon), (0, _expValEquals.expValEquals)('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null,
|
|
109
|
+
}, beforeIcon), (0, _expValEquals.expValEquals)('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && (0, _toolbar2.isToolbar)(toolbar) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || ((0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true) && (0, _coreUtils.isSSR)() || editorView) && ((0, _expValEquals.expValEquals)('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !(0, _coreUtils.isSSR)() : !(0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) || !(0, _coreUtils.isSSR)())) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
108
110
|
toolbar: toolbar,
|
|
109
111
|
components: components,
|
|
110
112
|
editorView: editorView,
|
|
@@ -117,7 +119,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
117
119
|
}, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/_react.default.createElement("div", {
|
|
118
120
|
"data-testid": 'before-primary-toolbar-components-plugin',
|
|
119
121
|
className: (0, _runtime.ax)([styles.beforePrimaryToolbarComponents])
|
|
120
|
-
}, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/_react.default.createElement(_ToolbarPortal.ToolbarPortalMountPoint, null)) :
|
|
122
|
+
}, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/_react.default.createElement(_ToolbarPortal.ToolbarPortalMountPoint, null)) : primaryToolbarDockingConfigEnabled && components && (0, _toolbar2.isToolbar)(toolbar) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && ((0, _expValEquals.expValEquals)('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !(0, _coreUtils.isSSR)() : !(0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) || !(0, _coreUtils.isSSR)())) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
121
123
|
toolbar: toolbar,
|
|
122
124
|
components: components,
|
|
123
125
|
editorView: editorView,
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
7
7
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
8
|
-
import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
8
|
+
import { shouldShowPrimaryToolbar, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
9
9
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -61,10 +61,12 @@ export const FullPageToolbarNext = ({
|
|
|
61
61
|
customPrimaryToolbarComponents,
|
|
62
62
|
disabled
|
|
63
63
|
}) => {
|
|
64
|
-
var _editorAPI$toolbar, _useToolbarPortal;
|
|
64
|
+
var _editorAPI$toolbar, _editorAPI$toolbar2, _useToolbarPortal;
|
|
65
65
|
const components = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
66
|
+
const contextualFormattingEnabled = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
|
|
66
67
|
const intl = useIntl();
|
|
67
68
|
const toolbar = components === null || components === void 0 ? void 0 : components.find(component => component.key === TOOLBARS.PRIMARY_TOOLBAR);
|
|
69
|
+
const primaryToolbarDockingConfigEnabled = shouldShowPrimaryToolbar(contextualFormattingEnabled, toolbarDockingPosition);
|
|
68
70
|
|
|
69
71
|
// When a toolbar portal context is provided, render the toolbar inside a portal.
|
|
70
72
|
// Otherwise fall back to a fragment just to avoid forking rendering logic.
|
|
@@ -99,7 +101,7 @@ export const FullPageToolbarNext = ({
|
|
|
99
101
|
showKeyline: showKeyline || ContextPanelWidth > 0
|
|
100
102
|
}, beforeIcon && /*#__PURE__*/React.createElement("div", {
|
|
101
103
|
className: ax([styles.mainToolbarIconBefore, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
|
|
102
|
-
}, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null,
|
|
104
|
+
}, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
103
105
|
toolbar: toolbar,
|
|
104
106
|
components: components,
|
|
105
107
|
editorView: editorView,
|
|
@@ -112,7 +114,7 @@ export const FullPageToolbarNext = ({
|
|
|
112
114
|
}, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
|
|
113
115
|
"data-testid": 'before-primary-toolbar-components-plugin',
|
|
114
116
|
className: ax([styles.beforePrimaryToolbarComponents])
|
|
115
|
-
}, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) :
|
|
117
|
+
}, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) : primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
116
118
|
toolbar: toolbar,
|
|
117
119
|
components: components,
|
|
118
120
|
editorView: editorView,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "215.27.3";
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
7
7
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
8
|
-
import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
8
|
+
import { shouldShowPrimaryToolbar, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
9
9
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -49,7 +49,7 @@ var SecondChildWrapper = function SecondChildWrapper(_ref3) {
|
|
|
49
49
|
}, children);
|
|
50
50
|
};
|
|
51
51
|
export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
52
|
-
var _editorAPI$toolbar, _useToolbarPortal;
|
|
52
|
+
var _editorAPI$toolbar, _editorAPI$toolbar2, _useToolbarPortal;
|
|
53
53
|
var editorAPI = _ref4.editorAPI,
|
|
54
54
|
beforeIcon = _ref4.beforeIcon,
|
|
55
55
|
toolbarDockingPosition = _ref4.toolbarDockingPosition,
|
|
@@ -59,10 +59,12 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
59
59
|
customPrimaryToolbarComponents = _ref4.customPrimaryToolbarComponents,
|
|
60
60
|
disabled = _ref4.disabled;
|
|
61
61
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
62
|
+
var contextualFormattingEnabled = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
|
|
62
63
|
var intl = useIntl();
|
|
63
64
|
var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
|
|
64
65
|
return component.key === TOOLBARS.PRIMARY_TOOLBAR;
|
|
65
66
|
});
|
|
67
|
+
var primaryToolbarDockingConfigEnabled = shouldShowPrimaryToolbar(contextualFormattingEnabled, toolbarDockingPosition);
|
|
66
68
|
|
|
67
69
|
// When a toolbar portal context is provided, render the toolbar inside a portal.
|
|
68
70
|
// Otherwise fall back to a fragment just to avoid forking rendering logic.
|
|
@@ -96,7 +98,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
96
98
|
showKeyline: showKeyline || ContextPanelWidth > 0
|
|
97
99
|
}, beforeIcon && /*#__PURE__*/React.createElement("div", {
|
|
98
100
|
className: ax([styles.mainToolbarIconBefore, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
|
|
99
|
-
}, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null,
|
|
101
|
+
}, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
100
102
|
toolbar: toolbar,
|
|
101
103
|
components: components,
|
|
102
104
|
editorView: editorView,
|
|
@@ -109,7 +111,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
109
111
|
}, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
|
|
110
112
|
"data-testid": 'before-primary-toolbar-components-plugin',
|
|
111
113
|
className: ax([styles.beforePrimaryToolbarComponents])
|
|
112
|
-
}, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) :
|
|
114
|
+
}, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) : primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
113
115
|
toolbar: toolbar,
|
|
114
116
|
components: components,
|
|
115
117
|
editorView: editorView,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "215.27.3";
|
|
@@ -174,9 +174,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
174
174
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
175
175
|
};
|
|
176
176
|
commands: {
|
|
177
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
178
177
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
179
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
180
178
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
181
179
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
182
180
|
};
|
|
@@ -257,9 +255,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
257
255
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
258
256
|
};
|
|
259
257
|
commands: {
|
|
260
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
261
258
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
262
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
263
259
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
264
260
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
265
261
|
};
|
|
@@ -247,9 +247,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
247
247
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
248
248
|
};
|
|
249
249
|
commands: {
|
|
250
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
251
250
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
252
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
253
251
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
254
252
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
255
253
|
};
|
|
@@ -330,9 +328,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
330
328
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
331
329
|
};
|
|
332
330
|
commands: {
|
|
333
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
334
331
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
335
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
336
332
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
337
333
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
338
334
|
};
|
|
@@ -174,9 +174,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
174
174
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
175
175
|
};
|
|
176
176
|
commands: {
|
|
177
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
178
177
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
179
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
180
178
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
181
179
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
182
180
|
};
|
|
@@ -257,9 +255,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
257
255
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
258
256
|
};
|
|
259
257
|
commands: {
|
|
260
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
261
258
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
262
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
263
259
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
264
260
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
265
261
|
};
|
|
@@ -295,9 +295,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
295
295
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
296
296
|
};
|
|
297
297
|
commands: {
|
|
298
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
299
298
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
300
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
301
299
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
302
300
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
303
301
|
};
|
|
@@ -389,9 +387,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
389
387
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
390
388
|
};
|
|
391
389
|
commands: {
|
|
392
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
393
390
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
394
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
395
391
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
396
392
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
397
393
|
};
|
|
@@ -368,9 +368,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
368
368
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
369
369
|
};
|
|
370
370
|
commands: {
|
|
371
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
372
371
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
373
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
374
372
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
375
373
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
376
374
|
};
|
|
@@ -462,9 +460,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
462
460
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
463
461
|
};
|
|
464
462
|
commands: {
|
|
465
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
466
463
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
467
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
468
464
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
469
465
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
470
466
|
};
|
|
@@ -295,9 +295,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
295
295
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
296
296
|
};
|
|
297
297
|
commands: {
|
|
298
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
299
298
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
300
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
301
299
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
302
300
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
303
301
|
};
|
|
@@ -389,9 +387,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
389
387
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
390
388
|
};
|
|
391
389
|
commands: {
|
|
392
|
-
hideImageEditor: import("@atlaskit/editor-common/types").EditorCommand;
|
|
393
390
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
394
|
-
showImageEditor: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
395
391
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
396
392
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
397
393
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.28.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/editor-plugin-connectivity": "^6.1.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^6.2.0",
|
|
53
53
|
"@atlaskit/editor-plugin-user-preferences": "^4.0.0",
|
|
54
|
-
"@atlaskit/editor-plugins": "^11.
|
|
54
|
+
"@atlaskit/editor-plugins": "^11.2.0",
|
|
55
55
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
56
56
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
57
57
|
"@atlaskit/editor-ssr-renderer": "^1.6.0",
|
|
@@ -361,6 +361,9 @@
|
|
|
361
361
|
"platform_editor_toolbar_aifc_patch_7": {
|
|
362
362
|
"type": "boolean"
|
|
363
363
|
},
|
|
364
|
+
"platform_editor_toolbar_aifc_placement_overridden": {
|
|
365
|
+
"type": "boolean"
|
|
366
|
+
},
|
|
364
367
|
"confluence-whiteboards-quick-insert-l10n-eligible": {
|
|
365
368
|
"type": "boolean"
|
|
366
369
|
},
|