@atlaskit/editor-common 110.46.3 → 110.46.4
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 +8 -0
- package/dist/cjs/element-browser/components/ElementSearch.js +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -0
- package/dist/types-ts4.5/element-browser/messages.d.ts +5 -0
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.46.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ed3e203b8b0da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ed3e203b8b0da) -
|
|
8
|
+
[ux] [ENGHEALTH-47470] internationalise literal strings behind fg platform_editor_dec_a11y_fixes
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 110.46.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -14,6 +14,7 @@ var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-
|
|
|
14
14
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
15
15
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
16
16
|
var _search = _interopRequireDefault(require("@atlaskit/icon/core/migration/search"));
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
18
19
|
var _constants = require("../constants");
|
|
19
20
|
var _useFocus = _interopRequireDefault(require("../hooks/use-focus"));
|
|
@@ -58,10 +59,10 @@ function ElementSearch(_ref) {
|
|
|
58
59
|
var value = _ref2.target.value;
|
|
59
60
|
onSearch(value);
|
|
60
61
|
};
|
|
61
|
-
var onFocus = function onFocus(
|
|
62
|
+
var onFocus = function onFocus(_e) {
|
|
62
63
|
setInputFocused(true);
|
|
63
64
|
};
|
|
64
|
-
var onBlur = function onBlur(
|
|
65
|
+
var onBlur = function onBlur(_e) {
|
|
65
66
|
setInputFocused(false);
|
|
66
67
|
};
|
|
67
68
|
var getFormattedMessage = function getFormattedMessage(itemsCount) {
|
|
@@ -113,10 +114,8 @@ function ElementSearch(_ref) {
|
|
|
113
114
|
}, (0, _react2.jsx)("div", {
|
|
114
115
|
css: styledShortcut
|
|
115
116
|
}, "\u23CE ", formatMessage(_messages.default.elementAfterInputMessage))),
|
|
116
|
-
placeholder: formatMessage(_messages.default.placeHolderMessage)
|
|
117
|
-
|
|
118
|
-
,
|
|
119
|
-
"aria-label": "search",
|
|
117
|
+
placeholder: formatMessage(_messages.default.placeHolderMessage),
|
|
118
|
+
"aria-label": (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? formatMessage(_messages.default.searchAriaLabel) : "search",
|
|
120
119
|
"aria-labelledby": "search-assistive"
|
|
121
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
122
121
|
,
|
|
@@ -16,6 +16,11 @@ var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
|
16
16
|
defaultMessage: 'Search',
|
|
17
17
|
description: 'Search field placeholder'
|
|
18
18
|
},
|
|
19
|
+
searchAriaLabel: {
|
|
20
|
+
id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
|
|
21
|
+
defaultMessage: 'Search',
|
|
22
|
+
description: 'Search field aria label'
|
|
23
|
+
},
|
|
19
24
|
assistiveTextDefault: {
|
|
20
25
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
21
26
|
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 = "
|
|
22
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "
|
|
27
|
+
var packageVersion = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -11,6 +11,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
11
11
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
13
13
|
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import Textfield from '@atlaskit/textfield';
|
|
15
16
|
import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
16
17
|
import useFocus from '../hooks/use-focus';
|
|
@@ -50,10 +51,10 @@ function ElementSearch({
|
|
|
50
51
|
}) => {
|
|
51
52
|
onSearch(value);
|
|
52
53
|
};
|
|
53
|
-
const onFocus =
|
|
54
|
+
const onFocus = _e => {
|
|
54
55
|
setInputFocused(true);
|
|
55
56
|
};
|
|
56
|
-
const onBlur =
|
|
57
|
+
const onBlur = _e => {
|
|
57
58
|
setInputFocused(false);
|
|
58
59
|
};
|
|
59
60
|
const getFormattedMessage = itemsCount => {
|
|
@@ -105,10 +106,8 @@ function ElementSearch({
|
|
|
105
106
|
}, jsx("div", {
|
|
106
107
|
css: styledShortcut
|
|
107
108
|
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
108
|
-
placeholder: formatMessage(commonMessages.placeHolderMessage)
|
|
109
|
-
|
|
110
|
-
,
|
|
111
|
-
"aria-label": "search",
|
|
109
|
+
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
110
|
+
"aria-label": fg('platform_editor_dec_a11y_fixes') ? formatMessage(commonMessages.searchAriaLabel) : "search",
|
|
112
111
|
"aria-labelledby": "search-assistive"
|
|
113
112
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
114
113
|
,
|
|
@@ -10,6 +10,11 @@ export default defineMessages({
|
|
|
10
10
|
defaultMessage: 'Search',
|
|
11
11
|
description: 'Search field placeholder'
|
|
12
12
|
},
|
|
13
|
+
searchAriaLabel: {
|
|
14
|
+
id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
|
|
15
|
+
defaultMessage: 'Search',
|
|
16
|
+
description: 'Search field aria label'
|
|
17
|
+
},
|
|
13
18
|
assistiveTextDefault: {
|
|
14
19
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
15
20
|
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 = "
|
|
7
|
+
const packageVersion = "0.0.0-development";
|
|
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 = "
|
|
17
|
+
const packageVersion = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -12,6 +12,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
12
12
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
14
14
|
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import Textfield from '@atlaskit/textfield';
|
|
16
17
|
import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
17
18
|
import useFocus from '../hooks/use-focus';
|
|
@@ -48,10 +49,10 @@ function ElementSearch(_ref) {
|
|
|
48
49
|
var value = _ref2.target.value;
|
|
49
50
|
onSearch(value);
|
|
50
51
|
};
|
|
51
|
-
var onFocus = function onFocus(
|
|
52
|
+
var onFocus = function onFocus(_e) {
|
|
52
53
|
setInputFocused(true);
|
|
53
54
|
};
|
|
54
|
-
var onBlur = function onBlur(
|
|
55
|
+
var onBlur = function onBlur(_e) {
|
|
55
56
|
setInputFocused(false);
|
|
56
57
|
};
|
|
57
58
|
var getFormattedMessage = function getFormattedMessage(itemsCount) {
|
|
@@ -103,10 +104,8 @@ function ElementSearch(_ref) {
|
|
|
103
104
|
}, jsx("div", {
|
|
104
105
|
css: styledShortcut
|
|
105
106
|
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
106
|
-
placeholder: formatMessage(commonMessages.placeHolderMessage)
|
|
107
|
-
|
|
108
|
-
,
|
|
109
|
-
"aria-label": "search",
|
|
107
|
+
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
108
|
+
"aria-label": fg('platform_editor_dec_a11y_fixes') ? formatMessage(commonMessages.searchAriaLabel) : "search",
|
|
110
109
|
"aria-labelledby": "search-assistive"
|
|
111
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
112
111
|
,
|
|
@@ -10,6 +10,11 @@ export default defineMessages({
|
|
|
10
10
|
defaultMessage: 'Search',
|
|
11
11
|
description: 'Search field placeholder'
|
|
12
12
|
},
|
|
13
|
+
searchAriaLabel: {
|
|
14
|
+
id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
|
|
15
|
+
defaultMessage: 'Search',
|
|
16
|
+
description: 'Search field aria label'
|
|
17
|
+
},
|
|
13
18
|
assistiveTextDefault: {
|
|
14
19
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
15
20
|
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 = "
|
|
13
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "
|
|
24
|
+
var packageVersion = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.46.
|
|
3
|
+
"version": "110.46.4",
|
|
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/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
40
40
|
"@atlaskit/button": "^23.9.0",
|
|
41
41
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
42
|
-
"@atlaskit/css": "^0.
|
|
42
|
+
"@atlaskit/css": "^0.19.0",
|
|
43
43
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
70
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
71
71
|
"@atlaskit/popper": "^7.1.0",
|
|
72
|
-
"@atlaskit/primitives": "^
|
|
72
|
+
"@atlaskit/primitives": "^17.0.0",
|
|
73
73
|
"@atlaskit/profilecard": "^24.26.0",
|
|
74
74
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^4.16.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
84
|
"@atlaskit/tmp-editor-statsig": "^16.0.0",
|
|
85
|
-
"@atlaskit/tokens": "^
|
|
85
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.11.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
88
88
|
"@babel/runtime": "^7.0.0",
|
|
@@ -275,6 +275,9 @@
|
|
|
275
275
|
},
|
|
276
276
|
"platform_fix_macro_renders_in_layouts": {
|
|
277
277
|
"type": "boolean"
|
|
278
|
+
},
|
|
279
|
+
"platform_editor_dec_a11y_fixes": {
|
|
280
|
+
"type": "boolean"
|
|
278
281
|
}
|
|
279
282
|
}
|
|
280
283
|
}
|