@atlaskit/link-datasource 6.14.1 → 7.0.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/analytics/generated/create-event-payload.js +2 -2
  3. package/dist/cjs/analytics/generated/use-analytics-events.js +2 -2
  4. package/dist/cjs/ui/assets-modal/index.js +2 -23
  5. package/dist/cjs/ui/assets-modal/modal/index.js +59 -8
  6. package/dist/cjs/ui/confluence-search-modal/index.js +2 -23
  7. package/dist/cjs/ui/datasource-table-view/index.js +1 -20
  8. package/dist/cjs/ui/jira-issues-modal/index.js +2 -23
  9. package/dist/es2019/analytics/generated/create-event-payload.js +2 -2
  10. package/dist/es2019/analytics/generated/use-analytics-events.js +2 -2
  11. package/dist/es2019/ui/assets-modal/index.js +1 -12
  12. package/dist/es2019/ui/assets-modal/modal/index.js +50 -5
  13. package/dist/es2019/ui/confluence-search-modal/index.js +1 -12
  14. package/dist/es2019/ui/datasource-table-view/index.js +1 -12
  15. package/dist/es2019/ui/jira-issues-modal/index.js +1 -12
  16. package/dist/esm/analytics/generated/create-event-payload.js +2 -2
  17. package/dist/esm/analytics/generated/use-analytics-events.js +2 -2
  18. package/dist/esm/ui/assets-modal/index.js +1 -12
  19. package/dist/esm/ui/assets-modal/modal/index.js +59 -8
  20. package/dist/esm/ui/confluence-search-modal/index.js +1 -12
  21. package/dist/esm/ui/datasource-table-view/index.js +1 -12
  22. package/dist/esm/ui/jira-issues-modal/index.js +1 -12
  23. package/dist/types/analytics/generated/analytics.types.d.ts +2 -2
  24. package/dist/types/analytics/generated/create-event-payload.d.ts +2 -2
  25. package/dist/types/ui/assets-modal/index.d.ts +0 -8
  26. package/dist/types/ui/confluence-search-modal/index.d.ts +0 -8
  27. package/dist/types/ui/datasource-table-view/index.d.ts +0 -8
  28. package/dist/types/ui/jira-issues-modal/index.d.ts +0 -8
  29. package/package.json +30 -27
  30. package/dist/cjs/ui/issue-like-table/render-type/index.js +0 -19
  31. package/dist/es2019/ui/issue-like-table/render-type/index.js +0 -11
  32. package/dist/esm/ui/issue-like-table/render-type/index.js +0 -11
  33. package/dist/types/ui/issue-like-table/render-type/index.d.ts +0 -8
  34. package/elements/package.json +0 -10
  35. package/elements/render-type/package.json +0 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`0c7c7be927bde`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c7c7be927bde) -
8
+ Remove deprecated Volt re-export shims from public package entry points. Consumers should import
9
+ from the replacement subpaths or implementation entry points instead.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 6.14.2
16
+
17
+ ### Patch Changes
18
+
19
+ - [`3f172371c9b66`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f172371c9b66) -
20
+ Preserve the selected Assets columns when only the AQL query changes, and persist datasource
21
+ updates that only change parameters. Both behind feature gate
22
+ `platform_lp_sllv_preserve_assets_columns`.
23
+ - Updated dependencies
24
+
3
25
  ## 6.14.1
4
26
 
5
27
  ### Patch Changes
@@ -11,8 +11,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  *
12
12
  * Generates Typescript types for analytics events from analytics.spec.yaml
13
13
  *
14
- * @codegen <<SignedSource::3e1ed99ac9944625e5358af3c7ce631d>>
15
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
14
+ * @codegen <<SignedSource::44f56f27cbbaa6afed5bf9e40ede9ad3>>
15
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
16
16
  */
17
17
 
