@atlaskit/editor-common 116.17.0 → 116.17.2

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,25 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.17.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`283c55290e6cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/283c55290e6cc) -
8
+ Preserve visual selection after applying text color or highlight
9
+ - Updated dependencies
10
+
11
+ ## 116.17.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`e27cc2a34b7c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e27cc2a34b7c7) -
16
+ Update the editor plus menu virtualized list accessible label under the
17
+ `platform_editor_plus_menu_aria_label` experiment.
18
+ - [`cc7e55c918e23`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cc7e55c918e23) -
19
+ [ux] Adds info icon next to visually disabled table column sort buttons with a tooltip explaining
20
+ that sort won't work when merged cells present.
21
+ - Updated dependencies
22
+
3
23
  ## 116.17.0
4
24
 
5
25
  ### Minor Changes
@@ -11,6 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@emotion/react");
14
+ var _reactIntl = require("react-intl");
14
15
  var _reactVirtualized = require("react-virtualized");
15
16
  var _AutoSizer = require("react-virtualized/dist/commonjs/AutoSizer");
16
17
  var _CellMeasurer = require("react-virtualized/dist/commonjs/CellMeasurer");
@@ -28,6 +29,7 @@ var _quickInsert = require("../../../quick-insert");
28
29
  var _constants = require("../../constants");
29
30
  var _useContainerWidth2 = _interopRequireDefault(require("../../hooks/use-container-width"));
30
31
  var _useFocus = _interopRequireDefault(require("../../hooks/use-focus"));
32
+ var _messages = _interopRequireDefault(require("../../messages"));
31
33
  var _types = require("../../types");
32
34
  var _EmptyState = _interopRequireDefault(require("./EmptyState"));
33
35
  var _getColumnCount = require("./getColumnCount");
