@atlaskit/smart-card 34.1.0 → 34.2.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 (90) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/EmbedCard/components/IFrame.js +6 -3
  4. package/dist/cjs/view/EmbedModal/components/embed-content/index.compiled.css +2 -0
  5. package/dist/cjs/view/EmbedModal/components/embed-content/index.js +23 -14
  6. package/dist/cjs/view/EmbedModal/components/embed-content/indexOld.js +37 -0
  7. package/dist/cjs/view/EmbedModal/components/link-info/index.compiled.css +35 -0
  8. package/dist/cjs/view/EmbedModal/components/link-info/index.js +58 -49
  9. package/dist/cjs/view/EmbedModal/components/link-info/indexOld.js +131 -0
  10. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +9 -11
  11. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.js +52 -0
  12. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +15 -0
  13. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +27 -38
  14. package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +38 -0
  15. package/dist/cjs/view/FlexibleCard/components/container/index.js +94 -87
  16. package/dist/cjs/view/FlexibleCard/components/container/indexOld.js +226 -0
  17. package/dist/cjs/view/FlexibleCard/components/container/layered-link/LayeredLinkOld.js +75 -0
  18. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.compiled.css +11 -0
  19. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +20 -46
  20. package/dist/cjs/view/LinkUrl/index.js +1 -1
  21. package/dist/es2019/utils/analytics/analytics.js +1 -1
  22. package/dist/es2019/view/EmbedCard/components/IFrame.js +5 -2
  23. package/dist/es2019/view/EmbedModal/components/embed-content/index.compiled.css +2 -0
  24. package/dist/es2019/view/EmbedModal/components/embed-content/index.js +19 -13
  25. package/dist/es2019/view/EmbedModal/components/embed-content/indexOld.js +31 -0
  26. package/dist/es2019/view/EmbedModal/components/link-info/index.compiled.css +35 -0
  27. package/dist/es2019/view/EmbedModal/components/link-info/index.js +59 -49
  28. package/dist/es2019/view/EmbedModal/components/link-info/indexOld.js +122 -0
  29. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +6 -10
  30. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.js +46 -0
  31. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +15 -0
  32. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +22 -37
  33. package/dist/es2019/view/FlexibleCard/components/container/index.compiled.css +38 -0
  34. package/dist/es2019/view/FlexibleCard/components/container/index.js +88 -105
  35. package/dist/es2019/view/FlexibleCard/components/container/indexOld.js +229 -0
  36. package/dist/es2019/view/FlexibleCard/components/container/layered-link/LayeredLinkOld.js +69 -0
  37. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.compiled.css +11 -0
  38. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +16 -45
  39. package/dist/es2019/view/LinkUrl/index.js +1 -1
  40. package/dist/esm/utils/analytics/analytics.js +1 -1
  41. package/dist/esm/view/EmbedCard/components/IFrame.js +6 -3
  42. package/dist/esm/view/EmbedModal/components/embed-content/index.compiled.css +2 -0
  43. package/dist/esm/view/EmbedModal/components/embed-content/index.js +19 -13
  44. package/dist/esm/view/EmbedModal/components/embed-content/indexOld.js +30 -0
  45. package/dist/esm/view/EmbedModal/components/link-info/index.compiled.css +35 -0
  46. package/dist/esm/view/EmbedModal/components/link-info/index.js +59 -49
  47. package/dist/esm/view/EmbedModal/components/link-info/indexOld.js +120 -0
  48. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +6 -10
  49. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.js +45 -0
  50. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +15 -0
  51. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +23 -37
  52. package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +38 -0
  53. package/dist/esm/view/FlexibleCard/components/container/index.js +88 -87
  54. package/dist/esm/view/FlexibleCard/components/container/indexOld.js +217 -0
  55. package/dist/esm/view/FlexibleCard/components/container/layered-link/LayeredLinkOld.js +68 -0
  56. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.compiled.css +11 -0
  57. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +16 -45
  58. package/dist/esm/view/LinkUrl/index.js +1 -1
  59. package/dist/types/view/EmbedCard/components/IFrame.d.ts +2 -1
  60. package/dist/types/view/EmbedModal/components/embed-content/index.d.ts +3 -7
  61. package/dist/types/view/EmbedModal/components/embed-content/indexOld.d.ts +8 -0
  62. package/dist/types/view/EmbedModal/components/link-info/index.d.ts +3 -3
  63. package/dist/types/view/EmbedModal/components/link-info/indexOld.d.ts +4 -0
  64. package/dist/types/view/FlexibleCard/components/common/image-icon/index.d.ts +2 -6
  65. package/dist/types/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +8 -0
  66. package/dist/types/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +2 -6
  67. package/dist/types/view/FlexibleCard/components/container/index.d.ts +10 -10
  68. package/dist/types/view/FlexibleCard/components/container/indexOld.d.ts +24 -0
  69. package/dist/types/view/FlexibleCard/components/container/layered-link/LayeredLinkOld.d.ts +13 -0
  70. package/dist/types/view/FlexibleCard/components/container/layered-link/index.d.ts +2 -11
  71. package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  72. package/dist/types-ts4.5/view/EmbedCard/components/IFrame.d.ts +2 -1
  73. package/dist/types-ts4.5/view/EmbedModal/components/embed-content/index.d.ts +3 -7
  74. package/dist/types-ts4.5/view/EmbedModal/components/embed-content/indexOld.d.ts +8 -0
  75. package/dist/types-ts4.5/view/EmbedModal/components/link-info/index.d.ts +3 -3
  76. package/dist/types-ts4.5/view/EmbedModal/components/link-info/indexOld.d.ts +4 -0
  77. package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/index.d.ts +2 -6
  78. package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +8 -0
  79. package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +2 -6
  80. package/dist/types-ts4.5/view/FlexibleCard/components/container/index.d.ts +10 -10
  81. package/dist/types-ts4.5/view/FlexibleCard/components/container/indexOld.d.ts +24 -0
  82. package/dist/types-ts4.5/view/FlexibleCard/components/container/layered-link/LayeredLinkOld.d.ts +13 -0
  83. package/dist/types-ts4.5/view/FlexibleCard/components/container/layered-link/index.d.ts +2 -11
  84. package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  85. package/package.json +1 -1
  86. /package/dist/cjs/view/EmbedModal/components/link-info/{styled.js → styledOld.js} +0 -0
  87. /package/dist/es2019/view/EmbedModal/components/link-info/{styled.js → styledOld.js} +0 -0
  88. /package/dist/esm/view/EmbedModal/components/link-info/{styled.js → styledOld.js} +0 -0
  89. /package/dist/types/view/EmbedModal/components/link-info/{styled.d.ts → styledOld.d.ts} +0 -0
  90. /package/dist/types-ts4.5/view/EmbedModal/components/link-info/{styled.d.ts → styledOld.d.ts} +0 -0
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ import { css, jsx } from '@emotion/react';
7
+ import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
8
+ var styles = css({
9
+ // Stretch the invisible link over the whole of the post.
10
+ // Hide the link’s text.
11
+ top: 0,
12
+ right: 0,
13
+ bottom: 0,
14
+ left: 0,
15
+ overflow: 'hidden',
16
+ textIndent: '100%',
17
+ whiteSpace: 'nowrap',
18
+ // Needs a heightened specificity to trump other anchor.
19
+ // Stack it under all other links in the post text.
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
21
+ 'a&.layered-link': {
22
+ position: 'absolute',
23
+ zIndex: 0
24
+ },
25
+ // When hovering over the layered link, any hidden action buttons inside
26
+ // the Container should become visible.
27
+ // As actions resides inside blocks and layered link is expected to be
28
+ // on the same level of blocks. That makes the blocks, e.g. TitleBlock,
29
+ // its sibling. Using general sibling combinator here to apply styling to
30
+ // all the siblings of layered link.
31
+ // The general sibling combinator (~) separates two selectors and matches all
32
+ // iterations of the second element, that are following the first element
33
+ // (though not necessarily immediately), and are children of the same parent
34
+ // element.
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
36
+ '&:hover ~ *': {
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
38
+ '.actions-button-group': {
39
+ opacity: 1
40
+ }
41
+ }
42
+ });
43
+
44
+ /**
45
+ * An anchor component to cover the entire container creating a clickable area.
46
+ * @internal
47
+ * @see `clickableContainer`
48
+ */
49
+ var LayeredLinkOld = function LayeredLinkOld(_ref) {
50
+ var onClick = _ref.onClick,
51
+ target = _ref.target,
52
+ testId = _ref.testId,
53
+ text = _ref.text,
54
+ url = _ref.url;
55
+ var onMouseDown = useMouseDownEvent();
56
+ return jsx("a", {
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
58
+ className: "layered-link",
59
+ css: styles,
60
+ "data-testid": "".concat(testId, "-layered-link"),
61
+ href: url,
62
+ onClick: onClick,
63
+ onMouseDown: onMouseDown,
64
+ target: target,
65
+ tabIndex: -1 // Hide tab index and let the title link be the link.
66
+ }, text);
67
+ };
68
+ export default LayeredLinkOld;
@@ -0,0 +1,11 @@
1
+ ._154iidpf{top:0}
2
+ ._18m915vq{overflow-y:hidden}
3
+ ._1ltvidpf{left:0}
4
+ ._1reo15vq{overflow-x:hidden}
5
+ ._1xi2idpf{right:0}
6
+ ._94n5idpf{bottom:0}
7
+ ._a52dkb7n:hover~* .actions-button-group{opacity:1}
8
+ ._azhw1osq{text-indent:100%}
9
+ ._o5721q9c{white-space:nowrap}
10
+ a._hboxstnw.layered-link{position:absolute}
11
+ a._obkmidpf.layered-link{z-index:0}
@@ -1,62 +1,27 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { css, jsx } from '@emotion/react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
8
- var styles = css({
9
- // Stretch the invisible link over the whole of the post.
10
- // Hide the link’s text.
11
- top: 0,
12
- right: 0,
13
- bottom: 0,
14
- left: 0,
15
- overflow: 'hidden',
16
- textIndent: '100%',
17
- whiteSpace: 'nowrap',
18
- // Needs a heightened specificity to trump other anchor.
19
- // Stack it under all other links in the post text.
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
21
- 'a&.layered-link': {
22
- position: 'absolute',
23
- zIndex: 0
24
- },
25
- // When hovering over the layered link, any hidden action buttons inside
26
- // the Container should become visible.
27
- // As actions resides inside blocks and layered link is expected to be
28
- // on the same level of blocks. That makes the blocks, e.g. TitleBlock,
29
- // its sibling. Using general sibling combinator here to apply styling to
30
- // all the siblings of layered link.
31
- // The general sibling combinator (~) separates two selectors and matches all
32
- // iterations of the second element, that are following the first element
33
- // (though not necessarily immediately), and are children of the same parent
34
- // element.
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
36
- '&:hover ~ *': {
37
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
38
- '.actions-button-group': {
39
- opacity: 1
40
- }
41
- }
42
- });
7
+ import LayeredLinkOld from './LayeredLinkOld';
8
+ var styles = null;
43
9
 
