@atlaskit/link-datasource 3.1.1 → 3.1.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 +10 -0
- package/dist/cjs/ui/common/modal/insert-button/index.js +2 -3
- package/dist/cjs/ui/jira-issues-modal/modal/ModalOld.js +3 -7
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +2 -14
- package/dist/es2019/ui/common/modal/insert-button/index.js +2 -3
- package/dist/es2019/ui/jira-issues-modal/modal/ModalOld.js +3 -7
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +2 -12
- package/dist/esm/ui/common/modal/insert-button/index.js +2 -3
- package/dist/esm/ui/jira-issues-modal/modal/ModalOld.js +3 -7
- package/dist/esm/ui/jira-issues-modal/modal/index.js +2 -14
- package/dist/types/ui/common/modal/insert-button/index.d.ts +1 -2
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/insert-button/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.d.ts +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#145338](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145338)
|
|
8
|
+
[`79fd934f962e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/79fd934f962e9) -
|
|
9
|
+
Fix the problem where user can change JQL in Jira SLLV and insert before they searched. Now it
|
|
10
|
+
will behave as Confluence SLLV such that only searched query/result will be inserted.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 3.1.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -24,7 +24,6 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
|
|
|
24
24
|
var testId = _ref.testId,
|
|
25
25
|
url = _ref.url,
|
|
26
26
|
getAnalyticsPayload = _ref.getAnalyticsPayload,
|
|
27
|
-
overwriteParameters = _ref.overwriteParameters,
|
|
28
27
|
children = _ref.children;
|
|
29
28
|
var _useDatasourceContext = (0, _datasourceContext.useDatasourceContext)(),
|
|
30
29
|
datasourceId = _useDatasourceContext.datasourceId,
|
|
@@ -70,7 +69,7 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
|
|
|
70
69
|
} else {
|
|
71
70
|
onInsert((0, _adf.buildDatasourceAdf)({
|
|
72
71
|
id: datasourceId,
|
|
73
|
-
parameters:
|
|
72
|
+
parameters: parameters,
|
|
74
73
|
views: [{
|
|
75
74
|
type: 'table',
|
|
76
75
|
properties: {
|
|
@@ -89,7 +88,7 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
|
|
|
89
88
|
}]
|
|
90
89
|
}, url), consumerEvent);
|
|
91
90
|
}
|
|
92
|
-
}, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert,
|
|
91
|
+
}, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert, parameters, totalCount, url, userInteractions, visibleColumnCount, visibleColumnKeys, wrappedColumnKeys]);
|
|
93
92
|
return (0, _react2.jsx)(_standardButton.default, {
|
|
94
93
|
appearance: "primary",
|
|
95
94
|
onClick: onInsertPressed,
|
|
@@ -271,11 +271,7 @@ var PlainJiraIssuesConfigModalOld = exports.PlainJiraIssuesConfigModalOld = func
|
|
|
271
271
|
if (!isParametersSet || !jql || !selectedJiraSite) {
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
|
-
|
|
275
|
-
// During insertion, we want the JQL of the datasource to be whatever is in the search bar,
|
|
276
|
-
// even if the user didn't previously click search
|
|
277
|
-
var upToDateJql = searchBarJql !== null && searchBarJql !== void 0 ? searchBarJql : jql;
|
|
278
|
-
var upToDateJqlUrl = selectedJiraSite && jql && "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(upToDateJql));
|
|
274
|
+
var upToDateJqlUrl = selectedJiraSite && jql && "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(jql));
|
|
279
275
|
var filterSelectionCount = _ui.availableBasicFilterTypes.reduce(function (current, filter) {
|
|
280
276
|
var _basicFilterSelection;
|
|
281
277
|
return _objectSpread(_objectSpread({}, current), {}, (0, _defineProperty2.default)({}, "".concat(filter, "BasicFilterSelectionCount"), ((_basicFilterSelection = basicFilterSelectionsSearchedWith.current[filter]) === null || _basicFilterSelection === void 0 ? void 0 : _basicFilterSelection.length) || 0));
|
|
@@ -327,7 +323,7 @@ var PlainJiraIssuesConfigModalOld = exports.PlainJiraIssuesConfigModalOld = func
|
|
|
327
323
|
id: datasourceId,
|
|
328
324
|
parameters: {
|
|
329
325
|
cloudId: cloudId,
|
|
330
|
-
jql:
|
|
326
|
+
jql: jql
|
|
331
327
|
},
|
|
332
328
|
views: [{
|
|
333
329
|
type: 'table',
|
|
@@ -347,7 +343,7 @@ var PlainJiraIssuesConfigModalOld = exports.PlainJiraIssuesConfigModalOld = func
|
|
|
347
343
|
}]
|
|
348
344
|
}, upToDateJqlUrl), consumerEvent);
|
|
349
345
|
}
|
|
350
|
-
}, [isParametersSet, jql, selectedJiraSite,
|
|
346
|
+
}, [isParametersSet, jql, selectedJiraSite, analyticsPayload, totalCount, currentViewMode, retrieveUrlForSmartCardRender, responseItems.length, onInsert, datasourceId, cloudId, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys, userInteractions]);
|
|
351
347
|
var handleViewModeChange = function handleViewModeChange(selectedMode) {
|
|
352
348
|
userInteractions.add(_types.DatasourceAction.DISPLAY_VIEW_CHANGED);
|
|
353
349
|
setCurrentViewMode(selectedMode);
|
|
@@ -339,20 +339,9 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
339
339
|
if (!jql || !(selectedJiraSite !== null && selectedJiraSite !== void 0 && selectedJiraSite.url)) {
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
// even if the user didn't previously click search
|
|
344
|
-
var upToDateJql = searchBarJql !== null && searchBarJql !== void 0 ? searchBarJql : jql;
|
|
345
|
-
var upToDateJqlUrl = "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(upToDateJql));
|
|
342
|
+
var upToDateJqlUrl = "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(jql));
|
|
346
343
|
return currentViewMode === 'inline' && responseItems.length === 1 ? retrieveUrlForSmartCardRender() : upToDateJqlUrl;
|
|
347
|
-
}, [currentViewMode, parameters === null || parameters === void 0 ? void 0 : parameters.jql, responseItems, retrieveUrlForSmartCardRender,
|
|
348
|
-
var updateParametersBeforeInsert = function updateParametersBeforeInsert(parameters) {
|
|
349
|
-
return {
|
|
350
|
-
cloudId: parameters.cloudId,
|
|
351
|
-
// searchBarJql will not be null at this point, since this function is only called when user press insert button
|
|
352
|
-
//
|
|
353
|
-
jql: searchBarJql || ''
|
|
354
|
-
};
|
|
355
|
-
};
|
|
344
|
+
}, [currentViewMode, parameters === null || parameters === void 0 ? void 0 : parameters.jql, responseItems, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url]);
|
|
356
345
|
return (0, _react2.jsx)(_intlMessagesProvider.IntlMessagesProvider, {
|
|
357
346
|
defaultMessages: _en.default,
|
|
358
347
|
loaderFn: _fetchMessagesForLocale.fetchMessagesForLocale
|
|
@@ -390,7 +379,6 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
390
379
|
}), !hasNoJiraSites && (0, _react2.jsx)(_insertButton.InsertButton, {
|
|
391
380
|
testId: "jira-datasource-modal--insert-button",
|
|
392
381
|
url: urlToInsert,
|
|
393
|
-
overwriteParameters: updateParametersBeforeInsert,
|
|
394
382
|
getAnalyticsPayload: getInsertButtonAnalyticsPayload
|
|
395
383
|
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages3.modalMessages.insertIssuesButtonText))))));
|
|
396
384
|
};
|
|
@@ -18,7 +18,6 @@ export const InsertButton = ({
|
|
|
18
18
|
testId,
|
|
19
19
|
url,
|
|
20
20
|
getAnalyticsPayload,
|
|
21
|
-
overwriteParameters,
|
|
22
21
|
children
|
|
23
22
|
}) => {
|
|
24
23
|
const {
|
|
@@ -69,7 +68,7 @@ export const InsertButton = ({
|
|
|
69
68
|
} else {
|
|
70
69
|
onInsert(buildDatasourceAdf({
|
|
71
70
|
id: datasourceId,
|
|
72
|
-
parameters
|
|
71
|
+
parameters,
|
|
73
72
|
views: [{
|
|
74
73
|
type: 'table',
|
|
75
74
|
properties: {
|
|
@@ -90,7 +89,7 @@ export const InsertButton = ({
|
|
|
90
89
|
}]
|
|
91
90
|
}, url), consumerEvent);
|
|
92
91
|
}
|
|
93
|
-
}, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert,
|
|
92
|
+
}, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert, parameters, totalCount, url, userInteractions, visibleColumnCount, visibleColumnKeys, wrappedColumnKeys]);
|
|
94
93
|
return jsx(Button, {
|
|
95
94
|
appearance: "primary",
|
|
96
95
|
onClick: onInsertPressed,
|
|
@@ -249,11 +249,7 @@ export const PlainJiraIssuesConfigModalOld = props => {
|
|
|
249
249
|
if (!isParametersSet || !jql || !selectedJiraSite) {
|
|
250
250
|
return;
|
|
251
251
|
}
|
|
252
|
-
|
|
253
|
-
// During insertion, we want the JQL of the datasource to be whatever is in the search bar,
|
|
254
|
-
// even if the user didn't previously click search
|
|
255
|
-
const upToDateJql = searchBarJql !== null && searchBarJql !== void 0 ? searchBarJql : jql;
|
|
256
|
-
const upToDateJqlUrl = selectedJiraSite && jql && `${selectedJiraSite.url}/issues/?jql=${encodeURIComponent(upToDateJql)}`;
|
|
252
|
+
const upToDateJqlUrl = selectedJiraSite && jql && `${selectedJiraSite.url}/issues/?jql=${encodeURIComponent(jql)}`;
|
|
257
253
|
const filterSelectionCount = availableBasicFilterTypes.reduce((current, filter) => {
|
|
258
254
|
var _basicFilterSelection;
|
|
259
255
|
return {
|
|
@@ -313,7 +309,7 @@ export const PlainJiraIssuesConfigModalOld = props => {
|
|
|
313
309
|
id: datasourceId,
|
|
314
310
|
parameters: {
|
|
315
311
|
cloudId,
|
|
316
|
-
jql
|
|
312
|
+
jql
|
|
317
313
|
},
|
|
318
314
|
views: [{
|
|
319
315
|
type: 'table',
|
|
@@ -335,7 +331,7 @@ export const PlainJiraIssuesConfigModalOld = props => {
|
|
|
335
331
|
}]
|
|
336
332
|
}, upToDateJqlUrl), consumerEvent);
|
|
337
333
|
}
|
|
338
|
-
}, [isParametersSet, jql, selectedJiraSite,
|
|
334
|
+
}, [isParametersSet, jql, selectedJiraSite, analyticsPayload, totalCount, currentViewMode, retrieveUrlForSmartCardRender, responseItems.length, onInsert, datasourceId, cloudId, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys, userInteractions]);
|
|
339
335
|
const handleViewModeChange = selectedMode => {
|
|
340
336
|
userInteractions.add(DatasourceAction.DISPLAY_VIEW_CHANGED);
|
|
341
337
|
setCurrentViewMode(selectedMode);
|
|
@@ -332,18 +332,9 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
332
332
|
if (!jql || !(selectedJiraSite !== null && selectedJiraSite !== void 0 && selectedJiraSite.url)) {
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
// even if the user didn't previously click search
|
|
337
|
-
const upToDateJql = searchBarJql !== null && searchBarJql !== void 0 ? searchBarJql : jql;
|
|
338
|
-
const upToDateJqlUrl = `${selectedJiraSite.url}/issues/?jql=${encodeURIComponent(upToDateJql)}`;
|
|
335
|
+
const upToDateJqlUrl = `${selectedJiraSite.url}/issues/?jql=${encodeURIComponent(jql)}`;
|
|
339
336
|
return currentViewMode === 'inline' && responseItems.length === 1 ? retrieveUrlForSmartCardRender() : upToDateJqlUrl;
|
|
340
|
-
}, [currentViewMode, parameters === null || parameters === void 0 ? void 0 : parameters.jql, responseItems, retrieveUrlForSmartCardRender,
|
|
341
|
-
const updateParametersBeforeInsert = parameters => ({
|
|
342
|
-
cloudId: parameters.cloudId,
|
|
343
|
-
// searchBarJql will not be null at this point, since this function is only called when user press insert button
|
|
344
|
-
//
|
|
345
|
-
jql: searchBarJql || ''
|
|
346
|
-
});
|
|
337
|
+
}, [currentViewMode, parameters === null || parameters === void 0 ? void 0 : parameters.jql, responseItems, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url]);
|
|
347
338
|
return jsx(IntlMessagesProvider, {
|
|
348
339
|
defaultMessages: i18nEN,
|
|
349
340
|
loaderFn: fetchMessagesForLocale
|
|
@@ -381,7 +372,6 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
381
372
|
}), !hasNoJiraSites && jsx(InsertButton, {
|
|
382
373
|
testId: "jira-datasource-modal--insert-button",
|
|
383
374
|
url: urlToInsert,
|
|
384
|
-
overwriteParameters: updateParametersBeforeInsert,
|
|
385
375
|
getAnalyticsPayload: getInsertButtonAnalyticsPayload
|
|
386
376
|
}, jsx(FormattedMessage, modalMessages.insertIssuesButtonText))))));
|
|
387
377
|
};
|
|
@@ -21,7 +21,6 @@ export var InsertButton = function InsertButton(_ref) {
|
|
|
21
21
|
var testId = _ref.testId,
|
|
22
22
|
url = _ref.url,
|
|
23
23
|
getAnalyticsPayload = _ref.getAnalyticsPayload,
|
|
24
|
-
overwriteParameters = _ref.overwriteParameters,
|
|
25
24
|
children = _ref.children;
|
|
26
25
|
var _useDatasourceContext = useDatasourceContext(),
|
|
27
26
|
datasourceId = _useDatasourceContext.datasourceId,
|
|
@@ -67,7 +66,7 @@ export var InsertButton = function InsertButton(_ref) {
|
|
|
67
66
|
} else {
|
|
68
67
|
onInsert(buildDatasourceAdf({
|
|
69
68
|
id: datasourceId,
|
|
70
|
-
parameters:
|
|
69
|
+
parameters: parameters,
|
|
71
70
|
views: [{
|
|
72
71
|
type: 'table',
|
|
73
72
|
properties: {
|
|
@@ -86,7 +85,7 @@ export var InsertButton = function InsertButton(_ref) {
|
|
|
86
85
|
}]
|
|
87
86
|
}, url), consumerEvent);
|
|
88
87
|
}
|
|
89
|
-
}, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert,
|
|
88
|
+
}, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert, parameters, totalCount, url, userInteractions, visibleColumnCount, visibleColumnKeys, wrappedColumnKeys]);
|
|
90
89
|
return jsx(Button, {
|
|
91
90
|
appearance: "primary",
|
|
92
91
|
onClick: onInsertPressed,
|
|
@@ -268,11 +268,7 @@ export var PlainJiraIssuesConfigModalOld = function PlainJiraIssuesConfigModalOl
|
|
|
268
268
|
if (!isParametersSet || !jql || !selectedJiraSite) {
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
// During insertion, we want the JQL of the datasource to be whatever is in the search bar,
|
|
273
|
-
// even if the user didn't previously click search
|
|
274
|
-
var upToDateJql = searchBarJql !== null && searchBarJql !== void 0 ? searchBarJql : jql;
|
|
275
|
-
var upToDateJqlUrl = selectedJiraSite && jql && "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(upToDateJql));
|
|
271
|
+
var upToDateJqlUrl = selectedJiraSite && jql && "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(jql));
|
|
276
272
|
var filterSelectionCount = availableBasicFilterTypes.reduce(function (current, filter) {
|
|
277
273
|
var _basicFilterSelection;
|
|
278
274
|
return _objectSpread(_objectSpread({}, current), {}, _defineProperty({}, "".concat(filter, "BasicFilterSelectionCount"), ((_basicFilterSelection = basicFilterSelectionsSearchedWith.current[filter]) === null || _basicFilterSelection === void 0 ? void 0 : _basicFilterSelection.length) || 0));
|
|
@@ -324,7 +320,7 @@ export var PlainJiraIssuesConfigModalOld = function PlainJiraIssuesConfigModalOl
|
|
|
324
320
|
id: datasourceId,
|
|
325
321
|
parameters: {
|
|
326
322
|
cloudId: cloudId,
|
|
327
|
-
jql:
|
|
323
|
+
jql: jql
|
|
328
324
|
},
|
|
329
325
|
views: [{
|
|
330
326
|
type: 'table',
|
|
@@ -344,7 +340,7 @@ export var PlainJiraIssuesConfigModalOld = function PlainJiraIssuesConfigModalOl
|
|
|
344
340
|
}]
|
|
345
341
|
}, upToDateJqlUrl), consumerEvent);
|
|
346
342
|
}
|
|
347
|
-
}, [isParametersSet, jql, selectedJiraSite,
|
|
343
|
+
}, [isParametersSet, jql, selectedJiraSite, analyticsPayload, totalCount, currentViewMode, retrieveUrlForSmartCardRender, responseItems.length, onInsert, datasourceId, cloudId, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys, userInteractions]);
|
|
348
344
|
var handleViewModeChange = function handleViewModeChange(selectedMode) {
|
|
349
345
|
userInteractions.add(DatasourceAction.DISPLAY_VIEW_CHANGED);
|
|
350
346
|
setCurrentViewMode(selectedMode);
|
|
@@ -337,20 +337,9 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
337
337
|
if (!jql || !(selectedJiraSite !== null && selectedJiraSite !== void 0 && selectedJiraSite.url)) {
|
|
338
338
|
return;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
// even if the user didn't previously click search
|
|
342
|
-
var upToDateJql = searchBarJql !== null && searchBarJql !== void 0 ? searchBarJql : jql;
|
|
343
|
-
var upToDateJqlUrl = "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(upToDateJql));
|
|
340
|
+
var upToDateJqlUrl = "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(jql));
|
|
344
341
|
return currentViewMode === 'inline' && responseItems.length === 1 ? retrieveUrlForSmartCardRender() : upToDateJqlUrl;
|
|
345
|
-
}, [currentViewMode, parameters === null || parameters === void 0 ? void 0 : parameters.jql, responseItems, retrieveUrlForSmartCardRender,
|
|
346
|
-
var updateParametersBeforeInsert = function updateParametersBeforeInsert(parameters) {
|
|
347
|
-
return {
|
|
348
|
-
cloudId: parameters.cloudId,
|
|
349
|
-
// searchBarJql will not be null at this point, since this function is only called when user press insert button
|
|
350
|
-
//
|
|
351
|
-
jql: searchBarJql || ''
|
|
352
|
-
};
|
|
353
|
-
};
|
|
342
|
+
}, [currentViewMode, parameters === null || parameters === void 0 ? void 0 : parameters.jql, responseItems, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url]);
|
|
354
343
|
return jsx(IntlMessagesProvider, {
|
|
355
344
|
defaultMessages: i18nEN,
|
|
356
345
|
loaderFn: fetchMessagesForLocale
|
|
@@ -388,7 +377,6 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
388
377
|
}), !hasNoJiraSites && jsx(InsertButton, {
|
|
389
378
|
testId: "jira-datasource-modal--insert-button",
|
|
390
379
|
url: urlToInsert,
|
|
391
|
-
overwriteParameters: updateParametersBeforeInsert,
|
|
392
380
|
getAnalyticsPayload: getInsertButtonAnalyticsPayload
|
|
393
381
|
}, jsx(FormattedMessage, modalMessages.insertIssuesButtonText))))));
|
|
394
382
|
};
|
|
@@ -9,6 +9,5 @@ export type InsertButtonProps<Parameters extends DatasourceParameters> = PropsWi
|
|
|
9
9
|
testId?: string;
|
|
10
10
|
url: string | undefined;
|
|
11
11
|
getAnalyticsPayload: () => Record<string, any>;
|
|
12
|
-
overwriteParameters?: (parameters: Parameters) => Parameters;
|
|
13
12
|
}>;
|
|
14
|
-
export declare const InsertButton: <Parameters extends DatasourceParameters>({ testId, url, getAnalyticsPayload,
|
|
13
|
+
export declare const InsertButton: <Parameters extends DatasourceParameters>({ testId, url, getAnalyticsPayload, children, }: InsertButtonProps<Parameters>) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PopupComponentProps } from '@atlaskit/popup';
|
|
3
|
-
export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "data-testid" | "tabIndex" | "role" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "appearance" | "data-testid" | "tabIndex" | "role" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -9,6 +9,5 @@ export type InsertButtonProps<Parameters extends DatasourceParameters> = PropsWi
|
|
|
9
9
|
testId?: string;
|
|
10
10
|
url: string | undefined;
|
|
11
11
|
getAnalyticsPayload: () => Record<string, any>;
|
|
12
|
-
overwriteParameters?: (parameters: Parameters) => Parameters;
|
|
13
12
|
}>;
|
|
14
|
-
export declare const InsertButton: <Parameters extends DatasourceParameters>({ testId, url, getAnalyticsPayload,
|
|
13
|
+
export declare const InsertButton: <Parameters extends DatasourceParameters>({ testId, url, getAnalyticsPayload, children, }: InsertButtonProps<Parameters>) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PopupComponentProps } from '@atlaskit/popup';
|
|
3
|
-
export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "data-testid" | "tabIndex" | "role" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "appearance" | "data-testid" | "tabIndex" | "role" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/adf-schema": "^40.9.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
39
|
-
"@atlaskit/atlassian-context": "^0.0.
|
|
39
|
+
"@atlaskit/atlassian-context": "^0.0.2",
|
|
40
40
|
"@atlaskit/avatar": "^21.15.0",
|
|
41
41
|
"@atlaskit/avatar-group": "^9.11.0",
|
|
42
42
|
"@atlaskit/badge": "^16.4.0",
|
|
43
|
-
"@atlaskit/button": "^20.
|
|
43
|
+
"@atlaskit/button": "^20.2.0",
|
|
44
44
|
"@atlaskit/datetime-picker": "^14.1.0",
|
|
45
45
|
"@atlaskit/dropdown-menu": "^12.18.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
@@ -60,25 +60,25 @@
|
|
|
60
60
|
"@atlaskit/link-client-extension": "^2.4.0",
|
|
61
61
|
"@atlaskit/linking-common": "^5.11.0",
|
|
62
62
|
"@atlaskit/linking-types": "^9.0.0",
|
|
63
|
-
"@atlaskit/logo": "^14.
|
|
63
|
+
"@atlaskit/logo": "^14.3.0",
|
|
64
64
|
"@atlaskit/lozenge": "^11.10.0",
|
|
65
|
-
"@atlaskit/modal-dialog": "^12.
|
|
65
|
+
"@atlaskit/modal-dialog": "^12.17.0",
|
|
66
66
|
"@atlaskit/outbound-auth-flow-client": "^3.4.5",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
68
|
-
"@atlaskit/popup": "^1.
|
|
68
|
+
"@atlaskit/popup": "^1.27.0",
|
|
69
69
|
"@atlaskit/pragmatic-drag-and-drop": "^1.3.0",
|
|
70
70
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
71
71
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.2.0",
|
|
72
72
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
73
|
-
"@atlaskit/primitives": "^12.
|
|
73
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
74
74
|
"@atlaskit/select": "^17.19.0",
|
|
75
|
-
"@atlaskit/smart-card": "^28.
|
|
75
|
+
"@atlaskit/smart-card": "^28.2.0",
|
|
76
76
|
"@atlaskit/smart-user-picker": "6.10.2",
|
|
77
77
|
"@atlaskit/spinner": "^16.3.0",
|
|
78
78
|
"@atlaskit/tag": "^12.6.0",
|
|
79
79
|
"@atlaskit/textfield": "6.5.1",
|
|
80
80
|
"@atlaskit/theme": "^13.0.0",
|
|
81
|
-
"@atlaskit/tokens": "^1.
|
|
81
|
+
"@atlaskit/tokens": "^1.61.0",
|
|
82
82
|
"@atlaskit/tooltip": "^18.7.0",
|
|
83
83
|
"@atlaskit/ufo": "^0.3.0",
|
|
84
84
|
"@atlaskit/width-detector": "^4.3.0",
|