@atlaskit/editor-core 215.13.13 → 215.14.1

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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd7ef4c47aee1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fd7ef4c47aee1) -
8
+ Add EditorSessionID to Sentry Error payload for EditorCore ErrorBoundary
9
+ - Updated dependencies
10
+
11
+ ## 215.14.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`54f21810515c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/54f21810515c4) -
16
+ ED-29642 use native anchor global css style instead of inline style
17
+
18
+ ### Patch Changes
19
+
20
+ - [`4e5e5848cbbee`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4e5e5848cbbee) -
21
+ Remove code bidi warning plugin from presets
22
+ - Updated dependencies
23
+
3
24
  ## 215.13.13
4
25
 
5
26
  ### Patch Changes
@@ -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 = exports.ErrorBoundaryWithEditorView = void 0;
7
+ exports.default = exports.ErrorBoundaryWithEditorViewWithAnalyticsReactContext = exports.ErrorBoundaryWithEditorView = void 0;
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
@@ -15,12 +15,17 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
  var _uuid = _interopRequireDefault(require("uuid"));
18
+ var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
18
19
  var _analytics = require("@atlaskit/editor-common/analytics");
19
20
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
20
21
  var _intlErrorBoundary = require("@atlaskit/editor-common/intl-error-boundary");
21
22
  var _monitoring = require("@atlaskit/editor-common/monitoring");
23
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
22
25
  var _outdatedBrowsers = require("../utils/outdatedBrowsers");
23
26
  var _WithEditorView = require("./WithEditorView");
27
+ 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; }
28
+ 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; }
24
29
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
25
30
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
26
31
  // Ignored via go/ees005
@@ -74,7 +79,7 @@ var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PUR
74
79
  errorId: sharedId
75
80
  }
76
81
  });
77
- (0, _monitoring.logException)(error, {
82
+ _this.logException(error, {
78
83
  location: 'editor-core/create-editor',
79
84
  product: product
80
85
  });
@@ -119,6 +124,9 @@ var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PUR
119
124
  var _this$props$createAna, _this$props;
120
125
  (_this$props$createAna = (_this$props = _this.props).createAnalyticsEvent) === null || _this$props$createAna === void 0 || _this$props$createAna.call(_this$props, event).fire(_analytics.editorAnalyticsChannel);
121
126
  });
127
+ (0, _defineProperty2.default)(_this, "logException", function (error, tags) {
128
+ (0, _monitoring.logException)(error, tags);
129
+ });
122
130
  _this.featureFlags = props.featureFlags;
123
131
  return _this;
124
132
  }
@@ -181,4 +189,23 @@ var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PUR
181
189
  rethrow: true,
182
190
  errorTracking: true
183
191
  });
