@atlaskit/editor-common 74.56.10 → 74.57.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,16 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 74.57.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`705d8ec0641`](https://bitbucket.org/atlassian/atlassian-frontend/commits/705d8ec0641) - [ux] Added a new shortcut (⌘ + Opt + ⏎) for Check/Uncheck Action item
8
+
9
+ ### Patch Changes
10
+
11
+ - [`a6c0a2dcf2e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6c0a2dcf2e) - [ux] [ECA11Y-68] Changed in the wrapper to change role="menu" to role="presentation"
12
+ - Updated dependencies
13
+
3
14
  ## 74.56.10
4
15
 
5
16
  ### Patch Changes
@@ -97,7 +97,7 @@ Object.defineProperty(exports, "keymap", {
97
97
  });
98
98
  exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
99
99
  exports.makeKeymap = makeKeymap;
100
- exports.toggleUnderline = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.setNormalText = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRight = exports.moveLeft = exports.moveDown = void 0;
100
+ exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.setNormalText = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRight = exports.moveLeft = exports.moveDown = void 0;
101
101
  exports.tooltip = tooltip;
102
102
  exports.undo = void 0;
103
103
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
@@ -241,6 +241,8 @@ var find = makeKeyMapWithCommon('Find', 'Mod-f');
241
241
  exports.find = find;
242
242
  var alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
243
243
  exports.alignLeft = alignLeft;
244
+ var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
245
+ exports.toggleTaskItemCheckbox = toggleTaskItemCheckbox;
244
246
  var arrowKeysMap = {
245
247
  // for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
246
248
  ARROWLEFT: "\u2190",
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "74.56.10";
19
+ var packageVersion = "74.57.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  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); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "74.56.10";
27
+ var packageVersion = "74.57.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -150,7 +150,7 @@ var DropList = /*#__PURE__*/function (_Component) {
150
150
  "data-testid": testId && "".concat(testId, "--content"),
151
151
  ref: this.handleContentRef,
152
152
  id: id,
153
- role: "menu"
153
+ role: "presentation"
154
154
  }, children) : null;
155
155
  return (0, _react2.jsx)("div", {
156
156
  css: this.wrapperStyles
@@ -68,6 +68,7 @@ export const paste = makeKeyMapWithCommon('Paste', 'Mod-v');
68
68
  export const altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
69
69
  export const find = makeKeyMapWithCommon('Find', 'Mod-f');
70
70
  export const alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
71
+ export const toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
71
72
  const arrowKeysMap = {
72
73
  // for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
73
74
  ARROWLEFT: '\u2190',
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "74.56.10";
3
+ const packageVersion = "74.57.0";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
+
3
4
  import { Component } from 'react';
4
5
  import { css, jsx } from '@emotion/react';
5
6
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
@@ -8,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
8
9
  import { borderRadius } from '@atlaskit/theme/constants';
9
10
  import Layer from '../Layer';
10
11
  const packageName = "@atlaskit/editor-common";
11
- const packageVersion = "74.56.10";
12
+ const packageVersion = "74.57.0";
12
13
  const halfFocusRing = 1;
13
14
  const dropOffset = '0, 8';
14
15
  class DropList extends Component {
@@ -140,7 +141,7 @@ class DropList extends Component {
140
141
  "data-testid": testId && `${testId}--content`,
141
142
  ref: this.handleContentRef,
142
143
  id: id,
143
- role: "menu"
144
+ role: "presentation"
144
145
  }, children) : null;
145
146
  return jsx("div", {
146
147
  css: this.wrapperStyles
@@ -71,6 +71,7 @@ export var paste = makeKeyMapWithCommon('Paste', 'Mod-v');
71
71
  export var altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
72
72
  export var find = makeKeyMapWithCommon('Find', 'Mod-f');
73
73
  export var alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
74
+ export var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
74
75
  var arrowKeysMap = {
75
76
  // for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
76
77
  ARROWLEFT: "\u2190",
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "74.56.10";
9
+ var packageVersion = "74.57.0";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -10,6 +10,7 @@ var _templateObject, _templateObject2, _templateObject3;
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
11
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
12
  /** @jsx jsx */
13
+
13
14
  import { Component } from 'react';
14
15
  import { css, jsx } from '@emotion/react';
15
16
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
@@ -18,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
18
19
  import { borderRadius } from '@atlaskit/theme/constants';
19
20
  import Layer from '../Layer';
20
21
  var packageName = "@atlaskit/editor-common";
21
- var packageVersion = "74.56.10";
22
+ var packageVersion = "74.57.0";
22
23
  var halfFocusRing = 1;
23
24
  var dropOffset = '0, 8';
24
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -144,7 +145,7 @@ var DropList = /*#__PURE__*/function (_Component) {
144
145
  "data-testid": testId && "".concat(testId, "--content"),
145
146
  ref: this.handleContentRef,
146
147
  id: id,
147
- role: "menu"
148
+ role: "presentation"
148
149
  }, children) : null;
149
150
  return jsx("div", {
150
151
  css: this.wrapperStyles
@@ -67,6 +67,7 @@ export declare const paste: Keymap;
67
67
  export declare const altPaste: Keymap;
68
68
  export declare const find: Keymap;
69
69
  export declare const alignLeft: Keymap;
70
+ export declare const toggleTaskItemCheckbox: Keymap;
70
71
  export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
71
72
  export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
72
73
  description?: string | React.ReactNode;
@@ -1,6 +1,7 @@
1
1
  /** @jsx jsx */
2
- import { Component, ReactNode } from 'react';
3
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
2
+ import type { ReactNode } from 'react';
3
+ import { Component } from 'react';
4
+ import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
5
  interface Props extends WithAnalyticsEventsProps {
5
6
  isOpen?: boolean;
6
7
  trigger?: typeof Component;
@@ -67,6 +67,7 @@ export declare const paste: Keymap;
67
67
  export declare const altPaste: Keymap;
68
68
  export declare const find: Keymap;
69
69
  export declare const alignLeft: Keymap;
70
+ export declare const toggleTaskItemCheckbox: Keymap;
70
71
  export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
71
72
  export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
72
73
  description?: string | React.ReactNode;
@@ -1,6 +1,7 @@
1
1
  /** @jsx jsx */
2
- import { Component, ReactNode } from 'react';
3
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
2
+ import type { ReactNode } from 'react';
3
+ import { Component } from 'react';
4
+ import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
5
  interface Props extends WithAnalyticsEventsProps {
5
6
  isOpen?: boolean;
6
7
  trigger?: typeof Component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.56.10",
3
+ "version": "74.57.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/"
@@ -110,7 +110,7 @@
110
110
  "@atlaskit/profilecard": "^19.5.0",
111
111
  "@atlaskit/smart-user-picker": "^6.3.0",
112
112
  "@atlaskit/spinner": "^15.5.0",
113
- "@atlaskit/task-decision": "^17.7.0",
113
+ "@atlaskit/task-decision": "^17.8.0",
114
114
  "@atlaskit/theme": "^12.6.0",
115
115
  "@atlaskit/tokens": "^1.21.0",
116
116
  "@atlaskit/tooltip": "^17.8.0",
@@ -146,7 +146,7 @@
146
146
  "devDependencies": {
147
147
  "@atlaskit/media-core": "^34.1.0",
148
148
  "@atlaskit/media-test-helpers": "^33.0.0",
149
- "@atlaskit/smart-card": "^26.22.0",
149
+ "@atlaskit/smart-card": "^26.23.0",
150
150
  "@atlaskit/util-data-test": "^17.8.0",
151
151
  "@atlaskit/visual-regression": "*",
152
152
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",