@atlaskit/link-datasource 3.8.1 → 3.8.4

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 +29 -0
  2. package/dist/cjs/state/actions/index.js +0 -1
  3. package/dist/cjs/ui/issue-like-table/edit-type/status/index.js +3 -3
  4. package/dist/cjs/ui/issue-like-table/index.js +1 -1
  5. package/dist/cjs/ui/issue-like-table/render-type/icon/index.js +1 -2
  6. package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
  7. package/dist/cjs/ui/issue-like-table/utils.js +2 -1
  8. package/dist/es2019/state/actions/index.js +0 -1
  9. package/dist/es2019/ui/issue-like-table/edit-type/status/index.js +3 -4
  10. package/dist/es2019/ui/issue-like-table/index.js +1 -1
  11. package/dist/es2019/ui/issue-like-table/render-type/icon/index.js +1 -2
  12. package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
  13. package/dist/es2019/ui/issue-like-table/utils.js +2 -1
  14. package/dist/esm/state/actions/index.js +0 -1
  15. package/dist/esm/ui/issue-like-table/edit-type/status/index.js +3 -3
  16. package/dist/esm/ui/issue-like-table/index.js +1 -1
  17. package/dist/esm/ui/issue-like-table/render-type/icon/index.js +1 -2
  18. package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
  19. package/dist/esm/ui/issue-like-table/utils.js +2 -1
  20. package/dist/types/state/actions/index.d.ts +4 -3
  21. package/dist/types/ui/issue-like-table/edit-type/index.d.ts +1 -1
  22. package/dist/types/ui/issue-like-table/edit-type/status/index.d.ts +2 -1
  23. package/dist/types-ts4.5/state/actions/index.d.ts +4 -3
  24. package/dist/types-ts4.5/ui/issue-like-table/edit-type/index.d.ts +1 -1
  25. package/dist/types-ts4.5/ui/issue-like-table/edit-type/status/index.d.ts +2 -1
  26. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 3.8.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#161257](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161257)
8
+ [`085902303c5ee`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/085902303c5ee) -
9
+ Fixes how we pass input params to executeFetchAction - behind ff
10
+
11
+ ## 3.8.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [#160594](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160594)
16
+ [`e21f888db3b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e21f888db3b5a) -
17
+ Update min and default width to `120px` for the `Status` column in Jira SLLV.
18
+ - Updated dependencies
19
+
20
+ ## 3.8.2
21
+
22
+ ### Patch Changes
23
+
24
+ - [#160697](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160697)
25
+ [`f9338153f205c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f9338153f205c) -
26
+ Use `transitionId` for Status field update execution
27
+ - [#160682](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160682)
28
+ [`5685ddb1ad521`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5685ddb1ad521) -
29
+ Removes redundant usage of atlaskit/image in favor of native img tags
30
+ - Updated dependencies
31
+
3
32
  ## 3.8.1
4
33
 
5
34
  ### Patch Changes
@@ -179,7 +179,6 @@ var getFieldUpdateActionByAri = function getFieldUpdateActionByAri(state, _ref4)
179
179
  var useAtomicUpdateActionSchema = exports.useAtomicUpdateActionSchema = (0, _reactSweetState.createHook)(ActionsStore, {
180
180
  selector: getFieldUpdateActionByAri
181
181
  });
182
-
183
182
  /**
184
183
  * Given an ARI + fieldKey + integrationKey
185
184
  * Returns an executable action that updates a field on the entity if the user has permissions to do so
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
12
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
@@ -97,7 +96,7 @@ var loadOptions = /*#__PURE__*/function () {
97
96
  break;
98
97
  }
99
98
  _context.next = 3;
100
- return executeFetch((0, _defineProperty2.default)({}, currentValue.type, currentValue.values[0]));
99
+ return executeFetch({});
101
100
  case 3:
102
101
  result = _context.sent;
103
102
  operationStatus = result.operationStatus, entities = result.entities;
@@ -109,7 +108,8 @@ var loadOptions = /*#__PURE__*/function () {
109
108
  return {
110
109
  id: entity.id,
111
110
  text: entity.text,
112
- style: entity.style
111
+ style: entity.style,
112
+ transitionId: entity.transitionId
113
113
  };
114
114
  }));
115
115
  case 7:
