@atlaskit/editor-core 203.1.0 → 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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/actions/index.js +4 -2
- package/dist/cjs/create-editor/ReactEditorViewNext.js +9 -9
- package/dist/cjs/editor-appearances/FullWidthEditor.js +1 -0
- package/dist/cjs/editor.js +1 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +4 -2
- package/dist/cjs/ui/Toolbar/toolbar-size.js +2 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +5 -1
- package/dist/es2019/create-editor/ReactEditorViewNext.js +9 -9
- package/dist/es2019/editor-appearances/FullWidthEditor.js +1 -0
- package/dist/es2019/editor.js +1 -0
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -2
- package/dist/es2019/ui/Toolbar/toolbar-size.js +2 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +4 -2
- package/dist/esm/create-editor/ReactEditorViewNext.js +9 -9
- package/dist/esm/editor-appearances/FullWidthEditor.js +1 -0
- package/dist/esm/editor.js +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/ui/Appearance/Comment/Comment.js +4 -2
- package/dist/esm/ui/Toolbar/toolbar-size.js +2 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +194 -15
- package/dist/types/presets/default.d.ts +60 -12
- package/dist/types/presets/universal.d.ts +194 -15
- package/dist/types/presets/useUniversalPreset.d.ts +194 -15
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +233 -15
- package/dist/types-ts4.5/presets/default.d.ts +72 -12
- package/dist/types-ts4.5/presets/universal.d.ts +233 -15
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +233 -15
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
3
15
|
## 203.1.0
|
|
4
16
|
|
|
5
17
|
### Minor 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:
|
|
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
|
*
|
package/dist/cjs/editor.js
CHANGED
|
@@ -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.
|
|
@@ -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
|
|
@@ -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,
|
|
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
|
*
|
package/dist/es2019/editor.js
CHANGED
|
@@ -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.
|
package/dist/es2019/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
|
|
@@ -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.
|
|
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:
|
|
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
|
*
|
package/dist/esm/editor.js
CHANGED
|
@@ -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
|
|
@@ -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.
|
|
2
|
+
export var version = "203.2.0";
|