@atlaskit/link-datasource 3.1.0 → 3.1.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,15 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143055](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143055)
|
|
8
|
+
[`1580619590f3e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1580619590f3e) -
|
|
9
|
+
[ux] Adds a filterTransaction to the editor-card plugin to ignore bug-causing click transaction
|
|
10
|
+
when inline editing is active and user clicks on scroll gutter of the editor, ignoring the
|
|
11
|
+
transaction coming from editor-core click-area-helper in this edge case.
|
|
12
|
+
|
|
3
13
|
## 3.1.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -10,6 +10,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _text = _interopRequireDefault(require("./text"));
|
|
12
12
|
var _excluded = ["value"];
|
|
13
|
+
// This is used in editor-card-plugin to identify if any type of inline edit is active.
|
|
14
|
+
var ACTIVE_INLINE_EDIT_ID = 'sllv-active-inline-edit';
|
|
13
15
|
var editType = exports.editType = function editType(item) {
|
|
14
16
|
var _item$values$, _item$values;
|
|
15
17
|
switch (item.type) {
|
|
@@ -21,7 +23,8 @@ var editType = exports.editType = function editType(item) {
|
|
|
21
23
|
var value = _ref.value,
|
|
22
24
|
fieldProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
23
25
|
return /*#__PURE__*/_react.default.createElement(_text.default, (0, _extends2.default)({}, fieldProps, {
|
|
24
|
-
value: value
|
|
26
|
+
value: value,
|
|
27
|
+
id: ACTIVE_INLINE_EDIT_ID
|
|
25
28
|
}));
|
|
26
29
|
}
|
|
27
30
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import TextEditType from './text';
|
|
4
|
+
|
|
5
|
+
// This is used in editor-card-plugin to identify if any type of inline edit is active.
|
|
6
|
+
const ACTIVE_INLINE_EDIT_ID = 'sllv-active-inline-edit';
|
|
4
7
|
export const editType = item => {
|
|
5
8
|
var _item$values$, _item$values;
|
|
6
9
|
switch (item.type) {
|
|
@@ -12,7 +15,8 @@ export const editType = item => {
|
|
|
12
15
|
value,
|
|
13
16
|
...fieldProps
|
|
14
17
|
}) => /*#__PURE__*/React.createElement(TextEditType, _extends({}, fieldProps, {
|
|
15
|
-
value: value
|
|
18
|
+
value: value,
|
|
19
|
+
id: ACTIVE_INLINE_EDIT_ID
|
|
16
20
|
}))
|
|
17
21
|
};
|
|
18
22
|
default:
|
|
@@ -3,6 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["value"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import TextEditType from './text';
|
|
6
|
+
|
|
7
|
+
// This is used in editor-card-plugin to identify if any type of inline edit is active.
|
|
8
|
+
var ACTIVE_INLINE_EDIT_ID = 'sllv-active-inline-edit';
|
|
6
9
|
export var editType = function editType(item) {
|
|
7
10
|
var _item$values$, _item$values;
|
|
8
11
|
switch (item.type) {
|
|
@@ -14,7 +17,8 @@ export var editType = function editType(item) {
|
|
|
14
17
|
var value = _ref.value,
|
|
15
18
|
fieldProps = _objectWithoutProperties(_ref, _excluded);
|
|
16
19
|
return /*#__PURE__*/React.createElement(TextEditType, _extends({}, fieldProps, {
|
|
17
|
-
value: value
|
|
20
|
+
value: value,
|
|
21
|
+
id: ACTIVE_INLINE_EDIT_ID
|
|
18
22
|
}));
|
|
19
23
|
}
|
|
20
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/avatar-group": "^9.11.0",
|
|
42
42
|
"@atlaskit/badge": "^16.4.0",
|
|
43
43
|
"@atlaskit/button": "^20.1.0",
|
|
44
|
-
"@atlaskit/datetime-picker": "^14.
|
|
44
|
+
"@atlaskit/datetime-picker": "^14.1.0",
|
|
45
45
|
"@atlaskit/dropdown-menu": "^12.18.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
47
47
|
"@atlaskit/empty-state": "^7.11.0",
|