@atlaskit/editor-common 93.2.2 → 93.2.4

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
+ ## 93.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#149764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/149764)
8
+ [`f6226757e21b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f6226757e21b9) -
9
+ Change move left/right shortcut for nested nodes
10
+
11
+ ## 93.2.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [#150908](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150908)
16
+ [`7aad3c3a375ff`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7aad3c3a375ff) -
17
+ Undoing addition of stopEvent function to extensionNodeView and related tests
18
+ - Updated dependencies
19
+
3
20
  ## 93.2.2
4
21
 
5
22
  ### Patch Changes
@@ -12,7 +12,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
12
12
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _reactNodeView = _interopRequireDefault(require("../react-node-view"));
17
16
  var _Extension = require("./Extension");
18
17
  var _ExtensionNodeWrapper = require("./ExtensionNodeWrapper");
@@ -39,18 +38,6 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
39
38
  // children a chance to recalc
40
39
  return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
41
40
  }
42
-
43
- // When interacting with input elements inside an extension's body, the events
44
- // bubble up to the editor and get handled by it. This almost always gets in the way
45
- // of being able to actually interact with said input in the extension, i.e.
46
- // typing inside a text field (in an extension body) will print the text in the editor
47
- // content area instead. This change prevents the editor view from trying to handle these events,
48
- // when the target of the event is an input element, so the extension can.
49
- }, {
50
- key: "stopEvent",
51
- value: function stopEvent(event) {
52
- return event.target instanceof HTMLInputElement && (0, _platformFeatureFlags.fg)('cc_page_experiences_live_search_wysiwyg');
53
- }
54
41
  }, {
55
42
  key: "getContentDOM",
56
43
  value: function getContentDOM() {
@@ -214,8 +214,8 @@ var toggleHighlightPalette = exports.toggleHighlightPalette = makeKeyMapWithComm
214
214
  var focusToContextMenuTrigger = exports.focusToContextMenuTrigger = makeKeyMapWithCommon('Focus table context menu trigger', 'Shift-F10');
215
215
  var dragToMoveUp = exports.dragToMoveUp = makeKeyMapWithCommon('Move node up in the document', 'Ctrl-Shift-ArrowUp');
216
216
  var dragToMoveDown = exports.dragToMoveDown = makeKeyMapWithCommon('Move node down in the document', 'Ctrl-Shift-ArrowDown');
217
- var dragToMoveLeft = exports.dragToMoveLeft = makeKeyMapWithCommon('Move node to the left column in the document', 'Mod-Ctrl-Shift-ArrowLeft');
218
- var dragToMoveRight = exports.dragToMoveRight = makeKeyMapWithCommon('Move node to the right column in the document', 'Mod-Ctrl-Shift-ArrowRight');
217
+ var dragToMoveLeft = exports.dragToMoveLeft = makeKeyMapWithCommon('Move node to the left column in the document', 'Ctrl-Shift-Alt-ArrowLeft');
218
+ var dragToMoveRight = exports.dragToMoveRight = makeKeyMapWithCommon('Move node to the right column in the document', 'Ctrl-Shift-Alt-ArrowRight');
219
219
  var showElementDragHandle = exports.showElementDragHandle = makeKeyMapWithCommon('Show drag handle for editor element', 'Ctrl-Shift-h');
220
220
  var continueInRovoChat = exports.continueInRovoChat = makeKeyMapWithCommon('Continue in Rovo chat', 'Alt-Enter');
221
221
  var arrowKeysMap = {
@@ -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 && {}.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 = "93.2.2";
20
+ var packageVersion = "93.2.4";
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
@@ -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 = "93.2.2";
27
+ var packageVersion = "93.2.4";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import ReactNodeView from '../react-node-view';
4
3
  import { Extension } from './Extension';
5
4
  import { ExtensionNodeWrapper } from './ExtensionNodeWrapper';
@@ -16,16 +15,6 @@ export class ExtensionNode extends ReactNodeView {
16
15
  // children a chance to recalc
17
16
  return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
18
17
  }
19
-
20
- // When interacting with input elements inside an extension's body, the events
21
- // bubble up to the editor and get handled by it. This almost always gets in the way
22
- // of being able to actually interact with said input in the extension, i.e.
23
- // typing inside a text field (in an extension body) will print the text in the editor
24
- // content area instead. This change prevents the editor view from trying to handle these events,
25
- // when the target of the event is an input element, so the extension can.
26
- stopEvent(event) {
27
- return event.target instanceof HTMLInputElement && fg('cc_page_experiences_live_search_wysiwyg');
28
- }
29
18
  getContentDOM() {
30
19
  if (this.node.isInline) {
31
20
  return;
@@ -100,8 +100,8 @@ export const toggleHighlightPalette = makeKeyMapWithCommon('Toggle Highlight Pal
100
100
  export const focusToContextMenuTrigger = makeKeyMapWithCommon('Focus table context menu trigger', 'Shift-F10');
101
101
  export const dragToMoveUp = makeKeyMapWithCommon('Move node up in the document', 'Ctrl-Shift-ArrowUp');
102
102
  export const dragToMoveDown = makeKeyMapWithCommon('Move node down in the document', 'Ctrl-Shift-ArrowDown');
103
- export const dragToMoveLeft = makeKeyMapWithCommon('Move node to the left column in the document', 'Mod-Ctrl-Shift-ArrowLeft');
104
- export const dragToMoveRight = makeKeyMapWithCommon('Move node to the right column in the document', 'Mod-Ctrl-Shift-ArrowRight');
103
+ export const dragToMoveLeft = makeKeyMapWithCommon('Move node to the left column in the document', 'Ctrl-Shift-Alt-ArrowLeft');
104
+ export const dragToMoveRight = makeKeyMapWithCommon('Move node to the right column in the document', 'Ctrl-Shift-Alt-ArrowRight');
105
105
  export const showElementDragHandle = makeKeyMapWithCommon('Show drag handle for editor element', 'Ctrl-Shift-h');
106
106
  export const continueInRovoChat = makeKeyMapWithCommon('Continue in Rovo chat', 'Alt-Enter');
107
107
  const arrowKeysMap = {
@@ -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 = "93.2.2";
4
+ const packageVersion = "93.2.4";
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
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "93.2.2";
16
+ const packageVersion = "93.2.4";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -6,7 +6,6 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import ReactNodeView from '../react-node-view';
11
10
  import { Extension } from './Extension';
12
11
  import { ExtensionNodeWrapper } from './ExtensionNodeWrapper';
@@ -31,18 +30,6 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
31
30
  // children a chance to recalc
32
31
  return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
33
32
  }
34
-
35
- // When interacting with input elements inside an extension's body, the events
36
- // bubble up to the editor and get handled by it. This almost always gets in the way
37
- // of being able to actually interact with said input in the extension, i.e.
38
- // typing inside a text field (in an extension body) will print the text in the editor
39
- // content area instead. This change prevents the editor view from trying to handle these events,
40
- // when the target of the event is an input element, so the extension can.
41
- }, {
42
- key: "stopEvent",
43
- value: function stopEvent(event) {
44
- return event.target instanceof HTMLInputElement && fg('cc_page_experiences_live_search_wysiwyg');
45
- }
46
33
  }, {
47
34
  key: "getContentDOM",
48
35
  value: function getContentDOM() {
@@ -101,8 +101,8 @@ export var toggleHighlightPalette = makeKeyMapWithCommon('Toggle Highlight Palet
101
101
  export var focusToContextMenuTrigger = makeKeyMapWithCommon('Focus table context menu trigger', 'Shift-F10');
102
102
  export var dragToMoveUp = makeKeyMapWithCommon('Move node up in the document', 'Ctrl-Shift-ArrowUp');
103
103
  export var dragToMoveDown = makeKeyMapWithCommon('Move node down in the document', 'Ctrl-Shift-ArrowDown');
104
- export var dragToMoveLeft = makeKeyMapWithCommon('Move node to the left column in the document', 'Mod-Ctrl-Shift-ArrowLeft');
105
- export var dragToMoveRight = makeKeyMapWithCommon('Move node to the right column in the document', 'Mod-Ctrl-Shift-ArrowRight');
104
+ export var dragToMoveLeft = makeKeyMapWithCommon('Move node to the left column in the document', 'Ctrl-Shift-Alt-ArrowLeft');
105
+ export var dragToMoveRight = makeKeyMapWithCommon('Move node to the right column in the document', 'Ctrl-Shift-Alt-ArrowRight');
106
106
  export var showElementDragHandle = makeKeyMapWithCommon('Show drag handle for editor element', 'Ctrl-Shift-h');
107
107
  export var continueInRovoChat = makeKeyMapWithCommon('Continue in Rovo chat', 'Alt-Enter');
108
108
  var arrowKeysMap = {
@@ -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 = "93.2.2";
10
+ var packageVersion = "93.2.4";
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
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
21
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "93.2.2";
24
+ var packageVersion = "93.2.4";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
@@ -17,7 +17,6 @@ export declare class ExtensionNode extends ReactNodeView {
17
17
  type: 'selection';
18
18
  target: Element;
19
19
  }): boolean;
20
- stopEvent(event: Event): boolean;
21
20
  getContentDOM(): {
22
21
  dom: HTMLDivElement;
23
22
  } | undefined;
@@ -17,7 +17,6 @@ export declare class ExtensionNode extends ReactNodeView {
17
17
  type: 'selection';
18
18
  target: Element;
19
19
  }): boolean;
20
- stopEvent(event: Event): boolean;
21
20
  getContentDOM(): {
22
21
  dom: HTMLDivElement;
23
22
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "93.2.2",
3
+ "version": "93.2.4",
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/"
@@ -145,7 +145,7 @@
145
145
  "@atlaskit/primitives": "^12.2.0",
146
146
  "@atlaskit/profilecard": "^20.4.0",
147
147
  "@atlaskit/section-message": "^6.6.0",
148
- "@atlaskit/smart-card": "^29.4.0",
148
+ "@atlaskit/smart-card": "^30.0.0",
149
149
  "@atlaskit/smart-user-picker": "^6.10.0",
150
150
  "@atlaskit/spinner": "^16.3.0",
151
151
  "@atlaskit/task-decision": "^17.11.0",
@@ -265,9 +265,6 @@
265
265
  "platform_editor_react18_phase2": {
266
266
  "type": "boolean"
267
267
  },
268
- "cc_page_experiences_live_search_wysiwyg": {
269
- "type": "boolean"
270
- },
271
268
  "use-effect-in-use-previous-props": {
272
269
  "type": "boolean"
273
270
  },