@atlaskit/link-datasource 3.10.0 → 3.10.1
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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165764)
|
|
8
|
+
[`3df943727e45e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3df943727e45e) -
|
|
9
|
+
Fix failing condition due to double negative behind ff
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 3.10.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.TableCellContent = exports.ReadOnlyCell = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _primitives = require("@atlaskit/primitives");
|
|
12
11
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
12
|
var _state = require("../../../state");
|
|
@@ -96,8 +95,7 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
|
|
|
96
95
|
executeFetch = _useExecuteAtomicActi.executeFetch;
|
|
97
96
|
|
|
98
97
|
// A field is editable when `execute` is returned from the store
|
|
99
|
-
|
|
100
|
-
var isEditable = !!execute && ((0, _editType.isEditTypeSelectable)(values.type) && (0, _platformFeatureFlags.fg)('enable_datasource_supporting_actions') ? !!executeFetch : true);
|
|
98
|
+
var isEditable = !!execute;
|
|
101
99
|
var readView = /*#__PURE__*/_react.default.createElement(TooltipWrapper, {
|
|
102
100
|
columnKey: columnKey,
|
|
103
101
|
datasourceTypeWithValues: values,
|
|
@@ -111,6 +109,12 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
|
|
|
111
109
|
if (!isEditable) {
|
|
112
110
|
return readView;
|
|
113
111
|
}
|
|
112
|
+
|
|
113
|
+
// if the field requires to fetch options to execute, then is editable only if `executeFetch` is defined
|
|
114
|
+
// `executeFetch` is returned only when ff:`enable_datasource_supporting_actions` is enabled
|
|
115
|
+
if ((0, _editType.isEditTypeSelectable)(values.type) && !executeFetch) {
|
|
116
|
+
return readView;
|
|
117
|
+
}
|
|
114
118
|
return /*#__PURE__*/_react.default.createElement(_inlineEdit.InlineEdit, {
|
|
115
119
|
ari: ari,
|
|
116
120
|
execute: execute,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
5
|
import { useDatasourceItem } from '../../../state';
|
|
@@ -89,8 +88,7 @@ const InlineEditableCell = ({
|
|
|
89
88
|
});
|
|
90
89
|
|
|
91
90
|
// A field is editable when `execute` is returned from the store
|
|
92
|
-
|
|
93
|
-
const isEditable = !!execute && (isEditTypeSelectable(values.type) && fg('enable_datasource_supporting_actions') ? !!executeFetch : true);
|
|
91
|
+
const isEditable = !!execute;
|
|
94
92
|
const readView = /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
95
93
|
columnKey: columnKey,
|
|
96
94
|
datasourceTypeWithValues: values,
|
|
@@ -104,6 +102,12 @@ const InlineEditableCell = ({
|
|
|
104
102
|
if (!isEditable) {
|
|
105
103
|
return readView;
|
|
106
104
|
}
|
|
105
|
+
|
|
106
|
+
// if the field requires to fetch options to execute, then is editable only if `executeFetch` is defined
|
|
107
|
+
// `executeFetch` is returned only when ff:`enable_datasource_supporting_actions` is enabled
|
|
108
|
+
if (isEditTypeSelectable(values.type) && !executeFetch) {
|
|
109
|
+
return readView;
|
|
110
|
+
}
|
|
107
111
|
return /*#__PURE__*/React.createElement(InlineEdit, {
|
|
108
112
|
ari: ari,
|
|
109
113
|
execute: execute,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
5
|
import { useDatasourceItem } from '../../../state';
|
|
@@ -89,8 +88,7 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
|
|
|
89
88
|
executeFetch = _useExecuteAtomicActi.executeFetch;
|
|
90
89
|
|
|
91
90
|
// A field is editable when `execute` is returned from the store
|
|
92
|
-
|
|
93
|
-
var isEditable = !!execute && (isEditTypeSelectable(values.type) && fg('enable_datasource_supporting_actions') ? !!executeFetch : true);
|
|
91
|
+
var isEditable = !!execute;
|
|
94
92
|
var readView = /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
95
93
|
columnKey: columnKey,
|
|
96
94
|
datasourceTypeWithValues: values,
|
|
@@ -104,6 +102,12 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
|
|
|
104
102
|
if (!isEditable) {
|
|
105
103
|
return readView;
|
|
106
104
|
}
|
|
105
|
+
|
|
106
|
+
// if the field requires to fetch options to execute, then is editable only if `executeFetch` is defined
|
|
107
|
+
// `executeFetch` is returned only when ff:`enable_datasource_supporting_actions` is enabled
|
|
108
|
+
if (isEditTypeSelectable(values.type) && !executeFetch) {
|
|
109
|
+
return readView;
|
|
110
|
+
}
|
|
107
111
|
return /*#__PURE__*/React.createElement(InlineEdit, {
|
|
108
112
|
ari: ari,
|
|
109
113
|
execute: execute,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.1",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/empty-state": "^7.12.0",
|
|
48
48
|
"@atlaskit/flag": "^15.8.0",
|
|
49
49
|
"@atlaskit/form": "^10.5.0",
|
|
50
|
-
"@atlaskit/heading": "^
|
|
50
|
+
"@atlaskit/heading": "^3.0.0",
|
|
51
51
|
"@atlaskit/icon": "^22.24.0",
|
|
52
52
|
"@atlaskit/icon-object": "^6.7.0",
|
|
53
53
|
"@atlaskit/image": "^1.3.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@atlaskit/smart-user-picker": "6.11.1",
|
|
78
78
|
"@atlaskit/spinner": "^16.3.0",
|
|
79
79
|
"@atlaskit/tag": "^12.6.0",
|
|
80
|
-
"@atlaskit/textfield": "6.5.
|
|
80
|
+
"@atlaskit/textfield": "6.5.5",
|
|
81
81
|
"@atlaskit/theme": "^14.0.0",
|
|
82
82
|
"@atlaskit/tokens": "^2.2.0",
|
|
83
83
|
"@atlaskit/tooltip": "^18.9.0",
|