@atlaskit/editor-plugin-card 12.3.3 → 12.3.5
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,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 12.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.3.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`edd1a9cea5ca1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/edd1a9cea5ca1) -
|
|
14
|
+
Make sure exposure fires regardless of whether the url is in cache
|
|
15
|
+
|
|
3
16
|
## 12.3.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -127,7 +127,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
127
127
|
var card = (0, _react.useMemo)(function () {
|
|
128
128
|
var _cardContext$value2;
|
|
129
129
|
var cardState = cardContext === null || cardContext === void 0 || (_cardContext$value2 = cardContext.value) === null || _cardContext$value2 === void 0 || (_cardContext$value2 = _cardContext$value2.store) === null || _cardContext$value2 === void 0 ? void 0 : _cardContext$value2.getState()[url || ''];
|
|
130
|
-
if ((isPageSSRed ||
|
|
130
|
+
if ((isPageSSRed || (0, _expValEquals.expValEquals)('platform_editor_smartlink_local_cache', 'isEnabled', true) && cardState) && url) {
|
|
131
131
|
return /*#__PURE__*/_react.default.createElement(_ssr.CardSSR, {
|
|
132
132
|
key: url,
|
|
133
133
|
url: url,
|
|
@@ -122,7 +122,7 @@ export const InlineCard = /*#__PURE__*/memo(({
|
|
|
122
122
|
const card = useMemo(() => {
|
|
123
123
|
var _cardContext$value2, _cardContext$value2$s;
|
|
124
124
|
const cardState = cardContext === null || cardContext === void 0 ? void 0 : (_cardContext$value2 = cardContext.value) === null || _cardContext$value2 === void 0 ? void 0 : (_cardContext$value2$s = _cardContext$value2.store) === null || _cardContext$value2$s === void 0 ? void 0 : _cardContext$value2$s.getState()[url || ''];
|
|
125
|
-
if ((isPageSSRed ||
|
|
125
|
+
if ((isPageSSRed || expValEquals('platform_editor_smartlink_local_cache', 'isEnabled', true) && cardState) && url) {
|
|
126
126
|
return /*#__PURE__*/React.createElement(CardSSR, {
|
|
127
127
|
key: url,
|
|
128
128
|
url: url,
|
|
@@ -115,7 +115,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
|
|
|
115
115
|
var card = useMemo(function () {
|
|
116
116
|
var _cardContext$value2;
|
|
117
117
|
var cardState = cardContext === null || cardContext === void 0 || (_cardContext$value2 = cardContext.value) === null || _cardContext$value2 === void 0 || (_cardContext$value2 = _cardContext$value2.store) === null || _cardContext$value2 === void 0 ? void 0 : _cardContext$value2.getState()[url || ''];
|
|
118
|
-
if ((isPageSSRed ||
|
|
118
|
+
if ((isPageSSRed || expValEquals('platform_editor_smartlink_local_cache', 'isEnabled', true) && cardState) && url) {
|
|
119
119
|
return /*#__PURE__*/React.createElement(CardSSR, {
|
|
120
120
|
key: url,
|
|
121
121
|
url: url,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.5",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
62
62
|
"@atlaskit/smart-card": "^43.24.0",
|
|
63
63
|
"@atlaskit/theme": "^21.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^24.0.0",
|
|
65
65
|
"@atlaskit/tokens": "^11.0.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@atlaskit/editor-common": "^111.12.0",
|
|
75
|
-
"@atlaskit/link-provider": "^4.
|
|
75
|
+
"@atlaskit/link-provider": "^4.2.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
78
78
|
},
|