@atlaskit/editor-plugin-accessibility-utils 3.0.4 → 3.0.5
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 +7 -0
- package/dist/cjs/accessibilityUtilsPlugin.js +2 -2
- package/dist/es2019/accessibilityUtilsPlugin.js +1 -1
- package/dist/esm/accessibilityUtilsPlugin.js +1 -1
- package/dist/types/accessibilityUtilsPlugin.d.ts +0 -2
- package/dist/types/accessibilityUtilsPluginType.d.ts +2 -2
- package/dist/types-ts4.5/accessibilityUtilsPlugin.d.ts +0 -2
- package/dist/types-ts4.5/accessibilityUtilsPluginType.d.ts +3 -3
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-accessibility-utils
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
|
|
8
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
9
|
+
|
|
3
10
|
## 3.0.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
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"));
|
|
@@ -14,7 +14,7 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
14
14
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
15
15
|
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
16
|
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; }
|
|
17
|
-
var accessibilityUtilsPluginKey =
|
|
17
|
+
var accessibilityUtilsPluginKey = new _state.PluginKey('accessibilityUtilsPlugin');
|
|
18
18
|
var accessibilityUtilsPlugin = exports.accessibilityUtilsPlugin = function accessibilityUtilsPlugin(_ref) {
|
|
19
19
|
var api = _ref.api;
|
|
20
20
|
var editorView;
|
|
@@ -4,7 +4,7 @@ import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPl
|
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
7
|
-
|
|
7
|
+
const accessibilityUtilsPluginKey = new PluginKey('accessibilityUtilsPlugin');
|
|
8
8
|
export const accessibilityUtilsPlugin = ({
|
|
9
9
|
api
|
|
10
10
|
}) => {
|
|
@@ -7,7 +7,7 @@ import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPl
|
|
|
7
7
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
8
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
10
|
-
|
|
10
|
+
var accessibilityUtilsPluginKey = new PluginKey('accessibilityUtilsPlugin');
|
|
11
11
|
export var accessibilityUtilsPlugin = function accessibilityUtilsPlugin(_ref) {
|
|
12
12
|
var api = _ref.api;
|
|
13
13
|
var editorView;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
1
|
import type { AccessibilityUtilsPlugin } from './accessibilityUtilsPluginType';
|
|
3
|
-
export declare const accessibilityUtilsPluginKey: PluginKey<any>;
|
|
4
2
|
export declare const accessibilityUtilsPlugin: AccessibilityUtilsPlugin;
|
|
@@ -3,12 +3,11 @@ export interface AriaLiveElementAttributes {
|
|
|
3
3
|
priority?: 'important' | 'none';
|
|
4
4
|
}
|
|
5
5
|
export interface AccessibilityUtilsPluginState {
|
|
6
|
-
message: string;
|
|
7
6
|
ariaLiveElementAttributes?: AriaLiveElementAttributes;
|
|
8
7
|
key?: string;
|
|
8
|
+
message: string;
|
|
9
9
|
}
|
|
10
10
|
export type AccessibilityUtilsPlugin = NextEditorPlugin<'accessibilityUtils', {
|
|
11
|
-
dependencies: [];
|
|
12
11
|
actions: {
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
@@ -20,5 +19,6 @@ export type AccessibilityUtilsPlugin = NextEditorPlugin<'accessibilityUtils', {
|
|
|
20
19
|
*/
|
|
21
20
|
ariaNotify: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
22
21
|
};
|
|
22
|
+
dependencies: [];
|
|
23
23
|
sharedState: AccessibilityUtilsPluginState;
|
|
24
24
|
}>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
1
|
import type { AccessibilityUtilsPlugin } from './accessibilityUtilsPluginType';
|
|
3
|
-
export declare const accessibilityUtilsPluginKey: PluginKey<any>;
|
|
4
2
|
export declare const accessibilityUtilsPlugin: AccessibilityUtilsPlugin;
|
|
@@ -3,13 +3,11 @@ export interface AriaLiveElementAttributes {
|
|
|
3
3
|
priority?: 'important' | 'none';
|
|
4
4
|
}
|
|
5
5
|
export interface AccessibilityUtilsPluginState {
|
|
6
|
-
message: string;
|
|
7
6
|
ariaLiveElementAttributes?: AriaLiveElementAttributes;
|
|
8
7
|
key?: string;
|
|
8
|
+
message: string;
|
|
9
9
|
}
|
|
10
10
|
export type AccessibilityUtilsPlugin = NextEditorPlugin<'accessibilityUtils', {
|
|
11
|
-
dependencies: [
|
|
12
|
-
];
|
|
13
11
|
actions: {
|
|
14
12
|
/**
|
|
15
13
|
*
|
|
@@ -21,5 +19,7 @@ export type AccessibilityUtilsPlugin = NextEditorPlugin<'accessibilityUtils', {
|
|
|
21
19
|
*/
|
|
22
20
|
ariaNotify: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
|
|
23
21
|
};
|
|
22
|
+
dependencies: [
|
|
23
|
+
];
|
|
24
24
|
sharedState: AccessibilityUtilsPluginState;
|
|
25
25
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-accessibility-utils",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Accessibility utils for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
34
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^11.5.0",
|
|
35
35
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^107.
|
|
39
|
+
"@atlaskit/editor-common": "^107.28.0",
|
|
40
40
|
"react": "^18.2.0",
|
|
41
41
|
"react-dom": "^18.2.0"
|
|
42
42
|
},
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"@af/integration-testing": "workspace:^",
|
|
45
45
|
"@af/visual-regression": "workspace:^",
|
|
46
46
|
"@atlaskit/ssr": "workspace:^",
|
|
47
|
-
"@atlaskit/visual-regression": "workspace:^",
|
|
48
47
|
"@testing-library/react": "^13.4.0",
|
|
49
48
|
"wait-for-expect": "^1.2.0"
|
|
50
49
|
},
|