@atlaskit/link-datasource 7.3.0 → 7.3.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.
Files changed (26) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/hooks/useDatasourceTableState.js +1 -4
  3. package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +1 -2
  4. package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.compiled.css +1 -2
  5. package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +2 -4
  6. package/dist/cjs/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +1 -2
  7. package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +1 -1
  8. package/dist/cjs/ui/issue-like-table/issue-like-data-table-view.js +1 -1
  9. package/dist/cjs/ui/jira-issues-modal/modal/index.js +1 -1
  10. package/dist/es2019/hooks/useDatasourceTableState.js +1 -3
  11. package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +1 -2
  12. package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.compiled.css +1 -2
  13. package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +2 -4
  14. package/dist/es2019/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +1 -2
  15. package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +1 -1
  16. package/dist/es2019/ui/issue-like-table/issue-like-data-table-view.js +1 -1
  17. package/dist/es2019/ui/jira-issues-modal/modal/index.js +1 -1
  18. package/dist/esm/hooks/useDatasourceTableState.js +1 -4
  19. package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +1 -2
  20. package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.compiled.css +1 -2
  21. package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +2 -4
  22. package/dist/esm/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +1 -2
  23. package/dist/esm/ui/datasource-table-view/datasourceTableView.js +1 -1
  24. package/dist/esm/ui/issue-like-table/issue-like-data-table-view.js +1 -1
  25. package/dist/esm/ui/jira-issues-modal/modal/index.js +1 -1
  26. package/package.json +1 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 7.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`de0d7314fd206`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/de0d7314fd206) -
8
+ Clean up feature gate `platform_lp_sllv_ux_improvements`. Smart Link list views retain table
9
+ headers and show empty results within the table, and view-mode dropdowns size to their content. No
10
+ public API changes.
11
+
3
12
  ## 7.3.0
4
13
 
5
14
  ### Minor Changes
@@ -13,7 +13,6 @@ var _react = require("react");
13
13
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
14
14
  var _isFedramp = require("@atlaskit/atlassian-context/is-fedramp");
15
15
  var _useDataSourceClientExtension = require("@atlaskit/link-client-extension/use-data-source-client-extension");
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  var _analytics = require("../analytics");
18
17
  var _state = require("../state");
19
18
  var _useDiscoverActions2 = require("../state/actions/useDiscoverActions");
@@ -239,7 +238,6 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
239
238
  entityType,
240
239
  newIds,
241
240
  aris,
242
- shouldApplySchemaWithoutItems,
243
241
  isUserLoadingNextPage,
244
242
  currentLoadedItemCount,
245
243
  newlyLoadedItemCount,
@@ -353,8 +351,7 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
353
351
 
354
352
  // A response with no items still describes its columns, so the schema is worth applying
355
353
  // to let the table keep its headers while showing the empty state.
