@atlaskit/editor-core 216.12.1 → 216.12.3

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,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`85444e8a5672a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85444e8a5672a) -
8
+ EDITOR-5526 clean up platform_synced_block_patch_2
9
+ - Updated dependencies
10
+
11
+ ## 216.12.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`d2f1426fe5b85`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2f1426fe5b85) -
16
+ [ux] ENGHEALTH-46817 Add feature gated a11y eslint fixes across editor packages
17
+ - Updated dependencies
18
+
3
19
  ## 216.12.1
4
20
 
5
21
  ### 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;
@@ -382,13 +382,13 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
382
382
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
383
383
  _layout.layoutSelectedStylesAdvanced :
384
384
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
385
- _layout.layoutSelectedStylesNotAdvanced, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_2') &&
385
+ _layout.layoutSelectedStylesNotAdvanced, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
386
386
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
387
387
  _layout.layoutSelectedStylesAdvancedFix,
388
388
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
389
389
  (0, _experiments.editorExperiment)('advanced_layouts', true) && _layout.layoutColumnResponsiveStyles,
390
390
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
391
- (0, _experiments.editorExperiment)('advanced_layouts', true) && _layout.layoutResponsiveBaseStyles, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && ((0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_2') ?
391
+ (0, _experiments.editorExperiment)('advanced_layouts', true) && _layout.layoutResponsiveBaseStyles, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && ((0, _experiments.editorExperiment)('platform_synced_block', true) ?
392
392
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
393
393
  _layout.layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync :
394
394
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -507,8 +507,6 @@ var layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync = exports.layoutBas
507
507
  }
508
508
  });
509
509
 
510
- // platform_synced_block_patch_2
511
-
512
510
  /**
513
511
  * Layout in view mode styles for selected state when advanced layouts experiment is on.
514
512
  */
@@ -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 = "216.12.2";
@@ -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;
@@ -378,13 +378,13 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
378
378
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
379
379
  layoutSelectedStylesAdvanced :
380
380
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
381
- layoutSelectedStylesNotAdvanced, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_2') &&
381
+ layoutSelectedStylesNotAdvanced, editorExperiment('platform_synced_block', true) &&
382
382
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
383
383
  layoutSelectedStylesAdvancedFix,
384
384
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
385
385
  editorExperiment('advanced_layouts', true) && layoutColumnResponsiveStyles,
386
386
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
387
- editorExperiment('advanced_layouts', true) && layoutResponsiveBaseStyles, fg('platform_editor_nested_dnd_styles_changes') && (editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_2') ?
387
+ editorExperiment('advanced_layouts', true) && layoutResponsiveBaseStyles, fg('platform_editor_nested_dnd_styles_changes') && (editorExperiment('platform_synced_block', true) ?
388
388
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
389
389
  layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync :
390
390
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -572,8 +572,6 @@ export const layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync = css({
572
572
  }
573
573
  });
574
574
 
575
- // platform_synced_block_patch_2
576
-
577
575
  /**
578
576
  * Layout in view mode styles for selected state when advanced layouts experiment is on.
579
577
  */
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.12.0";
2
+ export const version = "216.12.2";
@@ -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;
@@ -374,13 +374,13 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
374
374
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
375
375
  layoutSelectedStylesAdvanced :
376
376
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
377
- layoutSelectedStylesNotAdvanced, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_2') &&
377
+ layoutSelectedStylesNotAdvanced, editorExperiment('platform_synced_block', true) &&
378
378
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
379
379
  layoutSelectedStylesAdvancedFix,
380
380
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
381
381
  editorExperiment('advanced_layouts', true) && layoutColumnResponsiveStyles,
382
382
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
383
- editorExperiment('advanced_layouts', true) && layoutResponsiveBaseStyles, fg('platform_editor_nested_dnd_styles_changes') && (editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_2') ?
383
+ editorExperiment('advanced_layouts', true) && layoutResponsiveBaseStyles, fg('platform_editor_nested_dnd_styles_changes') && (editorExperiment('platform_synced_block', true) ?
384
384
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
385
385
  layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync :
386
386
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -499,8 +499,6 @@ export var layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync = css({
499
499
  }
500
500
  });
501
501
 
502
- // platform_synced_block_patch_2
503
-
504
502
  /**
505
503
  * Layout in view mode styles for selected state when advanced layouts experiment is on.
506
504
  */
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.12.0";
2
+ export var version = "216.12.2";
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.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,12 +51,12 @@
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",
58
58
  "@atlaskit/editor-toolbar": "^0.19.0",
59
- "@atlaskit/editor-toolbar-model": "^0.3.0",
59
+ "@atlaskit/editor-toolbar-model": "^0.4.0",
60
60
  "@atlaskit/emoji": "^69.10.0",
61
61
  "@atlaskit/icon": "^31.0.0",
62
62
  "@atlaskit/link": "^3.3.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.5.0",
70
70
  "@atlaskit/tokens": "^11.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -83,7 +83,7 @@
83
83
  "uuid": "^3.1.0"
84
84
  },
85
85
  "peerDependencies": {
86
- "@atlaskit/editor-common": "^111.18.0",
86
+ "@atlaskit/editor-common": "^111.19.0",
87
87
  "@atlaskit/link-provider": "^4.2.0",
88
88
  "@atlaskit/media-core": "^37.0.0",
89
89
  "react": "^18.2.0",
@@ -106,8 +106,8 @@
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",
110
- "@atlaskit/renderer": "^126.11.0",
109
+ "@atlaskit/modal-dialog": "^14.11.0",
110
+ "@atlaskit/renderer": "^126.12.0",
111
111
  "@atlaskit/section-message": "^8.12.0",
112
112
  "@atlaskit/synchrony-test-helpers": "workspace:^",
113
113
  "@atlaskit/toggle": "^15.2.0",
@@ -335,9 +335,6 @@
335
335
  "platform_editor_a11y_9262": {
336
336
  "type": "boolean"
337
337
  },
338
- "platform_synced_block_patch_2": {
339
- "type": "boolean"
340
- },
341
338
  "platform_synced_block_patch_3": {
342
339
  "type": "boolean"
343
340
  }