@atlaskit/link-datasource 5.5.1 → 5.6.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 (29) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/ui/datasource-table-view/datasource-column-sort.js +60 -0
  3. package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +52 -5
  4. package/dist/cjs/ui/issue-like-table/index.compiled.css +5 -0
  5. package/dist/cjs/ui/issue-like-table/index.js +148 -65
  6. package/dist/cjs/ui/issue-like-table/messages.js +10 -0
  7. package/dist/es2019/ui/datasource-table-view/datasource-column-sort.js +52 -0
  8. package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +46 -6
  9. package/dist/es2019/ui/issue-like-table/index.compiled.css +5 -0
  10. package/dist/es2019/ui/issue-like-table/index.js +87 -8
  11. package/dist/es2019/ui/issue-like-table/messages.js +10 -0
  12. package/dist/esm/ui/datasource-table-view/datasource-column-sort.js +53 -0
  13. package/dist/esm/ui/datasource-table-view/datasourceTableView.js +53 -6
  14. package/dist/esm/ui/issue-like-table/index.compiled.css +5 -0
  15. package/dist/esm/ui/issue-like-table/index.js +148 -65
  16. package/dist/esm/ui/issue-like-table/messages.js +10 -0
  17. package/dist/types/ui/datasource-table-view/datasource-column-sort.d.ts +12 -0
  18. package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +2 -2
  19. package/dist/types/ui/datasource-table-view/types.d.ts +1 -1
  20. package/dist/types/ui/issue-like-table/index.d.ts +1 -1
  21. package/dist/types/ui/issue-like-table/messages.d.ts +33 -23
  22. package/dist/types/ui/issue-like-table/types.d.ts +10 -0
  23. package/dist/types-ts4.5/ui/datasource-table-view/datasource-column-sort.d.ts +12 -0
  24. package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +2 -2
  25. package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +1 -1
  26. package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +1 -1
  27. package/dist/types-ts4.5/ui/issue-like-table/messages.d.ts +33 -23
  28. package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +10 -0
  29. package/package.json +14 -11
