@atlaskit/smart-card 46.22.0 → 46.22.2
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 +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +1 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 46.22.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 46.22.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3ffe448074a7a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3ffe448074a7a) -
|
|
14
|
+
Clean up the `platform_avp_smartlink_embed_product_context` feature gate. Embed cards that support
|
|
15
|
+
product context now always send the host product.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 46.22.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
25
25
|
var context = exports.context = {
|
|
26
26
|
componentName: 'smart-cards',
|
|
27
27
|
packageName: "@atlaskit/smart-card" || '',
|
|
28
|
-
packageVersion: "46.
|
|
28
|
+
packageVersion: "46.22.1" || ''
|
|
29
29
|
};
|
|
30
30
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
31
31
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -13,7 +13,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
15
15
|
var _useSmartLinkContext2 = require("@atlaskit/link-provider/use-smart-link-context");
|
|
16
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
16
|
var _useThemeObserver = require("@atlaskit/tokens/use-theme-observer");
|
|
18
17
|
var _constants = require("../../../constants");
|
|
19
18
|
var _extractRovoChatAction = _interopRequireDefault(require("../../../extractors/flexible/actions/extract-rovo-chat-action"));
|
|
@@ -146,7 +145,7 @@ var EmbedCardResolvedView = exports.EmbedCardResolvedView = /*#__PURE__*/_react.
|
|
|
146
145
|
var _useSmartLinkContext = (0, _useSmartLinkContext2.useSmartLinkContext)(),
|
|
147
146
|
product = _useSmartLinkContext.product;
|
|
148
147
|
var previewUrl = preview === null || preview === void 0 ? void 0 : preview.src;
|
|
149
|
-
var hostProduct =
|
|
148
|
+
var hostProduct = isSupportProductContext ? product : undefined;
|
|
150
149
|
if (previewUrl && (isSupportTheming || hostProduct)) {
|
|
151
150
|
previewUrl = (0, _getPreviewUrlWithTheme.getPreviewUrlWithEmbedContext)(previewUrl, {
|
|
152
151
|
hostProduct: hostProduct,
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "46.
|
|
22
|
+
packageVersion: "46.22.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "46.
|
|
7
|
+
packageVersion: "46.22.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { lazy } from 'react';
|
|
5
5
|
import LinkGlyph from '@atlaskit/icon/core/link';
|
|
6
6
|
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
9
8
|
import { CardDisplay } from '../../../constants';
|
|
10
9
|
import extractRovoChatAction from '../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
@@ -131,7 +130,7 @@ export const EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(({
|
|
|
131
130
|
product
|
|
132
131
|
} = useSmartLinkContext();
|
|
133
132
|
let previewUrl = preview === null || preview === void 0 ? void 0 : preview.src;
|
|
134
|
-
const hostProduct =
|
|
133
|
+
const hostProduct = isSupportProductContext ? product : undefined;
|
|
135
134
|
if (previewUrl && (isSupportTheming || hostProduct)) {
|
|
136
135
|
previewUrl = getPreviewUrlWithEmbedContext(previewUrl, {
|
|
137
136
|
hostProduct,
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "46.
|
|
12
|
+
packageVersion: "46.22.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -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: "46.
|
|
7
|
+
packageVersion: "46.22.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React, { lazy } from 'react';
|
|
6
6
|
import LinkGlyph from '@atlaskit/icon/core/link';
|
|
7
7
|
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
10
9
|
import { CardDisplay } from '../../../constants';
|
|
11
10
|
import extractRovoChatAction from '../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
@@ -136,7 +135,7 @@ export var EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(function (_ref2
|
|
|
136
135
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
137
136
|
product = _useSmartLinkContext.product;
|
|
138
137
|
var previewUrl = preview === null || preview === void 0 ? void 0 : preview.src;
|
|
139
|
-
var hostProduct =
|
|
138
|
+
var hostProduct = isSupportProductContext ? product : undefined;
|
|
140
139
|
if (previewUrl && (isSupportTheming || hostProduct)) {
|
|
141
140
|
previewUrl = getPreviewUrlWithEmbedContext(previewUrl, {
|
|
142
141
|
hostProduct: hostProduct,
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "46.
|
|
15
|
+
packageVersion: "46.22.1",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "46.22.
|
|
3
|
+
"version": "46.22.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@atlaskit/textfield": "^11.0.0",
|
|
94
94
|
"@atlaskit/theme": "^28.2.0",
|
|
95
95
|
"@atlaskit/tile": "^5.0.0",
|
|
96
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
96
|
+
"@atlaskit/tmp-editor-statsig": "^279.0.0",
|
|
97
97
|
"@atlaskit/tokens": "^20.15.0",
|
|
98
98
|
"@atlaskit/tooltip": "^24.4.0",
|
|
99
99
|
"@atlaskit/top-layer": "^8.2.0",
|