@atlaskit/smart-card 26.48.8 → 26.49.0

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 (111) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/__tests_external__/page-objects/BaseCard.js +1 -1
  3. package/dist/cjs/__tests_external__/page-objects/BlockCard.js +1 -1
  4. package/dist/cjs/__tests_external__/page-objects/EmbedCard.js +1 -1
  5. package/dist/cjs/__tests_external__/page-objects/InlineCard.js +1 -1
  6. package/dist/cjs/ssr.js +2 -2
  7. package/dist/cjs/state/hooks/use-invoke-client-action/index.js +2 -2
  8. package/dist/cjs/utils/analytics/analytics.js +1 -1
  9. package/dist/cjs/utils/flexible.js +2 -2
  10. package/dist/cjs/utils/index.js +2 -2
  11. package/dist/cjs/utils/mocks.js +1 -1
  12. package/dist/cjs/view/BlockCard/components/ActionList.js +2 -2
  13. package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +2 -2
  14. package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +2 -2
  15. package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +2 -2
  16. package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -2
  17. package/dist/cjs/view/Card/index.js +1 -1
  18. package/dist/cjs/view/CardWithData/component.js +1 -1
  19. package/dist/cjs/view/CardWithData/loader.js +3 -3
  20. package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -2
  21. package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +2 -2
  22. package/dist/cjs/view/CardWithUrl/component.js +2 -2
  23. package/dist/cjs/view/CardWithUrl/loader.js +2 -2
  24. package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
  25. package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +22 -3
  26. package/dist/cjs/view/EmbedCard/components/Frame.js +2 -2
  27. package/dist/cjs/view/EmbedCard/components/styled.js +103 -23
  28. package/dist/cjs/view/EmbedCard/views/forbidden-view/index.js +2 -2
  29. package/dist/cjs/view/EmbedCard/views/not-found-view/index.js +2 -2
  30. package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +2 -2
  31. package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +2 -2
  32. package/dist/cjs/view/EmbedModal/components/analytics/index.js +2 -2
  33. package/dist/cjs/view/EmbedModal/components/error-boundary/index.js +2 -2
  34. package/dist/cjs/view/EmbedModal/components/link-info/index.js +2 -2
  35. package/dist/cjs/view/EmbedModal/index.js +2 -2
  36. package/dist/cjs/view/EmbedModal/utils.js +2 -2
  37. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +2 -2
  38. package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +2 -2
  39. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +2 -2
  40. package/dist/cjs/view/FlexibleCard/components/actions/utils.js +2 -2
  41. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +2 -2
  42. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +2 -2
  43. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +2 -2
  44. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +2 -2
  45. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +2 -2
  46. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +2 -2
  47. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +2 -2
  48. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -2
  49. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +2 -2
  50. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -2
  51. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +2 -2
  52. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +2 -2
  53. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -5
  54. package/dist/cjs/view/FlexibleCard/components/container/hover-card-control/index.js +2 -2
  55. package/dist/cjs/view/FlexibleCard/components/container/index.js +2 -2
  56. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -2
  57. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +2 -2
  58. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +2 -2
  59. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/error-boundary/index.js +2 -2
  60. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +2 -2
  61. package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +2 -2
  62. package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +2 -2
  63. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -2
  64. package/dist/cjs/view/FlexibleCard/index.js +2 -2
  65. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -2
  66. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -2
  67. package/dist/cjs/view/HoverCard/components/ImagePreview.js +2 -2
  68. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +2 -2
  69. package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +2 -2
  70. package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -1
  71. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +1 -1
  72. package/dist/cjs/view/InlineCard/Frame/index.js +2 -2
  73. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +1 -1
  74. package/dist/cjs/view/InlineCard/ResolvedView/index.js +1 -1
  75. package/dist/cjs/view/InlineCard/ResolvingView/index.js +1 -1
  76. package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -1
  77. package/dist/cjs/view/InlineCard/index.js +2 -2
  78. package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +2 -2
  79. package/dist/cjs/view/LinkUrl/index.js +1 -1
  80. package/dist/cjs/view/LinkView/index.js +1 -1
  81. package/dist/cjs/view/common/UnauthorisedViewContent.js +2 -2
  82. package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -2
  83. package/dist/es2019/utils/analytics/analytics.js +1 -1
  84. package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +21 -4
  85. package/dist/es2019/view/EmbedCard/components/styled.js +99 -111
  86. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -3
  87. package/dist/es2019/view/LinkUrl/index.js +1 -1
  88. package/dist/esm/__tests_external__/page-objects/BaseCard.js +1 -1
  89. package/dist/esm/__tests_external__/page-objects/BlockCard.js +1 -1
  90. package/dist/esm/__tests_external__/page-objects/EmbedCard.js +1 -1
  91. package/dist/esm/__tests_external__/page-objects/InlineCard.js +1 -1
  92. package/dist/esm/utils/analytics/analytics.js +1 -1
  93. package/dist/esm/utils/mocks.js +1 -1
  94. package/dist/esm/view/Card/index.js +1 -1
  95. package/dist/esm/view/CardWithData/component.js +1 -1
  96. package/dist/esm/view/CardWithData/loader.js +1 -1
  97. package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
  98. package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +23 -4
  99. package/dist/esm/view/EmbedCard/components/styled.js +100 -20
  100. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -3
  101. package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
  102. package/dist/esm/view/InlineCard/ForbiddenView/index.js +1 -1
  103. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +1 -1
  104. package/dist/esm/view/InlineCard/ResolvedView/index.js +1 -1
  105. package/dist/esm/view/InlineCard/ResolvingView/index.js +1 -1
  106. package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
  107. package/dist/esm/view/LinkUrl/index.js +1 -1
  108. package/dist/esm/view/LinkView/index.js +1 -1
  109. package/dist/types/view/EmbedCard/components/styled.d.ts +5 -1
  110. package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +5 -1
  111. package/package.json +4 -1
