@atlaskit/link-datasource 0.31.0 → 0.31.2

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,17 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 0.31.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ab5b543f761`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab5b543f761) - Assets List of Links send actual workspaceId to fetch data on insert
8
+
9
+ ## 0.31.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`ac9d6f74970`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac9d6f74970) - List of Links Assets Modal uses workspaceId instead of cloudId
14
+
3
15
  ## 0.31.0
4
16
 
5
17
  ### Minor Changes
@@ -58,8 +58,7 @@ var AssetsConfigModal = function AssetsConfigModal(props) {
58
58
  return {
59
59
  aql: aql || '',
60
60
  schemaId: schemaId || '',
61
- workspaceId: workspaceId || '',
62
- cloudId: ''
61
+ workspaceId: workspaceId || ''
63
62
  };
64
63
  }, [aql, schemaId, workspaceId]);
65
64
  var isParametersSet = !!(aql && workspaceId && schemaId);
@@ -92,7 +91,7 @@ var AssetsConfigModal = function AssetsConfigModal(props) {
92
91
  return data === null || data === void 0 ? void 0 : (_data$key = data.key) === null || _data$key === void 0 ? void 0 : (_data$key$data = _data$key.data) === null || _data$key$data === void 0 ? void 0 : _data$key$data.url;
93
92
  }, [responseItems]);
94
93
  var onInsertPressed = (0, _react.useCallback)(function () {
95
- if (!aql || !schemaId) {
94
+ if (!aql || !schemaId || !workspaceId) {
96
95
  return;
97
96
  }
98
97
  var firstAssetUrl = retrieveUrlForSmartCardRender();
@@ -110,8 +109,7 @@ var AssetsConfigModal = function AssetsConfigModal(props) {
110
109
  datasource: {
111
110
  id: datasourceId,
112
111
  parameters: {
113
- cloudId: '',
114
- // TODO FLY-1278: get actual cloudID
112
+ workspaceId: workspaceId,
115
113
  aql: aql,
116
114
  schemaId: schemaId
117
115
  },
@@ -129,7 +127,7 @@ var AssetsConfigModal = function AssetsConfigModal(props) {
129
127
  }
130
128
  });
131
129
  }
132
- }, [aql, datasourceId, onInsert, responseItems.length, retrieveUrlForSmartCardRender, schemaId, visibleColumnKeys]);
130
+ }, [aql, datasourceId, onInsert, responseItems.length, retrieveUrlForSmartCardRender, schemaId, workspaceId, visibleColumnKeys]);
133
131
  var handleOnSearch = (0, _react.useCallback)(function (aql, schemaId) {
134
132
  reset();
135
133
  setAql(aql);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "sideEffects": false
5
5
  }
@@ -39,8 +39,7 @@ export const AssetsConfigModal = props => {
39
39
  const parameters = useMemo(() => ({
40
40
  aql: aql || '',
41
41
  schemaId: schemaId || '',
42
- workspaceId: workspaceId || '',
43
- cloudId: ''
42
+ workspaceId: workspaceId || ''
44
43
  }), [aql, schemaId, workspaceId]);
45
44
  const isParametersSet = !!(aql && workspaceId && schemaId);
46
45
  const {
@@ -72,7 +71,7 @@ export const AssetsConfigModal = props => {
72
71
  return data === null || data === void 0 ? void 0 : (_data$key = data.key) === null || _data$key === void 0 ? void 0 : (_data$key$data = _data$key.data) === null || _data$key$data === void 0 ? void 0 : _data$key$data.url;
73
72
  }, [responseItems]);
74
73
  const onInsertPressed = useCallback(() => {
75
- if (!aql || !schemaId) {
74
+ if (!aql || !schemaId || !workspaceId) {
76
75
  return;
77
76
  }
78
77
  const firstAssetUrl = retrieveUrlForSmartCardRender();
@@ -90,9 +89,8 @@ export const AssetsConfigModal = props => {
90
89
  datasource: {
91
90
  id: datasourceId,
92
91
  parameters: {
93
- cloudId: '',
94
- // TODO FLY-1278: get actual cloudID
95
- aql: aql,
92
+ workspaceId,
93
+ aql,
96
94
  schemaId
97
95
  },
98
96
  views: [{
@@ -107,7 +105,7 @@ export const AssetsConfigModal = props => {
107
105
  }
108
106
  });
109
107
  }
110
- }, [aql, datasourceId, onInsert, responseItems.length, retrieveUrlForSmartCardRender, schemaId, visibleColumnKeys]);
108
+ }, [aql, datasourceId, onInsert, responseItems.length, retrieveUrlForSmartCardRender, schemaId, workspaceId, visibleColumnKeys]);
111
109
  const handleOnSearch = useCallback((aql, schemaId) => {
112
110
  reset();
113
111
  setAql(aql);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "sideEffects": false
5
5
  }
@@ -47,8 +47,7 @@ export var AssetsConfigModal = function AssetsConfigModal(props) {
47
47
  return {
48
48
  aql: aql || '',
49
49
  schemaId: schemaId || '',
50
- workspaceId: workspaceId || '',
51
- cloudId: ''
50
+ workspaceId: workspaceId || ''
52
51
  };
53
52
  }, [aql, schemaId, workspaceId]);
54
53
  var isParametersSet = !!(aql && workspaceId && schemaId);
@@ -81,7 +80,7 @@ export var AssetsConfigModal = function AssetsConfigModal(props) {
81
80
  return data === null || data === void 0 ? void 0 : (_data$key = data.key) === null || _data$key === void 0 ? void 0 : (_data$key$data = _data$key.data) === null || _data$key$data === void 0 ? void 0 : _data$key$data.url;
82
81
  }, [responseItems]);
83
82
  var onInsertPressed = useCallback(function () {
84
- if (!aql || !schemaId) {
83
+ if (!aql || !schemaId || !workspaceId) {
85
84
  return;
86
85
  }
87
86
  var firstAssetUrl = retrieveUrlForSmartCardRender();
@@ -99,8 +98,7 @@ export var AssetsConfigModal = function AssetsConfigModal(props) {
99
98
  datasource: {
100
99
  id: datasourceId,
101
100
  parameters: {
102
- cloudId: '',
103
- // TODO FLY-1278: get actual cloudID
101
+ workspaceId: workspaceId,
104
102
  aql: aql,
105
103
  schemaId: schemaId
106
104
  },
@@ -118,7 +116,7 @@ export var AssetsConfigModal = function AssetsConfigModal(props) {
118
116
  }
119
117
  });
120
118
  }
121
- }, [aql, datasourceId, onInsert, responseItems.length, retrieveUrlForSmartCardRender, schemaId, visibleColumnKeys]);
119
+ }, [aql, datasourceId, onInsert, responseItems.length, retrieveUrlForSmartCardRender, schemaId, workspaceId, visibleColumnKeys]);
122
120
  var handleOnSearch = useCallback(function (aql, schemaId) {
123
121
  reset();
124
122
  setAql(aql);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { DatasourceAdf, DatasourceAdfView, InlineCardAdf } from '@atlaskit/linking-common/types';
2
2
  export interface AssetsDatasourceParameters {
3
- cloudId: string;
3
+ workspaceId: string;
4
4
  aql: string;
5
- schemaId?: string;
5
+ schemaId: string;
6
6
  }
7
7
  export interface AssetsDatasourceAdf extends DatasourceAdf {
8
8
  attrs: {
@@ -1,8 +1,8 @@
1
1
  import { DatasourceAdf, DatasourceAdfView, InlineCardAdf } from '@atlaskit/linking-common/types';
2
2
  export interface AssetsDatasourceParameters {
3
- cloudId: string;
3
+ workspaceId: string;
4
4
  aql: string;
5
- schemaId?: string;
5
+ schemaId: string;
6
6
  }
7
7
  export interface AssetsDatasourceAdf extends DatasourceAdf {
8
8
  attrs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
47
47
  "@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.16.0",
48
48
  "@atlaskit/select": "^16.5.0",
49
- "@atlaskit/smart-card": "^26.13.0",
49
+ "@atlaskit/smart-card": "^26.14.0",
50
50
  "@atlaskit/spinner": "^15.5.0",
51
51
  "@atlaskit/tag": "^11.5.0",
52
52
  "@atlaskit/textfield": "5.6.3",
package/report.api.md CHANGED
@@ -65,9 +65,9 @@ export interface AssetsDatasourceParameters {
65
65
  // (undocumented)
66
66
  aql: string;
67
67
  // (undocumented)
68
- cloudId: string;
68
+ schemaId: string;
69
69
  // (undocumented)
70
- schemaId?: string;
70
+ workspaceId: string;
71
71
  }
72
72
 
73
73
  export { DatasourceAdf };
@@ -51,9 +51,9 @@ export interface AssetsDatasourceParameters {
51
51
  // (undocumented)
52
52
  aql: string;
53
53
  // (undocumented)
54
- cloudId: string;
54
+ schemaId: string;
55
55
  // (undocumented)
56
- schemaId?: string;
56
+ workspaceId: string;
57
57
  }
58
58
 
59
59
  export { DatasourceAdf }