@atlaskit/link-datasource 4.17.0 → 4.18.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,23 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.18.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#193643](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193643)
14
+ [`00d60de0c16f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00d60de0c16f2) -
15
+ [ux] Adding support to use the linking platform component to display jira issues in SAIN
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 4.17.0
4
22
 
5
23
  ### Minor Changes
@@ -13,6 +13,7 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _analyticsNext = require("@atlaskit/analytics-next");
15
15
  var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
17
  var _analytics = require("../../analytics");
17
18
  var _constants = require("../../analytics/constants");
18
19
  var _ufoExperiences = require("../../analytics/ufoExperiences");
@@ -33,7 +34,7 @@ var _emptyState = _interopRequireDefault(require("../issue-like-table/empty-stat
33
34
  var _tableFooter = require("../table-footer");
34
35
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
35
36
  var containerStyles = null;
36
- var ScrollableContainerHeight = 590;
37
+ var DefaultScrollableContainerHeight = 590;
37
38
  var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAnalytics(_ref) {
38
39
  var datasourceId = _ref.datasourceId,
39
40
  parameters = _ref.parameters,
@@ -43,7 +44,9 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
43
44
  columnCustomSizes = _ref.columnCustomSizes,
44
45
  onColumnResize = _ref.onColumnResize,
45
46
  wrappedColumnKeys = _ref.wrappedColumnKeys,
46
- onWrappedColumnChange = _ref.onWrappedColumnChange;
47
+ onWrappedColumnChange = _ref.onWrappedColumnChange,
48
+ _ref$scrollableContai = _ref.scrollableContainerHeight,
49
+ scrollableContainerHeight = _ref$scrollableContai === void 0 ? DefaultScrollableContainerHeight : _ref$scrollableContai;
47
50
  var _useDatasourceTableSt = (0, _useDatasourceTableState.useDatasourceTableState)({
48
51
  datasourceId: datasourceId,
49
52
  parameters: parameters,
@@ -174,7 +177,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
174
177
  onColumnResize: onColumnResize,
175
178
  wrappedColumnKeys: wrappedColumnKeys,
176
179
  onWrappedColumnChange: onWrappedColumnChange,
177
- scrollableContainerHeight: ScrollableContainerHeight,
180
+ scrollableContainerHeight: (0, _platformFeatureFlags.fg)('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
178
181
  extensionKey: extensionKey
179
182
  }) : /*#__PURE__*/React.createElement(_emptyState.default, {
180
183
  testId: "datasource-table-view-skeleton",
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useEffect, useRef } from 'react';
6
6
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
7
7
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { useDatasourceAnalyticsEvents } from '../../analytics';
9
10
  import { componentMetadata } from '../../analytics/constants';
10
11
  import { startUfoExperience } from '../../analytics/ufoExperiences';
@@ -24,7 +25,7 @@ import { IssueLikeDataTableView } from '../issue-like-table';
24
25
  import EmptyState from '../issue-like-table/empty-state';
25
26
  import { TableFooter } from '../table-footer';
26
27
  const containerStyles = null;
27
- const ScrollableContainerHeight = 590;
28
+ const DefaultScrollableContainerHeight = 590;
28
29
  const DatasourceTableViewWithoutAnalytics = ({
29
30
  datasourceId,
30
31
  parameters,
@@ -34,7 +35,8 @@ const DatasourceTableViewWithoutAnalytics = ({
34
35
  columnCustomSizes,
35
36
  onColumnResize,
36
37
  wrappedColumnKeys,
37
- onWrappedColumnChange
38
+ onWrappedColumnChange,
39
+ scrollableContainerHeight = DefaultScrollableContainerHeight
38
40
  }) => {
39
41
  const {
40
42
  reset,
@@ -167,7 +169,7 @@ const DatasourceTableViewWithoutAnalytics = ({
167
169
  onColumnResize: onColumnResize,
168
170
  wrappedColumnKeys: wrappedColumnKeys,
169
171
  onWrappedColumnChange: onWrappedColumnChange,
170
- scrollableContainerHeight: ScrollableContainerHeight,
172
+ scrollableContainerHeight: fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
171
173
  extensionKey: extensionKey
172
174
  }) : /*#__PURE__*/React.createElement(EmptyState, {
173
175
  testId: "datasource-table-view-skeleton",
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useEffect, useRef } from 'react';
6
6
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
7
7
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { useDatasourceAnalyticsEvents } from '../../analytics';
9
10
  import { componentMetadata } from '../../analytics/constants';
10
11
  import { startUfoExperience } from '../../analytics/ufoExperiences';
@@ -24,7 +25,7 @@ import { IssueLikeDataTableView } from '../issue-like-table';
24
25
  import EmptyState from '../issue-like-table/empty-state';
25
26
  import { TableFooter } from '../table-footer';
26
27
  var containerStyles = null;
27
- var ScrollableContainerHeight = 590;
28
+ var DefaultScrollableContainerHeight = 590;
28
29
  var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAnalytics(_ref) {
29
30
  var datasourceId = _ref.datasourceId,
30
31
  parameters = _ref.parameters,
@@ -34,7 +35,9 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
34
35
  columnCustomSizes = _ref.columnCustomSizes,
35
36
  onColumnResize = _ref.onColumnResize,
36
37
  wrappedColumnKeys = _ref.wrappedColumnKeys,
37
- onWrappedColumnChange = _ref.onWrappedColumnChange;
38
+ onWrappedColumnChange = _ref.onWrappedColumnChange,
39
+ _ref$scrollableContai = _ref.scrollableContainerHeight,
40
+ scrollableContainerHeight = _ref$scrollableContai === void 0 ? DefaultScrollableContainerHeight : _ref$scrollableContai;
38
41
  var _useDatasourceTableSt = useDatasourceTableState({
39
42
  datasourceId: datasourceId,
40
43
  parameters: parameters,
@@ -165,7 +168,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
165
168
  onColumnResize: onColumnResize,
166
169
  wrappedColumnKeys: wrappedColumnKeys,
167
170
  onWrappedColumnChange: onWrappedColumnChange,
168
- scrollableContainerHeight: ScrollableContainerHeight,
171
+ scrollableContainerHeight: fg('lp_enable_datasource-table-view_height_override') ? scrollableContainerHeight : DefaultScrollableContainerHeight,
169
172
  extensionKey: extensionKey
170
173
  }) : /*#__PURE__*/React.createElement(EmptyState, {
171
174
  testId: "datasource-table-view-skeleton",
@@ -3,9 +3,9 @@ export declare const DatasourceTableView: import("react").ForwardRefExoticCompon
3
3
  datasourceId: string;
4
4
  parameters: object;
5
5
  url?: string | undefined;
6
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
6
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
7
7
  export declare const DataSourceTableViewNoSuspense: import("react").ForwardRefExoticComponent<{
8
8
  datasourceId: string;
9
9
  parameters: object;
10
10
  url?: string | undefined;
11
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
11
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -6,4 +6,4 @@ export type DatasourceTableViewProps = {
6
6
  parameters: object;
7
7
  /** Url for an existing datasource, initially used for displaying to a user unauthorized to query that site */
8
8
  url?: string;
9
- } & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onColumnResize' | 'columnCustomSizes'>>;
9
+ } & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onColumnResize' | 'columnCustomSizes' | 'scrollableContainerHeight'>>;
@@ -3,9 +3,9 @@ export declare const DatasourceTableView: import("react").ForwardRefExoticCompon
3
3
  datasourceId: string;
4
4
  parameters: object;
5
5
  url?: string | undefined;
6
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
6
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
7
7
  export declare const DataSourceTableViewNoSuspense: import("react").ForwardRefExoticComponent<{
8
8
  datasourceId: string;
9
9
  parameters: object;
10
10
  url?: string | undefined;
11
- } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
11
+ } & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange" | "scrollableContainerHeight">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
@@ -6,4 +6,4 @@ export type DatasourceTableViewProps = {
6
6
  parameters: object;
7
7
  /** Url for an existing datasource, initially used for displaying to a user unauthorized to query that site */
8
8
  url?: string;
9
- } & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onColumnResize' | 'columnCustomSizes'>>;
9
+ } & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onColumnResize' | 'columnCustomSizes' | 'scrollableContainerHeight'>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "4.17.0",
3
+ "version": "4.18.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/flag": "^17.3.0",
52
52
  "@atlaskit/form": "^12.0.0",
53
53
  "@atlaskit/heading": "^5.2.0",
54
- "@atlaskit/icon": "^27.8.0",
54
+ "@atlaskit/icon": "^27.9.0",
55
55
  "@atlaskit/icon-object": "^7.1.0",
56
56
  "@atlaskit/image": "^3.0.0",
57
57
  "@atlaskit/inline-edit": "^15.3.0",
@@ -75,7 +75,7 @@
75
75
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
76
76
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
77
77
  "@atlaskit/primitives": "^14.11.0",
78
- "@atlaskit/react-select": "^3.3.0",
78
+ "@atlaskit/react-select": "^3.4.0",
79
79
  "@atlaskit/select": "^21.2.0",
80
80
  "@atlaskit/smart-card": "^40.6.0",
81
81
  "@atlaskit/smart-user-picker": "^8.0.0",
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/temp-nav-app-icons": "^0.9.0",
85
85
  "@atlaskit/textfield": "^8.0.0",
86
86
  "@atlaskit/theme": "^19.0.0",
87
- "@atlaskit/tokens": "^5.6.0",
87
+ "@atlaskit/tokens": "^6.0.0",
88
88
  "@atlaskit/tooltip": "^20.4.0",
89
89
  "@atlaskit/ufo": "^0.4.0",
90
90
  "@atlaskit/width-detector": "^5.0.0",
@@ -195,6 +195,9 @@
195
195
  },
196
196
  "navx-1184-fix-smart-link-a11y-interactive-states": {
197
197
  "type": "boolean"
198
+ },
199
+ "lp_enable_datasource-table-view_height_override": {
200
+ "type": "boolean"
198
201
  }
199
202
  },
200
203
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/9c893299-a527-4457-9b46-f3bc4c828766"