@atlaskit/smart-card 40.0.0 → 40.0.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 +8 -0
- package/dist/cjs/ssr.js +11 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/ssr.js +11 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/ssr.js +11 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 40.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#185136](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185136)
|
|
8
|
+
[`dba7f7bc32bbb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dba7f7bc32bbb) -
|
|
9
|
+
[ux] ED-28127 Fix Smart links selected style
|
|
10
|
+
|
|
3
11
|
## 40.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
package/dist/cjs/ssr.js
CHANGED
|
@@ -12,6 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _reactErrorBoundary = require("react-error-boundary");
|
|
13
13
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
14
14
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _analytics = require("./utils/analytics/analytics");
|
|
16
17
|
var _component = require("./view/CardWithUrl/component");
|
|
17
18
|
var _LoadingCardLink = require("./view/CardWithUrl/component-lazy/LoadingCardLink");
|
|
@@ -38,6 +39,16 @@ var CardSSR = exports.CardSSR = function CardSSR(props) {
|
|
|
38
39
|
}
|
|
39
40
|
return /*#__PURE__*/_react.default.createElement(_LoadingCardLink.LoadingCardLink, cardProps);
|
|
40
41
|
};
|
|
42
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_inline_card_selected_state_fix')) {
|
|
43
|
+
var Component = cardProps.appearance === 'inline' ? 'span' : 'div';
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
45
|
+
data: _analytics.context
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_reactErrorBoundary.ErrorBoundary, {
|
|
47
|
+
FallbackComponent: errorBoundaryFallbackComponent
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(Component, {
|
|
49
|
+
className: "loader-wrapper"
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_component.CardWithUrlContent, cardProps))));
|
|
51
|
+
}
|
|
41
52
|
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
42
53
|
data: _analytics.context
|
|
43
54
|
}, /*#__PURE__*/_react.default.createElement(_reactErrorBoundary.ErrorBoundary, {
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "
|
|
14
|
+
packageVersion: "40.0.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "
|
|
23
|
+
packageVersion: "40.0.0",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
package/dist/es2019/ssr.js
CHANGED
|
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
3
3
|
import uuid from 'uuid';
|
|
4
4
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { context } from './utils/analytics/analytics';
|
|
6
7
|
import { CardWithUrlContent } from './view/CardWithUrl/component';
|
|
7
8
|
import { LoadingCardLink } from './view/CardWithUrl/component-lazy/LoadingCardLink';
|
|
@@ -24,6 +25,16 @@ export const CardSSR = props => {
|
|
|
24
25
|
}
|
|
25
26
|
return /*#__PURE__*/React.createElement(LoadingCardLink, cardProps);
|
|
26
27
|
};
|
|
28
|
+
if (fg('platform_editor_inline_card_selected_state_fix')) {
|
|
29
|
+
const Component = cardProps.appearance === 'inline' ? 'span' : 'div';
|
|
30
|
+
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
31
|
+
data: context
|
|
32
|
+
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
33
|
+
FallbackComponent: errorBoundaryFallbackComponent
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
35
|
+
className: "loader-wrapper"
|
|
36
|
+
}, /*#__PURE__*/React.createElement(CardWithUrlContent, cardProps))));
|
|
37
|
+
}
|
|
27
38
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
28
39
|
data: context
|
|
29
40
|
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "
|
|
5
|
+
packageVersion: "40.0.0"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "
|
|
13
|
+
packageVersion: "40.0.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
package/dist/esm/ssr.js
CHANGED
|
@@ -6,6 +6,7 @@ import React, { useState } from 'react';
|
|
|
6
6
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
7
7
|
import uuid from 'uuid';
|
|
8
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { context } from './utils/analytics/analytics';
|
|
10
11
|
import { CardWithUrlContent } from './view/CardWithUrl/component';
|
|
11
12
|
import { LoadingCardLink } from './view/CardWithUrl/component-lazy/LoadingCardLink';
|
|
@@ -29,6 +30,16 @@ export var CardSSR = function CardSSR(props) {
|
|
|
29
30
|
}
|
|
30
31
|
return /*#__PURE__*/React.createElement(LoadingCardLink, cardProps);
|
|
31
32
|
};
|
|
33
|
+
if (fg('platform_editor_inline_card_selected_state_fix')) {
|
|
34
|
+
var Component = cardProps.appearance === 'inline' ? 'span' : 'div';
|
|
35
|
+
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
36
|
+
data: context
|
|
37
|
+
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
38
|
+
FallbackComponent: errorBoundaryFallbackComponent
|
|
39
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
40
|
+
className: "loader-wrapper"
|
|
41
|
+
}, /*#__PURE__*/React.createElement(CardWithUrlContent, cardProps))));
|
|
42
|
+
}
|
|
32
43
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
33
44
|
data: context
|
|
34
45
|
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "
|
|
7
|
+
packageVersion: "40.0.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "40.0.0",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "40.0.
|
|
3
|
+
"version": "40.0.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/popup": "^4.3.0",
|
|
63
63
|
"@atlaskit/primitives": "^14.10.0",
|
|
64
64
|
"@atlaskit/section-message": "^8.2.0",
|
|
65
|
-
"@atlaskit/select": "^21.
|
|
65
|
+
"@atlaskit/select": "^21.2.0",
|
|
66
66
|
"@atlaskit/spinner": "^18.0.0",
|
|
67
67
|
"@atlaskit/textarea": "^8.0.0",
|
|
68
68
|
"@atlaskit/textfield": "^8.0.0",
|
|
@@ -250,6 +250,9 @@
|
|
|
250
250
|
"platform-linking-enable-avatar-data-separator": {
|
|
251
251
|
"type": "boolean"
|
|
252
252
|
},
|
|
253
|
+
"platform_editor_inline_card_selected_state_fix": {
|
|
254
|
+
"type": "boolean"
|
|
255
|
+
},
|
|
253
256
|
"platform-linking-fix-smart-card-avatar-overrides": {
|
|
254
257
|
"type": "boolean"
|
|
255
258
|
}
|