@atlaskit/editor-plugin-card 7.2.5 → 7.2.7
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 +18 -0
- package/dist/cjs/nodeviews/inlineCard.js +1 -1
- package/dist/cjs/nodeviews/lazy-inline-card.js +1 -2
- package/dist/es2019/nodeviews/inlineCard.js +1 -1
- package/dist/es2019/nodeviews/lazy-inline-card.js +1 -2
- package/dist/esm/nodeviews/inlineCard.js +1 -1
- package/dist/esm/nodeviews/lazy-inline-card.js +1 -2
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 7.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#196532](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/196532)
|
|
8
|
+
[`7c7986b4858da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7c7986b4858da) -
|
|
9
|
+
Cleanup FG platform_ssr_smartlinks_editor
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 7.2.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#195649](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195649)
|
|
17
|
+
[`231bb33e06dfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/231bb33e06dfe) -
|
|
18
|
+
EDITOR-1131 Bump adf-schema version to 50.2.0
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 7.2.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -110,7 +110,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
110
110
|
exposure: true
|
|
111
111
|
}) ? handleOnClick : propsOnClick;
|
|
112
112
|
var card = (0, _react.useMemo)(function () {
|
|
113
|
-
if (isPageSSRed && url
|
|
113
|
+
if (isPageSSRed && url) {
|
|
114
114
|
return /*#__PURE__*/_react.default.createElement(_ssr.CardSSR, {
|
|
115
115
|
key: url,
|
|
116
116
|
url: url,
|
|
@@ -7,13 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.lazyInlineCardView = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
11
|
var _inlineCard = require("./inlineCard");
|
|
13
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
13
|
var lazyInlineCardView = exports.lazyInlineCardView = function lazyInlineCardView(props) {
|
|
15
14
|
var isPageSSRed = props.isPageSSRed || false;
|
|
16
|
-
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false) || isPageSSRed
|
|
15
|
+
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false) || isPageSSRed) {
|
|
17
16
|
return (0, _inlineCard.inlineCardNodeView)(props);
|
|
18
17
|
}
|
|
19
18
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -106,7 +106,7 @@ export const InlineCard = /*#__PURE__*/memo(({
|
|
|
106
106
|
exposure: true
|
|
107
107
|
}) ? handleOnClick : propsOnClick;
|
|
108
108
|
const card = useMemo(() => {
|
|
109
|
-
if (isPageSSRed && url
|
|
109
|
+
if (isPageSSRed && url) {
|
|
110
110
|
return /*#__PURE__*/React.createElement(CardSSR, {
|
|
111
111
|
key: url,
|
|
112
112
|
url: url,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
3
|
import { inlineCardNodeView } from './inlineCard';
|
|
5
4
|
export const lazyInlineCardView = props => {
|
|
6
5
|
const isPageSSRed = props.isPageSSRed || false;
|
|
7
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false) || isPageSSRed
|
|
6
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false) || isPageSSRed) {
|
|
8
7
|
return inlineCardNodeView(props);
|
|
9
8
|
}
|
|
10
9
|
return withLazyLoading({
|
|
@@ -99,7 +99,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
|
|
|
99
99
|
exposure: true
|
|
100
100
|
}) ? handleOnClick : propsOnClick;
|
|
101
101
|
var card = useMemo(function () {
|
|
102
|
-
if (isPageSSRed && url
|
|
102
|
+
if (isPageSSRed && url) {
|
|
103
103
|
return /*#__PURE__*/React.createElement(CardSSR, {
|
|
104
104
|
key: url,
|
|
105
105
|
url: url,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
3
|
import { inlineCardNodeView } from './inlineCard';
|
|
5
4
|
export var lazyInlineCardView = function lazyInlineCardView(props) {
|
|
6
5
|
var isPageSSRed = props.isPageSSRed || false;
|
|
7
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false) || isPageSSRed
|
|
6
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false) || isPageSSRed) {
|
|
8
7
|
return inlineCardNodeView(props);
|
|
9
8
|
}
|
|
10
9
|
return withLazyLoading({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.7",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^50.0
|
|
35
|
+
"@atlaskit/adf-schema": "^50.2.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
37
37
|
"@atlaskit/button": "^23.3.0",
|
|
38
38
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
"@atlaskit/link": "^3.2.0",
|
|
54
54
|
"@atlaskit/link-analytics": "^10.0.0",
|
|
55
55
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
56
|
-
"@atlaskit/link-datasource": "^4.
|
|
56
|
+
"@atlaskit/link-datasource": "^4.19.0",
|
|
57
57
|
"@atlaskit/linking-common": "^9.2.0",
|
|
58
58
|
"@atlaskit/linking-types": "^14.0.0",
|
|
59
59
|
"@atlaskit/menu": "^8.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
62
62
|
"@atlaskit/primitives": "^14.11.0",
|
|
63
|
-
"@atlaskit/smart-card": "^40.
|
|
63
|
+
"@atlaskit/smart-card": "^40.7.0",
|
|
64
64
|
"@atlaskit/theme": "^19.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^9.24.0",
|
|
66
66
|
"@atlaskit/tokens": "^6.0.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^107.
|
|
75
|
+
"@atlaskit/editor-common": "^107.17.0",
|
|
76
76
|
"@atlaskit/link-provider": "^3.4.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -120,9 +120,6 @@
|
|
|
120
120
|
"confluence-issue-terminology-refresh": {
|
|
121
121
|
"type": "boolean"
|
|
122
122
|
},
|
|
123
|
-
"platform_ssr_smartlinks_editor": {
|
|
124
|
-
"type": "boolean"
|
|
125
|
-
},
|
|
126
123
|
"prompt_whiteboard_competitor_link_gate": {
|
|
127
124
|
"type": "boolean"
|
|
128
125
|
},
|