@atlaskit/editor-core 203.0.3 → 203.2.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/actions/index.js +4 -2
  3. package/dist/cjs/create-editor/ReactEditorViewNext.js +9 -9
  4. package/dist/cjs/editor-appearances/FullWidthEditor.js +1 -0
  5. package/dist/cjs/editor.js +1 -0
  6. package/dist/cjs/presets/universal.js +3 -4
  7. package/dist/cjs/ui/Appearance/Comment/Comment.js +4 -2
  8. package/dist/cjs/ui/Toolbar/toolbar-size.js +2 -0
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/es2019/actions/index.js +5 -1
  11. package/dist/es2019/create-editor/ReactEditorViewNext.js +9 -9
  12. package/dist/es2019/editor-appearances/FullWidthEditor.js +1 -0
  13. package/dist/es2019/editor.js +1 -0
  14. package/dist/es2019/index.js +3 -0
  15. package/dist/es2019/presets/universal.js +1 -1
  16. package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -2
  17. package/dist/es2019/ui/Toolbar/toolbar-size.js +2 -0
  18. package/dist/es2019/version-wrapper.js +1 -1
  19. package/dist/esm/actions/index.js +4 -2
  20. package/dist/esm/create-editor/ReactEditorViewNext.js +9 -9
  21. package/dist/esm/editor-appearances/FullWidthEditor.js +1 -0
  22. package/dist/esm/editor.js +1 -0
  23. package/dist/esm/index.js +3 -0
  24. package/dist/esm/presets/universal.js +3 -4
  25. package/dist/esm/ui/Appearance/Comment/Comment.js +4 -2
  26. package/dist/esm/ui/Toolbar/toolbar-size.js +2 -0
  27. package/dist/esm/version-wrapper.js +1 -1
  28. package/dist/types/create-editor/create-universal-preset.d.ts +194 -15
  29. package/dist/types/presets/default.d.ts +60 -12
  30. package/dist/types/presets/universal.d.ts +226 -43
  31. package/dist/types/presets/useUniversalPreset.d.ts +194 -15
  32. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +233 -15
  33. package/dist/types-ts4.5/presets/default.d.ts +72 -12
  34. package/dist/types-ts4.5/presets/universal.d.ts +265 -43
  35. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +233 -15
  36. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 203.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#172055](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/172055)
