@atlaskit/link-datasource 4.31.0 → 4.32.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,24 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.32.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1d8c8a19192b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1d8c8a19192b2) -
8
+ [ux] For Jira inlne editing dropdown (status, assignee) are now show over the edge of scrallable
9
+ table. Behind FG platform_navx_sllv_j2ws_dropdown_for_single_row
10
+
11
+ ## 4.32.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
16
+ Removed usages of LEGACY icon props
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 4.31.0
4
23
 
5
24
  ### Minor Changes
@@ -16,8 +16,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
16
16
  var _reactIntlNext = require("react-intl-next");
17
17
  var _new = require("@atlaskit/button/new");
18
18
  var _form = require("@atlaskit/form");
19
- var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle"));
20
- var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
19
+ var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
20
+ var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
21
21
  var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
22
22
  var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
23
23
  var _compiled = require("@atlaskit/primitives/compiled");
@@ -251,10 +251,8 @@ var DateRangePicker = exports.DateRangePicker = function DateRangePicker(_ref6)
251
251
  }
252
252
  }
253
253
  })), invalidDateRange && /*#__PURE__*/_react.default.createElement(DateRangeErrorMessage, null, /*#__PURE__*/_react.default.createElement(_statusError.default, {
254
- LEGACY_size: "small",
255
254
  color: "var(--ds-icon-danger, ".concat(_colors.R400, ")"),
256
255
  label: formatMessage(_messages.dateRangeMessages.dateRangeError),
257
- LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)"),
258
256
  size: "small"
259
257
  }), invalidDateRange), /*#__PURE__*/_react.default.createElement(SelectDateRangeButton, {
260
258
  "data-testId": "custom-date-range-update-button",
@@ -48,6 +48,7 @@ var IconEditType = function IconEditType(props) {
48
48
  return /*#__PURE__*/_react.default.createElement(_layering.Layering, {
49
49
  isDisabled: false
50
50
  }, /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, (0, _utils.getCleanedSelectProps)(props), {
51
+ menuPortalTarget: (0, _platformFeatureFlags.fg)('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
51
52
  autoFocus: true,
52
53
  blurInputOnSelect: true,
53
54
  defaultMenuIsOpen: true
@@ -48,6 +48,7 @@ var StatusEditType = function StatusEditType(props) {
48
48
  return /*#__PURE__*/_react.default.createElement(_layering.Layering, {
49
49
  isDisabled: false
50
50
  }, /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, (0, _utils.getCleanedSelectProps)(props), {
51
+ menuPortalTarget: (0, _platformFeatureFlags.fg)('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
51
52
  autoFocus: true,
52
53
  options: options,
53
54
  defaultMenuIsOpen: true,
@@ -78,6 +78,7 @@ var UserEditType = function UserEditType(props) {
78
78
  return /*#__PURE__*/_react.default.createElement(_layering.Layering, {
79
79
  isDisabled: false
80
80
  }, /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, (0, _utils.getCleanedSelectProps)(props), {
81
+ menuPortalTarget: (0, _platformFeatureFlags.fg)('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
81
82
  autoFocus: true,
82
83
  defaultMenuIsOpen: true,
83
84
  blurInputOnSelect: true,
@@ -8,8 +8,8 @@ import { Fragment } from 'react';
8
8
  import { useIntl } from 'react-intl-next';
9
9
  import { IconButton } from '@atlaskit/button/new';
10
10
  import { ErrorMessage, Field } from '@atlaskit/form';
11
- import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
12
- import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
11
+ import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
12
+ import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
13
13
  import SearchIcon from '@atlaskit/icon/core/search';
14
14
  import CheckCircleIcon from '@atlaskit/icon/core/status-success';
15
15
  import { Box } from '@atlaskit/primitives/compiled';
@@ -217,10 +217,8 @@ export const DateRangePicker = ({
217
217
  }
218
218
  }
219
219
  })), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
220
- LEGACY_size: "small",
221
220
  color: `var(--ds-icon-danger, ${R400})`,
222
221
  label: formatMessage(dateRangeMessages.dateRangeError),
223
- LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"}`,
224
222
  size: "small"
225
223
  }), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
226
224
  "data-testId": "custom-date-range-update-button",
@@ -42,6 +42,7 @@ const IconEditType = props => {
42
42
  return /*#__PURE__*/React.createElement(Layering, {
43
43
  isDisabled: false
44
44
  }, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
45
+ menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
45
46
  autoFocus: true,
46
47
  blurInputOnSelect: true,
47
48
  defaultMenuIsOpen: true
@@ -42,6 +42,7 @@ const StatusEditType = props => {
42
42
  return /*#__PURE__*/React.createElement(Layering, {
43
43
  isDisabled: false
44
44
  }, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
45
+ menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
45
46
  autoFocus: true,
46
47
  options: options,
47
48
  defaultMenuIsOpen: true,
@@ -63,6 +63,7 @@ const UserEditType = props => {
63
63
  return /*#__PURE__*/React.createElement(Layering, {
64
64
  isDisabled: false
65
65
  }, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
66
+ menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
66
67
  autoFocus: true,
67
68
  defaultMenuIsOpen: true,
68
69
  blurInputOnSelect: true,
@@ -10,8 +10,8 @@ import { Fragment } from 'react';
10
10
  import { useIntl } from 'react-intl-next';
11
11
  import { IconButton } from '@atlaskit/button/new';
12
12
  import { ErrorMessage, Field } from '@atlaskit/form';
13
- import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
14
- import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
13
+ import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
14
+ import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
15
15
  import SearchIcon from '@atlaskit/icon/core/search';
16
16
  import CheckCircleIcon from '@atlaskit/icon/core/status-success';
17
17
  import { Box } from '@atlaskit/primitives/compiled';
@@ -244,10 +244,8 @@ export var DateRangePicker = function DateRangePicker(_ref6) {
244
244
  }
245
245
  }
246
246
  })), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
247
- LEGACY_size: "small",
248
247
  color: "var(--ds-icon-danger, ".concat(R400, ")"),
249
248
  label: formatMessage(dateRangeMessages.dateRangeError),
250
- LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)"),
251
249
  size: "small"
252
250
  }), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
253
251
  "data-testId": "custom-date-range-update-button",
@@ -39,6 +39,7 @@ var IconEditType = function IconEditType(props) {
39
39
  return /*#__PURE__*/React.createElement(Layering, {
40
40
  isDisabled: false
41
41
  }, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
42
+ menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
42
43
  autoFocus: true,
43
44
  blurInputOnSelect: true,
44
45
  defaultMenuIsOpen: true
@@ -39,6 +39,7 @@ var StatusEditType = function StatusEditType(props) {
39
39
  return /*#__PURE__*/React.createElement(Layering, {
40
40
  isDisabled: false
41
41
  }, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
42
+ menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
42
43
  autoFocus: true,
43
44
  options: options,
44
45
  defaultMenuIsOpen: true,
@@ -69,6 +69,7 @@ var UserEditType = function UserEditType(props) {
69
69
  return /*#__PURE__*/React.createElement(Layering, {
70
70
  isDisabled: false
71
71
  }, /*#__PURE__*/React.createElement(Select, _extends({}, getCleanedSelectProps(props), {
72
+ menuPortalTarget: fg('platform_navx_sllv_j2ws_dropdown_for_single_row') ? document.body : undefined,
72
73
  autoFocus: true,
73
74
  defaultMenuIsOpen: true,
74
75
  blurInputOnSelect: true,
@@ -73,7 +73,7 @@ export interface IssueLikeDataTableViewProps {
73
73
  renderItem?: TableViewPropsRenderType;
74
74
  /**
75
75
  * If this number is set it will restrict (max-height) maximum size of the component AND make main container a scrollable container.
76
- * It this number is undefined it will not restrict height and not make container scrollable.
76
+ * It this number is 0 it will not restrict height and not make container scrollable.
77
77
  */
78
78
  scrollableContainerHeight?: number;
79
79
  status: DatasourceTableStatusType;
@@ -73,7 +73,7 @@ export interface IssueLikeDataTableViewProps {
73
73
  renderItem?: TableViewPropsRenderType;
74
74
  /**
75
75
  * If this number is set it will restrict (max-height) maximum size of the component AND make main container a scrollable container.
76
- * It this number is undefined it will not restrict height and not make container scrollable.
76
+ * It this number is 0 it will not restrict height and not make container scrollable.
77
77
  */
78
78
  scrollableContainerHeight?: number;
79
79
  status: DatasourceTableStatusType;
@@ -23,16 +23,12 @@ import { useCommonTableProps } from './useCommonTableProps';
23
23
  type Props = {
24
24
  canControlWrapping?: boolean;
25
25
  canResizeColumns?: boolean;
26
+ cloudId?: string;
26
27
  forceLoading?: boolean;
27
28
  isReadonly?: boolean;
28
- /**
29
- * Use infinity for an infinite delay (promise never resolves or rejects)
30
- * Default is 600ms
31
- */
32
- mockExecutionDelay?: number;
33
29
  skipIntl?: boolean;
34
30
  visibleColumnKeys?: string[];
35
- };
31
+ } & Parameters<typeof mockDatasourceFetchRequests>[0];
36
32
 
37
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
38
34
  const TableViewWrapper = styled.div({
@@ -50,13 +46,14 @@ const ExampleBody = ({
50
46
  forceLoading = false,
51
47
  visibleColumnKeys: overrideVisibleColumnKeys,
52
48
  mockExecutionDelay = 600,
49
+ cloudId,
53
50
  }: Props) => {
54
51
  const parameters = useMemo<JiraIssueDatasourceParameters>(
55
52
  () => ({
56
- cloudId: 'some-cloud-id',
53
+ cloudId: cloudId ?? 'some-cloud-id',
57
54
  jql: 'some-jql',
58
55
  }),
59
- [],
56
+ [cloudId],
60
57
  );
61
58
 
62
59
  useEffect(() => {
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+
3
+ import { cssMap, cx } from '@atlaskit/css';
4
+ import { Box } from '@atlaskit/primitives/compiled';
5
+ import { token } from '@atlaskit/tokens';
6
+
7
+ const styles = cssMap({
8
+ tableWrapper: {
9
+ marginInline: 'auto',
10
+ marginTop: token('space.200'),
11
+ width: '90%',
12
+ borderRadius: token('radius.large'),
13
+ borderWidth: token('border.width'),
14
+ borderStyle: 'solid',
15
+ borderColor: token('color.border'),
16
+ },
17
+ hasOverflow: {
18
+ overflow: 'hidden',
19
+ },
20
+ });
21
+
22
+ export const FakeModalDialogContainer = ({ children, hasOverflow = true }: { children: React.ReactNode, hasOverflow?: boolean }): React.JSX.Element => {
23
+ return (
24
+ <Box xcss={cx(styles.tableWrapper, hasOverflow && styles.hasOverflow)}>
25
+ {children}
26
+ </Box>
27
+ );
28
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "4.31.0",
3
+ "version": "4.32.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.7.0",
41
41
  "@atlaskit/analytics-next": "^11.1.0",
42
42
  "@atlaskit/atlassian-context": "^0.6.0",
43
- "@atlaskit/avatar": "^25.6.0",
43
+ "@atlaskit/avatar": "^25.7.0",
44
44
  "@atlaskit/avatar-group": "^12.4.0",
45
45
  "@atlaskit/badge": "^18.3.0",
46
46
  "@atlaskit/button": "^23.9.0",
@@ -50,16 +50,16 @@
50
50
  "@atlaskit/editor-prosemirror": "^7.2.0",
51
51
  "@atlaskit/empty-state": "^10.1.0",
52
52
  "@atlaskit/feature-gate-js-client": "^5.5.0",
53
- "@atlaskit/flag": "^17.7.0",
54
- "@atlaskit/form": "^15.2.0",
53
+ "@atlaskit/flag": "^17.8.0",
54
+ "@atlaskit/form": "^15.3.0",
55
55
  "@atlaskit/heading": "^5.2.0",
56
- "@atlaskit/icon": "^29.3.0",
56
+ "@atlaskit/icon": "^29.4.0",
57
57
  "@atlaskit/icon-object": "^7.4.0",
58
58
  "@atlaskit/image": "^3.0.0",
59
- "@atlaskit/inline-edit": "^15.5.0",
59
+ "@atlaskit/inline-edit": "^15.6.0",
60
60
  "@atlaskit/intl-messages-provider": "^2.0.0",
61
61
  "@atlaskit/jql-ast": "^3.3.0",
62
- "@atlaskit/jql-editor": "^5.11.0",
62
+ "@atlaskit/jql-editor": "^5.12.0",
63
63
  "@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
64
64
  "@atlaskit/layering": "^3.6.0",
65
65
  "@atlaskit/link": "^3.3.0",
@@ -72,22 +72,22 @@
72
72
  "@atlaskit/modal-dialog": "^14.9.0",
73
73
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
74
74
  "@atlaskit/platform-feature-flags": "^1.1.0",
75
- "@atlaskit/popup": "^4.12.0",
75
+ "@atlaskit/popup": "^4.13.0",
76
76
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
77
77
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
78
78
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
79
79
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
80
80
  "@atlaskit/primitives": "^17.0.0",
81
- "@atlaskit/react-select": "^3.12.0",
81
+ "@atlaskit/react-select": "^3.13.0",
82
82
  "@atlaskit/select": "^21.6.0",
83
- "@atlaskit/smart-card": "^43.19.0",
84
- "@atlaskit/smart-user-picker": "^8.6.0",
83
+ "@atlaskit/smart-card": "^43.20.0",
84
+ "@atlaskit/smart-user-picker": "^8.8.0",
85
85
  "@atlaskit/spinner": "^19.0.0",
86
86
  "@atlaskit/tag": "^14.2.0",
87
87
  "@atlaskit/textfield": "^8.2.0",
88
88
  "@atlaskit/theme": "^21.0.0",
89
89
  "@atlaskit/tokens": "^9.1.0",
90
- "@atlaskit/tooltip": "^20.11.0",
90
+ "@atlaskit/tooltip": "^20.12.0",
91
91
  "@atlaskit/ufo": "^0.4.0",
92
92
  "@atlaskit/width-detector": "^5.0.0",
93
93
  "@babel/runtime": "^7.0.0",
@@ -186,6 +186,9 @@
186
186
  },
187
187
  "lp_disable_datasource_table_max_height_restriction": {
188
188
  "type": "boolean"
189
+ },
190
+ "platform_navx_sllv_j2ws_dropdown_for_single_row": {
191
+ "type": "boolean"
189
192
  }
190
193
  },
191
194
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/9c893299-a527-4457-9b46-f3bc4c828766"