@atlaskit/link-picker 6.13.0 → 6.13.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
+ ## 6.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e1990db07227e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1990db07227e) -
8
+ Cleanup feature gate `navx-5378-link-picker-tab-roles`. Keep tab-panel roles enabled for link
9
+ picker results, loading, and empty states.
10
+
3
11
  ## 6.13.0
4
12
 
5
13
  ### Minor Changes
package/compass.yml CHANGED
@@ -27,7 +27,7 @@ links:
27
27
  url: https://opsj.atlassian.net/jira/ops/teams/62c5672c-3754-4ebe-8a0f-4d1c87ded5b5/on-call
28
28
  - name: Slack Channel
29
29
  type: CHAT_CHANNEL
30
- url: https://atlassian.enterprise.slack.com/archives/C09LKUEEPGT # #rovo-growth
30
+ url: https://atlassian.enterprise.slack.com/archives/C09LKUEEPGT #rovo-growth
31
31
  - name: Link Picker
32
32
  type: REPOSITORY
33
33
  url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/linking-platform/link-picker
@@ -22,7 +22,7 @@ var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents"
22
22
  var _client = _interopRequireDefault(require("@atlaskit/link-provider/client"));
23
23
  var _url2 = require("@atlaskit/linking-common/url");
24
24
  var _userAgent = require("@atlaskit/linking-common/user-agent");
25
- var _compiled = require("@atlaskit/primitives/compiled");
25
+ var _box = require("@atlaskit/primitives/compiled/box");
26
26
  var _link = _interopRequireDefault(require("@atlaskit/smart-card/link"));
27
27
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
28
28
  var _analytics = require("../../common/analytics");
@@ -477,7 +477,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
477
477
  onClear: handleClear,
478
478
  onChange: handleChangeText,
479
479
  helperMessage: intl.formatMessage((_customMessages$linkH = customMessages === null || customMessages === void 0 ? void 0 : customMessages.linkHelperTextLabel) !== null && _customMessages$linkH !== void 0 ? _customMessages$linkH : _messages.linkTextMessages.linkHelperTextLabel)
480
- })), moveSubmitButton && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
480
+ })), moveSubmitButton && /*#__PURE__*/_react.default.createElement(_box.Box, {
481
481
  xcss: styles.fullWidthSubmitButton
482
482
  }, /*#__PURE__*/_react.default.createElement(_linkPickerSubmitButton.LinkPickerSubmitButton, {
483
483
  isEditing: isEditing,
@@ -15,7 +15,6 @@ 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");
19
18
  var _box = require("@atlaskit/primitives/compiled/box");
20
19
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
21
20
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
@@ -125,20 +124,17 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
125
124
  var _activePlugin$emptySt;
126
125
  var emptyState = activePlugin === null || activePlugin === void 0 || (_activePlugin$emptySt = activePlugin.emptyStateNoResults) === null || _activePlugin$emptySt === void 0 ? void 0 : _activePlugin$emptySt.call(activePlugin);
127
126
  if (emptyState) {
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
- } : {}, {
127
+ return /*#__PURE__*/React.createElement("div", {
128
+ id: tabPanelId,
129
+ role: "tabpanel",
133
130
  className: (0, _runtime.ax)([styles.emptyStateNoResultsWrapper])
134
- }), emptyState);
131
+ }, emptyState);
135
132
  }
136
133
  }
137
- return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
138
- id: tabPanelId
139
- }, (0, _fg.fg)('navx-5378-link-picker-tab-roles') ? {
140
- role: 'tabpanel'
141
- } : {}), /*#__PURE__*/React.createElement(_linkSearchNoResults.NoResults, {
134
+ return /*#__PURE__*/React.createElement("div", {
135
+ id: tabPanelId,
136
+ role: "tabpanel"
137
+ }, /*#__PURE__*/React.createElement(_linkSearchNoResults.NoResults, {
142
138
  shouldRenderImage: shouldRenderNoResultsImage
143
139
  }));
144
140
  }
@@ -203,8 +199,7 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
203
199
  id: tabPanelId,
204
200
  ref: ref,
205
201
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
206
- className: (0, _runtime.ax)(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className])
207
- }, (0, _fg.fg)('navx-5378-link-picker-tab-roles') ? {
208
- role: 'tabpanel'
209
- } : {}, restProps), itemsContent, loadingContent);
202
+ className: (0, _runtime.ax)(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className]),
203
+ role: "tabpanel"
204
+ }, restProps), itemsContent, loadingContent);
210
205
  });
@@ -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.12.2" || '',
29
+ packageVersion: "6.13.0" || '',
30
30
  componentName: _constants.COMPONENT_NAME,
