@atlaskit/link-picker 3.4.0 → 3.4.1

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,13 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 3.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#157284](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157284)
8
+ [`1c31f276600fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1c31f276600fd) -
9
+ EDM-12326 add role, aria-modal and aria-label to link-picker wrapper for a11y
10
+
3
11
  ## 3.4.0
4
12
 
5
13
  ### Minor Changes
package/compass.yml CHANGED
@@ -20,23 +20,11 @@ links:
20
20
  - name: '#help-twg-linking-platform'
21
21
  type: CHAT_CHANNEL
22
22
  url: 'https://atlassian.enterprise.slack.com/archives/CFKGAQZRV'
23
- - name: 'On-Call Schedule'
23
+ - name: ''
24
24
  type: ON_CALL
25
25
  url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b9c8b313-dd6d-4a41-8eeb-d7a9df55be9d'
26
26
  - name: source code
27
27
  type: REPOSITORY
28
- url: 'https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/linking-platform/link-picker'
29
- customFields:
30
- - name: 'FinOps_COGS_Cost_Center'
31
- type: single_select
32
- value: 'a681c808-9c58-45e5-9b3a-b5cc330c4b3a'
33
- - name: 'FinOps_R&D_Cost_Center'
34
- type: single_select
35
- value: 'd9c71b12-1c77-4c68-a769-ba0e26bc8cac'
36
- - name: 'FinOps_Service_Group'
37
- type: single_select
38
- value: '9120e03c-440b-489d-ac42-07903a2c611d'
39
- - name: 'business-unit'
40
- type: text
41
- value: 'Eng - X Product Collab'
28
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/linking-platform/link-picker'
29
+ customFields: []
42
30
  relationships: {}
@@ -14,6 +14,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _reactLooselyLazy = require("react-loosely-lazy");
16
16
  var _analyticsNext = require("@atlaskit/analytics-next");
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _constants = require("../common/constants");
18
19
  var _sessionProvider = require("../controllers/session-provider");
19
20
  var _errorBoundary = require("./error-boundary");
@@ -26,7 +27,7 @@ var testIds = exports.testIds = {
26
27
  };
27
28
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
28
29
  packageName: "@atlaskit/link-picker" || '',
29
- packageVersion: "3.4.0" || '',
30
+ packageVersion: "3.4.1" || '',
30
31
  componentName: _constants.COMPONENT_NAME,
31
32
  source: _constants.COMPONENT_NAME
32
33
  };
@@ -38,7 +39,11 @@ var DefaultRootComponent = function DefaultRootComponent(_ref) {
38
39
  };
39
40
  var fixedWidthContainerStyles = null;
40
41
  var FixedWidthContainer = function FixedWidthContainer(props) {
41
- return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, props, {
42
+ return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform-link-picker-a11y-label') ? {
43
+ role: 'dialog',
44
+ 'aria-modal': 'false',
45
+ 'aria-label': 'link-picker'
46
+ } : {}, props, {
42
47
  className: (0, _runtime.ax)(["_1bsb1ubl"])
43
48
  }));
44
49
  };
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { memo } from 'react';
6
6
  import { LazySuspense } from 'react-loosely-lazy';
7
7
  import { AnalyticsContext } from '@atlaskit/analytics-next';
8
+ import { fg } from "@atlaskit/platform-feature-flags";
8
9
  import { COMPONENT_NAME, LINK_PICKER_WIDTH_IN_PX } from '../common/constants';
9
10
  import { LinkPickerSessionProvider } from '../controllers/session-provider';
10
11
  import { ErrorBoundary } from './error-boundary';
@@ -15,7 +16,7 @@ export const testIds = {
15
16
  };
16
17
  export const PACKAGE_DATA = {
17
18
  packageName: "@atlaskit/link-picker" || '',
18
- packageVersion: "3.4.0" || '',
19
+ packageVersion: "3.4.1" || '',
19
20
  componentName: COMPONENT_NAME,
20
21
  source: COMPONENT_NAME
21
22
  };
@@ -28,7 +29,11 @@ const DefaultRootComponent = ({
28
29
  };
29
30
  const fixedWidthContainerStyles = null;
30
31
  const FixedWidthContainer = props => {
31
- return /*#__PURE__*/React.createElement("div", _extends({}, props, {
32
+ return /*#__PURE__*/React.createElement("div", _extends({}, fg('platform-link-picker-a11y-label') ? {
33
+ role: 'dialog',
34
+ 'aria-modal': 'false',
35
+ 'aria-label': 'link-picker'
36
+ } : {}, props, {
32
37
  className: ax(["_1bsb1ubl"])
33
38
  }));
34
39
  };
@@ -6,6 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  import React, { memo } from 'react';
7
7
  import { LazySuspense } from 'react-loosely-lazy';
8
8
  import { AnalyticsContext } from '@atlaskit/analytics-next';
9
+ import { fg } from "@atlaskit/platform-feature-flags";
9
10
  import { COMPONENT_NAME, LINK_PICKER_WIDTH_IN_PX } from '../common/constants';
10
11
  import { LinkPickerSessionProvider } from '../controllers/session-provider';
11
12
  import { ErrorBoundary } from './error-boundary';
@@ -16,7 +17,7 @@ export var testIds = {
16
17
  };
17
18
  export var PACKAGE_DATA = {
18
19
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "3.4.0" || '',
20
+ packageVersion: "3.4.1" || '',
20
21
  componentName: COMPONENT_NAME,
21
22
  source: COMPONENT_NAME
22
23
  };
@@ -28,7 +29,11 @@ var DefaultRootComponent = function DefaultRootComponent(_ref) {
28
29
  };
29
30
  var fixedWidthContainerStyles = null;
30
31
  var FixedWidthContainer = function FixedWidthContainer(props) {
31
- return /*#__PURE__*/React.createElement("div", _extends({}, props, {
32
+ return /*#__PURE__*/React.createElement("div", _extends({}, fg('platform-link-picker-a11y-label') ? {
33
+ role: 'dialog',
34
+ 'aria-modal': 'false',
35
+ 'aria-label': 'link-picker'
36
+ } : {}, props, {
32
37
  className: ax(["_1bsb1ubl"])
33
38
  }));
34
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -66,6 +66,9 @@
66
66
  },
67
67
  "dst-a11y__replace-anchor-with-link__linking-platfo": {
68
68
  "type": "boolean"
69
+ },
70
+ "platform-link-picker-a11y-label": {
71
+ "type": "boolean"
69
72
  }
70
73
  },
71
74
  "scripts": {
@@ -87,7 +90,7 @@
87
90
  "@atlaskit/onboarding": "^14.1.0",
88
91
  "@atlaskit/platform-feature-flags": "^1.1.0",
89
92
  "@atlaskit/primitives": "^14.8.0",
90
- "@atlaskit/smart-card": "^38.3.0",
93
+ "@atlaskit/smart-card": "^38.4.0",
91
94
  "@atlaskit/spinner": "^18.0.0",
92
95
  "@atlaskit/tabs": "^18.1.0",
93
96
  "@atlaskit/textfield": "^8.0.0",
@@ -113,7 +116,7 @@
113
116
  "@af/analytics-codegen": "workspace:^",
114
117
  "@af/integration-testing": "workspace:^",
115
118
  "@af/visual-regression": "workspace:^",
116
- "@atlaskit/dropdown-menu": "^15.2.0",
119
+ "@atlaskit/dropdown-menu": "^16.0.0",
117
120
  "@atlaskit/link-test-helpers": "^8.0.0",
118
121
  "@atlaskit/visual-regression": "workspace:^",
119
122
  "@atlassian/feature-flags-test-utils": "^0.3.0",
@@ -165,5 +168,6 @@
165
168
  "stricter": [
166
169
  "@atlassian/tangerine/project-structure"
167
170
  ]
168
- }
171
+ },
172
+ "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/e22d6eec-79d6-4015-a147-0ad8a1887e29"
169
173
  }