@atlaskit/link-datasource 4.1.13 → 4.1.15
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 +14 -0
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +3 -2
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +3 -2
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +2 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +2 -1
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +2 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +2 -1
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +5 -0
- package/dist/types/ui/jira-issues-modal/modal/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +5 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +1 -0
- package/examples-helpers/buildAssetsIssuesTable.tsx +12 -4
- package/examples-helpers/buildJiraIssuesTable.tsx +14 -5
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.1.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135721](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135721)
|
|
8
|
+
[`c8ce660c343db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c8ce660c343db) -
|
|
9
|
+
Add internal exports
|
|
10
|
+
|
|
11
|
+
## 4.1.14
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.1.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.DatasourceTableView = void 0;
|
|
9
|
+
exports.DatasourceTableView = exports.DataSourceTableViewNoSuspense = void 0;
|
|
10
10
|
require("./datasourceTableView.compiled.css");
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
@@ -191,4 +191,5 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
191
191
|
};
|
|
192
192
|
var DatasourceTableView = exports.DatasourceTableView = (0, _analyticsNext.withAnalyticsContext)(_constants.componentMetadata.tableView)(function (props) {
|
|
193
193
|
return /*#__PURE__*/React.createElement(_state.StoreContainer, null, /*#__PURE__*/React.createElement(_datasourceExperienceId.DatasourceExperienceIdProvider, null, /*#__PURE__*/React.createElement(DatasourceTableViewWithoutAnalytics, props)));
|
|
194
|
-
});
|
|
194
|
+
});
|
|
195
|
+
var DataSourceTableViewNoSuspense = exports.DataSourceTableViewNoSuspense = DatasourceTableView;
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.JiraIssuesConfigModal = void 0;
|
|
8
|
+
exports.JiraIssuesConfigModalNoSuspense = exports.JiraIssuesConfigModal = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -423,4 +423,5 @@ var JiraIssuesConfigModal = exports.JiraIssuesConfigModal = function JiraIssuesC
|
|
|
423
423
|
return /*#__PURE__*/_react.default.createElement(_state.StoreContainer, null, /*#__PURE__*/_react.default.createElement(ConnectedJiraIssueConfigModal, (0, _extends2.default)({}, props, {
|
|
424
424
|
onInsert: onInsertWithMacroAnalytics
|
|
425
425
|
})));
|
|
426
|
-
};
|
|
426
|
+
};
|
|
427
|
+
var JiraIssuesConfigModalNoSuspense = exports.JiraIssuesConfigModalNoSuspense = JiraIssuesConfigModal;
|
|
@@ -181,4 +181,5 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
181
181
|
url: url
|
|
182
182
|
})));
|
|
183
183
|
};
|
|
184
|
-
export const DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(props => /*#__PURE__*/React.createElement(StoreContainer, null, /*#__PURE__*/React.createElement(DatasourceExperienceIdProvider, null, /*#__PURE__*/React.createElement(DatasourceTableViewWithoutAnalytics, props))));
|
|
184
|
+
export const DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(props => /*#__PURE__*/React.createElement(StoreContainer, null, /*#__PURE__*/React.createElement(DatasourceExperienceIdProvider, null, /*#__PURE__*/React.createElement(DatasourceTableViewWithoutAnalytics, props))));
|
|
185
|
+
export const DataSourceTableViewNoSuspense = DatasourceTableView;
|
|
@@ -409,4 +409,5 @@ export const JiraIssuesConfigModal = props => {
|
|
|
409
409
|
return /*#__PURE__*/React.createElement(StoreContainer, null, /*#__PURE__*/React.createElement(ConnectedJiraIssueConfigModal, _extends({}, props, {
|
|
410
410
|
onInsert: onInsertWithMacroAnalytics
|
|
411
411
|
})));
|
|
412
|
-
};
|
|
412
|
+
};
|
|
413
|
+
export const JiraIssuesConfigModalNoSuspense = JiraIssuesConfigModal;
|
|
@@ -181,4 +181,5 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
181
181
|
};
|
|
182
182
|
export var DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(function (props) {
|
|
183
183
|
return /*#__PURE__*/React.createElement(StoreContainer, null, /*#__PURE__*/React.createElement(DatasourceExperienceIdProvider, null, /*#__PURE__*/React.createElement(DatasourceTableViewWithoutAnalytics, props)));
|
|
184
|
-
});
|
|
184
|
+
});
|
|
185
|
+
export var DataSourceTableViewNoSuspense = DatasourceTableView;
|
|
@@ -415,4 +415,5 @@ export var JiraIssuesConfigModal = function JiraIssuesConfigModal(props) {
|
|
|
415
415
|
return /*#__PURE__*/React.createElement(StoreContainer, null, /*#__PURE__*/React.createElement(ConnectedJiraIssueConfigModal, _extends({}, props, {
|
|
416
416
|
onInsert: onInsertWithMacroAnalytics
|
|
417
417
|
})));
|
|
418
|
-
};
|
|
418
|
+
};
|
|
419
|
+
export var JiraIssuesConfigModalNoSuspense = JiraIssuesConfigModal;
|
|
@@ -4,3 +4,8 @@ export declare const DatasourceTableView: import("react").ForwardRefExoticCompon
|
|
|
4
4
|
parameters: object;
|
|
5
5
|
url?: string | undefined;
|
|
6
6
|
} & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
7
|
+
export declare const DataSourceTableViewNoSuspense: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
datasourceId: string;
|
|
9
|
+
parameters: object;
|
|
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>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type JiraConfigModalProps } from '../types';
|
|
3
3
|
export declare const JiraIssuesConfigModal: (props: JiraConfigModalProps) => React.JSX.Element;
|
|
4
|
+
export declare const JiraIssuesConfigModalNoSuspense: (props: JiraConfigModalProps) => React.JSX.Element;
|
|
@@ -4,3 +4,8 @@ export declare const DatasourceTableView: import("react").ForwardRefExoticCompon
|
|
|
4
4
|
parameters: object;
|
|
5
5
|
url?: string | undefined;
|
|
6
6
|
} & Partial<Pick<import("../issue-like-table/types").IssueLikeDataTableViewProps, "visibleColumnKeys" | "wrappedColumnKeys" | "columnCustomSizes" | "onColumnResize" | "onVisibleColumnKeysChange" | "onWrappedColumnChange">> & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
7
|
+
export declare const DataSourceTableViewNoSuspense: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
datasourceId: string;
|
|
9
|
+
parameters: object;
|
|
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>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type JiraConfigModalProps } from '../types';
|
|
3
3
|
export declare const JiraIssuesConfigModal: (props: JiraConfigModalProps) => React.JSX.Element;
|
|
4
|
+
export declare const JiraIssuesConfigModalNoSuspense: (props: JiraConfigModalProps) => React.JSX.Element;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
4
|
+
import type { DatasourceTableView } from '@atlaskit/link-datasource';
|
|
4
5
|
import { SmartCardProvider } from '@atlaskit/link-provider';
|
|
5
6
|
import { type DatasourceParameters } from '@atlaskit/linking-types';
|
|
6
7
|
|
|
7
|
-
import { DatasourceTableView } from '../src';
|
|
8
8
|
import { fetchMessagesForLocale } from '../src/common/utils/locale/fetch-messages-for-locale';
|
|
9
9
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../src/ui/assets-modal';
|
|
10
10
|
import { type AssetsDatasourceParameters } from '../src/ui/assets-modal/types';
|
|
11
|
+
import { DataSourceTableViewNoSuspense } from '../src/ui/datasource-table-view/datasourceTableView';
|
|
11
12
|
|
|
12
13
|
import SmartLinkClient from './smartLinkCustomClient';
|
|
13
14
|
import { useAssetsTableProps } from './useAssetsTableProps';
|
|
@@ -15,9 +16,15 @@ import { useAssetsTableProps } from './useAssetsTableProps';
|
|
|
15
16
|
interface AssetsTableViewProps {
|
|
16
17
|
parameters?: DatasourceParameters;
|
|
17
18
|
mockDatasourceFetchRequest?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Used to use the lazy loaded version for examples on atlaskit
|
|
21
|
+
*/
|
|
22
|
+
DatasourceTable?: typeof DataSourceTableViewNoSuspense | typeof DatasourceTableView;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
|
-
const AssetsTableView = (
|
|
25
|
+
const AssetsTableView = ({
|
|
26
|
+
DatasourceTable = DataSourceTableViewNoSuspense,
|
|
27
|
+
}: AssetsTableViewProps) => {
|
|
21
28
|
const datasourceParameters: AssetsDatasourceParameters = {
|
|
22
29
|
workspaceId: 'workspaceId',
|
|
23
30
|
aql: 'name like a',
|
|
@@ -38,7 +45,7 @@ const AssetsTableView = () => {
|
|
|
38
45
|
});
|
|
39
46
|
|
|
40
47
|
return (
|
|
41
|
-
<
|
|
48
|
+
<DatasourceTable
|
|
42
49
|
datasourceId={ASSETS_LIST_OF_LINKS_DATASOURCE_ID}
|
|
43
50
|
parameters={datasourceParameters}
|
|
44
51
|
visibleColumnKeys={visibleColumnKeys}
|
|
@@ -53,11 +60,12 @@ const AssetsTableView = () => {
|
|
|
53
60
|
|
|
54
61
|
export const ExampleAssetsIssuesTableView = ({
|
|
55
62
|
mockDatasourceFetchRequest = true,
|
|
63
|
+
...props
|
|
56
64
|
}: AssetsTableViewProps) => {
|
|
57
65
|
return (
|
|
58
66
|
<IntlMessagesProvider loaderFn={fetchMessagesForLocale}>
|
|
59
67
|
<SmartCardProvider client={new SmartLinkClient()}>
|
|
60
|
-
<AssetsTableView />
|
|
68
|
+
<AssetsTableView {...props} />
|
|
61
69
|
</SmartCardProvider>
|
|
62
70
|
</IntlMessagesProvider>
|
|
63
71
|
);
|
|
@@ -8,17 +8,25 @@ import { type DatasourceParameters } from '@atlaskit/linking-types';
|
|
|
8
8
|
import { DatasourceTableView } from '../src';
|
|
9
9
|
import { fetchMessagesForLocale } from '../src/common/utils/locale/fetch-messages-for-locale';
|
|
10
10
|
import { DatasourceExperienceIdProvider } from '../src/contexts/datasource-experience-id';
|
|
11
|
+
import { DataSourceTableViewNoSuspense } from '../src/ui/datasource-table-view/datasourceTableView';
|
|
11
12
|
import { type JiraIssueDatasourceParameters } from '../src/ui/jira-issues-modal/types';
|
|
12
13
|
|
|
13
14
|
import SmartLinkClient from './smartLinkCustomClient';
|
|
14
15
|
import { useCommonTableProps } from './useCommonTableProps';
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
type JiraIssuesTableViewProps = {
|
|
17
18
|
parameters?: DatasourceParameters;
|
|
18
19
|
mockDatasourceFetchRequest?: boolean;
|
|
19
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Used to use the lazy loaded version for examples on atlaskit
|
|
22
|
+
*/
|
|
23
|
+
DatasourceTable?: typeof DataSourceTableViewNoSuspense | typeof DatasourceTableView;
|
|
24
|
+
};
|
|
20
25
|
|
|
21
|
-
const JiraIssuesTableView = ({
|
|
26
|
+
const JiraIssuesTableView = ({
|
|
27
|
+
parameters,
|
|
28
|
+
DatasourceTable = DataSourceTableViewNoSuspense,
|
|
29
|
+
}: JiraIssuesTableViewProps) => {
|
|
22
30
|
const cloudId = parameters?.cloudId || 'some-cloud-id';
|
|
23
31
|
|
|
24
32
|
const datasourceParameters = useMemo<JiraIssueDatasourceParameters>(
|
|
@@ -46,7 +54,7 @@ const JiraIssuesTableView = ({ parameters }: JiraIssuesTableViewProps) => {
|
|
|
46
54
|
});
|
|
47
55
|
|
|
48
56
|
return (
|
|
49
|
-
<
|
|
57
|
+
<DatasourceTable
|
|
50
58
|
datasourceId={'some-datasource-id'}
|
|
51
59
|
parameters={datasourceParameters}
|
|
52
60
|
visibleColumnKeys={visibleColumnKeys}
|
|
@@ -62,6 +70,7 @@ const JiraIssuesTableView = ({ parameters }: JiraIssuesTableViewProps) => {
|
|
|
62
70
|
export const ExampleJiraIssuesTableView = ({
|
|
63
71
|
parameters,
|
|
64
72
|
mockDatasourceFetchRequest = true,
|
|
73
|
+
...props
|
|
65
74
|
}: JiraIssuesTableViewProps) => {
|
|
66
75
|
if (mockDatasourceFetchRequest) {
|
|
67
76
|
mockDatasourceFetchRequests();
|
|
@@ -71,7 +80,7 @@ export const ExampleJiraIssuesTableView = ({
|
|
|
71
80
|
<DatasourceExperienceIdProvider>
|
|
72
81
|
<IntlMessagesProvider loaderFn={fetchMessagesForLocale}>
|
|
73
82
|
<SmartCardProvider client={new SmartLinkClient()}>
|
|
74
|
-
<JiraIssuesTableView parameters={parameters} />
|
|
83
|
+
<JiraIssuesTableView parameters={parameters} {...props} />
|
|
75
84
|
</SmartCardProvider>
|
|
76
85
|
</IntlMessagesProvider>
|
|
77
86
|
</DatasourceExperienceIdProvider>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.15",
|
|
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/empty-state": "^9.0.0",
|
|
52
52
|
"@atlaskit/flag": "^17.1.0",
|
|
53
53
|
"@atlaskit/form": "^12.0.0",
|
|
54
|
-
"@atlaskit/heading": "^5.
|
|
54
|
+
"@atlaskit/heading": "^5.2.0",
|
|
55
55
|
"@atlaskit/icon": "^25.5.0",
|
|
56
56
|
"@atlaskit/icon-object": "^7.0.0",
|
|
57
57
|
"@atlaskit/image": "^3.0.0",
|
|
@@ -69,22 +69,22 @@
|
|
|
69
69
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
70
70
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
71
71
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
72
|
-
"@atlaskit/popup": "^
|
|
72
|
+
"@atlaskit/popup": "^4.0.0",
|
|
73
73
|
"@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
|
|
74
74
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
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.0.0",
|
|
77
|
-
"@atlaskit/primitives": "^14.
|
|
77
|
+
"@atlaskit/primitives": "^14.4.0",
|
|
78
78
|
"@atlaskit/react-select": "^2.1.0",
|
|
79
|
-
"@atlaskit/select": "^20.
|
|
80
|
-
"@atlaskit/smart-card": "^36.
|
|
79
|
+
"@atlaskit/select": "^20.2.0",
|
|
80
|
+
"@atlaskit/smart-card": "^36.4.0",
|
|
81
81
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
82
82
|
"@atlaskit/spinner": "^18.0.0",
|
|
83
83
|
"@atlaskit/tag": "^14.0.0",
|
|
84
84
|
"@atlaskit/temp-nav-app-icons": "^0.7.0",
|
|
85
85
|
"@atlaskit/textfield": "^8.0.0",
|
|
86
86
|
"@atlaskit/theme": "^18.0.0",
|
|
87
|
-
"@atlaskit/tokens": "^4.
|
|
87
|
+
"@atlaskit/tokens": "^4.7.0",
|
|
88
88
|
"@atlaskit/tooltip": "^20.0.0",
|
|
89
89
|
"@atlaskit/ufo": "^0.4.0",
|
|
90
90
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@af/integration-testing": "^0.5.0",
|
|
107
107
|
"@af/visual-regression": "^1.3.0",
|
|
108
|
-
"@atlaskit/json-ld-types": "^1.
|
|
109
|
-
"@atlaskit/link-provider": "^2.
|
|
108
|
+
"@atlaskit/json-ld-types": "^1.1.0",
|
|
109
|
+
"@atlaskit/link-provider": "^2.1.0",
|
|
110
110
|
"@atlaskit/link-test-helpers": "^8.0.0",
|
|
111
111
|
"@atlaskit/ssr": "^0.4.0",
|
|
112
112
|
"@atlaskit/visual-regression": "^0.10.0",
|