@atlaskit/editor-common 82.12.0 → 82.13.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 82.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#113571](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113571)
8
+ [`67a148fad7f47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/67a148fad7f47) -
9
+ ED-23785 - add `inlineNodeTypes` to `InlineCommentSelectionComponentProps`
10
+
11
+ ### Patch Changes
12
+
13
+ - [#114315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114315)
14
+ [`5a42f41565210`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5a42f41565210) -
15
+ [ux] [ED-23759] Add localisation string for text highlighting floating toolbar experiment
16
+ - [#114122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114122)
17
+ [`cf80fda06fa1d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cf80fda06fa1d) -
18
+ Cleaning up unused code using WithPluginState for extensions
19
+
3
20
  ## 82.12.0
4
21
 
5
22
  ### Minor Changes
@@ -12,7 +12,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@emotion/react");
14
14
  var _classnames2 = _interopRequireDefault(require("classnames"));
15
- var _withPluginState = require("../../..//with-plugin-state");
16
15
  var _hooks = require("../../../hooks");
17
16
  var _ui = require("../../../ui");
18
17
  var _utils = require("../../../utils");
@@ -165,14 +164,6 @@ function ExtensionWithPluginState(props) {
165
164
  })))));
166
165
  }
167
166
  var Extension = function Extension(props) {
168
- // TODO: ED-17836 This code is here because confluence injects
169
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
170
- // which cannot access the `pluginInjectionApi`. When we move
171
- // Confluence to using presets we can remove this workaround.
172
- var pluginInjectionApi = props.pluginInjectionApi;
173
- return pluginInjectionApi === undefined ? (0, _react2.jsx)(ExtensionDeprecated, props) : (0, _react2.jsx)(ExtensionWithSharedState, props);
174
- };
175
- var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
176
167
  var pluginInjectionApi = props.pluginInjectionApi;
177
168
  var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['width']),
178
169
  widthState = _useSharedPluginState.widthState;
@@ -180,40 +171,6 @@ var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
180
171
  widthState: widthState
181
172
  }, props));
182
173
  };
183
-
184
- // TODO: ED-17836 This code is here because Confluence injects
185
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
186
- // which cannot access the `pluginInjectionApi`. When we move
187
- // Confluence to using presets we can remove this workaround.
188
- // @ts-ignore
189
- var widthPluginKey = {
190
- key: 'widthPlugin$',
191
- getState: function getState(state) {
192
- return state['widthPlugin$'];
193
- }
194
- };
195
- var ExtensionDeprecated = function ExtensionDeprecated(props) {
196
- return (
197
- // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
198
- // This error was introduced after upgrading to TypeScript 5
199
- (0, _react2.jsx)(_withPluginState.WithPluginState, {
200
- editorView: props.view,
201
- plugins: {
202
- widthState: widthPluginKey
203
- },
204
- render: function render(_ref2) {
205
- var widthState = _ref2.widthState;
206
- return (0, _react2.jsx)(ExtensionWithPluginState, (0, _extends2.default)({
207
- widthState: widthState
208
- }, props));
209
- }
210
- })
211
- );
212
- };
213
-
214
- /**
215
- * End workaround
216
- */
217
174
  var _default = exports.default = (0, _ui.overflowShadow)(Extension, {
218
175
  overflowSelector: '.extension-overflow-wrapper'
219
176
  });
@@ -18,7 +18,6 @@ var _file = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/file"));
18
18
  var _hooks = require("../../hooks");
19
19
  var _MultiBodiedExtension = require("../../ui/MultiBodiedExtension");
20
20
  var _utils = require("../../utils");
21
- var _withPluginState = require("../../with-plugin-state");
22
21
  var _Lozenge = _interopRequireDefault(require("../Extension/Lozenge"));
23
22
  var _actionApi = require("./action-api");
24
23
  var _styles = require("./styles");
@@ -213,7 +212,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
213
212
  ref: articleRef
214
213
  }))));
215
214
  };
216
- var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithSharedState(props) {
215
+ var MultiBodiedExtension = function MultiBodiedExtension(props) {
217
216
  var pluginInjectionApi = props.pluginInjectionApi;
218
217
  var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['width']),
219
218
  widthState = _useSharedPluginState.widthState;
@@ -221,47 +220,4 @@ var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithShare
221
220
  widthState: widthState
222
221
  }, props));