31
31
  source: _constants.COMPONENT_NAME
32
32
  };
@@ -11,7 +11,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
11
11
  import CardClient from '@atlaskit/link-provider/client';
12
12
  import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
13
13
  import { browser } from '@atlaskit/linking-common/user-agent';
14
- import { Box } from '@atlaskit/primitives/compiled';
14
+ import { Box } from '@atlaskit/primitives/compiled/box';
15
15
  import LinkUrl from '@atlaskit/smart-card/link';
16
16
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
17
17
  import { useLinkPickerAnalytics, withInputFieldTracking, withLinkPickerAnalyticsContext } from '../../common/analytics';
@@ -5,7 +5,6 @@ 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';
9
8
  import { Box } from '@atlaskit/primitives/compiled/box';
10
9
  import Spinner from '@atlaskit/spinner/spinner';
11
10
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
@@ -114,20 +113,17 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
114
113
  var _activePlugin$emptySt;
115
114
  const emptyState = activePlugin === null || activePlugin === void 0 ? void 0 : (_activePlugin$emptySt = activePlugin.emptyStateNoResults) === null || _activePlugin$emptySt === void 0 ? void 0 : _activePlugin$emptySt.call(activePlugin);
116
115
  if (emptyState) {
117
- return /*#__PURE__*/React.createElement("div", _extends({
118
- id: tabPanelId
119
- }, fg('navx-5378-link-picker-tab-roles') ? {
120
- role: 'tabpanel'
121
- } : {}, {
116
+ return /*#__PURE__*/React.createElement("div", {
117
+ id: tabPanelId,
118
+ role: "tabpanel",
122
119
  className: ax([styles.emptyStateNoResultsWrapper])
123
- }), emptyState);
120
+ }, emptyState);
124
121
  }
125
122
  }
126
- return /*#__PURE__*/React.createElement("div", _extends({
127
- id: tabPanelId
128
- }, fg('navx-5378-link-picker-tab-roles') ? {
129
- role: 'tabpanel'
130
- } : {}), /*#__PURE__*/React.createElement(NoResults, {
123
+ return /*#__PURE__*/React.createElement("div", {
124
+ id: tabPanelId,
125
+ role: "tabpanel"
126
+ }, /*#__PURE__*/React.createElement(NoResults, {
131
127
  shouldRenderImage: shouldRenderNoResultsImage
132
128
  }));
133
129
  }
@@ -186,8 +182,7 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
186
182
  id: tabPanelId,
187
183
  ref: ref,
188
184
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
189
- className: ax(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className])
190
- }, fg('navx-5378-link-picker-tab-roles') ? {
191
- role: 'tabpanel'
192
- } : {}, restProps), itemsContent, loadingContent);
185
+ className: ax(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className]),
186
+ role: "tabpanel"
187
+ }, restProps), itemsContent, loadingContent);
193
188
  });
@@ -16,7 +16,7 @@ export const testIds = {
16
16
  };
17
17
  export const PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "6.12.2" || '',
19
+ packageVersion: "6.13.0" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -17,7 +17,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
17
17
  import CardClient from '@atlaskit/link-provider/client';
18
18
  import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
19
19
  import { browser } from '@atlaskit/linking-common/user-agent';
20
- import { Box } from '@atlaskit/primitives/compiled';
20
+ import { Box } from '@atlaskit/primitives/compiled/box';
21
21
  import LinkUrl from '@atlaskit/smart-card/link';
22
22
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
23
23
  import { useLinkPickerAnalytics, withInputFieldTracking, withLinkPickerAnalyticsContext } from '../../common/analytics';
@@ -10,7 +10,6 @@ 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';
14
13
  import { Box } from '@atlaskit/primitives/compiled/box';
15
14
  import Spinner from '@atlaskit/spinner/spinner';
16
15
  import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