184
- var _default = exports.default = (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView);
192
+ var ErrorBoundaryWithEditorViewWithAnalyticsReactContext = exports.ErrorBoundaryWithEditorViewWithAnalyticsReactContext = /*#__PURE__*/function (_ErrorBoundaryWithEdi) {
193
+ function ErrorBoundaryWithEditorViewWithAnalyticsReactContext(props) {
194
+ var _this3;
195
+ (0, _classCallCheck2.default)(this, ErrorBoundaryWithEditorViewWithAnalyticsReactContext);
196
+ _this3 = _callSuper(this, ErrorBoundaryWithEditorViewWithAnalyticsReactContext, [props]);
197
+ (0, _defineProperty2.default)(_this3, "logException", function (error, tags) {
198
+ var _this3$context;
199
+ var extraTags = {};
200
+ extraTags.editorSessionId = (_this3$context = _this3.context) === null || _this3$context === void 0 || (_this3$context = _this3$context.getAtlaskitAnalyticsContext()) === null || _this3$context === void 0 || (_this3$context = _this3$context[0]) === null || _this3$context === void 0 || (_this3$context = _this3$context.fabricEditorCtx) === null || _this3$context === void 0 ? void 0 : _this3$context.editorSessionId;
201
+ (0, _monitoring.logException)(error, _objectSpread(_objectSpread({}, tags), extraTags));
202
+ });
203
+ return _this3;
204
+ }
205
+ (0, _inherits2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, _ErrorBoundaryWithEdi);
206
+ return (0, _createClass2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext);
207
+ }(ErrorBoundaryWithEditorView);
208
+ (0, _defineProperty2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, "contextType", _analyticsNextStableReactContext.default);
209
+ var _default = exports.default = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
210
+ return (0, _platformFeatureFlags.fg)('platform_editor_sentry_breadcrumbs');
211
+ }, (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView));
@@ -250,9 +250,9 @@ function createUniversalPresetInternal(_ref) {
250
250
  }]).maybeAdd([_findReplace.findReplacePlugin, {
251
251
  takeFullWidth: !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
252
252
  twoLineEditorToolbar: !!props.primaryToolbarComponents && !!featureFlags.twoLineEditorToolbar
253
- }], Boolean(props.allowFindReplace)).maybeAdd(_border.borderPlugin, Boolean(props.allowBorderMark)).maybeAdd(_fragment.fragmentPlugin, Boolean(props.allowFragmentMark)).add(_pasteOptionsToolbar.pasteOptionsToolbarPlugin).add([_codeBidiWarning.codeBidiWarningPlugin, {
253
+ }], Boolean(props.allowFindReplace)).maybeAdd(_border.borderPlugin, Boolean(props.allowBorderMark)).maybeAdd(_fragment.fragmentPlugin, Boolean(props.allowFragmentMark)).add(_pasteOptionsToolbar.pasteOptionsToolbarPlugin).maybeAdd([_codeBidiWarning.codeBidiWarningPlugin, {
254
254
  appearance: appearance
255
- }]);
255
+ }], !(0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true));
256
256
  return finalPreset;
257
257
  }
258
258
  function isExpandInsertionEnabled(_ref2) {
@@ -1,12 +1,14 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
-
4
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
5
4
  import uuid from 'uuid';
5
+ import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
6
6
  import { ACTION, ACTION_SUBJECT, editorAnalyticsChannel, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
7
7
  import { getDocStructure } from '@atlaskit/editor-common/core-utils';
8
8
  import { IntlErrorBoundary } from '@atlaskit/editor-common/intl-error-boundary';
9
9
  import { logException } from '@atlaskit/editor-common/monitoring';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
11
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
10
12
  import { isOutdatedBrowser } from '../utils/outdatedBrowsers';
11
13
  import { WithEditorView } from './WithEditorView';
12
14
  // Ignored via go/ees005
@@ -54,7 +56,7 @@ export class ErrorBoundaryWithEditorView extends React.Component {
54
56
  errorId: sharedId
55
57
  }
56
58
  });
57
- logException(error, {
59
+ this.logException(error, {
58
60
  location: 'editor-core/create-editor',
59
61
  product
60
62
  });
@@ -75,6 +77,9 @@ export class ErrorBoundaryWithEditorView extends React.Component {
75
77
  var _this$props$createAna, _this$props;
76
78
  (_this$props$createAna = (_this$props = this.props).createAnalyticsEvent) === null || _this$props$createAna === void 0 ? void 0 : _this$props$createAna.call(_this$props, event).fire(editorAnalyticsChannel);
77
79
  });
80
+ _defineProperty(this, "logException", (error, tags) => {
81
+ logException(error, tags);
82
+ });
78
83
  this.featureFlags = props.featureFlags;
79
84
  }