223
222
  };
224
-
225
- // Workaround taken from platform/packages/editor/editor-core/src/plugins/extension/ui/Extension/Extension/index.tsx
226
- var MultiBodiedExtension = function MultiBodiedExtension(props) {
227
- // TODO: ED-17836 This code is here because confluence injects
228
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
229
- // which cannot access the `pluginInjectionApi`. When we move
230
- // Confluence to using presets we can remove this workaround.
231
- var pluginInjectionApi = props.pluginInjectionApi;
232
- return pluginInjectionApi === undefined ? (0, _react2.jsx)(MultiBodiedExtensionDeprecated, props) : (0, _react2.jsx)(MultiBodiedExtensionWithSharedState, props);
233
- };
234
-
235
- // TODO: ED-17836 This code is here because Confluence injects
236
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
237
- // which cannot access the `pluginInjectionApi`. When we move
238
- // Confluence to using presets we can remove this workaround.
239
- // @ts-ignore
240
- var widthPluginKey = {
241
- key: 'widthPlugin$',
242
- getState: function getState(state) {
243
- return state['widthPlugin$'];
244
- }
245
- };
246
- var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(props) {
247
- return (
248
- // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
249
- // This error was introduced after upgrading to TypeScript 5
250
- (0, _react2.jsx)(_withPluginState.WithPluginState, {
251
- editorView: props.editorView,
252
- plugins: {
253
- widthState: widthPluginKey
254
- },
255
- render: function render(_ref3) {
256
- var widthState = _ref3.widthState;
257
- return (0, _react2.jsx)(MultiBodiedExtensionWithWidth, (0, _extends2.default)({
258
- widthState: widthState
259
- }, props));
260
- }
261
- })
262
- );
263
- };
264
- /**
265
- * End workaround
266
- */
267
223
  var _default = exports.default = MultiBodiedExtension;
@@ -10,5 +10,10 @@ var highlightMessages = exports.highlightMessages = (0, _reactIntlNext.defineMes
10
10
  id: 'fabric.editor.highlight',
11
11
  defaultMessage: 'Highlight color',
12
12
  description: 'Label for the highlight color menu option in the primary editor toolbar. Opens up the color palette for the highlight colors.'
13
+ },
14
+ highlightFloatingToolbar: {
15
+ id: 'fabric.editor.highlightFloatingToolbar',
16
+ defaultMessage: 'Highlight',
17
+ description: 'Button content for the highlight color menu option in the editor floating toolbar. Opens up the color palette for the highlight colors.'
13
18
  }
14
19
  });
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "82.12.0";
20
+ var packageVersion = "82.13.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "82.12.0";
23
+ var packageVersion = "82.13.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -6,7 +6,6 @@ import React, { Fragment } from 'react';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx } from '@emotion/react';
8
8
  import classnames from 'classnames';
9
- import { WithPluginState } from '../../..//with-plugin-state';
10
9
  import { useSharedPluginState } from '../../../hooks';
11
10
  import { overflowShadow } from '../../../ui';
12
11
  import { calculateBreakoutStyles } from '../../../utils';
@@ -159,16 +158,6 @@ function ExtensionWithPluginState(props) {
159
158
  })))));
160
159
  }
161
160
  const Extension = props => {
162
- // TODO: ED-17836 This code is here because confluence injects
163
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
164
- // which cannot access the `pluginInjectionApi`. When we move
165
- // Confluence to using presets we can remove this workaround.
166
- const {
167
- pluginInjectionApi
168
- } = props;
169
- return pluginInjectionApi === undefined ? jsx(ExtensionDeprecated, props) : jsx(ExtensionWithSharedState, props);
170
- };
171
- const ExtensionWithSharedState = props => {
172
161
  const {
173
162
  pluginInjectionApi
174
163
  } = props;
@@ -179,40 +168,6 @@ const ExtensionWithSharedState = props => {
179
168
  widthState: widthState
180
169
  }, props));
181
170
  };
