@atlaskit/editor-plugin-card 4.3.10 → 4.3.11
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 +10 -0
- package/dist/cjs/nodeviews/blockCard.js +1 -12
- package/dist/cjs/nodeviews/inlineCard.js +1 -15
- package/dist/es2019/nodeviews/blockCard.js +1 -12
- package/dist/es2019/nodeviews/inlineCard.js +1 -15
- package/dist/esm/nodeviews/blockCard.js +1 -12
- package/dist/esm/nodeviews/inlineCard.js +1 -15
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 4.3.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#159791](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159791)
|
|
8
|
+
[`ce28bda7a3e2a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce28bda7a3e2a) -
|
|
9
|
+
Removing usages of `linking-platform-migrate-deprecated-data-prop` FF so we can remove deprecated
|
|
10
|
+
props from `@atlaskit/smart-card`
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 4.3.10
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -92,7 +92,7 @@ var BlockCardComponent = exports.BlockCardComponent = /*#__PURE__*/function (_Re
|
|
|
92
92
|
var _node$attrs = node.attrs,
|
|
93
93
|
url = _node$attrs.url,
|
|
94
94
|
data = _node$attrs.data;
|
|
95
|
-
var cardInner = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null,
|
|
95
|
+
var cardInner = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_smartCard.Card, {
|
|
96
96
|
key: url,
|
|
97
97
|
url: url !== null && url !== void 0 ? url : data.url,
|
|
98
98
|
container: this.scrollContainer,
|
|
@@ -102,17 +102,6 @@ var BlockCardComponent = exports.BlockCardComponent = /*#__PURE__*/function (_Re
|
|
|
102
102
|
onError: this.onError,
|
|
103
103
|
platform: 'web',
|
|
104
104
|
actionOptions: actionOptions
|
|
105
|
-
}) : /*#__PURE__*/_react.default.createElement(_smartCard.Card, {
|
|
106
|
-
key: url,
|
|
107
|
-
url: url,
|
|
108
|
-
data: data,
|
|
109
|
-
container: this.scrollContainer,
|
|
110
|
-
appearance: "block",
|
|
111
|
-
onClick: onClick,
|
|
112
|
-
onResolve: this.onResolve,
|
|
113
|
-
onError: this.onError,
|
|
114
|
-
platform: 'web',
|
|
115
|
-
actionOptions: actionOptions
|
|
116
105
|
}), this.gapCursorSpan());
|
|
117
106
|
// [WS-2307]: we only render card wrapped into a Provider when the value is ready,
|
|
118
107
|
// otherwise if we got data, we can render the card directly since it doesn't need the Provider
|
|
@@ -78,7 +78,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
78
78
|
});
|
|
79
79
|
}, [onResolve]);
|
|
80
80
|
var card = (0, _react.useMemo)(function () {
|
|
81
|
-
return
|
|
81
|
+
return /*#__PURE__*/_react.default.createElement(_smartCard.Card, {
|
|
82
82
|
key: url,
|
|
83
83
|
url: url !== null && url !== void 0 ? url : data.url,
|
|
84
84
|
appearance: "inline",
|
|
@@ -91,20 +91,6 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
91
91
|
isHovered: isHovered,
|
|
92
92
|
showHoverPreview: showHoverPreview,
|
|
93
93
|
hoverPreviewOptions: hoverPreviewOptions
|
|
94
|
-
}) : /*#__PURE__*/_react.default.createElement(_smartCard.Card, {
|
|
95
|
-
key: url,
|
|
96
|
-
url: url,
|
|
97
|
-
data: data,
|
|
98
|
-
appearance: "inline",
|
|
99
|
-
onClick: onClick,
|
|
100
|
-
container: scrollContainer,
|
|
101
|
-
onResolve: onResolve,
|
|
102
|
-
onError: onError,
|
|
103
|
-
inlinePreloaderStyle: useAlternativePreloader ? 'on-right-without-skeleton' : undefined,
|
|
104
|
-
actionOptions: actionOptions,
|
|
105
|
-
isHovered: isHovered,
|
|
106
|
-
showHoverPreview: showHoverPreview,
|
|
107
|
-
hoverPreviewOptions: hoverPreviewOptions
|
|
108
94
|
});
|
|
109
95
|
}, [url, data, onClick, scrollContainer, onResolve, onError, useAlternativePreloader, actionOptions, isHovered, showHoverPreview, hoverPreviewOptions]);
|
|
110
96
|
|
|
@@ -76,7 +76,7 @@ export class BlockCardComponent extends React.PureComponent {
|
|
|
76
76
|
url,
|
|
77
77
|
data
|
|
78
78
|
} = node.attrs;
|
|
79
|
-
const cardInner = /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
79
|
+
const cardInner = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SmartCard, {
|
|
80
80
|
key: url,
|
|
81
81
|
url: url !== null && url !== void 0 ? url : data.url,
|
|
82
82
|
container: this.scrollContainer,
|
|
@@ -86,17 +86,6 @@ export class BlockCardComponent extends React.PureComponent {
|
|
|
86
86
|
onError: this.onError,
|
|
87
87
|
platform: 'web',
|
|
88
88
|
actionOptions: actionOptions
|
|
89
|
-
}) : /*#__PURE__*/React.createElement(SmartCard, {
|
|
90
|
-
key: url,
|
|
91
|
-
url: url,
|
|
92
|
-
data: data,
|
|
93
|
-
container: this.scrollContainer,
|
|
94
|
-
appearance: "block",
|
|
95
|
-
onClick: onClick,
|
|
96
|
-
onResolve: this.onResolve,
|
|
97
|
-
onError: this.onError,
|
|
98
|
-
platform: 'web',
|
|
99
|
-
actionOptions: actionOptions
|
|
100
89
|
}), this.gapCursorSpan());
|
|
101
90
|
// [WS-2307]: we only render card wrapped into a Provider when the value is ready,
|
|
102
91
|
// otherwise if we got data, we can render the card directly since it doesn't need the Provider
|
|
@@ -68,7 +68,7 @@ export const InlineCard = /*#__PURE__*/memo(({
|
|
|
68
68
|
url
|
|
69
69
|
});
|
|
70
70
|
}, [onResolve]);
|
|
71
|
-
const card = useMemo(() =>
|
|
71
|
+
const card = useMemo(() => /*#__PURE__*/React.createElement(SmartCard, {
|
|
72
72
|
key: url,
|
|
73
73
|
url: url !== null && url !== void 0 ? url : data.url,
|
|
74
74
|
appearance: "inline",
|
|
@@ -81,20 +81,6 @@ export const InlineCard = /*#__PURE__*/memo(({
|
|
|
81
81
|
isHovered: isHovered,
|
|
82
82
|
showHoverPreview: showHoverPreview,
|
|
83
83
|
hoverPreviewOptions: hoverPreviewOptions
|
|
84
|
-
}) : /*#__PURE__*/React.createElement(SmartCard, {
|
|
85
|
-
key: url,
|
|
86
|
-
url: url,
|
|
87
|
-
data: data,
|
|
88
|
-
appearance: "inline",
|
|
89
|
-
onClick: onClick,
|
|
90
|
-
container: scrollContainer,
|
|
91
|
-
onResolve: onResolve,
|
|
92
|
-
onError: onError,
|
|
93
|
-
inlinePreloaderStyle: useAlternativePreloader ? 'on-right-without-skeleton' : undefined,
|
|
94
|
-
actionOptions: actionOptions,
|
|
95
|
-
isHovered: isHovered,
|
|
96
|
-
showHoverPreview: showHoverPreview,
|
|
97
|
-
hoverPreviewOptions: hoverPreviewOptions
|
|
98
84
|
}), [url, data, onClick, scrollContainer, onResolve, onError, useAlternativePreloader, actionOptions, isHovered, showHoverPreview, hoverPreviewOptions]);
|
|
99
85
|
|
|
100
86
|
// [WS-2307]: we only render card wrapped into a Provider when the value is ready,
|
|
@@ -86,7 +86,7 @@ export var BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
86
86
|
var _node$attrs = node.attrs,
|
|
87
87
|
url = _node$attrs.url,
|
|
88
88
|
data = _node$attrs.data;
|
|
89
|
-
var cardInner = /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
89
|
+
var cardInner = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SmartCard, {
|
|
90
90
|
key: url,
|
|
91
91
|
url: url !== null && url !== void 0 ? url : data.url,
|
|
92
92
|
container: this.scrollContainer,
|
|
@@ -96,17 +96,6 @@ export var BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
96
96
|
onError: this.onError,
|
|
97
97
|
platform: 'web',
|
|
98
98
|
actionOptions: actionOptions
|
|
99
|
-
}) : /*#__PURE__*/React.createElement(SmartCard, {
|
|
100
|
-
key: url,
|
|
101
|
-
url: url,
|
|
102
|
-
data: data,
|
|
103
|
-
container: this.scrollContainer,
|
|
104
|
-
appearance: "block",
|
|
105
|
-
onClick: onClick,
|
|
106
|
-
onResolve: this.onResolve,
|
|
107
|
-
onError: this.onError,
|
|
108
|
-
platform: 'web',
|
|
109
|
-
actionOptions: actionOptions
|
|
110
99
|
}), this.gapCursorSpan());
|
|
111
100
|
// [WS-2307]: we only render card wrapped into a Provider when the value is ready,
|
|
112
101
|
// otherwise if we got data, we can render the card directly since it doesn't need the Provider
|
|
@@ -66,7 +66,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
|
|
|
66
66
|
});
|
|
67
67
|
}, [onResolve]);
|
|
68
68
|
var card = useMemo(function () {
|
|
69
|
-
return
|
|
69
|
+
return /*#__PURE__*/React.createElement(SmartCard, {
|
|
70
70
|
key: url,
|
|
71
71
|
url: url !== null && url !== void 0 ? url : data.url,
|
|
72
72
|
appearance: "inline",
|
|
@@ -79,20 +79,6 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
|
|
|
79
79
|
isHovered: isHovered,
|
|
80
80
|
showHoverPreview: showHoverPreview,
|
|
81
81
|
hoverPreviewOptions: hoverPreviewOptions
|
|
82
|
-
}) : /*#__PURE__*/React.createElement(SmartCard, {
|
|
83
|
-
key: url,
|
|
84
|
-
url: url,
|
|
85
|
-
data: data,
|
|
86
|
-
appearance: "inline",
|
|
87
|
-
onClick: onClick,
|
|
88
|
-
container: scrollContainer,
|
|
89
|
-
onResolve: onResolve,
|
|
90
|
-
onError: onError,
|
|
91
|
-
inlinePreloaderStyle: useAlternativePreloader ? 'on-right-without-skeleton' : undefined,
|
|
92
|
-
actionOptions: actionOptions,
|
|
93
|
-
isHovered: isHovered,
|
|
94
|
-
showHoverPreview: showHoverPreview,
|
|
95
|
-
hoverPreviewOptions: hoverPreviewOptions
|
|
96
82
|
});
|
|
97
83
|
}, [url, data, onClick, scrollContainer, onResolve, onError, useAlternativePreloader, actionOptions, isHovered, showHoverPreview, hoverPreviewOptions]);
|
|
98
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.11",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/adf-schema": "^44.2.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
36
36
|
"@atlaskit/custom-steps": "^0.8.0",
|
|
37
|
-
"@atlaskit/editor-common": "^94.
|
|
37
|
+
"@atlaskit/editor-common": "^94.11.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-grid": "^1.2.0",
|
|
45
45
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
47
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
47
|
+
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
48
48
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
49
49
|
"@atlaskit/icon": "^22.24.0",
|
|
50
50
|
"@atlaskit/link-analytics": "^8.5.0",
|
|
51
51
|
"@atlaskit/link-client-extension": "^2.4.0",
|
|
52
|
-
"@atlaskit/link-datasource": "^3.
|
|
52
|
+
"@atlaskit/link-datasource": "^3.7.0",
|
|
53
53
|
"@atlaskit/linking-common": "^6.0.0",
|
|
54
54
|
"@atlaskit/linking-types": "^9.3.0",
|
|
55
55
|
"@atlaskit/menu": "2.13.2",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/primitives": "^13.0.0",
|
|
58
|
-
"@atlaskit/smart-card": "^30.
|
|
58
|
+
"@atlaskit/smart-card": "^30.2.0",
|
|
59
59
|
"@atlaskit/theme": "^14.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^2.11.0",
|
|
61
61
|
"@atlaskit/tokens": "^2.0.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -131,9 +131,6 @@
|
|
|
131
131
|
},
|
|
132
132
|
"platform_editor_ssr_fix_smartlinks": {
|
|
133
133
|
"type": "boolean"
|
|
134
|
-
},
|
|
135
|
-
"linking-platform-migrate-deprecated-data-prop": {
|
|
136
|
-
"type": "boolean"
|
|
137
134
|
}
|
|
138
135
|
},
|
|
139
136
|
"stricter": {
|