@atlaskit/link-picker 3.9.12 → 3.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 +15 -0
- package/dist/cjs/ui/link-picker/search-results/index.js +6 -1
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/index.js +6 -1
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/ui/link-picker/search-results/index.js +6 -1
- package/dist/esm/ui/main.js +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 3.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b3bf6b4e7fcb0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b3bf6b4e7fcb0) -
|
|
8
|
+
[ux] Integrated empty state UI in link picker for Google Drive tab, added remote-link object type
|
|
9
|
+
to Google Drive plugin configuration and enabled ScrollingTabList for link picker if the Google
|
|
10
|
+
Drive tab is shown in the link picker
|
|
11
|
+
|
|
12
|
+
## 3.9.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.9.12
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -12,6 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
15
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
17
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
17
18
|
var _tabs = _interopRequireWildcard(require("@atlaskit/tabs"));
|
|
@@ -54,6 +55,10 @@ var SearchResults = exports.SearchResults = function SearchResults(_ref) {
|
|
|
54
55
|
adaptiveHeight = _ref.adaptiveHeight,
|
|
55
56
|
retry = _ref.retry;
|
|
56
57
|
var isActivePlugin = !!activePlugin;
|
|
58
|
+
// Experiment with new 3P tabs in link picker where "Google Drive" is shown as the second tab. For more info, please see: go/link-picker-3p-drive-one-pager.
|
|
59
|
+
var linkPicker3pDriveExperimentCohort = _featureGateJsClient.default.initializeCalled() ? _featureGateJsClient.default.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
|
|
60
|
+
var googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
|
|
61
|
+
var showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || googleDriveTabExperimentEnabled;
|
|
57
62
|
var tabList = /*#__PURE__*/React.createElement(_tabs.TabList, null, tabs.map(function (tab) {
|
|
58
63
|
return /*#__PURE__*/React.createElement(_tabs.Tab, {
|
|
59
64
|
key: tab.tabTitle,
|
|
@@ -77,7 +82,7 @@ var SearchResults = exports.SearchResults = function SearchResults(_ref) {
|
|
|
77
82
|
testId: testIds.tabList,
|
|
78
83
|
selected: activeTab,
|
|
79
84
|
onChange: handleTabChange
|
|
80
|
-
},
|
|
85
|
+
}, showScrollingTabList ? /*#__PURE__*/React.createElement(_scrollingTabs.ScrollingTabList, null, tabList) : tabList), /*#__PURE__*/React.createElement(_trackTabViewed.TrackTabViewed, {
|
|
81
86
|
activePlugin: activePlugin
|
|
82
87
|
})), !error && /*#__PURE__*/React.createElement(_linkSearchList.LinkSearchList, {
|
|
83
88
|
id: linkSearchListId,
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -25,7 +25,7 @@ var testIds = exports.testIds = {
|
|
|
25
25
|
};
|
|
26
26
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
27
27
|
packageName: "@atlaskit/link-picker" || '',
|
|
28
|
-
packageVersion: "3.9.
|
|
28
|
+
packageVersion: "3.9.13" || '',
|
|
29
29
|
componentName: _constants.COMPONENT_NAME,
|
|
30
30
|
source: _constants.COMPONENT_NAME
|
|
31
31
|
};
|
|
@@ -3,6 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
6
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
8
9
|
import Tabs, { Tab, TabList } from '@atlaskit/tabs';
|
|
@@ -45,6 +46,10 @@ export const SearchResults = ({
|
|
|
45
46
|
}) => {
|
|
46
47
|
var _activePlugin$errorFa, _activePlugin$errorFa2;
|
|
47
48
|
const isActivePlugin = !!activePlugin;
|
|
49
|
+
// Experiment with new 3P tabs in link picker where "Google Drive" is shown as the second tab. For more info, please see: go/link-picker-3p-drive-one-pager.
|
|
50
|
+
const linkPicker3pDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
|
|
51
|
+
const googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
|
|
52
|
+
const showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || googleDriveTabExperimentEnabled;
|
|
48
53
|
const tabList = /*#__PURE__*/React.createElement(TabList, null, tabs.map(tab => /*#__PURE__*/React.createElement(Tab, {
|
|
49
54
|
key: tab.tabTitle,
|
|
50
55
|
testId: testIds.tabItem
|
|
@@ -66,7 +71,7 @@ export const SearchResults = ({
|
|
|
66
71
|
testId: testIds.tabList,
|
|
67
72
|
selected: activeTab,
|
|
68
73
|
onChange: handleTabChange
|
|
69
|
-
},
|
|
74
|
+
}, showScrollingTabList ? /*#__PURE__*/React.createElement(ScrollingTabList, null, tabList) : tabList), /*#__PURE__*/React.createElement(TrackTabViewed, {
|
|
70
75
|
activePlugin: activePlugin
|
|
71
76
|
})), !error && /*#__PURE__*/React.createElement(LinkSearchList, {
|
|
72
77
|
id: linkSearchListId,
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -6,6 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
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; }
|
|
8
8
|
import { Fragment } from 'react';
|
|
9
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
11
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
12
|
import Tabs, { Tab, TabList } from '@atlaskit/tabs';
|
|
@@ -45,6 +46,10 @@ export var SearchResults = function SearchResults(_ref) {
|
|
|
45
46
|
adaptiveHeight = _ref.adaptiveHeight,
|
|
46
47
|
retry = _ref.retry;
|
|
47
48
|
var isActivePlugin = !!activePlugin;
|
|
49
|
+
// Experiment with new 3P tabs in link picker where "Google Drive" is shown as the second tab. For more info, please see: go/link-picker-3p-drive-one-pager.
|
|
50
|
+
var linkPicker3pDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
|
|
51
|
+
var googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
|
|
52
|
+
var showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || googleDriveTabExperimentEnabled;
|
|
48
53
|
var tabList = /*#__PURE__*/React.createElement(TabList, null, tabs.map(function (tab) {
|
|
49
54
|
return /*#__PURE__*/React.createElement(Tab, {
|
|
50
55
|
key: tab.tabTitle,
|
|
@@ -68,7 +73,7 @@ export var SearchResults = function SearchResults(_ref) {
|
|
|
68
73
|
testId: testIds.tabList,
|
|
69
74
|
selected: activeTab,
|
|
70
75
|
onChange: handleTabChange
|
|
71
|
-
},
|
|
76
|
+
}, showScrollingTabList ? /*#__PURE__*/React.createElement(ScrollingTabList, null, tabList) : tabList), /*#__PURE__*/React.createElement(TrackTabViewed, {
|
|
72
77
|
activePlugin: activePlugin
|
|
73
78
|
})), !error && /*#__PURE__*/React.createElement(LinkSearchList, {
|
|
74
79
|
id: linkSearchListId,
|
package/dist/esm/ui/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@atlaskit/atlassian-context": "^0.5.0",
|
|
58
58
|
"@atlaskit/button": "^23.4.0",
|
|
59
59
|
"@atlaskit/css": "^0.14.0",
|
|
60
|
+
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
60
61
|
"@atlaskit/form": "^12.5.0",
|
|
61
62
|
"@atlaskit/frontend-utilities": "^3.1.0",
|
|
62
63
|
"@atlaskit/heading": "^5.2.0",
|
|
@@ -68,11 +69,11 @@
|
|
|
68
69
|
"@atlaskit/onboarding": "^14.4.0",
|
|
69
70
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
71
|
"@atlaskit/primitives": "^14.14.0",
|
|
71
|
-
"@atlaskit/smart-card": "^40.
|
|
72
|
+
"@atlaskit/smart-card": "^40.22.0",
|
|
72
73
|
"@atlaskit/spinner": "^19.0.0",
|
|
73
74
|
"@atlaskit/tabs": "^18.1.0",
|
|
74
75
|
"@atlaskit/textfield": "^8.0.0",
|
|
75
|
-
"@atlaskit/theme": "^
|
|
76
|
+
"@atlaskit/theme": "^21.0.0",
|
|
76
77
|
"@atlaskit/tokens": "^6.3.0",
|
|
77
78
|
"@atlaskit/tooltip": "^20.4.0",
|
|
78
79
|
"@atlaskit/ufo": "^0.4.0",
|