44
10
  /**
45
11
  * An anchor component to cover the entire container creating a clickable area.
46
12
  * @internal
47
13
  * @see `clickableContainer`
48
14
  */
49
- var LayeredLink = function LayeredLink(_ref) {
15
+ var LayeredLinkNew = function LayeredLinkNew(_ref) {
50
16
  var onClick = _ref.onClick,
51
17
  target = _ref.target,
52
18
  testId = _ref.testId,
53
19
  text = _ref.text,
54
20
  url = _ref.url;
55
21
  var onMouseDown = useMouseDownEvent();
56
- return jsx("a", {
22
+ return /*#__PURE__*/React.createElement("a", {
57
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
58
- className: "layered-link",
59
- css: styles,
24
+ className: ax(["_1reo15vq _18m915vq _154iidpf _1xi2idpf _94n5idpf _1ltvidpf _azhw1osq _o5721q9c _hboxstnw _obkmidpf _a52dkb7n", "layered-link"]),
60
25
  "data-testid": "".concat(testId, "-layered-link"),
61
26
  href: url,
62
27
  onClick: onClick,
@@ -65,4 +30,10 @@ var LayeredLink = function LayeredLink(_ref) {
65
30
  tabIndex: -1 // Hide tab index and let the title link be the link.
66
31
  }, text);
67
32
  };
33
+ var LayeredLink = function LayeredLink(props) {
34
+ if (fg('bandicoots-compiled-migration-smartcard')) {
35
+ return /*#__PURE__*/React.createElement(LayeredLinkNew, props);
36
+ }
37
+ return /*#__PURE__*/React.createElement(LayeredLinkOld, props);
38
+ };
68
39
  export default LayeredLink;
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "34.1.0",
16
+ packageVersion: "34.2.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  interface IFrameProps {
3
+ className?: string;
3
4
  childRef?: React.Ref<HTMLIFrameElement>;
4
5
  }
5
6
  /**
6
7
  * Iframe element isolated for DI purposes
7
8
  */
8
- export declare const IFrame: ({ childRef, ...props }: React.ComponentProps<'iframe'> & IFrameProps) => JSX.Element;
9
+ export declare const IFrame: ({ childRef, className, ...props }: React.ComponentProps<'iframe'> & IFrameProps) => JSX.Element;
9
10
  export {};
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type EmbedProps } from './types';
7
- declare const EmbedContent: ({ isTrusted, name, src, testId }: EmbedProps) => jsx.JSX.Element;
8
- export default EmbedContent;
3
+ declare const Exported: (props: EmbedProps) => JSX.Element;
4
+ export default Exported;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type EmbedProps } from './types';
7
+ declare const EmbedContent: ({ isTrusted, name, src, testId }: EmbedProps) => jsx.JSX.Element;
8
+ export default EmbedContent;
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import { type LinkInfoProps } from './types';
3
- declare const LinkInfo: ({ icon, providerName, onDownloadButtonClick, onResizeButtonClick, onViewButtonClick, size, testId, title, }: LinkInfoProps) => jsx.JSX.Element;
4
- export default LinkInfo;
3
+ declare const Exported: (props: LinkInfoProps) => JSX.Element;
4
+ export default Exported;
@@ -0,0 +1,4 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { type LinkInfoProps } from './types';
3
+ declare const LinkInfo: ({ icon, providerName, onDownloadButtonClick, onResizeButtonClick, onViewButtonClick, size, testId, title, }: LinkInfoProps) => jsx.JSX.Element;
4
+ export default LinkInfo;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type ImageIconProps } from './types';
7
- declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => jsx.JSX.Element;
3
+ declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => JSX.Element;
8
4
  export default ImageIcon;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type LoadingSkeletonProps } from './types';
