@atlaskit/link-picker 3.11.3 → 3.12.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,21 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 3.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`123919fe0f440`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/123919fe0f440) -
8
+ [ux] Added support for a OneDrive tab with the same functionality as the Google Drive tab in link
9
+ picker
10
+
11
+ ## 3.11.4
12
+
13
+ ### Patch Changes
14
+
15
+ - [`f3494b0a49dbc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f3494b0a49dbc) -
16
+ Internal changes to use new shape tokens. No visual changes.
17
+ - Updated dependencies
18
+
3
19
  ## 3.11.3
4
20
 
5
21
  ### Patch Changes
@@ -20,7 +20,7 @@ var _utils = require("./utils");
20
20
 
21
21
  function usePlugins(state, activeTab, plugins) {
22
22
  var _activePlugin$tabKey;
23
- var googleDriveTabExperimentEnabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
23
+ var thirdPartyTabExperimentEnabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
24
24
  var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
25
25
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
26
26
  var _useState = (0, _react.useState)(0),
@@ -136,13 +136,13 @@ function usePlugins(state, activeTab, plugins) {
136
136
  isLoading = pluginState.isLoading,
137
137
  error = pluginState.error;
138
138
 
139
- // This is needed for the Google Drive tab experiment to show a persistent banner across tabs. Will be removed once the experiment is over regardless of outcome.
139
+ // This is needed for the 3P tab experiments to show a persistent banner across tabs. Will be removed once the experiment is over regardless of outcome.
140
140
  var pluginBanner = (0, _react.useMemo)(function () {
141
141
  var _plugins$find;
142
- return googleDriveTabExperimentEnabled ? plugins === null || plugins === void 0 || (_plugins$find = plugins.find(function (plugin) {
142
+ return thirdPartyTabExperimentEnabled ? plugins === null || plugins === void 0 || (_plugins$find = plugins.find(function (plugin) {
143
143
  return plugin.banner;
144
144
  })) === null || _plugins$find === void 0 ? void 0 : _plugins$find.banner : undefined;
145
- }, [plugins, googleDriveTabExperimentEnabled]);
145
+ }, [plugins, thirdPartyTabExperimentEnabled]);
146
146
  return {
147
147
  tabs: tabs,
148
148
  items: items,
@@ -137,10 +137,13 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
137
137
  var intl = (0, _reactIntlNext.useIntl)();
138
138
  var queryState = (0, _useSearchQuery.useSearchQuery)(state);
139
139
 
140
- // 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.
140
+ // Experiment with new 3P tabs in link picker. For more info, please see: go/link-picker-3p-drive-one-pager.
141
141
  var linkPicker3pDriveExperimentCohort = _featureGateJsClient.default.initializeCalled() ? _featureGateJsClient.default.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
142
142
  var googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
143
- var _usePlugins = (0, _usePlugins2.usePlugins)(queryState, activeTab, plugins, googleDriveTabExperimentEnabled),
143
+ var linkPicker3pOneDriveExperimentCohort = _featureGateJsClient.default.initializeCalled() ? _featureGateJsClient.default.getExperimentValue('link_picker_3p_onedrive_experiment', 'cohort', 'control') : 'control';
144
+ var oneDriveTabExperimentEnabled = linkPicker3pOneDriveExperimentCohort === 'show_onedrive_tab';
145
+ var thirdPartyTabExperimentEnabled = googleDriveTabExperimentEnabled || oneDriveTabExperimentEnabled;
146
+ var _usePlugins = (0, _usePlugins2.usePlugins)(queryState, activeTab, plugins, thirdPartyTabExperimentEnabled),
144
147
  items = _usePlugins.items,
145
148
  isLoadingResults = _usePlugins.isLoading,
146
149
  isActivePlugin = _usePlugins.isActivePlugin,
@@ -478,7 +481,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
478
481
  submitMessageId: submitMessageId,
479
482
  testId: testIds.insertButton,
480
483
  url: url
481
- })), googleDriveTabExperimentEnabled && pluginBanner && pluginBanner(), !!queryState && (isLoadingPlugins || isActivePlugin) && /*#__PURE__*/React.createElement(_searchResults.SearchResults, {
484
+ })), thirdPartyTabExperimentEnabled && pluginBanner && pluginBanner(), !!queryState && (isLoadingPlugins || isActivePlugin) && /*#__PURE__*/React.createElement(_searchResults.SearchResults, {
482
485
  activeTab: activeTab,
483
486
  tabs: tabs,
484
487
  activePlugin: activePlugin,
@@ -55,10 +55,13 @@ var SearchResults = exports.SearchResults = function SearchResults(_ref) {
55
55
  adaptiveHeight = _ref.adaptiveHeight,
56
56
  retry = _ref.retry;
57
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.
58
+ // Experiment with new 3P tabs in link picker. For more info, please see: go/link-picker-3p-drive-one-pager.
59
59
  var linkPicker3pDriveExperimentCohort = _featureGateJsClient.default.initializeCalled() ? _featureGateJsClient.default.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
60
60
  var googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
61
- var showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || googleDriveTabExperimentEnabled;
61
+ var linkPicker3pOneDriveExperimentCohort = _featureGateJsClient.default.initializeCalled() ? _featureGateJsClient.default.getExperimentValue('link_picker_3p_onedrive_experiment', 'cohort', 'control') : 'control';
62
+ var oneDriveTabExperimentEnabled = linkPicker3pOneDriveExperimentCohort === 'show_onedrive_tab';
63
+ var thirdPartyTabExperimentEnabled = googleDriveTabExperimentEnabled || oneDriveTabExperimentEnabled;
64
+ var showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || thirdPartyTabExperimentEnabled;
62
65
  var tabList = /*#__PURE__*/React.createElement(_tabs.TabList, null, tabs.map(function (tab) {
63
66
  return /*#__PURE__*/React.createElement(_tabs.Tab, {
64
67
  key: tab.tabTitle,
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._1bh4vqrj{scroll-padding:0 24px}
3
- ._rfx3yh40:before{border-radius:2px}._154i1b66{top:var(--ds-space-050,4px)}
3
+ ._rfx3lb4i:before{border-radius:var(--ds-radius-xsmall,2px)}._154i1b66{top:var(--ds-space-050,4px)}
4
4
  ._18q9glyw [role=tablist]:before{display:none}
5
5
  ._19woidpf:before{bottom:0}
6
6
  ._1cicglyw::-webkit-scrollbar{display:none}
@@ -149,7 +149,7 @@ var ScrollingTabList = exports.ScrollingTabList = function ScrollingTabList(prop
149
149
  }));
150
150
  }
151
151
  }, buttonProps))), /*#__PURE__*/_react.default.createElement("div", {
152
- className: (0, _runtime.ax)(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3yh40 _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1russudh _1cicglyw"]),
152
+ className: (0, _runtime.ax)(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3lb4i _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1russudh _1cicglyw"]),
153
153
  style: {
154
154
  "--_lvpq93": (0, _runtime.ix)("var(--ds-border, ".concat(_colors.N30, ")"))
155
155
  }
@@ -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.11.2" || '',
28
+ packageVersion: "0.0.0-development" || '',
29
29
  componentName: _constants.COMPONENT_NAME,
30
30
  source: _constants.COMPONENT_NAME
31
31
  };
@@ -7,7 +7,7 @@ import { ANALYTICS_CHANNEL, RECENT_SEARCH_LIST_SIZE } from '../../common/constan
7
7
  import createEventPayload from '../../common/utils/analytics/analytics.codegen';
8
8
  import { usePluginReducer } from './reducer';
9
9
  import { CancellationError, resolvePluginUpdates } from './utils';
10
- export function usePlugins(state, activeTab, plugins, googleDriveTabExperimentEnabled = false) {
10
+ export function usePlugins(state, activeTab, plugins, thirdPartyTabExperimentEnabled = false) {
11
11
  var _activePlugin$tabKey;
12
12
  const {
13
13
  createAnalyticsEvent
@@ -92,11 +92,11 @@ export function usePlugins(state, activeTab, plugins, googleDriveTabExperimentEn
92
92
  error
93
93
  } = pluginState;
94
94
 
95
- // This is needed for the Google Drive tab experiment to show a persistent banner across tabs. Will be removed once the experiment is over regardless of outcome.
95
+ // This is needed for the 3P tab experiments to show a persistent banner across tabs. Will be removed once the experiment is over regardless of outcome.
96
96
  const pluginBanner = useMemo(() => {
97
97
  var _plugins$find;
98
- return googleDriveTabExperimentEnabled ? plugins === null || plugins === void 0 ? void 0 : (_plugins$find = plugins.find(plugin => plugin.banner)) === null || _plugins$find === void 0 ? void 0 : _plugins$find.banner : undefined;
99
- }, [plugins, googleDriveTabExperimentEnabled]);
98
+ return thirdPartyTabExperimentEnabled ? plugins === null || plugins === void 0 ? void 0 : (_plugins$find = plugins.find(plugin => plugin.banner)) === null || _plugins$find === void 0 ? void 0 : _plugins$find.banner : undefined;
99
+ }, [plugins, thirdPartyTabExperimentEnabled]);
100
100
  return {
101
101
  tabs,
102
102
  items,
@@ -127,9 +127,12 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
127
127
  const intl = useIntl();
128
128
  const queryState = useSearchQuery(state);
129
129
 
130
- // 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.
130
+ // Experiment with new 3P tabs in link picker. For more info, please see: go/link-picker-3p-drive-one-pager.
131
131
  const linkPicker3pDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
132
132
  const googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
133
+ const linkPicker3pOneDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_onedrive_experiment', 'cohort', 'control') : 'control';
134
+ const oneDriveTabExperimentEnabled = linkPicker3pOneDriveExperimentCohort === 'show_onedrive_tab';
135
+ const thirdPartyTabExperimentEnabled = googleDriveTabExperimentEnabled || oneDriveTabExperimentEnabled;
133
136
  const {
134
137
  items,
135
138
  isLoading: isLoadingResults,
@@ -140,7 +143,7 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
140
143
  retry,
141
144
  pluginAction,
142
145
  pluginBanner
143
- } = usePlugins(queryState, activeTab, plugins, googleDriveTabExperimentEnabled);
146
+ } = usePlugins(queryState, activeTab, plugins, thirdPartyTabExperimentEnabled);
144
147
  const isEditing = !!initUrl;
145
148
  const selectedItem = items === null || items === void 0 ? void 0 : items[selectedIndex];
146
149
  const isSelectedItem = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.url) === url;
@@ -433,7 +436,7 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
433
436
  submitMessageId: submitMessageId,
434
437
  testId: testIds.insertButton,
435
438
  url: url
436
- })), googleDriveTabExperimentEnabled && pluginBanner && pluginBanner(), !!queryState && (isLoadingPlugins || isActivePlugin) && /*#__PURE__*/React.createElement(SearchResults, {
439
+ })), thirdPartyTabExperimentEnabled && pluginBanner && pluginBanner(), !!queryState && (isLoadingPlugins || isActivePlugin) && /*#__PURE__*/React.createElement(SearchResults, {
437
440
  activeTab: activeTab,
438
441
  tabs: tabs,
439
442
  activePlugin: activePlugin,
@@ -46,10 +46,13 @@ export const SearchResults = ({
46
46
  }) => {
47
47
  var _activePlugin$errorFa, _activePlugin$errorFa2;
48
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.
49
+ // Experiment with new 3P tabs in link picker. For more info, please see: go/link-picker-3p-drive-one-pager.
50
50
  const linkPicker3pDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
51
51
  const googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
52
- const showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || googleDriveTabExperimentEnabled;
52
+ const linkPicker3pOneDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_onedrive_experiment', 'cohort', 'control') : 'control';
53
+ const oneDriveTabExperimentEnabled = linkPicker3pOneDriveExperimentCohort === 'show_onedrive_tab';
54
+ const thirdPartyTabExperimentEnabled = googleDriveTabExperimentEnabled || oneDriveTabExperimentEnabled;
55
+ const showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || thirdPartyTabExperimentEnabled;
53
56
  const tabList = /*#__PURE__*/React.createElement(TabList, null, tabs.map(tab => /*#__PURE__*/React.createElement(Tab, {
54
57
  key: tab.tabTitle,
55
58
  testId: testIds.tabItem
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._1bh4vqrj{scroll-padding:0 24px}
3
- ._rfx3yh40:before{border-radius:2px}._154i1b66{top:var(--ds-space-050,4px)}
3
+ ._rfx3lb4i:before{border-radius:var(--ds-radius-xsmall,2px)}._154i1b66{top:var(--ds-space-050,4px)}
4
4
  ._18q9glyw [role=tablist]:before{display:none}
5
5
  ._19woidpf:before{bottom:0}
6
6
  ._1cicglyw::-webkit-scrollbar{display:none}
@@ -109,7 +109,7 @@ export const ScrollingTabList = props => {
109
109
  size: "small"
110
110
  }))
111
111
  }, buttonProps))), /*#__PURE__*/React.createElement("div", {
112
- className: ax(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3yh40 _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1rushloo _1cicglyw"])
112
+ className: ax(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3lb4i _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1rushloo _1cicglyw"])
113
113
  }, props.children), conditionalButtons.forward && /*#__PURE__*/React.createElement("div", {
114
114
  className: ax(["_kqswstnw _154i1b66 _1pby18h8 _bfhkvuon _1xi2idpf"])
115
115
  }, /*#__PURE__*/React.createElement(IconButton, _extends({
@@ -15,7 +15,7 @@ export const testIds = {
15
15
  };
16
16
  export const PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/link-picker" || '',
18
- packageVersion: "3.11.2" || '',
18
+ packageVersion: "0.0.0-development" || '',
19
19
  componentName: COMPONENT_NAME,
20
20
  source: COMPONENT_NAME
21
21
  };
@@ -12,7 +12,7 @@ import { usePluginReducer } from './reducer';
12
12
  import { CancellationError, resolvePluginUpdates } from './utils';
13
13
  export function usePlugins(state, activeTab, plugins) {
14
14
  var _activePlugin$tabKey;
15
- var googleDriveTabExperimentEnabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
15
+ var thirdPartyTabExperimentEnabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
16
16
  var _useAnalyticsEvents = useAnalyticsEvents(),
17
17
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
18
18
  var _useState = useState(0),
@@ -128,13 +128,13 @@ export function usePlugins(state, activeTab, plugins) {
128
128
  isLoading = pluginState.isLoading,
129
129
  error = pluginState.error;
130
130
 
131
- // This is needed for the Google Drive tab experiment to show a persistent banner across tabs. Will be removed once the experiment is over regardless of outcome.
131
+ // This is needed for the 3P tab experiments to show a persistent banner across tabs. Will be removed once the experiment is over regardless of outcome.
132
132
  var pluginBanner = useMemo(function () {
133
133
  var _plugins$find;
134
- return googleDriveTabExperimentEnabled ? plugins === null || plugins === void 0 || (_plugins$find = plugins.find(function (plugin) {
134
+ return thirdPartyTabExperimentEnabled ? plugins === null || plugins === void 0 || (_plugins$find = plugins.find(function (plugin) {
135
135
  return plugin.banner;
136
136
  })) === null || _plugins$find === void 0 ? void 0 : _plugins$find.banner : undefined;
137
- }, [plugins, googleDriveTabExperimentEnabled]);
137
+ }, [plugins, thirdPartyTabExperimentEnabled]);
138
138
  return {
139
139
  tabs: tabs,
140
140
  items: items,
@@ -128,10 +128,13 @@ export var LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(functi
128
128
  var intl = useIntl();
129
129
  var queryState = useSearchQuery(state);
130
130
 
131
- // 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.
131
+ // Experiment with new 3P tabs in link picker. For more info, please see: go/link-picker-3p-drive-one-pager.
132
132
  var linkPicker3pDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
133
133
  var googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
134
- var _usePlugins = usePlugins(queryState, activeTab, plugins, googleDriveTabExperimentEnabled),
134
+ var linkPicker3pOneDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_onedrive_experiment', 'cohort', 'control') : 'control';
135
+ var oneDriveTabExperimentEnabled = linkPicker3pOneDriveExperimentCohort === 'show_onedrive_tab';
136
+ var thirdPartyTabExperimentEnabled = googleDriveTabExperimentEnabled || oneDriveTabExperimentEnabled;
137
+ var _usePlugins = usePlugins(queryState, activeTab, plugins, thirdPartyTabExperimentEnabled),
135
138
  items = _usePlugins.items,
136
139
  isLoadingResults = _usePlugins.isLoading,
137
140
  isActivePlugin = _usePlugins.isActivePlugin,
@@ -469,7 +472,7 @@ export var LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(functi
469
472
  submitMessageId: submitMessageId,
470
473
  testId: testIds.insertButton,
471
474
  url: url
472
- })), googleDriveTabExperimentEnabled && pluginBanner && pluginBanner(), !!queryState && (isLoadingPlugins || isActivePlugin) && /*#__PURE__*/React.createElement(SearchResults, {
475
+ })), thirdPartyTabExperimentEnabled && pluginBanner && pluginBanner(), !!queryState && (isLoadingPlugins || isActivePlugin) && /*#__PURE__*/React.createElement(SearchResults, {
473
476
  activeTab: activeTab,
474
477
  tabs: tabs,
475
478
  activePlugin: activePlugin,
@@ -46,10 +46,13 @@ export var SearchResults = function SearchResults(_ref) {
46
46
  adaptiveHeight = _ref.adaptiveHeight,
47
47
  retry = _ref.retry;
48
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.
49
+ // Experiment with new 3P tabs in link picker. For more info, please see: go/link-picker-3p-drive-one-pager.
50
50
  var linkPicker3pDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_drive_experiment', 'cohort', 'control') : 'control';
51
51
  var googleDriveTabExperimentEnabled = linkPicker3pDriveExperimentCohort === 'show_google_drive_tab';
52
- var showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || googleDriveTabExperimentEnabled;
52
+ var linkPicker3pOneDriveExperimentCohort = FeatureGates.initializeCalled() ? FeatureGates.getExperimentValue('link_picker_3p_onedrive_experiment', 'cohort', 'control') : 'control';
53
+ var oneDriveTabExperimentEnabled = linkPicker3pOneDriveExperimentCohort === 'show_onedrive_tab';
54
+ var thirdPartyTabExperimentEnabled = googleDriveTabExperimentEnabled || oneDriveTabExperimentEnabled;
55
+ var showScrollingTabList = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.scrollingTabs) || thirdPartyTabExperimentEnabled;
53
56
  var tabList = /*#__PURE__*/React.createElement(TabList, null, tabs.map(function (tab) {
54
57
  return /*#__PURE__*/React.createElement(Tab, {
55
58
  key: tab.tabTitle,
@@ -1,6 +1,6 @@
1
1
 
2
2
  ._1bh4vqrj{scroll-padding:0 24px}
3
- ._rfx3yh40:before{border-radius:2px}._154i1b66{top:var(--ds-space-050,4px)}
3
+ ._rfx3lb4i:before{border-radius:var(--ds-radius-xsmall,2px)}._154i1b66{top:var(--ds-space-050,4px)}
4
4
  ._18q9glyw [role=tablist]:before{display:none}
5
5
  ._19woidpf:before{bottom:0}
6
6
  ._1cicglyw::-webkit-scrollbar{display:none}
@@ -140,7 +140,7 @@ export var ScrollingTabList = function ScrollingTabList(props) {
140
140
  }));
141
141
  }
142
142
  }, buttonProps))), /*#__PURE__*/React.createElement("div", {
143
- className: ax(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3yh40 _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1russudh _1cicglyw"]),
143
+ className: ax(["_1bh4vqrj _1reo1wug _1dm8q5uf _1fjgglyw _rfx3lb4i _pascidpf _eid3idpf _zr3eidpf _fntnidpf _1kt9b3bt _19woidpf _1cs8stnw _1mp41kw7 _qnecu2gc _oounu2gc _kfgtyh40 _1russudh _1cicglyw"]),
144
144
  style: {
145
145
  "--_lvpq93": ix("var(--ds-border, ".concat(N30, ")"))
146
146
  }
@@ -16,7 +16,7 @@ export var testIds = {
16
16
  };
17
17
  export var PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "3.11.2" || '',
19
+ packageVersion: "0.0.0-development" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -13,4 +13,4 @@ export interface LinkPickerPluginsService {
13
13
  pluginAction?: LinkPickerPluginAction;
14
14
  pluginBanner?: LinkPickerPluginBanner;
15
15
  }
16
- export declare function usePlugins(state: LinkPickerState | null, activeTab: number, plugins?: LinkPickerPlugin[], googleDriveTabExperimentEnabled?: boolean): LinkPickerPluginsService;
16
+ export declare function usePlugins(state: LinkPickerState | null, activeTab: number, plugins?: LinkPickerPlugin[], thirdPartyTabExperimentEnabled?: boolean): LinkPickerPluginsService;
@@ -13,4 +13,4 @@ export interface LinkPickerPluginsService {
13
13
  pluginAction?: LinkPickerPluginAction;
14
14
  pluginBanner?: LinkPickerPluginBanner;
15
15
  }
16
- export declare function usePlugins(state: LinkPickerState | null, activeTab: number, plugins?: LinkPickerPlugin[], googleDriveTabExperimentEnabled?: boolean): LinkPickerPluginsService;
16
+ export declare function usePlugins(state: LinkPickerState | null, activeTab: number, plugins?: LinkPickerPlugin[], thirdPartyTabExperimentEnabled?: boolean): LinkPickerPluginsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "3.11.3",
3
+ "version": "3.12.0",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -55,10 +55,10 @@
55
55
  "@atlaskit/button": "^23.4.0",
56
56
  "@atlaskit/css": "^0.14.0",
57
57
  "@atlaskit/feature-gate-js-client": "^5.5.0",
58
- "@atlaskit/form": "^14.0.0",
59
- "@atlaskit/frontend-utilities": "^3.1.0",
58
+ "@atlaskit/form": "^14.2.0",
59
+ "@atlaskit/frontend-utilities": "^3.2.0",
60
60
  "@atlaskit/heading": "^5.2.0",
61
- "@atlaskit/icon": "^28.2.0",
61
+ "@atlaskit/icon": "^28.3.0",
62
62
  "@atlaskit/intl-messages-provider": "^2.0.0",
63
63
  "@atlaskit/link": "^3.2.0",
64
64
  "@atlaskit/link-provider": "^4.0.0",
@@ -66,13 +66,13 @@
66
66
  "@atlaskit/onboarding": "^14.4.0",
67
67
  "@atlaskit/platform-feature-flags": "^1.1.0",
68
68
  "@atlaskit/primitives": "^14.15.0",
69
- "@atlaskit/smart-card": "^42.1.0",
69
+ "@atlaskit/smart-card": "^42.3.0",
70
70
  "@atlaskit/spinner": "^19.0.0",
71
- "@atlaskit/tabs": "^18.1.0",
71
+ "@atlaskit/tabs": "^18.2.0",
72
72
  "@atlaskit/textfield": "^8.0.0",
73
73
  "@atlaskit/theme": "^21.0.0",
74
- "@atlaskit/tokens": "^6.3.0",
75
- "@atlaskit/tooltip": "^20.4.0",
74
+ "@atlaskit/tokens": "^6.4.0",
75
+ "@atlaskit/tooltip": "^20.5.0",
76
76
  "@atlaskit/ufo": "^0.4.0",
77
77
  "@atlaskit/visually-hidden": "^3.0.0",
78
78
  "@babel/runtime": "^7.0.0",