@atlaskit/smart-card 46.22.0 → 46.22.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 46.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3ffe448074a7a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3ffe448074a7a) -
8
+ Clean up the `platform_avp_smartlink_embed_product_context` feature gate. Embed cards that support
9
+ product context now always send the host product.
10
+ - Updated dependencies
11
+
3
12
  ## 46.22.0
4
13
 
5
14
  ### 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.21.1" || ''
28
+ packageVersion: "46.22.0" || ''
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 = (0, _fg.fg)('platform_avp_smartlink_embed_product_context') && isSupportProductContext ? product : undefined;
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.21.1",
22
+ packageVersion: "46.22.0",
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.21.1" || ''
7
+ packageVersion: "46.22.0" || ''
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 = fg('platform_avp_smartlink_embed_product_context') && isSupportProductContext ? product : undefined;
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.21.1",
12
+ packageVersion: "46.22.0",
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.21.1" || ''
7
+ packageVersion: "46.22.0" || ''
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 = fg('platform_avp_smartlink_embed_product_context') && isSupportProductContext ? product : undefined;
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.21.1",
15
+ packageVersion: "46.22.0",
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.0",
3
+ "version": "46.22.1",
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": "^277.0.0",
96
+ "@atlaskit/tmp-editor-statsig": "^278.0.0",
97
97
  "@atlaskit/tokens": "^20.15.0",
98
98
  "@atlaskit/tooltip": "^24.4.0",
99
99
  "@atlaskit/top-layer": "^8.2.0",