80
85
  componentDidCatch(error, errorInfo) {
@@ -130,4 +135,19 @@ _defineProperty(ErrorBoundaryWithEditorView, "defaultProps", {
130
135
  rethrow: true,
131
136
  errorTracking: true
132
137
  });
133
- export default WithEditorView(ErrorBoundaryWithEditorView);
138
+ export class ErrorBoundaryWithEditorViewWithAnalyticsReactContext extends ErrorBoundaryWithEditorView {
139
+ constructor(props) {
140
+ super(props);
141
+ _defineProperty(this, "logException", (error, tags) => {
142
+ var _this$context, _this$context$getAtla, _this$context$getAtla2, _this$context$getAtla3;
143
+ const extraTags = {};
144
+ extraTags.editorSessionId = (_this$context = this.context) === null || _this$context === void 0 ? void 0 : (_this$context$getAtla = _this$context.getAtlaskitAnalyticsContext()) === null || _this$context$getAtla === void 0 ? void 0 : (_this$context$getAtla2 = _this$context$getAtla[0]) === null || _this$context$getAtla2 === void 0 ? void 0 : (_this$context$getAtla3 = _this$context$getAtla2.fabricEditorCtx) === null || _this$context$getAtla3 === void 0 ? void 0 : _this$context$getAtla3.editorSessionId;
145
+ logException(error, {
146
+ ...tags,
147
+ ...extraTags
148
+ });
149
+ });
150
+ }
151
+ }
152
+ _defineProperty(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, "contextType", AnalyticsReactContext);
153
+ export default componentWithCondition(() => fg('platform_editor_sentry_breadcrumbs'), WithEditorView(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), WithEditorView(ErrorBoundaryWithEditorView));
@@ -252,9 +252,9 @@ export default function createUniversalPresetInternal({
252
252
  }]).maybeAdd([findReplacePlugin, {
253
253
  takeFullWidth: !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
254
254
  twoLineEditorToolbar: !!props.primaryToolbarComponents && !!featureFlags.twoLineEditorToolbar
255
- }], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).add(pasteOptionsToolbarPlugin).add([codeBidiWarningPlugin, {
255
+ }], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).add(pasteOptionsToolbarPlugin).maybeAdd([codeBidiWarningPlugin, {
256
256
  appearance
257
- }]);
257
+ }], !expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true));
258
258
  return finalPreset;
259
259
  }
260
260
  export function isExpandInsertionEnabled({
@@ -5,17 +5,21 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
+ 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; }
9
+ 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) { _defineProperty(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; }
8
10
  import _regeneratorRuntime from "@babel/runtime/regenerator";
9
11
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
13
  import React from 'react';
12
-
13
14
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
14
15
  import uuid from 'uuid';
16
+ import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
15
17
  import { ACTION, ACTION_SUBJECT, editorAnalyticsChannel, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
16
18
  import { getDocStructure } from '@atlaskit/editor-common/core-utils';
17
19
  import { IntlErrorBoundary } from '@atlaskit/editor-common/intl-error-boundary';
18
20
  import { logException } from '@atlaskit/editor-common/monitoring';
21
+ import { fg } from '@atlaskit/platform-feature-flags';
22
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
19
23
  import { isOutdatedBrowser } from '../utils/outdatedBrowsers';
20
24
  import { WithEditorView } from './WithEditorView';
21
25
  // Ignored via go/ees005
@@ -69,7 +73,7 @@ export var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component
69
73
  errorId: sharedId
70
74
  }
71
75
  });
72
- logException(error, {
76
+ _this.logException(error, {
73
77
  location: 'editor-core/create-editor',
74
78
  product: product
75
79
  });
@@ -114,6 +118,9 @@ export var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component
114
118
  var _this$props$createAna, _this$props;
115
119
  (_this$props$createAna = (_this$props = _this.props).createAnalyticsEvent) === null || _this$props$createAna === void 0 || _this$props$createAna.call(_this$props, event).fire(editorAnalyticsChannel);
116
120
  });
121
+ _defineProperty(_this, "logException", function (error, tags) {
122
+ logException(error, tags);
123
+ });
117
124
  _this.featureFlags = props.featureFlags;
118
125
  return _this;
119
126
  }
@@ -176,4 +183,23 @@ _defineProperty(ErrorBoundaryWithEditorView, "defaultProps", {
176
183
  rethrow: true,
177
184
  errorTracking: true
178
185
  });