@@ -1,5 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
2
+ var _templateObject, _templateObject2;
3
3
  import styled from '@emotion/styled';
4
4
  import { fontFamily } from '@atlaskit/theme/constants';
5
5
  import * as colors from '@atlaskit/theme/colors';
@@ -66,39 +66,63 @@ function visible(_ref7) {
66
66
  var frameStyle = _ref7.frameStyle;
67
67
  return frameStyle === 'show' ? visibleStyles : '';
68
68
  }
69
+
70
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
69
71
  export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " &:hover {\n text-decoration: none;\n }\n"])), function (props) {
70
72
  return wrapperStyles(props);
71
73
  });
72
74
 
73
75
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
74
- export var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n margin-top: 10px;\n"])), function (props) {
76
+ export var Wrapper = styled.div(function (props) {
75
77
  return wrapperStyles(props);
78
+ }, {
79
+ marginTop: '10px'
76
80
  });
77
81
  export var embedHeaderHeight = 32;
78
- export var Header = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: ", "px;\n position: absolute;\n z-index: 1;\n width: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n opacity: 0;\n transition: 300ms opacity cubic-bezier(0.15, 1, 0.3, 1);\n\n ", "\n"])), embedHeaderHeight, "var(--ds-icon, ".concat(colors.N300, ")"), function (_ref8) {
82
+ export var Header = styled.div({
83
+ height: "".concat(embedHeaderHeight, "px"),
84
+ position: 'absolute',
85
+ zIndex: 1,
86
+ width: '100%',
87
+ display: 'flex',
88
+ alignItems: 'center',
89
+ color: "var(--ds-icon, ".concat(colors.N300, ")"),
90
+ opacity: 0,
91
+ transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
92
+ }, function (_ref8) {
79
93
  var frameStyle = _ref8.frameStyle;
80
94
  return getBooleanFF('platform.editor.show-embed-card-frame-renderer') && frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
81
95
  });
82
- export var IconWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n ", "\n ", " margin-right: 4px;\n"])), borderRadius, csssize(16), function (_ref9) {
96
+ export var IconWrapper = styled.div(borderRadius, csssize(16), function (_ref9) {
83
97
  var isPlaceholder = _ref9.isPlaceholder;
84
98
  if (isPlaceholder) {
85
99
  return "\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
86
100
  } else {
87
101
  return '';
88
102
  }
103
+ }, {
104
+ marginRight: "var(--ds-space-050, 4px)"
89
105
  });
90
- export var TextWrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", " color: ", ";\n font-size: 12px;\n line-height: 16px;\n ", ";\n"])), function (_ref10) {
106
+ export var TextWrapper = styled.div(function (_ref10) {
91
107
  var isPlaceholder = _ref10.isPlaceholder;
92
108
  if (isPlaceholder) {
93
109
  return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
94
110
  } else {
95
111
  return '';
96
112
  }
97
- }, "var(--ds-text-subtlest, ".concat(colors.N300, ")"), ellipsis('none'));
113
+ }, {
114
+ color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
115
+ fontSize: '12px',
116
+ lineHeight: '16px'
117
+ }, ellipsis('none'));
118
+ export var TooltipWrapper = styled.div({
119
+ overflow: 'hidden'
120
+ });
98
121
  // NB: `overflow` is kept as `hidden` since
99
122
  // the internal contents of the `iframe` should
100
123
  // manage scrolling behaviour.
101
- export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", ";\n border: 1px solid ", ";\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
124
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
125
+ export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n border: 1px solid ", ";\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
102
126
  var allowScrollBar = _ref11.allowScrollBar;
103
127
  return allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;';
104
128
  }, function (_ref12) {
@@ -108,22 +132,78 @@ export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedT
108
132
  var frameStyle = _ref13.frameStyle;
109
133
  return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
110
134
  });