182
-
183
- // TODO: ED-17836 This code is here because Confluence injects
184
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
185
- // which cannot access the `pluginInjectionApi`. When we move
186
- // Confluence to using presets we can remove this workaround.
187
- // @ts-ignore
188
- const widthPluginKey = {
189
- key: 'widthPlugin$',
190
- getState: state => {
191
- return state['widthPlugin$'];
192
- }
193
- };
194
- const ExtensionDeprecated = props => {
195
- return (
196
- // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
197
- // This error was introduced after upgrading to TypeScript 5
198
- jsx(WithPluginState, {
199
- editorView: props.view,
200
- plugins: {
201
- widthState: widthPluginKey
202
- },
203
- render: ({
204
- widthState
205
- }) => jsx(ExtensionWithPluginState, _extends({
206
- widthState: widthState
207
- }, props))
208
- })
209
- );
210
- };
211
-
212
- /**
213
- * End workaround
214
- */
215
-
216
171
  export default overflowShadow(Extension, {
217
172
  overflowSelector: '.extension-overflow-wrapper'
218
173
  });
@@ -11,7 +11,6 @@ import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
11
11
  import { useSharedPluginState } from '../../hooks';
12
12
  import { removeMarginsAndBorder, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
13
13
  import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
14
- import { WithPluginState } from '../../with-plugin-state';
15
14
  import ExtensionLozenge from '../Extension/Lozenge';
16
15
  import { useMultiBodiedExtensionActions } from './action-api';
17
16
  import { mbeExtensionWrapperCSSStyles, overlayStyles } from './styles';
@@ -199,7 +198,7 @@ const MultiBodiedExtensionWithWidth = ({
199
198
  ref: articleRef
200
199
  }))));
201
200
  };
202
- const MultiBodiedExtensionWithSharedState = props => {
201
+ const MultiBodiedExtension = props => {
203
202
  const {
204
203
  pluginInjectionApi
205
204
  } = props;
@@ -210,49 +209,4 @@ const MultiBodiedExtensionWithSharedState = props => {
210
209
  widthState: widthState
211
210
  }, props));
212
211
  };
213
-
214
- // Workaround taken from platform/packages/editor/editor-core/src/plugins/extension/ui/Extension/Extension/index.tsx
215
- const MultiBodiedExtension = props => {
216
- // TODO: ED-17836 This code is here because confluence injects
217
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
218
- // which cannot access the `pluginInjectionApi`. When we move
219
- // Confluence to using presets we can remove this workaround.
220
- const {
221
- pluginInjectionApi
222
- } = props;
223
- return pluginInjectionApi === undefined ? jsx(MultiBodiedExtensionDeprecated, props) : jsx(MultiBodiedExtensionWithSharedState, props);
224
- };
225
-
226
- // TODO: ED-17836 This code is here because Confluence injects
227
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
228
- // which cannot access the `pluginInjectionApi`. When we move
229
- // Confluence to using presets we can remove this workaround.
230
- // @ts-ignore
231
- const widthPluginKey = {
232
- key: 'widthPlugin$',
233
- getState: state => {
234
- return state['widthPlugin$'];
235
- }
236
- };
237
- const MultiBodiedExtensionDeprecated = props => {
238
- return (
239
- // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
240
- // This error was introduced after upgrading to TypeScript 5
241
- jsx(WithPluginState, {
242
- editorView: props.editorView,
243
- plugins: {
244
- widthState: widthPluginKey
245
- },
246
- render: ({
247
- widthState
248
- }) => jsx(MultiBodiedExtensionWithWidth, _extends({
249
- widthState: widthState
250
- }, props))
251
- })
252
- );
253
- };
254
- /**
255
- * End workaround
256
- */
257
-
258
212
  export default MultiBodiedExtension;
@@ -4,5 +4,10 @@ export const highlightMessages = defineMessages({
4
4
  id: 'fabric.editor.highlight',
5
5
  defaultMessage: 'Highlight color',
6
6
  description: 'Label for the highlight color menu option in the primary editor toolbar. Opens up the color palette for the highlight colors.'
7
+ },
8
+ highlightFloatingToolbar: {
9
+ id: 'fabric.editor.highlightFloatingToolbar',
10
+ defaultMessage: 'Highlight',
11
+ description: 'Button content for the highlight color menu option in the editor floating toolbar. Opens up the color palette for the highlight colors.'
7
12
  }
8
13
  });
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "82.12.0";
4
+ const packageVersion = "82.13.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
9
9
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "82.12.0";
12
+ const packageVersion = "82.13.0";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -11,7 +11,6 @@ import React, { Fragment } from 'react';
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { jsx } from '@emotion/react';
13
13
  import classnames from 'classnames';
