@atlaskit/editor-plugin-accessibility-utils 7.0.1 → 7.0.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,18 @@
1
1
  # @atlaskit/editor-plugin-accessibility-utils
2
2
 
3
+ ## 7.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`95374e5a502e4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/95374e5a502e4) -
14
+ NOISSUE: Fix a11y plugin breaking hydration
15
+
3
16
  ## 7.0.1
4
17
 
5
18
  ### Patch Changes
@@ -8,6 +8,7 @@ exports.accessibilityUtilsPlugin = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
+ var _coreUtils = require("@atlaskit/editor-common/core-utils");
11
12
  var _hooks = require("@atlaskit/editor-common/hooks");
12
13
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
13
14
  var _state = require("@atlaskit/editor-prosemirror/state");
@@ -41,7 +42,7 @@ var accessibilityUtilsPlugin = exports.accessibilityUtilsPlugin = function acces
41
42
  }
42
43
  },
43
44
  contentComponent: function contentComponent() {
44
- if ((0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
45
+ if (!editorView || (0, _coreUtils.isSSR)() && (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true)) {
45
46
  return null;
46
47
  }
47
48
  return /*#__PURE__*/_react.default.createElement(ContentComponent, {
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
+ import { isSSR } from '@atlaskit/editor-common/core-utils';
3
4
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
6
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
@@ -32,7 +33,7 @@ export const accessibilityUtilsPlugin = ({
32
33
  }
33
34
  },
34
35
  contentComponent: () => {
35
- if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
36
+ if (!editorView || isSSR() && expValEquals('platform_editor_hydratable_ui', 'isEnabled', true)) {
36
37
  return null;
37
38
  }
38
39
  return /*#__PURE__*/React.createElement(ContentComponent, {
@@ -3,6 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import React from 'react';
6
+ import { isSSR } from '@atlaskit/editor-common/core-utils';
6
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
7
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
8
9
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
@@ -34,7 +35,7 @@ export var accessibilityUtilsPlugin = function accessibilityUtilsPlugin(_ref) {
34
35
  }
35
36
  },
36
37
  contentComponent: function contentComponent() {
37
- if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
38
+ if (!editorView || isSSR() && expValEquals('platform_editor_hydratable_ui', 'isEnabled', true)) {
38
39
  return null;
39
40
  }
40
41
  return /*#__PURE__*/React.createElement(ContentComponent, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-accessibility-utils",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "Accessibility utils for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,12 +28,12 @@
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
30
  "@atlaskit/editor-prosemirror": "^7.2.0",
31
- "@atlaskit/tmp-editor-statsig": "^16.3.0",
31
+ "@atlaskit/tmp-editor-statsig": "^17.0.0",
32
32
  "@atlaskit/visually-hidden": "^3.0.0",
33
33
  "@babel/runtime": "^7.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@atlaskit/editor-common": "^111.1.0",
36
+ "@atlaskit/editor-common": "^111.9.0",
37
37
  "react": "^18.2.0",
38
38
  "react-dom": "^18.2.0"
39
39
  },