111
- export var Image = styled.img(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", "\n ", "\n\n /* hide the alt text when the image cannot be found */\n overflow: hidden;\n"])), function (_ref14) {
135
+ export var Image = styled.img(function (_ref14) {
112
136
  var size = _ref14.size;
113
137
  return csssize(size);
114
- }, borderRadius);
138
+ }, borderRadius, {
139
+ overflow: 'hidden'
140
+ });
115
141
  export var maxAvatarCount = 6;
116
- export var ContentWrapper = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n box-sizing: border-box;\n padding: ", " ", "\n ", " ", ";\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)");
117
- export var Title = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n line-height: ", ";\n max-height: ", "px;\n overflow: hidden;\n"])), "var(--ds-text, ".concat(colors.N900, ")"), 20 / 16, 20 * 4);
118
- export var Byline = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: ", ";\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n ", ";\n"])), "var(--ds-space-050, 4px)", "var(--ds-text-subtlest, ".concat(colors.N300, ")"), 16 / 12, ellipsis('100%'));
142
+ export var ContentWrapper = styled.div({
143
+ display: 'flex',
144
+ flexDirection: 'row',
145
+ boxSizing: 'border-box',
146
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
147
+ });
148
+ export var Title = styled.div({
149
+ color: "var(--ds-text, ".concat(colors.N900, ")"),
150
+ fontSize: '16px',
151
+ fontWeight: 500,
152
+ lineHeight: 20 / 16,
153
+ maxHeight: "".concat(20 * 4, "px"),
154
+ overflow: 'hidden'
155
+ });
156
+ export var Byline = styled.div({
157
+ marginTop: "var(--ds-space-050, 4px)",
158
+ color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
159
+ fontSize: '12px',
160
+ fontWeight: 'normal',
161
+ lineHeight: 16 / 12
162
+ }, ellipsis('100%'));
119
163
 
120
164
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
121
- export var Description = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: 7px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n max-height: ", "px;\n overflow: hidden;\n"])), "var(--ds-text, ".concat(colors.N800, ")"), 18 / 12, 18 * 3);
122
- export var ResolvedViewIconWrapper = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-top: ", ";\n"])), "var(--ds-space-050, 4px)");
123
- export var Thumbnail = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n ", "\n ", "\n float: right;\n margin: ", " 0 ", "\n ", ";\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, csssize(48), "var(--ds-space-050, 4px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", "var(--ds-skeleton, ".concat(colors.N30, ")"), function (_ref15) {
124
- var src = _ref15.src;
125
- return src;
165
+ export var Description = styled.div({
166
+ marginTop: '7px',
167
+ color: "var(--ds-text, ".concat(colors.N800, ")"),
168
+ fontSize: '12px',
169
+ fontWeight: 'normal',
170
+ lineHeight: 18 / 12,
171
+ maxHeight: "".concat(18 * 3, "px"),
172
+ overflow: 'hidden'
173
+ });
174
+ export var ResolvedViewIconWrapper = styled.div({
175
+ marginTop: "var(--ds-space-050, 4px)"
176
+ });
177
+ export var Thumbnail = styled.div(borderRadius, csssize(48), {
178
+ float: 'right',
179
+ margin: "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)"),
180
+ backgroundColor: "var(--ds-skeleton, ".concat(colors.N30, ")"),
181
+ backgroundImage: "url(".concat(function (_ref15) {
182
+ var src = _ref15.src;
183
+ return src;
184
+ }, ")"),
185
+ backgroundSize: 'cover'
186
+ });
187
+ export var UsersWrapper = styled.div({
188
+ marginTop: "var(--ds-space-100, 8px)"
189
+ });
190
+ export var ActionsWrapper = styled.div({
191
+ marginTop: "var(--ds-space-100, 8px)",
192
+ textAlign: 'right',
193
+ '> *': {
194
+ marginTop: "var(--ds-space-050, 4px)"
195
+ },
196
+ '> * + *': {
197
+ marginLeft: "var(--ds-space-050, 4px)"
198
+ }
126
199
  });
127
- export var UsersWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-top: ", ";\n"])), "var(--ds-space-100, 8px)");
128
- export var ActionsWrapper = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-top: ", ";\n text-align: right;\n\n > * {\n margin-top: ", ";\n }\n\n > * + * {\n margin-left: ", ";\n }\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
129
- export var AlertWrapper = styled.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n pointer-events: none;\n /* z-index has to be 1 higher than the number of avatars in the avatar stack */\n z-index: ", ";\n"])), maxAvatarCount + 1);
200
+ export var AlertWrapper = styled.div({
201
+ position: 'absolute',
202
+ top: 0,
203
+ right: 0,
204
+ bottom: 0,
205
+ left: 0,
206
+ overflow: 'hidden',
207
+ pointerEvents: 'none',
208
+ zIndex: maxAvatarCount + 1
209
+ });
@@ -155,7 +155,6 @@ var importIcon = function importIcon(importFn) {
155
155
  }
