@atlaskit/editor-plugin-accessibility-utils 7.0.0 → 7.0.1
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-plugin-accessibility-utils
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2843f9743d50a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2843f9743d50a) -
|
|
8
|
+
ED-29683: render editor toolbar under two stage hydration
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.0.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
12
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
15
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
15
16
|
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; }
|
|
16
17
|
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) { (0, _defineProperty2.default)(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; }
|
|
@@ -40,6 +41,9 @@ var accessibilityUtilsPlugin = exports.accessibilityUtilsPlugin = function acces
|
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
contentComponent: function contentComponent() {
|
|
44
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
43
47
|
return /*#__PURE__*/_react.default.createElement(ContentComponent, {
|
|
44
48
|
api: api
|
|
45
49
|
});
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
7
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
7
8
|
const accessibilityUtilsPluginKey = new PluginKey('accessibilityUtilsPlugin');
|
|
8
9
|
export const accessibilityUtilsPlugin = ({
|
|
@@ -31,6 +32,9 @@ export const accessibilityUtilsPlugin = ({
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
contentComponent: () => {
|
|
35
|
+
if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
34
38
|
return /*#__PURE__*/React.createElement(ContentComponent, {
|
|
35
39
|
api: api
|
|
36
40
|
});
|
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
7
7
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
8
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
10
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
10
11
|
var accessibilityUtilsPluginKey = new PluginKey('accessibilityUtilsPlugin');
|
|
11
12
|
export var accessibilityUtilsPlugin = function accessibilityUtilsPlugin(_ref) {
|
|
@@ -33,6 +34,9 @@ export var accessibilityUtilsPlugin = function accessibilityUtilsPlugin(_ref) {
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
contentComponent: function contentComponent() {
|
|
37
|
+
if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
36
40
|
return /*#__PURE__*/React.createElement(ContentComponent, {
|
|
37
41
|
api: api
|
|
38
42
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-accessibility-utils",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Accessibility utils for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,11 +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
32
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
32
33
|
"@babel/runtime": "^7.0.0"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
|
-
"@atlaskit/editor-common": "^111.
|
|
36
|
+
"@atlaskit/editor-common": "^111.1.0",
|
|
36
37
|
"react": "^18.2.0",
|
|
37
38
|
"react-dom": "^18.2.0"
|
|
38
39
|
},
|