@atlaskit/editor-core 195.3.2 → 195.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/create-editor/{create-preset.js → create-universal-preset.js} +12 -3
- package/dist/cjs/preset-universal.js +1 -1
- package/dist/cjs/presets/universal.js +15 -4
- package/dist/cjs/presets/useUniversalPreset.js +12 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/{create-preset.js → create-universal-preset.js} +13 -3
- package/dist/es2019/preset-universal.js +1 -1
- package/dist/es2019/presets/universal.js +14 -1
- package/dist/es2019/presets/useUniversalPreset.js +12 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/{create-preset.js → create-universal-preset.js} +12 -3
- package/dist/esm/preset-universal.js +1 -1
- package/dist/esm/presets/universal.js +15 -3
- package/dist/esm/presets/useUniversalPreset.js +12 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/{create-preset.d.ts → create-universal-preset.d.ts} +22 -2
- package/dist/types/preset-universal.d.ts +2 -1
- package/dist/types/presets/universal.d.ts +33 -2
- package/dist/types/presets/useUniversalPreset.d.ts +19 -2
- package/dist/types-ts4.5/create-editor/{create-preset.d.ts → create-universal-preset.d.ts} +26 -2
- package/dist/types-ts4.5/preset-universal.d.ts +2 -1
- package/dist/types-ts4.5/presets/universal.d.ts +37 -2
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +23 -2
- package/package.json +21 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`46b889c01d03e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/46b889c01d03e) -
|
|
8
|
+
[ux] Clean up Reaact 18 Feature Flags
|
|
9
|
+
|
|
10
|
+
## 195.4.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [#128976](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128976)
|
|
15
|
+
[`e9213be1f6540`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9213be1f6540) -
|
|
16
|
+
[ED-24560] Support adding new plugin configuration from Confluence when using useUniversalPreset
|
|
17
|
+
|
|
3
18
|
## 195.3.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -4,15 +4,24 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.createUniversalPreset = createUniversalPreset;
|
|
8
8
|
var _universal = _interopRequireDefault(require("../presets/universal"));
|
|
9
9
|
var _createPluginsList = require("./create-plugins-list");
|
|
10
10
|
var _featureFlagsFromProps = require("./feature-flags-from-props");
|
|
11
11
|
// Separate file, we should not accidentally import this into the `ComposableEditor`
|
|
12
12
|
// otherwise it will blow up the bundle size.
|
|
13
|
-
function
|
|
13
|
+
function createUniversalPreset(_ref) {
|
|
14
14
|
var _props$dangerouslyApp;
|
|
15
|
-
var
|
|
15
|
+
var props = _ref.props,
|
|
16
|
+
prevProps = _ref.prevProps,
|
|
17
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration;
|
|
18
|
+
var preset = (0, _universal.default)({
|
|
19
|
+
appearance: props.appearance,
|
|
20
|
+
props: (0, _createPluginsList.getDefaultPresetOptionsFromEditorProps)(props),
|
|
21
|
+
initialPluginConfiguration: initialPluginConfiguration,
|
|
22
|
+
featureFlags: (0, _featureFlagsFromProps.createFeatureFlagsFromProps)(props),
|
|
23
|
+
prevAppearance: prevProps === null || prevProps === void 0 ? void 0 : prevProps.appearance
|
|
24
|
+
});
|
|
16
25
|
return withDangerouslyAppendPlugins(preset)((_props$dangerouslyApp = props.dangerouslyAppendPlugins) === null || _props$dangerouslyApp === void 0 ? void 0 : _props$dangerouslyApp.__plugins);
|
|
17
26
|
}
|
|
18
27
|
function withDangerouslyAppendPlugins(preset) {
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "createUniversalPresetInternal", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
10
|
return _universal.default;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = createUniversalPresetInternal;
|
|
8
8
|
exports.isExpandInsertionEnabled = isExpandInsertionEnabled;
|
|
9
9
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -60,6 +60,11 @@ var _versionWrapper = require("../version-wrapper");
|
|
|
60
60
|
var _default = require("./default");
|
|
61
61
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
62
62
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
63
|
+
/**
|
|
64
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
65
|
+
* to configuring plugins.
|
|
66
|
+
*/
|
|
67
|
+
|
|
63
68
|
/**
|
|
64
69
|
* Creates a preset with all of the available plugins.
|
|
65
70
|
* Basis for create-plugins-list and can be used to migrate from Editor -> EditorNext (Presets project)
|
|
@@ -71,8 +76,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
71
76
|
* @param prevAppearance The appearance of the editor in the previous render
|
|
72
77
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
73
78
|
*/
|
|
74
|
-
function
|
|
79
|
+
function createUniversalPresetInternal(_ref) {
|
|
75
80
|
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
81
|
+
var appearance = _ref.appearance,
|
|
82
|
+
props = _ref.props,
|
|
83
|
+
featureFlags = _ref.featureFlags,
|
|
84
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration,
|
|
85
|
+
prevAppearance = _ref.prevAppearance,
|
|
86
|
+
createAnalyticsEvent = _ref.createAnalyticsEvent;
|
|
76
87
|
var isMobile = appearance === 'mobile';
|
|
77
88
|
var isComment = appearance === 'comment';
|
|
78
89
|
var isChromeless = appearance === 'chromeless';
|
|
@@ -224,8 +235,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
224
235
|
}]);
|
|
225
236
|
return finalPreset;
|
|
226
237
|
}
|
|
227
|
-
function isExpandInsertionEnabled(
|
|
228
|
-
var allowExpand =
|
|
238
|
+
function isExpandInsertionEnabled(_ref2) {
|
|
239
|
+
var allowExpand = _ref2.allowExpand;
|
|
229
240
|
if (allowExpand && (0, _typeof2.default)(allowExpand) === 'object') {
|
|
230
241
|
return !!allowExpand.allowInsertion;
|
|
231
242
|
}
|
|
@@ -8,13 +8,18 @@ exports.default = useUniversalPreset;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
|
-
var
|
|
11
|
+
var _createUniversalPreset = require("../create-editor/create-universal-preset");
|
|
12
12
|
var _presetUtils = require("../create-editor/preset-utils");
|
|
13
13
|
function useUniversalPreset(_ref) {
|
|
14
|
-
var props = _ref.props
|
|
14
|
+
var props = _ref.props,
|
|
15
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration;
|
|
15
16
|
var previousEditorProps = (0, _hooks.usePreviousState)(props);
|
|
16
17
|
var _useState = (0, _react.useState)(function () {
|
|
17
|
-
return (0,
|
|
18
|
+
return (0, _createUniversalPreset.createUniversalPreset)({
|
|
19
|
+
props: props,
|
|
20
|
+
prevProps: previousEditorProps,
|
|
21
|
+
initialPluginConfiguration: initialPluginConfiguration
|
|
22
|
+
});
|
|
18
23
|
}),
|
|
19
24
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
20
25
|
preset = _useState2[0],
|
|
@@ -27,7 +32,10 @@ function useUniversalPreset(_ref) {
|
|
|
27
32
|
if (!recreate) {
|
|
28
33
|
return;
|
|
29
34
|
}
|
|
30
|
-
setPreset((0,
|
|
35
|
+
setPreset((0, _createUniversalPreset.createUniversalPreset)({
|
|
36
|
+
props: props,
|
|
37
|
+
prevProps: previousEditorProps
|
|
38
|
+
}));
|
|
31
39
|
}, [props, previousEditorProps]);
|
|
32
40
|
return preset;
|
|
33
41
|
}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import createUniversalPresetInternal from '../presets/universal';
|
|
2
2
|
import { getDefaultPresetOptionsFromEditorProps } from './create-plugins-list';
|
|
3
3
|
import { createFeatureFlagsFromProps } from './feature-flags-from-props';
|
|
4
4
|
|
|
5
5
|
// Separate file, we should not accidentally import this into the `ComposableEditor`
|
|
6
6
|
// otherwise it will blow up the bundle size.
|
|
7
|
-
export function
|
|
7
|
+
export function createUniversalPreset({
|
|
8
|
+
props,
|
|
9
|
+
prevProps,
|
|
10
|
+
initialPluginConfiguration
|
|
11
|
+
}) {
|
|
8
12
|
var _props$dangerouslyApp;
|
|
9
|
-
const preset =
|
|
13
|
+
const preset = createUniversalPresetInternal({
|
|
14
|
+
appearance: props.appearance,
|
|
15
|
+
props: getDefaultPresetOptionsFromEditorProps(props),
|
|
16
|
+
initialPluginConfiguration: initialPluginConfiguration,
|
|
17
|
+
featureFlags: createFeatureFlagsFromProps(props),
|
|
18
|
+
prevAppearance: prevProps === null || prevProps === void 0 ? void 0 : prevProps.appearance
|
|
19
|
+
});
|
|
10
20
|
return withDangerouslyAppendPlugins(preset)((_props$dangerouslyApp = props.dangerouslyAppendPlugins) === null || _props$dangerouslyApp === void 0 ? void 0 : _props$dangerouslyApp.__plugins);
|
|
11
21
|
}
|
|
12
22
|
function withDangerouslyAppendPlugins(preset) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as useUniversalPreset } from './presets/useUniversalPreset';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as createUniversalPresetInternal } from './presets/universal';
|
|
@@ -48,6 +48,12 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
48
48
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
49
49
|
import { version as coreVersion } from '../version-wrapper';
|
|
50
50
|
import { createDefaultPreset } from './default';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
54
|
+
* to configuring plugins.
|
|
55
|
+
*/
|
|
56
|
+
|
|
51
57
|
/**
|
|
52
58
|
* Creates a preset with all of the available plugins.
|
|
53
59
|
* Basis for create-plugins-list and can be used to migrate from Editor -> EditorNext (Presets project)
|
|
@@ -59,7 +65,14 @@ import { createDefaultPreset } from './default';
|
|
|
59
65
|
* @param prevAppearance The appearance of the editor in the previous render
|
|
60
66
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
61
67
|
*/
|
|
62
|
-
export default function
|
|
68
|
+
export default function createUniversalPresetInternal({
|
|
69
|
+
appearance,
|
|
70
|
+
props,
|
|
71
|
+
featureFlags,
|
|
72
|
+
initialPluginConfiguration,
|
|
73
|
+
prevAppearance,
|
|
74
|
+
createAnalyticsEvent
|
|
75
|
+
}) {
|
|
63
76
|
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
64
77
|
const isMobile = appearance === 'mobile';
|
|
65
78
|
const isComment = appearance === 'comment';
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { useLayoutEffect, useState } from 'react';
|
|
2
2
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
3
|
-
import {
|
|
3
|
+
import { createUniversalPreset } from '../create-editor/create-universal-preset';
|
|
4
4
|
import { shouldRecreatePreset } from '../create-editor/preset-utils';
|
|
5
5
|
export default function useUniversalPreset({
|
|
6
|
-
props
|
|
6
|
+
props,
|
|
7
|
+
initialPluginConfiguration
|
|
7
8
|
}) {
|
|
8
9
|
const previousEditorProps = usePreviousState(props);
|
|
9
|
-
const [preset, setPreset] = useState(() =>
|
|
10
|
+
const [preset, setPreset] = useState(() => createUniversalPreset({
|
|
11
|
+
props,
|
|
12
|
+
prevProps: previousEditorProps,
|
|
13
|
+
initialPluginConfiguration
|
|
14
|
+
}));
|
|
10
15
|
useLayoutEffect(() => {
|
|
11
16
|
if (!previousEditorProps) {
|
|
12
17
|
return;
|
|
@@ -15,7 +20,10 @@ export default function useUniversalPreset({
|
|
|
15
20
|
if (!recreate) {
|
|
16
21
|
return;
|
|
17
22
|
}
|
|
18
|
-
setPreset(
|
|
23
|
+
setPreset(createUniversalPreset({
|
|
24
|
+
props,
|
|
25
|
+
prevProps: previousEditorProps
|
|
26
|
+
}));
|
|
19
27
|
}, [props, previousEditorProps]);
|
|
20
28
|
return preset;
|
|
21
29
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.3
|
|
2
|
+
export const version = "195.4.3";
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import createUniversalPresetInternal from '../presets/universal';
|
|
2
2
|
import { getDefaultPresetOptionsFromEditorProps } from './create-plugins-list';
|
|
3
3
|
import { createFeatureFlagsFromProps } from './feature-flags-from-props';
|
|
4
4
|
|
|
5
5
|
// Separate file, we should not accidentally import this into the `ComposableEditor`
|
|
6
6
|
// otherwise it will blow up the bundle size.
|
|
7
|
-
export function
|
|
7
|
+
export function createUniversalPreset(_ref) {
|
|
8
8
|
var _props$dangerouslyApp;
|
|
9
|
-
var
|
|
9
|
+
var props = _ref.props,
|
|
10
|
+
prevProps = _ref.prevProps,
|
|
11
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration;
|
|
12
|
+
var preset = createUniversalPresetInternal({
|
|
13
|
+
appearance: props.appearance,
|
|
14
|
+
props: getDefaultPresetOptionsFromEditorProps(props),
|
|
15
|
+
initialPluginConfiguration: initialPluginConfiguration,
|
|
16
|
+
featureFlags: createFeatureFlagsFromProps(props),
|
|
17
|
+
prevAppearance: prevProps === null || prevProps === void 0 ? void 0 : prevProps.appearance
|
|
18
|
+
});
|
|
10
19
|
return withDangerouslyAppendPlugins(preset)((_props$dangerouslyApp = props.dangerouslyAppendPlugins) === null || _props$dangerouslyApp === void 0 ? void 0 : _props$dangerouslyApp.__plugins);
|
|
11
20
|
}
|
|
12
21
|
function withDangerouslyAppendPlugins(preset) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as useUniversalPreset } from './presets/useUniversalPreset';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as createUniversalPresetInternal } from './presets/universal';
|
|
@@ -52,6 +52,12 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
52
52
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
53
53
|
import { version as coreVersion } from '../version-wrapper';
|
|
54
54
|
import { createDefaultPreset } from './default';
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
58
|
+
* to configuring plugins.
|
|
59
|
+
*/
|
|
60
|
+
|
|
55
61
|
/**
|
|
56
62
|
* Creates a preset with all of the available plugins.
|
|
57
63
|
* Basis for create-plugins-list and can be used to migrate from Editor -> EditorNext (Presets project)
|
|
@@ -63,8 +69,14 @@ import { createDefaultPreset } from './default';
|
|
|
63
69
|
* @param prevAppearance The appearance of the editor in the previous render
|
|
64
70
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
65
71
|
*/
|
|
66
|
-
export default function
|
|
72
|
+
export default function createUniversalPresetInternal(_ref) {
|
|
67
73
|
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
74
|
+
var appearance = _ref.appearance,
|
|
75
|
+
props = _ref.props,
|
|
76
|
+
featureFlags = _ref.featureFlags,
|
|
77
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration,
|
|
78
|
+
prevAppearance = _ref.prevAppearance,
|
|
79
|
+
createAnalyticsEvent = _ref.createAnalyticsEvent;
|
|
68
80
|
var isMobile = appearance === 'mobile';
|
|
69
81
|
var isComment = appearance === 'comment';
|
|
70
82
|
var isChromeless = appearance === 'chromeless';
|
|
@@ -216,8 +228,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
216
228
|
}]);
|
|
217
229
|
return finalPreset;
|
|
218
230
|
}
|
|
219
|
-
export function isExpandInsertionEnabled(
|
|
220
|
-
var allowExpand =
|
|
231
|
+
export function isExpandInsertionEnabled(_ref2) {
|
|
232
|
+
var allowExpand = _ref2.allowExpand;
|
|
221
233
|
if (allowExpand && _typeof(allowExpand) === 'object') {
|
|
222
234
|
return !!allowExpand.allowInsertion;
|
|
223
235
|
}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useLayoutEffect, useState } from 'react';
|
|
3
3
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
4
|
-
import {
|
|
4
|
+
import { createUniversalPreset } from '../create-editor/create-universal-preset';
|
|
5
5
|
import { shouldRecreatePreset } from '../create-editor/preset-utils';
|
|
6
6
|
export default function useUniversalPreset(_ref) {
|
|
7
|
-
var props = _ref.props
|
|
7
|
+
var props = _ref.props,
|
|
8
|
+
initialPluginConfiguration = _ref.initialPluginConfiguration;
|
|
8
9
|
var previousEditorProps = usePreviousState(props);
|
|
9
10
|
var _useState = useState(function () {
|
|
10
|
-
return
|
|
11
|
+
return createUniversalPreset({
|
|
12
|
+
props: props,
|
|
13
|
+
prevProps: previousEditorProps,
|
|
14
|
+
initialPluginConfiguration: initialPluginConfiguration
|
|
15
|
+
});
|
|
11
16
|
}),
|
|
12
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13
18
|
preset = _useState2[0],
|
|
@@ -20,7 +25,10 @@ export default function useUniversalPreset(_ref) {
|
|
|
20
25
|
if (!recreate) {
|
|
21
26
|
return;
|
|
22
27
|
}
|
|
23
|
-
setPreset(
|
|
28
|
+
setPreset(createUniversalPreset({
|
|
29
|
+
props: props,
|
|
30
|
+
prevProps: previousEditorProps
|
|
31
|
+
}));
|
|
24
32
|
}, [props, previousEditorProps]);
|
|
25
33
|
return preset;
|
|
26
34
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.3
|
|
2
|
+
export var version = "195.4.3";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type InitialPluginConfiguration } from '../presets/universal';
|
|
2
3
|
import type { EditorProps } from '../types';
|
|
3
|
-
export declare function
|
|
4
|
+
export declare function createUniversalPreset({ props, prevProps, initialPluginConfiguration, }: {
|
|
5
|
+
props: EditorProps;
|
|
6
|
+
prevProps?: EditorProps;
|
|
7
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
8
|
+
}): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
4
9
|
pluginConfiguration: {
|
|
5
10
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
6
11
|
} | undefined;
|
|
@@ -2255,7 +2260,22 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2255
2260
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2256
2261
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2257
2262
|
}, undefined>>];
|
|
2258
|
-
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2263
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2264
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2265
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2266
|
+
sharedState: {
|
|
2267
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2268
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2269
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2270
|
+
};
|
|
2271
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2272
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2273
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2274
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2275
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2276
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2277
|
+
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
2278
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2259
2279
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2260
2280
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2261
2281
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as useUniversalPreset } from './presets/useUniversalPreset';
|
|
2
|
-
export {
|
|
2
|
+
export { type InitialPluginConfiguration } from './presets/universal';
|
|
3
|
+
export { default as createUniversalPresetInternal } from './presets/universal';
|
|
@@ -6,6 +6,11 @@ import type { EditorPluginFeatureProps, EditorProviderProps, EditorSharedPropsWi
|
|
|
6
6
|
import type { FeatureFlags } from '../types/feature-flags';
|
|
7
7
|
import type { DefaultPresetPluginOptions } from './default';
|
|
8
8
|
type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPlugins & Omit<EditorPluginFeatureProps, 'placeholder'> & EditorProviderProps;
|
|
9
|
+
/**
|
|
10
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
11
|
+
* to configuring plugins.
|
|
12
|
+
*/
|
|
13
|
+
export type InitialPluginConfiguration = {};
|
|
9
14
|
/**
|
|
10
15
|
* Creates a preset with all of the available plugins.
|
|
11
16
|
* Basis for create-plugins-list and can be used to migrate from Editor -> EditorNext (Presets project)
|
|
@@ -17,7 +22,18 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
|
|
|
17
22
|
* @param prevAppearance The appearance of the editor in the previous render
|
|
18
23
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
19
24
|
*/
|
|
20
|
-
export default function
|
|
25
|
+
export default function createUniversalPresetInternal({ appearance, props, featureFlags, initialPluginConfiguration, prevAppearance, createAnalyticsEvent, }: {
|
|
26
|
+
appearance: EditorAppearance | undefined;
|
|
27
|
+
props: UniversalPresetProps;
|
|
28
|
+
featureFlags: FeatureFlags;
|
|
29
|
+
/**
|
|
30
|
+
* Allows configuring plugins as the universal preset blocks direct access
|
|
31
|
+
* to configuring plugins.
|
|
32
|
+
*/
|
|
33
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
34
|
+
prevAppearance?: EditorAppearance;
|
|
35
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
36
|
+
}): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
21
37
|
pluginConfiguration: {
|
|
22
38
|
appearance?: EditorAppearance | undefined;
|
|
23
39
|
} | undefined;
|
|
@@ -2272,7 +2288,22 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2272
2288
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2273
2289
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2274
2290
|
}, undefined>>];
|
|
2275
|
-
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2291
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2292
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2293
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2294
|
+
sharedState: {
|
|
2295
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2296
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2297
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2298
|
+
};
|
|
2299
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2300
|
+
pluginConfiguration: FeatureFlags;
|
|
2301
|
+
sharedState: FeatureFlags;
|
|
2302
|
+
}, FeatureFlags>>];
|
|
2303
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2304
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2305
|
+
sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
|
|
2306
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2276
2307
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2277
2308
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2278
2309
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorProps } from '../types/editor-props';
|
|
3
|
+
import { type InitialPluginConfiguration } from './universal';
|
|
3
4
|
interface PresetProps {
|
|
4
5
|
props: EditorProps;
|
|
6
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
5
7
|
}
|
|
6
|
-
export default function useUniversalPreset({ props }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"codeBidiWarning", {
|
|
8
|
+
export default function useUniversalPreset({ props, initialPluginConfiguration }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"codeBidiWarning", {
|
|
7
9
|
pluginConfiguration: {
|
|
8
10
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
9
11
|
} | undefined;
|
|
@@ -2258,7 +2260,22 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2258
2260
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
2259
2261
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2260
2262
|
}, undefined>>];
|
|
2261
|
-
}, undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"mediaInsert", {
|
|
2263
|
+
}, undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"mediaInsert", {
|
|
2264
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
2265
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2266
|
+
sharedState: {
|
|
2267
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2268
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2269
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2270
|
+
};
|
|
2271
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
2272
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2273
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2274
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2275
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2276
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2277
|
+
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
2278
|
+
}, undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"media", {
|
|
2262
2279
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2263
2280
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
2264
2281
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type InitialPluginConfiguration } from '../presets/universal';
|
|
2
3
|
import type { EditorProps } from '../types';
|
|
3
|
-
export declare function
|
|
4
|
+
export declare function createUniversalPreset({ props, prevProps, initialPluginConfiguration, }: {
|
|
5
|
+
props: EditorProps;
|
|
6
|
+
prevProps?: EditorProps;
|
|
7
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
8
|
+
}): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
|
|
4
9
|
"codeBidiWarning",
|
|
5
10
|
"pasteOptionsToolbarPlugin",
|
|
6
11
|
import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">,
|
|
@@ -2832,7 +2837,26 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2832
2837
|
}, undefined>>
|
|
2833
2838
|
];
|
|
2834
2839
|
}, undefined> | undefined,
|
|
2835
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2840
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2841
|
+
dependencies: [
|
|
2842
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2843
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2844
|
+
sharedState: {
|
|
2845
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2846
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2847
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2848
|
+
};
|
|
2849
|
+
dependencies: [
|
|
2850
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2851
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2852
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2853
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2854
|
+
];
|
|
2855
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2856
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2857
|
+
];
|
|
2858
|
+
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
2859
|
+
}, undefined> | undefined,
|
|
2836
2860
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2837
2861
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2838
2862
|
dependencies: [
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as useUniversalPreset } from './presets/useUniversalPreset';
|
|
2
|
-
export {
|
|
2
|
+
export { type InitialPluginConfiguration } from './presets/universal';
|
|
3
|
+
export { default as createUniversalPresetInternal } from './presets/universal';
|
|
@@ -6,6 +6,11 @@ import type { EditorPluginFeatureProps, EditorProviderProps, EditorSharedPropsWi
|
|
|
6
6
|
import type { FeatureFlags } from '../types/feature-flags';
|
|
7
7
|
import type { DefaultPresetPluginOptions } from './default';
|
|
8
8
|
type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPlugins & Omit<EditorPluginFeatureProps, 'placeholder'> & EditorProviderProps;
|
|
9
|
+
/**
|
|
10
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
11
|
+
* to configuring plugins.
|
|
12
|
+
*/
|
|
13
|
+
export type InitialPluginConfiguration = {};
|
|
9
14
|
/**
|
|
10
15
|
* Creates a preset with all of the available plugins.
|
|
11
16
|
* Basis for create-plugins-list and can be used to migrate from Editor -> EditorNext (Presets project)
|
|
@@ -17,7 +22,18 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
|
|
|
17
22
|
* @param prevAppearance The appearance of the editor in the previous render
|
|
18
23
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
19
24
|
*/
|
|
20
|
-
export default function
|
|
25
|
+
export default function createUniversalPresetInternal({ appearance, props, featureFlags, initialPluginConfiguration, prevAppearance, createAnalyticsEvent, }: {
|
|
26
|
+
appearance: EditorAppearance | undefined;
|
|
27
|
+
props: UniversalPresetProps;
|
|
28
|
+
featureFlags: FeatureFlags;
|
|
29
|
+
/**
|
|
30
|
+
* Allows configuring plugins as the universal preset blocks direct access
|
|
31
|
+
* to configuring plugins.
|
|
32
|
+
*/
|
|
33
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
34
|
+
prevAppearance?: EditorAppearance;
|
|
35
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
36
|
+
}): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
|
|
21
37
|
"codeBidiWarning",
|
|
22
38
|
"pasteOptionsToolbarPlugin",
|
|
23
39
|
import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">,
|
|
@@ -2849,7 +2865,26 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2849
2865
|
}, undefined>>
|
|
2850
2866
|
];
|
|
2851
2867
|
}, undefined> | undefined,
|
|
2852
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2868
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {
|
|
2869
|
+
dependencies: [
|
|
2870
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2871
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2872
|
+
sharedState: {
|
|
2873
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2874
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2875
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2876
|
+
};
|
|
2877
|
+
dependencies: [
|
|
2878
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2879
|
+
pluginConfiguration: FeatureFlags;
|
|
2880
|
+
sharedState: FeatureFlags;
|
|
2881
|
+
}, FeatureFlags>>
|
|
2882
|
+
];
|
|
2883
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2884
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2885
|
+
];
|
|
2886
|
+
sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
|
|
2887
|
+
}, undefined> | undefined,
|
|
2853
2888
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2854
2889
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2855
2890
|
dependencies: [
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorProps } from '../types/editor-props';
|
|
3
|
+
import { type InitialPluginConfiguration } from './universal';
|
|
3
4
|
interface PresetProps {
|
|
4
5
|
props: EditorProps;
|
|
6
|
+
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
5
7
|
}
|
|
6
|
-
export default function useUniversalPreset({ props }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
|
|
8
|
+
export default function useUniversalPreset({ props, initialPluginConfiguration }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
|
|
7
9
|
"codeBidiWarning",
|
|
8
10
|
"pasteOptionsToolbarPlugin",
|
|
9
11
|
import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">,
|
|
@@ -2835,7 +2837,26 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2835
2837
|
}, undefined>>
|
|
2836
2838
|
];
|
|
2837
2839
|
}, undefined> | undefined,
|
|
2838
|
-
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"mediaInsert", {
|
|
2840
|
+
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"mediaInsert", {
|
|
2841
|
+
dependencies: [
|
|
2842
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
2843
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2844
|
+
sharedState: {
|
|
2845
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2846
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2847
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2848
|
+
};
|
|
2849
|
+
dependencies: [
|
|
2850
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
2851
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2852
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2853
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2854
|
+
];
|
|
2855
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2856
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2857
|
+
];
|
|
2858
|
+
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
2859
|
+
}, undefined> | undefined,
|
|
2839
2860
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"media", {
|
|
2840
2861
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2841
2862
|
dependencies: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.3
|
|
3
|
+
"version": "195.4.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
43
43
|
"@atlaskit/adf-schema": "^40.8.1",
|
|
44
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
45
|
-
"@atlaskit/analytics-next": "^10.
|
|
44
|
+
"@atlaskit/analytics-namespaced-context": "^6.11.0",
|
|
45
|
+
"@atlaskit/analytics-next": "^10.1.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
|
-
"@atlaskit/button": "^19.
|
|
48
|
-
"@atlaskit/editor-common": "^87.
|
|
47
|
+
"@atlaskit/button": "^19.2.0",
|
|
48
|
+
"@atlaskit/editor-common": "^87.9.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.6.0",
|
|
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.12.0",
|
|
54
54
|
"@atlaskit/media-card": "^78.0.0",
|
|
55
55
|
"@atlaskit/mention": "^23.2.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
|
-
"@atlaskit/spinner": "^16.
|
|
57
|
+
"@atlaskit/spinner": "^16.3.0",
|
|
58
58
|
"@atlaskit/task-decision": "^17.10.0",
|
|
59
|
-
"@atlaskit/theme": "^12.
|
|
60
|
-
"@atlaskit/tokens": "^1.
|
|
61
|
-
"@atlaskit/tooltip": "^18.
|
|
62
|
-
"@atlaskit/width-detector": "^4.
|
|
59
|
+
"@atlaskit/theme": "^12.12.0",
|
|
60
|
+
"@atlaskit/tokens": "^1.58.0",
|
|
61
|
+
"@atlaskit/tooltip": "^18.7.0",
|
|
62
|
+
"@atlaskit/width-detector": "^4.3.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
65
65
|
"@types/react-loadable": "^5.4.1",
|
|
@@ -80,35 +80,35 @@
|
|
|
80
80
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@af/editor-examples-helpers": "0.1.
|
|
83
|
+
"@af/editor-examples-helpers": "0.1.4",
|
|
84
84
|
"@af/editor-libra": "*",
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
|
-
"@atlaskit/adf-utils": "^19.
|
|
87
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
88
|
-
"@atlaskit/collab-provider": "9.37.
|
|
86
|
+
"@atlaskit/adf-utils": "^19.8.0",
|
|
87
|
+
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
88
|
+
"@atlaskit/collab-provider": "9.37.1",
|
|
89
89
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
90
90
|
"@atlaskit/editor-plugin-annotation": "1.19.0",
|
|
91
|
-
"@atlaskit/editor-plugin-card": "^2.
|
|
91
|
+
"@atlaskit/editor-plugin-card": "^2.12.0",
|
|
92
92
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
93
93
|
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
94
94
|
"@atlaskit/editor-plugin-paste": "^1.8.0",
|
|
95
95
|
"@atlaskit/editor-test-helpers": "*",
|
|
96
96
|
"@atlaskit/link-provider": "^1.14.0",
|
|
97
|
-
"@atlaskit/logo": "^14.
|
|
97
|
+
"@atlaskit/logo": "^14.2.0",
|
|
98
98
|
"@atlaskit/media-core": "^34.2.0",
|
|
99
99
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
100
100
|
"@atlaskit/media-test-helpers": "^34.0.0",
|
|
101
|
-
"@atlaskit/modal-dialog": "^12.
|
|
101
|
+
"@atlaskit/modal-dialog": "^12.15.0",
|
|
102
102
|
"@atlaskit/primitives": "^12.0.0",
|
|
103
103
|
"@atlaskit/renderer": "^109.46.0",
|
|
104
|
-
"@atlaskit/smart-card": "^27.
|
|
104
|
+
"@atlaskit/smart-card": "^27.14.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
106
|
-
"@atlaskit/toggle": "^13.
|
|
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.103",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^5.3.18",
|
|
114
114
|
"@testing-library/react": "^12.1.5",
|
|
@@ -243,10 +243,6 @@
|
|
|
243
243
|
"type": "boolean",
|
|
244
244
|
"referenceOnly": "true"
|
|
245
245
|
},
|
|
246
|
-
"platform.editor.codeblock-preserve-newlines_54r3m": {
|
|
247
|
-
"type": "boolean",
|
|
248
|
-
"referenceOnly": true
|
|
249
|
-
},
|
|
250
246
|
"platform.editor.live-view.no-editor-selection-in-view-mode": {
|
|
251
247
|
"type": "boolean"
|
|
252
248
|
},
|
|
@@ -260,10 +256,6 @@
|
|
|
260
256
|
"type": "boolean",
|
|
261
257
|
"referenceOnly": "true"
|
|
262
258
|
},
|
|
263
|
-
"platform.editor.simplify-inline-cards-in-code-blocks_jw6t1": {
|
|
264
|
-
"type": "boolean",
|
|
265
|
-
"referenceOnly": "true"
|
|
266
|
-
},
|
|
267
259
|
"platform.editor.core.increase-full-page-guttering": {
|
|
268
260
|
"type": "boolean"
|
|
269
261
|
},
|
|
@@ -286,14 +278,6 @@
|
|
|
286
278
|
"platform_editor_table_support_in_comment": {
|
|
287
279
|
"type": "boolean"
|
|
288
280
|
},
|
|
289
|
-
"editor_react_18_fix_table_delete_col_decorations": {
|
|
290
|
-
"type": "boolean",
|
|
291
|
-
"referenceOnly": true
|
|
292
|
-
},
|
|
293
|
-
"react_18_color_picker_concurrent_mode": {
|
|
294
|
-
"type": "boolean",
|
|
295
|
-
"referenceOnly": true
|
|
296
|
-
},
|
|
297
281
|
"editor-fix-esc-main-toolbar-navigation": {
|
|
298
282
|
"type": "boolean"
|
|
299
283
|
},
|