@@ -116,20 +115,17 @@ export var LinkSearchList = /*#__PURE__*/forwardRef(function (_ref, ref) {
116
115
  var _activePlugin$emptySt;
117
116
  var emptyState = activePlugin === null || activePlugin === void 0 || (_activePlugin$emptySt = activePlugin.emptyStateNoResults) === null || _activePlugin$emptySt === void 0 ? void 0 : _activePlugin$emptySt.call(activePlugin);
118
117
  if (emptyState) {
119
- return /*#__PURE__*/React.createElement("div", _extends({
120
- id: tabPanelId
121
- }, fg('navx-5378-link-picker-tab-roles') ? {
122
- role: 'tabpanel'
123
- } : {}, {
118
+ return /*#__PURE__*/React.createElement("div", {
119
+ id: tabPanelId,
120
+ role: "tabpanel",
124
121
  className: ax([styles.emptyStateNoResultsWrapper])
125
- }), emptyState);
122
+ }, emptyState);
126
123
  }
127
124
  }
128
- return /*#__PURE__*/React.createElement("div", _extends({
129
- id: tabPanelId
130
- }, fg('navx-5378-link-picker-tab-roles') ? {
131
- role: 'tabpanel'
132
- } : {}), /*#__PURE__*/React.createElement(NoResults, {
125
+ return /*#__PURE__*/React.createElement("div", {
126
+ id: tabPanelId,
127
+ role: "tabpanel"
128
+ }, /*#__PURE__*/React.createElement(NoResults, {
133
129
  shouldRenderImage: shouldRenderNoResultsImage
134
130
  }));
135
131
  }
@@ -194,8 +190,7 @@ export var LinkSearchList = /*#__PURE__*/forwardRef(function (_ref, ref) {
194
190
  id: tabPanelId,
195
191
  ref: ref,
196
192
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
197
- className: ax(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className])
198
- }, fg('navx-5378-link-picker-tab-roles') ? {
199
- role: 'tabpanel'
200
- } : {}, restProps), itemsContent, loadingContent);
193
+ className: ax(["_1bsb1osq _ca0qidpf _1tkeys9h _19pkpxbi _otyrpxbi _16jlkb7n _1e0c1txw _2lx21bp4", className]),
194
+ role: "tabpanel"
195
+ }, restProps), itemsContent, loadingContent);
201
196
  });
@@ -17,7 +17,7 @@ export var testIds = {
17
17
  };
18
18
  export var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "6.12.2" || '',
20
+ packageVersion: "6.13.0" || '',
21
21
  componentName: COMPONENT_NAME,
22
22
  source: COMPONENT_NAME
23
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "6.13.0",
3
+ "version": "6.13.1",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -36,9 +36,6 @@
36
36
  "platform-feature-flags": {
37
37
  "platform_navx_fix_nested_footer_landmark": {
38
38
  "type": "boolean"
39
- },
40
- "navx-5378-link-picker-tab-roles": {
41
- "type": "boolean"
42
39
  }
43
40
  },
44
41
  "scripts": {
@@ -48,7 +45,7 @@
48
45
  "@atlaskit/afm-i18n-platform-linking-platform-link-picker": "2.280.0",
49
46
  "@atlaskit/analytics-next": "^12.6.0",
50
47
  "@atlaskit/atlassian-context": "^2.0.0",
51
- "@atlaskit/button": "^25.4.0",
48
+ "@atlaskit/button": "^25.6.0",
52
49
  "@atlaskit/css": "^1.1.0",
53
50
  "@atlaskit/form": "^18.2.0",
54
51
  "@atlaskit/frontend-utilities": "^5.0.0",
@@ -59,7 +56,7 @@
59
56
  "@atlaskit/link-provider": "^6.0.0",
60
57
  "@atlaskit/linking-common": "^13.0.0",
61
58
  "@atlaskit/platform-feature-flags": "^2.2.0",
62
- "@atlaskit/primitives": "^22.5.0",
59
+ "@atlaskit/primitives": "^22.6.0",
63
60
  "@atlaskit/react-compiler-gating": "^0.2.0",
64
61
  "@atlaskit/smart-card": "^46.7.0",
65
62
  "@atlaskit/spinner": "^20.4.0",
@@ -87,16 +84,17 @@
87
84
  "@af/analytics-codegen": "workspace:^",
88
85
  "@af/integration-testing": "workspace:^",
89
86
  "@af/visual-regression": "workspace:^",
87
+ "@atlaskit/docs": "^12.3.0",
90
88
  "@atlaskit/dropdown-menu": "^21.0.0",
91
89
  "@atlaskit/link-analytics": "^13.0.0",
92
90
  "@atlaskit/link-test-helpers": "^11.2.0",
93
- "@atlaskit/popup": "^9.0.0",
91
+ "@atlaskit/popup": "^10.0.0",
94
92
  "@atlaskit/range": "^12.2.0",
95
93
  "@atlaskit/toggle": "^17.3.0",
96
94
  "@atlassian/a11y-jest-testing": "^0.17.0",
97
95
  "@atlassian/a11y-playwright-testing": "^0.13.0",
98
96
  "@atlassian/feature-flags-test-utils": "^1.3.0",
99
- "@atlassian/link-picker-atlassian-plugin": "^39.12.0",
97
+ "@atlassian/link-picker-atlassian-plugin": "^39.13.0",
100
98
  "@atlassian/link-picker-plugins": "^33.0.0",
101
99
  "@atlassian/recent-work-client": "^2.23.0",
102
100
  "@atlassian/structured-docs-types": "workspace:^",