@atlaskit/smart-card 43.7.1 → 43.7.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 43.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`47806d831b118`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/47806d831b118) -
8
+ NAVX-2338 cleaning up navx-1910-fix-hovercard-performance-metrics
9
+
3
10
  ## 43.7.1
4
11
 
5
12
  ### Patch Changes
@@ -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: "0.0.0-development"
14
+ packageVersion: "43.7.2"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -9,7 +9,6 @@ exports.default = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _extractPreview = require("../../../extractors/flexible/extract-preview");
14
13
  var _blocks = require("../../FlexibleCard/components/blocks");
15
14
  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" != _typeof(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); }
@@ -34,12 +33,10 @@ var ImagePreview = function ImagePreview(_ref) {
34
33
  if (previewBlockRef.current) {
35
34
  var _previewBlockRef$curr;
36
35
  var previewHeight = (_previewBlockRef$curr = previewBlockRef.current) === null || _previewBlockRef$curr === void 0 ? void 0 : _previewBlockRef$curr.getBoundingClientRect().height;
37
- setDynamicStyles(_objectSpread(_objectSpread({
36
+ setDynamicStyles(_objectSpread({
38
37
  borderTopLeftRadius: "var(--ds-radius-large, 8px)",
39
38
  borderTopRightRadius: "var(--ds-radius-large, 8px)"
40
- }, (0, _platformFeatureFlags.fg)('navx-1910-fix-hovercard-performance-metrics') ? {} : {
41
- marginBottom: "var(--ds-space-100, 8px)"
42
- }), previewHeight ? {
39
+ }, previewHeight ? {
43
40
  height: "".concat(previewHeight, "px")
44
41
  } : {}));
45
42
  }
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "0.0.0-development",
25
+ packageVersion: "43.7.2",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -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: "0.0.0-development"
5
+ packageVersion: "43.7.2"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,5 +1,4 @@
1
1
  import React, { useCallback, useRef, useState } from 'react';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { extractSmartLinkPreviewImage } from '../../../extractors/flexible/extract-preview';
4
3
  import { PreviewBlock } from '../../FlexibleCard/components/blocks';
5
4
  const ImagePreview = ({
@@ -19,9 +18,6 @@ const ImagePreview = ({
19
18
  setDynamicStyles({
20
19
  borderTopLeftRadius: "var(--ds-radius-large, 8px)",
21
20
  borderTopRightRadius: "var(--ds-radius-large, 8px)",
22
- ...(fg('navx-1910-fix-hovercard-performance-metrics') ? {} : {
23
- marginBottom: "var(--ds-space-100, 8px)"
24
- }),
25
21
  ...(previewHeight ? {
26
22
  height: `${previewHeight}px`
27
23
  } : {})
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "0.0.0-development",
15
+ packageVersion: "43.7.2",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -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: "0.0.0-development"
7
+ packageVersion: "43.7.2"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -3,7 +3,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  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; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import React, { useCallback, useRef, useState } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { extractSmartLinkPreviewImage } from '../../../extractors/flexible/extract-preview';
8
7
  import { PreviewBlock } from '../../FlexibleCard/components/blocks';
9
8
  var ImagePreview = function ImagePreview(_ref) {
@@ -25,12 +24,10 @@ var ImagePreview = function ImagePreview(_ref) {
25
24
  if (previewBlockRef.current) {
26
25
  var _previewBlockRef$curr;
27
26
  var previewHeight = (_previewBlockRef$curr = previewBlockRef.current) === null || _previewBlockRef$curr === void 0 ? void 0 : _previewBlockRef$curr.getBoundingClientRect().height;
28
- setDynamicStyles(_objectSpread(_objectSpread({
27
+ setDynamicStyles(_objectSpread({
29
28
  borderTopLeftRadius: "var(--ds-radius-large, 8px)",
30
29
  borderTopRightRadius: "var(--ds-radius-large, 8px)"
31
- }, fg('navx-1910-fix-hovercard-performance-metrics') ? {} : {
32
- marginBottom: "var(--ds-space-100, 8px)"
33
- }), previewHeight ? {
30
+ }, previewHeight ? {
34
31
  height: "".concat(previewHeight, "px")
35
32
  } : {}));
36
33
  }
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "0.0.0-development",
18
+ packageVersion: "43.7.2",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.7.1",
3
+ "version": "43.7.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -100,11 +100,11 @@
100
100
  "@atlaskit/analytics-listeners": "^9.1.0",
101
101
  "@atlaskit/css-reset": "^7.3.0",
102
102
  "@atlaskit/media-test-helpers": "^39.0.0",
103
- "@atlaskit/react-ufo": "^4.14.0",
103
+ "@atlaskit/react-ufo": "^4.15.0",
104
104
  "@atlaskit/ssr": "workspace:^",
105
105
  "@atlassian/analytics-tooling": "workspace:^",
106
106
  "@atlassian/feature-flags-test-utils": "^1.0.0",
107
- "@atlassian/gemini": "^1.20.0",
107
+ "@atlassian/gemini": "^1.21.0",
108
108
  "@testing-library/dom": "^10.1.0",
109
109
  "@testing-library/jest-dom": "^6.4.5",
110
110
  "@testing-library/react": "^13.4.0",
@@ -232,9 +232,6 @@
232
232
  "navx-2479-sl-fix-inilne-card-show-connect-button": {
233
233
  "type": "boolean"
234
234
  },
235
- "navx-1910-fix-hovercard-performance-metrics": {
236
- "type": "boolean"
237
- },
238
235
  "platform-linking-smart-card-layered-link-a11y": {
239
236
  "type": "boolean"
240
237
  },