@atlaskit/editor-plugin-media-insert 14.0.2 → 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,20 @@
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
+
10
+ ## 14.0.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [`aa6ee6b4723db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aa6ee6b4723db) -
15
+ Remove duplicated inert `aria-required` attribute from Field components.
16
+ - Updated dependencies
17
+
3
18
  ## 14.0.2
4
19
 
5
20
  ### 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"));
@@ -312,7 +313,6 @@ function MediaFromURL(_ref) {
312
313
  space: "space.150",
313
314
  grow: "fill"
314
315
  }, /*#__PURE__*/_react.default.createElement(_form.Field, {
315
- "aria-required": true,
316
316
  isRequired: true,
317
317
  name: "inputUrl",
318
318
  validate: function validate(value) {
@@ -333,6 +333,7 @@ function MediaFromURL(_ref) {
333
333
  // eslint-disable-next-line react/jsx-props-no-spreading
334
334
  , (0, _extends2.default)({}, rest, {
335
335
  value: value,
336
+ "aria-label": (0, _platformFeatureFlags.fg)('platform_editor_nov_a11y_fixes') ? strings.pasteLinkToUpload : undefined,
336
337
  placeholder: strings.pasteLinkToUpload,
337
338
  maxLength: MAX_URL_LENGTH,
338
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';
@@ -277,7 +278,6 @@ export function MediaFromURL({
277
278
  space: "space.150",
278
279
  grow: "fill"
279
280
  }, /*#__PURE__*/React.createElement(Field, {
280
- "aria-required": true,
281
281
  isRequired: true,
282
282
  name: "inputUrl",
283
283
  validate: value => value && isValidInput(value, customizedUrlValidation) ? undefined : strings.invalidUrl
@@ -297,6 +297,7 @@ export function MediaFromURL({
297
297
  // eslint-disable-next-line react/jsx-props-no-spreading
298
298
  , _extends({}, rest, {
299
299
  value: value,
300
+ "aria-label": fg('platform_editor_nov_a11y_fixes') ? strings.pasteLinkToUpload : undefined,
300
301
  placeholder: strings.pasteLinkToUpload,
301
302
  maxLength: MAX_URL_LENGTH,
302
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';
@@ -303,7 +304,6 @@ export function MediaFromURL(_ref) {
303
304
  space: "space.150",
304
305
  grow: "fill"
305
306
  }, /*#__PURE__*/React.createElement(Field, {
306
- "aria-required": true,
307
307
  isRequired: true,
308
308
  name: "inputUrl",
309
309
  validate: function validate(value) {
@@ -324,6 +324,7 @@ export function MediaFromURL(_ref) {
324
324
  // eslint-disable-next-line react/jsx-props-no-spreading
325
325
  , _extends({}, rest, {
326
326
  value: value,
327
+ "aria-label": fg('platform_editor_nov_a11y_fixes') ? strings.pasteLinkToUpload : undefined,
327
328
  placeholder: strings.pasteLinkToUpload,
328
329
  maxLength: MAX_URL_LENGTH,
329
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.2",
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",
@@ -27,24 +27,24 @@
27
27
  "@atlaskit/editor-plugin-media": "^8.4.0",
28
28
  "@atlaskit/editor-prosemirror": "7.0.0",
29
29
  "@atlaskit/editor-shared-styles": "^3.10.0",
30
- "@atlaskit/form": "^14.2.0",
30
+ "@atlaskit/form": "^14.3.0",
31
31
  "@atlaskit/icon": "^29.0.0",
32
32
  "@atlaskit/media-card": "^79.8.0",
33
33
  "@atlaskit/media-client": "^35.6.0",
34
34
  "@atlaskit/media-client-react": "^4.1.0",
35
- "@atlaskit/media-picker": "^70.0.0",
35
+ "@atlaskit/media-picker": "^70.1.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/primitives": "^16.1.0",
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.38.0",
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.32.0",
47
- "@atlaskit/tokens": "^8.0.0",
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
  }