@atlaskit/editor-common 87.3.1 → 87.3.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,12 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 87.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`63d659eb3e73d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/63d659eb3e73d) -
8
+ ED-24315 improve a11y for block controls
9
+
3
10
  ## 87.3.1
4
11
 
5
12
  ### Patch Changes
@@ -317,6 +317,10 @@ function getAriaKeyshortcuts(keymap) {
317
317
  return 'Space';
318
318
  case 'backspace':
319
319
  return 'Backspace';
320
+ case 'arrowup':
321
+ return 'Arrow Up';
322
+ case 'arrowdown':
323
+ return 'Arrow Down';
320
324
  default:
321
325
  return modifier.split('').join(' ');
322
326
  }
@@ -20,5 +20,15 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
20
20
  id: 'fabric.editor.blockControlMoveDown',
21
21
  defaultMessage: 'Move down',
22
22
  description: 'Moves selected content down'
23
+ },
24
+ movedup: {
25
+ id: 'fabric.editor.blockControlMovedUp',
26
+ defaultMessage: 'Content has been moved up',
27
+ description: 'Selected content has been moved down'
28
+ },
29
+ movedDown: {
30
+ id: 'fabric.editor.blockControlMovedDown',
31
+ defaultMessage: 'Content has been moved down',
32
+ description: 'Selected content has been moved down'
23
33
  }
24
34
  });
@@ -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 = "87.3.1";
20
+ var packageVersion = "87.3.2";
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
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "87.3.1";
26
+ var packageVersion = "87.3.2";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -203,6 +203,10 @@ export function getAriaKeyshortcuts(keymap) {
203
203
  return 'Space';
204
204
  case 'backspace':
205
205
  return 'Backspace';
206
+ case 'arrowup':
207
+ return 'Arrow Up';
208
+ case 'arrowdown':
209
+ return 'Arrow Down';
206
210
  default:
207
211
  return modifier.split('').join(' ');
208
212
  }
@@ -14,5 +14,15 @@ export const messages = defineMessages({
14
14
  id: 'fabric.editor.blockControlMoveDown',
15
15
  defaultMessage: 'Move down',
16
16
  description: 'Moves selected content down'
17
+ },
18
+ movedup: {
19
+ id: 'fabric.editor.blockControlMovedUp',
20
+ defaultMessage: 'Content has been moved up',
21
+ description: 'Selected content has been moved down'
22
+ },
23
+ movedDown: {
24
+ id: 'fabric.editor.blockControlMovedDown',
25
+ defaultMessage: 'Content has been moved down',
26
+ description: 'Selected content has been moved down'
17
27
  }
18
28
  });
@@ -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 = "87.3.1";
4
+ const packageVersion = "87.3.2";
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
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "87.3.1";
15
+ const packageVersion = "87.3.2";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -206,6 +206,10 @@ export function getAriaKeyshortcuts(keymap) {
206
206
  return 'Space';
207
207
  case 'backspace':
208
208
  return 'Backspace';
209
+ case 'arrowup':
210
+ return 'Arrow Up';
211
+ case 'arrowdown':
212
+ return 'Arrow Down';
209
213
  default:
210
214
  return modifier.split('').join(' ');
211
215
  }
@@ -14,5 +14,15 @@ export var messages = defineMessages({
14
14
  id: 'fabric.editor.blockControlMoveDown',
15
15
  defaultMessage: 'Move down',
16
16
  description: 'Moves selected content down'
17
+ },
18
+ movedup: {
19
+ id: 'fabric.editor.blockControlMovedUp',
20
+ defaultMessage: 'Content has been moved up',
21
+ description: 'Selected content has been moved down'
22
+ },
23
+ movedDown: {
24
+ id: 'fabric.editor.blockControlMovedDown',
25
+ defaultMessage: 'Content has been moved down',
26
+ description: 'Selected content has been moved down'
17
27
  }
18
28
  });
@@ -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 = "87.3.1";
10
+ var packageVersion = "87.3.2";
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
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "87.3.1";
23
+ var packageVersion = "87.3.2";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -14,4 +14,14 @@ export declare const messages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ movedup: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ movedDown: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
17
27
  };
@@ -14,4 +14,14 @@ export declare const messages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ movedup: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ movedDown: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
17
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "87.3.1",
3
+ "version": "87.3.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/"