8
+ [`0d29a934f8699`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0d29a934f8699) -
9
+ add UFO interaction names to comment editor buttons
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 203.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#166906](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166906)
20
+ [`aac76c4a54baf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/aac76c4a54baf) -
21
+ added **rendererExtensionOptions option to pass renderer extension handlers to extensions in
22
+ editor to allow displaying of renderer view for bodiedExtensions—optional not required. To use for
23
+ extension plugin, pass **rendererExtensionOptions to universal preset via its
24
+ initialPluginConfiguration prop. To use for referentialityPlugin, use \_\_rendererExtensionOptions
25
+ option. In a future release, changes will be added to use this new option. Note: option is not
26
+ fully supported currently and is intended for use for confluence live pages
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+
3
32
  ## 203.0.3
4
33
 
5
34
  ### Patch Changes
@@ -205,6 +205,7 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
205
205
  return true;
206
206
  }
207
207
 
208
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
208
209
  /**
209
210
  * @deprecated This is deprecated and is no longer maintained.
210
211
  *
@@ -217,7 +218,7 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
217
218
  */
218
219
  }, {
219
220
  key: "getValue",
220
- value: (function () {
221
+ value: function () {
221
222
  var _getValue = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
222
223
  var editorView, doc, json, nodeSanitized;
223
224
  return _regenerator.default.wrap(function _callee2$(_context2) {
@@ -266,7 +267,7 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
266
267
  return _getValue.apply(this, arguments);
267
268
  }
268
269
  return getValue;
269
- }())
270
+ }()
270
271
  }, {
271
272
  key: "getNodeByLocalId",
272
273
  value: function getNodeByLocalId(id) {
@@ -319,6 +320,7 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
319
320
  return (0, _tempIsEmptyDocument.isEmptyDocument)(this.editorView.state.doc);
320
321
  }
321
322
 
323
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
322
324
  /**
323
325
  * @deprecated - please use `replaceDocument` found in the core plugin actions instead
324
326
  * using this will reset your Editor State which could cause some things to break (like emojis)
@@ -252,15 +252,6 @@ function ReactEditorView(props) {
252
252
  // Initialise phase
253
253
  // Using constructor hook so we setup and dispatch analytics before anything else
254
254
  (0, _hooks.useConstructor)(function () {
255
- dispatchAnalyticsEvent({
256
- action: _analytics.ACTION.STARTED,
257
- actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
258
- attributes: {
259
- platform: _analytics.PLATFORMS.WEB,
260
- featureFlags: featureFlags ? (0, _normalizeFeatureFlags.getEnabledFeatureFlagKeys)(featureFlags) : []
261
- },
262
- eventType: _analytics.EVENT_TYPE.UI
263
- });
264
255
  // Transaction dispatching is already enabled by default prior to
265
256
  // mounting, but we reset it here, just in case the editor view
266
257
  // instance is ever recycled (mounted again after unmounting) with
@@ -273,6 +264,15 @@ function ReactEditorView(props) {
273
264
  // we dispatch analytics events in plugin initialisation
274
265
  eventDispatcher.on(_analytics2.analyticsEventKey, handleAnalyticsEvent);
275
266
  eventDispatcher.on('resetEditorState', resetEditorState);
267
+ dispatchAnalyticsEvent({
268
+ action: _analytics.ACTION.STARTED,
269
+ actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
270
+ attributes: {
271
+ platform: _analytics.PLATFORMS.WEB,
272
+ featureFlags: featureFlags ? (0, _normalizeFeatureFlags.getEnabledFeatureFlagKeys)(featureFlags) : []
273
+ },
274
+ eventType: _analytics.EVENT_TYPE.UI
275
+ });
276
276
  });
277
277
 
278
278
  // Cleanup
@@ -9,6 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _coreEditor = require("../composable-editor/core-editor");
11
11
  var _FullPage = require("../ui/Appearance/FullPage/FullPage");
12
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
12
13
  /**
13
14
  * Editor component based on `ComposableEditor` which sets the `appearance` to "full-width".
14
15
  *
@@ -34,6 +34,7 @@ var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
34
34
  preset: preset
35
35
  }, props));
36
36
  };
37
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
37
38
  /**
38
39
  * @deprecated - Please use the `ComposableEditor` component instead.
39
40
  * We strongly encourage the use of custom presets, however your easiest migration path is to use the `useUniversalPreset` hook.
@@ -187,13 +187,12 @@ function createUniversalPresetInternal(_ref) {
187
187
  useLongPressSelection: false,
188
188
  allowCustomPanel: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanel : false,
189
189
  allowCustomPanelEdit: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
190
- }], Boolean(props.allowPanel)).maybeAdd(_contextPanel.contextPanelPlugin, Boolean(isFullPage)).maybeAdd([_extension.extensionPlugin, {
190
+ }], Boolean(props.allowPanel)).maybeAdd(_contextPanel.contextPanelPlugin, Boolean(isFullPage)).maybeAdd([_extension.extensionPlugin, _objectSpread({
191
191
  breakoutEnabled: appearance === 'full-page' && ((0, _typeof2.default)(props.allowExtension) === 'object' ? props.allowExtension.allowBreakout : true) !== false,
192
192
  extensionHandlers: props.extensionHandlers,
193
193
  useLongPressSelection: false,
194
- appearance: appearance,
195
- __livePage: props.__livePage
196
- }], Boolean(props.allowExtension)).maybeAdd(
194
+ appearance: appearance
195
+ }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.extensionPlugin)], Boolean(props.allowExtension)).maybeAdd(
197
196
  // we are ignoring a duplicate plugin error here
198
197
  // this error exists because we have two annotation plugins being added
199
198
  // one with annotationProviders and one with allowConfluenceInlineComment
@@ -249,11 +249,13 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
249
249
  appearance: "primary",
250
250
  onClick: handleSave,
251
251
  testId: "comment-save-button",
252
- isDisabled: disabled || saveButtonDisabled
252
+ isDisabled: disabled || saveButtonDisabled,
253
+ interactionName: "editor-comment-save-button"
253
254
  }, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(_new.default, {
254
255
  appearance: "subtle",
255
256
  onClick: handleCancel,
256
- isDisabled: disabled
257
+ isDisabled: disabled,
258
+ interactionName: "editor-comment-cancel-button"
257
259
  }, intl.formatMessage(_messages.default.cancelButton))), (0, _react2.jsx)("span", {
258
260
  style: {
259
261
  flexGrow: 1
@@ -25,6 +25,7 @@ var toolbarSizesFullPageNext = [{
25
25
  size: _types.ToolbarSize.S
26
26
  }];
27
27
 
28
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
28
29
  /** @deprecated
29
30
  * To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
30
31
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -62,6 +63,7 @@ var toolbarSizesNext = [{
62
63
  size: _types.ToolbarSize.S
63
64
  }];
64
65
 
66
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
65
67
  /** @deprecated
66
68
  * To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
67
69
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "203.0.3";
8
+ var version = exports.version = "203.2.0";
@@ -151,6 +151,7 @@ export default class EditorActions {
151
151
  return true;
152
152
  }
153
153
 
154
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
154
155
  /**
155
156
  * @deprecated This is deprecated and is no longer maintained.
156
157
  *
@@ -232,13 +233,16 @@ export default class EditorActions {
232
233
  return isEmptyDocument(this.editorView.state.doc);
233
234
  }
234
235
 
236
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
235
237
  /**
236
238
  * @deprecated - please use `replaceDocument` found in the core plugin actions instead
237
239
  * using this will reset your Editor State which could cause some things to break (like emojis)
238
240
  */
239
241
  replaceDocument(
240
242
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
241
- rawValue, shouldScrollToBottom = true, /** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
243
+ rawValue, shouldScrollToBottom = true,
244
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
245
+ /** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
242
246
  shouldAddToHistory = true) {
243
247
  deprecationWarnings('EditorActions.replaceDocument', {
244
248
  shouldAddToHistory
@@ -227,15 +227,6 @@ function ReactEditorView(props) {
227
227
  // Initialise phase
228
228
  // Using constructor hook so we setup and dispatch analytics before anything else
229
229
  useConstructor(() => {
230
- dispatchAnalyticsEvent({
231
- action: ACTION.STARTED,
232
- actionSubject: ACTION_SUBJECT.EDITOR,
233
- attributes: {
234
- platform: PLATFORMS.WEB,
235
- featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
236
- },
237
- eventType: EVENT_TYPE.UI
238
- });
239
230
  // Transaction dispatching is already enabled by default prior to
240
231
  // mounting, but we reset it here, just in case the editor view
241
232
  // instance is ever recycled (mounted again after unmounting) with
@@ -248,6 +239,15 @@ function ReactEditorView(props) {
248
239
  // we dispatch analytics events in plugin initialisation
249
240
  eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
250
241
  eventDispatcher.on('resetEditorState', resetEditorState);
242
+ dispatchAnalyticsEvent({
243
+ action: ACTION.STARTED,
244
+ actionSubject: ACTION_SUBJECT.EDITOR,
245
+ attributes: {
246
+ platform: PLATFORMS.WEB,
247
+ featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
248
+ },
249
+ eventType: EVENT_TYPE.UI
250
+ });
251
251
  });
252
252
 
253
253
  // Cleanup
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { CoreEditor } from '../composable-editor/core-editor';
4
4
  import { FullPageEditor as FullPage } from '../ui/Appearance/FullPage/FullPage';
5
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
5
6
  /**
6
7
  * Editor component based on `ComposableEditor` which sets the `appearance` to "full-width".
7
8
  *
@@ -26,6 +26,7 @@ const ComposableEditorWrapper = ({
26
26
  preset: preset
27
27
  }, props));
28
28
  };
29
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
29
30
  /**
30
31
  * @deprecated - Please use the `ComposableEditor` component instead.
31
32
  * We strongly encourage the use of custom presets, however your easiest migration path is to use the `useUniversalPreset` hook.
@@ -5,6 +5,7 @@
5
5
  export { name, version } from './version-wrapper';
6
6
  export { default as Editor } from './editor';
7
7
  export {
8
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
8
9
  /**
9
10
  * @deprecated
10
11
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
@@ -12,6 +13,7 @@ export {
12
13
  */
13
14
  default as EditorContext } from './ui/EditorContext';
14
15
  export { default as WithEditorActions } from './ui/WithEditorActions';
16
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
15
17
  /**
16
18
  * @deprecated
17
19
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
@@ -21,6 +23,7 @@ export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
21
23
  export { default as CollapsedEditor } from './ui/CollapsedEditor';
22
24
  export { default as ToolbarHelp } from './ui/ToolbarHelp';
23
25
  export {
26
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
24
27
  /**
25
28
  * @deprecated
26
29
  * DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
@@ -187,7 +187,7 @@ export default function createUniversalPresetInternal({
187
187
  extensionHandlers: props.extensionHandlers,
188
188
  useLongPressSelection: false,
189
189
  appearance,
190
- __livePage: props.__livePage
190
+ ...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.extensionPlugin)
191
191
  }], Boolean(props.allowExtension)).maybeAdd(
192
192
  // we are ignoring a duplicate plugin error here
193
193
  // this error exists because we have two annotation plugins being added
@@ -235,11 +235,13 @@ export const CommentEditorWithIntl = props => {
235
235
  appearance: "primary",
236
236
  onClick: handleSave,
237
237
  testId: "comment-save-button",
238
- isDisabled: disabled || saveButtonDisabled
238
+ isDisabled: disabled || saveButtonDisabled,
239
+ interactionName: "editor-comment-save-button"
239
240
  }, intl.formatMessage(messages.saveButton)), !!onCancel && jsx(Button, {
240
241
  appearance: "subtle",
241
242
  onClick: handleCancel,
242
- isDisabled: disabled
243
+ isDisabled: disabled,
244
+ interactionName: "editor-comment-cancel-button"
243
245
  }, intl.formatMessage(messages.cancelButton))), jsx("span", {
244
246
  style: {
245
247
  flexGrow: 1
@@ -19,6 +19,7 @@ const toolbarSizesFullPageNext = [{
19
19
  size: ToolbarSize.S
20
20
  }];
21
21
 
22
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
22
23
  /** @deprecated
23
24
  * To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
24
25
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -56,6 +57,7 @@ const toolbarSizesNext = [{
56
57
  size: ToolbarSize.S
57
58
  }];
58
59
 
60
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
59
61
  /** @deprecated
60
62
  * To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
61
63
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "203.0.3";
2
+ export const version = "203.2.0";
@@ -199,6 +199,7 @@ var EditorActions = /*#__PURE__*/function () {
199
199
  return true;
200
200
  }
201
201
 
202
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
202
203
  /**
203
204
  * @deprecated This is deprecated and is no longer maintained.
204
205
  *
@@ -211,7 +212,7 @@ var EditorActions = /*#__PURE__*/function () {
211
212
  */
212
213
  }, {
213
214
  key: "getValue",
214
- value: (function () {
215
+ value: function () {
215
216
  var _getValue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
216
217
  var editorView, doc, json, nodeSanitized;
217
218
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -260,7 +261,7 @@ var EditorActions = /*#__PURE__*/function () {
260
261
  return _getValue.apply(this, arguments);
261
262
  }
262
263
  return getValue;
263
- }())
264
+ }()
264
265
  }, {
265
266
  key: "getNodeByLocalId",
266
267
  value: function getNodeByLocalId(id) {
@@ -313,6 +314,7 @@ var EditorActions = /*#__PURE__*/function () {
313
314
  return isEmptyDocument(this.editorView.state.doc);
314
315
  }
315
316
 
317
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
316
318
  /**
317
319
  * @deprecated - please use `replaceDocument` found in the core plugin actions instead
318
320
  * using this will reset your Editor State which could cause some things to break (like emojis)
@@ -242,15 +242,6 @@ function ReactEditorView(props) {
242
242
  // Initialise phase
243
243
  // Using constructor hook so we setup and dispatch analytics before anything else
244
244
  useConstructor(function () {
245
- dispatchAnalyticsEvent({
246
- action: ACTION.STARTED,
247
- actionSubject: ACTION_SUBJECT.EDITOR,
248
- attributes: {
249
- platform: PLATFORMS.WEB,
250
- featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
251
- },
252
- eventType: EVENT_TYPE.UI
253
- });
254
245
  // Transaction dispatching is already enabled by default prior to
255
246
  // mounting, but we reset it here, just in case the editor view
256
247
  // instance is ever recycled (mounted again after unmounting) with
@@ -263,6 +254,15 @@ function ReactEditorView(props) {
263
254
  // we dispatch analytics events in plugin initialisation
264
255
  eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
265
256
  eventDispatcher.on('resetEditorState', resetEditorState);
257
+ dispatchAnalyticsEvent({
258
+ action: ACTION.STARTED,
259
+ actionSubject: ACTION_SUBJECT.EDITOR,
260
+ attributes: {
261
+ platform: PLATFORMS.WEB,
262
+ featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
263
+ },
264
+ eventType: EVENT_TYPE.UI
265
+ });
266
266
  });
267
267
 
268
268
  // Cleanup
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { CoreEditor } from '../composable-editor/core-editor';
4
4
  import { FullPageEditor as FullPage } from '../ui/Appearance/FullPage/FullPage';
5
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
5
6
  /**
6
7
  * Editor component based on `ComposableEditor` which sets the `appearance` to "full-width".
7
8
  *
@@ -32,6 +32,7 @@ var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
32
32
  preset: preset
33
33
  }, props));
34
34
  };
35
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
35
36
  /**
36
37
  * @deprecated - Please use the `ComposableEditor` component instead.
37
38
  * We strongly encourage the use of custom presets, however your easiest migration path is to use the `useUniversalPreset` hook.
package/dist/esm/index.js CHANGED
@@ -5,6 +5,7 @@
5
5
  export { name, version } from './version-wrapper';
6
6
  export { default as Editor } from './editor';
7
7
  export {
8
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
8
9
  /**
9
10
  * @deprecated
10
11
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
@@ -12,6 +13,7 @@ export {
12
13
  */
13
14
  default as EditorContext } from './ui/EditorContext';
14
15
  export { default as WithEditorActions } from './ui/WithEditorActions';
16
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
15
17
  /**
16
18
  * @deprecated
17
19
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
@@ -21,6 +23,7 @@ export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
21
23
  export { default as CollapsedEditor } from './ui/CollapsedEditor';
22
24
  export { default as ToolbarHelp } from './ui/ToolbarHelp';
23
25
  export {
26
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
24
27
  /**
25
28
  * @deprecated
26
29
  * DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
@@ -180,13 +180,12 @@ export default function createUniversalPresetInternal(_ref) {
180
180
  useLongPressSelection: false,
181
181
  allowCustomPanel: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanel : false,
182
182
  allowCustomPanelEdit: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
183
- }], Boolean(props.allowPanel)).maybeAdd(contextPanelPlugin, Boolean(isFullPage)).maybeAdd([extensionPlugin, {
183
+ }], Boolean(props.allowPanel)).maybeAdd(contextPanelPlugin, Boolean(isFullPage)).maybeAdd([extensionPlugin, _objectSpread({
184
184
  breakoutEnabled: appearance === 'full-page' && (_typeof(props.allowExtension) === 'object' ? props.allowExtension.allowBreakout : true) !== false,
185
185
  extensionHandlers: props.extensionHandlers,
186
186
  useLongPressSelection: false,
187
- appearance: appearance,
188
- __livePage: props.__livePage
189
- }], Boolean(props.allowExtension)).maybeAdd(
187
+ appearance: appearance
188
+ }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.extensionPlugin)], Boolean(props.allowExtension)).maybeAdd(
190
189
  // we are ignoring a duplicate plugin error here
191
190
  // this error exists because we have two annotation plugins being added
192
191
  // one with annotationProviders and one with allowConfluenceInlineComment
@@ -238,11 +238,13 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
238
238
  appearance: "primary",
239
239
  onClick: handleSave,
240
240
  testId: "comment-save-button",
241
- isDisabled: disabled || saveButtonDisabled
241
+ isDisabled: disabled || saveButtonDisabled,
242
+ interactionName: "editor-comment-save-button"
242
243
  }, intl.formatMessage(messages.saveButton)), !!onCancel && jsx(Button, {
243
244
  appearance: "subtle",
244
245
  onClick: handleCancel,
245
- isDisabled: disabled
246
+ isDisabled: disabled,
247
+ interactionName: "editor-comment-cancel-button"
246
248
  }, intl.formatMessage(messages.cancelButton))), jsx("span", {
247
249
  style: {
248
250
  flexGrow: 1
@@ -19,6 +19,7 @@ var toolbarSizesFullPageNext = [{
19
19
  size: ToolbarSize.S
20
20
  }];
21
21
 
22
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
22
23
  /** @deprecated
23
24
  * To be removed as part of ED-25129 in favour of toolbarSizesFullPageNext along with references
24
25
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -56,6 +57,7 @@ var toolbarSizesNext = [{
56
57
  size: ToolbarSize.S
57
58
  }];
58
59
 
60
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
59
61
  /** @deprecated
60
62
  * To be removed as part of ED-25129 in favour of toolbarSizesNext along with references
61
63
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "203.0.3";
2
+ export var version = "203.2.0";