@atlaskit/smart-card 26.49.1 → 26.49.3

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/common/analytics/generated/analytics.types.js +1 -5
  3. package/dist/cjs/extractors/common/detail/types.js +1 -5
  4. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -5
  5. package/dist/cjs/state/types.js +1 -5
  6. package/dist/cjs/utils/analytics/analytics.js +1 -1
  7. package/dist/cjs/view/EmbedModal/components/embed-content/types.js +1 -5
  8. package/dist/cjs/view/EmbedModal/components/link-info/link-info-button/types.js +1 -5
  9. package/dist/cjs/view/FlexibleCard/components/actions/action/action-dropdown-item/types.js +1 -5
  10. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.js +1 -5
  11. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -2
  12. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -4
  13. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +8 -9
  14. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/types.js +1 -5
  15. package/dist/cjs/view/FlexibleCard/components/common/image-icon/types.js +1 -5
  16. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/types.js +1 -5
  17. package/dist/cjs/view/FlexibleCard/components/container/layered-link/types.js +1 -5
  18. package/dist/cjs/view/HoverCard/components/ContentContainer.js +1 -4
  19. package/dist/cjs/view/LinkUrl/index.js +1 -1
  20. package/dist/cjs/view/LinkUrl/types.js +1 -5
  21. package/dist/cjs/view/common/ai-prism/index.js +0 -1
  22. package/dist/cjs/view/common/ai-summary/index.js +1 -1
  23. package/dist/es2019/common/analytics/generated/analytics.types.js +0 -1
  24. package/dist/es2019/extractors/common/detail/types.js +0 -1
  25. package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/types.js +0 -1
  26. package/dist/es2019/state/types.js +0 -1
  27. package/dist/es2019/utils/analytics/analytics.js +1 -1
  28. package/dist/es2019/view/EmbedModal/components/embed-content/types.js +0 -1
  29. package/dist/es2019/view/EmbedModal/components/link-info/link-info-button/types.js +0 -1
  30. package/dist/es2019/view/FlexibleCard/components/actions/action/action-dropdown-item/types.js +0 -1
  31. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.js +0 -1
  32. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -2
  33. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -1
  34. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +0 -1
  35. package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/types.js +0 -1
  36. package/dist/es2019/view/FlexibleCard/components/common/image-icon/types.js +0 -1
  37. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/types.js +0 -1
  38. package/dist/es2019/view/FlexibleCard/components/container/layered-link/types.js +0 -1
  39. package/dist/es2019/view/HoverCard/components/ContentContainer.js +1 -1
  40. package/dist/es2019/view/LinkUrl/index.js +1 -1
  41. package/dist/es2019/view/LinkUrl/types.js +0 -1
  42. package/dist/es2019/view/common/ai-prism/index.js +0 -1
  43. package/dist/es2019/view/common/ai-summary/index.js +1 -1
  44. package/dist/esm/common/analytics/generated/analytics.types.js +0 -1
  45. package/dist/esm/extractors/common/detail/types.js +0 -1
  46. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +0 -1
  47. package/dist/esm/state/types.js +0 -1
  48. package/dist/esm/utils/analytics/analytics.js +1 -1
  49. package/dist/esm/view/EmbedModal/components/embed-content/types.js +0 -1
  50. package/dist/esm/view/EmbedModal/components/link-info/link-info-button/types.js +0 -1
  51. package/dist/esm/view/FlexibleCard/components/actions/action/action-dropdown-item/types.js +0 -1
  52. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.js +0 -1
  53. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -2
  54. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
  55. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +0 -1
  56. package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/types.js +0 -1
  57. package/dist/esm/view/FlexibleCard/components/common/image-icon/types.js +0 -1
  58. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/types.js +0 -1
  59. package/dist/esm/view/FlexibleCard/components/container/layered-link/types.js +0 -1
  60. package/dist/esm/view/HoverCard/components/ContentContainer.js +1 -1
  61. package/dist/esm/view/LinkUrl/index.js +1 -1
  62. package/dist/esm/view/LinkUrl/types.js +0 -1
  63. package/dist/esm/view/common/ai-prism/index.js +0 -1
  64. package/dist/esm/view/common/ai-summary/index.js +1 -1
  65. package/dist/types/view/BlockCard/views/flexible/unresolved-view/index.d.ts +2 -2
  66. package/dist/types/view/BlockCard/views/flexible/unresolved-view/types.d.ts +3 -2
  67. package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-error-viewed/index.d.ts +1 -2
  68. package/dist/types/view/FlexibleCard/components/blocks/block/index.d.ts +2 -3
  69. package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +2 -3
  70. package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +3 -2
  71. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +3 -3
  72. package/dist/types/view/FlexibleCard/components/container/hover-card-control/index.d.ts +2 -2
  73. package/dist/types/view/FlexibleCard/components/container/hover-card-control/types.d.ts +3 -2
  74. package/dist/types/view/FlexibleCard/components/container/index.d.ts +2 -4
  75. package/dist/types/view/FlexibleCard/components/container/types.d.ts +3 -2
  76. package/dist/types/view/HoverCard/components/ContentContainer.d.ts +3 -2
  77. package/dist/types/view/common/ai-prism/index.d.ts +3 -2
  78. package/dist/types/view/common/ai-prism/types.d.ts +3 -2
  79. package/dist/types-ts4.5/view/BlockCard/views/flexible/unresolved-view/index.d.ts +2 -2
  80. package/dist/types-ts4.5/view/BlockCard/views/flexible/unresolved-view/types.d.ts +3 -2
  81. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-error-viewed/index.d.ts +1 -2
  82. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/index.d.ts +2 -3
  83. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/index.d.ts +2 -3
  84. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/types.d.ts +3 -2
  85. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +3 -3
  86. package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/index.d.ts +2 -2
  87. package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/types.d.ts +3 -2
  88. package/dist/types-ts4.5/view/FlexibleCard/components/container/index.d.ts +2 -4
  89. package/dist/types-ts4.5/view/FlexibleCard/components/container/types.d.ts +3 -2
  90. package/dist/types-ts4.5/view/HoverCard/components/ContentContainer.d.ts +3 -2
  91. package/dist/types-ts4.5/view/common/ai-prism/index.d.ts +3 -2
  92. package/dist/types-ts4.5/view/common/ai-prism/types.d.ts +3 -2
  93. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 26.49.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#81241](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81241) [`9e73c089380f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9e73c089380f) - [ux] Fix summary icon positioning and wrapping within hover card