14
- import { WithPluginState } from '../../..//with-plugin-state';
15
14
  import { useSharedPluginState } from '../../../hooks';
16
15
  import { overflowShadow } from '../../../ui';
17
16
  import { calculateBreakoutStyles } from '../../../utils';
@@ -157,14 +156,6 @@ function ExtensionWithPluginState(props) {
157
156
  })))));
158
157
  }
159
158
  var Extension = function Extension(props) {
160
- // TODO: ED-17836 This code is here because confluence injects
161
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
162
- // which cannot access the `pluginInjectionApi`. When we move
163
- // Confluence to using presets we can remove this workaround.
164
- var pluginInjectionApi = props.pluginInjectionApi;
165
- return pluginInjectionApi === undefined ? jsx(ExtensionDeprecated, props) : jsx(ExtensionWithSharedState, props);
166
- };
167
- var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
168
159
  var pluginInjectionApi = props.pluginInjectionApi;
169
160
  var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['width']),
170
161
  widthState = _useSharedPluginState.widthState;
@@ -172,41 +163,6 @@ var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
172
163
  widthState: widthState
173
164
  }, props));
174
165
  };
175
-
176
- // TODO: ED-17836 This code is here because Confluence injects
177
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
178
- // which cannot access the `pluginInjectionApi`. When we move
179
- // Confluence to using presets we can remove this workaround.
180
- // @ts-ignore
181
- var widthPluginKey = {
182
- key: 'widthPlugin$',
183
- getState: function getState(state) {
184
- return state['widthPlugin$'];
185
- }
186
- };
187
- var ExtensionDeprecated = function ExtensionDeprecated(props) {
188
- return (
189
- // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
190
- // This error was introduced after upgrading to TypeScript 5
191
- jsx(WithPluginState, {
192
- editorView: props.view,
193
- plugins: {
194
- widthState: widthPluginKey
195
- },
196
- render: function render(_ref2) {
197
- var widthState = _ref2.widthState;
198
- return jsx(ExtensionWithPluginState, _extends({
199
- widthState: widthState
200
- }, props));
201
- }
202
- })
203
- );
204
- };
205
-
206
- /**
207
- * End workaround
208
- */
209
-
210
166
  export default overflowShadow(Extension, {
211
167
  overflowSelector: '.extension-overflow-wrapper'
212
168
  });
@@ -16,7 +16,6 @@ import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
16
16
  import { useSharedPluginState } from '../../hooks';
17
17
  import { removeMarginsAndBorder, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
18
18
  import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
19
- import { WithPluginState } from '../../with-plugin-state';
20
19
  import ExtensionLozenge from '../Extension/Lozenge';
21
20
  import { useMultiBodiedExtensionActions } from './action-api';
22
21
  import { mbeExtensionWrapperCSSStyles, overlayStyles } from './styles';
@@ -205,7 +204,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
205
204
  ref: articleRef
206
205
  }))));
207
206
  };
208
- var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithSharedState(props) {
207
+ var MultiBodiedExtension = function MultiBodiedExtension(props) {
209
208
  var pluginInjectionApi = props.pluginInjectionApi;
210
209
  var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['width']),
211
210
  widthState = _useSharedPluginState.widthState;
@@ -213,48 +212,4 @@ var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithShare
213
212
  widthState: widthState
214
213
  }, props));
215
214
  };
216
-
217
- // Workaround taken from platform/packages/editor/editor-core/src/plugins/extension/ui/Extension/Extension/index.tsx
218
- var MultiBodiedExtension = function MultiBodiedExtension(props) {
219
- // TODO: ED-17836 This code is here because confluence injects
220
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
221
- // which cannot access the `pluginInjectionApi`. When we move
222
- // Confluence to using presets we can remove this workaround.
223
- var pluginInjectionApi = props.pluginInjectionApi;
224
- return pluginInjectionApi === undefined ? jsx(MultiBodiedExtensionDeprecated, props) : jsx(MultiBodiedExtensionWithSharedState, props);
225
- };
226
-
227
- // TODO: ED-17836 This code is here because Confluence injects
228
- // the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
229
- // which cannot access the `pluginInjectionApi`. When we move
230
- // Confluence to using presets we can remove this workaround.
231
- // @ts-ignore
232
- var widthPluginKey = {
233
- key: 'widthPlugin$',
234
- getState: function getState(state) {
235
- return state['widthPlugin$'];
236
- }
237
- };
238
- var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(props) {
239
- return (
240
- // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
241
- // This error was introduced after upgrading to TypeScript 5
242
- jsx(WithPluginState, {
243
- editorView: props.editorView,
244
- plugins: {
245
- widthState: widthPluginKey
246
- },
247
- render: function render(_ref3) {
248
- var widthState = _ref3.widthState;
249
- return jsx(MultiBodiedExtensionWithWidth, _extends({
250
- widthState: widthState
251
- }, props));
252
- }
253
- })
254
- );
255
- };
256
- /**
257
- * End workaround
258
- */
259
-
260
215
  export default MultiBodiedExtension;