@@ -234,7 +234,7 @@ var getOrderedColumns = exports.getOrderedColumns = function getOrderedColumns(c
234
234
  var DEFAULT_WIDTH = _utils.COLUMN_BASE_WIDTH * 22;
235
235
  var keyBasedWidthMap = {
236
236
  priority: _utils.COLUMN_BASE_WIDTH * 8,
237
- status: _utils.COLUMN_BASE_WIDTH * 18,
237
+ status: _utils.COLUMN_BASE_WIDTH * 15,
238
238
  summary: _utils.COLUMN_BASE_WIDTH * 45,
239
239
  description: _utils.COLUMN_BASE_WIDTH * 31,
240
240
  type: _utils.COLUMN_BASE_WIDTH * 6,
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.ICON_TYPE_TEST_ID = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styled = _interopRequireDefault(require("@emotion/styled"));
10
- var _image = _interopRequireDefault(require("@atlaskit/image"));
11
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
11
 
13
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
@@ -22,7 +21,7 @@ var IconRenderType = function IconRenderType(_ref) {
22
21
  source = _ref.source,
23
22
  _ref$testId = _ref.testId,
24
23
  testId = _ref$testId === void 0 ? ICON_TYPE_TEST_ID : _ref$testId;
25
- return /*#__PURE__*/_react.default.createElement(IconWrapper, null, /*#__PURE__*/_react.default.createElement(_image.default, {
24
+ return /*#__PURE__*/_react.default.createElement(IconWrapper, null, /*#__PURE__*/_react.default.createElement("img", {
26
25
  src: source,
27
26
  alt: label,
28
27
  "data-testid": testId
@@ -31,7 +31,7 @@ var getBackendUpdateValue = function getBackendUpdateValue(typedNewValue) {
31
31
  case 'string':
32
32
  return typedNewValue.values[0] || '';
33
33
  case 'status':
34
- return ((_typedNewValue$values = typedNewValue.values[0]) === null || _typedNewValue$values === void 0 ? void 0 : _typedNewValue$values.id) || '';
34
+ return ((_typedNewValue$values = typedNewValue.values[0]) === null || _typedNewValue$values === void 0 ? void 0 : _typedNewValue$values.transitionId) || '';
35
35
  }
36
36
  throw new Error("Datasource 2 way sync Backend update value not implemented for type ".concat(typedNewValue.type));
37
37
  };
@@ -8,7 +8,8 @@ var _types = require("../../analytics/types");
8
8
  var COLUMN_BASE_WIDTH = exports.COLUMN_BASE_WIDTH = 8;
9
9
  var COLUMN_MIN_WIDTH = COLUMN_BASE_WIDTH * 4;
10
10
  var keyBasedMinWidthMap = {
11
- summary: COLUMN_BASE_WIDTH * 26
11
+ summary: COLUMN_BASE_WIDTH * 26,
12
+ status: COLUMN_BASE_WIDTH * 15
12
13
  };
13
14
  var getColumnMinWidth = exports.getColumnMinWidth = function getColumnMinWidth(key) {
14
15
  return keyBasedMinWidthMap[key] || COLUMN_MIN_WIDTH;
@@ -161,7 +161,6 @@ const getFieldUpdateActionByAri = (state, {
161
161
  export const useAtomicUpdateActionSchema = createHook(ActionsStore, {
162
162
  selector: getFieldUpdateActionByAri
163
163
  });
164
-
165
164
  /**
166
165
  * Given an ARI + fieldKey + integrationKey
167
166
  * Returns an executable action that updates a field on the entity if the user has permissions to do so
@@ -67,9 +67,7 @@ const useStatusOptions = (currentValue, executeFetch) => {
67
67
  };
68
68
  const loadOptions = async (currentValue, executeFetch) => {
69
69
  if (executeFetch) {
70
- const result = await executeFetch({
71
- [currentValue.type]: currentValue.values[0]
72
- });
70
+ const result = await executeFetch({});
73
71
  const {
74
72
  operationStatus,
75
73
  entities
@@ -78,7 +76,8 @@ const loadOptions = async (currentValue, executeFetch) => {
78
76
  return entities.map(entity => ({
79
77
  id: entity.id,
80
78
  text: entity.text,
81
- style: entity.style
79
+ style: entity.style,
80
+ transitionId: entity.transitionId
82
81
  }));
83
82
  }
84
83
  }
@@ -260,7 +260,7 @@ export const getOrderedColumns = (columns, visibleColumnKeys) => {
260
260
  const DEFAULT_WIDTH = COLUMN_BASE_WIDTH * 22;
261
261
  const keyBasedWidthMap = {
262
262
  priority: COLUMN_BASE_WIDTH * 8,
263
- status: COLUMN_BASE_WIDTH * 18,
263
+ status: COLUMN_BASE_WIDTH * 15,
264
264
  summary: COLUMN_BASE_WIDTH * 45,
265
265
  description: COLUMN_BASE_WIDTH * 31,
266
266
  type: COLUMN_BASE_WIDTH * 6,
@@ -2,7 +2,6 @@ import React from 'react';
2
2
 
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import styled from '@emotion/styled';
5
- import Image from '@atlaskit/image';
6
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
7
6
  const IconWrapper = styled.div({
8
7
  display: 'flex',
@@ -15,7 +14,7 @@ const IconRenderType = ({
15
14
  source,
16
15
  testId = ICON_TYPE_TEST_ID
17
16
  }) => {
18
- return /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(Image, {
17
+ return /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement("img", {
19
18
  src: source,
20
19
  alt: label,
21
20
  "data-testid": testId
@@ -16,7 +16,7 @@ const getBackendUpdateValue = typedNewValue => {
16
16
  case 'string':
17
17
  return typedNewValue.values[0] || '';
18
18
  case 'status':
19
- return ((_typedNewValue$values = typedNewValue.values[0]) === null || _typedNewValue$values === void 0 ? void 0 : _typedNewValue$values.id) || '';
19
+ return ((_typedNewValue$values = typedNewValue.values[0]) === null || _typedNewValue$values === void 0 ? void 0 : _typedNewValue$values.transitionId) || '';
20
20
  }
21
21
  throw new Error(`Datasource 2 way sync Backend update value not implemented for type ${typedNewValue.type}`);
22
22
  };
@@ -2,7 +2,8 @@ import { DatasourceAction } from '../../analytics/types';
2
2
  export const COLUMN_BASE_WIDTH = 8;
3
3
  const COLUMN_MIN_WIDTH = COLUMN_BASE_WIDTH * 4;
4
4
  const keyBasedMinWidthMap = {
5
- summary: COLUMN_BASE_WIDTH * 26
5
+ summary: COLUMN_BASE_WIDTH * 26,
6
+ status: COLUMN_BASE_WIDTH * 15
6
7
  };
7
8
  export const getColumnMinWidth = key => {
8
9
  return keyBasedMinWidthMap[key] || COLUMN_MIN_WIDTH;
@@ -173,7 +173,6 @@ var getFieldUpdateActionByAri = function getFieldUpdateActionByAri(state, _ref4)
173
173
  export var useAtomicUpdateActionSchema = createHook(ActionsStore, {
174
174
  selector: getFieldUpdateActionByAri
175
175
  });
176
-
177
176
  /**
178
177
  * Given an ARI + fieldKey + integrationKey
179
178
  * Returns an executable action that updates a field on the entity if the user has permissions to do so
@@ -1,4 +1,3 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
3
  import _extends from "@babel/runtime/helpers/extends";
@@ -87,7 +86,7 @@ var loadOptions = /*#__PURE__*/function () {
87
86
  break;
88
87
  }
89
88
  _context.next = 3;
90
- return executeFetch(_defineProperty({}, currentValue.type, currentValue.values[0]));
89
+ return executeFetch({});
91
90
  case 3:
92
91
  result = _context.sent;
93
92
  operationStatus = result.operationStatus, entities = result.entities;
@@ -99,7 +98,8 @@ var loadOptions = /*#__PURE__*/function () {
99
98
  return {
100
99
  id: entity.id,
101
100
  text: entity.text,
102
- style: entity.style
101
+ style: entity.style,
102
+ transitionId: entity.transitionId
103
103
  };
104
104
  }));
105
105
  case 7:
@@ -230,7 +230,7 @@ export var getOrderedColumns = function getOrderedColumns(columns, visibleColumn
230
230
  var DEFAULT_WIDTH = COLUMN_BASE_WIDTH * 22;
231
231
  var keyBasedWidthMap = {
232
232
  priority: COLUMN_BASE_WIDTH * 8,
233
- status: COLUMN_BASE_WIDTH * 18,
233
+ status: COLUMN_BASE_WIDTH * 15,
234
234
  summary: COLUMN_BASE_WIDTH * 45,
235
235
  description: COLUMN_BASE_WIDTH * 31,
236
236
  type: COLUMN_BASE_WIDTH * 6,
@@ -2,7 +2,6 @@ import React from 'react';
2
2
 
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import styled from '@emotion/styled';
5
- import Image from '@atlaskit/image';
6
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
7
6
  var IconWrapper = styled.div({
8
7
  display: 'flex',
@@ -15,7 +14,7 @@ var IconRenderType = function IconRenderType(_ref) {
15
14
  source = _ref.source,
16
15
  _ref$testId = _ref.testId,
17
16
  testId = _ref$testId === void 0 ? ICON_TYPE_TEST_ID : _ref$testId;
18
- return /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(Image, {
17
+ return /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement("img", {
19
18
  src: source,
20
19
  alt: label,
21
20
  "data-testid": testId
@@ -21,7 +21,7 @@ var getBackendUpdateValue = function getBackendUpdateValue(typedNewValue) {
21
21
  case 'string':
22
22
  return typedNewValue.values[0] || '';
23
23
  case 'status':
24
- return ((_typedNewValue$values = typedNewValue.values[0]) === null || _typedNewValue$values === void 0 ? void 0 : _typedNewValue$values.id) || '';
24
+ return ((_typedNewValue$values = typedNewValue.values[0]) === null || _typedNewValue$values === void 0 ? void 0 : _typedNewValue$values.transitionId) || '';
25
25
  }
26
26
  throw new Error("Datasource 2 way sync Backend update value not implemented for type ".concat(typedNewValue.type));
27
27
  };
@@ -2,7 +2,8 @@ import { DatasourceAction } from '../../analytics/types';
2
2
  export var COLUMN_BASE_WIDTH = 8;
3
3
  var COLUMN_MIN_WIDTH = COLUMN_BASE_WIDTH * 4;
4
4
  var keyBasedMinWidthMap = {
5
- summary: COLUMN_BASE_WIDTH * 26
5
+ summary: COLUMN_BASE_WIDTH * 26,
6
+ status: COLUMN_BASE_WIDTH * 15
6
7
  };
7
8
  export var getColumnMinWidth = function getColumnMinWidth(key) {
8
9
  return keyBasedMinWidthMap[key] || COLUMN_MIN_WIDTH;
@@ -1,6 +1,6 @@
1
1
  import { type Action } from 'react-sweet-state';
2
2
  import { useDatasourceClientExtension } from '@atlaskit/link-client-extension';
3
- import type { ActionsDiscoveryRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types';
3
+ import type { ActionsDiscoveryRequest, AtomicActionExecuteRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types';
4
4
  import { type DatasourceOperationFailedAttributesType, type EventKey } from '../../../src/analytics/generated/analytics.types';
5
5
  import type createEventPayload from '../../../src/analytics/generated/create-event-payload';
6
6
  type IntegrationKey = string;
@@ -96,6 +96,7 @@ export declare const useAtomicUpdateActionSchema: import("react-sweet-state").Ho
96
96
  fieldKey: string;
97
97
  integrationKey: string;
98
98
  }>;
99
+ export type ExecuteFetch = <E>(inputs: AtomicActionExecuteRequest['parameters']['inputs']) => Promise<E>;
99
100
  /**
100
101
  * Given an ARI + fieldKey + integrationKey
101
102
  * Returns an executable action that updates a field on the entity if the user has permissions to do so
@@ -112,7 +113,7 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
112
113
  fieldKey: string;
113
114
  integrationKey: string;
114
115
  }) => {
115
- execute?: ((value: (string | number)) => Promise<AtomicActionExecuteResponse<unknown>>) | undefined;
116
- executeFetch?: (<E>(inputs: any) => Promise<E>) | undefined;
116
+ execute?: ((value: string | number) => Promise<AtomicActionExecuteResponse<unknown>>) | undefined;
117
+ executeFetch?: ExecuteFetch | undefined;
117
118
  };
118
119
  export {};
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type InlineEdit from '@atlaskit/inline-edit';
3
3
  import type { DatasourceType } from '@atlaskit/linking-types';
4
4
  import { type DatasourceTypeWithOnlyValues } from '../types';
5
- export declare const editType: ({ defaultValue, currentValue, setEditValues, executeFetch }: {
5
+ export declare const editType: ({ defaultValue, currentValue, setEditValues, executeFetch, }: {
6
6
  defaultValue: DatasourceTypeWithOnlyValues;
7
7
  currentValue: DatasourceTypeWithOnlyValues;
8
8
  setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
2
  import { type FieldProps } from '@atlaskit/form';
3
+ import type { ExecuteFetch } from '../../../../state/actions';
3
4
  import type { DatasourceTypeWithOnlyValues } from '../../types';
4
5
  interface Props extends Omit<FieldProps<string>, 'value'> {
5
6
  currentValue: DatasourceTypeWithOnlyValues;
6
7
  setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
7
- executeFetch?: <E>(inputs: any) => Promise<E>;
8
+ executeFetch?: ExecuteFetch;
8
9
  }
9
10
  declare const StatusEditType: (props: Props) => JSX.Element;
10
11
  export default StatusEditType;
@@ -1,6 +1,6 @@
1
1
  import { type Action } from 'react-sweet-state';
2
2
  import { useDatasourceClientExtension } from '@atlaskit/link-client-extension';
3
- import type { ActionsDiscoveryRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types';
3
+ import type { ActionsDiscoveryRequest, AtomicActionExecuteRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types';
4
4
  import { type DatasourceOperationFailedAttributesType, type EventKey } from '../../../src/analytics/generated/analytics.types';
5
5
  import type createEventPayload from '../../../src/analytics/generated/create-event-payload';
6
6
  type IntegrationKey = string;
@@ -96,6 +96,7 @@ export declare const useAtomicUpdateActionSchema: import("react-sweet-state").Ho
96
96
  fieldKey: string;
97
97
  integrationKey: string;
98
98
  }>;
99
+ export type ExecuteFetch = <E>(inputs: AtomicActionExecuteRequest['parameters']['inputs']) => Promise<E>;
99
100
  /**
100
101
  * Given an ARI + fieldKey + integrationKey
101
102
  * Returns an executable action that updates a field on the entity if the user has permissions to do so
@@ -112,7 +113,7 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
112
113
  fieldKey: string;
113
114
  integrationKey: string;
114
115
  }) => {
115
- execute?: ((value: (string | number)) => Promise<AtomicActionExecuteResponse<unknown>>) | undefined;
116
- executeFetch?: (<E>(inputs: any) => Promise<E>) | undefined;
116
+ execute?: ((value: string | number) => Promise<AtomicActionExecuteResponse<unknown>>) | undefined;
117
+ executeFetch?: ExecuteFetch | undefined;
117
118
  };
118
119
  export {};
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type InlineEdit from '@atlaskit/inline-edit';
3
3
  import type { DatasourceType } from '@atlaskit/linking-types';
4
4
  import { type DatasourceTypeWithOnlyValues } from '../types';
5
- export declare const editType: ({ defaultValue, currentValue, setEditValues, executeFetch }: {
5
+ export declare const editType: ({ defaultValue, currentValue, setEditValues, executeFetch, }: {
6
6
  defaultValue: DatasourceTypeWithOnlyValues;
7
7
  currentValue: DatasourceTypeWithOnlyValues;
8
8
  setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
2
  import { type FieldProps } from '@atlaskit/form';
3
+ import type { ExecuteFetch } from '../../../../state/actions';
3
4
  import type { DatasourceTypeWithOnlyValues } from '../../types';
4
5
  interface Props extends Omit<FieldProps<string>, 'value'> {
5
6
  currentValue: DatasourceTypeWithOnlyValues;
6
7
  setEditValues: React.Dispatch<React.SetStateAction<DatasourceTypeWithOnlyValues>>;
7
- executeFetch?: <E>(inputs: any) => Promise<E>;
8
+ executeFetch?: ExecuteFetch;
8
9
  }
9
10
  declare const StatusEditType: (props: Props) => JSX.Element;
10
11
  export default StatusEditType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "3.8.1",
3
+ "version": "3.8.4",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/layering": "^0.7.0",
60
60
  "@atlaskit/link-client-extension": "^2.4.0",
61
61
  "@atlaskit/linking-common": "^6.0.0",
62
- "@atlaskit/linking-types": "^9.3.0",
62
+ "@atlaskit/linking-types": "^9.4.0",
63
63
  "@atlaskit/logo": "^14.3.0",
64
64
  "@atlaskit/lozenge": "^11.12.0",
65
65
  "@atlaskit/modal-dialog": "^12.17.0",
@@ -71,14 +71,14 @@
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
73
  "@atlaskit/primitives": "^13.0.0",
74
- "@atlaskit/select": "^18.4.0",
74
+ "@atlaskit/select": "^18.5.0",
75
75
  "@atlaskit/smart-card": "^30.2.0",
76
76
  "@atlaskit/smart-user-picker": "6.11.1",
77
77
  "@atlaskit/spinner": "^16.3.0",
78
78
  "@atlaskit/tag": "^12.6.0",
79
79
  "@atlaskit/textfield": "6.5.4",
80
80
  "@atlaskit/theme": "^14.0.0",
81
- "@atlaskit/tokens": "^2.1.0",
81
+ "@atlaskit/tokens": "^2.2.0",
82
82
  "@atlaskit/tooltip": "^18.8.0",
83
83
  "@atlaskit/ufo": "^0.3.0",
84
84
  "@atlaskit/width-detector": "^4.3.0",