@@ -1,47 +1,57 @@
1
1
  export declare const issueLikeTableMessages: {
2
- updateError403Description: {
3
- id: string;
4
- description: string;
2
+ fetchActionErrorGenericDescription: {
5
3
  defaultMessage: string;
6
- };
7
- updateError403Title: {
8
- id: string;
9
4
  description: string;
10
- defaultMessage: string;
11
- };
12
- updateErrorGenericDescription: {
13
5
  id: string;
14
- description: string;
15
- defaultMessage: string;
16
6
  };
17
- updateErrorGenericTitle: {
18
- id: string;
19
- description: string;
7
+ fetchActionErrorGenericDescriptionGalaxia: {
20
8
  defaultMessage: string;
21
- };
22
- fetchActionErrorGenericDescription: {
23
- id: string;
24
9
  description: string;
25
- defaultMessage: string;
10
+ id: string;
26
11
  };
27
12
  fetchActionErrorGenericTitle: {
28
- id: string;
29
- description: string;
30
13
  defaultMessage: string;
31
- };
32
- wrapText: {
14
+ description: string;
33
15
  id: string;
16
+ };
17
+ sortByColumnAscendingAction: {
18
+ defaultMessage: string;
34
19
  description: string;
20
+ id: string;
21
+ };
22
+ sortByColumnDescendingAction: {
35
23
  defaultMessage: string;
24
+ description: string;
25
+ id: string;
36
26
  };
37
27
  unwrapText: {
28
+ defaultMessage: string;
29
+ description: string;
38
30
  id: string;
31
+ };
32
+ updateError403Description: {
33
+ defaultMessage: string;
39
34
  description: string;
35
+ id: string;
36
+ };
37
+ updateError403Title: {
40
38
  defaultMessage: string;
39
+ description: string;
40
+ id: string;
41
41
  };
42
- fetchActionErrorGenericDescriptionGalaxia: {
42
+ updateErrorGenericDescription: {
43
+ defaultMessage: string;
44
+ description: string;
43
45
  id: string;
46
+ };
47
+ updateErrorGenericTitle: {
48
+ defaultMessage: string;
44
49
  description: string;
50
+ id: string;
51
+ };
52
+ wrapText: {
45
53
  defaultMessage: string;
54
+ description: string;
55
+ id: string;
46
56
  };
47
57
  };
@@ -23,6 +23,11 @@ export type TableViewPropsRenderType = (item: DatasourceTypeWithOnlyValues) => R
23
23
  export interface ColumnSizesMap {
24
24
  [key: string]: number;
25
25
  }
26
+ export type DatasourceTableSortDirection = 'ASC' | 'DESC';
27
+ export type DatasourceTableSortState = {
28
+ direction: DatasourceTableSortDirection;
29
+ key: string;
30
+ };
26
31
  export interface IssueLikeDataTableViewProps {
27
32
  /**
28
33
  * Map of column key to custom column width
@@ -42,6 +47,10 @@ export interface IssueLikeDataTableViewProps {
42
47
  itemIds: string[];
43
48
  items: DatasourceDataResponseItem[];
44
49
  onColumnResize?: (key: string, width: number) => void;
50
+ /**
51
+ * Callback to be invoked whenever a user sorts a datasource table by a column.
52
+ */
53
+ onColumnSort?: (key: string) => void;
45
54
  onLoadDatasourceDetails: () => Promise<void>;
46
55
  onNextPage: NextPageType;
47
56
  /**
@@ -76,6 +85,7 @@ export interface IssueLikeDataTableViewProps {
76
85
  * It this number is 0 it will not restrict height and not make container scrollable.
77
86
  */
78
87
  scrollableContainerHeight?: number;
88
+ sortState?: DatasourceTableSortState;
79
89
  status: DatasourceTableStatusType;
80
90
  testId?: string;
81
91
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "5.5.1",
3
+ "version": "5.6.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,9 +43,9 @@
43
43
  "ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
44
44
  },
45
45
  "dependencies": {
46
- "@atlaskit/adf-schema": "^52.15.0",
46
+ "@atlaskit/adf-schema": "^52.16.0",
47
47
  "@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.7.0",
48
- "@atlaskit/analytics-next": "^11.2.0",
48
+ "@atlaskit/analytics-next": "^11.3.0",
49
49
  "@atlaskit/atlassian-context": "^0.9.0",
50
50
  "@atlaskit/avatar": "^25.15.0",
51
51
  "@atlaskit/avatar-group": "^12.10.0",
@@ -60,18 +60,18 @@
60
60
  "@atlaskit/flag": "^17.12.0",
61
61
  "@atlaskit/form": "^15.5.0",
62
62
  "@atlaskit/heading": "^5.4.0",
63
- "@atlaskit/icon": "^35.3.0",
63
+ "@atlaskit/icon": "^35.4.0",
64
64
  "@atlaskit/image": "^3.0.0",
65
65
  "@atlaskit/inline-edit": "^15.6.0",
66
66
  "@atlaskit/intl-messages-provider": "^3.3.0",
67
67
  "@atlaskit/jql-ast": "^3.5.0",
68
68
  "@atlaskit/jql-editor": "^6.4.0",
69
69
  "@atlaskit/jql-editor-autocomplete-rest": "^3.3.0",
70
- "@atlaskit/layering": "^3.7.0",
70
+ "@atlaskit/layering": "^3.8.0",
71
71
  "@atlaskit/link": "^3.4.0",
72
72
  "@atlaskit/link-client-extension": "^6.1.0",
73
- "@atlaskit/link-provider": "^4.4.0",
74
- "@atlaskit/linking-common": "^9.12.0",
73
+ "@atlaskit/link-provider": "^4.5.0",
74
+ "@atlaskit/linking-common": "^9.13.0",
75
75
  "@atlaskit/linking-types": "^14.4.0",
76
76
  "@atlaskit/logo": "^20.1.0",
77
77
  "@atlaskit/lozenge": "^13.8.0",
@@ -81,20 +81,20 @@
81
81
  "@atlaskit/platform-feature-flags": "^1.1.0",
82
82
  "@atlaskit/popup": "^4.23.0",
83
83
  "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
84
- "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
84
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.2.0",
85
85
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
86
86
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
87
87
  "@atlaskit/primitives": "^19.0.0",
88
88
  "@atlaskit/react-select": "^3.16.0",
89
89
  "@atlaskit/select": "^21.12.0",
90
- "@atlaskit/smart-card": "^44.18.0",
90
+ "@atlaskit/smart-card": "^44.21.0",
91
91
  "@atlaskit/smart-user-picker": "^10.2.0",
92
92
  "@atlaskit/spinner": "^19.1.0",
93
- "@atlaskit/tag": "^14.14.0",
93
+ "@atlaskit/tag": "^14.15.0",
94
94
  "@atlaskit/textfield": "^8.3.0",
95
95
  "@atlaskit/theme": "^25.0.0",
96
96
  "@atlaskit/tokens": "^13.1.0",
97
- "@atlaskit/tooltip": "^22.5.0",
97
+ "@atlaskit/tooltip": "^22.6.0",
98
98
  "@atlaskit/ufo": "^0.5.0",
99
99
  "@atlaskit/width-detector": "^5.1.0",
100
100
  "@atlassian/assets-workspace-host": "^0.5.0",
@@ -199,6 +199,9 @@
199
199
  "platform_lp_sllv_jira_type_as_link": {
200
200
  "type": "boolean"
201
201
  },
202
+ "platform_lp_jira_sllv_renderer_column_sorting": {
203
+ "type": "boolean"
204
+ },
202
205
  "fallback_to_default_columns_to_display_in_sllv": {
203
206
  "type": "boolean"
204
207
  },