18
18
  var createEventPayload = function createEventPayload(eventKey) {
@@ -14,8 +14,8 @@ var _createEventPayload = _interopRequireDefault(require("./create-event-payload
14
14
  *
15
15
  * Generates Typescript types for analytics events from analytics.spec.yaml
16
16
  *
17
- * @codegen <<SignedSource::acff924d069eafb053d3209818c6810a>>
18
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
17
+ * @codegen <<SignedSource::50049b97279bd4c80145082104cdbde5>>
18
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
19
19
  */
20
20
 
21
21
  var useAnalyticsEvents = exports.useAnalyticsEvents = function useAnalyticsEvents() {
@@ -3,28 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ASSETS_LIST_OF_LINKS_DATASOURCE_ID = void 0;
7
- Object.defineProperty(exports, "AssetsConfigModal", {
8
- enumerable: true,
9
- get: function get() {
10
- return _AssetsConfigModalWithWrappers.AssetsConfigModalWithWrappers;
11
- }
12
- });
13
- Object.defineProperty(exports, "AssetsConfigModalWithWrappers", {
14
- enumerable: true,
15
- get: function get() {
16
- return _AssetsConfigModalWithWrappers.AssetsConfigModalWithWrappers;
17
- }
18
- });
19
- exports.default = void 0;
6
+ exports.default = exports.ASSETS_LIST_OF_LINKS_DATASOURCE_ID = void 0;
20
7
  var _AssetsConfigModalWithWrappers = require("./AssetsConfigModalWithWrappers");
21
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
22
-
23
8
  var ASSETS_LIST_OF_LINKS_DATASOURCE_ID = exports.ASSETS_LIST_OF_LINKS_DATASOURCE_ID = '361d618a-3c04-40ad-9b27-3c8ea6927020';
24
- var _default = exports.default = _AssetsConfigModalWithWrappers.AssetsConfigModalWithWrappers;
25
- /**
26
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
27
- */
28
- /**
29
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
30
- */
9
+ var _default = exports.default = _AssetsConfigModalWithWrappers.AssetsConfigModalWithWrappers;
@@ -23,6 +23,7 @@ var _modalFooter = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-
23
23
  var _modalHeader = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-header"));
24
24
  var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
25
25
  var _modalTransition = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-transition"));
26
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
26
27
  var _constants = require("../../../analytics/constants");
27
28
  var _index = require("../../../analytics/index");
28
29
  var _types = require("../../../analytics/types");
@@ -77,10 +78,15 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
77
78
  _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
78
79
  isNewSearch = _useState8[0],
79
80
  setIsNewSearch = _useState8[1];
80
- var _useState9 = (0, _react.useState)(),
81
+ // State rather than a ref because the reconciliation below reads it during render
82
+ var _useState9 = (0, _react.useState)(false),
81
83
  _useState0 = (0, _slicedToArray2.default)(_useState9, 2),
82
- errorState = _useState0[0],
83
- setErrorState = _useState0[1];
84
+ hasPreservedColumns = _useState0[0],
85
+ setHasPreservedColumns = _useState0[1];
86
+ var _useState1 = (0, _react.useState)(),
87
+ _useState10 = (0, _slicedToArray2.default)(_useState1, 2),
88
+ errorState = _useState10[0],
89
+ setErrorState = _useState10[1];
84
90
  var _useDatasourceAnalyti = (0, _index.useDatasourceAnalyticsEvents)(),
85
91
  fireEvent = _useDatasourceAnalyti.fireEvent;
86
92
  var experienceId = (0, _useDatasourceExperienceId.useDatasourceExperienceId)();
@@ -151,6 +157,26 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
151
157
  destinationObjectTypes = _useDatasourceTableSt.destinationObjectTypes,
152
158
  totalCount = _useDatasourceTableSt.totalCount;
153
159
 
160
+ // A preserved selection must drop whatever the edited query stopped reporting. This is adjusted
161
+ // during render, not in an effect: the table hook is called before this component's own effects
162
+ // are registered, so its effects run first and would read the columns still awaiting removal as
163
+ // newly selected ones - refetching for them, and throwing away the results just received. The
164
+ // re-render this schedules is discarded before commit, so the hook only ever sees the reconciled
165
+ // selection.
166
+ if ((0, _fg.fg)('platform_lp_sllv_preserve_assets_columns') && hasPreservedColumns && status === 'resolved' && columns.length > 0) {
167
+ var availableKeys = new Set(columns.map(function (_ref) {
168
+ var key = _ref.key;
169
+ return key;
170
+ }));
171
+ var selectedKeys = visibleColumnKeys !== null && visibleColumnKeys !== void 0 ? visibleColumnKeys : [];
172
+ var retainedKeys = selectedKeys.filter(function (key) {
173
+ return availableKeys.has(key);
174
+ });
175
+ if (retainedKeys.length !== selectedKeys.length) {
176
+ setVisibleColumnKeys(retainedKeys.length > 0 ? retainedKeys : defaultVisibleColumnKeys);
177
+ }
178
+ }
179
+
154
180
  /* ------------------------------ OBSERVABILITY ------------------------------ */
155
181
  var searchCount = (0, _react.useRef)(0);
156
182
  var userInteractions = (0, _useUserInteractions.useUserInteractions)();
@@ -212,9 +238,28 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
212
238
  setIsNewSearch(false);
213
239
  }, []);
214
240
  (0, _react.useEffect)(function () {
241
+ // A preserved selection owns the columns, so restoring the saved or default ones would undo it
242
+ if ((0, _fg.fg)('platform_lp_sllv_preserve_assets_columns') && hasPreservedColumns) {
243
+ return;
244
+ }
215
245
  var newVisibleColumnKeys = initialVisibleColumnKeys && initialVisibleColumnKeys.length > 0 && apiVersion === VERSION_TWO ? initialVisibleColumnKeys : defaultVisibleColumnKeys;
216
246
  setVisibleColumnKeys(newVisibleColumnKeys);
217
- }, [initialVisibleColumnKeys, defaultVisibleColumnKeys, apiVersion]);
247
+ }, [initialVisibleColumnKeys, defaultVisibleColumnKeys, apiVersion, hasPreservedColumns]);
248
+ (0, _react.useEffect)(function () {
249
+ // The response described none of the requested fields, so there is nothing valid to keep and
250
+ // no reported defaults to fall back to. Give up preserving and re-request the schema's own
251
+ // defaults. This one has to stay an effect because it issues a request.
252
+ if (!(0, _fg.fg)('platform_lp_sllv_preserve_assets_columns') || !hasPreservedColumns || status !== 'resolved' || columns.length > 0) {
253
+ return;
254
+ }
255
+ setHasPreservedColumns(false);
256
+ setVisibleColumnKeys([]);
257
+ setIsNewSearch(true);
258
+ reset({
259
+ shouldForceRequest: true,
260
+ shouldResetColumns: true
261
+ });
262
+ }, [columns, hasPreservedColumns, reset, status]);
218
263
  (0, _react.useEffect)(function () {
219
264
  if (isNewSearch) {
220
265
  setVisibleColumnKeys(defaultVisibleColumnKeys);
@@ -290,16 +335,22 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
290
335
  if (aql !== searchAql) {
291
336
  userInteractions.add(_types.DatasourceAction.QUERY_UPDATED);
292
337
  }
338
+ // An empty selection has nothing worth preserving, and keeping it would stop the
339
+ // response's defaults from being adopted
340
+ var shouldPreserveColumns = (0, _fg.fg)('platform_lp_sllv_preserve_assets_columns') && schemaId === searchSchemaId && (visibleColumnKeys !== null && visibleColumnKeys !== void 0 ? visibleColumnKeys : []).length > 0;
341
+ setHasPreservedColumns(shouldPreserveColumns);
293
342
  setAql(searchAql);
294
343
  setSchemaId(searchSchemaId);
295
- setVisibleColumnKeys([]);
296
- setIsNewSearch(true);
344
+ if (!shouldPreserveColumns) {
345
+ setVisibleColumnKeys([]);
346
+ }
347
+ setIsNewSearch(!shouldPreserveColumns);
297
348
  reset({
298
349
  shouldForceRequest: true,
299
- shouldResetColumns: true
350
+ shouldResetColumns: !shouldPreserveColumns
300
351
  });
301
352
  }
302
- }, [aql, reset, schemaId, status, userInteractions]);
353
+ }, [aql, reset, schemaId, status, userInteractions, visibleColumnKeys]);
303
354
  var renderErrorState = (0, _react.useCallback)(function () {
304
355
  if (errorState) {
305
356
  switch (errorState) {
@@ -3,28 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CONFLUENCE_SEARCH_DATASOURCE_ID = void 0;
7
- Object.defineProperty(exports, "ConfluenceSearchConfigModal", {
8
- enumerable: true,
9
- get: function get() {
10
- return _ConfluenceSearchConfigModalWithWrappers.ConfluenceSearchConfigModalWithWrappers;
11
- }
12
- });
13
- Object.defineProperty(exports, "ConfluenceSearchConfigModalWithWrappers", {
14
- enumerable: true,
15
- get: function get() {
16
- return _ConfluenceSearchConfigModalWithWrappers.ConfluenceSearchConfigModalWithWrappers;
17
- }
18
- });
19
- exports.default = void 0;
6
+ exports.default = exports.CONFLUENCE_SEARCH_DATASOURCE_ID = void 0;
20
7
  var _ConfluenceSearchConfigModalWithWrappers = require("./ConfluenceSearchConfigModalWithWrappers");
21
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
22
-
23
8
  var CONFLUENCE_SEARCH_DATASOURCE_ID = exports.CONFLUENCE_SEARCH_DATASOURCE_ID = '768fc736-3af4-4a8f-b27e-203602bff8ca';
24
- var _default = exports.default = _ConfluenceSearchConfigModalWithWrappers.ConfluenceSearchConfigModalWithWrappers;
25
- /**
26
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
27
- */
28
- /**
29
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
30
- */
9
+ var _default = exports.default = _ConfluenceSearchConfigModalWithWrappers.ConfluenceSearchConfigModalWithWrappers;
@@ -3,25 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "DatasourceTableView", {
7
- enumerable: true,
8
- get: function get() {
9
- return _DatasourceTableViewWithWrappers.DatasourceTableViewWithWrappers;
10
- }
11
- });
12
- Object.defineProperty(exports, "DatasourceTableViewWithWrappers", {
13
- enumerable: true,
14
- get: function get() {
15
- return _DatasourceTableViewWithWrappers.DatasourceTableViewWithWrappers;
16
- }
17
- });
18
6
  exports.default = void 0;
19
7
  var _DatasourceTableViewWithWrappers = require("./DatasourceTableViewWithWrappers");
20
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
21
- var _default = exports.default = _DatasourceTableViewWithWrappers.DatasourceTableViewWithWrappers;
22
- /**
23
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
24
- */
25
- /**
26
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
27
- */
8
+ var _default = exports.default = _DatasourceTableViewWithWrappers.DatasourceTableViewWithWrappers;
@@ -3,28 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.JIRA_LIST_OF_LINKS_DATASOURCE_ID = void 0;
7
- Object.defineProperty(exports, "JiraIssuesConfigModal", {
8
- enumerable: true,
9
- get: function get() {
10
- return _JiraIssuesConfigModalWithWrappers.JiraIssuesConfigModalWithWrappers;
11
- }
12
- });
13
- Object.defineProperty(exports, "JiraIssuesConfigModalWithWrappers", {
14
- enumerable: true,
15
- get: function get() {
16
- return _JiraIssuesConfigModalWithWrappers.JiraIssuesConfigModalWithWrappers;
17
- }
18
- });
19
- exports.default = void 0;
6
+ exports.default = exports.JIRA_LIST_OF_LINKS_DATASOURCE_ID = void 0;
20
7
  var _JiraIssuesConfigModalWithWrappers = require("./JiraIssuesConfigModalWithWrappers");
21
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
22
-
23
8
  var JIRA_LIST_OF_LINKS_DATASOURCE_ID = exports.JIRA_LIST_OF_LINKS_DATASOURCE_ID = 'd8b75300-dfda-4519-b6cd-e49abbd50401';
24
- var _default = exports.default = _JiraIssuesConfigModalWithWrappers.JiraIssuesConfigModalWithWrappers;
25
- /**
26
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
27
- */
28
- /**
29
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
30
- */
9
+ var _default = exports.default = _JiraIssuesConfigModalWithWrappers.JiraIssuesConfigModalWithWrappers;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::3e1ed99ac9944625e5358af3c7ce631d>>
7
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
6
+ * @codegen <<SignedSource::44f56f27cbbaa6afed5bf9e40ede9ad3>>
7
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
8
8
  */
9
9
 
10
10
  const createEventPayload = (eventKey, ...[attributes]) => {
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::acff924d069eafb053d3209818c6810a>>
7
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
6
+ * @codegen <<SignedSource::50049b97279bd4c80145082104cdbde5>>
7
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
8
8
  */
9
9
  import { useCallback } from 'react';
10
10
  import { useAnalyticsEvents as useAnalyticsNextEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
@@ -1,14 +1,3 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { AssetsConfigModalWithWrappers } from './AssetsConfigModalWithWrappers';
4
2
  export const ASSETS_LIST_OF_LINKS_DATASOURCE_ID = '361d618a-3c04-40ad-9b27-3c8ea6927020';
5
- export default AssetsConfigModalWithWrappers;
6
-
7
- /**
8
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
9
- */
10
- export { AssetsConfigModalWithWrappers } from './AssetsConfigModalWithWrappers';
11
- /**
12
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
13
- */
14
- export { AssetsConfigModalWithWrappers as AssetsConfigModal } from './AssetsConfigModalWithWrappers';
3
+ export default AssetsConfigModalWithWrappers;
@@ -13,6 +13,7 @@ import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
13
13
  import ModalHeader from '@atlaskit/modal-dialog/modal-header';
14
14
  import ModalTitle from '@atlaskit/modal-dialog/modal-title';
15
15
  import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
16
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
16
17
  import { EVENT_CHANNEL } from '../../../analytics/constants';
17
18
  import { componentMetadata } from '../../../analytics/constants';
18
19
  import { useDatasourceAnalyticsEvents } from '../../../analytics/index';
@@ -55,6 +56,8 @@ const PlainAssetsConfigModal = props => {
55
56
  const apiVersion = initialParameters === null || initialParameters === void 0 ? void 0 : initialParameters.version;
56
57
  const [visibleColumnKeys, setVisibleColumnKeys] = useState(apiVersion !== VERSION_TWO ? [] : initialVisibleColumnKeys);
57
58
  const [isNewSearch, setIsNewSearch] = useState(false);
59
+ // State rather than a ref because the reconciliation below reads it during render
60
+ const [hasPreservedColumns, setHasPreservedColumns] = useState(false);
58
61
  const [errorState, setErrorState] = useState();
59
62
  const {
60
63
  fireEvent
@@ -126,6 +129,23 @@ const PlainAssetsConfigModal = props => {
126
129
  fieldKeys: isNewSearch ? [] : visibleColumnKeys
127
130
  });
128
131
 
132
+ // A preserved selection must drop whatever the edited query stopped reporting. This is adjusted
133
+ // during render, not in an effect: the table hook is called before this component's own effects
134
+ // are registered, so its effects run first and would read the columns still awaiting removal as
135
+ // newly selected ones - refetching for them, and throwing away the results just received. The
136
+ // re-render this schedules is discarded before commit, so the hook only ever sees the reconciled
137
+ // selection.
138
+ if (fg('platform_lp_sllv_preserve_assets_columns') && hasPreservedColumns && status === 'resolved' && columns.length > 0) {
139
+ const availableKeys = new Set(columns.map(({
140
+ key
141
+ }) => key));
142
+ const selectedKeys = visibleColumnKeys !== null && visibleColumnKeys !== void 0 ? visibleColumnKeys : [];
143
+ const retainedKeys = selectedKeys.filter(key => availableKeys.has(key));
144
+ if (retainedKeys.length !== selectedKeys.length) {
145
+ setVisibleColumnKeys(retainedKeys.length > 0 ? retainedKeys : defaultVisibleColumnKeys);
146
+ }
147
+ }
148
+
129
149
  /* ------------------------------ OBSERVABILITY ------------------------------ */
130
150
  const searchCount = useRef(0);
131
151
  const userInteractions = useUserInteractions();
@@ -188,9 +208,28 @@ const PlainAssetsConfigModal = props => {
188
208
  setIsNewSearch(false);
189
209
  }, []);
190
210
  useEffect(() => {
211
+ // A preserved selection owns the columns, so restoring the saved or default ones would undo it
212
+ if (fg('platform_lp_sllv_preserve_assets_columns') && hasPreservedColumns) {
213
+ return;
214
+ }
191
215
  const newVisibleColumnKeys = initialVisibleColumnKeys && initialVisibleColumnKeys.length > 0 && apiVersion === VERSION_TWO ? initialVisibleColumnKeys : defaultVisibleColumnKeys;
192
216
  setVisibleColumnKeys(newVisibleColumnKeys);
193
- }, [initialVisibleColumnKeys, defaultVisibleColumnKeys, apiVersion]);
217
+ }, [initialVisibleColumnKeys, defaultVisibleColumnKeys, apiVersion, hasPreservedColumns]);
218
+ useEffect(() => {
219
+ // The response described none of the requested fields, so there is nothing valid to keep and
220
+ // no reported defaults to fall back to. Give up preserving and re-request the schema's own
221
+ // defaults. This one has to stay an effect because it issues a request.
222
+ if (!fg('platform_lp_sllv_preserve_assets_columns') || !hasPreservedColumns || status !== 'resolved' || columns.length > 0) {
223
+ return;
224
+ }
225
+ setHasPreservedColumns(false);
226
+ setVisibleColumnKeys([]);
227
+ setIsNewSearch(true);
228
+ reset({
229
+ shouldForceRequest: true,
230
+ shouldResetColumns: true
231
+ });
232
+ }, [columns, hasPreservedColumns, reset, status]);
194
233
  useEffect(() => {
195
234
  if (isNewSearch) {
196
235
  setVisibleColumnKeys(defaultVisibleColumnKeys);
@@ -264,16 +303,22 @@ const PlainAssetsConfigModal = props => {
264
303
  if (aql !== searchAql) {
265
304
  userInteractions.add(DatasourceAction.QUERY_UPDATED);
266
305
  }
306
+ // An empty selection has nothing worth preserving, and keeping it would stop the
307
+ // response's defaults from being adopted
308
+ const shouldPreserveColumns = fg('platform_lp_sllv_preserve_assets_columns') && schemaId === searchSchemaId && (visibleColumnKeys !== null && visibleColumnKeys !== void 0 ? visibleColumnKeys : []).length > 0;
309
+ setHasPreservedColumns(shouldPreserveColumns);
267
310
  setAql(searchAql);
268
311
  setSchemaId(searchSchemaId);
269
- setVisibleColumnKeys([]);
270
- setIsNewSearch(true);
312
+ if (!shouldPreserveColumns) {
313
+ setVisibleColumnKeys([]);
314
+ }
315
+ setIsNewSearch(!shouldPreserveColumns);
271
316
  reset({
272
317
  shouldForceRequest: true,
273
- shouldResetColumns: true
318
+ shouldResetColumns: !shouldPreserveColumns
274
319
  });
275
320
  }
276
- }, [aql, reset, schemaId, status, userInteractions]);
321
+ }, [aql, reset, schemaId, status, userInteractions, visibleColumnKeys]);
277
322
  const renderErrorState = useCallback(() => {
278
323
  if (errorState) {
279
324
  switch (errorState) {
@@ -1,14 +1,3 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { ConfluenceSearchConfigModalWithWrappers } from './ConfluenceSearchConfigModalWithWrappers';
4
2
  export const CONFLUENCE_SEARCH_DATASOURCE_ID = '768fc736-3af4-4a8f-b27e-203602bff8ca';
5
- export default ConfluenceSearchConfigModalWithWrappers;
6
-
7
- /**
8
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
9
- */
10
- export { ConfluenceSearchConfigModalWithWrappers } from './ConfluenceSearchConfigModalWithWrappers';
11
- /**
12
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
13
- */
14
- export { ConfluenceSearchConfigModalWithWrappers as ConfluenceSearchConfigModal } from './ConfluenceSearchConfigModalWithWrappers';
3
+ export default ConfluenceSearchConfigModalWithWrappers;
@@ -1,13 +1,2 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { DatasourceTableViewWithWrappers } from './DatasourceTableViewWithWrappers';
4
- export default DatasourceTableViewWithWrappers;
5
-
6
- /**
7
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
8
- */
9
- export { DatasourceTableViewWithWrappers } from './DatasourceTableViewWithWrappers';
10
- /**
11
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
12
- */
13
- export { DatasourceTableViewWithWrappers as DatasourceTableView } from './DatasourceTableViewWithWrappers';
2
+ export default DatasourceTableViewWithWrappers;
@@ -1,14 +1,3 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { JiraIssuesConfigModalWithWrappers } from './JiraIssuesConfigModalWithWrappers';
4
2
  export const JIRA_LIST_OF_LINKS_DATASOURCE_ID = 'd8b75300-dfda-4519-b6cd-e49abbd50401';
5
- export default JiraIssuesConfigModalWithWrappers;
6
-
7
- /**
8
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
9
- */
10
- export { JiraIssuesConfigModalWithWrappers } from './JiraIssuesConfigModalWithWrappers';
11
- /**
12
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
13
- */
14
- export { JiraIssuesConfigModalWithWrappers as JiraIssuesConfigModal } from './JiraIssuesConfigModalWithWrappers';
3
+ export default JiraIssuesConfigModalWithWrappers;
@@ -4,8 +4,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  *
5
5
  * Generates Typescript types for analytics events from analytics.spec.yaml
6
6
  *
7
- * @codegen <<SignedSource::3e1ed99ac9944625e5358af3c7ce631d>>
8
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
7
+ * @codegen <<SignedSource::44f56f27cbbaa6afed5bf9e40ede9ad3>>
8
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
9
9
  */
10
10
 
11
11
  var createEventPayload = function createEventPayload(eventKey) {
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::acff924d069eafb053d3209818c6810a>>
7
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
6
+ * @codegen <<SignedSource::50049b97279bd4c80145082104cdbde5>>
7
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
8
8
  */
9
9
  import { useCallback } from 'react';
10
10
  import { useAnalyticsEvents as useAnalyticsNextEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
@@ -1,14 +1,3 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { AssetsConfigModalWithWrappers } from './AssetsConfigModalWithWrappers';
4
2
  export var ASSETS_LIST_OF_LINKS_DATASOURCE_ID = '361d618a-3c04-40ad-9b27-3c8ea6927020';
5
- export default AssetsConfigModalWithWrappers;
6
-
7
- /**
8
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
9
- */
10
- export { AssetsConfigModalWithWrappers } from './AssetsConfigModalWithWrappers';
11
- /**
12
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
13
- */
14
- export { AssetsConfigModalWithWrappers as AssetsConfigModal } from './AssetsConfigModalWithWrappers';
3
+ export default AssetsConfigModalWithWrappers;
@@ -17,6 +17,7 @@ import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
17
17
  import ModalHeader from '@atlaskit/modal-dialog/modal-header';
18
18
  import ModalTitle from '@atlaskit/modal-dialog/modal-title';
19
19
  import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
20
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
20
21
  import { EVENT_CHANNEL } from '../../../analytics/constants';
21
22
  import { componentMetadata } from '../../../analytics/constants';
22
23
  import { useDatasourceAnalyticsEvents } from '../../../analytics/index';
@@ -69,10 +70,15 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
69
70
  _useState8 = _slicedToArray(_useState7, 2),
70
71
  isNewSearch = _useState8[0],
71
72
  setIsNewSearch = _useState8[1];
72
- var _useState9 = useState(),
73
+ // State rather than a ref because the reconciliation below reads it during render
74
+ var _useState9 = useState(false),
73
75
  _useState0 = _slicedToArray(_useState9, 2),
74
- errorState = _useState0[0],
75
- setErrorState = _useState0[1];
76
+ hasPreservedColumns = _useState0[0],
77
+ setHasPreservedColumns = _useState0[1];
78
+ var _useState1 = useState(),
79
+ _useState10 = _slicedToArray(_useState1, 2),
80
+ errorState = _useState10[0],
81
+ setErrorState = _useState10[1];
76
82
  var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
77
83
  fireEvent = _useDatasourceAnalyti.fireEvent;
78
84
  var experienceId = useDatasourceExperienceId();
@@ -143,6 +149,26 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
143
149
  destinationObjectTypes = _useDatasourceTableSt.destinationObjectTypes,
144
150
  totalCount = _useDatasourceTableSt.totalCount;
145
151
 
152
+ // A preserved selection must drop whatever the edited query stopped reporting. This is adjusted
153
+ // during render, not in an effect: the table hook is called before this component's own effects
154
+ // are registered, so its effects run first and would read the columns still awaiting removal as
155
+ // newly selected ones - refetching for them, and throwing away the results just received. The
156
+ // re-render this schedules is discarded before commit, so the hook only ever sees the reconciled
157
+ // selection.
158
+ if (fg('platform_lp_sllv_preserve_assets_columns') && hasPreservedColumns && status === 'resolved' && columns.length > 0) {
159
+ var availableKeys = new Set(columns.map(function (_ref) {
160
+ var key = _ref.key;
161
+ return key;
162
+ }));
163
+ var selectedKeys = visibleColumnKeys !== null && visibleColumnKeys !== void 0 ? visibleColumnKeys : [];
164
+ var retainedKeys = selectedKeys.filter(function (key) {
165
+ return availableKeys.has(key);
166
+ });
167
+ if (retainedKeys.length !== selectedKeys.length) {
168
+ setVisibleColumnKeys(retainedKeys.length > 0 ? retainedKeys : defaultVisibleColumnKeys);
169
+ }
170
+ }
171
+
146
172
  /* ------------------------------ OBSERVABILITY ------------------------------ */
147
173
  var searchCount = useRef(0);
148
174
  var userInteractions = useUserInteractions();
@@ -204,9 +230,28 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
204
230
  setIsNewSearch(false);
205
231
  }, []);
206
232
  useEffect(function () {
233
+ // A preserved selection owns the columns, so restoring the saved or default ones would undo it
234
+ if (fg('platform_lp_sllv_preserve_assets_columns') && hasPreservedColumns) {
235
+ return;
236
+ }
207
237
  var newVisibleColumnKeys = initialVisibleColumnKeys && initialVisibleColumnKeys.length > 0 && apiVersion === VERSION_TWO ? initialVisibleColumnKeys : defaultVisibleColumnKeys;
208
238
  setVisibleColumnKeys(newVisibleColumnKeys);
209
- }, [initialVisibleColumnKeys, defaultVisibleColumnKeys, apiVersion]);
239
+ }, [initialVisibleColumnKeys, defaultVisibleColumnKeys, apiVersion, hasPreservedColumns]);
240
+ useEffect(function () {
241
+ // The response described none of the requested fields, so there is nothing valid to keep and
242
+ // no reported defaults to fall back to. Give up preserving and re-request the schema's own
243
+ // defaults. This one has to stay an effect because it issues a request.
244
+ if (!fg('platform_lp_sllv_preserve_assets_columns') || !hasPreservedColumns || status !== 'resolved' || columns.length > 0) {
245
+ return;
246
+ }
247
+ setHasPreservedColumns(false);
248
+ setVisibleColumnKeys([]);
249
+ setIsNewSearch(true);
250
+ reset({
251
+ shouldForceRequest: true,
252
+ shouldResetColumns: true
253
+ });
254
+ }, [columns, hasPreservedColumns, reset, status]);
210
255
  useEffect(function () {
211
256
  if (isNewSearch) {
212
257
  setVisibleColumnKeys(defaultVisibleColumnKeys);
@@ -282,16 +327,22 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
282
327
  if (aql !== searchAql) {
283
328
  userInteractions.add(DatasourceAction.QUERY_UPDATED);
284
329
  }
330
+ // An empty selection has nothing worth preserving, and keeping it would stop the
331
+ // response's defaults from being adopted
332
+ var shouldPreserveColumns = fg('platform_lp_sllv_preserve_assets_columns') && schemaId === searchSchemaId && (visibleColumnKeys !== null && visibleColumnKeys !== void 0 ? visibleColumnKeys : []).length > 0;
333
+ setHasPreservedColumns(shouldPreserveColumns);
285
334
  setAql(searchAql);
286
335
  setSchemaId(searchSchemaId);
287
- setVisibleColumnKeys([]);
288
- setIsNewSearch(true);
336
+ if (!shouldPreserveColumns) {
337
+ setVisibleColumnKeys([]);
338
+ }
339
+ setIsNewSearch(!shouldPreserveColumns);
289
340
  reset({
290
341
  shouldForceRequest: true,
291
- shouldResetColumns: true
342
+ shouldResetColumns: !shouldPreserveColumns
292
343
  });
293
344
  }
294
- }, [aql, reset, schemaId, status, userInteractions]);
345
+ }, [aql, reset, schemaId, status, userInteractions, visibleColumnKeys]);
295
346
  var renderErrorState = useCallback(function () {
296
347
  if (errorState) {
297
348
  switch (errorState) {
@@ -1,14 +1,3 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { ConfluenceSearchConfigModalWithWrappers } from './ConfluenceSearchConfigModalWithWrappers';
4
2
  export var CONFLUENCE_SEARCH_DATASOURCE_ID = '768fc736-3af4-4a8f-b27e-203602bff8ca';
5
- export default ConfluenceSearchConfigModalWithWrappers;
6
-
7
- /**
8
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
9
- */
10
- export { ConfluenceSearchConfigModalWithWrappers } from './ConfluenceSearchConfigModalWithWrappers';
11
- /**
12
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
13
- */
14
- export { ConfluenceSearchConfigModalWithWrappers as ConfluenceSearchConfigModal } from './ConfluenceSearchConfigModalWithWrappers';
3
+ export default ConfluenceSearchConfigModalWithWrappers;
@@ -1,13 +1,2 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { DatasourceTableViewWithWrappers } from './DatasourceTableViewWithWrappers';
4
- export default DatasourceTableViewWithWrappers;
5
-
6
- /**
7
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
8
- */
9
- export { DatasourceTableViewWithWrappers } from './DatasourceTableViewWithWrappers';
10
- /**
11
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
12
- */
13
- export { DatasourceTableViewWithWrappers as DatasourceTableView } from './DatasourceTableViewWithWrappers';
2
+ export default DatasourceTableViewWithWrappers;
@@ -1,14 +1,3 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
1
  import { JiraIssuesConfigModalWithWrappers } from './JiraIssuesConfigModalWithWrappers';
4
2
  export var JIRA_LIST_OF_LINKS_DATASOURCE_ID = 'd8b75300-dfda-4519-b6cd-e49abbd50401';
5
- export default JiraIssuesConfigModalWithWrappers;
6
-
7
- /**
8
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
9
- */
10
- export { JiraIssuesConfigModalWithWrappers } from './JiraIssuesConfigModalWithWrappers';
11
- /**
12
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
13
- */
14
- export { JiraIssuesConfigModalWithWrappers as JiraIssuesConfigModal } from './JiraIssuesConfigModalWithWrappers';
3
+ export default JiraIssuesConfigModalWithWrappers;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::6e96d8def9547f2a0cd3dfc9cc5efc83>>
7
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
6
+ * @codegen <<SignedSource::bcbf7e734551d1a973a47e62db84d4cb>>
7
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
8
8
  */
9
9
  export type ComponentMetaDataType = {
10
10
  component: string;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::3e1ed99ac9944625e5358af3c7ce631d>>
7
- * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
6
+ * @codegen <<SignedSource::44f56f27cbbaa6afed5bf9e40ede9ad3>>
7
+ * @codegenCommand afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource
8
8
  */
9
9
  import type { AnalyticsEventAttributes, EventKey } from './analytics.types';
10
10
  type OptionalIfUndefined<T> = undefined extends T ? [param?: T] : [param: T];
@@ -1,11 +1,3 @@
1
1
  import { AssetsConfigModalWithWrappers } from './AssetsConfigModalWithWrappers';
2
2
  export declare const ASSETS_LIST_OF_LINKS_DATASOURCE_ID = "361d618a-3c04-40ad-9b27-3c8ea6927020";
3
3
  export default AssetsConfigModalWithWrappers;
4
- /**
5
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
6
- */
7
- export { AssetsConfigModalWithWrappers } from './AssetsConfigModalWithWrappers';
8
- /**
9
- * @deprecated Use `import { AssetsConfigModalWithWrappers } from '@atlaskit/link-datasource/assets-config-modal-with-wrappers'` instead.
10
- */
11
- export { AssetsConfigModalWithWrappers as AssetsConfigModal } from './AssetsConfigModalWithWrappers';
@@ -1,11 +1,3 @@
1
1
  import { ConfluenceSearchConfigModalWithWrappers } from './ConfluenceSearchConfigModalWithWrappers';
2
2
  export declare const CONFLUENCE_SEARCH_DATASOURCE_ID = "768fc736-3af4-4a8f-b27e-203602bff8ca";
3
3
  export default ConfluenceSearchConfigModalWithWrappers;
4
- /**
5
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
6
- */
7
- export { ConfluenceSearchConfigModalWithWrappers } from './ConfluenceSearchConfigModalWithWrappers';
8
- /**
9
- * @deprecated Use `import { ConfluenceSearchConfigModalWithWrappers } from '@atlaskit/link-datasource/confluence-search-config-modal-with-wrappers'` instead.
10
- */
11
- export { ConfluenceSearchConfigModalWithWrappers as ConfluenceSearchConfigModal } from './ConfluenceSearchConfigModalWithWrappers';
@@ -1,10 +1,2 @@
1
1
  import { DatasourceTableViewWithWrappers } from './DatasourceTableViewWithWrappers';
2
2
  export default DatasourceTableViewWithWrappers;
3
- /**
4
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
5
- */
6
- export { DatasourceTableViewWithWrappers } from './DatasourceTableViewWithWrappers';
7
- /**
8
- * @deprecated Use `import { DatasourceTableViewWithWrappers } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers'` instead.
9
- */
10
- export { DatasourceTableViewWithWrappers as DatasourceTableView } from './DatasourceTableViewWithWrappers';
@@ -1,11 +1,3 @@
1
1
  import { JiraIssuesConfigModalWithWrappers } from './JiraIssuesConfigModalWithWrappers';
2
2
  export declare const JIRA_LIST_OF_LINKS_DATASOURCE_ID = "d8b75300-dfda-4519-b6cd-e49abbd50401";
3
3
  export default JiraIssuesConfigModalWithWrappers;
4
- /**
5
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
6
- */
7
- export { JiraIssuesConfigModalWithWrappers } from './JiraIssuesConfigModalWithWrappers';
8
- /**
9
- * @deprecated Use `import { JiraIssuesConfigModalWithWrappers } from '@atlaskit/link-datasource/jira-issues-config-modal-with-wrappers'` instead.
10
- */
11
- export { JiraIssuesConfigModalWithWrappers as JiraIssuesConfigModal } from './JiraIssuesConfigModalWithWrappers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "6.14.1",
3
+ "version": "7.0.0",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,61 +42,61 @@
42
42
  "@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.258.0",
43
43
  "@atlaskit/analytics-cross-product": "^2.2.0",
44
44
  "@atlaskit/analytics-next": "^12.5.0",
45
- "@atlaskit/atlassian-context": "^1.2.0",
46
- "@atlaskit/avatar": "^28.0.0",
45
+ "@atlaskit/atlassian-context": "^2.0.0",
46
+ "@atlaskit/avatar": "^29.0.0",
47
47
  "@atlaskit/avatar-group": "^14.3.0",
48
48
  "@atlaskit/badge": "^21.2.0",
49
49
  "@atlaskit/button": "^25.4.0",
50
50
  "@atlaskit/css": "^1.1.0",
51
- "@atlaskit/datetime-picker": "^18.7.0",
51
+ "@atlaskit/datetime-picker": "^19.0.0",
52
52
  "@atlaskit/dropdown-menu": "^18.3.0",
53
53
  "@atlaskit/editor-prosemirror": "^9.0.0",
54
54
  "@atlaskit/empty-state": "^12.2.0",
55
- "@atlaskit/feature-gate-js-client": "^6.0.0",
56
- "@atlaskit/flag": "^18.5.0",
57
- "@atlaskit/form": "^17.2.0",
58
- "@atlaskit/heading": "^7.2.0",
59
- "@atlaskit/icon": "^37.7.0",
55
+ "@atlaskit/feature-gate-js-client": "^7.0.0",
56
+ "@atlaskit/flag": "^19.0.0",
57
+ "@atlaskit/form": "^18.0.0",
58
+ "@atlaskit/heading": "^8.0.0",
59
+ "@atlaskit/icon": "^38.0.0",
60
60
  "@atlaskit/image": "^5.2.0",
61
61
  "@atlaskit/inline-edit": "^16.4.0",
62
- "@atlaskit/intl-messages-provider": "^4.3.0",
62
+ "@atlaskit/intl-messages-provider": "^5.0.0",
63
63
  "@atlaskit/jql-ast": "^4.2.0",
64
- "@atlaskit/jql-editor": "^7.8.0",
64
+ "@atlaskit/jql-editor": "^8.0.0",
65
65
  "@atlaskit/jql-editor-autocomplete-rest": "^4.6.0",
66
- "@atlaskit/layering": "^5.2.0",
66
+ "@atlaskit/layering": "^6.0.0",
67
67
  "@atlaskit/link": "^5.1.0",
68
- "@atlaskit/link-client-extension": "^7.3.0",
69
- "@atlaskit/link-provider": "^5.7.0",
70
- "@atlaskit/linking-common": "^12.3.0",
71
- "@atlaskit/linking-types": "^15.3.0",
68
+ "@atlaskit/link-client-extension": "^8.0.0",
69
+ "@atlaskit/link-provider": "^6.0.0",
70
+ "@atlaskit/linking-common": "^13.0.0",
71
+ "@atlaskit/linking-types": "^16.0.0",
72
72
  "@atlaskit/logo": "^23.1.0",
73
73
  "@atlaskit/lozenge": "^15.4.0",
74
- "@atlaskit/modal-dialog": "^16.6.0",
74
+ "@atlaskit/modal-dialog": "^17.0.0",
75
75
  "@atlaskit/object": "^2.3.0",
76
76
  "@atlaskit/outbound-auth-flow-client": "^4.2.0",
77
77
  "@atlaskit/platform-feature-experiments": "^0.3.0",
78
78
  "@atlaskit/platform-feature-flags": "^2.2.0",
79
79
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
80
80
  "@atlaskit/popup": "^6.3.0",
81
- "@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
82
- "@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.2.0",
81
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
82
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^3.0.0",
83
83
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^3.2.0",
84
84
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.2.0",
85
85
  "@atlaskit/primitives": "^22.5.0",
86
86
  "@atlaskit/react-compiler-gating": "^0.2.0",
87
87
  "@atlaskit/react-select": "^4.10.0",
88
- "@atlaskit/select": "^22.11.0",
89
- "@atlaskit/smart-card": "^45.28.0",
90
- "@atlaskit/smart-user-picker": "^11.9.0",
88
+ "@atlaskit/select": "^23.0.0",
89
+ "@atlaskit/smart-card": "^46.0.0",
90
+ "@atlaskit/smart-user-picker": "^12.0.0",
91
91
  "@atlaskit/spinner": "^20.4.0",
92
- "@atlaskit/tag": "^15.8.0",
92
+ "@atlaskit/tag": "^16.0.0",
93
93
  "@atlaskit/textfield": "^10.2.0",
94
94
  "@atlaskit/theme": "^28.2.0",
95
95
  "@atlaskit/toggle": "^17.3.0",
96
- "@atlaskit/tokens": "^19.0.0",
96
+ "@atlaskit/tokens": "^20.0.0",
97
97
  "@atlaskit/tooltip": "^24.3.0",
98
- "@atlaskit/ufo": "^1.2.0",
99
- "@atlaskit/user-picker": "^13.13.0",
98
+ "@atlaskit/ufo": "^2.0.0",
99
+ "@atlaskit/user-picker": "^14.0.0",
100
100
  "@atlaskit/visually-hidden": "^4.4.0",
101
101
  "@atlaskit/width-detector": "^7.2.0",
102
102
  "@babel/runtime": "^7.0.0",
@@ -120,7 +120,7 @@
120
120
  "devDependencies": {
121
121
  "@af/integration-testing": "workspace:^",
122
122
  "@af/visual-regression": "workspace:^",
123
- "@atlaskit/code": "^19.2.0",
123
+ "@atlaskit/code": "^20.0.0",
124
124
  "@atlaskit/json-ld-types": "^2.0.0",
125
125
  "@atlaskit/link-test-helpers": "^11.2.0",
126
126
  "@atlaskit/radio": "^10.2.0",
@@ -183,6 +183,9 @@
183
183
  "platform_lp_sllv_ux_improvements": {
184
184
  "type": "boolean"
185
185
  },
186
+ "platform_lp_sllv_preserve_assets_columns": {
187
+ "type": "boolean"
188
+ },
186
189
  "platform_lp_sllv_table_settings_menu": {
187
190
  "type": "boolean"
188
191
  },
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "renderType", {
7
- enumerable: true,
8
- get: function get() {
9
- return _renderType.renderType;
10
- }
11
- });
12
- Object.defineProperty(exports, "stringifyType", {
13
- enumerable: true,
14
- get: function get() {
15
- return _stringifyType.stringifyType;
16
- }
17
- });
18
- var _stringifyType = require("./stringifyType");
19
- var _renderType = require("./renderType");
@@ -1,11 +0,0 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
- /**
4
- * @deprecated Use `import { stringifyType } from '@atlaskit/link-datasource/elements'` instead.
5
- */
6
-
7
- export { stringifyType } from './stringifyType';
8
- /**
9
- * @deprecated Use `import { renderType } from '@atlaskit/link-datasource/elements'` instead.
10
- */
11
- export { renderType } from './renderType';
@@ -1,11 +0,0 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
-
3
- /**
4
- * @deprecated Use `import { stringifyType } from '@atlaskit/link-datasource/elements'` instead.
5
- */
6
-
7
- export { stringifyType } from './stringifyType';
8
- /**
9
- * @deprecated Use `import { renderType } from '@atlaskit/link-datasource/elements'` instead.
10
- */
11
- export { renderType } from './renderType';
@@ -1,8 +0,0 @@
1
- /**
2
- * @deprecated Use `import { stringifyType } from '@atlaskit/link-datasource/elements'` instead.
3
- */
4
- export { stringifyType } from './stringifyType';
5
- /**
6
- * @deprecated Use `import { renderType } from '@atlaskit/link-datasource/elements'` instead.
7
- */
8
- export { renderType } from './renderType';
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@atlaskit/link-datasource/elements",
3
- "main": "../dist/cjs/ui/issue-like-table/render-type/index.js",
4
- "module": "../dist/esm/ui/issue-like-table/render-type/index.js",
5
- "module:es2019": "../dist/es2019/ui/issue-like-table/render-type/index.js",
6
- "sideEffects": [
7
- "**/*.compiled.css"
8
- ],
9
- "types": "../dist/types/ui/issue-like-table/render-type/index.d.ts"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@atlaskit/link-datasource/elements/render-type",
3
- "main": "../../dist/cjs/ui/issue-like-table/render-type/index.js",
4
- "module": "../../dist/esm/ui/issue-like-table/render-type/index.js",
5
- "module:es2019": "../../dist/es2019/ui/issue-like-table/render-type/index.js",
6
- "sideEffects": [
7
- "**/*.compiled.css"
8
- ],
9
- "types": "../../dist/types/ui/issue-like-table/render-type/index.d.ts"
10
- }