@atlaskit/smart-card 42.3.1 → 42.3.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
+ ## 42.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`17a96e7d76434`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/17a96e7d76434) -
8
+ Internal change to unreleased feature behind `placeholderData` prop.
9
+
3
10
  ## 42.3.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: "42.3.1"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -71,7 +71,7 @@ function Component(_ref) {
71
71
  // eslint-disable-next-line react-hooks/rules-of-hooks
72
72
  (0, _react.useMemo)(function () {
73
73
  // execute some basic validation logic to ensure we should consider using placeholder data
74
- if (appearance === 'inline' && !isFlexibleUi && isValidPlaceholderData(placeholderData)) {
74
+ if (appearance === 'inline' && isValidPlaceholderData(placeholderData)) {
75
75
  var data = {
76
76
  status: 'resolved',
77
77
  metadataStatus: undefined,
@@ -79,7 +79,7 @@ function Component(_ref) {
79
79
  };
80
80
  return data;
81
81
  }
82
- }, [appearance, isFlexibleUi, placeholderData]) : undefined;
82
+ }, [appearance, placeholderData]) : undefined;
83
83
 
84
84
  // Get state, actions for this card.
85
85
  var _useSmartLink = (0, _state.useSmartLink)(id, url, (0, _platformFeatureFlags.fg)('platform_initial_data_for_smart_cards') ? structuredPlaceholderData : undefined),
@@ -25,7 +25,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
25
25
  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); }
26
26
  var PACKAGE_DATA = {
27
27
  packageName: "@atlaskit/smart-card",
28
- packageVersion: "0.0.0-development",
28
+ packageVersion: "42.3.1",
29
29
  componentName: 'linkUrl'
30
30
  };
31
31
  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: "42.3.1"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -61,7 +61,7 @@ function Component({
61
61
  // eslint-disable-next-line react-hooks/rules-of-hooks
62
62
  useMemo(() => {
63
63
  // execute some basic validation logic to ensure we should consider using placeholder data
64
- if (appearance === 'inline' && !isFlexibleUi && isValidPlaceholderData(placeholderData)) {
64
+ if (appearance === 'inline' && isValidPlaceholderData(placeholderData)) {
65
65
  const data = {
66
66
  status: 'resolved',
67
67
  metadataStatus: undefined,
@@ -69,7 +69,7 @@ function Component({
69
69
  };
70
70
  return data;
71
71
  }
72
- }, [appearance, isFlexibleUi, placeholderData]) : undefined;
72
+ }, [appearance, placeholderData]) : undefined;
73
73
 
74
74
  // Get state, actions for this card.
75
75
  const {
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  const PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "0.0.0-development",
16
+ packageVersion: "42.3.1",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  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: "42.3.1"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -62,7 +62,7 @@ function Component(_ref) {
62
62
  // eslint-disable-next-line react-hooks/rules-of-hooks
63
63
  useMemo(function () {
64
64
  // execute some basic validation logic to ensure we should consider using placeholder data
65
- if (appearance === 'inline' && !isFlexibleUi && isValidPlaceholderData(placeholderData)) {
65
+ if (appearance === 'inline' && isValidPlaceholderData(placeholderData)) {
66
66
  var data = {
67
67
  status: 'resolved',
68
68
  metadataStatus: undefined,
@@ -70,7 +70,7 @@ function Component(_ref) {
70
70
  };
71
71
  return data;
72
72
  }
73
- }, [appearance, isFlexibleUi, placeholderData]) : undefined;
73
+ }, [appearance, placeholderData]) : undefined;
74
74
 
75
75
  // Get state, actions for this card.
76
76
  var _useSmartLink = useSmartLink(id, url, fg('platform_initial_data_for_smart_cards') ? structuredPlaceholderData : undefined),
@@ -16,7 +16,7 @@ import LinkWarningModal from './LinkWarningModal';
16
16
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
17
17
  var PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/smart-card",
19
- packageVersion: "0.0.0-development",
19
+ packageVersion: "42.3.1",
20
20
  componentName: 'linkUrl'
21
21
  };
22
22
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "42.3.1",
3
+ "version": "42.3.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,11 +39,11 @@
39
39
  "@atlaskit/embedded-confluence": "^4.3.0",
40
40
  "@atlaskit/feature-gate-js-client": "^5.5.0",
41
41
  "@atlaskit/form": "^14.2.0",
42
- "@atlaskit/frontend-utilities": "^3.1.0",
42
+ "@atlaskit/frontend-utilities": "^3.2.0",
43
43
  "@atlaskit/heading": "^5.2.0",
44
44
  "@atlaskit/icon": "^28.3.0",
45
45
  "@atlaskit/icon-file-type": "^7.0.0",
46
- "@atlaskit/icon-lab": "^5.7.0",
46
+ "@atlaskit/icon-lab": "^5.8.0",
47
47
  "@atlaskit/icon-object": "^7.2.0",
48
48
  "@atlaskit/icon-priority": "^6.3.0",
49
49
  "@atlaskit/image": "^3.0.0",