@atlaskit/editor-common 112.17.1 → 112.18.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 +11 -0
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -1
- package/dist/cjs/element-browser/messages.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/element-browser/messages.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/element-browser/messages.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/element-browser/messages.d.ts +14 -9
- package/dist/types-ts4.5/element-browser/messages.d.ts +14 -9
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`4570b02f24b2b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4570b02f24b2b) -
|
|
8
|
+
A11Y fixes to aria labels
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 112.17.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -115,7 +115,7 @@ function ElementSearch(_ref) {
|
|
|
115
115
|
css: styledShortcut
|
|
116
116
|
}, "\u23CE ", formatMessage(_messages.default.elementAfterInputMessage))),
|
|
117
117
|
placeholder: formatMessage(_messages.default.placeHolderMessage),
|
|
118
|
-
"aria-label": formatMessage(_messages.default.searchAriaLabel),
|
|
118
|
+
"aria-label": formatMessage((0, _platformFeatureFlags.fg)('ally_30205_accessibility_label_fix') ? _messages.default.searchAriaLabelNew : _messages.default.searchAriaLabel),
|
|
119
119
|
"aria-labelledby": (0, _platformFeatureFlags.fg)('platform_editor_ally_remove_role_tabpanel') ? undefined : 'search-assistive',
|
|
120
120
|
"aria-describedby": (0, _platformFeatureFlags.fg)('platform_editor_ally_remove_role_tabpanel') ? 'search-assistive' : undefined
|
|
121
121
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -21,6 +21,11 @@ var _default_1 = (0, _reactIntlNext.defineMessages)({
|
|
|
21
21
|
defaultMessage: 'Search',
|
|
22
22
|
description: 'The text is used as an aria-label for the search input field in the element browser. It provides an accessible name for screen readers to identify the search field.'
|
|
23
23
|
},
|
|
24
|
+
searchAriaLabelNew: {
|
|
25
|
+
id: 'fabric.editor.elementbrowser.searchbar.ariaLabel.new',
|
|
26
|
+
defaultMessage: 'Search elements',
|
|
27
|
+
description: 'The updated text used as an aria-label for the search input field in the element browser. It provides a more descriptive accessible name for screen readers to identify the search field.'
|
|
28
|
+
},
|
|
24
29
|
assistiveTextDefault: {
|
|
25
30
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
26
31
|
defaultMessage: '{count, plural, =0 {Nothing matches your search.} one {{count} suggestion available by default.} other {{count} suggestions available by default.}}',
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "112.17.
|
|
22
|
+
var packageVersion = "112.17.1";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "112.17.
|
|
27
|
+
var packageVersion = "112.17.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -107,7 +107,7 @@ function ElementSearch({
|
|
|
107
107
|
css: styledShortcut
|
|
108
108
|
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
109
109
|
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
110
|
-
"aria-label": formatMessage(commonMessages.searchAriaLabel),
|
|
110
|
+
"aria-label": formatMessage(fg('ally_30205_accessibility_label_fix') ? commonMessages.searchAriaLabelNew : commonMessages.searchAriaLabel),
|
|
111
111
|
"aria-labelledby": fg('platform_editor_ally_remove_role_tabpanel') ? undefined : 'search-assistive',
|
|
112
112
|
"aria-describedby": fg('platform_editor_ally_remove_role_tabpanel') ? 'search-assistive' : undefined
|
|
113
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -15,6 +15,11 @@ const _default_1 = defineMessages({
|
|
|
15
15
|
defaultMessage: 'Search',
|
|
16
16
|
description: 'The text is used as an aria-label for the search input field in the element browser. It provides an accessible name for screen readers to identify the search field.'
|
|
17
17
|
},
|
|
18
|
+
searchAriaLabelNew: {
|
|
19
|
+
id: 'fabric.editor.elementbrowser.searchbar.ariaLabel.new',
|
|
20
|
+
defaultMessage: 'Search elements',
|
|
21
|
+
description: 'The updated text used as an aria-label for the search input field in the element browser. It provides a more descriptive accessible name for screen readers to identify the search field.'
|
|
22
|
+
},
|
|
18
23
|
assistiveTextDefault: {
|
|
19
24
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
20
25
|
defaultMessage: '{count, plural, =0 {Nothing matches your search.} one {{count} suggestion available by default.} other {{count} suggestions available by default.}}',
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "112.17.
|
|
7
|
+
const packageVersion = "112.17.1";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "112.17.
|
|
17
|
+
const packageVersion = "112.17.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -105,7 +105,7 @@ function ElementSearch(_ref) {
|
|
|
105
105
|
css: styledShortcut
|
|
106
106
|
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
107
107
|
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
108
|
-
"aria-label": formatMessage(commonMessages.searchAriaLabel),
|
|
108
|
+
"aria-label": formatMessage(fg('ally_30205_accessibility_label_fix') ? commonMessages.searchAriaLabelNew : commonMessages.searchAriaLabel),
|
|
109
109
|
"aria-labelledby": fg('platform_editor_ally_remove_role_tabpanel') ? undefined : 'search-assistive',
|
|
110
110
|
"aria-describedby": fg('platform_editor_ally_remove_role_tabpanel') ? 'search-assistive' : undefined
|
|
111
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -15,6 +15,11 @@ var _default_1 = defineMessages({
|
|
|
15
15
|
defaultMessage: 'Search',
|
|
16
16
|
description: 'The text is used as an aria-label for the search input field in the element browser. It provides an accessible name for screen readers to identify the search field.'
|
|
17
17
|
},
|
|
18
|
+
searchAriaLabelNew: {
|
|
19
|
+
id: 'fabric.editor.elementbrowser.searchbar.ariaLabel.new',
|
|
20
|
+
defaultMessage: 'Search elements',
|
|
21
|
+
description: 'The updated text used as an aria-label for the search input field in the element browser. It provides a more descriptive accessible name for screen readers to identify the search field.'
|
|
22
|
+
},
|
|
18
23
|
assistiveTextDefault: {
|
|
19
24
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
20
25
|
defaultMessage: '{count, plural, =0 {Nothing matches your search.} one {{count} suggestion available by default.} other {{count} suggestions available by default.}}',
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "112.17.
|
|
13
|
+
var packageVersion = "112.17.1";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "112.17.
|
|
24
|
+
var packageVersion = "112.17.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
declare const _default_1: {
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
2
|
+
assistiveTextDefault: {
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
placeHolderMessage: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
assistiveTextResult: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
11
|
-
};
|
|
12
|
-
searchAriaLabel: {
|
|
13
10
|
id: string;
|
|
11
|
+
};
|
|
12
|
+
elementAfterInputMessage: {
|
|
14
13
|
defaultMessage: string;
|
|
15
14
|
description: string;
|
|
16
|
-
};
|
|
17
|
-
assistiveTextDefault: {
|
|
18
15
|
id: string;
|
|
16
|
+
};
|
|
17
|
+
placeHolderMessage: {
|
|
19
18
|
defaultMessage: string;
|
|
20
19
|
description: string;
|
|
20
|
+
id: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
searchAriaLabel: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
23
25
|
id: string;
|
|
26
|
+
};
|
|
27
|
+
searchAriaLabelNew: {
|
|
24
28
|
defaultMessage: string;
|
|
25
29
|
description: string;
|
|
30
|
+
id: string;
|
|
26
31
|
};
|
|
27
32
|
};
|
|
28
33
|
export default _default_1;
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
declare const _default_1: {
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
2
|
+
assistiveTextDefault: {
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
placeHolderMessage: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
assistiveTextResult: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
11
|
-
};
|
|
12
|
-
searchAriaLabel: {
|
|
13
10
|
id: string;
|
|
11
|
+
};
|
|
12
|
+
elementAfterInputMessage: {
|
|
14
13
|
defaultMessage: string;
|
|
15
14
|
description: string;
|
|
16
|
-
};
|
|
17
|
-
assistiveTextDefault: {
|
|
18
15
|
id: string;
|
|
16
|
+
};
|
|
17
|
+
placeHolderMessage: {
|
|
19
18
|
defaultMessage: string;
|
|
20
19
|
description: string;
|
|
20
|
+
id: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
searchAriaLabel: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
23
25
|
id: string;
|
|
26
|
+
};
|
|
27
|
+
searchAriaLabelNew: {
|
|
24
28
|
defaultMessage: string;
|
|
25
29
|
description: string;
|
|
30
|
+
id: string;
|
|
26
31
|
};
|
|
27
32
|
};
|
|
28
33
|
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "112.
|
|
3
|
+
"version": "112.18.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -247,6 +247,9 @@
|
|
|
247
247
|
"platform_fix_macro_renders_in_layouts": {
|
|
248
248
|
"type": "boolean"
|
|
249
249
|
},
|
|
250
|
+
"ally_30205_accessibility_label_fix": {
|
|
251
|
+
"type": "boolean"
|
|
252
|
+
},
|
|
250
253
|
"platform_editor_ally_remove_role_tabpanel": {
|
|
251
254
|
"type": "boolean"
|
|
252
255
|
},
|