7
+ declare const LoadingSkeletonOld: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
8
+ export default LoadingSkeletonOld;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type LoadingSkeletonProps } from './types';
7
- declare const LoadingSkeleton: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
3
+ declare const LoadingSkeleton: (props: LoadingSkeletonProps) => JSX.Element;
8
4
  export default LoadingSkeleton;
@@ -1,14 +1,14 @@
1
- import { jsx, type SerializedStyles } from '@emotion/react';
2
- import { SmartLinkSize } from '../../../../constants';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import { type FlexibleUiDataContext } from '../../../../state/flexible-ui-context/types';
3
7
  import { type ChildrenOptions, type ContainerProps } from './types';
4
- export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: boolean, hideElevation: boolean, hidePadding: boolean, clickableContainer: boolean, childrenOptions: ChildrenOptions) => SerializedStyles;
5
8
  /**
6
- * A container is a hidden component that build the Flexible Smart Link.
7
- * All the Flexible UI components are wrapped inside the container.
8
- * It inherits the ui props from Card component and applies the custom styling
9
- * accordingly.
10
- * @internal
11
- * @see Block
9
+ * Eventually these exports should be removed on FF clean up bandicoots-compiled-migration-smartcard
12
10
  */
13
- declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, size, status, testId, theme, }: ContainerProps) => jsx.JSX.Element;
11
+ export { getContainerStyles } from './indexOld';
12
+ export declare const getChildrenOptions: (children: React.ReactNode, context?: FlexibleUiDataContext) => ChildrenOptions;
13
+ declare const Container: (props: ContainerProps) => JSX.Element;
14
14
  export default Container;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import { jsx, type SerializedStyles } from '@emotion/react';
