@atlaskit/link-datasource 1.6.2 → 1.7.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 +13 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/analytics/index.js +1 -14
- package/dist/cjs/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +21 -0
- package/dist/cjs/analytics/wrappers/render-failed/index.js +21 -0
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/index.js +62 -64
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/analytics/index.js +1 -15
- package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +16 -0
- package/dist/es2019/analytics/wrappers/render-failed/index.js +5 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/index.js +8 -15
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/analytics/index.js +1 -14
- package/dist/esm/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +15 -0
- package/dist/esm/analytics/wrappers/render-failed/index.js +9 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/issue-like-table/index.js +61 -63
- package/dist/types/analytics/generated/analytics.types.d.ts +2 -2
- package/dist/types/analytics/index.d.ts +0 -2
- package/dist/types/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +3 -0
- package/dist/types/analytics/wrappers/render-failed/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/index.d.ts +2 -0
- package/package.json +3 -3
- package/dist/types-ts4.5/analytics/constants.d.ts +0 -3
- package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +0 -134
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +0 -31
- package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +0 -7
- package/dist/types-ts4.5/analytics/index.d.ts +0 -10
- package/dist/types-ts4.5/analytics/types.d.ts +0 -18
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +0 -2
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +0 -22
- package/dist/types-ts4.5/analytics/ufoExperiences/index.d.ts +0 -5
- package/dist/types-ts4.5/analytics/ufoExperiences/types.d.ts +0 -14
- package/dist/types-ts4.5/analytics/utils.d.ts +0 -3
- package/dist/types-ts4.5/common/types.d.ts +0 -1
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +0 -9
- package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +0 -31
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +0 -8
- package/dist/types-ts4.5/hooks/useValidateAqlText.d.ts +0 -7
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -54
- package/dist/types-ts4.5/i18n/da.d.ts +0 -54
- package/dist/types-ts4.5/i18n/de.d.ts +0 -54
- package/dist/types-ts4.5/i18n/en.d.ts +0 -55
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -55
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -55
- package/dist/types-ts4.5/i18n/es.d.ts +0 -54
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -54
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -54
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -54
- package/dist/types-ts4.5/i18n/it.d.ts +0 -54
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -54
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -54
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -54
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -54
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -54
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -54
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -54
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -54
- package/dist/types-ts4.5/i18n/th.d.ts +0 -54
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -54
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -54
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -54
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -54
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -54
- package/dist/types-ts4.5/index.d.ts +0 -10
- package/dist/types-ts4.5/services/cmdbService.d.ts +0 -7
- package/dist/types-ts4.5/services/getAvailableJiraSites.d.ts +0 -6
- package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +0 -6
- package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +0 -5
- package/dist/types-ts4.5/types/assets/types.d.ts +0 -34
- package/dist/types-ts4.5/ui/assets-modal/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/modal/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +0 -8
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -21
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +0 -2
- package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +0 -19
- package/dist/types-ts4.5/ui/assets-modal/types.d.ts +0 -23
- package/dist/types-ts4.5/ui/common/error-state/access-required-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +0 -6
- package/dist/types-ts4.5/ui/common/error-state/loading-error-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +0 -6
- package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +0 -47
- package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +0 -6
- package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +0 -6
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +0 -3
- package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -5
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +0 -7
- package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +0 -12
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +0 -6
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +0 -6
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +0 -16
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/render-type/number/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +0 -18
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +0 -53
- package/dist/types-ts4.5/ui/issue-like-table/useIsOnScreen.d.ts +0 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/hooks/useBasicFilterHook.d.ts +0 -4
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/common/dropdown/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/containers/project/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +0 -7
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/jira-issues-modal/jql-editor/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/messages.d.ts +0 -42
- package/dist/types-ts4.5/ui/jira-issues-modal/mode-switcher/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +0 -43
- package/dist/types-ts4.5/ui/table-footer/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/table-footer/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/table-footer/sync-info/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/table-footer/sync-info/messages.d.ts +0 -12
- package/tmp/api-report-tmp.d.ts +0 -153
|
@@ -65,22 +65,18 @@ function extractIndex(data) {
|
|
|
65
65
|
invariant(typeof index === 'number');
|
|
66
66
|
return index;
|
|
67
67
|
}
|
|
68
|
-
var orderColumns = function orderColumns(columns, visibleColumnKeys) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
columns.forEach(function (_ref, index) {
|
|
73
|
-
var key = _ref.key;
|
|
74
|
-
if (!visibleColumnKeys.includes(key)) {
|
|
75
|
-
visibleColumnKeys.splice(index, 0, key);
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
columns.sort(function (a, b) {
|
|
68
|
+
export var orderColumns = function orderColumns(columns, visibleColumnKeys) {
|
|
69
|
+
var visibleColumns = columns.filter(function (column) {
|
|
70
|
+
return visibleColumnKeys.includes(column.key);
|
|
71
|
+
}).sort(function (a, b) {
|
|
79
72
|
var indexB = visibleColumnKeys.indexOf(b.key);
|
|
80
73
|
var indexA = visibleColumnKeys.indexOf(a.key);
|
|
81
74
|
return indexA - indexB;
|
|
82
75
|
});
|
|
83
|
-
|
|
76
|
+
var invisibleColumns = columns.filter(function (column) {
|
|
77
|
+
return !visibleColumnKeys.includes(column.key);
|
|
78
|
+
});
|
|
79
|
+
return [].concat(_toConsumableArray(visibleColumns), _toConsumableArray(invisibleColumns));
|
|
84
80
|
};
|
|
85
81
|
var BASE_WIDTH = 8;
|
|
86
82
|
function getColumnWidth(key, type) {
|
|
@@ -105,21 +101,21 @@ function getColumnWidth(key, type) {
|
|
|
105
101
|
return undefined;
|
|
106
102
|
}
|
|
107
103
|
}
|
|
108
|
-
export var IssueLikeDataTableView = function IssueLikeDataTableView(
|
|
109
|
-
var testId =
|
|
110
|
-
onNextPage =
|
|
111
|
-
onLoadDatasourceDetails =
|
|
112
|
-
items =
|
|
113
|
-
columns =
|
|
114
|
-
|
|
115
|
-
renderItem =
|
|
116
|
-
visibleColumnKeys =
|
|
117
|
-
onVisibleColumnKeysChange =
|
|
118
|
-
status =
|
|
119
|
-
hasNextPage =
|
|
120
|
-
scrollableContainerHeight =
|
|
121
|
-
parentContainerRenderInstanceId =
|
|
122
|
-
extensionKey =
|
|
104
|
+
export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref) {
|
|
105
|
+
var testId = _ref.testId,
|
|
106
|
+
onNextPage = _ref.onNextPage,
|
|
107
|
+
onLoadDatasourceDetails = _ref.onLoadDatasourceDetails,
|
|
108
|
+
items = _ref.items,
|
|
109
|
+
columns = _ref.columns,
|
|
110
|
+
_ref$renderItem = _ref.renderItem,
|
|
111
|
+
renderItem = _ref$renderItem === void 0 ? fallbackRenderType : _ref$renderItem,
|
|
112
|
+
visibleColumnKeys = _ref.visibleColumnKeys,
|
|
113
|
+
onVisibleColumnKeysChange = _ref.onVisibleColumnKeysChange,
|
|
114
|
+
status = _ref.status,
|
|
115
|
+
hasNextPage = _ref.hasNextPage,
|
|
116
|
+
scrollableContainerHeight = _ref.scrollableContainerHeight,
|
|
117
|
+
parentContainerRenderInstanceId = _ref.parentContainerRenderInstanceId,
|
|
118
|
+
extensionKey = _ref.extensionKey;
|
|
123
119
|
var tableId = useMemo(function () {
|
|
124
120
|
return Symbol('unique-id');
|
|
125
121
|
}, []);
|
|
@@ -140,8 +136,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
140
136
|
orderedColumns = _useState6[0],
|
|
141
137
|
setOrderedColumns = _useState6[1];
|
|
142
138
|
useEffect(function () {
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
if (!hasFullSchema) {
|
|
140
|
+
setOrderedColumns(orderColumns(_toConsumableArray(columns), _toConsumableArray(visibleColumnKeys)));
|
|
141
|
+
}
|
|
142
|
+
}, [columns, visibleColumnKeys, hasFullSchema]);
|
|
145
143
|
useEffect(function () {
|
|
146
144
|
if (parentContainerRenderInstanceId && status === 'resolved') {
|
|
147
145
|
succeedUfoExperience({
|
|
@@ -151,8 +149,8 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
151
149
|
}, [parentContainerRenderInstanceId, status]);
|
|
152
150
|
var visibleSortedColumns = useMemo(function () {
|
|
153
151
|
return visibleColumnKeys.map(function (visibleKey) {
|
|
154
|
-
return orderedColumns.find(function (
|
|
155
|
-
var key =
|
|
152
|
+
return orderedColumns.find(function (_ref2) {
|
|
153
|
+
var key = _ref2.key;
|
|
156
154
|
return visibleKey === key;
|
|
157
155
|
});
|
|
158
156
|
}).filter(Boolean);
|
|
@@ -166,8 +164,8 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
166
164
|
var loadingRow = useMemo(function () {
|
|
167
165
|
return {
|
|
168
166
|
key: 'loading',
|
|
169
|
-
cells: visibleSortedColumns.map(function (
|
|
170
|
-
var key =
|
|
167
|
+
cells: visibleSortedColumns.map(function (_ref3) {
|
|
168
|
+
var key = _ref3.key;
|
|
171
169
|
var content = jsx(Skeleton, {
|
|
172
170
|
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
173
171
|
width: '100%',
|
|
@@ -181,10 +179,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
181
179
|
};
|
|
182
180
|
}, [visibleSortedColumns]);
|
|
183
181
|
var headColumns = useMemo(function () {
|
|
184
|
-
return visibleSortedColumns.map(function (
|
|
185
|
-
var key =
|
|
186
|
-
title =
|
|
187
|
-
type =
|
|
182
|
+
return visibleSortedColumns.map(function (_ref4) {
|
|
183
|
+
var key = _ref4.key,
|
|
184
|
+
title = _ref4.title,
|
|
185
|
+
type = _ref4.type;
|
|
188
186
|
return {
|
|
189
187
|
key: key,
|
|
190
188
|
content: title,
|
|
@@ -211,9 +209,9 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
211
209
|
return;
|
|
212
210
|
}
|
|
213
211
|
return combine(monitorForElements({
|
|
214
|
-
onDragStart: function onDragStart(
|
|
212
|
+
onDragStart: function onDragStart(_ref5) {
|
|
215
213
|
var _containerRef$current;
|
|
216
|
-
var location =
|
|
214
|
+
var location = _ref5.location;
|
|
217
215
|
initialAutoScrollerClientY.current = location.current.input.clientY;
|
|
218
216
|
autoScroller.start({
|
|
219
217
|
input: _objectSpread(_objectSpread({}, location.current.input), {}, {
|
|
@@ -226,18 +224,18 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
226
224
|
behavior: 'container-only'
|
|
227
225
|
});
|
|
228
226
|
},
|
|
229
|
-
onDrag: function onDrag(
|
|
227
|
+
onDrag: function onDrag(_ref6) {
|
|
230
228
|
var _containerRef$current2;
|
|
231
|
-
var location =
|
|
229
|
+
var location = _ref6.location;
|
|
232
230
|
autoScroller.updateInput({
|
|
233
231
|
input: _objectSpread(_objectSpread({}, location.current.input), {}, {
|
|
234
232
|
clientY: (initialAutoScrollerClientY.current || 0) + (((_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.offsetHeight) || 0) / 2
|
|
235
233
|
})
|
|
236
234
|
});
|
|
237
235
|
},
|
|
238
|
-
onDrop: function onDrop(
|
|
239
|
-
var source =
|
|
240
|
-
location =
|
|
236
|
+
onDrop: function onDrop(_ref7) {
|
|
237
|
+
var source = _ref7.source,
|
|
238
|
+
location = _ref7.location;
|
|
241
239
|
autoScroller.stop();
|
|
242
240
|
if (location.current.dropTargets.length === 0) {
|
|
243
241
|
return;
|
|
@@ -272,10 +270,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
272
270
|
return items.map(function (newRowData, rowIndex) {
|
|
273
271
|
return {
|
|
274
272
|
key: "".concat(identityColumnKey && newRowData[identityColumnKey] && newRowData[identityColumnKey].data || rowIndex),
|
|
275
|
-
cells: visibleSortedColumns.map(function (
|
|
273
|
+
cells: visibleSortedColumns.map(function (_ref8) {
|
|
276
274
|
var _newRowData$key;
|
|
277
|
-
var key =
|
|
278
|
-
type =
|
|
275
|
+
var key = _ref8.key,
|
|
276
|
+
type = _ref8.type;
|
|
279
277
|
var value = ((_newRowData$key = newRowData[key]) === null || _newRowData$key === void 0 ? void 0 : _newRowData$key.data) || newRowData[key];
|
|
280
278
|
var values = Array.isArray(value) ? value : [value];
|
|
281
279
|
var content = values.map(function (value) {
|
|
@@ -349,10 +347,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
349
347
|
}, jsx("thead", {
|
|
350
348
|
"data-testid": testId && "".concat(testId, "--head"),
|
|
351
349
|
css: [noDefaultBorderStyles, tableHeadStyles]
|
|
352
|
-
}, jsx("tr", null, headColumns.map(function (
|
|
353
|
-
var key =
|
|
354
|
-
content =
|
|
355
|
-
maxWidth =
|
|
350
|
+
}, jsx("tr", null, headColumns.map(function (_ref10, cellIndex) {
|
|
351
|
+
var key = _ref10.key,
|
|
352
|
+
content = _ref10.content,
|
|
353
|
+
maxWidth = _ref10.maxWidth;
|
|
356
354
|
var heading = jsx(Tooltip, {
|
|
357
355
|
content: content,
|
|
358
356
|
tag: "span",
|
|
@@ -363,10 +361,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
363
361
|
}, content));
|
|
364
362
|
if (onVisibleColumnKeysChange && hasData) {
|
|
365
363
|
var _containerRef$current3;
|
|
366
|
-
var previewRows = tableRows.map(function (
|
|
367
|
-
var cells =
|
|
368
|
-
var cell = cells.find(function (
|
|
369
|
-
var cellKey =
|
|
364
|
+
var previewRows = tableRows.map(function (_ref11) {
|
|
365
|
+
var cells = _ref11.cells;
|
|
366
|
+
var cell = cells.find(function (_ref12) {
|
|
367
|
+
var cellKey = _ref12.key;
|
|
370
368
|
return cellKey === key;
|
|
371
369
|
});
|
|
372
370
|
if (cell) {
|
|
@@ -404,18 +402,18 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref2) {
|
|
|
404
402
|
})))), jsx("tbody", {
|
|
405
403
|
css: noDefaultBorderStyles,
|
|
406
404
|
"data-testid": testId && "".concat(testId, "--body")
|
|
407
|
-
}, rows.map(function (
|
|
408
|
-
var key =
|
|
409
|
-
cells =
|
|
410
|
-
ref =
|
|
405
|
+
}, rows.map(function (_ref13) {
|
|
406
|
+
var key = _ref13.key,
|
|
407
|
+
cells = _ref13.cells,
|
|
408
|
+
ref = _ref13.ref;
|
|
411
409
|
return jsx("tr", {
|
|
412
410
|
key: key,
|
|
413
411
|
"data-testid": testId && "".concat(testId, "--row-").concat(key),
|
|
414
412
|
ref: ref
|
|
415
|
-
}, cells.map(function (
|
|
416
|
-
var cellKey =
|
|
417
|
-
content =
|
|
418
|
-
maxWidth =
|
|
413
|
+
}, cells.map(function (_ref14, cellIndex) {
|
|
414
|
+
var cellKey = _ref14.key,
|
|
415
|
+
content = _ref14.content,
|
|
416
|
+
maxWidth = _ref14.maxWidth;
|
|
419
417
|
return jsx("td", {
|
|
420
418
|
key: cellKey,
|
|
421
419
|
"data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::24da75a4acd4c592c9cfed50e9897853>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -117,7 +117,7 @@ export type AnalyticsEventAttributes = {
|
|
|
117
117
|
'ui.datasource.renderSuccess': DatasourceRenderSuccessAttributesType;
|
|
118
118
|
/**
|
|
119
119
|
* Fired when an inserted datasource fails to render */
|
|
120
|
-
'
|
|
120
|
+
'operational.datasource.renderFailure': DatasourceRenderFailureAttributesType;
|
|
121
121
|
/**
|
|
122
122
|
* Fired when user scrolls to the next page/list of the objects */
|
|
123
123
|
'track.nextItem.loaded': NextItemLoadedAttributesType;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export { EVENT_CHANNEL } from './constants';
|
|
3
2
|
export declare const useDatasourceAnalyticsEvents: () => {
|
|
4
3
|
fireEvent: <K extends keyof import("./generated/analytics.types").AnalyticsEventAttributes>(params_0: K, ...params_1: undefined extends import("./generated/analytics.types").AnalyticsEventAttributes[K] ? [param?: import("./generated/analytics.types").AnalyticsEventAttributes[K] | undefined] : [param: import("./generated/analytics.types").AnalyticsEventAttributes[K]]) => void;
|
|
5
4
|
};
|
|
6
|
-
export declare const DatasourceRenderFailedAnalyticsWrapper: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export type { AssetsDatasourceAdf, AssetsDatasourceParameters, } from './ui/asse
|
|
|
7
7
|
export { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from './ui/jira-issues-modal';
|
|
8
8
|
export { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from './ui/assets-modal';
|
|
9
9
|
export type { DatasourceAdf, DatasourceAdfView, DatasourceAdfTableView, } from '@atlaskit/linking-common/types';
|
|
10
|
-
export {
|
|
10
|
+
export { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from './analytics/wrappers/render-failed';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Ref } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
+
import { DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
4
5
|
import { IssueLikeDataTableViewProps } from './types';
|
|
5
6
|
export interface RowType {
|
|
6
7
|
cells: Array<RowCellType>;
|
|
@@ -12,5 +13,6 @@ export interface RowCellType {
|
|
|
12
13
|
content?: React.ReactNode | string;
|
|
13
14
|
maxWidth?: number;
|
|
14
15
|
}
|
|
16
|
+
export declare const orderColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
|
|
15
17
|
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, status, hasNextPage, scrollableContainerHeight, parentContainerRenderInstanceId, extensionKey, }: IssueLikeDataTableViewProps) => jsx.JSX.Element;
|
|
16
18
|
export declare const EmptyState: ({ isCompact, isLoading, testId }: import("./empty-state").Props) => jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^32.0.0",
|
|
34
34
|
"@atlaskit/analytics-next": "^9.1.3",
|
|
35
|
-
"@atlaskit/avatar": "^21.
|
|
35
|
+
"@atlaskit/avatar": "^21.4.0",
|
|
36
36
|
"@atlaskit/button": "^16.10.0",
|
|
37
37
|
"@atlaskit/dropdown-menu": "^11.14.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.16.0",
|
|
57
57
|
"@atlaskit/select": "^16.7.0",
|
|
58
|
-
"@atlaskit/smart-card": "^26.
|
|
58
|
+
"@atlaskit/smart-card": "^26.34.0",
|
|
59
59
|
"@atlaskit/spinner": "^15.6.0",
|
|
60
60
|
"@atlaskit/tag": "^11.6.0",
|
|
61
61
|
"@atlaskit/textfield": "5.6.8",
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
|
-
*
|
|
6
|
-
* @codegen <<SignedSource::05b7b33172b55f75035f0d77317a3f4f>>
|
|
7
|
-
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
|
-
*/
|
|
9
|
-
export type PackageMetaDataType = {
|
|
10
|
-
packageName: string;
|
|
11
|
-
packageVersion: string;
|
|
12
|
-
};
|
|
13
|
-
export type AnalyticsContextType = {
|
|
14
|
-
source: 'datasourceConfigModal';
|
|
15
|
-
};
|
|
16
|
-
export type AnalyticsContextAttributesType = {
|
|
17
|
-
dataProvider: 'jira-issues' | 'jsm-assets';
|
|
18
|
-
};
|
|
19
|
-
export type DatasourceModalDialogViewedAttributesType = {};
|
|
20
|
-
export type ModalReadyDatasourceAttributesType = {
|
|
21
|
-
instancesCount: number;
|
|
22
|
-
};
|
|
23
|
-
export type JqlEditorSearchedAttributesType = {};
|
|
24
|
-
export type FormSubmittedBasicSearchAttributesType = {};
|
|
25
|
-
export type EmptyResultShownDatasourceAttributesType = {};
|
|
26
|
-
export type ErrorShownAttributesType = {
|
|
27
|
-
reason: 'network' | 'access';
|
|
28
|
-
};
|
|
29
|
-
export type ButtonClickedSyncAttributesType = {
|
|
30
|
-
extensionKey: string | null;
|
|
31
|
-
destinationObjectTypes: unknown[];
|
|
32
|
-
};
|
|
33
|
-
export type ButtonClickedInsertAttributesType = {
|
|
34
|
-
searchCount: number;
|
|
35
|
-
totalItemCount: number;
|
|
36
|
-
displayedColumnCount: number | null;
|
|
37
|
-
display: 'datasource_inline' | 'datasource_table' | 'inline';
|
|
38
|
-
destinationObjectTypes: unknown[];
|
|
39
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
40
|
-
extensionKey: string | null;
|
|
41
|
-
actions: unknown[];
|
|
42
|
-
};
|
|
43
|
-
export type ButtonClickedCancelAttributesType = {
|
|
44
|
-
searchCount: number;
|
|
45
|
-
destinationObjectTypes: unknown[];
|
|
46
|
-
extensionKey: string | null;
|
|
47
|
-
actions: unknown[];
|
|
48
|
-
};
|
|
49
|
-
export type LinkClickedSingleItemAttributesType = {
|
|
50
|
-
extensionKey: string | null;
|
|
51
|
-
destinationObjectTypes: unknown[];
|
|
52
|
-
};
|
|
53
|
-
export type DatasourceRenderSuccessAttributesType = {
|
|
54
|
-
totalItemCount: number;
|
|
55
|
-
destinationObjectTypes: unknown[];
|
|
56
|
-
displayedColumnCount: number | null;
|
|
57
|
-
extensionKey: string | null;
|
|
58
|
-
display: 'table';
|
|
59
|
-
};
|
|
60
|
-
export type DatasourceRenderFailureAttributesType = {};
|
|
61
|
-
export type NextItemLoadedAttributesType = {
|
|
62
|
-
destinationObjectTypes: unknown[];
|
|
63
|
-
extensionKey: string | null;
|
|
64
|
-
loadedItemCount: number;
|
|
65
|
-
};
|
|
66
|
-
export type TableViewedDatasourceConfigModalAttributesType = {
|
|
67
|
-
destinationObjectTypes: unknown[];
|
|
68
|
-
totalItemCount: number;
|
|
69
|
-
displayedColumnCount: number | null;
|
|
70
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
71
|
-
extensionKey: string | null;
|
|
72
|
-
};
|
|
73
|
-
export type LinkViewedSingleItemAttributesType = {
|
|
74
|
-
destinationObjectTypes: unknown[];
|
|
75
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
76
|
-
extensionKey: string | null;
|
|
77
|
-
};
|
|
78
|
-
export type LinkViewedCountAttributesType = {
|
|
79
|
-
destinationObjectTypes: unknown[];
|
|
80
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
81
|
-
totalItemCount: number;
|
|
82
|
-
extensionKey: string | null;
|
|
83
|
-
};
|
|
84
|
-
export type AnalyticsEventAttributes = {
|
|
85
|
-
/**
|
|
86
|
-
* Fires when user sees modal dialog. */
|
|
87
|
-
'screen.datasourceModalDialog.viewed': DatasourceModalDialogViewedAttributesType;
|
|
88
|
-
/**
|
|
89
|
-
* Fires when the datasource modal is ready for searching and displaying search results. */
|
|
90
|
-
'ui.modal.ready.datasource': ModalReadyDatasourceAttributesType;
|
|
91
|
-
/**
|
|
92
|
-
* Fires when search is initiated via the search icon or enter key press for jql editor input field. */
|
|
93
|
-
'ui.jqlEditor.searched': JqlEditorSearchedAttributesType;
|
|
94
|
-
/**
|
|
95
|
-
* Fires when search is initiated via the search icon or enter key press from the basic input textfield. */
|
|
96
|
-
'ui.form.submitted.basicSearch': FormSubmittedBasicSearchAttributesType;
|
|
97
|
-
/**
|
|
98
|
-
* Fires when datasource results are empty. */
|
|
99
|
-
'ui.emptyResult.shown.datasource': EmptyResultShownDatasourceAttributesType;
|
|
100
|
-
/**
|
|
101
|
-
* Fires when datasource errors state is shown. */
|
|
102
|
-
'ui.error.shown': ErrorShownAttributesType;
|
|
103
|
-
/**
|
|
104
|
-
* Fired when user clicks on datasource table sync button */
|
|
105
|
-
'ui.button.clicked.sync': ButtonClickedSyncAttributesType;
|
|
106
|
-
/**
|
|
107
|
-
* Fired on insert button click */
|
|
108
|
-
'ui.button.clicked.insert': ButtonClickedInsertAttributesType;
|
|
109
|
-
/**
|
|
110
|
-
* Fired on cancel button click */
|
|
111
|
-
'ui.button.clicked.cancel': ButtonClickedCancelAttributesType;
|
|
112
|
-
/**
|
|
113
|
-
* Fired when user clicks on datasource items */
|
|
114
|
-
'ui.link.clicked.singleItem': LinkClickedSingleItemAttributesType;
|
|
115
|
-
/**
|
|
116
|
-
* Fired when an inserted datasource resolves / renders. */
|
|
117
|
-
'ui.datasource.renderSuccess': DatasourceRenderSuccessAttributesType;
|
|
118
|
-
/**
|
|
119
|
-
* Fired when an inserted datasource fails to render */
|
|
120
|
-
'ui.datasource.renderFailure': DatasourceRenderFailureAttributesType;
|
|
121
|
-
/**
|
|
122
|
-
* Fired when user scrolls to the next page/list of the objects */
|
|
123
|
-
'track.nextItem.loaded': NextItemLoadedAttributesType;
|
|
124
|
-
/**
|
|
125
|
-
* Fired when the datasource results are displayed as table inside of datasource configuration modal */
|
|
126
|
-
'ui.table.viewed.datasourceConfigModal': TableViewedDatasourceConfigModalAttributesType;
|
|
127
|
-
/**
|
|
128
|
-
* Fired when the datasource results are displayed as link(may be smart-link) for a single item */
|
|
129
|
-
'ui.link.viewed.singleItem': LinkViewedSingleItemAttributesType;
|
|
130
|
-
/**
|
|
131
|
-
* Fired when the datasource results are displayed as link( smart-link) in count mode. */
|
|
132
|
-
'ui.link.viewed.count': LinkViewedCountAttributesType;
|
|
133
|
-
};
|
|
134
|
-
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
|
-
*
|
|
6
|
-
* @codegen <<SignedSource::819168596ba17484cadda969f8ecf82d>>
|
|
7
|
-
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
|
-
*/
|
|
9
|
-
import { AnalyticsEventAttributes, EventKey } from './analytics.types';
|
|
10
|
-
type OptionalIfUndefined<T> = undefined extends T ? [
|
|
11
|
-
param?: T
|
|
12
|
-
] : [
|
|
13
|
-
param: T
|
|
14
|
-
];
|
|
15
|
-
export type EventPayloadAttributes<K extends EventKey> = OptionalIfUndefined<AnalyticsEventAttributes[K]>;
|
|
16
|
-
type EventTypes = 'ui' | 'track' | 'operational' | 'screen';
|
|
17
|
-
type ScreenEventPayload<K extends EventKey> = {
|
|
18
|
-
eventType: 'screen';
|
|
19
|
-
name: string;
|
|
20
|
-
action: 'viewed';
|
|
21
|
-
attributes?: AnalyticsEventAttributes[K];
|
|
22
|
-
};
|
|
23
|
-
type EventPayload<K extends EventKey> = {
|
|
24
|
-
eventType: Omit<EventTypes, 'screen'>;
|
|
25
|
-
actionSubject: string;
|
|
26
|
-
action: string;
|
|
27
|
-
actionSubjectId?: string;
|
|
28
|
-
attributes?: AnalyticsEventAttributes[K];
|
|
29
|
-
};
|
|
30
|
-
declare const createEventPayload: <K extends keyof AnalyticsEventAttributes>(eventKey: K, ...[attributes]: OptionalIfUndefined<AnalyticsEventAttributes[K]>) => ScreenEventPayload<K> | EventPayload<K>;
|
|
31
|
-
export default createEventPayload;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const useAnalyticsEvents: () => {
|
|
2
|
-
fireEvent: <K extends keyof import("./analytics.types").AnalyticsEventAttributes>(params_0: K, ...params_1: undefined extends import("./analytics.types").AnalyticsEventAttributes[K] ? [
|
|
3
|
-
param?: import("./analytics.types").AnalyticsEventAttributes[K] | undefined
|
|
4
|
-
] : [
|
|
5
|
-
param: import("./analytics.types").AnalyticsEventAttributes[K]
|
|
6
|
-
]) => void;
|
|
7
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export { EVENT_CHANNEL } from './constants';
|
|
3
|
-
export declare const useDatasourceAnalyticsEvents: () => {
|
|
4
|
-
fireEvent: <K extends keyof import("./generated/analytics.types").AnalyticsEventAttributes>(params_0: K, ...params_1: undefined extends import("./generated/analytics.types").AnalyticsEventAttributes[K] ? [
|
|
5
|
-
param?: import("./generated/analytics.types").AnalyticsEventAttributes[K] | undefined
|
|
6
|
-
] : [
|
|
7
|
-
param: import("./generated/analytics.types").AnalyticsEventAttributes[K]
|
|
8
|
-
]) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const DatasourceRenderFailedAnalyticsWrapper: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum DatasourceAction {
|
|
2
|
-
COLUMN_ADDED = "column added",
|
|
3
|
-
COLUMN_REMOVED = "column removed",
|
|
4
|
-
COLUMN_REORDERED = "column reordered",
|
|
5
|
-
INSTANCE_UPDATED = "instance updated",
|
|
6
|
-
QUERY_UPDATED = "query updated",
|
|
7
|
-
DISPLAY_VIEW_CHANGED = "display view changed",
|
|
8
|
-
NEXT_PAGE_SCROLLED = "next page scrolled"
|
|
9
|
-
}
|
|
10
|
-
export declare enum DatasourceDisplay {
|
|
11
|
-
DATASOURCE_TABLE = "datasource_table",
|
|
12
|
-
DATASOURCE_INLINE = "datasource_inline",
|
|
13
|
-
INLINE = "inline"
|
|
14
|
-
}
|
|
15
|
-
export declare enum DatasourceSearchMethod {
|
|
16
|
-
DATASOURCE_BASIC_FILTER = "datasource_basic_filter",
|
|
17
|
-
DATASOURCE_SEARCH_QUERY = "datasource_search_query"
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
|
-
interface DataRenderedUfoExperienceProps {
|
|
3
|
-
status: DatasourceTableStatusType;
|
|
4
|
-
experienceId: string;
|
|
5
|
-
itemCount: number;
|
|
6
|
-
canBeLink?: boolean;
|
|
7
|
-
extensionKey?: string | null;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hook to mark DataRendered UFO experience as either Success or Failure
|
|
11
|
-
* 1. Success when
|
|
12
|
-
* * its rendered as a link
|
|
13
|
-
* * it returns empty results
|
|
14
|
-
* * the request is unauthorized
|
|
15
|
-
* 2. Fail when
|
|
16
|
-
* * request is rejected
|
|
17
|
-
*
|
|
18
|
-
* Note:
|
|
19
|
-
* * When the request is resolved as a datasource table, it will be marked success in the table component, every other success case is marked by this hook
|
|
20
|
-
*/
|
|
21
|
-
export declare const useDataRenderedUfoExperience: ({ status, experienceId, itemCount, canBeLink, extensionKey, }: DataRenderedUfoExperienceProps) => void;
|
|
22
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UfoExperience } from './types';
|
|
2
|
-
export declare const startUfoExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
3
|
-
export declare const succeedUfoExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
4
|
-
export declare const failUfoExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
5
|
-
export declare const addMetadataToExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface DatasourceRendered {
|
|
2
|
-
name: 'datasource-rendered';
|
|
3
|
-
metadata?: {
|
|
4
|
-
extensionKey?: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
interface ColumnPickerRendered {
|
|
8
|
-
name: 'column-picker-rendered';
|
|
9
|
-
metadata?: {
|
|
10
|
-
extensionKey?: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export type UfoExperience = DatasourceRendered | ColumnPickerRendered;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type JiraSearchMethod = 'basic' | 'jql';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
-
import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
|
|
3
|
-
export type UseAssetsClientState = {
|
|
4
|
-
workspaceId: string | undefined;
|
|
5
|
-
workspaceError: Error | undefined;
|
|
6
|
-
objectSchema: ObjectSchema | undefined;
|
|
7
|
-
assetsClientLoading: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const useAssetsClient: (initialParameters?: AssetsDatasourceParameters) => UseAssetsClientState;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { DatasourceDataResponseItem, DatasourceParameters, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
|
-
export interface onNextPageProps {
|
|
3
|
-
isSchemaFromData?: boolean;
|
|
4
|
-
shouldRequestFirstPage?: boolean;
|
|
5
|
-
shouldForceRequest?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type NextPageType = (requestInfo?: onNextPageProps) => void;
|
|
8
|
-
interface ResetOptions {
|
|
9
|
-
shouldForceRequest?: boolean;
|
|
10
|
-
shouldResetColumns?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface DatasourceTableState {
|
|
13
|
-
status: DatasourceTableStatusType;
|
|
14
|
-
onNextPage: NextPageType;
|
|
15
|
-
reset: (options?: ResetOptions) => void;
|
|
16
|
-
loadDatasourceDetails: () => void;
|
|
17
|
-
responseItems: DatasourceDataResponseItem[];
|
|
18
|
-
hasNextPage: boolean;
|
|
19
|
-
columns: DatasourceResponseSchemaProperty[];
|
|
20
|
-
defaultVisibleColumnKeys: string[];
|
|
21
|
-
totalCount?: number;
|
|
22
|
-
destinationObjectTypes: string[];
|
|
23
|
-
extensionKey?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface DatasourceTableStateProps {
|
|
26
|
-
datasourceId: string;
|
|
27
|
-
parameters?: DatasourceParameters;
|
|
28
|
-
fieldKeys?: string[];
|
|
29
|
-
}
|
|
30
|
-
export declare const useDatasourceTableState: ({ datasourceId, parameters, fieldKeys, }: DatasourceTableStateProps) => DatasourceTableState;
|
|
31
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
-
export type UseObjectSchemasState = {
|
|
3
|
-
objectSchemasLoading: boolean;
|
|
4
|
-
objectSchemasError: Error | undefined;
|
|
5
|
-
objectSchemas: ObjectSchema[] | undefined;
|
|
6
|
-
fetchObjectSchemas: (query: string) => Promise<ObjectSchema[] | undefined>;
|
|
7
|
-
};
|
|
8
|
-
export declare const useObjectSchemas: (workspaceId: string) => UseObjectSchemasState;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type UseValidateAqlTextState = {
|
|
2
|
-
validateAqlTextLoading: boolean;
|
|
3
|
-
validateAqlTextError: Error | undefined;
|
|
4
|
-
isValidAqlText: boolean;
|
|
5
|
-
validateAqlText: (aql: string) => Promise<boolean>;
|
|
6
|
-
};
|
|
7
|
-
export declare const useValidateAqlText: (workspaceId: string, hostname?: string) => UseValidateAqlTextState;
|