@atlaskit/editor-plugin-card 5.4.12 → 5.4.13
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 +9 -0
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +9 -3
- package/dist/cjs/ui/OpenButtonOverlay/index.js +10 -3
- package/dist/cjs/ui/OpenButtonOverlay/types.js +5 -1
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +9 -3
- package/dist/es2019/ui/OpenButtonOverlay/index.js +9 -2
- package/dist/es2019/ui/OpenButtonOverlay/types.js +1 -0
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +9 -3
- package/dist/esm/ui/OpenButtonOverlay/index.js +10 -3
- package/dist/esm/ui/OpenButtonOverlay/types.js +1 -0
- package/dist/types/ui/OpenButtonOverlay/index.d.ts +1 -1
- package/dist/types/ui/OpenButtonOverlay/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/OpenButtonOverlay/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/OpenButtonOverlay/types.d.ts +2 -0
- package/package.json +13 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 5.4.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#141796](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/141796)
|
|
8
|
+
[`79a03eeb47e72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79a03eeb47e72) -
|
|
9
|
+
[ux] Fix truncate issue for open button text when hover on smart link
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 5.4.12
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -19,6 +19,7 @@ var _inlineCard = require("./inlineCard");
|
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
22
|
+
var _pluginInjectionApi$c;
|
|
22
23
|
var node = _ref.node,
|
|
23
24
|
cardContext = _ref.cardContext,
|
|
24
25
|
actionOptions = _ref.actionOptions,
|
|
@@ -44,6 +45,7 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
44
45
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
45
46
|
isResolvedViewRendered = _useState6[0],
|
|
46
47
|
setIsResolvedViewRendered = _useState6[1];
|
|
48
|
+
var editorAppearance = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.card.sharedState.currentState()) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.editorAppearance;
|
|
47
49
|
var onResolve = (0, _react.useCallback)(function (tr, title) {
|
|
48
50
|
if ((0, _platformFeatureFlags.fg)('platform_editor_fix_card_plugin_state')) {
|
|
49
51
|
var metadata = tr.getMeta(_pluginKey.pluginKey);
|
|
@@ -80,7 +82,8 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
80
82
|
var innerCardWithOpenButtonOverlay = (0, _react.useMemo)(function () {
|
|
81
83
|
return /*#__PURE__*/_react.default.createElement(_OpenButtonOverlay.default, {
|
|
82
84
|
isVisible: isResolvedViewRendered,
|
|
83
|
-
url: node.attrs.url
|
|
85
|
+
url: node.attrs.url,
|
|
86
|
+
editorAppearance: editorAppearance
|
|
84
87
|
}, /*#__PURE__*/_react.default.createElement(_inlineCard.InlineCard, {
|
|
85
88
|
node: node,
|
|
86
89
|
view: view,
|
|
@@ -93,7 +96,7 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
93
96
|
isHovered: isHovered,
|
|
94
97
|
isPageSSRed: isPageSSRed
|
|
95
98
|
}));
|
|
96
|
-
}, [isResolvedViewRendered, node, view, getPos, useAlternativePreloader, actionOptions, onResolve, onClick, cardContext, isHovered, isPageSSRed]);
|
|
99
|
+
}, [isResolvedViewRendered, node, editorAppearance, view, getPos, useAlternativePreloader, actionOptions, onResolve, onClick, cardContext, isHovered, isPageSSRed]);
|
|
97
100
|
var innerCardOriginal = (0, _react.useMemo)(function () {
|
|
98
101
|
return /*#__PURE__*/_react.default.createElement(_inlineCard.InlineCard, {
|
|
99
102
|
node: node,
|
|
@@ -108,7 +111,10 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
108
111
|
isPageSSRed: isPageSSRed
|
|
109
112
|
});
|
|
110
113
|
}, [actionOptions, cardContext, getPos, isHovered, node, onClick, onResolve, useAlternativePreloader, view, isPageSSRed]);
|
|
111
|
-
var
|
|
114
|
+
var shouldShowOpenButtonOverlay = (0, _react.useMemo)(function () {
|
|
115
|
+
return ((editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'edit' || editorAppearance === 'comment' && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6')) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
|
|
116
|
+
}, [editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode, editorAppearance]);
|
|
117
|
+
var innerCard = shouldShowOpenButtonOverlay ? innerCardWithOpenButtonOverlay : innerCardOriginal;
|
|
112
118
|
return isOverlayEnabled || isPulseEnabled ? /*#__PURE__*/_react.default.createElement(_AwarenessWrapper.AwarenessWrapper, {
|
|
113
119
|
isOverlayEnabled: isOverlayEnabled,
|
|
114
120
|
isPulseEnabled: isPulseEnabled,
|
|
@@ -13,7 +13,7 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
var _primitives = require("@atlaskit/primitives");
|
|
16
|
-
var _excluded = ["children", "isVisible", "url"];
|
|
16
|
+
var _excluded = ["children", "isVisible", "url", "editorAppearance"];
|
|
17
17
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
18
18
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
19
19
|
/**
|
|
@@ -62,6 +62,9 @@ var linkStyles = (0, _primitives.xcss)({
|
|
|
62
62
|
textDecoration: 'none'
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
+
var linkStylesFix = (0, _primitives.xcss)({
|
|
66
|
+
whiteSpace: 'nowrap'
|
|
67
|
+
});
|
|
65
68
|
var MIN_AVAILABLE_SPACE_WITH_LABEL_OVERLAY = 45;
|
|
66
69
|
var ICON_WIDTH = 16;
|
|
67
70
|
var DEFAULT_OPEN_TEXT_WIDTH = 28; // Default open text width in English
|
|
@@ -71,6 +74,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
71
74
|
_ref$isVisible = _ref.isVisible,
|
|
72
75
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
73
76
|
url = _ref.url,
|
|
77
|
+
editorAppearance = _ref.editorAppearance,
|
|
74
78
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
75
79
|
// TODO: ED-26961 - add translation
|
|
76
80
|
var label = 'Open';
|
|
@@ -147,9 +151,12 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
147
151
|
maxLines: 1
|
|
148
152
|
}, label)), isHovered && (0, _react2.jsx)(_primitives.Anchor, {
|
|
149
153
|
ref: openButtonRef,
|
|
150
|
-
xcss: linkStyles,
|
|
154
|
+
xcss: [linkStyles, (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_5') && linkStylesFix],
|
|
151
155
|
href: url,
|
|
152
|
-
target: "_blank"
|
|
156
|
+
target: "_blank",
|
|
157
|
+
style: {
|
|
158
|
+
paddingBlock: editorAppearance === 'comment' && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6') ? '1px' : "var(--ds-space-025, 2px)"
|
|
159
|
+
}
|
|
153
160
|
}, (0, _react2.jsx)(_primitives.Box, {
|
|
154
161
|
xcss: iconWrapperStyles,
|
|
155
162
|
"data-inlinecard-button-overlay": "icon-wrapper-line-height"
|
|
@@ -22,9 +22,11 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
|
|
|
22
22
|
isPageSSRed,
|
|
23
23
|
appearance
|
|
24
24
|
}) => {
|
|
25
|
+
var _pluginInjectionApi$c;
|
|
25
26
|
const [isHovered, setIsHovered] = useState(false);
|
|
26
27
|
const [isInserted, setIsInserted] = useState(false);
|
|
27
28
|
const [isResolvedViewRendered, setIsResolvedViewRendered] = useState(false);
|
|
29
|
+
const editorAppearance = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c = pluginInjectionApi.card.sharedState.currentState()) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.editorAppearance;
|
|
28
30
|
const onResolve = useCallback((tr, title) => {
|
|
29
31
|
if (fg('platform_editor_fix_card_plugin_state')) {
|
|
30
32
|
const metadata = tr.getMeta(pluginKey);
|
|
@@ -55,7 +57,8 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
|
|
|
55
57
|
} = useSharedPluginState(pluginInjectionApi, ['editorViewMode']);
|
|
56
58
|
const innerCardWithOpenButtonOverlay = useMemo(() => /*#__PURE__*/React.createElement(OpenButtonOverlay, {
|
|
57
59
|
isVisible: isResolvedViewRendered,
|
|
58
|
-
url: node.attrs.url
|
|
60
|
+
url: node.attrs.url,
|
|
61
|
+
editorAppearance: editorAppearance
|
|
59
62
|
}, /*#__PURE__*/React.createElement(InlineCard, {
|
|
60
63
|
node: node,
|
|
61
64
|
view: view,
|
|
@@ -67,7 +70,7 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
|
|
|
67
70
|
cardContext: cardContext,
|
|
68
71
|
isHovered: isHovered,
|
|
69
72
|
isPageSSRed: isPageSSRed
|
|
70
|
-
})), [isResolvedViewRendered, node, view, getPos, useAlternativePreloader, actionOptions, onResolve, onClick, cardContext, isHovered, isPageSSRed]);
|
|
73
|
+
})), [isResolvedViewRendered, node, editorAppearance, view, getPos, useAlternativePreloader, actionOptions, onResolve, onClick, cardContext, isHovered, isPageSSRed]);
|
|
71
74
|
const innerCardOriginal = useMemo(() => /*#__PURE__*/React.createElement(InlineCard, {
|
|
72
75
|
node: node,
|
|
73
76
|
view: view,
|
|
@@ -80,7 +83,10 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
|
|
|
80
83
|
isHovered: isHovered,
|
|
81
84
|
isPageSSRed: isPageSSRed
|
|
82
85
|
}), [actionOptions, cardContext, getPos, isHovered, node, onClick, onResolve, useAlternativePreloader, view, isPageSSRed]);
|
|
83
|
-
const
|
|
86
|
+
const shouldShowOpenButtonOverlay = useMemo(() => {
|
|
87
|
+
return ((editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'edit' || editorAppearance === 'comment' && fg('platform_editor_controls_patch_6')) && editorExperiment('platform_editor_controls', 'variant1');
|
|
88
|
+
}, [editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode, editorAppearance]);
|
|
89
|
+
const innerCard = shouldShowOpenButtonOverlay ? innerCardWithOpenButtonOverlay : innerCardOriginal;
|
|
84
90
|
return isOverlayEnabled || isPulseEnabled ? /*#__PURE__*/React.createElement(AwarenessWrapper, {
|
|
85
91
|
isOverlayEnabled: isOverlayEnabled,
|
|
86
92
|
isPulseEnabled: isPulseEnabled,
|
|
@@ -49,6 +49,9 @@ const linkStyles = xcss({
|
|
|
49
49
|
textDecoration: 'none'
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
+
const linkStylesFix = xcss({
|
|
53
|
+
whiteSpace: 'nowrap'
|
|
54
|
+
});
|
|
52
55
|
const MIN_AVAILABLE_SPACE_WITH_LABEL_OVERLAY = 45;
|
|
53
56
|
const ICON_WIDTH = 16;
|
|
54
57
|
const DEFAULT_OPEN_TEXT_WIDTH = 28; // Default open text width in English
|
|
@@ -57,6 +60,7 @@ const OpenButtonOverlay = ({
|
|
|
57
60
|
children,
|
|
58
61
|
isVisible = false,
|
|
59
62
|
url,
|
|
63
|
+
editorAppearance,
|
|
60
64
|
...props
|
|
61
65
|
}) => {
|
|
62
66
|
// TODO: ED-26961 - add translation
|
|
@@ -124,9 +128,12 @@ const OpenButtonOverlay = ({
|
|
|
124
128
|
maxLines: 1
|
|
125
129
|
}, label)), isHovered && jsx(Anchor, {
|
|
126
130
|
ref: openButtonRef,
|
|
127
|
-
xcss: linkStyles,
|
|
131
|
+
xcss: [linkStyles, fg('platform_editor_controls_patch_5') && linkStylesFix],
|
|
128
132
|
href: url,
|
|
129
|
-
target: "_blank"
|
|
133
|
+
target: "_blank",
|
|
134
|
+
style: {
|
|
135
|
+
paddingBlock: editorAppearance === 'comment' && fg('platform_editor_controls_patch_6') ? '1px' : "var(--ds-space-025, 2px)"
|
|
136
|
+
}
|
|
130
137
|
}, jsx(Box, {
|
|
131
138
|
xcss: iconWrapperStyles,
|
|
132
139
|
"data-inlinecard-button-overlay": "icon-wrapper-line-height"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,6 +9,7 @@ import { AwarenessWrapper } from '../ui/AwarenessWrapper';
|
|
|
9
9
|
import OpenButtonOverlay from '../ui/OpenButtonOverlay';
|
|
10
10
|
import { InlineCard } from './inlineCard';
|
|
11
11
|
export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
+
var _pluginInjectionApi$c;
|
|
12
13
|
var node = _ref.node,
|
|
13
14
|
cardContext = _ref.cardContext,
|
|
14
15
|
actionOptions = _ref.actionOptions,
|
|
@@ -34,6 +35,7 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
|
34
35
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
35
36
|
isResolvedViewRendered = _useState6[0],
|
|
36
37
|
setIsResolvedViewRendered = _useState6[1];
|
|
38
|
+
var editorAppearance = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.card.sharedState.currentState()) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.editorAppearance;
|
|
37
39
|
var onResolve = useCallback(function (tr, title) {
|
|
38
40
|
if (fg('platform_editor_fix_card_plugin_state')) {
|
|
39
41
|
var metadata = tr.getMeta(pluginKey);
|
|
@@ -70,7 +72,8 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
|
70
72
|
var innerCardWithOpenButtonOverlay = useMemo(function () {
|
|
71
73
|
return /*#__PURE__*/React.createElement(OpenButtonOverlay, {
|
|
72
74
|
isVisible: isResolvedViewRendered,
|
|
73
|
-
url: node.attrs.url
|
|
75
|
+
url: node.attrs.url,
|
|
76
|
+
editorAppearance: editorAppearance
|
|
74
77
|
}, /*#__PURE__*/React.createElement(InlineCard, {
|
|
75
78
|
node: node,
|
|
76
79
|
view: view,
|
|
@@ -83,7 +86,7 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
|
83
86
|
isHovered: isHovered,
|
|
84
87
|
isPageSSRed: isPageSSRed
|
|
85
88
|
}));
|
|
86
|
-
}, [isResolvedViewRendered, node, view, getPos, useAlternativePreloader, actionOptions, onResolve, onClick, cardContext, isHovered, isPageSSRed]);
|
|
89
|
+
}, [isResolvedViewRendered, node, editorAppearance, view, getPos, useAlternativePreloader, actionOptions, onResolve, onClick, cardContext, isHovered, isPageSSRed]);
|
|
87
90
|
var innerCardOriginal = useMemo(function () {
|
|
88
91
|
return /*#__PURE__*/React.createElement(InlineCard, {
|
|
89
92
|
node: node,
|
|
@@ -98,7 +101,10 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
|
98
101
|
isPageSSRed: isPageSSRed
|
|
99
102
|
});
|
|
100
103
|
}, [actionOptions, cardContext, getPos, isHovered, node, onClick, onResolve, useAlternativePreloader, view, isPageSSRed]);
|
|
101
|
-
var
|
|
104
|
+
var shouldShowOpenButtonOverlay = useMemo(function () {
|
|
105
|
+
return ((editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'edit' || editorAppearance === 'comment' && fg('platform_editor_controls_patch_6')) && editorExperiment('platform_editor_controls', 'variant1');
|
|
106
|
+
}, [editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode, editorAppearance]);
|
|
107
|
+
var innerCard = shouldShowOpenButtonOverlay ? innerCardWithOpenButtonOverlay : innerCardOriginal;
|
|
102
108
|
return isOverlayEnabled || isPulseEnabled ? /*#__PURE__*/React.createElement(AwarenessWrapper, {
|
|
103
109
|
isOverlayEnabled: isOverlayEnabled,
|
|
104
110
|
isPulseEnabled: isPulseEnabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "isVisible", "url"];
|
|
3
|
+
var _excluded = ["children", "isVisible", "url", "editorAppearance"];
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
6
6
|
/**
|
|
@@ -52,6 +52,9 @@ var linkStyles = xcss({
|
|
|
52
52
|
textDecoration: 'none'
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
+
var linkStylesFix = xcss({
|
|
56
|
+
whiteSpace: 'nowrap'
|
|
57
|
+
});
|
|
55
58
|
var MIN_AVAILABLE_SPACE_WITH_LABEL_OVERLAY = 45;
|
|
56
59
|
var ICON_WIDTH = 16;
|
|
57
60
|
var DEFAULT_OPEN_TEXT_WIDTH = 28; // Default open text width in English
|
|
@@ -61,6 +64,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
61
64
|
_ref$isVisible = _ref.isVisible,
|
|
62
65
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
63
66
|
url = _ref.url,
|
|
67
|
+
editorAppearance = _ref.editorAppearance,
|
|
64
68
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
65
69
|
// TODO: ED-26961 - add translation
|
|
66
70
|
var label = 'Open';
|
|
@@ -137,9 +141,12 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
137
141
|
maxLines: 1
|
|
138
142
|
}, label)), isHovered && jsx(Anchor, {
|
|
139
143
|
ref: openButtonRef,
|
|
140
|
-
xcss: linkStyles,
|
|
144
|
+
xcss: [linkStyles, fg('platform_editor_controls_patch_5') && linkStylesFix],
|
|
141
145
|
href: url,
|
|
142
|
-
target: "_blank"
|
|
146
|
+
target: "_blank",
|
|
147
|
+
style: {
|
|
148
|
+
paddingBlock: editorAppearance === 'comment' && fg('platform_editor_controls_patch_6') ? '1px' : "var(--ds-space-025, 2px)"
|
|
149
|
+
}
|
|
143
150
|
}, jsx(Box, {
|
|
144
151
|
xcss: iconWrapperStyles,
|
|
145
152
|
"data-inlinecard-button-overlay": "icon-wrapper-line-height"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { OpenButtonOverlayProps } from './types';
|
|
8
|
-
declare const OpenButtonOverlay: ({ children, isVisible, url, ...props }: React.PropsWithChildren<OpenButtonOverlayProps>) => jsx.JSX.Element;
|
|
8
|
+
declare const OpenButtonOverlay: ({ children, isVisible, url, editorAppearance, ...props }: React.PropsWithChildren<OpenButtonOverlayProps>) => jsx.JSX.Element;
|
|
9
9
|
export default OpenButtonOverlay;
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { OpenButtonOverlayProps } from './types';
|
|
8
|
-
declare const OpenButtonOverlay: ({ children, isVisible, url, ...props }: React.PropsWithChildren<OpenButtonOverlayProps>) => jsx.JSX.Element;
|
|
8
|
+
declare const OpenButtonOverlay: ({ children, isVisible, url, editorAppearance, ...props }: React.PropsWithChildren<OpenButtonOverlayProps>) => jsx.JSX.Element;
|
|
9
9
|
export default OpenButtonOverlay;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.13",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
38
|
"@atlaskit/button": "^23.0.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^103.
|
|
40
|
+
"@atlaskit/editor-common": "^103.8.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^2.3.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
53
53
|
"@atlaskit/frontend-utilities": "^3.0.0",
|
|
54
|
-
"@atlaskit/icon": "^25.
|
|
54
|
+
"@atlaskit/icon": "^25.6.0",
|
|
55
55
|
"@atlaskit/link-analytics": "^9.1.0",
|
|
56
56
|
"@atlaskit/link-client-extension": "^4.0.0",
|
|
57
|
-
"@atlaskit/link-datasource": "^4.
|
|
57
|
+
"@atlaskit/link-datasource": "^4.3.0",
|
|
58
58
|
"@atlaskit/linking-common": "^8.0.0",
|
|
59
59
|
"@atlaskit/linking-types": "^9.8.0",
|
|
60
60
|
"@atlaskit/menu": "^3.2.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
62
|
"@atlaskit/primitives": "^14.4.0",
|
|
63
|
-
"@atlaskit/smart-card": "^36.
|
|
63
|
+
"@atlaskit/smart-card": "^36.8.0",
|
|
64
64
|
"@atlaskit/theme": "^18.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
66
|
-
"@atlaskit/tokens": "^4.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^4.9.0",
|
|
66
|
+
"@atlaskit/tokens": "^4.8.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"lodash": "^4.17.21",
|
|
@@ -145,6 +145,12 @@
|
|
|
145
145
|
},
|
|
146
146
|
"platform_editor_controls_patch_3": {
|
|
147
147
|
"type": "boolean"
|
|
148
|
+
},
|
|
149
|
+
"platform_editor_controls_patch_5": {
|
|
150
|
+
"type": "boolean"
|
|
151
|
+
},
|
|
152
|
+
"platform_editor_controls_patch_6": {
|
|
153
|
+
"type": "boolean"
|
|
148
154
|
}
|
|
149
155
|
},
|
|
150
156
|
"stricter": {
|