7
+ import { SmartLinkSize } from '../../../../constants';
8
+ import { type FlexibleUiDataContext } from '../../../../state/flexible-ui-context/types';
9
+ import { type ChildrenOptions, type ContainerProps } from './types';
10
+ /**
11
+ * @deprecated consider removing on FF bandicoots-compiled-migration-smartcard
12
+ */
13
+ export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: boolean, hideElevation: boolean, hidePadding: boolean, clickableContainer: boolean, childrenOptions: ChildrenOptions) => SerializedStyles;
14
+ export declare const getChildrenOptions: (children: React.ReactNode, context?: FlexibleUiDataContext) => ChildrenOptions;
15
+ /**
16
+ * A container is a hidden component that build the Flexible Smart Link.
17
+ * All the Flexible UI components are wrapped inside the container.
18
+ * It inherits the ui props from Card component and applies the custom styling
19
+ * accordingly.
20
+ * @internal
21
+ * @see Block
22
+ */
23
+ declare const ContainerOld: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, size, status, testId, theme, }: ContainerProps) => jsx.JSX.Element;
24
+ export default ContainerOld;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type LayeredLinkProps } from './types';
7
+ /**
8
+ * An anchor component to cover the entire container creating a clickable area.
9
+ * @internal
10
+ * @see `clickableContainer`
11
+ */
12
+ declare const LayeredLinkOld: ({ onClick, target, testId, text, url }: LayeredLinkProps) => jsx.JSX.Element;
13
+ export default LayeredLinkOld;
@@ -1,13 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type LayeredLinkProps } from './types';
7
- /**
8
- * An anchor component to cover the entire container creating a clickable area.
9
- * @internal
10
- * @see `clickableContainer`
11
- */
12
- declare const LayeredLink: ({ onClick, target, testId, text, url }: LayeredLinkProps) => jsx.JSX.Element;
3
+ declare const LayeredLink: (props: LayeredLinkProps) => JSX.Element;
13
4
  export default LayeredLink;
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
9
9
  * HoverCard border implementation is in ContentContainer where it can
