@atlaskit/link-datasource 3.8.1 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/ui/issue-like-table/edit-type/status/index.js +2 -1
- package/dist/cjs/ui/issue-like-table/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/icon/index.js +1 -2
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/cjs/ui/issue-like-table/utils.js +2 -1
- package/dist/es2019/ui/issue-like-table/edit-type/status/index.js +2 -1
- package/dist/es2019/ui/issue-like-table/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/icon/index.js +1 -2
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/es2019/ui/issue-like-table/utils.js +2 -1
- package/dist/esm/ui/issue-like-table/edit-type/status/index.js +2 -1
- package/dist/esm/ui/issue-like-table/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/icon/index.js +1 -2
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/esm/ui/issue-like-table/utils.js +2 -1
- package/dist/types/state/actions/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/index.d.ts +1 -1
- package/dist/types-ts4.5/state/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/edit-type/index.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#160594](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160594)
|
|
8
|
+
[`e21f888db3b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e21f888db3b5a) -
|
|
9
|
+
Update min and default width to `120px` for the `Status` column in Jira SLLV.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.8.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#160697](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160697)
|
|
17
|
+
[`f9338153f205c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f9338153f205c) -
|
|
18
|
+
Use `transitionId` for Status field update execution
|
|
19
|
+
- [#160682](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160682)
|
|
20
|
+
[`5685ddb1ad521`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5685ddb1ad521) -
|
|
21
|
+
Removes redundant usage of atlaskit/image in favor of native img tags
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 3.8.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -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 *
|
|
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(
|
|
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.
|
|
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;
|
|
@@ -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 *
|
|
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(
|
|
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.
|
|
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;
|
|
@@ -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 *
|
|
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(
|
|
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.
|
|
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;
|
|
@@ -112,7 +112,7 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
|
|
|
112
112
|
fieldKey: string;
|
|
113
113
|
integrationKey: string;
|
|
114
114
|
}) => {
|
|
115
|
-
execute?: ((value:
|
|
115
|
+
execute?: ((value: string | number) => Promise<AtomicActionExecuteResponse<unknown>>) | undefined;
|
|
116
116
|
executeFetch?: (<E>(inputs: any) => Promise<E>) | undefined;
|
|
117
117
|
};
|
|
118
118
|
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>>;
|
|
@@ -112,7 +112,7 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
|
|
|
112
112
|
fieldKey: string;
|
|
113
113
|
integrationKey: string;
|
|
114
114
|
}) => {
|
|
115
|
-
execute?: ((value:
|
|
115
|
+
execute?: ((value: string | number) => Promise<AtomicActionExecuteResponse<unknown>>) | undefined;
|
|
116
116
|
executeFetch?: (<E>(inputs: any) => Promise<E>) | undefined;
|
|
117
117
|
};
|
|
118
118
|
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>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.3",
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|