@atlaskit/link-datasource 1.19.33 → 1.19.35

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 (26) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/analytics/constants.js +11 -4
  3. package/dist/cjs/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +1 -1
  4. package/dist/cjs/hooks/useDatasourceTableState.js +17 -8
  5. package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
  6. package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +1 -1
  7. package/dist/cjs/ui/jira-issues-modal/modal/index.js +1 -1
  8. package/dist/es2019/analytics/constants.js +10 -3
  9. package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +2 -2
  10. package/dist/es2019/hooks/useDatasourceTableState.js +14 -8
  11. package/dist/es2019/ui/assets-modal/modal/index.js +2 -2
  12. package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +2 -2
  13. package/dist/es2019/ui/jira-issues-modal/modal/index.js +2 -2
  14. package/dist/esm/analytics/constants.js +10 -3
  15. package/dist/esm/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +2 -2
  16. package/dist/esm/hooks/useDatasourceTableState.js +17 -8
  17. package/dist/esm/ui/assets-modal/modal/index.js +2 -2
  18. package/dist/esm/ui/datasource-table-view/datasourceTableView.js +2 -2
  19. package/dist/esm/ui/jira-issues-modal/modal/index.js +2 -2
  20. package/dist/types/analytics/constants.d.ts +11 -2
  21. package/dist/types/analytics/generated/analytics.types.d.ts +3 -4
  22. package/dist/types/hooks/useDatasourceTableState.d.ts +2 -0
  23. package/dist/types-ts4.5/analytics/constants.d.ts +11 -2
  24. package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +3 -4
  25. package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +2 -0
  26. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 1.19.35
