@atlaskit/link-picker 6.9.2 → 6.10.0

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,24 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 6.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`48ee35bbf1e1b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/48ee35bbf1e1b) -
8
+ Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 6.9.3
15
+
16
+ ### Patch Changes
17
+
18
+ - [`45fa1ee658153`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/45fa1ee658153) -
19
+ NAVX-5378 Adding role tabpanel to link picker tab panels
20
+ - Updated dependencies
21
+
3
22
  ## 6.9.2
4
23
 
5
24
  ### Patch Changes
@@ -11,8 +11,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  *
12
12
  * Generates Typescript types for analytics events from analytics.spec.yaml
13
13
  *
14
- * @codegen <<SignedSource::590b9da528f0d0b88cea1feaa1815283>>
15
- * @codegenCommand yarn workspace @atlaskit/link-picker run codegen-analytics
14
+ * @codegen <<SignedSource::8ad800c149f887c26cf6e1c701c20ed0>>
15
+ * @codegenCommand afm workspace @atlaskit/link-picker codegen-analytics
16
16
  */
17
17
 
18
18
  function createEventPayload(eventKey, attributes) {
@@ -15,6 +15,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
15
15
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _reactIntl = require("react-intl");
18
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
18
19
  var _compiled = require("@atlaskit/primitives/compiled");
19
20
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
20
21
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
@@ -124,15 +125,20 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
124
125
  var _activePlugin$emptySt;
125
126
  var emptyState = activePlugin === null || activePlugin === void 0 || (_activePlugin$emptySt = activePlugin.emptyStateNoResults) === null || _activePlugin$emptySt === void 0 ? void 0 : _activePlugin$emptySt.call(activePlugin);
126
127
  if (emptyState) {
127
- return /*#__PURE__*/React.createElement("div", {
128
- id: tabPanelId,
128
+ return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
129
+ id: tabPanelId
130
+ }, (0, _fg.fg)('navx-5378-link-picker-tab-roles') ? {
131
+ role: 'tabpanel'
132
+ } : {}, {
129
133
  className: (0, _runtime.ax)([styles.emptyStateNoResultsWrapper])
130
- }, emptyState);
134
+ }), emptyState);
131
135
  }
132
136
  }
133
- return /*#__PURE__*/React.createElement("div", {
137
+ return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
134
138
  id: tabPanelId
135
- }, /*#__PURE__*/React.createElement(_linkSearchNoResults.NoResults, {
139
+ }, (0, _fg.fg)('navx-5378-link-picker-tab-roles') ? {
140
+ role: 'tabpanel'
141
+ } : {}), /*#__PURE__*/React.createElement(_linkSearchNoResults.NoResults, {
136
142
  shouldRenderImage: shouldRenderNoResultsImage
137
143
  }));
138
144
  }
@@ -196,6 +202,9 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
196
202
  return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
197
203
  id: tabPanelId,
198
204
  ref: ref,
205
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
199
206
  className: (0, _runtime.ax)(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className])
200
- }, restProps), itemsContent, loadingContent);
207
+ }, (0, _fg.fg)('navx-5378-link-picker-tab-roles') ? {
208
+ role: 'tabpanel'
209
+ } : {}, restProps), itemsContent, loadingContent);
201
210
  });
@@ -26,7 +26,7 @@ var testIds = exports.testIds = {
26
26
  };
27
27
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
28
28
  packageName: "@atlaskit/link-picker" || '',
29
- packageVersion: "6.9.1" || '',
29
+ packageVersion: "6.9.3" || '',
30
30
  componentName: _constants.COMPONENT_NAME,
31
31
  source: _constants.COMPONENT_NAME
32
32
  };
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::590b9da528f0d0b88cea1feaa1815283>>
7
- * @codegenCommand yarn workspace @atlaskit/link-picker run codegen-analytics
6
+ * @codegen <<SignedSource::8ad800c149f887c26cf6e1c701c20ed0>>
7
+ * @codegenCommand afm workspace @atlaskit/link-picker codegen-analytics
8
8
  */
9
9
 
10
10
  function createEventPayload(eventKey, attributes) {
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef, Fragment, useCallback, useRef } from 'react';
7
7
  import { defineMessages, FormattedMessage } from 'react-intl';
8
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
8
9
  import { Box } from '@atlaskit/primitives/compiled';
9
10
  import Spinner from '@atlaskit/spinner/spinner';
10
11
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
@@ -113,15 +114,20 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
113
114
  var _activePlugin$emptySt;
114
115
  const emptyState = activePlugin === null || activePlugin === void 0 ? void 0 : (_activePlugin$emptySt = activePlugin.emptyStateNoResults) === null || _activePlugin$emptySt === void 0 ? void 0 : _activePlugin$emptySt.call(activePlugin);
115
116
  if (emptyState) {
116
- return /*#__PURE__*/React.createElement("div", {
117
- id: tabPanelId,
117
+ return /*#__PURE__*/React.createElement("div", _extends({
118
+ id: tabPanelId
119
+ }, fg('navx-5378-link-picker-tab-roles') ? {
120
+ role: 'tabpanel'
121
+ } : {}, {
118
122
  className: ax([styles.emptyStateNoResultsWrapper])
119
- }, emptyState);
123
+ }), emptyState);
120
124
  }
121
125
  }
122
- return /*#__PURE__*/React.createElement("div", {
126
+ return /*#__PURE__*/React.createElement("div", _extends({
123
127
  id: tabPanelId
124
- }, /*#__PURE__*/React.createElement(NoResults, {
128
+ }, fg('navx-5378-link-picker-tab-roles') ? {
129
+ role: 'tabpanel'
130
+ } : {}), /*#__PURE__*/React.createElement(NoResults, {
125
131
  shouldRenderImage: shouldRenderNoResultsImage
126
132
  }));
127
133
  }
@@ -179,6 +185,9 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
179
185
  return /*#__PURE__*/React.createElement("div", _extends({
180
186
  id: tabPanelId,
181
187
  ref: ref,
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
182
189
  className: ax(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className])
183
- }, restProps), itemsContent, loadingContent);
190
+ }, fg('navx-5378-link-picker-tab-roles') ? {
191
+ role: 'tabpanel'
192
+ } : {}, restProps), itemsContent, loadingContent);
184
193
  });
@@ -16,7 +16,7 @@ export const testIds = {
16
16
  };
17
17
  export const PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "6.9.1" || '',
19
+ packageVersion: "6.9.3" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -4,8 +4,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  *
5
5
  * Generates Typescript types for analytics events from analytics.spec.yaml
6
6
  *
7
- * @codegen <<SignedSource::590b9da528f0d0b88cea1feaa1815283>>
8
- * @codegenCommand yarn workspace @atlaskit/link-picker run codegen-analytics
7
+ * @codegen <<SignedSource::8ad800c149f887c26cf6e1c701c20ed0>>
8
+ * @codegenCommand afm workspace @atlaskit/link-picker codegen-analytics
9
9
  */
10
10
 
11
11
  function createEventPayload(eventKey, attributes) {
@@ -10,6 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  import { forwardRef, Fragment, useCallback, useRef } from 'react';
12
12
  import { defineMessages, FormattedMessage } from 'react-intl';
13
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
13
14
  import { Box } from '@atlaskit/primitives/compiled';
14
15
  import Spinner from '@atlaskit/spinner/spinner';
15
16
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
@@ -115,15 +116,20 @@ export var LinkSearchList = /*#__PURE__*/forwardRef(function (_ref, ref) {
115
116
  var _activePlugin$emptySt;
116
117
  var emptyState = activePlugin === null || activePlugin === void 0 || (_activePlugin$emptySt = activePlugin.emptyStateNoResults) === null || _activePlugin$emptySt === void 0 ? void 0 : _activePlugin$emptySt.call(activePlugin);
117
118
  if (emptyState) {
118
- return /*#__PURE__*/React.createElement("div", {
119
- id: tabPanelId,
119
+ return /*#__PURE__*/React.createElement("div", _extends({
120
+ id: tabPanelId
121
+ }, fg('navx-5378-link-picker-tab-roles') ? {
122
+ role: 'tabpanel'
123
+ } : {}, {
120
124
  className: ax([styles.emptyStateNoResultsWrapper])
121
- }, emptyState);
125
+ }), emptyState);
122
126
  }
123
127
  }
124
- return /*#__PURE__*/React.createElement("div", {
128
+ return /*#__PURE__*/React.createElement("div", _extends({
125
129
  id: tabPanelId
126
- }, /*#__PURE__*/React.createElement(NoResults, {
130
+ }, fg('navx-5378-link-picker-tab-roles') ? {
131
+ role: 'tabpanel'
132
+ } : {}), /*#__PURE__*/React.createElement(NoResults, {
127
133
  shouldRenderImage: shouldRenderNoResultsImage
128
134
  }));
129
135
  }
@@ -187,6 +193,9 @@ export var LinkSearchList = /*#__PURE__*/forwardRef(function (_ref, ref) {
187
193
  return /*#__PURE__*/React.createElement("div", _extends({
188
194
  id: tabPanelId,
189
195
  ref: ref,
196
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
190
197
  className: ax(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className])
191
- }, restProps), itemsContent, loadingContent);
198
+ }, fg('navx-5378-link-picker-tab-roles') ? {
199
+ role: 'tabpanel'
200
+ } : {}, restProps), itemsContent, loadingContent);
192
201
  });
@@ -17,7 +17,7 @@ export var testIds = {
17
17
  };
18
18
  export var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "6.9.1" || '',
20
+ packageVersion: "6.9.3" || '',
21
21
  componentName: COMPONENT_NAME,
22
22
  source: COMPONENT_NAME
23
23
  };
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::590b9da528f0d0b88cea1feaa1815283>>
7
- * @codegenCommand yarn workspace @atlaskit/link-picker run codegen-analytics
6
+ * @codegen <<SignedSource::8ad800c149f887c26cf6e1c701c20ed0>>
7
+ * @codegenCommand afm workspace @atlaskit/link-picker codegen-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
10
10
  packageName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "6.9.2",
3
+ "version": "6.10.0",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -48,13 +48,16 @@
48
48
  },
49
49
  "platform_link_picker_fix_error_state_text_overflow": {
50
50
  "type": "boolean"
51
+ },
52
+ "navx-5378-link-picker-tab-roles": {
53
+ "type": "boolean"
51
54
  }
52
55
  },
53
56
  "scripts": {
54
57
  "codegen-analytics": "yarn run ts-analytics-codegen --command='afm workspace @atlaskit/link-picker codegen-analytics'"
55
58
  },
56
59
  "dependencies": {
57
- "@atlaskit/afm-i18n-platform-linking-platform-link-picker": "2.258.0",
60
+ "@atlaskit/afm-i18n-platform-linking-platform-link-picker": "2.265.0",
58
61
  "@atlaskit/analytics-next": "^12.5.0",
59
62
  "@atlaskit/atlassian-context": "^2.0.0",
60
63
  "@atlaskit/button": "^25.4.0",
@@ -70,12 +73,12 @@
70
73
  "@atlaskit/platform-feature-flags": "^2.2.0",
71
74
  "@atlaskit/primitives": "^22.5.0",
72
75
  "@atlaskit/react-compiler-gating": "^0.2.0",
73
- "@atlaskit/smart-card": "^46.0.0",
76
+ "@atlaskit/smart-card": "^46.2.0",
74
77
  "@atlaskit/spinner": "^20.4.0",
75
78
  "@atlaskit/spotlight": "^4.2.0",
76
- "@atlaskit/tabs": "^21.2.0",
79
+ "@atlaskit/tabs": "^21.3.0",
77
80
  "@atlaskit/textfield": "^10.2.0",
78
- "@atlaskit/tokens": "^20.0.0",
81
+ "@atlaskit/tokens": "^20.1.0",
79
82
  "@atlaskit/tooltip": "^24.3.0",
80
83
  "@atlaskit/ufo": "^2.0.0",
81
84
  "@atlaskit/visually-hidden": "^4.4.0",
@@ -96,16 +99,16 @@
96
99
  "@af/analytics-codegen": "workspace:^",
97
100
  "@af/integration-testing": "workspace:^",
98
101
  "@af/visual-regression": "workspace:^",
99
- "@atlaskit/dropdown-menu": "^18.3.0",
102
+ "@atlaskit/dropdown-menu": "^20.0.0",
100
103
  "@atlaskit/link-analytics": "^13.0.0",
101
104
  "@atlaskit/link-test-helpers": "^11.2.0",
102
- "@atlaskit/popup": "^6.3.0",
105
+ "@atlaskit/popup": "^8.1.0",
103
106
  "@atlaskit/range": "^12.2.0",
104
107
  "@atlaskit/toggle": "^17.3.0",
105
108
  "@atlassian/a11y-jest-testing": "^0.17.0",
106
- "@atlassian/a11y-playwright-testing": "^0.12.0",
109
+ "@atlassian/a11y-playwright-testing": "^0.13.0",
107
110
  "@atlassian/feature-flags-test-utils": "^1.3.0",
108
- "@atlassian/link-picker-atlassian-plugin": "^39.8.0",
111
+ "@atlassian/link-picker-atlassian-plugin": "^39.9.0",
109
112
  "@atlassian/link-picker-plugins": "^33.0.0",
110
113
  "@atlassian/recent-work-client": "^2.23.0",
111
114
  "@atlassian/structured-docs-types": "workspace:^",