@atlaskit/link-datasource 2.9.8 → 2.10.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 +17 -0
- package/dist/cjs/hooks/useDatasourceTableState.js +3 -2
- package/dist/es2019/hooks/useDatasourceTableState.js +3 -2
- package/dist/esm/hooks/useDatasourceTableState.js +3 -2
- package/examples-helpers/buildIssueLikeTable.tsx +7 -2
- package/examples-helpers/buildJiraIssuesTable.tsx +3 -0
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 2.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
|
|
8
|
+
[`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
|
|
9
|
+
[ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
|
|
10
|
+
promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
|
|
11
|
+
quotes in panels and decisions in lists in stage0 schema, and a validator spec change
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#128149](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128149)
|
|
16
|
+
[`a57b769f35fdc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a57b769f35fdc) -
|
|
17
|
+
Add entityType to discoverActions request
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 2.9.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -320,11 +320,12 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
|
|
|
320
320
|
var _item$ari;
|
|
321
321
|
return typeof ((_item$ari = item.ari) === null || _item$ari === void 0 ? void 0 : _item$ari.data) === 'string' ? [].concat((0, _toConsumableArray2.default)(acc), [item.ari.data]) : acc;
|
|
322
322
|
}, []);
|
|
323
|
-
if (aris.length) {
|
|
323
|
+
if (aris.length && _destinationObjectTypes.length) {
|
|
324
324
|
discoverActions({
|
|
325
325
|
aris: aris,
|
|
326
326
|
integrationKey: integrationKey,
|
|
327
|
-
fieldKeys: fieldKeys
|
|
327
|
+
fieldKeys: fieldKeys,
|
|
328
|
+
entityType: _destinationObjectTypes[0]
|
|
328
329
|
});
|
|
329
330
|
}
|
|
330
331
|
}
|
|
@@ -203,11 +203,12 @@ export const useDatasourceTableState = ({
|
|
|
203
203
|
var _item$ari;
|
|
204
204
|
return typeof ((_item$ari = item.ari) === null || _item$ari === void 0 ? void 0 : _item$ari.data) === 'string' ? [...acc, item.ari.data] : acc;
|
|
205
205
|
}, []);
|
|
206
|
-
if (aris.length) {
|
|
206
|
+
if (aris.length && destinationObjectTypes.length) {
|
|
207
207
|
discoverActions({
|
|
208
208
|
aris,
|
|
209
209
|
integrationKey,
|
|
210
|
-
fieldKeys
|
|
210
|
+
fieldKeys,
|
|
211
|
+
entityType: destinationObjectTypes[0]
|
|
211
212
|
});
|
|
212
213
|
}
|
|
213
214
|
}
|
|
@@ -313,11 +313,12 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
|
|
|
313
313
|
var _item$ari;
|
|
314
314
|
return typeof ((_item$ari = item.ari) === null || _item$ari === void 0 ? void 0 : _item$ari.data) === 'string' ? [].concat(_toConsumableArray(acc), [item.ari.data]) : acc;
|
|
315
315
|
}, []);
|
|
316
|
-
if (aris.length) {
|
|
316
|
+
if (aris.length && _destinationObjectTypes.length) {
|
|
317
317
|
discoverActions({
|
|
318
318
|
aris: aris,
|
|
319
319
|
integrationKey: integrationKey,
|
|
320
|
-
fieldKeys: fieldKeys
|
|
320
|
+
fieldKeys: fieldKeys,
|
|
321
|
+
entityType: _destinationObjectTypes[0]
|
|
321
322
|
});
|
|
322
323
|
}
|
|
323
324
|
}
|
|
@@ -70,7 +70,13 @@ const ExampleBody = ({ isReadonly, canResizeColumns = true, canControlWrapping =
|
|
|
70
70
|
onColumnResize,
|
|
71
71
|
wrappedColumnKeys,
|
|
72
72
|
onWrappedColumnChange,
|
|
73
|
-
} = useCommonTableProps(
|
|
73
|
+
} = useCommonTableProps({
|
|
74
|
+
defaultColumnCustomSizes: {
|
|
75
|
+
summary: 180,
|
|
76
|
+
link: 350,
|
|
77
|
+
labels: 100,
|
|
78
|
+
},
|
|
79
|
+
});
|
|
74
80
|
|
|
75
81
|
useEffect(() => {
|
|
76
82
|
if (visibleColumnKeys.length === 0 && defaultVisibleColumnKeys.length > 0) {
|
|
@@ -108,7 +114,6 @@ export const ExampleIssueLikeTable = ({
|
|
|
108
114
|
isReadonly,
|
|
109
115
|
canResizeColumns,
|
|
110
116
|
canControlWrapping,
|
|
111
|
-
skipIntl,
|
|
112
117
|
}: Props) => {
|
|
113
118
|
return (
|
|
114
119
|
<DatasourceExperienceIdProvider>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,40 +35,40 @@
|
|
|
35
35
|
"analytics:codegen": "yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource --output ./src/analytics/generated"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/adf-schema": "^40.
|
|
38
|
+
"@atlaskit/adf-schema": "^40.8.1",
|
|
39
39
|
"@atlaskit/analytics-next": "^10.0.0",
|
|
40
|
-
"@atlaskit/avatar": "^21.
|
|
41
|
-
"@atlaskit/avatar-group": "^9.
|
|
40
|
+
"@atlaskit/avatar": "^21.13.0",
|
|
41
|
+
"@atlaskit/avatar-group": "^9.10.0",
|
|
42
42
|
"@atlaskit/badge": "^16.3.0",
|
|
43
43
|
"@atlaskit/button": "^19.1.0",
|
|
44
44
|
"@atlaskit/datetime-picker": "^13.8.0",
|
|
45
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
45
|
+
"@atlaskit/dropdown-menu": "^12.16.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
47
47
|
"@atlaskit/empty-state": "^7.10.0",
|
|
48
48
|
"@atlaskit/form": "^10.4.0",
|
|
49
49
|
"@atlaskit/heading": "^2.4.0",
|
|
50
|
-
"@atlaskit/icon": "^22.
|
|
50
|
+
"@atlaskit/icon": "^22.11.0",
|
|
51
51
|
"@atlaskit/icon-object": "^6.4.0",
|
|
52
52
|
"@atlaskit/image": "^1.3.0",
|
|
53
53
|
"@atlaskit/intl-messages-provider": "^1.0.0",
|
|
54
54
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
55
55
|
"@atlaskit/jql-editor": "^4.4.0",
|
|
56
56
|
"@atlaskit/jql-editor-autocomplete-rest": "^2.0.0",
|
|
57
|
-
"@atlaskit/link-client-extension": "^
|
|
57
|
+
"@atlaskit/link-client-extension": "^2.0.0",
|
|
58
58
|
"@atlaskit/linking-common": "^5.9.0",
|
|
59
|
-
"@atlaskit/linking-types": "^
|
|
59
|
+
"@atlaskit/linking-types": "^9.0.0",
|
|
60
60
|
"@atlaskit/logo": "^14.1.0",
|
|
61
61
|
"@atlaskit/lozenge": "^11.9.0",
|
|
62
62
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
63
63
|
"@atlaskit/outbound-auth-flow-client": "^3.4.5",
|
|
64
64
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
65
|
-
"@atlaskit/popup": "^1.
|
|
65
|
+
"@atlaskit/popup": "^1.21.0",
|
|
66
66
|
"@atlaskit/pragmatic-drag-and-drop": "^1.2.0",
|
|
67
67
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
68
68
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.2.0",
|
|
69
69
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
70
70
|
"@atlaskit/primitives": "^11.1.0",
|
|
71
|
-
"@atlaskit/select": "^17.
|
|
71
|
+
"@atlaskit/select": "^17.12.0",
|
|
72
72
|
"@atlaskit/smart-card": "^27.13.0",
|
|
73
73
|
"@atlaskit/smart-user-picker": "6.10.1",
|
|
74
74
|
"@atlaskit/spinner": "^16.2.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@atlaskit/textfield": "6.4.3",
|
|
77
77
|
"@atlaskit/theme": "^12.11.0",
|
|
78
78
|
"@atlaskit/tokens": "^1.57.0",
|
|
79
|
-
"@atlaskit/tooltip": "^18.
|
|
79
|
+
"@atlaskit/tooltip": "^18.6.0",
|
|
80
80
|
"@atlaskit/ufo": "^0.2.4",
|
|
81
81
|
"@atlaskit/width-detector": "^4.2.0",
|
|
82
82
|
"@babel/runtime": "^7.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@af/integration-testing": "*",
|
|
99
99
|
"@af/visual-regression": "*",
|
|
100
100
|
"@atlaskit/link-provider": "^1.14.0",
|
|
101
|
-
"@atlaskit/link-test-helpers": "^7.
|
|
101
|
+
"@atlaskit/link-test-helpers": "^7.3.0",
|
|
102
102
|
"@atlaskit/ssr": "*",
|
|
103
103
|
"@atlaskit/visual-regression": "*",
|
|
104
104
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|