@atlaskit/editor-core 195.4.0 → 195.4.4
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 +19 -0
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/CollapsedEditor/index.js +1 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/CollapsedEditor/index.js +1 -7
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/CollapsedEditor/index.js +1 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +16 -1
- package/dist/types/presets/universal.d.ts +16 -1
- package/dist/types/presets/useUniversalPreset.d.ts +16 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +20 -1
- package/dist/types-ts4.5/presets/universal.d.ts +20 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +20 -1
- package/package.json +8 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#129411](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129411)
|
|
8
|
+
[`080325d254926`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/080325d254926) -
|
|
9
|
+
Added PTW 40% scale to comment editor and renderer in confluence
|
|
10
|
+
- [#129415](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129415)
|
|
11
|
+
[`f5c556c716ddf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f5c556c716ddf) -
|
|
12
|
+
Allow collapsed editor to have any child as its child may be a wrapper.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 195.4.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`46b889c01d03e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/46b889c01d03e) -
|
|
20
|
+
[ux] Clean up Reaact 18 Feature Flags
|
|
21
|
+
|
|
3
22
|
## 195.4.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -143,7 +143,7 @@ function createUniversalPresetInternal(_ref) {
|
|
|
143
143
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
144
144
|
tableResizingEnabled: isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
|
|
145
145
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
146
|
-
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
146
|
+
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
147
147
|
allowContextualMenu: !isMobile,
|
|
148
148
|
fullWidthEnabled: appearance === 'full-width',
|
|
149
149
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -14,9 +14,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
17
|
-
var _composableEditor = require("../../composable-editor");
|
|
18
|
-
var _editor = _interopRequireDefault(require("../../editor"));
|
|
19
|
-
var _EditorWithActions = _interopRequireDefault(require("../../EditorWithActions"));
|
|
20
17
|
var _ChromeCollapsed = _interopRequireDefault(require("../ChromeCollapsed"));
|
|
21
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -52,10 +49,7 @@ var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
52
49
|
value: function render() {
|
|
53
50
|
var _this2 = this;
|
|
54
51
|
var child = _react.default.Children.only(this.props.children);
|
|
55
|
-
|
|
56
|
-
throw new Error('Expected child to be of type `Editor`');
|
|
57
|
-
}
|
|
58
|
-
this.functionalEditor = child.type === _composableEditor.ComposableEditor;
|
|
52
|
+
this.functionalEditor = typeof child.type === 'function';
|
|
59
53
|
if (!this.props.isExpanded) {
|
|
60
54
|
return /*#__PURE__*/_react.default.createElement(_ui.IntlProviderIfMissingWrapper, null, /*#__PURE__*/_react.default.createElement(_ChromeCollapsed.default, {
|
|
61
55
|
onFocus: this.props.onFocus,
|
|
@@ -134,7 +134,7 @@ export default function createUniversalPresetInternal({
|
|
|
134
134
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
135
135
|
tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
|
|
136
136
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
|
137
|
-
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
137
|
+
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
138
138
|
allowContextualMenu: !isMobile,
|
|
139
139
|
fullWidthEnabled: appearance === 'full-width',
|
|
140
140
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IntlProviderIfMissingWrapper } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import { ComposableEditor } from '../../composable-editor';
|
|
5
|
-
import Editor from '../../editor';
|
|
6
|
-
import EditorWithActions from '../../EditorWithActions';
|
|
7
4
|
import ChromeCollapsed from '../ChromeCollapsed';
|
|
8
5
|
export default class CollapsedEditor extends React.Component {
|
|
9
6
|
constructor(...args) {
|
|
@@ -24,10 +21,7 @@ export default class CollapsedEditor extends React.Component {
|
|
|
24
21
|
}
|
|
25
22
|
render() {
|
|
26
23
|
const child = React.Children.only(this.props.children);
|
|
27
|
-
|
|
28
|
-
throw new Error('Expected child to be of type `Editor`');
|
|
29
|
-
}
|
|
30
|
-
this.functionalEditor = child.type === ComposableEditor;
|
|
24
|
+
this.functionalEditor = typeof child.type === 'function';
|
|
31
25
|
if (!this.props.isExpanded) {
|
|
32
26
|
return /*#__PURE__*/React.createElement(IntlProviderIfMissingWrapper, null, /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
33
27
|
onFocus: this.props.onFocus,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.4.
|
|
2
|
+
export const version = "195.4.4";
|
|
@@ -136,7 +136,7 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
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')),
|
|
139
|
-
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
139
|
+
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
140
140
|
allowContextualMenu: !isMobile,
|
|
141
141
|
fullWidthEnabled: appearance === 'full-width',
|
|
142
142
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -9,9 +9,6 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { IntlProviderIfMissingWrapper } from '@atlaskit/editor-common/ui';
|
|
12
|
-
import { ComposableEditor } from '../../composable-editor';
|
|
13
|
-
import Editor from '../../editor';
|
|
14
|
-
import EditorWithActions from '../../EditorWithActions';
|
|
15
12
|
import ChromeCollapsed from '../ChromeCollapsed';
|
|
16
13
|
var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
17
14
|
_inherits(CollapsedEditor, _React$Component);
|
|
@@ -45,10 +42,7 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
45
42
|
value: function render() {
|
|
46
43
|
var _this2 = this;
|
|
47
44
|
var child = React.Children.only(this.props.children);
|
|
48
|
-
|
|
49
|
-
throw new Error('Expected child to be of type `Editor`');
|
|
50
|
-
}
|
|
51
|
-
this.functionalEditor = child.type === ComposableEditor;
|
|
45
|
+
this.functionalEditor = typeof child.type === 'function';
|
|
52
46
|
if (!this.props.isExpanded) {
|
|
53
47
|
return /*#__PURE__*/React.createElement(IntlProviderIfMissingWrapper, null, /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
54
48
|
onFocus: this.props.onFocus,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.4.
|
|
2
|
+
export var version = "195.4.4";
|
|
@@ -2260,7 +2260,22 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2260
2260
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2261
2261
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2262
2262
|
}, undefined>>];
|
|
2263
|
-
}, 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", {
|
|
2264
2279
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2265
2280
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2266
2281
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -2288,7 +2288,22 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2288
2288
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2289
2289
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2290
2290
|
}, undefined>>];
|
|
2291
|
-
}, 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", {
|
|
2292
2307
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2293
2308
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2294
2309
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -2260,7 +2260,22 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2260
2260
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
2261
2261
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2262
2262
|
}, undefined>>];
|
|
2263
|
-
}, 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", {
|
|
2264
2279
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2265
2280
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
2266
2281
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -2837,7 +2837,26 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2837
2837
|
}, undefined>>
|
|
2838
2838
|
];
|
|
2839
2839
|
}, undefined> | undefined,
|
|
2840
|
-
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,
|
|
2841
2860
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2842
2861
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2843
2862
|
dependencies: [
|
|
@@ -2865,7 +2865,26 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2865
2865
|
}, undefined>>
|
|
2866
2866
|
];
|
|
2867
2867
|
}, undefined> | undefined,
|
|
2868
|
-
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,
|
|
2869
2888
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2870
2889
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2871
2890
|
dependencies: [
|
|
@@ -2837,7 +2837,26 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2837
2837
|
}, undefined>>
|
|
2838
2838
|
];
|
|
2839
2839
|
}, undefined> | undefined,
|
|
2840
|
-
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,
|
|
2841
2860
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"media", {
|
|
2842
2861
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2843
2862
|
dependencies: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.4.
|
|
3
|
+
"version": "195.4.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^19.2.0",
|
|
48
|
-
"@atlaskit/editor-common": "^87.
|
|
48
|
+
"@atlaskit/editor-common": "^87.10.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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/spinner": "^16.3.0",
|
|
58
58
|
"@atlaskit/task-decision": "^17.10.0",
|
|
59
|
-
"@atlaskit/theme": "^
|
|
59
|
+
"@atlaskit/theme": "^13.0.0",
|
|
60
60
|
"@atlaskit/tokens": "^1.58.0",
|
|
61
61
|
"@atlaskit/tooltip": "^18.7.0",
|
|
62
62
|
"@atlaskit/width-detector": "^4.3.0",
|
|
@@ -80,15 +80,15 @@
|
|
|
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.5",
|
|
84
84
|
"@af/editor-libra": "*",
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
|
-
"@atlaskit/adf-utils": "^19.
|
|
86
|
+
"@atlaskit/adf-utils": "^19.8.0",
|
|
87
87
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
88
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.13.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",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
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.15.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
106
106
|
"@atlaskit/toggle": "^13.3.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
110
110
|
"@atlassian/feature-flags-test-utils": "*",
|
|
111
|
-
"@atlassian/search-provider": "2.4.
|
|
111
|
+
"@atlassian/search-provider": "2.4.104",
|
|
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
|
},
|