@@ -191,6 +193,9 @@ var ElementListSingleColumn = function ElementListSingleColumn(props) {
191
193
  setFocusedCategoryIndex = props.setFocusedCategoryIndex,
192
194
  selectedCategoryIndex = props.selectedCategoryIndex,
193
195
  selectedItemIndex = props.selectedItemIndex;
196
+ var _useIntl = (0, _reactIntl.useIntl)(),
197
+ formatMessage = _useIntl.formatMessage;
198
+ var elementListAriaLabel = (0, _expValEquals.expValEquals)('platform_editor_plus_menu_aria_label', 'isEnabled', true) ? formatMessage(_messages.default.elementListAriaLabel) : undefined;
194
199
  var rowRenderer = (0, _react.useMemo)(function () {
195
200
  return function (_ref4) {
196
201
  var index = _ref4.index,
@@ -255,7 +260,8 @@ var ElementListSingleColumn = function ElementListSingleColumn(props) {
255
260
  height: height,
256
261
  overscanRowCount: 3,
257
262
  containerRole: "presentation",
258
- role: "listbox"
263
+ role: "listbox",
264
+ "aria-label": elementListAriaLabel
259
265
  // Ignored via go/ees005
260
266
  // eslint-disable-next-line react/jsx-props-no-spreading
261
267
  }, selectedItemIndex !== undefined && {
@@ -276,6 +282,9 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
276
282
  setFocusedCategoryIndex = props.setFocusedCategoryIndex,
277
283
  selectedCategoryIndex = props.selectedCategoryIndex,
278
284
  selectedItemIndex = props.selectedItemIndex;
285
+ var _useIntl2 = (0, _reactIntl.useIntl)(),
286
+ formatMessage = _useIntl2.formatMessage;
287
+ var elementListAriaLabel = (0, _expValEquals.expValEquals)('platform_editor_plus_menu_aria_label', 'isEnabled', true) ? formatMessage(_messages.default.elementListAriaLabel) : undefined;
279
288
  var columnWidth = (containerWidth - _constants.ELEMENT_ITEM_PADDING * 2) / columnCount;
280
289
  var rowCount = Math.ceil(items.length / columnCount);
281
290
  var cellRenderer = (0, _react.useMemo)(function () {
@@ -343,6 +352,7 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
343
352
  containerRole: "row",
344
353
  cellRenderer: cellRenderer,
345
354
  height: height,
355
+ "aria-label": elementListAriaLabel,
346
356
  width: containerWidth - _constants.ELEMENT_LIST_PADDING * 2 // containerWidth - padding on Left/Right (for focus outline)
347
357
  /**
348
358
  * Refresh Grid on WidthObserver value change.
@@ -16,6 +16,11 @@ var message = (0, _reactIntl.defineMessages)({
16
16
  defaultMessage: 'Search',
17
17
  description: 'The text is shown as placeholder text inside the search input field in the element browser. It prompts the user to type a query to filter available elements.'
18
18
  },
19
+ elementListAriaLabel: {
20
+ id: 'fabric.editor.elementbrowser.elementlist.ariaLabel',
21
+ defaultMessage: 'Select element',
22
+ description: 'The text is used as an aria-label for the element browser listbox. It provides an accessible name for screen readers to identify the list of elements that can be selected and inserted.'
23
+ },
19
24
  searchAriaLabel: {
20
25
  id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
21
26
  defaultMessage: 'Search',
@@ -316,6 +316,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
316
316
  defaultMessage: "\u26A0\uFE0F You can't sort a table with merged cells",
317
317
  description: "Split your cells to enable this feature"
318
318
  },
319
+ canNotSortTableNoIcon: {
320
+ id: 'fabric.editor.canNotSortTableNoIcon',
321
+ defaultMessage: "You can't sort a table with merged cells",
322
+ description: "Split your cells to enable this feature"
323
+ },
319
324
  distributeColumns: {
320
325
  id: 'fabric.editor.distributeColumns',
321
326
  defaultMessage: "Distribute columns",
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.16.0";
31
+ var packageVersion = "116.17.1";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // Ignored via go/ees007
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FORMAT_SELECTION_SYNC_META = void 0;
7
+ /**
8
+ * Transaction meta key used by the selection-preservation plugin
9
+ * to detect formatting operations that need selection re-syncing.
10
+ *
11
+ * When a formatting command (text color, highlight, etc.) changes the document,
12
+ * it sets this meta key to `true` so the selection-preservation plugin can
13
+ * re-sync the DOM selection after the transaction is applied.
14
+ */
15
+ var FORMAT_SELECTION_SYNC_META = exports.FORMAT_SELECTION_SYNC_META = 'editorPluginSelectionPreservationFormatSync';
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "FORMAT_SELECTION_SYNC_META", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _formatSyncMeta.FORMAT_SELECTION_SYNC_META;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "GapBookmark", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -219,6 +225,7 @@ var _utils2 = require("./utils");
219
225
  var _contextHelpers = require("./context-helpers");
220
226
  var _getFragmentsFromSelection = require("./getFragmentsFromSelection");
221
227
  var _getLocalIdsFromSelection = require("./getLocalIdsFromSelection");
228
+ var _formatSyncMeta = require("./format-sync-meta");
222
229
  // Disable no-re-export rule for entry point files
223
230
  /* eslint-disable @atlaskit/editor/no-re-export */
224
231
 
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "116.16.0";
27
+ var packageVersion = "116.17.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -8,6 +8,7 @@ import React, { Fragment, memo, useCallback, useEffect, useMemo, useState } from
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
10
10
  import { css, jsx } from '@emotion/react';
11
+ import { useIntl } from 'react-intl';
11
12
  import { Grid, List } from 'react-virtualized';
12
13
  import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
13
14
  import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
@@ -25,6 +26,7 @@ import { IconFallback } from '../../../quick-insert';
25
26
  import { ELEMENT_ITEM_HEIGHT, ELEMENT_ITEM_PADDING, ELEMENT_LIST_PADDING, SCROLLBAR_WIDTH } from '../../constants';
26
27
  import useContainerWidth from '../../hooks/use-container-width';
27
28
  import useFocus from '../../hooks/use-focus';
29
+ import commonMessages from '../../messages';
28
30
  import { Modes } from '../../types';
29
31
  import EmptyState from './EmptyState';
30
32
  import { getColumnCount } from './getColumnCount';
@@ -179,6 +181,10 @@ const ElementListSingleColumn = props => {
179
181
  selectedCategoryIndex,
180
182
  selectedItemIndex
181
183
  } = props;
184
+ const {
185
+ formatMessage
186
+ } = useIntl();
187
+ const elementListAriaLabel = expValEquals('platform_editor_plus_menu_aria_label', 'isEnabled', true) ? formatMessage(commonMessages.elementListAriaLabel) : undefined;
182
188
  const rowRenderer = useMemo(() => ({
183
189
  index,
184
190
  key,
@@ -242,7 +248,8 @@ const ElementListSingleColumn = props => {
242
248
  height: height,
243
249
  overscanRowCount: 3,
244
250
  containerRole: "presentation",
245
- role: "listbox"
251
+ role: "listbox",
252
+ "aria-label": elementListAriaLabel
246
253
  // Ignored via go/ees005
247
254
  // eslint-disable-next-line react/jsx-props-no-spreading
248
255
  }, selectedItemIndex !== undefined && {
@@ -265,6 +272,10 @@ const ElementListMultipleColumns = props => {
265
272
  selectedCategoryIndex,
266
273
  selectedItemIndex
267
274
  } = props;
275
+ const {
276
+ formatMessage
277
+ } = useIntl();
278
+ const elementListAriaLabel = expValEquals('platform_editor_plus_menu_aria_label', 'isEnabled', true) ? formatMessage(commonMessages.elementListAriaLabel) : undefined;
268
279
  const columnWidth = (containerWidth - ELEMENT_ITEM_PADDING * 2) / columnCount;
269
280
  const rowCount = Math.ceil(items.length / columnCount);
270
281
  const cellRenderer = useMemo(() => ({
@@ -331,6 +342,7 @@ const ElementListMultipleColumns = props => {
331
342
  containerRole: "row",
332
343
  cellRenderer: cellRenderer,
333
344
  height: height,
345
+ "aria-label": elementListAriaLabel,
334
346
  width: containerWidth - ELEMENT_LIST_PADDING * 2 // containerWidth - padding on Left/Right (for focus outline)
335
347
  /**
336
348
  * Refresh Grid on WidthObserver value change.
@@ -10,6 +10,11 @@ const message = defineMessages({
10
10
  defaultMessage: 'Search',
11
11
  description: 'The text is shown as placeholder text inside the search input field in the element browser. It prompts the user to type a query to filter available elements.'
12
12
  },
13
+ elementListAriaLabel: {
14
+ id: 'fabric.editor.elementbrowser.elementlist.ariaLabel',
15
+ defaultMessage: 'Select element',
16
+ description: 'The text is used as an aria-label for the element browser listbox. It provides an accessible name for screen readers to identify the list of elements that can be selected and inserted.'
17
+ },
13
18
  searchAriaLabel: {
14
19
  id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
15
20
  defaultMessage: 'Search',
@@ -310,6 +310,11 @@ export const messages = defineMessages({
310
310
  defaultMessage: `⚠️ You can't sort a table with merged cells`,
311
311
  description: `Split your cells to enable this feature`
312
312
  },
313
+ canNotSortTableNoIcon: {
314
+ id: 'fabric.editor.canNotSortTableNoIcon',
315
+ defaultMessage: `You can't sort a table with merged cells`,
316
+ description: `Split your cells to enable this feature`
317
+ },
313
318
  distributeColumns: {
314
319
  id: 'fabric.editor.distributeColumns',
315
320
  defaultMessage: `Distribute columns`,
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.16.0";
17
+ const packageVersion = "116.17.1";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Transaction meta key used by the selection-preservation plugin
3
+ * to detect formatting operations that need selection re-syncing.
4
+ *
5
+ * When a formatting command (text color, highlight, etc.) changes the document,
6
+ * it sets this meta key to `true` so the selection-preservation plugin can
7
+ * re-sync the DOM selection after the transaction is applied.
8
+ */
9
+ export const FORMAT_SELECTION_SYNC_META = 'editorPluginSelectionPreservationFormatSync';
@@ -25,6 +25,7 @@ export { atTheBeginningOfBlock, atTheEndOfBlock, deleteSelectedRange, expandSele
25
25
  export { getSliceFromSelection } from './context-helpers';
26
26
  export { getFragmentsFromSelection } from './getFragmentsFromSelection';
27
27
  export { getLocalIdsFromSelection } from './getLocalIdsFromSelection';
28
+ export { FORMAT_SELECTION_SYNC_META } from './format-sync-meta';
28
29
  export function getNodeSelectionAnalyticsPayload(selection) {
29
30
  if (selection instanceof NodeSelection) {
30
31
  return {
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "116.16.0";
17
+ const packageVersion = "116.17.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -9,6 +9,7 @@ import React, { Fragment, memo, useCallback, useEffect, useMemo, useState } from
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
11
11
  import { css, jsx } from '@emotion/react';
12
+ import { useIntl } from 'react-intl';
12
13
  import { Grid, List } from 'react-virtualized';
13
14
  import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
14
15
  import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
@@ -26,6 +27,7 @@ import { IconFallback } from '../../../quick-insert';
26
27
  import { ELEMENT_ITEM_HEIGHT, ELEMENT_ITEM_PADDING, ELEMENT_LIST_PADDING, SCROLLBAR_WIDTH } from '../../constants';
27
28
  import useContainerWidth from '../../hooks/use-container-width';
28
29
  import useFocus from '../../hooks/use-focus';
30
+ import commonMessages from '../../messages';
29
31
  import { Modes } from '../../types';
30
32
  import EmptyState from './EmptyState';
31
33
  import { getColumnCount } from './getColumnCount';
@@ -180,6 +182,9 @@ var ElementListSingleColumn = function ElementListSingleColumn(props) {
180
182
  setFocusedCategoryIndex = props.setFocusedCategoryIndex,
181
183
  selectedCategoryIndex = props.selectedCategoryIndex,
182
184
  selectedItemIndex = props.selectedItemIndex;
185
+ var _useIntl = useIntl(),
186
+ formatMessage = _useIntl.formatMessage;
187
+ var elementListAriaLabel = expValEquals('platform_editor_plus_menu_aria_label', 'isEnabled', true) ? formatMessage(commonMessages.elementListAriaLabel) : undefined;
183
188
  var rowRenderer = useMemo(function () {
184
189
  return function (_ref4) {
185
190
  var index = _ref4.index,
@@ -244,7 +249,8 @@ var ElementListSingleColumn = function ElementListSingleColumn(props) {
244
249
  height: height,
245
250
  overscanRowCount: 3,
246
251
  containerRole: "presentation",
247
- role: "listbox"
252
+ role: "listbox",
253
+ "aria-label": elementListAriaLabel
248
254
  // Ignored via go/ees005
249
255
  // eslint-disable-next-line react/jsx-props-no-spreading
250
256
  }, selectedItemIndex !== undefined && {
@@ -265,6 +271,9 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
265
271
  setFocusedCategoryIndex = props.setFocusedCategoryIndex,
266
272
  selectedCategoryIndex = props.selectedCategoryIndex,
267
273
  selectedItemIndex = props.selectedItemIndex;
274
+ var _useIntl2 = useIntl(),
275
+ formatMessage = _useIntl2.formatMessage;
276
+ var elementListAriaLabel = expValEquals('platform_editor_plus_menu_aria_label', 'isEnabled', true) ? formatMessage(commonMessages.elementListAriaLabel) : undefined;
268
277
  var columnWidth = (containerWidth - ELEMENT_ITEM_PADDING * 2) / columnCount;
269
278
  var rowCount = Math.ceil(items.length / columnCount);
270
279
  var cellRenderer = useMemo(function () {
@@ -332,6 +341,7 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
332
341
  containerRole: "row",
333
342
  cellRenderer: cellRenderer,
334
343
  height: height,
344
+ "aria-label": elementListAriaLabel,
335
345
  width: containerWidth - ELEMENT_LIST_PADDING * 2 // containerWidth - padding on Left/Right (for focus outline)
336
346
  /**
337
347
  * Refresh Grid on WidthObserver value change.
@@ -10,6 +10,11 @@ var message = defineMessages({
10
10
  defaultMessage: 'Search',
11
11
  description: 'The text is shown as placeholder text inside the search input field in the element browser. It prompts the user to type a query to filter available elements.'
12
12
  },
13
+ elementListAriaLabel: {
14
+ id: 'fabric.editor.elementbrowser.elementlist.ariaLabel',
15
+ defaultMessage: 'Select element',
16
+ description: 'The text is used as an aria-label for the element browser listbox. It provides an accessible name for screen readers to identify the list of elements that can be selected and inserted.'
17
+ },
13
18
  searchAriaLabel: {
14
19
  id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
15
20
  defaultMessage: 'Search',
@@ -310,6 +310,11 @@ export var messages = defineMessages({
310
310
  defaultMessage: "\u26A0\uFE0F You can't sort a table with merged cells",
311
311
  description: "Split your cells to enable this feature"
312
312
  },
313
+ canNotSortTableNoIcon: {
314
+ id: 'fabric.editor.canNotSortTableNoIcon',
315
+ defaultMessage: "You can't sort a table with merged cells",
316
+ description: "Split your cells to enable this feature"
317
+ },
313
318
  distributeColumns: {
314
319
  id: 'fabric.editor.distributeColumns',
315
320
  defaultMessage: "Distribute columns",
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.16.0";
23
+ var packageVersion = "116.17.1";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Transaction meta key used by the selection-preservation plugin
3
+ * to detect formatting operations that need selection re-syncing.
4
+ *
5
+ * When a formatting command (text color, highlight, etc.) changes the document,
6
+ * it sets this meta key to `true` so the selection-preservation plugin can
7
+ * re-sync the DOM selection after the transaction is applied.
8
+ */
9
+ export var FORMAT_SELECTION_SYNC_META = 'editorPluginSelectionPreservationFormatSync';
@@ -25,6 +25,7 @@ export { atTheBeginningOfBlock, atTheEndOfBlock, deleteSelectedRange, expandSele
25
25
  export { getSliceFromSelection } from './context-helpers';
26
26
  export { getFragmentsFromSelection } from './getFragmentsFromSelection';
27
27
  export { getLocalIdsFromSelection } from './getLocalIdsFromSelection';
28
+ export { FORMAT_SELECTION_SYNC_META } from './format-sync-meta';
28
29
  export function getNodeSelectionAnalyticsPayload(selection) {
29
30
  if (selection instanceof NodeSelection) {
30
31
  return {
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "116.16.0";
24
+ var packageVersion = "116.17.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,7 +1,7 @@
1
- type MessageKeys = 'assistiveTextDefault' | 'assistiveTextResult' | 'elementAfterInputMessage' | 'placeHolderMessage' | 'searchAriaLabel' | 'searchAriaLabelNew';
1
+ type MessageKeys = 'assistiveTextDefault' | 'assistiveTextResult' | 'elementAfterInputMessage' | 'elementListAriaLabel' | 'placeHolderMessage' | 'searchAriaLabel' | 'searchAriaLabelNew';
2
2
  declare const message: Record<MessageKeys, {
3
- id: string;
4
3
  defaultMessage: string;
5
4
  description?: string;
5
+ id: string;
6
6
  }>;
7
7
  export default message;
@@ -44,6 +44,11 @@ export declare const messages: {
44
44
  description: string;
45
45
  id: string;
46
46
  };
47
+ canNotSortTableNoIcon: {
48
+ defaultMessage: string;
49
+ description: string;
50
+ id: string;
51
+ };
47
52
  cellAlignment: {
48
53
  defaultMessage: string;
49
54
  description: string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Transaction meta key used by the selection-preservation plugin
3
+ * to detect formatting operations that need selection re-syncing.
4
+ *
5
+ * When a formatting command (text color, highlight, etc.) changes the document,
6
+ * it sets this meta key to `true` so the selection-preservation plugin can
7
+ * re-sync the DOM selection after the transaction is applied.
8
+ */
9
+ export declare const FORMAT_SELECTION_SYNC_META = "editorPluginSelectionPreservationFormatSync";
@@ -24,6 +24,7 @@ export { atTheBeginningOfBlock, atTheEndOfBlock, deleteSelectedRange, expandSele
24
24
  export { getSliceFromSelection } from './context-helpers';
25
25
  export { getFragmentsFromSelection } from './getFragmentsFromSelection';
26
26
  export { getLocalIdsFromSelection } from './getLocalIdsFromSelection';
27
+ export { FORMAT_SELECTION_SYNC_META } from './format-sync-meta';
27
28
  export declare function getNodeSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
28
29
  export declare function getAllSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
29
30
  export declare function getCellSelectionAnalyticsPayload(state: EditorState): AnalyticsEventPayload | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.17.0",
3
+ "version": "116.17.2",
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/"
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/task-decision": "^21.4.0",
81
81
  "@atlaskit/teams-app-config": "^2.1.0",
82
82
  "@atlaskit/textfield": "^9.1.0",
83
- "@atlaskit/tmp-editor-statsig": "^114.4.0",
83
+ "@atlaskit/tmp-editor-statsig": "^114.6.0",
84
84
  "@atlaskit/tokens": "^15.2.0",
85
85
  "@atlaskit/tooltip": "^23.1.0",
86
86
  "@atlaskit/width-detector": "^6.1.0",