@atlaskit/editor-plugin-media-insert 14.0.3 → 14.0.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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 14.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ec9d20245c4b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec9d20245c4b6) -
|
|
8
|
+
Fix label-title-only accessibility violation by adding visible label to URL input field
|
|
9
|
+
|
|
3
10
|
## 14.0.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -24,6 +24,7 @@ var _form = _interopRequireWildcard(require("@atlaskit/form"));
|
|
|
24
24
|
var _growDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/grow-diagonal"));
|
|
25
25
|
var _filePreview = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/file-preview"));
|
|
26
26
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
27
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
28
|
var _primitives = require("@atlaskit/primitives");
|
|
28
29
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
29
30
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
@@ -332,6 +333,7 @@ function MediaFromURL(_ref) {
|
|
|
332
333
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
333
334
|
, (0, _extends2.default)({}, rest, {
|
|
334
335
|
value: value,
|
|
336
|
+
"aria-label": (0, _platformFeatureFlags.fg)('platform_editor_nov_a11y_fixes') ? strings.pasteLinkToUpload : undefined,
|
|
335
337
|
placeholder: strings.pasteLinkToUpload,
|
|
336
338
|
maxLength: MAX_URL_LENGTH,
|
|
337
339
|
onKeyPress: onInputKeyPress,
|
|
@@ -10,6 +10,7 @@ import Form, { ErrorMessage, Field, FormFooter, HelperMessage, MessageWrapper }
|
|
|
10
10
|
import ExpandIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
11
11
|
import { default as EditorFilePreviewIconLegacy } from '@atlaskit/icon/glyph/editor/file-preview';
|
|
12
12
|
import { getMediaClient } from '@atlaskit/media-client-react';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
15
|
import { Box, Flex, Inline, Stack, xcss } from '@atlaskit/primitives';
|
|
15
16
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -296,6 +297,7 @@ export function MediaFromURL({
|
|
|
296
297
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
297
298
|
, _extends({}, rest, {
|
|
298
299
|
value: value,
|
|
300
|
+
"aria-label": fg('platform_editor_nov_a11y_fixes') ? strings.pasteLinkToUpload : undefined,
|
|
299
301
|
placeholder: strings.pasteLinkToUpload,
|
|
300
302
|
maxLength: MAX_URL_LENGTH,
|
|
301
303
|
onKeyPress: onInputKeyPress,
|
|
@@ -18,6 +18,7 @@ import Form, { ErrorMessage, Field, FormFooter, HelperMessage, MessageWrapper }
|
|
|
18
18
|
import ExpandIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
19
19
|
import { default as EditorFilePreviewIconLegacy } from '@atlaskit/icon/glyph/editor/file-preview';
|
|
20
20
|
import { getMediaClient } from '@atlaskit/media-client-react';
|
|
21
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
22
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
22
23
|
import { Box, Flex, Inline, Stack, xcss } from '@atlaskit/primitives';
|
|
23
24
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -323,6 +324,7 @@ export function MediaFromURL(_ref) {
|
|
|
323
324
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
324
325
|
, _extends({}, rest, {
|
|
325
326
|
value: value,
|
|
327
|
+
"aria-label": fg('platform_editor_nov_a11y_fixes') ? strings.pasteLinkToUpload : undefined,
|
|
326
328
|
placeholder: strings.pasteLinkToUpload,
|
|
327
329
|
maxLength: MAX_URL_LENGTH,
|
|
328
330
|
onKeyPress: onInputKeyPress,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
35
35
|
"@atlaskit/media-picker": "^70.1.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
37
|
-
"@atlaskit/primitives": "^16.
|
|
37
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
38
38
|
"@atlaskit/section-message": "^8.9.0",
|
|
39
39
|
"@atlaskit/tabs": "^18.2.0",
|
|
40
40
|
"@atlaskit/textfield": "^8.1.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^13.44.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^110.
|
|
47
|
-
"@atlaskit/tokens": "^8.
|
|
46
|
+
"@atlaskit/editor-common": "^110.35.0",
|
|
47
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-dom": "^18.2.0"
|
|
50
50
|
},
|
|
@@ -88,5 +88,10 @@
|
|
|
88
88
|
"no-unused-dependencies": {
|
|
89
89
|
"checkDevDependencies": true
|
|
90
90
|
}
|
|
91
|
+
},
|
|
92
|
+
"platform-feature-flags": {
|
|
93
|
+
"platform_editor_nov_a11y_fixes": {
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
}
|
|
91
96
|
}
|
|
92
97
|
}
|