179
- export default WithEditorView(ErrorBoundaryWithEditorView);
186
+ export var ErrorBoundaryWithEditorViewWithAnalyticsReactContext = /*#__PURE__*/function (_ErrorBoundaryWithEdi) {
187
+ function ErrorBoundaryWithEditorViewWithAnalyticsReactContext(props) {
188
+ var _this3;
189
+ _classCallCheck(this, ErrorBoundaryWithEditorViewWithAnalyticsReactContext);
190
+ _this3 = _callSuper(this, ErrorBoundaryWithEditorViewWithAnalyticsReactContext, [props]);
191
+ _defineProperty(_this3, "logException", function (error, tags) {
192
+ var _this3$context;
193
+ var extraTags = {};
194
+ extraTags.editorSessionId = (_this3$context = _this3.context) === null || _this3$context === void 0 || (_this3$context = _this3$context.getAtlaskitAnalyticsContext()) === null || _this3$context === void 0 || (_this3$context = _this3$context[0]) === null || _this3$context === void 0 || (_this3$context = _this3$context.fabricEditorCtx) === null || _this3$context === void 0 ? void 0 : _this3$context.editorSessionId;
195
+ logException(error, _objectSpread(_objectSpread({}, tags), extraTags));
196
+ });
197
+ return _this3;
198
+ }
199
+ _inherits(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, _ErrorBoundaryWithEdi);
200
+ return _createClass(ErrorBoundaryWithEditorViewWithAnalyticsReactContext);
201
+ }(ErrorBoundaryWithEditorView);
202
+ _defineProperty(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, "contextType", AnalyticsReactContext);
203
+ export default componentWithCondition(function () {
204
+ return fg('platform_editor_sentry_breadcrumbs');
205
+ }, WithEditorView(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), WithEditorView(ErrorBoundaryWithEditorView));
@@ -243,9 +243,9 @@ export default function createUniversalPresetInternal(_ref) {
243
243
  }]).maybeAdd([findReplacePlugin, {
244
244
  takeFullWidth: !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
245
245
  twoLineEditorToolbar: !!props.primaryToolbarComponents && !!featureFlags.twoLineEditorToolbar
246
- }], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).add(pasteOptionsToolbarPlugin).add([codeBidiWarningPlugin, {
246
+ }], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).add(pasteOptionsToolbarPlugin).maybeAdd([codeBidiWarningPlugin, {
247
247
  appearance: appearance
248
- }]);
248
+ }], !expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true));
249
249
  return finalPreset;
250
250
  }
251
251
  export function isExpandInsertionEnabled(_ref2) {
@@ -1,4 +1,6 @@
1
1
  import React, { type ErrorInfo } from 'react';
2
+ import type { Primitive } from '@sentry/types';
3
+ import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
2
4
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
5
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
4
6
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
@@ -30,8 +32,21 @@ export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBo
30
32
  private sendErrorData;
31
33
  private getProductName;
32
34
  private fireAnalyticsEvent;
35
+ protected logException: (error: Error, tags?: {
36
+ [key: string]: Primitive;
37
+ }) => void;
33
38
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
34
39
  render(): React.JSX.Element;
35
40
  }
36
- declare const _default: (props: React.PropsWithChildren<Omit<ErrorBoundaryProps, "editorView">>) => React.JSX.Element;
41
+ export declare class ErrorBoundaryWithEditorViewWithAnalyticsReactContext extends ErrorBoundaryWithEditorView {
42
+ static contextType: React.Context<import("@atlaskit/analytics-next-stable-react-context").AnalyticsReactContextInterface>;
43
+ context: React.ContextType<typeof AnalyticsReactContext>;
44
+ constructor(props: ErrorBoundaryProps);
45
+ protected logException: (error: Error, tags?: {
46
+ [key: string]: Primitive;
47
+ }) => void;
48
+ }
49
+ declare const _default: React.FC<Omit<ErrorBoundaryProps, "editorView"> & {
50
+ children?: React.ReactNode | undefined;
51
+ }>;
37
52
  export default _default;