156
156
  }); // Because we're using dynamic loading here, TS will not be able to infer the type.
157
157
  };
158
-
159
158
  var AtlaskitIcon = function AtlaskitIcon(_ref3) {
160
159
  var icon = _ref3.icon,
161
160
  label = _ref3.label,
@@ -189,7 +188,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
189
188
  iconGradientStop: B200
190
189
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
191
190
  });
192
-
193
191
  case IconType.Jira:
194
192
  // Logo component has a different prop set from other icon components
195
193
  return /*#__PURE__*/React.createElement(ImportedIcon, {
@@ -201,7 +199,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
201
199
  iconGradientStop: B200
202
200
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
203
201
  });
204
-
205
202
  case IconType.Error:
206
203
  case IconType.Forbidden:
207
204
  return /*#__PURE__*/React.createElement(ImportedIcon, {
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import { R300 } from '@atlaskit/theme/colors';
12
12
  import ErrorIcon from '@atlaskit/icon/glyph/error';
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React from 'react';
12
12
  import { R400, N500 } from '@atlaskit/theme/colors';
13
13
  import LockIcon from '@atlaskit/icon/glyph/lock-filled';
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import ImageLoader from 'react-render-image';
12
12
  import { Icon, Shimmer } from '../Icon';
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
9
  import { Frame } from '../Frame';
10
10
  import Lozenge from '@atlaskit/lozenge';
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
9
  import { Frame } from '../Frame';
10
10
  import Spinner from '@atlaskit/spinner';
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import Button from '@atlaskit/button/custom-theme-button';
12
12
  import LockIcon from '@atlaskit/icon/glyph/lock-filled';
13
13
  import { N500, R400 } from '@atlaskit/theme/colors';
@@ -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.48.8",
13
+ packageVersion: "26.49.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
5
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
8
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import React from 'react';
10
10
  import { Frame } from '../InlineCard/Frame';
11
11
  export var CardLinkView = /*#__PURE__*/function (_React$PureComponent) {
@@ -39,6 +39,10 @@ export declare const TextWrapper: import("@emotion/styled").StyledComponent<{
39
39
  theme?: import("@emotion/react").Theme | undefined;
40
40
  as?: import("react").ElementType<any> | undefined;
41
41
  } & PlaceholderProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
+ export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
43
+ theme?: import("@emotion/react").Theme | undefined;
44
+ as?: import("react").ElementType<any> | undefined;
45
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
46
  export interface ContentProps {
43
47
  isInteractive: boolean;
44
48
  allowScrollBar: boolean;
@@ -82,7 +86,7 @@ export interface ThumbnailProps {
82
86
  export declare const Thumbnail: import("@emotion/styled").StyledComponent<{
83
87
  theme?: import("@emotion/react").Theme | undefined;
84
88
  as?: import("react").ElementType<any> | undefined;
85
- } & ThumbnailProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
89
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
86
90
  export declare const UsersWrapper: import("@emotion/styled").StyledComponent<{
87
91
  theme?: import("@emotion/react").Theme | undefined;
88
92
  as?: import("react").ElementType<any> | undefined;
@@ -39,6 +39,10 @@ export declare const TextWrapper: import("@emotion/styled").StyledComponent<{
39
39
  theme?: import("@emotion/react").Theme | undefined;
40
40
  as?: import("react").ElementType<any> | undefined;
41
41
  } & PlaceholderProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
+ export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
43
+ theme?: import("@emotion/react").Theme | undefined;
44
+ as?: import("react").ElementType<any> | undefined;
45
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
46
  export interface ContentProps {
43
47
  isInteractive: boolean;
44
48
  allowScrollBar: boolean;
@@ -82,7 +86,7 @@ export interface ThumbnailProps {
82
86
  export declare const Thumbnail: import("@emotion/styled").StyledComponent<{
83
87
  theme?: import("@emotion/react").Theme | undefined;
84
88
  as?: import("react").ElementType<any> | undefined;
85
- } & ThumbnailProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
89
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
86
90
  export declare const UsersWrapper: import("@emotion/styled").StyledComponent<{
87
91
  theme?: import("@emotion/react").Theme | undefined;
88
92
  as?: import("react").ElementType<any> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.48.8",
3
+ "version": "26.49.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -163,6 +163,9 @@
163
163
  },
164
164
  "platform.linking-platform.smart-card.fix-intersection-observer": {
165
165
  "type": "boolean"
166
+ },
167
+ "platform.linking-platform.smart-card.embed-card-header-tooltip": {
168
+ "type": "boolean"
166
169
  }
167
170
  },
168
171
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"