4
+
5
+ ### Patch Changes
6
+
7
+ - [#63616](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63616) [`01ee02f34d54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01ee02f34d54) - Fixes issue duplication in list of links after adding columns through the config modal.
8
+
9
+ ## 1.19.34
10
+
11
+ ### Patch Changes
12
+
13
+ - [#62410](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62410) [`57566ae14827`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57566ae14827) - Added a global analytics context that adds `component` to context of all analytic events to generate `componentHierarchy` attribute.
14
+
3
15
  ## 1.19.33
4
16
 
5
17
  ### Patch Changes
@@ -3,9 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.packageMetaData = exports.EVENT_CHANNEL = void 0;
6
+ exports.componentMetadata = exports.EVENT_CHANNEL = void 0;
7
7
  var EVENT_CHANNEL = exports.EVENT_CHANNEL = 'media';
8
- var packageMetaData = exports.packageMetaData = {
9
- packageName: "@atlaskit/link-datasource",
10
- packageVersion: "1.19.33"
8
+ var componentMetadata = exports.componentMetadata = {
9
+ tableView: {
10
+ component: 'datasourceTable'
11
+ },
12
+ configModal: {
13
+ component: 'datasourceConfigModal'
14
+ },
15
+ generic: {
16
+ component: 'datasource'
17
+ }
11
18
  };
@@ -8,7 +8,7 @@ var _react = require("react");
8
8
  var _analyticsNext = require("@atlaskit/analytics-next");
9
9
  var _constants = require("../../constants");
10
10
  var _index = require("../../index");
11
- var DatasourceRenderFailedAnalyticsWrapper = (0, _analyticsNext.withAnalyticsContext)(_constants.packageMetaData)(function (props) {
11
+ var DatasourceRenderFailedAnalyticsWrapper = (0, _analyticsNext.withAnalyticsContext)(_constants.componentMetadata.generic)(function (props) {
12
12
  var _useDatasourceAnalyti = (0, _index.useDatasourceAnalyticsEvents)(),
13
13
  fireEvent = _useDatasourceAnalyti.fireEvent;
14
14
  (0, _react.useEffect)(function () {
@@ -308,18 +308,26 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
308
308
  }
309
309
  }, _callee2, null, [[7, 39]]);
310
310
  })), [captureError, parameters, fieldKeys, nextCursor, getDatasourceData, datasourceId, responseItems === null || responseItems === void 0 ? void 0 : responseItems.length, applySchemaProperties, fireEvent, fullSchema]);
311
- var reset = (0, _react.useCallback)(function (options) {
311
+ var reset = (0, _react.useCallback)(function () {
312
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
313
+ var _ref4 = options,
314
+ _ref4$shouldResetFull = _ref4.shouldResetFullSchema,
315
+ shouldResetFullSchema = _ref4$shouldResetFull === void 0 ? true : _ref4$shouldResetFull,
316
+ _ref4$shouldForceRequ = _ref4.shouldForceRequest,
317
+ shouldForceRequest = _ref4$shouldForceRequ === void 0 ? false : _ref4$shouldForceRequ,
318
+ _ref4$shouldResetColu = _ref4.shouldResetColumns,
319
+ shouldResetColumns = _ref4$shouldResetColu === void 0 ? false : _ref4$shouldResetColu;
312
320
  setStatus('empty');
313
321
  setResponseItems([]);
314
322
  setHasNextPage(true);
315
323
  setNextCursor(undefined);
316
324
  setTotalCount(undefined);
317
325
  setLastRequestedFieldKeys([]);
318
- setFullSchema({
326
+ shouldResetFullSchema && setFullSchema({
319
327
  properties: []
320
328
  });
321
- setShouldForceRequest((options === null || options === void 0 ? void 0 : options.shouldForceRequest) || false);
322
- if (options !== null && options !== void 0 && options.shouldResetColumns) {
329
+ setShouldForceRequest(shouldForceRequest);
330
+ if (shouldResetColumns) {
323
331
  setColumns([]);
324
332
  setDefaultVisibleColumnKeys([]);
325
333
  }
@@ -354,11 +362,12 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
354
362
  return responseItemKeys.includes(key);
355
363
  });
356
364
  });
365
+
366
+ // if there is no data for the new columns, resetting the state triggers the request of new data (onNextPage)
367
+ // but the schema should not be reset as it is already loaded
357
368
  if (!hasDataForColumns) {
358
- reset();
359
- void onNextPage({
360
- isSchemaFromData: false,
361
- shouldRequestFirstPage: true
369
+ reset({
370
+ shouldResetFullSchema: false
362
371
  });
363
372
  }
364
373
  }
@@ -380,7 +380,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
380
380
  var analyticsContextAttributes = {
381
381
  dataProvider: 'jsm-assets'
382
382
  };
383
- var analyticsContextData = _objectSpread(_objectSpread({}, _constants.packageMetaData), {}, {
383
+ var analyticsContextData = _objectSpread(_objectSpread({}, _constants.componentMetadata.configModal), {}, {
384
384
  source: 'datasourceConfigModal'
385
385
  });
386
386
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -162,4 +162,4 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
162
162
  url: url
163
163
  })));
164
164
  };
165
- var DatasourceTableView = exports.DatasourceTableView = (0, _analyticsNext.withAnalyticsContext)(_constants.packageMetaData)(DatasourceTableViewWithoutAnalytics);
165
+ var DatasourceTableView = exports.DatasourceTableView = (0, _analyticsNext.withAnalyticsContext)(_constants.componentMetadata.tableView)(DatasourceTableViewWithoutAnalytics);
@@ -607,7 +607,7 @@ var PlainJiraIssuesConfigModal = exports.PlainJiraIssuesConfigModal = function P
607
607
  var analyticsContextAttributes = {
608
608
  dataProvider: 'jira-issues'
609
609
  };
610
- var analyticsContextData = _objectSpread(_objectSpread({}, _constants.packageMetaData), {}, {
610
+ var analyticsContextData = _objectSpread(_objectSpread({}, _constants.componentMetadata.configModal), {}, {
611
611
  source: 'datasourceConfigModal'
612
612
  });
613
613
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -1,5 +1,12 @@
1
1
  export const EVENT_CHANNEL = 'media';
2
- export const packageMetaData = {
3
- packageName: "@atlaskit/link-datasource",
4
- packageVersion: "1.19.33"
2
+ export const componentMetadata = {
3
+ tableView: {
4
+ component: 'datasourceTable'
5
+ },
6
+ configModal: {
7
+ component: 'datasourceConfigModal'
8
+ },
9
+ generic: {
10
+ component: 'datasource'
11
+ }
5
12
  };
@@ -1,8 +1,8 @@
1
1
  import { useEffect } from 'react';
2
2
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
3
- import { packageMetaData } from '../../constants';
3
+ import { componentMetadata } from '../../constants';
4
4
  import { useDatasourceAnalyticsEvents } from '../../index';
5
- const DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(packageMetaData)(props => {
5
+ const DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(componentMetadata.generic)(props => {
6
6
  const {
7
7
  fireEvent
8
8
  } = useDatasourceAnalyticsEvents();
@@ -189,18 +189,23 @@ export const useDatasourceTableState = ({
189
189
  setStatus('rejected');
190
190
  }
191
191
  }, [captureError, parameters, fieldKeys, nextCursor, getDatasourceData, datasourceId, responseItems === null || responseItems === void 0 ? void 0 : responseItems.length, applySchemaProperties, fireEvent, fullSchema]);
192
- const reset = useCallback(options => {
192
+ const reset = useCallback((options = {}) => {
193
+ const {
194
+ shouldResetFullSchema = true,
195
+ shouldForceRequest = false,
196
+ shouldResetColumns = false
197
+ } = options;
193
198
  setStatus('empty');
194
199
  setResponseItems([]);
195
200
  setHasNextPage(true);
196
201
  setNextCursor(undefined);
197
202
  setTotalCount(undefined);
198
203
  setLastRequestedFieldKeys([]);
199
- setFullSchema({
204
+ shouldResetFullSchema && setFullSchema({
200
205
  properties: []
201
206
  });
202
- setShouldForceRequest((options === null || options === void 0 ? void 0 : options.shouldForceRequest) || false);
203
- if (options !== null && options !== void 0 && options.shouldResetColumns) {
207
+ setShouldForceRequest(shouldForceRequest);
208
+ if (shouldResetColumns) {
204
209
  setColumns([]);
205
210
  setDefaultVisibleColumnKeys([]);
206
211
  }
@@ -231,11 +236,12 @@ export const useDatasourceTableState = ({
231
236
  const responseItemKeys = Object.keys(responseItem);
232
237
  return fieldKeys.every(key => responseItemKeys.includes(key));
233
238
  });
239
+
240
+ // if there is no data for the new columns, resetting the state triggers the request of new data (onNextPage)
241
+ // but the schema should not be reset as it is already loaded
234
242
  if (!hasDataForColumns) {
235
- reset();
236
- void onNextPage({
237
- isSchemaFromData: false,
238
- shouldRequestFirstPage: true
243
+ reset({
244
+ shouldResetFullSchema: false
239
245
  });
240
246
  }
241
247
  }
@@ -9,7 +9,7 @@ import Button from '@atlaskit/button/standard-button';
9
9
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
10
10
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
11
11
  import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
12
- import { packageMetaData } from '../../../analytics/constants';
12
+ import { componentMetadata } from '../../../analytics/constants';
13
13
  import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../../../analytics/types';
14
14
  import { startUfoExperience } from '../../../analytics/ufoExperiences';
15
15
  import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
@@ -356,7 +356,7 @@ const analyticsContextAttributes = {
356
356
  dataProvider: 'jsm-assets'
357
357
  };
358
358
  const analyticsContextData = {
359
- ...packageMetaData,
359
+ ...componentMetadata.configModal,
360
360
  source: 'datasourceConfigModal'
361
361
  };
362
362
  const contextData = {
@@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
5
5
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
6
6
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
7
7
  import { useDatasourceAnalyticsEvents } from '../../analytics';
8
- import { packageMetaData } from '../../analytics/constants';
8
+ import { componentMetadata } from '../../analytics/constants';
9
9
  import { startUfoExperience } from '../../analytics/ufoExperiences';
10
10
  import { useColumnPickerRenderedFailedUfoExperience } from '../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
11
11
  import { useDataRenderedUfoExperience } from '../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
@@ -157,4 +157,4 @@ const DatasourceTableViewWithoutAnalytics = ({
157
157
  url: url
158
158
  })));
159
159
  };
160
- export const DatasourceTableView = withAnalyticsContext(packageMetaData)(DatasourceTableViewWithoutAnalytics);
160
+ export const DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(DatasourceTableViewWithoutAnalytics);
@@ -12,7 +12,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
12
12
  import LinkUrl from '@atlaskit/smart-card/link-url';
13
13
  import { B400, N0, N40, N800 } from '@atlaskit/theme/colors';
14
14
  import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
15
- import { packageMetaData } from '../../../analytics/constants';
15
+ import { componentMetadata } from '../../../analytics/constants';
16
16
  import { DatasourceAction, DatasourceDisplay } from '../../../analytics/types';
17
17
  import { startUfoExperience } from '../../../analytics/ufoExperiences';
18
18
  import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
@@ -556,7 +556,7 @@ const analyticsContextAttributes = {
556
556
  dataProvider: 'jira-issues'
557
557
  };
558
558
  const analyticsContextData = {
559
- ...packageMetaData,
559
+ ...componentMetadata.configModal,
560
560
  source: 'datasourceConfigModal'
561
561
  };
562
562
  const contextData = {
@@ -1,5 +1,12 @@
1
1
  export var EVENT_CHANNEL = 'media';
2
- export var packageMetaData = {
3
- packageName: "@atlaskit/link-datasource",
4
- packageVersion: "1.19.33"
2
+ export var componentMetadata = {
3
+ tableView: {
4
+ component: 'datasourceTable'
5
+ },
6
+ configModal: {
7
+ component: 'datasourceConfigModal'
8
+ },
9
+ generic: {
10
+ component: 'datasource'
11
+ }
5
12
  };
@@ -1,8 +1,8 @@
1
1
  import { useEffect } from 'react';
2
2
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
3
- import { packageMetaData } from '../../constants';
3
+ import { componentMetadata } from '../../constants';
4
4
  import { useDatasourceAnalyticsEvents } from '../../index';
5
- var DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(packageMetaData)(function (props) {
5
+ var DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(componentMetadata.generic)(function (props) {
6
6
  var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
7
7
  fireEvent = _useDatasourceAnalyti.fireEvent;
8
8
  useEffect(function () {
@@ -301,18 +301,26 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
301
301
  }
302
302
  }, _callee2, null, [[7, 39]]);
303
303
  })), [captureError, parameters, fieldKeys, nextCursor, getDatasourceData, datasourceId, responseItems === null || responseItems === void 0 ? void 0 : responseItems.length, applySchemaProperties, fireEvent, fullSchema]);
304
- var reset = useCallback(function (options) {
304
+ var reset = useCallback(function () {
305
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
306
+ var _ref4 = options,
307
+ _ref4$shouldResetFull = _ref4.shouldResetFullSchema,
308
+ shouldResetFullSchema = _ref4$shouldResetFull === void 0 ? true : _ref4$shouldResetFull,
309
+ _ref4$shouldForceRequ = _ref4.shouldForceRequest,
310
+ shouldForceRequest = _ref4$shouldForceRequ === void 0 ? false : _ref4$shouldForceRequ,
311
+ _ref4$shouldResetColu = _ref4.shouldResetColumns,
312
+ shouldResetColumns = _ref4$shouldResetColu === void 0 ? false : _ref4$shouldResetColu;
305
313
  setStatus('empty');
306
314
  setResponseItems([]);
307
315
  setHasNextPage(true);
308
316
  setNextCursor(undefined);
309
317
  setTotalCount(undefined);
310
318
  setLastRequestedFieldKeys([]);
311
- setFullSchema({
319
+ shouldResetFullSchema && setFullSchema({
312
320
  properties: []
313
321
  });
314
- setShouldForceRequest((options === null || options === void 0 ? void 0 : options.shouldForceRequest) || false);
315
- if (options !== null && options !== void 0 && options.shouldResetColumns) {
322
+ setShouldForceRequest(shouldForceRequest);
323
+ if (shouldResetColumns) {
316
324
  setColumns([]);
317
325
  setDefaultVisibleColumnKeys([]);
318
326
  }
@@ -347,11 +355,12 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
347
355
  return responseItemKeys.includes(key);
348
356
  });
349
357
  });
358
+
359
+ // if there is no data for the new columns, resetting the state triggers the request of new data (onNextPage)
360
+ // but the schema should not be reset as it is already loaded
350
361
  if (!hasDataForColumns) {
351
- reset();
352
- void onNextPage({
353
- isSchemaFromData: false,
354
- shouldRequestFirstPage: true
362
+ reset({
363
+ shouldResetFullSchema: false
355
364
  });
356
365
  }
357
366
  }
@@ -13,7 +13,7 @@ import Button from '@atlaskit/button/standard-button';
13
13
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
14
14
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
15
15
  import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
16
- import { packageMetaData } from '../../../analytics/constants';
16
+ import { componentMetadata } from '../../../analytics/constants';
17
17
  import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../../../analytics/types';
18
18
  import { startUfoExperience } from '../../../analytics/ufoExperiences';
19
19
  import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
@@ -371,7 +371,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
371
371
  var analyticsContextAttributes = {
372
372
  dataProvider: 'jsm-assets'
373
373
  };
374
- var analyticsContextData = _objectSpread(_objectSpread({}, packageMetaData), {}, {
374
+ var analyticsContextData = _objectSpread(_objectSpread({}, componentMetadata.configModal), {}, {
375
375
  source: 'datasourceConfigModal'
376
376
  });
377
377
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
5
5
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
6
6
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
7
7
  import { useDatasourceAnalyticsEvents } from '../../analytics';
8
- import { packageMetaData } from '../../analytics/constants';
8
+ import { componentMetadata } from '../../analytics/constants';
9
9
  import { startUfoExperience } from '../../analytics/ufoExperiences';
10
10
  import { useColumnPickerRenderedFailedUfoExperience } from '../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
11
11
  import { useDataRenderedUfoExperience } from '../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
@@ -154,4 +154,4 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
154
154
  url: url
155
155
  })));
156
156
  };
157
- export var DatasourceTableView = withAnalyticsContext(packageMetaData)(DatasourceTableViewWithoutAnalytics);
157
+ export var DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(DatasourceTableViewWithoutAnalytics);
@@ -19,7 +19,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
19
19
  import LinkUrl from '@atlaskit/smart-card/link-url';
20
20
  import { B400, N0, N40, N800 } from '@atlaskit/theme/colors';
21
21
  import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
22
- import { packageMetaData } from '../../../analytics/constants';
22
+ import { componentMetadata } from '../../../analytics/constants';
23
23
  import { DatasourceAction, DatasourceDisplay } from '../../../analytics/types';
24
24
  import { startUfoExperience } from '../../../analytics/ufoExperiences';
25
25
  import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
@@ -598,7 +598,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
598
598
  var analyticsContextAttributes = {
599
599
  dataProvider: 'jira-issues'
600
600
  };
601
- var analyticsContextData = _objectSpread(_objectSpread({}, packageMetaData), {}, {
601
+ var analyticsContextData = _objectSpread(_objectSpread({}, componentMetadata.configModal), {}, {
602
602
  source: 'datasourceConfigModal'
603
603
  });
604
604
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -1,3 +1,12 @@
1
- import { PackageMetaDataType } from './generated/analytics.types';
2
1
  export declare const EVENT_CHANNEL = "media";
3
- export declare const packageMetaData: PackageMetaDataType;
2
+ export declare const componentMetadata: {
3
+ tableView: {
4
+ component: string;
5
+ };
6
+ configModal: {
7
+ component: string;
8
+ };
9
+ generic: {
10
+ component: string;
11
+ };
12
+ };
@@ -3,12 +3,11 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::f35a0d2e09bbd808850b5229692cd16c>>
6
+ * @codegen <<SignedSource::c9cb39dfcf360ccc71b740ba1353dc6b>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
8
8
  */
9
- export type PackageMetaDataType = {
10
- packageName: string;
11
- packageVersion: string;
9
+ export type ComponentMetaDataType = {
10
+ component: string;
12
11
  };
13
12
  export type AnalyticsContextType = {
14
13
  source: 'datasourceConfigModal';
@@ -10,6 +10,8 @@ interface ResetOptions {
10
10
  shouldForceRequest?: boolean;
11
11
  /** Resets current column data from a datasource table when issuing the new request */
12
12
  shouldResetColumns?: boolean;
13
+ /** Resets current schema data from a datasource table when issuing the new request */
14
+ shouldResetFullSchema?: boolean;
13
15
  }
14
16
  export interface DatasourceTableState {
15
17
  /** The current status of the table for rendering of the different UI states (e.g.: loading, error, etc). */
@@ -1,3 +1,12 @@
1
- import { PackageMetaDataType } from './generated/analytics.types';
2
1
  export declare const EVENT_CHANNEL = "media";
3
- export declare const packageMetaData: PackageMetaDataType;
2
+ export declare const componentMetadata: {
3
+ tableView: {
4
+ component: string;
5
+ };
6
+ configModal: {
7
+ component: string;
8
+ };
9
+ generic: {
10
+ component: string;
11
+ };
12
+ };
@@ -3,12 +3,11 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::f35a0d2e09bbd808850b5229692cd16c>>
6
+ * @codegen <<SignedSource::c9cb39dfcf360ccc71b740ba1353dc6b>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
8
8
  */
9
- export type PackageMetaDataType = {
10
- packageName: string;
11
- packageVersion: string;
9
+ export type ComponentMetaDataType = {
10
+ component: string;
12
11
  };
13
12
  export type AnalyticsContextType = {
14
13
  source: 'datasourceConfigModal';
@@ -10,6 +10,8 @@ interface ResetOptions {
10
10
  shouldForceRequest?: boolean;
11
11
  /** Resets current column data from a datasource table when issuing the new request */
12
12
  shouldResetColumns?: boolean;
13
+ /** Resets current schema data from a datasource table when issuing the new request */
14
+ shouldResetFullSchema?: boolean;
13
15
  }
14
16
  export interface DatasourceTableState {
15
17
  /** The current status of the table for rendering of the different UI states (e.g.: loading, error, etc). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "1.19.33",
3
+ "version": "1.19.35",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/tag": "^12.0.0",
63
63
  "@atlaskit/textfield": "6.0.0",
64
64
  "@atlaskit/theme": "^12.6.0",
65
- "@atlaskit/tokens": "^1.31.0",
65
+ "@atlaskit/tokens": "^1.32.0",
66
66
  "@atlaskit/tooltip": "^18.1.0",
67
67
  "@atlaskit/ufo": "^0.2.4",
68
68
  "@atlassianlabs/jql-editor": "^2.0.1",