@atlaskit/editor-plugin-card 4.4.7 → 4.4.9
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
|
@@ -41,25 +41,28 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
|
|
|
41
41
|
setShowConfigureButton(false);
|
|
42
42
|
}
|
|
43
43
|
}, []);
|
|
44
|
-
return (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
44
|
+
return (
|
|
45
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
46
|
+
(0, _react2.jsx)("span", {
|
|
47
|
+
onMouseEnter: function onMouseEnter() {
|
|
48
|
+
setShowConfigureButton(true);
|
|
49
|
+
hoverCallback(true);
|
|
50
|
+
},
|
|
51
|
+
onMouseLeave: function onMouseLeave() {
|
|
52
|
+
if (!dropdownOpen) {
|
|
53
|
+
setShowConfigureButton(false);
|
|
54
|
+
hoverCallback(false);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"data-testid": "inline-card-overlay-wrapper"
|
|
58
|
+
}, (0, _react2.jsx)("span", {
|
|
59
|
+
css: ConfigureOverlayWrapperStyles
|
|
60
|
+
}, showConfigureButton && (0, _react2.jsx)(_link.OverlayButton, {
|
|
61
|
+
editorView: view,
|
|
62
|
+
targetElementPos: targetElementPos,
|
|
63
|
+
onDropdownChange: onDropdownChange,
|
|
64
|
+
onOpenLinkClick: onOpenLinkClick
|
|
65
|
+
})), children)
|
|
66
|
+
);
|
|
64
67
|
};
|
|
65
68
|
var _default = exports.default = OverlayWrapper;
|
|
@@ -27,25 +27,28 @@ const OverlayWrapper = ({
|
|
|
27
27
|
setShowConfigureButton(false);
|
|
28
28
|
}
|
|
29
29
|
}, []);
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
32
|
+
jsx("span", {
|
|
33
|
+
onMouseEnter: () => {
|
|
34
|
+
setShowConfigureButton(true);
|
|
35
|
+
hoverCallback(true);
|
|
36
|
+
},
|
|
37
|
+
onMouseLeave: () => {
|
|
38
|
+
if (!dropdownOpen) {
|
|
39
|
+
setShowConfigureButton(false);
|
|
40
|
+
hoverCallback(false);
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"data-testid": "inline-card-overlay-wrapper"
|
|
44
|
+
}, jsx("span", {
|
|
45
|
+
css: ConfigureOverlayWrapperStyles
|
|
46
|
+
}, showConfigureButton && jsx(OverlayButton, {
|
|
47
|
+
editorView: view,
|
|
48
|
+
targetElementPos: targetElementPos,
|
|
49
|
+
onDropdownChange: onDropdownChange,
|
|
50
|
+
onOpenLinkClick: onOpenLinkClick
|
|
51
|
+
})), children)
|
|
52
|
+
);
|
|
50
53
|
};
|
|
51
54
|
export default OverlayWrapper;
|
|
@@ -33,25 +33,28 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
|
|
|
33
33
|
setShowConfigureButton(false);
|
|
34
34
|
}
|
|
35
35
|
}, []);
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
36
|
+
return (
|
|
37
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
38
|
+
jsx("span", {
|
|
39
|
+
onMouseEnter: function onMouseEnter() {
|
|
40
|
+
setShowConfigureButton(true);
|
|
41
|
+
hoverCallback(true);
|
|
42
|
+
},
|
|
43
|
+
onMouseLeave: function onMouseLeave() {
|
|
44
|
+
if (!dropdownOpen) {
|
|
45
|
+
setShowConfigureButton(false);
|
|
46
|
+
hoverCallback(false);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"data-testid": "inline-card-overlay-wrapper"
|
|
50
|
+
}, jsx("span", {
|
|
51
|
+
css: ConfigureOverlayWrapperStyles
|
|
52
|
+
}, showConfigureButton && jsx(OverlayButton, {
|
|
53
|
+
editorView: view,
|
|
54
|
+
targetElementPos: targetElementPos,
|
|
55
|
+
onDropdownChange: onDropdownChange,
|
|
56
|
+
onOpenLinkClick: onOpenLinkClick
|
|
57
|
+
})), children)
|
|
58
|
+
);
|
|
56
59
|
};
|
|
57
60
|
export default OverlayWrapper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.9",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@atlaskit/link-datasource": "^3.13.0",
|
|
53
53
|
"@atlaskit/linking-common": "^6.0.0",
|
|
54
54
|
"@atlaskit/linking-types": "^9.5.0",
|
|
55
|
-
"@atlaskit/menu": "2.13.
|
|
55
|
+
"@atlaskit/menu": "2.13.4",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
|
-
"@atlaskit/primitives": "^13.
|
|
58
|
-
"@atlaskit/smart-card": "^
|
|
57
|
+
"@atlaskit/primitives": "^13.3.0",
|
|
58
|
+
"@atlaskit/smart-card": "^32.0.0",
|
|
59
59
|
"@atlaskit/theme": "^14.0.0",
|
|
60
60
|
"@atlaskit/tmp-editor-statsig": "^2.21.0",
|
|
61
61
|
"@atlaskit/tokens": "^2.3.0",
|