@@ -4,10 +4,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4
4
  initialPluginConfiguration?: InitialPluginConfiguration;
5
5
  prevProps?: EditorProps;
6
6
  props: EditorProps;
7
- }): 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<"syncedBlock">, 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">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
7
+ }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[import("@atlaskit/editor-common/preset").MaybePluginName<"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<"syncedBlock">, 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">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
8
8
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>];
9
9
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
10
- }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
10
+ }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
11
11
  dependencies: import("@atlaskit/editor-plugins/paste-options-toolbar").PasteOptionsToolbarPluginDependencies;
12
12
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fragmentPlugin", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"border", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"findReplace", {
13
13
  actions: {
@@ -77,10 +77,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
77
77
  initialPluginConfiguration?: InitialPluginConfiguration;
78
78
  prevAppearance?: EditorAppearance;
79
79
  props: UniversalPresetProps;
80
- }): 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<"syncedBlock">, 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">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
80
+ }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[import("@atlaskit/editor-common/preset").MaybePluginName<"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<"syncedBlock">, 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">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
81
81
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>];
82
82
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
83
- }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
83
+ }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
84
84
  dependencies: import("@atlaskit/editor-plugins/paste-options-toolbar").PasteOptionsToolbarPluginDependencies;
85
85
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fragmentPlugin", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"border", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"findReplace", {
86
86
  actions: {
@@ -4,10 +4,10 @@ interface PresetProps {
4
4
  initialPluginConfiguration?: InitialPluginConfiguration;
5
5
  props: EditorProps;
6
6
  }
7
- 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<"syncedBlock">, 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">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
7
+ export default function useUniversalPreset({ props, initialPluginConfiguration }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[import("@atlaskit/editor-common/preset").MaybePluginName<"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<"syncedBlock">, 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">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
8
8
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>];
9
9
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
10
- }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
10
+ }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
11
11
  dependencies: import("@atlaskit/editor-plugins/paste-options-toolbar").PasteOptionsToolbarPluginDependencies;
12
12
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fragmentPlugin", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"border", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"findReplace", {
13
13
  actions: {
@@ -1,4 +1,6 @@
1
1
  import React, { type ErrorInfo } from 'react';
2
+ import type { Primitive } from '@sentry/types';
3
+ import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
2
4
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
5
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
4
6
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
@@ -30,8 +32,21 @@ export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBo
30
32
  private sendErrorData;
31
33
  private getProductName;
32
34
  private fireAnalyticsEvent;
35
+ protected logException: (error: Error, tags?: {
36
+ [key: string]: Primitive;
37
+ }) => void;
33
38
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
34
39
  render(): React.JSX.Element;
35
40
  }
36
- declare const _default: (props: React.PropsWithChildren<Omit<ErrorBoundaryProps, "editorView">>) => React.JSX.Element;
41
+ export declare class ErrorBoundaryWithEditorViewWithAnalyticsReactContext extends ErrorBoundaryWithEditorView {
42
+ static contextType: React.Context<import("@atlaskit/analytics-next-stable-react-context").AnalyticsReactContextInterface>;
43
+ context: React.ContextType<typeof AnalyticsReactContext>;
44
+ constructor(props: ErrorBoundaryProps);
45
+ protected logException: (error: Error, tags?: {
46
+ [key: string]: Primitive;
47
+ }) => void;
48
+ }
49
+ declare const _default: React.FC<Omit<ErrorBoundaryProps, "editorView"> & {
50
+ children?: React.ReactNode | undefined;
51
+ }>;
37
52
  export default _default;
@@ -5,7 +5,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
5
5
  prevProps?: EditorProps;
6
6
  props: EditorProps;
7
7
  }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
8
- "codeBidiWarning",
8
+ import("@atlaskit/editor-common/preset").MaybePluginName<"codeBidiWarning">,
9
9
  "pasteOptionsToolbarPlugin",
