@atlaskit/editor-plugin-card 17.2.0 → 17.2.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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 17.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d5309f5ee468b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d5309f5ee468b) -
|
|
8
|
+
Reverts changes from PR #383977 ("Add tooltips to paste menu display buttons and rename section to
|
|
9
|
+
Display link as").
|
|
10
|
+
|
|
3
11
|
## 17.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -26,7 +26,6 @@ var _smartLinkEmbed = _interopRequireDefault(require("@atlaskit/icon/core/smart-
|
|
|
26
26
|
var _smartLinkInline = _interopRequireDefault(require("@atlaskit/icon/core/smart-link-inline"));
|
|
27
27
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
28
28
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
29
|
-
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
30
29
|
var _doc = require("../pm-plugins/doc");
|
|
31
30
|
var _currentPastedSmartLink = require("./currentPastedSmartLink");
|
|
32
31
|
var _pasteDisplayAsUtils = require("./pasteDisplayAsUtils");
|
|
@@ -58,9 +57,6 @@ var AppearanceOptionIconButton = function AppearanceOptionIconButton(_ref) {
|
|
|
58
57
|
onClick = _ref.onClick;
|
|
59
58
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
60
59
|
xcss: styles.iconWrapper
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
62
|
-
content: label,
|
|
63
|
-
position: "bottom"
|
|
64
60
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
|
|
65
61
|
xcss: (0, _css.cx)(styles.iconButton, isDisabled && styles.iconButtonDisabled, !isDisabled && currentAppearance === appearance && styles.iconButtonSelected),
|
|
66
62
|
"aria-label": label,
|
|
@@ -69,7 +65,7 @@ var AppearanceOptionIconButton = function AppearanceOptionIconButton(_ref) {
|
|
|
69
65
|
onClick: onClick
|
|
70
66
|
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
71
67
|
label: label
|
|
72
|
-
})))
|
|
68
|
+
})));
|
|
73
69
|
};
|
|
74
70
|
var InlineAppearanceIconButton = function InlineAppearanceIconButton(_ref2) {
|
|
75
71
|
var currentAppearance = _ref2.currentAppearance,
|
|
@@ -323,9 +319,9 @@ var PasteDisplayAsMenuSection = function PasteDisplayAsMenuSection(_ref9) {
|
|
|
323
319
|
var intl = (0, _reactIntl.useIntl)();
|
|
324
320
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
|
|
325
321
|
title: intl.formatMessage({
|
|
326
|
-
defaultMessage: 'Display
|
|
327
|
-
description: 'Section title
|
|
328
|
-
id: 'fabric.editor.pasteDisplayAsMenu.
|
|
322
|
+
defaultMessage: 'Display as',
|
|
323
|
+
description: 'Section title for Smart Link display options in the paste actions menu.',
|
|
324
|
+
id: 'fabric.editor.pasteDisplayAsMenu.displayAs'
|
|
329
325
|
})
|
|
330
326
|
}, /*#__PURE__*/_react.default.createElement(PasteDisplayAsMenuHorizontalView, {
|
|
331
327
|
api: api,
|
|
@@ -18,7 +18,6 @@ import SmartLinkEmbedIcon from '@atlaskit/icon/core/smart-link-embed';
|
|
|
18
18
|
import SmartLinkInlineIcon from '@atlaskit/icon/core/smart-link-inline';
|
|
19
19
|
import { useSmartCardContext } from '@atlaskit/link-provider';
|
|
20
20
|
import { Box, Flex, Pressable } from '@atlaskit/primitives/compiled';
|
|
21
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
22
21
|
import { changeSelectedCardToLink, setSelectedCardAppearance } from '../pm-plugins/doc';
|
|
23
22
|
import { getSingleSmartLinkUrlFromSlice } from './currentPastedSmartLink';
|
|
24
23
|
import { getCardAtPasteRange } from './pasteDisplayAsUtils';
|
|
@@ -50,9 +49,6 @@ const AppearanceOptionIconButton = ({
|
|
|
50
49
|
}) => {
|
|
51
50
|
return /*#__PURE__*/React.createElement(Box, {
|
|
52
51
|
xcss: styles.iconWrapper
|
|
53
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
54
|
-
content: label,
|
|
55
|
-
position: "bottom"
|
|
56
52
|
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
57
53
|
xcss: cx(styles.iconButton, isDisabled && styles.iconButtonDisabled, !isDisabled && currentAppearance === appearance && styles.iconButtonSelected),
|
|
58
54
|
"aria-label": label,
|
|
@@ -61,7 +57,7 @@ const AppearanceOptionIconButton = ({
|
|
|
61
57
|
onClick: onClick
|
|
62
58
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
63
59
|
label: label
|
|
64
|
-
})))
|
|
60
|
+
})));
|
|
65
61
|
};
|
|
66
62
|
const InlineAppearanceIconButton = ({
|
|
67
63
|
currentAppearance,
|
|
@@ -324,9 +320,9 @@ const PasteDisplayAsMenuSection = ({
|
|
|
324
320
|
const intl = useIntl();
|
|
325
321
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
326
322
|
title: intl.formatMessage({
|
|
327
|
-
defaultMessage: 'Display
|
|
328
|
-
description: 'Section title
|
|
329
|
-
id: 'fabric.editor.pasteDisplayAsMenu.
|
|
323
|
+
defaultMessage: 'Display as',
|
|
324
|
+
description: 'Section title for Smart Link display options in the paste actions menu.',
|
|
325
|
+
id: 'fabric.editor.pasteDisplayAsMenu.displayAs'
|
|
330
326
|
})
|
|
331
327
|
}, /*#__PURE__*/React.createElement(PasteDisplayAsMenuHorizontalView, {
|
|
332
328
|
api: api,
|
|
@@ -18,7 +18,6 @@ import SmartLinkEmbedIcon from '@atlaskit/icon/core/smart-link-embed';
|
|
|
18
18
|
import SmartLinkInlineIcon from '@atlaskit/icon/core/smart-link-inline';
|
|
19
19
|
import { useSmartCardContext } from '@atlaskit/link-provider';
|
|
20
20
|
import { Box, Flex, Pressable } from '@atlaskit/primitives/compiled';
|
|
21
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
22
21
|
import { changeSelectedCardToLink, setSelectedCardAppearance } from '../pm-plugins/doc';
|
|
23
22
|
import { getSingleSmartLinkUrlFromSlice } from './currentPastedSmartLink';
|
|
24
23
|
import { getCardAtPasteRange } from './pasteDisplayAsUtils';
|
|
@@ -49,9 +48,6 @@ var AppearanceOptionIconButton = function AppearanceOptionIconButton(_ref) {
|
|
|
49
48
|
onClick = _ref.onClick;
|
|
50
49
|
return /*#__PURE__*/React.createElement(Box, {
|
|
51
50
|
xcss: styles.iconWrapper
|
|
52
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
53
|
-
content: label,
|
|
54
|
-
position: "bottom"
|
|
55
51
|
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
56
52
|
xcss: cx(styles.iconButton, isDisabled && styles.iconButtonDisabled, !isDisabled && currentAppearance === appearance && styles.iconButtonSelected),
|
|
57
53
|
"aria-label": label,
|
|
@@ -60,7 +56,7 @@ var AppearanceOptionIconButton = function AppearanceOptionIconButton(_ref) {
|
|
|
60
56
|
onClick: onClick
|
|
61
57
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
62
58
|
label: label
|
|
63
|
-
})))
|
|
59
|
+
})));
|
|
64
60
|
};
|
|
65
61
|
var InlineAppearanceIconButton = function InlineAppearanceIconButton(_ref2) {
|
|
66
62
|
var currentAppearance = _ref2.currentAppearance,
|
|
@@ -314,9 +310,9 @@ var PasteDisplayAsMenuSection = function PasteDisplayAsMenuSection(_ref9) {
|
|
|
314
310
|
var intl = useIntl();
|
|
315
311
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
316
312
|
title: intl.formatMessage({
|
|
317
|
-
defaultMessage: 'Display
|
|
318
|
-
description: 'Section title
|
|
319
|
-
id: 'fabric.editor.pasteDisplayAsMenu.
|
|
313
|
+
defaultMessage: 'Display as',
|
|
314
|
+
description: 'Section title for Smart Link display options in the paste actions menu.',
|
|
315
|
+
id: 'fabric.editor.pasteDisplayAsMenu.displayAs'
|
|
320
316
|
})
|
|
321
317
|
}, /*#__PURE__*/React.createElement(PasteDisplayAsMenuHorizontalView, {
|
|
322
318
|
api: api,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.1",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,9 +66,8 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^19.0.0",
|
|
67
67
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
68
68
|
"@atlaskit/smart-card": "^44.23.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^89.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^89.1.0",
|
|
70
70
|
"@atlaskit/tokens": "^13.1.0",
|
|
71
|
-
"@atlaskit/tooltip": "^22.6.0",
|
|
72
71
|
"@babel/runtime": "^7.0.0",
|
|
73
72
|
"@emotion/react": "^11.7.1",
|
|
74
73
|
"lodash": "^4.17.21",
|
|
@@ -77,7 +76,7 @@
|
|
|
77
76
|
"uuid": "^3.1.0"
|
|
78
77
|
},
|
|
79
78
|
"peerDependencies": {
|
|
80
|
-
"@atlaskit/editor-common": "^115.
|
|
79
|
+
"@atlaskit/editor-common": "^115.5.0",
|
|
81
80
|
"@atlaskit/link-provider": "^4.6.0",
|
|
82
81
|
"react": "^18.2.0",
|
|
83
82
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|