@atlaskit/editor-core 216.12.1 → 216.12.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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d2f1426fe5b85`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2f1426fe5b85) -
8
+ [ux] ENGHEALTH-46817 Add feature gated a11y eslint fixes across editor packages
9
+ - Updated dependencies
10
+
3
11
  ## 216.12.1
4
12
 
5
13
  ### Patch Changes
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.ClickAreaBlock = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
10
11
  var _clickAreaHelper = require("../click-area-helper");
11
12
  /**
12
13
  * @jsxRuntime classic
@@ -31,14 +32,15 @@ var ClickAreaBlock = exports.ClickAreaBlock = function ClickAreaBlock(_ref) {
31
32
  (0, _clickAreaHelper.clickAreaClickHandler)(editorView, event);
32
33
  }
33
34
  }, [editorView, editorDisabled]);
34
- return (
35
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
36
- (0, _react2.jsx)("div", {
37
- "data-editor-click-wrapper": true,
38
- "data-testid": "click-wrapper",
39
- css: clickWrapper,
40
- onMouseDown: handleMouseDown
41
- }, children)
42
- );
35
+ return (0, _react2.jsx)("div", {
36
+ "data-editor-click-wrapper": true,
37
+ "data-testid": "click-wrapper",
38
+ css: clickWrapper,
39
+ onMouseDown: handleMouseDown
40
+ // This div is a presentational container that captures mouse events
41
+ // for programmatic editor focus management, not user interaction.
42
+ ,
43
+ role: (0, _expValEquals.expValEquals)('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'presentation' : undefined
44
+ }, children);
43
45
  };
44
46
  var _default = exports.default = ClickAreaBlock;
@@ -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 = "216.12.0";
8
+ var version = exports.version = "0.0.0-development";
@@ -6,6 +6,7 @@ import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
10
  import { clickAreaClickHandler } from '../click-area-helper';
10
11
  const clickWrapper = css({
11
12
  flexGrow: 1,
@@ -24,14 +25,15 @@ export const ClickAreaBlock = ({
24
25
  clickAreaClickHandler(editorView, event);
25
26
  }
26
27
  }, [editorView, editorDisabled]);
27
- return (
28
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
29
- jsx("div", {
30
- "data-editor-click-wrapper": true,
31
- "data-testid": "click-wrapper",
32
- css: clickWrapper,
33
- onMouseDown: handleMouseDown
34
- }, children)
35
- );
28
+ return jsx("div", {
29
+ "data-editor-click-wrapper": true,
30
+ "data-testid": "click-wrapper",
31
+ css: clickWrapper,
32
+ onMouseDown: handleMouseDown
33
+ // This div is a presentational container that captures mouse events
34
+ // for programmatic editor focus management, not user interaction.
35
+ ,
36
+ role: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'presentation' : undefined
37
+ }, children);
36
38
  };
37
39
  export default ClickAreaBlock;
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.12.0";
2
+ export const version = "0.0.0-development";
@@ -6,6 +6,7 @@ import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
10
  import { clickAreaClickHandler } from '../click-area-helper';
10
11
  var clickWrapper = css({
11
12
  flexGrow: 1,
@@ -23,14 +24,15 @@ export var ClickAreaBlock = function ClickAreaBlock(_ref) {
23
24
  clickAreaClickHandler(editorView, event);
24
25
  }
25
26
  }, [editorView, editorDisabled]);
26
- return (
27
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
28
- jsx("div", {
29
- "data-editor-click-wrapper": true,
30
- "data-testid": "click-wrapper",
31
- css: clickWrapper,
32
- onMouseDown: handleMouseDown
33
- }, children)
34
- );
27
+ return jsx("div", {
28
+ "data-editor-click-wrapper": true,
29
+ "data-testid": "click-wrapper",
30
+ css: clickWrapper,
31
+ onMouseDown: handleMouseDown
32
+ // This div is a presentational container that captures mouse events
33
+ // for programmatic editor focus management, not user interaction.
34
+ ,
35
+ role: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'presentation' : undefined
36
+ }, children);
35
37
  };
36
38
  export default ClickAreaBlock;
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.12.0";
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": "216.12.1",
3
+ "version": "216.12.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/editor-plugin-connectivity": "^7.0.0",
52
52
  "@atlaskit/editor-plugin-quick-insert": "^7.4.0",
53
53
  "@atlaskit/editor-plugin-user-preferences": "^5.0.0",
54
- "@atlaskit/editor-plugins": "^12.0.0",
54
+ "@atlaskit/editor-plugins": "^12.1.0",
55
55
  "@atlaskit/editor-prosemirror": "^7.3.0",
56
56
  "@atlaskit/editor-shared-styles": "^3.10.0",
57
57
  "@atlaskit/editor-ssr-renderer": "^2.2.0",
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.3.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^29.2.0",
69
+ "@atlaskit/tmp-editor-statsig": "^29.3.0",
70
70
  "@atlaskit/tokens": "^11.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -106,7 +106,7 @@
106
106
  "@atlaskit/media-core": "^37.0.0",
107
107
  "@atlaskit/media-integration-test-helpers": "workspace:^",
108
108
  "@atlaskit/media-test-helpers": "^40.0.0",
109
- "@atlaskit/modal-dialog": "^14.10.0",
109
+ "@atlaskit/modal-dialog": "^14.11.0",
110
110
  "@atlaskit/renderer": "^126.11.0",
111
111
  "@atlaskit/section-message": "^8.12.0",
112
112
  "@atlaskit/synchrony-test-helpers": "workspace:^",