@atlaskit/editor-core 214.2.3 → 214.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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 214.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8807cdcfe7132`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8807cdcfe7132) -
8
+ Cleanup platform_editor_keep_focus_on_content_comp_clicks
9
+ - Updated dependencies
10
+
3
11
  ## 214.2.3
4
12
 
5
13
  ### Patch Changes
@@ -8,7 +8,6 @@ var _collab = require("@atlaskit/editor-common/collab");
8
8
  var _commands = require("@atlaskit/editor-common/commands");
9
9
  var _selection = require("@atlaskit/editor-common/selection");
10
10
  var _utils = require("@atlaskit/editor-common/utils");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
12
  var _contentComponentWrapper = require("./ClickAreaBlock/contentComponentWrapper");
14
13
  // we ignore all of the clicks made inside <div class="ak-editor-content-area" /> (but not clicks on the node itself)
@@ -83,7 +82,7 @@ var clickAreaClickHandler = exports.clickAreaClickHandler = function clickAreaCl
83
82
  (0, _utils.closestElement)(selection === null || selection === void 0 ? void 0 : selection.anchorNode, '[data-editor-popup]');
84
83
 
85
84
  // For clicks directly on the content component -- they should not be ignored
86
- var isContentComponent = (0, _platformFeatureFlags.fg)('platform_editor_keep_focus_on_content_comp_clicks') ? target === null || target === void 0 || (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.closest("[".concat(_contentComponentWrapper.ignoreAttribute, "]")) : !!(0, _utils.closestElement)(target, "[".concat(_contentComponentWrapper.ignoreAttribute, "]")) || (target === null || target === void 0 ? void 0 : target.getAttribute(_contentComponentWrapper.ignoreAttribute)) === 'true';
85
+ var isContentComponent = target === null || target === void 0 || (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.closest("[".concat(_contentComponentWrapper.ignoreAttribute, "]"));
87
86
 
88
87
  // This is a super workaround to find when events are coming from Confluence InlineComment modal
89
88
  // We don't own those components, so we can't change them
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "214.2.2";
8
+ var version = exports.version = "0.0.0-development";
@@ -2,7 +2,6 @@ import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
2
2
  import { addParagraphAtEnd } from '@atlaskit/editor-common/commands';
3
3
  import { setSelectionTopLevelBlocks } from '@atlaskit/editor-common/selection';
4
4
  import { closestElement } from '@atlaskit/editor-common/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
6
  import { ignoreAttribute } from './ClickAreaBlock/contentComponentWrapper';
8
7
 
@@ -78,7 +77,7 @@ const clickAreaClickHandler = (view, event) => {
78
77
  closestElement(selection === null || selection === void 0 ? void 0 : selection.anchorNode, '[data-editor-popup]');
79
78
 
80
79
  // For clicks directly on the content component -- they should not be ignored
81
- const isContentComponent = fg('platform_editor_keep_focus_on_content_comp_clicks') ? target === null || target === void 0 ? void 0 : (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.closest(`[${ignoreAttribute}]`) : !!closestElement(target, `[${ignoreAttribute}]`) || (target === null || target === void 0 ? void 0 : target.getAttribute(ignoreAttribute)) === 'true';
80
+ const isContentComponent = target === null || target === void 0 ? void 0 : (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.closest(`[${ignoreAttribute}]`);
82
81
 
83
82
  // This is a super workaround to find when events are coming from Confluence InlineComment modal
84
83
  // We don't own those components, so we can't change them
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "214.2.2";
2
+ export const version = "0.0.0-development";
@@ -2,7 +2,6 @@ import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
2
2
  import { addParagraphAtEnd } from '@atlaskit/editor-common/commands';
3
3
  import { setSelectionTopLevelBlocks } from '@atlaskit/editor-common/selection';
4
4
  import { closestElement } from '@atlaskit/editor-common/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
6
  import { ignoreAttribute } from './ClickAreaBlock/contentComponentWrapper';
8
7
 
@@ -78,7 +77,7 @@ var clickAreaClickHandler = function clickAreaClickHandler(view, event) {
78
77
  closestElement(selection === null || selection === void 0 ? void 0 : selection.anchorNode, '[data-editor-popup]');
79
78
 
80
79
  // For clicks directly on the content component -- they should not be ignored
81
- var isContentComponent = fg('platform_editor_keep_focus_on_content_comp_clicks') ? target === null || target === void 0 || (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.closest("[".concat(ignoreAttribute, "]")) : !!closestElement(target, "[".concat(ignoreAttribute, "]")) || (target === null || target === void 0 ? void 0 : target.getAttribute(ignoreAttribute)) === 'true';
80
+ var isContentComponent = target === null || target === void 0 || (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.closest("[".concat(ignoreAttribute, "]"));
82
81
 
83
82
  // This is a super workaround to find when events are coming from Confluence InlineComment modal
84
83
  // We don't own those components, so we can't change them
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "214.2.2";
2
+ export var version = "0.0.0-development";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "214.2.3",
3
+ "version": "214.2.4",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
65
65
  "@atlaskit/react-ufo": "^4.11.0",
66
66
  "@atlaskit/task-decision": "^19.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^13.5.0",
67
+ "@atlaskit/tmp-editor-statsig": "^13.6.0",
68
68
  "@atlaskit/tokens": "^6.4.0",
69
69
  "@atlaskit/tooltip": "^20.5.0",
70
70
  "@atlaskit/width-detector": "^5.0.0",
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^110.8.0",
84
+ "@atlaskit/editor-common": "^110.9.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",
@@ -97,7 +97,7 @@
97
97
  "@atlaskit/editor-plugin-annotation": "^6.1.0",
98
98
  "@atlaskit/editor-plugin-card": "^11.2.0",
99
99
  "@atlaskit/editor-plugin-list": "^8.0.0",
100
- "@atlaskit/editor-plugin-paste": "^7.0.0",
100
+ "@atlaskit/editor-plugin-paste": "^7.1.0",
101
101
  "@atlaskit/link-provider": "^4.0.0",
102
102
  "@atlaskit/logo": "^19.9.0",
103
103
  "@atlaskit/media-core": "^37.0.0",
@@ -317,9 +317,6 @@
317
317
  "type": "boolean",
318
318
  "referenceOnly": true
319
319
  },
320
- "platform_editor_keep_focus_on_content_comp_clicks": {
321
- "type": "boolean"
322
- },
323
320
  "platform_editor_cmd_y_mac_redo_shortcut": {
324
321
  "type": "boolean",
325
322
  "referenceOnly": true