356
- shouldApplySchemaWithoutItems = items.length === 0 && (0, _fg.fg)('platform_lp_sllv_ux_improvements');
357
- if ((isSchemaFromData && schema || fullSchema.properties.length > 0) && (items.length > 0 || shouldApplySchemaWithoutItems)) {
354
+ if (isSchemaFromData && schema || fullSchema.properties.length > 0) {
358
355
  applySchemaProperties(schema || fullSchema, fieldKeys);
359
356
  }
360
357
  isUserLoadingNextPage = responseItems.length !== 0 && !shouldRequestFirstPage;
@@ -11,7 +11,6 @@ require("./index.compiled.css");
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
- var _fg = require("@atlaskit/platform-feature-flags/fg");
15
14
  var _accessRequired = require("../../../common/error-state/access-required");
16
15
  var _modalLoadingError = require("../../../common/error-state/modal-loading-error");
17
16
  var _noResults = require("../../../common/error-state/no-results");
@@ -67,7 +66,7 @@ var RenderAssetsContent = exports.RenderAssetsContent = function RenderAssetsCon
67
66
  var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
68
67
  // With columns available the table can keep its headers and show the empty state in place of
69
68
  // the rows, instead of replacing the whole table with it.
70
- var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && (0, _fg.fg)('platform_lp_sllv_ux_improvements');
69
+ var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
71
70
  var issueLikeDataTableView = (0, _react.useMemo)(function () {
72
71
  return /*#__PURE__*/React.createElement("div", {
73
72
  className: (0, _runtime.ax)(["_1reo1wug _18m91wug _4t3i1pna _1e0c11p5", "_19itia51 _n7zl1mpn _13li1mok _qrwq1mok _1itkz1kv _12vemgnk _1lrw1sd4 _qmxj1c00"])
@@ -1,2 +1 @@
1
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bsb1pna{width:420px}
2
- ._4t3i7iqz{height:87pt}
1
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bsb1pna{width:420px}
@@ -17,13 +17,11 @@ var _dropdownMenu = _interopRequireDefault(require("@atlaskit/dropdown-menu/drop
17
17
  var _dropdownMenuItem = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu-item"));
18
18
  var _dropdownMenuItemGroup = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu-item-group"));
19
19
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
20
- var _fg = require("@atlaskit/platform-feature-flags/fg");
21
20
  var _compiled = require("@atlaskit/primitives/compiled");
22
21
  var _messages = require("./messages");
23
22
  var _excluded = ["triggerRef"];
24
23
  var styles = {
25
- dropDownItemGroupStyles: "_2rko12b0 _1bsb1pna _4t3i7iqz",
26
- dropDownItemGroupStylesWithoutFixedHeight: "_2rko12b0 _1bsb1pna"
24
+ dropDownItemGroupStyles: "_2rko12b0 _1bsb1pna"
27
25
  };
28
26
  var InlineIcon = /*#__PURE__*/_react.default.createElement("svg", {
29
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -73,7 +71,7 @@ var DisplayViewDropDown = exports.DisplayViewDropDown = function DisplayViewDrop
73
71
  },
74
72
  testId: "datasource-modal--view-drop-down"
75
73
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
76
- xcss: (0, _fg.fg)('platform_lp_sllv_ux_improvements') ? styles.dropDownItemGroupStylesWithoutFixedHeight : styles.dropDownItemGroupStyles
74
+ xcss: styles.dropDownItemGroupStyles
77
75
  }, /*#__PURE__*/_react.default.createElement(_dropdownMenuItemGroup.default, null, /*#__PURE__*/_react.default.createElement(_dropdownMenuItem.default, {
78
76
  testId: "dropdown-item-table",
79
77
  onClick: function onClick() {
@@ -21,7 +21,6 @@ var _modalBody = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-bo
21
21
  var _modalFooter = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-footer"));
22
22
  var _modalHeader = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-header"));
23
23
  var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
24
- var _fg = require("@atlaskit/platform-feature-flags/fg");
25
24
  var _compiled = require("@atlaskit/primitives/compiled");
26
25
  var _analytics = require("../../../analytics");
27
26
  var _types = require("../../../analytics/types");
@@ -161,7 +160,7 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
161
160
  var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
162
161
  // With columns available the table can keep its headers and show the empty state in place of
163
162
  // the rows, instead of replacing the whole table with it.
164
- var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && (0, _fg.fg)('platform_lp_sllv_ux_improvements');
163
+ var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
165
164
  var hasConfluenceSearchParams = selectedConfluenceSite && (parameters === null || parameters === void 0 ? void 0 : parameters.searchString);
166
165
  var selectedConfluenceSiteUrl = selectedConfluenceSite === null || selectedConfluenceSite === void 0 ? void 0 : selectedConfluenceSite.url;
167
166
  var confluenceSearchUrl = (0, _react.useMemo)(function () {
@@ -193,7 +193,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
193
193
  var isResolvedWithNoResults = status === 'resolved' && !responseItems.length;
194
194
  // With columns available the table can keep its headers and footer and show the empty state
195
195
  // in place of the rows, instead of replacing the whole view with it.
196
- var shouldRenderTableWithNoResults = isResolvedWithNoResults && hasColumns && (0, _fg.fg)('platform_lp_sllv_ux_improvements');
196
+ var shouldRenderTableWithNoResults = isResolvedWithNoResults && hasColumns;
197
197
  if (isResolvedWithNoResults && !shouldRenderTableWithNoResults || status === 'forbidden') {
198
198
  return /*#__PURE__*/React.createElement(_noResults.NoResults, null);
199
199
  }
@@ -395,7 +395,7 @@ var IssueLikeDataTableView = exports.IssueLikeDataTableView = function IssueLike
395
395
 
396
396
  // A resolved response with no items still carries column metadata, so the table can keep its
397
397
  // headers and render the empty state where the rows would normally be.
398
- var hasNoResults = status === 'resolved' && !hasData && (0, _fg.fg)('platform_lp_sllv_ux_improvements');
398
+ var hasNoResults = status === 'resolved' && !hasData;
399
399
  var _useState7 = (0, _react.useState)(),
400
400
  _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
401
401
  noResultsWidth = _useState8[0],
@@ -149,7 +149,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
149
149
  var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
150
150
  // With columns available the table can keep its headers and show the empty state in place of
151
151
  // the rows, instead of replacing the whole table with it.
152
- var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && (0, _fg.fg)('platform_lp_sllv_ux_improvements');
152
+ var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
153
153
  var jqlUrlUnwrapped = selectedJiraSite && jql && "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURI(jql));
154
154
  var jqlUrl = jqlUrlUnwrapped && (0, _fg.fg)('electric_issue_like_table_xpc_url_wrapping') ? wrapCrossProductUrl(jqlUrlUnwrapped) : jqlUrlUnwrapped;
155
155
  var shouldShowIssueCount = !!totalCount && totalCount !== 1 && currentViewMode === 'table';
@@ -2,7 +2,6 @@ import { useCallback, useEffect, useRef, useState } from 'react';
2
2
  import isEqual from 'lodash/isEqual';
3
3
  import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
4
4
  import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension/use-data-source-client-extension';
5
- import { fg } from '@atlaskit/platform-feature-flags/fg';
6
5
  import { useDatasourceAnalyticsEvents } from '../analytics';
7
6
  import { useDatasourceActions } from '../state';
8
7
  import { useDiscoverActions } from '../state/actions/useDiscoverActions';
@@ -234,8 +233,7 @@ export const useDatasourceTableState = ({
234
233
 
235
234
  // A response with no items still describes its columns, so the schema is worth applying
236
235
  // to let the table keep its headers while showing the empty state.
237
- const shouldApplySchemaWithoutItems = items.length === 0 && fg('platform_lp_sllv_ux_improvements');
238
- if ((isSchemaFromData && schema || fullSchema.properties.length > 0) && (items.length > 0 || shouldApplySchemaWithoutItems)) {
236
+ if (isSchemaFromData && schema || fullSchema.properties.length > 0) {
239
237
  applySchemaProperties(schema || fullSchema, fieldKeys);
240
238
  }
241
239
  const isUserLoadingNextPage = responseItems.length !== 0 && !shouldRequestFirstPage;
@@ -3,7 +3,6 @@ import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useMemo } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags/fg';
7
6
  import { AccessRequired } from '../../../common/error-state/access-required';
8
7
  import { ModalLoadingError } from '../../../common/error-state/modal-loading-error';
9
8
  import { NoResults } from '../../../common/error-state/no-results';
@@ -50,7 +49,7 @@ export const RenderAssetsContent = props => {
50
49
  const resolvedWithNoResults = status === 'resolved' && !responseItems.length;
51
50
  // With columns available the table can keep its headers and show the empty state in place of
52
51
  // the rows, instead of replacing the whole table with it.
53
- const shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && fg('platform_lp_sllv_ux_improvements');
52
+ const shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
54
53
  const issueLikeDataTableView = useMemo(() => /*#__PURE__*/React.createElement("div", {
55
54
  className: ax(["_1reo1wug _18m91wug _4t3i1pna _1e0c11p5", "_19itia51 _n7zl1mpn _13li1mok _qrwq1mok _1itkz1kv _12vemgnk _1lrw1sd4 _qmxj1c00"])
56
55
  }, /*#__PURE__*/React.createElement(IssueLikeDataTableView, {
@@ -1,2 +1 @@
1
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bsb1pna{width:420px}
2
- ._4t3i7iqz{height:87pt}
1
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bsb1pna{width:420px}
@@ -9,12 +9,10 @@ import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
9
9
  import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
10
10
  import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
11
11
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
12
- import { fg } from '@atlaskit/platform-feature-flags/fg';
13
12
  import { Box } from '@atlaskit/primitives/compiled';
14
13
  import { displayViewDropDownMessages } from './messages';
15
14
  const styles = {
16
- dropDownItemGroupStyles: "_2rko12b0 _1bsb1pna _4t3i7iqz",
17
- dropDownItemGroupStylesWithoutFixedHeight: "_2rko12b0 _1bsb1pna"
15
+ dropDownItemGroupStyles: "_2rko12b0 _1bsb1pna"
18
16
  };
19
17
  const InlineIcon = /*#__PURE__*/React.createElement("svg", {
20
18
  xmlns: "http://www.w3.org/2000/svg",
@@ -63,7 +61,7 @@ export const DisplayViewDropDown = ({
63
61
  }), triggerText),
64
62
  testId: "datasource-modal--view-drop-down"
65
63
  }, /*#__PURE__*/React.createElement(Box, {
66
- xcss: fg('platform_lp_sllv_ux_improvements') ? styles.dropDownItemGroupStylesWithoutFixedHeight : styles.dropDownItemGroupStyles
64
+ xcss: styles.dropDownItemGroupStyles
67
65
  }, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
68
66
  testId: "dropdown-item-table",
69
67
  onClick: () => onViewModeChange('table'),
@@ -12,7 +12,6 @@ import ModalBody from '@atlaskit/modal-dialog/modal-body';
12
12
  import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
13
13
  import ModalHeader from '@atlaskit/modal-dialog/modal-header';
14
14
  import ModalTitle from '@atlaskit/modal-dialog/modal-title';
15
- import { fg } from '@atlaskit/platform-feature-flags/fg';
16
15
  import { Box, Flex } from '@atlaskit/primitives/compiled';
17
16
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
18
17
  import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
@@ -157,7 +156,7 @@ export const PlainConfluenceSearchConfigModal = props => {
157
156
  const resolvedWithNoResults = status === 'resolved' && !responseItems.length;
158
157
  // With columns available the table can keep its headers and show the empty state in place of
159
158
  // the rows, instead of replacing the whole table with it.
160
- const shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && fg('platform_lp_sllv_ux_improvements');
159
+ const shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
161
160
  const hasConfluenceSearchParams = selectedConfluenceSite && (parameters === null || parameters === void 0 ? void 0 : parameters.searchString);
162
161
  const selectedConfluenceSiteUrl = selectedConfluenceSite === null || selectedConfluenceSite === void 0 ? void 0 : selectedConfluenceSite.url;
163
162
  const confluenceSearchUrl = useMemo(() => {
@@ -178,7 +178,7 @@ const DatasourceTableViewWithoutAnalytics = ({
178
178
  const isResolvedWithNoResults = status === 'resolved' && !responseItems.length;
179
179
  // With columns available the table can keep its headers and footer and show the empty state
180
180
  // in place of the rows, instead of replacing the whole view with it.
181
- const shouldRenderTableWithNoResults = isResolvedWithNoResults && hasColumns && fg('platform_lp_sllv_ux_improvements');
181
+ const shouldRenderTableWithNoResults = isResolvedWithNoResults && hasColumns;
182
182
  if (isResolvedWithNoResults && !shouldRenderTableWithNoResults || status === 'forbidden') {
183
183
  return /*#__PURE__*/React.createElement(NoResults, null);
184
184
  }
@@ -344,7 +344,7 @@ export const IssueLikeDataTableView = ({
344
344
 
345
345
  // A resolved response with no items still carries column metadata, so the table can keep its
346
346
  // headers and render the empty state where the rows would normally be.
347
- const hasNoResults = status === 'resolved' && !hasData && fg('platform_lp_sllv_ux_improvements');
347
+ const hasNoResults = status === 'resolved' && !hasData;
348
348
  const [noResultsWidth, setNoResultsWidth] = useState();
349
349
  useEffect(() => {
350
350
  const container = containerRef.current;
@@ -133,7 +133,7 @@ const PlainJiraIssuesConfigModal = props => {
133
133
  const resolvedWithNoResults = status === 'resolved' && !responseItems.length;
134
134
  // With columns available the table can keep its headers and show the empty state in place of
135
135
  // the rows, instead of replacing the whole table with it.
136
- const shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && fg('platform_lp_sllv_ux_improvements');
136
+ const shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
137
137
  const jqlUrlUnwrapped = selectedJiraSite && jql && `${selectedJiraSite.url}/issues/?jql=${encodeURI(jql)}`;
138
138
  const jqlUrl = jqlUrlUnwrapped && fg('electric_issue_like_table_xpc_url_wrapping') ? wrapCrossProductUrl(jqlUrlUnwrapped) : jqlUrlUnwrapped;
139
139
  const shouldShowIssueCount = !!totalCount && totalCount !== 1 && currentViewMode === 'table';
@@ -6,7 +6,6 @@ import { useCallback, useEffect, useRef, useState } from 'react';
6
6
  import isEqual from 'lodash/isEqual';
7
7
  import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
8
8
  import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension/use-data-source-client-extension';
9
- import { fg } from '@atlaskit/platform-feature-flags/fg';
10
9
  import { useDatasourceAnalyticsEvents } from '../analytics';
11
10
  import { useDatasourceActions } from '../state';
12
11
  import { useDiscoverActions } from '../state/actions/useDiscoverActions';
@@ -232,7 +231,6 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
232
231
  entityType,
233
232
  newIds,
234
233
  aris,
235
- shouldApplySchemaWithoutItems,
236
234
  isUserLoadingNextPage,
237
235
  currentLoadedItemCount,
238
236
  newlyLoadedItemCount,
@@ -346,8 +344,7 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
346
344
 
347
345
  // A response with no items still describes its columns, so the schema is worth applying
348
346
  // to let the table keep its headers while showing the empty state.
349
- shouldApplySchemaWithoutItems = items.length === 0 && fg('platform_lp_sllv_ux_improvements');
350
- if ((isSchemaFromData && schema || fullSchema.properties.length > 0) && (items.length > 0 || shouldApplySchemaWithoutItems)) {
347
+ if (isSchemaFromData && schema || fullSchema.properties.length > 0) {
351
348
  applySchemaProperties(schema || fullSchema, fieldKeys);
352
349
  }
353
350
  isUserLoadingNextPage = responseItems.length !== 0 && !shouldRequestFirstPage;
@@ -3,7 +3,6 @@ import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useMemo } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags/fg';
7
6
  import { AccessRequired } from '../../../common/error-state/access-required';
8
7
  import { ModalLoadingError } from '../../../common/error-state/modal-loading-error';
9
8
  import { NoResults } from '../../../common/error-state/no-results';
@@ -58,7 +57,7 @@ export var RenderAssetsContent = function RenderAssetsContent(props) {
58
57
  var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
59
58
  // With columns available the table can keep its headers and show the empty state in place of
60
59
  // the rows, instead of replacing the whole table with it.
61
- var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && fg('platform_lp_sllv_ux_improvements');
60
+ var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
62
61
  var issueLikeDataTableView = useMemo(function () {
63
62
  return /*#__PURE__*/React.createElement("div", {
64
63
  className: ax(["_1reo1wug _18m91wug _4t3i1pna _1e0c11p5", "_19itia51 _n7zl1mpn _13li1mok _qrwq1mok _1itkz1kv _12vemgnk _1lrw1sd4 _qmxj1c00"])
@@ -1,2 +1 @@
1
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bsb1pna{width:420px}
2
- ._4t3i7iqz{height:87pt}
1
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bsb1pna{width:420px}
@@ -11,12 +11,10 @@ import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
11
11
  import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
12
12
  import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
13
13
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
14
- import { fg } from '@atlaskit/platform-feature-flags/fg';
15
14
  import { Box } from '@atlaskit/primitives/compiled';
16
15
  import { displayViewDropDownMessages } from './messages';
17
16
  var styles = {
18
- dropDownItemGroupStyles: "_2rko12b0 _1bsb1pna _4t3i7iqz",
19
- dropDownItemGroupStylesWithoutFixedHeight: "_2rko12b0 _1bsb1pna"
17
+ dropDownItemGroupStyles: "_2rko12b0 _1bsb1pna"
20
18
  };
21
19
  var InlineIcon = /*#__PURE__*/React.createElement("svg", {
22
20
  xmlns: "http://www.w3.org/2000/svg",
@@ -66,7 +64,7 @@ export var DisplayViewDropDown = function DisplayViewDropDown(_ref) {
66
64
  },
67
65
  testId: "datasource-modal--view-drop-down"
68
66
  }, /*#__PURE__*/React.createElement(Box, {
69
- xcss: fg('platform_lp_sllv_ux_improvements') ? styles.dropDownItemGroupStylesWithoutFixedHeight : styles.dropDownItemGroupStyles
67
+ xcss: styles.dropDownItemGroupStyles
70
68
  }, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
71
69
  testId: "dropdown-item-table",
72
70
  onClick: function onClick() {
@@ -15,7 +15,6 @@ import ModalBody from '@atlaskit/modal-dialog/modal-body';
15
15
  import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
16
16
  import ModalHeader from '@atlaskit/modal-dialog/modal-header';
17
17
  import ModalTitle from '@atlaskit/modal-dialog/modal-title';
18
- import { fg } from '@atlaskit/platform-feature-flags/fg';
19
18
  import { Box, Flex } from '@atlaskit/primitives/compiled';
20
19
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
21
20
  import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
@@ -152,7 +151,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
152
151
  var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
153
152
  // With columns available the table can keep its headers and show the empty state in place of
154
153
  // the rows, instead of replacing the whole table with it.
155
- var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && fg('platform_lp_sllv_ux_improvements');
154
+ var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
156
155
  var hasConfluenceSearchParams = selectedConfluenceSite && (parameters === null || parameters === void 0 ? void 0 : parameters.searchString);
157
156
  var selectedConfluenceSiteUrl = selectedConfluenceSite === null || selectedConfluenceSite === void 0 ? void 0 : selectedConfluenceSite.url;
158
157
  var confluenceSearchUrl = useMemo(function () {
@@ -184,7 +184,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
184
184
  var isResolvedWithNoResults = status === 'resolved' && !responseItems.length;
185
185
  // With columns available the table can keep its headers and footer and show the empty state
186
186
  // in place of the rows, instead of replacing the whole view with it.
187
- var shouldRenderTableWithNoResults = isResolvedWithNoResults && hasColumns && fg('platform_lp_sllv_ux_improvements');
187
+ var shouldRenderTableWithNoResults = isResolvedWithNoResults && hasColumns;
188
188
  if (isResolvedWithNoResults && !shouldRenderTableWithNoResults || status === 'forbidden') {
189
189
  return /*#__PURE__*/React.createElement(NoResults, null);
190
190
  }
@@ -388,7 +388,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref7) {
388
388
 
389
389
  // A resolved response with no items still carries column metadata, so the table can keep its
390
390
  // headers and render the empty state where the rows would normally be.
391
- var hasNoResults = status === 'resolved' && !hasData && fg('platform_lp_sllv_ux_improvements');
391
+ var hasNoResults = status === 'resolved' && !hasData;
392
392
  var _useState7 = useState(),
393
393
  _useState8 = _slicedToArray(_useState7, 2),
394
394
  noResultsWidth = _useState8[0],
@@ -142,7 +142,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
142
142
  var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
143
143
  // With columns available the table can keep its headers and show the empty state in place of
144
144
  // the rows, instead of replacing the whole table with it.
145
- var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && fg('platform_lp_sllv_ux_improvements');
145
+ var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length;
146
146
  var jqlUrlUnwrapped = selectedJiraSite && jql && "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURI(jql));
147
147
  var jqlUrl = jqlUrlUnwrapped && fg('electric_issue_like_table_xpc_url_wrapping') ? wrapCrossProductUrl(jqlUrlUnwrapped) : jqlUrlUnwrapped;
148
148
  var shouldShowIssueCount = !!totalCount && totalCount !== 1 && currentViewMode === 'table';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "7.3.0",
3
+ "version": "7.3.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -168,9 +168,6 @@
168
168
  "linking_platform_link_datasource_unit_compliant": {
169
169
  "type": "boolean"
170
170
  },
171
- "platform_lp_sllv_ux_improvements": {
172
- "type": "boolean"
173
- },
174
171
  "platform_lp_sllv_preserve_assets_columns": {
175
172
  "type": "boolean"
176
173
  },