10
10
  * change between the default border and prism border during runtime.
11
11
  */
12
- declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "shouldFitContainer" | "xcss" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default CustomPopupContainer;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  interface IFrameProps {
3
+ className?: string;
3
4
  childRef?: React.Ref<HTMLIFrameElement>;
4
5
  }
5
6
  /**
6
7
  * Iframe element isolated for DI purposes
7
8
  */
8
- export declare const IFrame: ({ childRef, ...props }: React.ComponentProps<'iframe'> & IFrameProps) => JSX.Element;
9
+ export declare const IFrame: ({ childRef, className, ...props }: React.ComponentProps<'iframe'> & IFrameProps) => JSX.Element;
9
10
  export {};
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type EmbedProps } from './types';
7
- declare const EmbedContent: ({ isTrusted, name, src, testId }: EmbedProps) => jsx.JSX.Element;
8
- export default EmbedContent;
3
+ declare const Exported: (props: EmbedProps) => JSX.Element;
4
+ export default Exported;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type EmbedProps } from './types';
7
+ declare const EmbedContent: ({ isTrusted, name, src, testId }: EmbedProps) => jsx.JSX.Element;
8
+ export default EmbedContent;
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import { type LinkInfoProps } from './types';
3
- declare const LinkInfo: ({ icon, providerName, onDownloadButtonClick, onResizeButtonClick, onViewButtonClick, size, testId, title, }: LinkInfoProps) => jsx.JSX.Element;
4
- export default LinkInfo;
3
+ declare const Exported: (props: LinkInfoProps) => JSX.Element;
4
+ export default Exported;
@@ -0,0 +1,4 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { type LinkInfoProps } from './types';
3
+ declare const LinkInfo: ({ icon, providerName, onDownloadButtonClick, onResizeButtonClick, onViewButtonClick, size, testId, title, }: LinkInfoProps) => jsx.JSX.Element;
4
+ export default LinkInfo;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type ImageIconProps } from './types';
7
- declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => jsx.JSX.Element;
3
+ declare const ImageIcon: ({ defaultIcon, testId, url, onError, onLoad }: ImageIconProps) => JSX.Element;
8
4
  export default ImageIcon;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type LoadingSkeletonProps } from './types';