8
+
9
+ ## 26.49.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
14
+
3
15
  ## 26.49.1
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "26.49.1"
25
+ packageVersion: "26.49.3"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -50,8 +50,7 @@ var iconTooltipDescStyles = (0, _primitives.xcss)({
50
50
  lineHeight: '14px'
51
51
  });
52
52
  var iconTooltipTriggerStyles = (0, _primitives.xcss)({
53
- position: 'relative',
54
- bottom: 'space.negative.050'
53
+ verticalAlign: 'bottom'
55
54
  });
56
55
  var AIStateDone = function AIStateDone(_ref) {
57
56
  var appearance = _ref.appearance,
@@ -1,20 +1,17 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
- var _react = _interopRequireWildcard(require("react"));
9
+ var _react = require("react");
11
10
  var _react2 = require("@emotion/react");
12
11
  var _constants = require("../../../../../constants");
13
12
  var _utils = require("../utils");
14
13
  var _templateObject;
15
14
  /** @jsx jsx */
16
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
15
  var getBlockStyles = function getBlockStyles(direction, size) {
19
16
  return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n justify-content: flex-start;\n [data-separator] + [data-separator]:before {\n content: '\u2022';\n margin-right: ", "rem;\n }\n // Pull request elements: source branch \u2192 target branch\n [data-smart-element='", "']\n + [data-smart-element='", "']:before {\n content: '\u2192';\n }\n // Pull request elements: target branch \u2190 source branch\n [data-smart-element='", "']\n + [data-smart-element='", "']:before {\n content: '\u2190';\n }\n"])), (0, _utils.getBaseStyles)(direction, size), _utils.highlightRemoveStyles, (0, _utils.getGapSize)(size), _constants.ElementName.SourceBranch, _constants.ElementName.TargetBranch, _constants.ElementName.TargetBranch, _constants.ElementName.SourceBranch);
20
17
  };
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getElementGroupStyles = exports.default = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _react2 = require("@emotion/react");
9
+ var _react = require("@emotion/react");
11
10
  var _constants = require("../../../../../constants");
12
11
  var _utils = require("../utils");
13
12
  var _utils2 = require("../../utils");
@@ -16,25 +15,25 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
16
15
  var getAlignmentStyles = function getAlignmentStyles(align) {
17
16
  switch (align) {
18
17
  case _constants.SmartLinkAlignment.Right:
19
- return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n -webkit-box-align: end;\n -ms-flex-align: end;\n justify-content: flex-end;\n text-align: right;\n "])));
18
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n -webkit-box-align: end;\n -ms-flex-align: end;\n justify-content: flex-end;\n text-align: right;\n "])));
20
19
  case _constants.SmartLinkAlignment.Left:
21
20
  default:
22
- return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n -webkit-box-align: start;\n -ms-flex-align: start;\n justify-content: flex-start;\n text-align: left;\n "])));
21
+ return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n -webkit-box-align: start;\n -ms-flex-align: start;\n justify-content: flex-start;\n text-align: left;\n "])));
23
22
  }
24
23
  };
25
24
  var getGapStyles = function getGapStyles(size, align) {
26
25
  var gap = (0, _utils.getGapSize)(size);
27
26
  if (align === _constants.SmartLinkAlignment.Right) {
28
- return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n > span {\n margin-left: ", "rem;\n }\n\n > span:first-child {\n margin-left: initial;\n }\n "])), gap);
27
+ return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n > span {\n margin-left: ", "rem;\n }\n\n > span:first-child {\n margin-left: initial;\n }\n "])), gap);
29
28
  }
30
- return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n > span {\n margin-right: ", "rem;\n &:last-child {\n margin-right: initial;\n }\n }\n "])), gap);
29
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n > span {\n margin-right: ", "rem;\n &:last-child {\n margin-right: initial;\n }\n }\n "])), gap);
31
30
  };
32
31
  var getHorizontalDirectionStyles = function getHorizontalDirectionStyles(size, align) {
33
32
  var lineHeight = (0, _utils2.getMaxLineHeight)(size);
34
- return (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n vertical-align: middle;\n ", "\n\n > span, > div {\n vertical-align: middle;\n\n &[data-smart-element-date-time],\n &[data-smart-element-text] {\n // Show all/wrapped/truncated\n display: inline;\n }\n }\n\n ", "\n "])), (0, _utils2.getTruncateStyles)(1, lineHeight + 'rem'), getGapStyles(size, align));
33
+ return (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n vertical-align: middle;\n ", "\n\n > span, > div {\n vertical-align: middle;\n\n &[data-smart-element-date-time],\n &[data-smart-element-text] {\n // Show all/wrapped/truncated\n display: inline;\n }\n }\n\n ", "\n "])), (0, _utils2.getTruncateStyles)(1, lineHeight + 'rem'), getGapStyles(size, align));
35
34
  };
36
35
  var getElementGroupStyles = exports.getElementGroupStyles = function getElementGroupStyles(direction, size, align, width, position) {
37
- return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n min-width: 10%;\n ", "\n ", "\n ", "\n"])), (0, _utils.getBaseStyles)(direction, size), getAlignmentStyles(align), width === _constants.SmartLinkWidth.Flexible ? "flex: 1 3;" : '', direction === _constants.SmartLinkDirection.Horizontal ? getHorizontalDirectionStyles(size, align) : '', position === _constants.SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
36
+ return (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n min-width: 10%;\n ", "\n ", "\n ", "\n"])), (0, _utils.getBaseStyles)(direction, size), getAlignmentStyles(align), width === _constants.SmartLinkWidth.Flexible ? "flex: 1 3;" : '', direction === _constants.SmartLinkDirection.Horizontal ? getHorizontalDirectionStyles(size, align) : '', position === _constants.SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
38
37
  };
39
38
 
40
39
  /**
@@ -59,7 +58,7 @@ var ElementGroup = function ElementGroup(_ref) {
59
58
  width = _ref$width === void 0 ? _constants.SmartLinkWidth.FitToContent : _ref$width,
60
59
  _ref$position = _ref.position,
61
60
  position = _ref$position === void 0 ? _constants.SmartLinkPosition.Center : _ref$position;
62
- return (0, _react2.jsx)("div", {
61
+ return (0, _react.jsx)("div", {
63
62
  css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
64
63
  "data-smart-element-group": true,
65
64
  "data-testid": testId
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -10,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
11
  var _react = require("@emotion/react");
13
- var _react2 = _interopRequireWildcard(require("react"));
12
+ var _react2 = require("react");
14
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _styled = require("../styled");
16
15
  var _aiPrism = _interopRequireDefault(require("../../common/ai-prism"));
@@ -19,8 +18,6 @@ var _useAiSummary = require("../../../state/hooks/use-ai-summary");
19
18
  var _excluded = ["children", "isAIEnabled", "testId", "url"],
20
19
  _excluded2 = ["children", "isAIEnabled", "testId", "url"];
21
20
  /** @jsx jsx */
22
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
21
  var ConnectedAIPrismContainer = function ConnectedAIPrismContainer(_ref) {
25
22
  var children = _ref.children,
26
23
  _ref$isAIEnabled = _ref.isAIEnabled,
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "26.49.1",
20
+ packageVersion: "26.49.3",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = require("@emotion/react");
9
- var _react2 = _interopRequireDefault(require("react"));
10
9
  var _tokens = require("@atlaskit/tokens");
11
10
  var _constants = require("./constants");
12
11
  var _aiGlowingBorder = _interopRequireDefault(require("./ai-glowing-border"));
@@ -47,7 +47,7 @@ var AISummary = function AISummary(_ref) {
47
47
  return (0, _react2.jsx)(_markdownToJsx.default, {
48
48
  "data-testid": testId,
49
49
  css: [AISummaryCSS, overrideCss],
50
- children: showIcon ? "".concat(content, " <Icon />") : content,
50
+ children: showIcon ? "".concat(content, "&nbsp;<Icon />") : content,
51
51
  options: {
52
52
  forceWrapper: true,
53
53
  overrides: {
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -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: "26.49.1"
7
+ packageVersion: "26.49.3"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -42,8 +42,7 @@ const iconTooltipDescStyles = xcss({
42
42
  lineHeight: '14px'
43
43
  });
44
44
  const iconTooltipTriggerStyles = xcss({
45
- position: 'relative',
46
- bottom: 'space.negative.050'
45
+ verticalAlign: 'bottom'
47
46
  });
48
47
  const AIStateDone = ({
49
48
  appearance,
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { useEffect } from 'react';
2
+ import { useEffect } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
5
5
  import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from '../utils';
@@ -1,5 +1,4 @@
1
1
  /** @jsx jsx */
2
- import React from 'react';
3
2
  import { css, jsx } from '@emotion/react';
4
3
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
5
4
  import { getBaseStyles, getGapSize, renderChildren } from '../utils';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import { jsx } from '@emotion/react';
4
- import React, { useState, useEffect } from 'react';
4
+ import { useState, useEffect } from 'react';
5
5
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
6
  import { HoverCardContainer, popupContainerStyles } from '../styled';
7
7
  import AIPrism from '../../common/ai-prism';
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "26.49.1",
10
+ packageVersion: "26.49.3",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +1,5 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import React from 'react';
4
3
  import { useThemeObserver } from '@atlaskit/tokens';
5
4
  import { AI_BORDER_PALETTE, INNER_BORDER_RADIUS } from './constants';
6
5
  import AIGlowingBorder from './ai-glowing-border';
@@ -34,7 +34,7 @@ const AISummary = ({
34
34
  return jsx(Markdown, {
35
35
  "data-testid": testId,
36
36
  css: [AISummaryCSS, overrideCss],
37
- children: showIcon ? `${content} <Icon />` : content,
37
+ children: showIcon ? `${content}&nbsp;<Icon />` : content,
38
38
  options: {
39
39
  forceWrapper: true,
40
40
  overrides: {
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "26.49.1"
18
+ packageVersion: "26.49.3"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -42,8 +42,7 @@ var iconTooltipDescStyles = xcss({
42
42
  lineHeight: '14px'
43
43
  });
44
44
  var iconTooltipTriggerStyles = xcss({
45
- position: 'relative',
46
- bottom: 'space.negative.050'
45
+ verticalAlign: 'bottom'
47
46
  });
48
47
  var AIStateDone = function AIStateDone(_ref) {
49
48
  var appearance = _ref.appearance,
@@ -1,7 +1,7 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  /** @jsx jsx */
4
- import React, { useEffect } from 'react';
4
+ import { useEffect } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
7
7
  import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from '../utils';
@@ -1,7 +1,6 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
3
3
  /** @jsx jsx */
4
- import React from 'react';
5
4
  import { css, jsx } from '@emotion/react';
6
5
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
7
6
  import { getBaseStyles, getGapSize, renderChildren } from '../utils';
@@ -5,7 +5,7 @@ var _excluded = ["children", "isAIEnabled", "testId", "url"],
5
5
  _excluded2 = ["children", "isAIEnabled", "testId", "url"];
6
6
  /** @jsx jsx */
7
7
  import { jsx } from '@emotion/react';
8
- import React, { useState, useEffect } from 'react';
8
+ import { useState, useEffect } from 'react';
9
9
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
10
10
  import { HoverCardContainer, popupContainerStyles } from '../styled';
11
11
  import AIPrism from '../../common/ai-prism';
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "26.49.1",
13
+ packageVersion: "26.49.3",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +1,5 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import React from 'react';
4
3
  import { useThemeObserver } from '@atlaskit/tokens';
5
4
  import { AI_BORDER_PALETTE, INNER_BORDER_RADIUS } from './constants';
6
5
  import AIGlowingBorder from './ai-glowing-border';
@@ -39,7 +39,7 @@ var AISummary = function AISummary(_ref) {
39
39
  return jsx(Markdown, {
40
40
  "data-testid": testId,
41
41
  css: [AISummaryCSS, overrideCss],
42
- children: showIcon ? "".concat(content, " <Icon />") : content,
42
+ children: showIcon ? "".concat(content, "&nbsp;<Icon />") : content,
43
43
  options: {
44
44
  forceWrapper: true,
45
45
  overrides: {
@@ -1,4 +1,4 @@
1
- import { type FC } from 'react';
1
+ /// <reference types="react" />
2
2
  import { UnresolvedViewProps } from './types';
3
- declare const UnresolvedView: FC<UnresolvedViewProps>;
3
+ declare const UnresolvedView: ({ actions, cardState, children, onAuthorize, onClick, onError, showPreview, testId, title, url, }: UnresolvedViewProps) => JSX.Element;
4
4
  export default UnresolvedView;
@@ -1,7 +1,8 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import type { ActionItem } from '../../../../FlexibleCard/components/blocks/types';
2
3
  import type { FlexibleBlockCardProps } from '../types';
3
- export type UnresolvedViewProps = FlexibleBlockCardProps & {
4
+ export type UnresolvedViewProps = PropsWithChildren<FlexibleBlockCardProps & {
4
5
  actions?: ActionItem[];
5
6
  showPreview?: boolean;
6
7
  title?: string;
7
- };
8
+ }>;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const AIEventErrorViewed: React.FC;
1
+ declare const AIEventErrorViewed: () => null;
3
2
  export default AIEventErrorViewed;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { BlockProps } from '../types';
4
3
  /**
5
4
  * A block represents a collection of elements and actions that are arranged
@@ -8,5 +7,5 @@ import { BlockProps } from '../types';
8
7
  * @param {ActionGroupProps} ActionGroupProps
9
8
  * @see Action
10
9
  */
11
- declare const Block: React.FC<BlockProps>;
10
+ declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
12
11
  export default Block;
@@ -1,6 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React from 'react';
3
- import { SerializedStyles } from '@emotion/react';
2
+ import { jsx, SerializedStyles } from '@emotion/react';
4
3
  import { ElementGroupProps } from './types';
5
4
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
6
5
  export declare const getElementGroupStyles: (direction: SmartLinkDirection, size: SmartLinkSize, align: SmartLinkAlignment, width: SmartLinkWidth, position: SmartLinkPosition) => SerializedStyles;
@@ -11,5 +10,5 @@ export declare const getElementGroupStyles: (direction: SmartLinkDirection, size
11
10
  * @param {ActionGroupProps} ActionGroupProps
12
11
  * @see Action
13
12
  */
14
- declare const ElementGroup: React.FC<ElementGroupProps>;
13
+ declare const ElementGroup: ({ align, children, overrideCss, direction, size, testId, width, position, }: ElementGroupProps) => jsx.JSX.Element;
15
14
  export default ElementGroup;
@@ -1,6 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import { SerializedStyles } from '@emotion/react';
2
3
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
3
- export type ElementGroupProps = {
4
+ export type ElementGroupProps = PropsWithChildren<{
4
5
  align?: SmartLinkAlignment;
5
6
  direction?: SmartLinkDirection;
6
7
  overrideCss?: SerializedStyles;
@@ -8,4 +9,4 @@ export type ElementGroupProps = {
8
9
  width?: SmartLinkWidth;
9
10
  testId?: string;
10
11
  position?: SmartLinkPosition;
11
- };
12
+ }>;
@@ -1,8 +1,8 @@
1
1
  import { ActionName, ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkStatus } from '../../../../constants';
2
2
  import { SerializedStyles } from '@emotion/react';
3
3
  import { ActionProps } from '../actions/action/types';
4
- import { Ref } from 'react';
5
- export type BlockProps = {
4
+ import { PropsWithChildren, Ref } from 'react';
5
+ export type BlockProps = PropsWithChildren<{
6
6
  /**
7
7
  * The direction that the block should arrange it's elements. Can be vertical
8
8
  * or horizontal. Default is horizontal.
@@ -44,7 +44,7 @@ export type BlockProps = {
44
44
  * @internal
45
45
  */
46
46
  onTransitionEnd?: () => void;
47
- };
47
+ }>;
48
48
  /**
49
49
  * Used to represent a metadata element to be rendered.
50
50
  */
@@ -1,4 +1,4 @@
1
- import type { FC } from 'react';
1
+ /// <reference types="react" />
2
2
  import { HoverCardDelayProps } from './types';
3
- declare const HoverCardControl: FC<HoverCardDelayProps>;
3
+ declare const HoverCardControl: ({ children, hideHoverCardPreviewButton, isHoverPreview, isAuthTooltip, actionOptions, testId, url, delay, }: HoverCardDelayProps) => JSX.Element;
4
4
  export default HoverCardControl;
@@ -1,8 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import { ContainerProps } from '../types';
2
- export type HoverCardDelayProps = Pick<ContainerProps, 'hideHoverCardPreviewButton' | 'actionOptions'> & {
3
+ export type HoverCardDelayProps = PropsWithChildren<Pick<ContainerProps, 'hideHoverCardPreviewButton' | 'actionOptions'> & {
3
4
  isHoverPreview?: boolean;
4
5
  isAuthTooltip?: boolean;
5
6
  testId?: string;
6
7
  url: string;
7
8
  delay?: number;
8
- };
9
+ }>;
@@ -1,6 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { SerializedStyles } from '@emotion/react';
1
+ import { jsx, SerializedStyles } from '@emotion/react';
4
2
  import { SmartLinkSize } from '../../../../constants';
5
3
  import { ChildrenOptions, ContainerProps } from './types';
6
4
  export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: boolean, hideElevation: boolean, hidePadding: boolean, clickableContainer: boolean, childrenOptions: ChildrenOptions) => SerializedStyles;
@@ -12,5 +10,5 @@ export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: b
12
10
  * @internal
13
11
  * @see Block
14
12
  */
15
- declare const Container: React.FC<ContainerProps>;
13
+ declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hideHoverCardPreviewButton, hidePadding, onClick, retry, showAuthTooltip, showHoverPreview, actionOptions, size, status, testId, theme, }: ContainerProps) => jsx.JSX.Element;
16
14
  export default Container;
@@ -1,6 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import { SmartLinkStatus } from '../../../../constants';
2
3
  import { FlexibleCardProps, FlexibleUiOptions, RetryOptions } from '../../types';
3
- export type ContainerProps = Pick<FlexibleCardProps, 'onClick' | 'showHoverPreview' | 'actionOptions' | 'showAuthTooltip'> & FlexibleUiOptions & {
4
+ export type ContainerProps = PropsWithChildren<Pick<FlexibleCardProps, 'onClick' | 'showHoverPreview' | 'actionOptions' | 'showAuthTooltip'> & FlexibleUiOptions & {
4
5
  /**
5
6
  * The options that determine the retry behaviour when a Smart Link errors.
6
7
  */
@@ -16,7 +17,7 @@ export type ContainerProps = Pick<FlexibleCardProps, 'onClick' | 'showHoverPrevi
16
17
  * serving as a hook for automated tests
17
18
  */
18
19
  testId?: string;
19
- };
20
+ }>;
20
21
  export type ChildrenOptions = {
21
22
  previewOnLeft?: boolean;
22
23
  previewOnRight?: boolean;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
2
3
  import type { ContentContainerProps } from '../types';
3
- declare const ContentContainer: React.FC<ContentContainerProps>;
4
+ declare const ContentContainer: ({ children, isAIEnabled, testId, url, ...props }: ContentContainerProps) => jsx.JSX.Element;
4
5
  export default ContentContainer;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
2
3
  import type { AIPrismProps } from './types';
3
- declare const AIPrism: React.FC<AIPrismProps>;
4
+ declare const AIPrism: ({ children, isGlowing, isMoving, isVisible, testId, }: AIPrismProps) => jsx.JSX.Element;
4
5
  export default AIPrism;
@@ -1,7 +1,8 @@
1
+ import { type PropsWithChildren } from 'react';
1
2
  import { AIGlowingBorderProps } from './ai-glowing-border/types';
2
- export type AIPrismProps = Pick<AIGlowingBorderProps, 'isMoving' | 'isGlowing' | 'testId'> & {
3
+ export type AIPrismProps = PropsWithChildren<Pick<AIGlowingBorderProps, 'isMoving' | 'isGlowing' | 'testId'> & {
3
4
  isVisible?: boolean;
4
- };
5
+ }>;
5
6
  export type AIBorderPalette = {
6
7
  blue: string;
7
8
  yellow: string;
@@ -1,4 +1,4 @@
1
- import { type FC } from 'react';
1
+ /// <reference types="react" />
2
2
  import { UnresolvedViewProps } from './types';
3
- declare const UnresolvedView: FC<UnresolvedViewProps>;
3
+ declare const UnresolvedView: ({ actions, cardState, children, onAuthorize, onClick, onError, showPreview, testId, title, url, }: UnresolvedViewProps) => JSX.Element;
4
4
  export default UnresolvedView;
@@ -1,7 +1,8 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import type { ActionItem } from '../../../../FlexibleCard/components/blocks/types';
2
3
  import type { FlexibleBlockCardProps } from '../types';
3
- export type UnresolvedViewProps = FlexibleBlockCardProps & {
4
+ export type UnresolvedViewProps = PropsWithChildren<FlexibleBlockCardProps & {
4
5
  actions?: ActionItem[];
5
6
  showPreview?: boolean;
6
7
  title?: string;
7
- };
8
+ }>;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const AIEventErrorViewed: React.FC;
1
+ declare const AIEventErrorViewed: () => null;
3
2
  export default AIEventErrorViewed;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { BlockProps } from '../types';
4
3
  /**
5
4
  * A block represents a collection of elements and actions that are arranged
@@ -8,5 +7,5 @@ import { BlockProps } from '../types';
8
7
  * @param {ActionGroupProps} ActionGroupProps
9
8
  * @see Action
10
9
  */
11
- declare const Block: React.FC<BlockProps>;
10
+ declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
12
11
  export default Block;
@@ -1,6 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React from 'react';
3
- import { SerializedStyles } from '@emotion/react';
2
+ import { jsx, SerializedStyles } from '@emotion/react';
4
3
  import { ElementGroupProps } from './types';
5
4
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
6
5
  export declare const getElementGroupStyles: (direction: SmartLinkDirection, size: SmartLinkSize, align: SmartLinkAlignment, width: SmartLinkWidth, position: SmartLinkPosition) => SerializedStyles;
@@ -11,5 +10,5 @@ export declare const getElementGroupStyles: (direction: SmartLinkDirection, size
11
10
  * @param {ActionGroupProps} ActionGroupProps
12
11
  * @see Action
13
12
  */
14
- declare const ElementGroup: React.FC<ElementGroupProps>;
13
+ declare const ElementGroup: ({ align, children, overrideCss, direction, size, testId, width, position, }: ElementGroupProps) => jsx.JSX.Element;
15
14
  export default ElementGroup;
@@ -1,6 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import { SerializedStyles } from '@emotion/react';
2
3
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
3
- export type ElementGroupProps = {
4
+ export type ElementGroupProps = PropsWithChildren<{
4
5
  align?: SmartLinkAlignment;
5
6
  direction?: SmartLinkDirection;
6
7
  overrideCss?: SerializedStyles;
@@ -8,4 +9,4 @@ export type ElementGroupProps = {
8
9
  width?: SmartLinkWidth;
9
10
  testId?: string;
10
11
  position?: SmartLinkPosition;
11
- };
12
+ }>;
@@ -1,8 +1,8 @@
1
1
  import { ActionName, ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkStatus } from '../../../../constants';
2
2
  import { SerializedStyles } from '@emotion/react';
3
3
  import { ActionProps } from '../actions/action/types';
4
- import { Ref } from 'react';
5
- export type BlockProps = {
4
+ import { PropsWithChildren, Ref } from 'react';
5
+ export type BlockProps = PropsWithChildren<{
6
6
  /**
7
7
  * The direction that the block should arrange it's elements. Can be vertical
8
8
  * or horizontal. Default is horizontal.
@@ -44,7 +44,7 @@ export type BlockProps = {
44
44
  * @internal
45
45
  */
46
46
  onTransitionEnd?: () => void;
47
- };
47
+ }>;
48
48
  /**
49
49
  * Used to represent a metadata element to be rendered.
50
50
  */
@@ -1,4 +1,4 @@
1
- import type { FC } from 'react';
1
+ /// <reference types="react" />
2
2
  import { HoverCardDelayProps } from './types';
3
- declare const HoverCardControl: FC<HoverCardDelayProps>;
3
+ declare const HoverCardControl: ({ children, hideHoverCardPreviewButton, isHoverPreview, isAuthTooltip, actionOptions, testId, url, delay, }: HoverCardDelayProps) => JSX.Element;
4
4
  export default HoverCardControl;
@@ -1,8 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import { ContainerProps } from '../types';
2
- export type HoverCardDelayProps = Pick<ContainerProps, 'hideHoverCardPreviewButton' | 'actionOptions'> & {
3
+ export type HoverCardDelayProps = PropsWithChildren<Pick<ContainerProps, 'hideHoverCardPreviewButton' | 'actionOptions'> & {
3
4
  isHoverPreview?: boolean;
4
5
  isAuthTooltip?: boolean;
5
6
  testId?: string;
6
7
  url: string;
7
8
  delay?: number;
8
- };
9
+ }>;
@@ -1,6 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { SerializedStyles } from '@emotion/react';
1
+ import { jsx, SerializedStyles } from '@emotion/react';
4
2
  import { SmartLinkSize } from '../../../../constants';
5
3
  import { ChildrenOptions, ContainerProps } from './types';
6
4
  export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: boolean, hideElevation: boolean, hidePadding: boolean, clickableContainer: boolean, childrenOptions: ChildrenOptions) => SerializedStyles;
@@ -12,5 +10,5 @@ export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: b
12
10
  * @internal
13
11
  * @see Block
14
12
  */
15
- declare const Container: React.FC<ContainerProps>;
13
+ declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hideHoverCardPreviewButton, hidePadding, onClick, retry, showAuthTooltip, showHoverPreview, actionOptions, size, status, testId, theme, }: ContainerProps) => jsx.JSX.Element;
16
14
  export default Container;
@@ -1,6 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
1
2
  import { SmartLinkStatus } from '../../../../constants';
2
3
  import { FlexibleCardProps, FlexibleUiOptions, RetryOptions } from '../../types';
3
- export type ContainerProps = Pick<FlexibleCardProps, 'onClick' | 'showHoverPreview' | 'actionOptions' | 'showAuthTooltip'> & FlexibleUiOptions & {
4
+ export type ContainerProps = PropsWithChildren<Pick<FlexibleCardProps, 'onClick' | 'showHoverPreview' | 'actionOptions' | 'showAuthTooltip'> & FlexibleUiOptions & {
4
5
  /**
5
6
  * The options that determine the retry behaviour when a Smart Link errors.
6
7
  */
@@ -16,7 +17,7 @@ export type ContainerProps = Pick<FlexibleCardProps, 'onClick' | 'showHoverPrevi
16
17
  * serving as a hook for automated tests
17
18
  */
18
19
  testId?: string;
19
- };
20
+ }>;
20
21
  export type ChildrenOptions = {
21
22
  previewOnLeft?: boolean;
22
23
  previewOnRight?: boolean;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
2
3
  import type { ContentContainerProps } from '../types';
3
- declare const ContentContainer: React.FC<ContentContainerProps>;
4
+ declare const ContentContainer: ({ children, isAIEnabled, testId, url, ...props }: ContentContainerProps) => jsx.JSX.Element;
4
5
  export default ContentContainer;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
2
3
  import type { AIPrismProps } from './types';
3
- declare const AIPrism: React.FC<AIPrismProps>;
4
+ declare const AIPrism: ({ children, isGlowing, isMoving, isVisible, testId, }: AIPrismProps) => jsx.JSX.Element;
4
5
  export default AIPrism;
@@ -1,7 +1,8 @@
1
+ import { type PropsWithChildren } from 'react';
1
2
  import { AIGlowingBorderProps } from './ai-glowing-border/types';
2
- export type AIPrismProps = Pick<AIGlowingBorderProps, 'isMoving' | 'isGlowing' | 'testId'> & {
3
+ export type AIPrismProps = PropsWithChildren<Pick<AIGlowingBorderProps, 'isMoving' | 'isGlowing' | 'testId'> & {
3
4
  isVisible?: boolean;
4
- };
5
+ }>;
5
6
  export type AIBorderPalette = {
6
7
  blue: string;
7
8
  yellow: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.49.1",
3
+ "version": "26.49.3",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/avatar-group": "^9.5.0",
35
35
  "@atlaskit/badge": "^15.2.0",
36
36
  "@atlaskit/button": "^17.7.0",
37
- "@atlaskit/dropdown-menu": "^12.7.0",
37
+ "@atlaskit/dropdown-menu": "^12.8.0",
38
38
  "@atlaskit/icon": "^22.1.0",
39
39
  "@atlaskit/icon-file-type": "^6.4.0",
40
40
  "@atlaskit/icon-object": "^6.3.0",
@@ -51,10 +51,10 @@
51
51
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
52
52
  "@atlaskit/platform-feature-flags": "^0.2.1",
53
53
  "@atlaskit/popup": "^1.13.0",
54
- "@atlaskit/primitives": "^4.0.0",
54
+ "@atlaskit/primitives": "^4.1.0",
55
55
  "@atlaskit/spinner": "^16.0.0",
56
56
  "@atlaskit/theme": "^12.6.0",
57
- "@atlaskit/tokens": "^1.40.0",
57
+ "@atlaskit/tokens": "^1.41.0",
58
58
  "@atlaskit/tooltip": "^18.1.0",
59
59
  "@atlaskit/ufo": "^0.2.0",
60
60
  "@babel/runtime": "^7.0.0",
@@ -83,7 +83,7 @@
83
83
  "@af/integration-testing": "*",
84
84
  "@af/visual-regression": "*",
85
85
  "@atlaskit/analytics-listeners": "^8.9.0",
86
- "@atlaskit/css-reset": "^6.6.0",
86
+ "@atlaskit/css-reset": "^6.7.0",
87
87
  "@atlaskit/link-test-helpers": "^6.2.0",
88
88
  "@atlaskit/media-test-helpers": "^33.0.0",
89
89
  "@atlaskit/ssr": "*",