@atlaskit/editor-plugin-card 5.2.3 → 5.2.4
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 +6 -0
- package/dist/cjs/nodeviews/embedCard.js +0 -1
- package/dist/cjs/nodeviews/genericCard.js +2 -0
- package/dist/cjs/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/cjs/ui/OpenButtonOverlay/index.js +1 -1
- package/dist/es2019/nodeviews/embedCard.js +0 -1
- package/dist/es2019/nodeviews/genericCard.js +2 -0
- package/dist/es2019/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/es2019/ui/OpenButtonOverlay/index.js +1 -1
- package/dist/esm/nodeviews/embedCard.js +0 -1
- package/dist/esm/nodeviews/genericCard.js +2 -0
- package/dist/esm/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/esm/ui/OpenButtonOverlay/index.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -215,7 +215,6 @@ var EmbedCardComponent = exports.EmbedCardComponent = /*#__PURE__*/function (_Re
|
|
|
215
215
|
(0, _defineProperty2.default)(_this, "saveOriginalDimensionsAttributes", function (height, width) {
|
|
216
216
|
var view = _this.props.view;
|
|
217
217
|
|
|
218
|
-
// TODO: ED-15663
|
|
219
218
|
// Please, do not copy or use this kind of code below
|
|
220
219
|
// @ts-ignore
|
|
221
220
|
var fakeTableResizePluginKey = {
|
|
@@ -46,6 +46,8 @@ var WithClickHandler = function WithClickHandler(_ref) {
|
|
|
46
46
|
}
|
|
47
47
|
}, [url, onClickCallback]);
|
|
48
48
|
if ((0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages')) {
|
|
49
|
+
// Ignored via go/ees007
|
|
50
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
49
51
|
/**
|
|
50
52
|
* @todo: Add a check to determine if we're currently in a live page once ED-23920 and plugin
|
|
51
53
|
* is complete. The logic for which should allow navigation if we're in a live page and no callback
|
|
@@ -98,7 +98,7 @@ var LinkAppearanceMenu = exports.LinkAppearanceMenu = function LinkAppearanceMen
|
|
|
98
98
|
Icon = settingsConfig.icon;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
// TODO: packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
101
|
+
// TODO: ED-26961 - packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
102
102
|
// this implementation doesn't
|
|
103
103
|
return /*#__PURE__*/_react.default.createElement(_menu.MenuGroup, null, /*#__PURE__*/_react.default.createElement(_menu.Section, null, finalOptions.map(function (option) {
|
|
104
104
|
return /*#__PURE__*/_react.default.createElement(_menu.ButtonItem, {
|
|
@@ -48,7 +48,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
48
48
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
49
49
|
url = _ref.url,
|
|
50
50
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
51
|
-
// TODO add translation
|
|
51
|
+
// TODO: ED-26961 - add translation
|
|
52
52
|
var label = 'Open';
|
|
53
53
|
var handleDoubleClick = function handleDoubleClick() {
|
|
54
54
|
// Double click opens the link in a new tab
|
|
@@ -31,6 +31,8 @@ const WithClickHandler = ({
|
|
|
31
31
|
}
|
|
32
32
|
}, [url, onClickCallback]);
|
|
33
33
|
if (fg('linking_platform_smart_links_in_live_pages')) {
|
|
34
|
+
// Ignored via go/ees007
|
|
35
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
34
36
|
/**
|
|
35
37
|
* @todo: Add a check to determine if we're currently in a live page once ED-23920 and plugin
|
|
36
38
|
* is complete. The logic for which should allow navigation if we're in a live page and no callback
|
|
@@ -84,7 +84,7 @@ export const LinkAppearanceMenu = ({
|
|
|
84
84
|
Icon = settingsConfig.icon;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
// TODO: packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
87
|
+
// TODO: ED-26961 - packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
88
88
|
// this implementation doesn't
|
|
89
89
|
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(Section, null, finalOptions.map(option => {
|
|
90
90
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
@@ -208,7 +208,6 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
208
208
|
_defineProperty(_this, "saveOriginalDimensionsAttributes", function (height, width) {
|
|
209
209
|
var view = _this.props.view;
|
|
210
210
|
|
|
211
|
-
// TODO: ED-15663
|
|
212
211
|
// Please, do not copy or use this kind of code below
|
|
213
212
|
// @ts-ignore
|
|
214
213
|
var fakeTableResizePluginKey = {
|
|
@@ -36,6 +36,8 @@ var WithClickHandler = function WithClickHandler(_ref) {
|
|
|
36
36
|
}
|
|
37
37
|
}, [url, onClickCallback]);
|
|
38
38
|
if (fg('linking_platform_smart_links_in_live_pages')) {
|
|
39
|
+
// Ignored via go/ees007
|
|
40
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
39
41
|
/**
|
|
40
42
|
* @todo: Add a check to determine if we're currently in a live page once ED-23920 and plugin
|
|
41
43
|
* is complete. The logic for which should allow navigation if we're in a live page and no callback
|
|
@@ -91,7 +91,7 @@ export var LinkAppearanceMenu = function LinkAppearanceMenu(_ref) {
|
|
|
91
91
|
Icon = settingsConfig.icon;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// TODO: packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
94
|
+
// TODO: ED-26961 - packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
95
95
|
// this implementation doesn't
|
|
96
96
|
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(Section, null, finalOptions.map(function (option) {
|
|
97
97
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
@@ -41,7 +41,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
41
41
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
42
42
|
url = _ref.url,
|
|
43
43
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
44
|
-
// TODO add translation
|
|
44
|
+
// TODO: ED-26961 - add translation
|
|
45
45
|
var label = 'Open';
|
|
46
46
|
var handleDoubleClick = function handleDoubleClick() {
|
|
47
47
|
// Double click opens the link in a new tab
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
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": "^21.1.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^102.
|
|
40
|
+
"@atlaskit/editor-common": "^102.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^2.3.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
46
46
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
47
47
|
"@atlaskit/editor-plugin-feature-flags": "^1.3.0",
|
|
48
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^3.
|
|
48
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^3.2.0",
|
|
49
49
|
"@atlaskit/editor-plugin-grid": "^2.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
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": "^
|
|
55
|
-
"@atlaskit/link-analytics": "^9.
|
|
54
|
+
"@atlaskit/icon": "^25.0.0",
|
|
55
|
+
"@atlaskit/link-analytics": "^9.1.0",
|
|
56
56
|
"@atlaskit/link-client-extension": "^4.0.0",
|
|
57
57
|
"@atlaskit/link-datasource": "^3.22.0",
|
|
58
58
|
"@atlaskit/linking-common": "^8.0.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@atlaskit/primitives": "^14.1.0",
|
|
63
63
|
"@atlaskit/smart-card": "^35.2.0",
|
|
64
64
|
"@atlaskit/theme": "^18.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^3.
|
|
66
|
-
"@atlaskit/tokens": "^4.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^3.6.0",
|
|
66
|
+
"@atlaskit/tokens": "^4.4.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"lodash": "^4.17.21",
|