7
+ declare const LoadingSkeletonOld: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
8
+ export default LoadingSkeletonOld;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type LoadingSkeletonProps } from './types';
7
- declare const LoadingSkeleton: ({ testId, width, height }: LoadingSkeletonProps) => jsx.JSX.Element;
3
+ declare const LoadingSkeleton: (props: LoadingSkeletonProps) => JSX.Element;
8
4
  export default LoadingSkeleton;
@@ -1,14 +1,14 @@
1
- import { jsx, type SerializedStyles } from '@emotion/react';
2
- import { SmartLinkSize } from '../../../../constants';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import { type FlexibleUiDataContext } from '../../../../state/flexible-ui-context/types';
3
7
  import { type ChildrenOptions, type ContainerProps } from './types';
4
- export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: boolean, hideElevation: boolean, hidePadding: boolean, clickableContainer: boolean, childrenOptions: ChildrenOptions) => SerializedStyles;
5
8
  /**
6
- * A container is a hidden component that build the Flexible Smart Link.
7
- * All the Flexible UI components are wrapped inside the container.
8
- * It inherits the ui props from Card component and applies the custom styling
9
- * accordingly.
10
- * @internal
11
- * @see Block
9
+ * Eventually these exports should be removed on FF clean up bandicoots-compiled-migration-smartcard
12
10
  */
13
- declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, size, status, testId, theme, }: ContainerProps) => jsx.JSX.Element;
11
+ export { getContainerStyles } from './indexOld';
12
+ export declare const getChildrenOptions: (children: React.ReactNode, context?: FlexibleUiDataContext) => ChildrenOptions;
13
+ declare const Container: (props: ContainerProps) => JSX.Element;
14
14
  export default Container;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import { jsx, type SerializedStyles } from '@emotion/react';
7
+ import { SmartLinkSize } from '../../../../constants';
8
+ import { type FlexibleUiDataContext } from '../../../../state/flexible-ui-context/types';
9
+ import { type ChildrenOptions, type ContainerProps } from './types';
10
+ /**
11
+ * @deprecated consider removing on FF bandicoots-compiled-migration-smartcard
12
+ */
13
+ export declare const getContainerStyles: (size: SmartLinkSize, hideBackground: boolean, hideElevation: boolean, hidePadding: boolean, clickableContainer: boolean, childrenOptions: ChildrenOptions) => SerializedStyles;
14
+ export declare const getChildrenOptions: (children: React.ReactNode, context?: FlexibleUiDataContext) => ChildrenOptions;
15
+ /**
16
+ * A container is a hidden component that build the Flexible Smart Link.
17
+ * All the Flexible UI components are wrapped inside the container.
18
+ * It inherits the ui props from Card component and applies the custom styling
19
+ * accordingly.
20
+ * @internal
21
+ * @see Block
22
+ */
23
+ declare const ContainerOld: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, size, status, testId, theme, }: ContainerProps) => jsx.JSX.Element;
24
+ export default ContainerOld;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type LayeredLinkProps } from './types';
7
+ /**
8
+ * An anchor component to cover the entire container creating a clickable area.
9
+ * @internal
10
+ * @see `clickableContainer`
11
+ */
12
+ declare const LayeredLinkOld: ({ onClick, target, testId, text, url }: LayeredLinkProps) => jsx.JSX.Element;
13
+ export default LayeredLinkOld;
@@ -1,13 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  import { type LayeredLinkProps } from './types';
7
- /**
8
- * An anchor component to cover the entire container creating a clickable area.
9
- * @internal
10
- * @see `clickableContainer`
11
- */
12
- declare const LayeredLink: ({ onClick, target, testId, text, url }: LayeredLinkProps) => jsx.JSX.Element;
3
+ declare const LayeredLink: (props: LayeredLinkProps) => JSX.Element;
13
4
  export default LayeredLink;
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
9
9
  * HoverCard border implementation is in ContentContainer where it can
10
10
  * change between the default border and prism border during runtime.
11
11
  */
12
- declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "shouldFitContainer" | "xcss" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default CustomPopupContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "34.1.0",
3
+ "version": "34.2.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"