@atlaskit/smart-card 42.3.0 → 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,20 @@
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
+
10
+ ## 42.3.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`f3494b0a49dbc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f3494b0a49dbc) -
15
+ Internal changes to use new shape tokens. No visual changes.
16
+ - Updated dependencies
17
+
3
18
  ## 42.3.0
4
19
 
5
20
  ### Minor 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');
@@ -1,5 +1,5 @@
1
1
 
2
- ._2rkoftgi{border-radius:8px}._16jlkb7n{flex-grow:1}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16jlkb7n{flex-grow:1}
3
3
  ._19bvv77o{padding-left:var(--ds-space-025,2px)}
4
4
  ._1bsb1ns9{width:-moz-fit-content;width:fit-content}
5
5
  ._1e0c1txw{display:flex}
@@ -44,7 +44,7 @@ var AIGlowingBorder = function AIGlowingBorder(_ref) {
44
44
  isGlowing: true,
45
45
  className: className
46
46
  }), /*#__PURE__*/React.createElement("div", {
47
- className: (0, _runtime.ax)(["_2rkoftgi _16jlkb7n _1pbykb7n"])
47
+ className: (0, _runtime.ax)(["_2rko1mok _16jlkb7n _1pbykb7n"])
48
48
  }, children, " "));
49
49
  };
50
50
  var _default = exports.default = AIGlowingBorder;
@@ -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');
@@ -1,5 +1,5 @@
1
1
 
2
- ._2rkoftgi{border-radius:8px}._16jlkb7n{flex-grow:1}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16jlkb7n{flex-grow:1}
3
3
  ._19bvv77o{padding-left:var(--ds-space-025,2px)}
4
4
  ._1bsb1ns9{width:-moz-fit-content;width:fit-content}
5
5
  ._1e0c1txw{display:flex}
@@ -34,6 +34,6 @@ React.createElement(AnimatedSvgContainer, {
34
34
  isGlowing: true,
35
35
  className: className
36
36
  }), /*#__PURE__*/React.createElement("div", {
37
- className: ax(["_2rkoftgi _16jlkb7n _1pbykb7n"])
37
+ className: ax(["_2rko1mok _16jlkb7n _1pbykb7n"])
38
38
  }, children, " "));
39
39
  export default AIGlowingBorder;
@@ -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');
@@ -1,5 +1,5 @@
1
1
 
2
- ._2rkoftgi{border-radius:8px}._16jlkb7n{flex-grow:1}
2
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16jlkb7n{flex-grow:1}
3
3
  ._19bvv77o{padding-left:var(--ds-space-025,2px)}
4
4
  ._1bsb1ns9{width:-moz-fit-content;width:fit-content}
5
5
  ._1e0c1txw{display:flex}
@@ -35,7 +35,7 @@ var AIGlowingBorder = function AIGlowingBorder(_ref) {
35
35
  isGlowing: true,
36
36
  className: className
37
37
  }), /*#__PURE__*/React.createElement("div", {
38
- className: ax(["_2rkoftgi _16jlkb7n _1pbykb7n"])
38
+ className: ax(["_2rko1mok _16jlkb7n _1pbykb7n"])
39
39
  }, children, " "));
40
40
  };
41
41
  export default AIGlowingBorder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "42.3.0",
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",
@@ -71,8 +71,8 @@
71
71
  "@atlaskit/textfield": "^8.0.0",
72
72
  "@atlaskit/theme": "^21.0.0",
73
73
  "@atlaskit/tmp-editor-statsig": "^12.32.0",
74
- "@atlaskit/tokens": "^6.3.0",
75
- "@atlaskit/tooltip": "^20.4.0",
74
+ "@atlaskit/tokens": "^6.4.0",
75
+ "@atlaskit/tooltip": "^20.5.0",
76
76
  "@atlaskit/ufo": "^0.4.0",
77
77
  "@babel/runtime": "^7.0.0",
78
78
  "@compiled/react": "^0.18.3",