@atlaskit/editor-plugin-accessibility-utils 6.0.1 → 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,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 7.0.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.0.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -83,7 +97,6 @@
|
|
|
83
97
|
shared context or singletons.
|
|
84
98
|
|
|
85
99
|
**HOW TO ADJUST:**
|
|
86
|
-
|
|
87
100
|
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
88
101
|
any of these editor plugins.
|
|
89
102
|
- Ensure the version you install matches the version required by the plugins.
|
|
@@ -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": "
|
|
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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"team": "Editor: Core Experiences",
|
|
12
12
|
"singleton": true
|
|
13
13
|
},
|
|
14
|
-
"repository": "https://
|
|
14
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
15
15
|
"main": "dist/cjs/index.js",
|
|
16
16
|
"module": "dist/esm/index.js",
|
|
17
17
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -27,21 +27,18 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
31
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
30
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
31
|
+
"@atlaskit/tmp-editor-statsig": "^16.3.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": "^
|
|
36
|
+
"@atlaskit/editor-common": "^111.1.0",
|
|
37
37
|
"react": "^18.2.0",
|
|
38
38
|
"react-dom": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@af/visual-regression": "workspace:^",
|
|
43
|
-
"@atlaskit/ssr": "workspace:^",
|
|
44
|
-
"@testing-library/react": "^13.4.0",
|
|
41
|
+
"@testing-library/react": "^16.3.0",
|
|
45
42
|
"wait-for-expect": "^1.2.0"
|
|
46
43
|
},
|
|
47
44
|
"techstack": {
|