@atlaskit/editor-core 207.18.1 → 207.19.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,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 207.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#167123](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167123)
8
+ [`8baa50249f460`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8baa50249f460) -
9
+ fix: stable class name for EditorView.dom
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 207.18.1
4
16
 
5
17
  ### Patch Changes
@@ -27,6 +27,7 @@ var _document = require("@atlaskit/editor-common/utils/document");
27
27
  var _state2 = require("@atlaskit/editor-prosemirror/state");
28
28
  var _view = require("@atlaskit/editor-prosemirror/view");
29
29
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
30
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
30
31
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
31
32
  var _useProviders = require("../composable-editor/hooks/useProviders");
32
33
  var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
@@ -578,7 +579,7 @@ function ReactEditorView(props) {
578
579
  var createEditor = (0, _react.useCallback)(function (assistiveLabel, assistiveDescribedBy) {
579
580
  return /*#__PURE__*/_react.default.createElement("div", {
580
581
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
581
- className: (0, _getUAPrefix.getUAPrefix)(),
582
+ className: ((0, _expValEquals.expValEquals)('platform_editor_stable_editorview_classname', 'isEnabled', true) ? 'ProseMirror ' : '') + (0, _getUAPrefix.getUAPrefix)(),
582
583
  key: "ProseMirror",
583
584
  ref: handleEditorViewRef,
584
585
  "aria-label": assistiveLabel || props.intl.formatMessage(_messages.editorMessages.editorAssistiveLabel)
@@ -154,6 +154,7 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
154
154
  _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
155
155
  "data-testid": "context-panel-panel",
156
156
  "aria-labelledby": "context-panel-title",
157
+ "aria-label": "context-panel-panel",
157
158
  role: "dialog"
158
159
  }, (0, _react2.jsx)("div", {
159
160
  "data-testid": "context-panel-content",
@@ -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 = "207.18.1";
8
+ var version = exports.version = "207.19.0";
@@ -16,6 +16,7 @@ import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
16
16
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
17
17
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
18
18
  import { fg } from '@atlaskit/platform-feature-flags';
19
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
20
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
20
21
  import { useProviders } from '../composable-editor/hooks/useProviders';
21
22
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
@@ -547,7 +548,7 @@ export function ReactEditorView(props) {
547
548
  const createEditor = useCallback((assistiveLabel, assistiveDescribedBy) => {
548
549
  return /*#__PURE__*/React.createElement("div", {
549
550
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
550
- className: getUAPrefix(),
551
+ className: (expValEquals('platform_editor_stable_editorview_classname', 'isEnabled', true) ? 'ProseMirror ' : '') + getUAPrefix(),
551
552
  key: "ProseMirror",
552
553
  ref: handleEditorViewRef,
553
554
  "aria-label": assistiveLabel || props.intl.formatMessage(editorMessages.editorAssistiveLabel)
@@ -142,6 +142,7 @@ export class SwappableContentArea extends React.PureComponent {
142
142
  this.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
143
143
  "data-testid": "context-panel-panel",
144
144
  "aria-labelledby": "context-panel-title",
145
+ "aria-label": "context-panel-panel",
145
146
  role: "dialog"
146
147
  }, jsx("div", {
147
148
  "data-testid": "context-panel-content",
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "207.18.1";
2
+ export const version = "207.19.0";
@@ -20,6 +20,7 @@ import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
20
20
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
21
21
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
22
22
  import { fg } from '@atlaskit/platform-feature-flags';
23
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
24
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
24
25
  import { useProviders } from '../composable-editor/hooks/useProviders';
25
26
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
@@ -568,7 +569,7 @@ export function ReactEditorView(props) {
568
569
  var createEditor = useCallback(function (assistiveLabel, assistiveDescribedBy) {
569
570
  return /*#__PURE__*/React.createElement("div", {
570
571
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
571
- className: getUAPrefix(),
572
+ className: (expValEquals('platform_editor_stable_editorview_classname', 'isEnabled', true) ? 'ProseMirror ' : '') + getUAPrefix(),
572
573
  key: "ProseMirror",
573
574
  ref: handleEditorViewRef,
574
575
  "aria-label": assistiveLabel || props.intl.formatMessage(editorMessages.editorAssistiveLabel)
@@ -149,6 +149,7 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
149
149
  _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
150
150
  "data-testid": "context-panel-panel",
151
151
  "aria-labelledby": "context-panel-title",
152
+ "aria-label": "context-panel-panel",
152
153
  role: "dialog"
153
154
  }, jsx("div", {
154
155
  "data-testid": "context-panel-content",
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "207.18.1";
2
+ export var version = "207.19.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "207.18.1",
3
+ "version": "207.19.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^23.2.0",
48
48
  "@atlaskit/css": "^0.10.0",
49
- "@atlaskit/editor-common": "^106.4.0",
49
+ "@atlaskit/editor-common": "^106.5.0",
50
50
  "@atlaskit/editor-json-transformer": "^8.24.0",
51
51
  "@atlaskit/editor-performance-metrics": "^2.1.0",
52
52
  "@atlaskit/editor-plugin-quick-insert": "^2.5.0",
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
63
63
  "@atlaskit/react-ufo": "^3.13.0",
64
64
  "@atlaskit/task-decision": "^19.2.0",
65
- "@atlaskit/tmp-editor-statsig": "^5.14.0",
65
+ "@atlaskit/tmp-editor-statsig": "^6.0.0",
66
66
  "@atlaskit/tokens": "^5.1.0",
67
67
  "@atlaskit/tooltip": "^20.3.0",
68
68
  "@atlaskit/width-detector": "^5.0.0",