@@ -4,5 +4,10 @@ export var highlightMessages = defineMessages({
4
4
  id: 'fabric.editor.highlight',
5
5
  defaultMessage: 'Highlight color',
6
6
  description: 'Label for the highlight color menu option in the primary editor toolbar. Opens up the color palette for the highlight colors.'
7
+ },
8
+ highlightFloatingToolbar: {
9
+ id: 'fabric.editor.highlightFloatingToolbar',
10
+ defaultMessage: 'Highlight',
11
+ description: 'Button content for the highlight color menu option in the editor floating toolbar. Opens up the color palette for the highlight colors.'
7
12
  }
8
13
  });
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "82.12.0";
10
+ var packageVersion = "82.13.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "82.12.0";
20
+ var packageVersion = "82.13.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -22,9 +22,6 @@ export interface Props {
22
22
  isNodeNested?: boolean;
23
23
  setIsNodeHovered?: (isHovered: boolean) => void;
24
24
  }
25
- /**
26
- * End workaround
27
- */
28
25
  declare const _default: {
29
26
  new (props: Props | Readonly<Props>): {
30
27
  overflowContainer?: HTMLElement | null | undefined;
@@ -25,7 +25,4 @@ type Props = {
25
25
  setIsNodeHovered?: (isHovered: boolean) => void;
26
26
  };
27
27
  declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
28
- /**
29
- * End workaround
30
- */
31
28
  export default MultiBodiedExtension;
@@ -4,4 +4,9 @@ export declare const highlightMessages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ highlightFloatingToolbar: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
7
12
  };
@@ -63,6 +63,8 @@ export type InlineCommentSelectionComponentProps = {
63
63
  * getAnnotationIndexMatch finds the { numMatch, matchIndex } tuple of the current selection
64
64
  */
65
65
  getAnnotationIndexMatch?: () => AnnotationByMatches | false;
66
+ /** The list of types of all inline nodes, which were wrapped by annotation. */
67
+ inlineNodeTypes?: string[];
66
68
  };
67
69
  type AnnotationInfo = {
68
70
  id: AnnotationId;
@@ -22,9 +22,6 @@ export interface Props {
22
22
  isNodeNested?: boolean;
23
23
  setIsNodeHovered?: (isHovered: boolean) => void;
24
24
  }
25
- /**
26
- * End workaround
27
- */
28
25
  declare const _default: {
29
26
  new (props: Props | Readonly<Props>): {
30
27
  overflowContainer?: HTMLElement | null | undefined;
@@ -25,7 +25,4 @@ type Props = {
25
25
  setIsNodeHovered?: (isHovered: boolean) => void;
26
26
  };
27
27
  declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
28
- /**
29
- * End workaround
30
- */
31
28
  export default MultiBodiedExtension;
@@ -4,4 +4,9 @@ export declare const highlightMessages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ highlightFloatingToolbar: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
7
12
  };
@@ -63,6 +63,8 @@ export type InlineCommentSelectionComponentProps = {
63
63
  * getAnnotationIndexMatch finds the { numMatch, matchIndex } tuple of the current selection
64
64
  */
65
65
  getAnnotationIndexMatch?: () => AnnotationByMatches | false;
66
+ /** The list of types of all inline nodes, which were wrapped by annotation. */
67
+ inlineNodeTypes?: string[];
66
68
  };
67
69
  type AnnotationInfo = {
68
70
  id: AnnotationId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "82.12.0",
3
+ "version": "82.13.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"