@atlaskit/link-picker 3.3.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,26 @@
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
+
11
+ ## 3.4.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#157092](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157092)
16
+ [`87491e7b53b65`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87491e7b53b65) -
17
+ We are testing the migration to the ADS Link component behind a feature flag. If this fix is
18
+ successful it will be available in a later release.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 3.3.0
4
25
 
5
26
  ### Minor Changes
package/compass.yml CHANGED
@@ -1,32 +1,30 @@
1
- name: Linking Platform - Link Picker
2
- id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/2870ee2d-8068-4bb8-b382-1cdc5ff4366e'
3
- description: Standalone link picker
1
+ id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/85cec322-aa6f-4e16-800d-8ee284f6195b'
2
+ name: '@atlaskit/link-picker'
3
+ description:
4
+ This package provider the Link Picker, a standalone React component from Atlassian’s Atlaskit
5
+ design system that provides a user interface for inserting and editing links without leaving the
6
+ current context — commonly accessed via the Cmd+K shortcut or an editor toolbar icon.
4
7
  configVersion: 1
5
- typeId: UI_ELEMENT
6
- ownerId: 'ari:cloud:teams::team/25e5b679-2a57-4fce-b749-5504e84d6799'
8
+ typeId: LIBRARY
9
+ ownerId: 'ari:cloud:identity::team/9683a6ac-2d3f-44c8-a0fe-56128ca69e20'
7
10
  fields:
8
- tier: 2
11
+ tier: 4
12
+ lifecycle: Active
13
+ isMonorepoProject: true
14
+ labels:
15
+ - atlassian-platform
9
16
  links:
10
- - name: null
11
- type: REPOSITORY
12
- url: 'https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/linking-platform/link-picker/'
17
+ - name: Bandicoots
18
+ type: PROJECT
19
+ url: 'https://product-fabric.atlassian.net/jira/software/c/projects/EDM/boards/5176'
13
20
  - name: '#help-twg-linking-platform'
14
21
  type: CHAT_CHANNEL
15
22
  url: 'https://atlassian.enterprise.slack.com/archives/CFKGAQZRV'
16
- - name: Linking Platform Space
17
- type: DOCUMENT
18
- url: 'https://hello.atlassian.net/wiki/spaces/TWPLP/overview'
19
- - name: ''
20
- type: PROJECT
21
- url: 'https://product-fabric.atlassian.net/jira/software/c/projects/EDM/boards/893'
22
23
  - name: ''
23
24
  type: ON_CALL
24
25
  url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b9c8b313-dd6d-4a41-8eeb-d7a9df55be9d'
25
- - name: ''
26
- type: DASHBOARD
27
- url: 'https://atlassian.signalfx.com/#/dashboard/EXwrMgYAwAA?groupId=EXwtbIrA4AA&configId=EXwrNLcA4AA'
26
+ - name: source code
27
+ type: REPOSITORY
28
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/linking-platform/link-picker'
29
+ customFields: []
28
30
  relationships: {}
29
- labels:
30
- - atlassian-platform
31
- # Learn more about formatting compass.yml:
32
- # https://go.atlassian.com/compass-yml-format
@@ -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.3.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.3.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.3.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.3.0",
3
+ "version": "3.4.1",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -63,6 +63,12 @@
63
63
  },
64
64
  "jsc_inline_editing_field_refactor": {
65
65
  "type": "boolean"
66
+ },
67
+ "dst-a11y__replace-anchor-with-link__linking-platfo": {
68
+ "type": "boolean"
69
+ },
70
+ "platform-link-picker-a11y-label": {
71
+ "type": "boolean"
66
72
  }
67
73
  },
68
74
  "scripts": {
@@ -71,25 +77,25 @@
71
77
  "dependencies": {
72
78
  "@atlaskit/analytics-next": "^11.0.0",
73
79
  "@atlaskit/atlassian-context": "^0.2.0",
74
- "@atlaskit/button": "^23.0.0",
80
+ "@atlaskit/button": "^23.2.0",
75
81
  "@atlaskit/css": "^0.10.0",
76
82
  "@atlaskit/form": "^12.0.0",
77
83
  "@atlaskit/frontend-utilities": "^3.0.0",
78
84
  "@atlaskit/heading": "^5.2.0",
79
- "@atlaskit/icon": "^26.0.0",
85
+ "@atlaskit/icon": "^26.1.0",
80
86
  "@atlaskit/intl-messages-provider": "^2.0.0",
81
- "@atlaskit/link": "^3.1.0",
87
+ "@atlaskit/link": "^3.2.0",
82
88
  "@atlaskit/link-provider": "^3.0.0",
83
89
  "@atlaskit/linking-common": "^9.0.0",
84
90
  "@atlaskit/onboarding": "^14.1.0",
85
91
  "@atlaskit/platform-feature-flags": "^1.1.0",
86
- "@atlaskit/primitives": "^14.7.0",
87
- "@atlaskit/smart-card": "^38.1.0",
92
+ "@atlaskit/primitives": "^14.8.0",
93
+ "@atlaskit/smart-card": "^38.4.0",
88
94
  "@atlaskit/spinner": "^18.0.0",
89
- "@atlaskit/tabs": "^18.0.0",
95
+ "@atlaskit/tabs": "^18.1.0",
90
96
  "@atlaskit/textfield": "^8.0.0",
91
97
  "@atlaskit/theme": "^18.0.0",
92
- "@atlaskit/tokens": "^4.8.0",
98
+ "@atlaskit/tokens": "^4.9.0",
93
99
  "@atlaskit/tooltip": "^20.0.0",
94
100
  "@atlaskit/ufo": "^0.4.0",
95
101
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -110,7 +116,7 @@
110
116
  "@af/analytics-codegen": "workspace:^",
111
117
  "@af/integration-testing": "workspace:^",
112
118
  "@af/visual-regression": "workspace:^",
113
- "@atlaskit/dropdown-menu": "^14.2.0",
119
+ "@atlaskit/dropdown-menu": "^16.0.0",
114
120
  "@atlaskit/link-test-helpers": "^8.0.0",
115
121
  "@atlaskit/visual-regression": "workspace:^",
116
122
  "@atlassian/feature-flags-test-utils": "^0.3.0",
@@ -162,5 +168,6 @@
162
168
  "stricter": [
163
169
  "@atlassian/tangerine/project-structure"
164
170
  ]
165
- }
171
+ },
172
+ "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/e22d6eec-79d6-4015-a147-0ad8a1887e29"
166
173
  }