10
10
  import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">,
11
11
  import("@atlaskit/editor-common/preset").MaybePluginName<"border">,
@@ -94,7 +94,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
94
94
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>
95
95
  ];
96
96
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
97
- }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>,
97
+ }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined> | undefined,
98
98
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
99
99
  dependencies: import("@atlaskit/editor-plugins/paste-options-toolbar").PasteOptionsToolbarPluginDependencies;
100
100
  }, undefined>,
@@ -78,7 +78,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
78
78
  prevAppearance?: EditorAppearance;
79
79
  props: UniversalPresetProps;
80
80
  }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
81
- "codeBidiWarning",
81
+ import("@atlaskit/editor-common/preset").MaybePluginName<"codeBidiWarning">,
82
82
  "pasteOptionsToolbarPlugin",
83
83
  import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">,
84
84
  import("@atlaskit/editor-common/preset").MaybePluginName<"border">,
@@ -167,7 +167,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
167
167
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>
168
168
  ];
169
169
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
170
- }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>,
170
+ }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined> | undefined,
171
171
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
172
172
  dependencies: import("@atlaskit/editor-plugins/paste-options-toolbar").PasteOptionsToolbarPluginDependencies;
173
173
  }, undefined>,
@@ -5,7 +5,7 @@ interface PresetProps {
5
5
  props: EditorProps;
6
6
  }
7
7
  export default function useUniversalPreset({ props, initialPluginConfiguration }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
8
- "codeBidiWarning",
8
+ import("@atlaskit/editor-common/preset").MaybePluginName<"codeBidiWarning">,
9
9
  "pasteOptionsToolbarPlugin",
10
10
  import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">,
11
11
  import("@atlaskit/editor-common/preset").MaybePluginName<"border">,
@@ -94,7 +94,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
94
94
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>
95
95
  ];
96
96
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
97
- }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>,
97
+ }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined> | undefined,
98
98
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
99
99
  dependencies: import("@atlaskit/editor-plugins/paste-options-toolbar").PasteOptionsToolbarPluginDependencies;
100
100
  }, undefined>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.13.13",
3
+ "version": "215.14.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
65
65
  "@atlaskit/react-ufo": "^4.15.0",
66
66
  "@atlaskit/task-decision": "^19.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^13.42.0",
67
+ "@atlaskit/tmp-editor-statsig": "^13.43.0",
68
68
  "@atlaskit/tokens": "^8.3.0",
69
69
  "@atlaskit/tooltip": "^20.10.0",
70
70
  "@atlaskit/width-detector": "^5.0.0",
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^110.34.0",
84
+ "@atlaskit/editor-common": "^110.35.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",
@@ -104,10 +104,10 @@
104
104
  "@atlaskit/media-integration-test-helpers": "workspace:^",
105
105
  "@atlaskit/media-test-helpers": "^39.0.0",
106
106
  "@atlaskit/modal-dialog": "^14.7.0",
107
- "@atlaskit/primitives": "^16.3.0",
107
+ "@atlaskit/primitives": "^16.4.0",
108
108
  "@atlaskit/renderer": "^124.16.0",
109
109
  "@atlaskit/section-message": "^8.9.0",
110
- "@atlaskit/smart-card": "^43.10.0",
110
+ "@atlaskit/smart-card": "^43.11.0",
111
111
  "@atlaskit/synchrony-test-helpers": "workspace:^",
112
112
  "@atlaskit/toggle": "^15.1.0",
113
113
  "@atlaskit/util-data-test": "^18.3.0",
@@ -348,6 +348,9 @@
348
348
  "type": "boolean",
349
349
  "referenceOnly": true
350
350
  },
351
+ "platform_editor_sentry_breadcrumbs": {
352
+ "type": "boolean"
353
+ },
351
354
  "platform_editor_blocktaskitem_patch_2": {
352
355
  "type": "boolean",
353
356
  "referenceOnly": true