@atlaskit/smart-card 45.28.2 → 45.28.4

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,20 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 45.28.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 45.28.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`dd8243b16c264`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd8243b16c264) -
14
+ Use the entity-type icon in the Smart Link preview modal header, falling back to the existing
15
+ JSON-LD icon when unavailable. All changes behind feature gate:
16
+ platform_lp_use_generator_icon_for_provider.
17
+
3
18
  ## 45.28.2
4
19
 
5
20
  ### Patch Changes
@@ -24,6 +24,7 @@ var _utils = require("../../view/EmbedModal/utils");
24
24
  var _extractIsSupportTheming = require("../common/meta/extractIsSupportTheming");
25
25
  var _extractIsTrusted = require("../common/meta/extractIsTrusted");
26
26
  var _extractLinkIcon = require("../flexible/icon/extract-link-icon");
27
+ var _extractSmartLinkIcon = require("../flexible/icon/extract-smart-link-icon");
27
28
  var _extractInvokeDownloadAction = require("./extract-invoke-download-action");
28
29
  var _extractInvokeViewAction = require("./extract-invoke-view-action");
29
30
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -124,7 +125,7 @@ var extractInvokePreviewAction = exports.extractInvokePreviewAction = function e
124
125
  invokeViewAction: (0, _extractInvokeViewAction.extractInvokeViewAction)(param, true),
125
126
  isSupportTheming: (0, _extractIsSupportTheming.extractIsSupportTheming)(meta),
126
127
  isTrusted: (0, _extractIsTrusted.extractIsTrusted)(meta),
127
- linkIcon: (0, _extractLinkIcon.extractLinkIcon)(response),
128
+ linkIcon: (0, _fg.fg)('platform_lp_use_generator_icon_for_provider') ? (0, _extractSmartLinkIcon.extractSmartLinkIcon)(response) : (0, _extractLinkIcon.extractLinkIcon)(response),
128
129
  providerName: (_extractSmartLinkProv = (0, _extractSmartLinkProvider.extractSmartLinkProvider)(response)) === null || _extractSmartLinkProv === void 0 ? void 0 : _extractSmartLinkProv.text,
129
130
  onClose: onClose,
130
131
  origin: origin,
@@ -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: "45.28.1" || ''
28
+ packageVersion: "45.28.3" || ''
29
29
  };
30
30
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
31
31
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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: "45.28.1",
22
+ packageVersion: "45.28.3",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -14,6 +14,7 @@ import { openEmbedModal } from '../../view/EmbedModal/utils';
14
14
  import { extractIsSupportTheming } from '../common/meta/extractIsSupportTheming';
15
15
  import { extractIsTrusted } from '../common/meta/extractIsTrusted';
16
16
  import { extractLinkIcon } from '../flexible/icon/extract-link-icon';
17
+ import { extractSmartLinkIcon } from '../flexible/icon/extract-smart-link-icon';
17
18
  import { extractInvokeDownloadAction } from './extract-invoke-download-action';
18
19
  import { extractInvokeViewAction } from './extract-invoke-view-action';
19
20
  export const extractInvokePreviewAction = param => {
@@ -106,7 +107,7 @@ export const extractInvokePreviewAction = param => {
106
107
  invokeViewAction: extractInvokeViewAction(param, true),
107
108
  isSupportTheming: extractIsSupportTheming(meta),
108
109
  isTrusted: extractIsTrusted(meta),
109
- linkIcon: extractLinkIcon(response),
110
+ linkIcon: fg('platform_lp_use_generator_icon_for_provider') ? extractSmartLinkIcon(response) : extractLinkIcon(response),
110
111
  providerName: (_extractSmartLinkProv = extractSmartLinkProvider(response)) === null || _extractSmartLinkProv === void 0 ? void 0 : _extractSmartLinkProv.text,
111
112
  onClose,
112
113
  origin,
@@ -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: "45.28.1" || ''
7
+ packageVersion: "45.28.3" || ''
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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: "45.28.1",
12
+ packageVersion: "45.28.3",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -19,6 +19,7 @@ import { openEmbedModal } from '../../view/EmbedModal/utils';
19
19
  import { extractIsSupportTheming } from '../common/meta/extractIsSupportTheming';
20
20
  import { extractIsTrusted } from '../common/meta/extractIsTrusted';
21
21
  import { extractLinkIcon } from '../flexible/icon/extract-link-icon';
22
+ import { extractSmartLinkIcon } from '../flexible/icon/extract-smart-link-icon';
22
23
  import { extractInvokeDownloadAction } from './extract-invoke-download-action';
23
24
  import { extractInvokeViewAction } from './extract-invoke-view-action';
24
25
  export var extractInvokePreviewAction = function extractInvokePreviewAction(param) {
@@ -117,7 +118,7 @@ export var extractInvokePreviewAction = function extractInvokePreviewAction(para
117
118
  invokeViewAction: extractInvokeViewAction(param, true),
118
119
  isSupportTheming: extractIsSupportTheming(meta),
119
120
  isTrusted: extractIsTrusted(meta),
120
- linkIcon: extractLinkIcon(response),
121
+ linkIcon: fg('platform_lp_use_generator_icon_for_provider') ? extractSmartLinkIcon(response) : extractLinkIcon(response),
121
122
  providerName: (_extractSmartLinkProv = extractSmartLinkProvider(response)) === null || _extractSmartLinkProv === void 0 ? void 0 : _extractSmartLinkProv.text,
122
123
  onClose: onClose,
123
124
  origin: origin,
@@ -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: "45.28.1" || ''
7
+ packageVersion: "45.28.3" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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: "45.28.1",
15
+ packageVersion: "45.28.3",
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": "45.28.2",
3
+ "version": "45.28.4",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -93,7 +93,7 @@
93
93
  "@atlaskit/textfield": "^10.2.0",
94
94
  "@atlaskit/theme": "^28.2.0",
95
95
  "@atlaskit/tile": "^4.1.0",
96
- "@atlaskit/tmp-editor-statsig": "^203.0.0",
96
+ "@atlaskit/tmp-editor-statsig": "^204.0.0",
97
97
  "@atlaskit/tokens": "^19.0.0",
98
98
  "@atlaskit/tooltip": "^24.3.0",
99
99
  "@atlaskit/ufo": "^1.2.0",