@atlaskit/smart-card 27.0.0 → 27.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.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/extractors/flexible/extract-state.js +1 -2
- package/dist/cjs/messages.js +17 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/ActionIcon.js +22 -14
- package/dist/cjs/view/BlockCard/components/Content.js +3 -1
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +3 -1
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +3 -1
- package/dist/cjs/view/BlockCard/components/Frame.js +6 -2
- package/dist/cjs/view/BlockCard/components/Link.js +3 -1
- package/dist/cjs/view/BlockCard/components/Name.js +3 -1
- package/dist/cjs/view/BlockCard/components/Provider.js +1 -0
- package/dist/cjs/view/BlockCard/views/ErroredView.js +3 -1
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +6 -2
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +3 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +6 -2
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +3 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +41 -29
- package/dist/cjs/view/EmbedCard/components/ImageIcon.js +3 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +11 -8
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +25 -57
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -20
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -7
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +6 -8
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +9 -10
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -6
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +2 -0
- package/dist/cjs/view/InlineCard/Frame/index.js +3 -1
- package/dist/cjs/view/InlineCard/Icon.js +3 -1
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +23 -13
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +3 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +56 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +41 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +31 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolved/types.js +1 -0
- package/dist/cjs/view/common/Byline.js +3 -1
- package/dist/cjs/view/common/Icon.js +3 -1
- package/dist/cjs/view/common/MetadataList.js +3 -1
- package/dist/es2019/extractors/flexible/extract-state.js +1 -2
- package/dist/es2019/messages.js +17 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/ActionIcon.js +22 -14
- package/dist/es2019/view/BlockCard/components/Content.js +3 -1
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +3 -1
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +3 -1
- package/dist/es2019/view/BlockCard/components/Frame.js +6 -2
- package/dist/es2019/view/BlockCard/components/Link.js +3 -1
- package/dist/es2019/view/BlockCard/components/Name.js +3 -1
- package/dist/es2019/view/BlockCard/components/Provider.js +1 -0
- package/dist/es2019/view/BlockCard/views/ErroredView.js +3 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +6 -2
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +3 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +6 -2
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +3 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +14 -4
- package/dist/es2019/view/EmbedCard/components/ImageIcon.js +3 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +11 -8
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +6 -34
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +5 -7
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +7 -8
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -8
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +2 -0
- package/dist/es2019/view/InlineCard/Frame/index.js +3 -1
- package/dist/es2019/view/InlineCard/Icon.js +3 -1
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +23 -13
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +3 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +50 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +33 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +23 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolved/types.js +0 -0
- package/dist/es2019/view/common/Byline.js +3 -1
- package/dist/es2019/view/common/Icon.js +3 -1
- package/dist/es2019/view/common/MetadataList.js +3 -1
- package/dist/esm/extractors/flexible/extract-state.js +1 -2
- package/dist/esm/messages.js +17 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/ActionIcon.js +22 -14
- package/dist/esm/view/BlockCard/components/Content.js +3 -1
- package/dist/esm/view/BlockCard/components/ContentFooter.js +3 -1
- package/dist/esm/view/BlockCard/components/ContentHeader.js +3 -1
- package/dist/esm/view/BlockCard/components/Frame.js +6 -2
- package/dist/esm/view/BlockCard/components/Link.js +3 -1
- package/dist/esm/view/BlockCard/components/Name.js +3 -1
- package/dist/esm/view/BlockCard/components/Provider.js +1 -0
- package/dist/esm/view/BlockCard/views/ErroredView.js +3 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +6 -2
- package/dist/esm/view/BlockCard/views/NotFoundView.js +3 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +6 -2
- package/dist/esm/view/BlockCard/views/ResolvingView.js +3 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
- package/dist/esm/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +41 -29
- package/dist/esm/view/EmbedCard/components/ImageIcon.js +3 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +11 -8
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +24 -57
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +6 -8
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +9 -10
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -6
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
- package/dist/esm/view/HoverCard/components/ContentContainer.js +2 -0
- package/dist/esm/view/InlineCard/Frame/index.js +3 -1
- package/dist/esm/view/InlineCard/Icon.js +3 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +23 -13
- package/dist/esm/view/InlineCard/ResolvedView/index.js +3 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +49 -0
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +34 -0
- package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +24 -0
- package/dist/esm/view/RelatedLinksModal/views/resolved/types.js +0 -0
- package/dist/esm/view/common/Byline.js +3 -1
- package/dist/esm/view/common/Icon.js +3 -1
- package/dist/esm/view/common/MetadataList.js +3 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +7 -5
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +3 -8
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.d.ts +1 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +3 -5
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.d.ts +5 -6
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -3
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -3
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +5 -4
- package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +5 -0
- package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +5 -0
- package/dist/types/view/RelatedLinksModal/components/types.d.ts +16 -0
- package/dist/types/view/RelatedLinksModal/views/resolved/index.d.ts +5 -0
- package/dist/types/view/RelatedLinksModal/views/resolved/types.d.ts +4 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +7 -5
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +3 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.d.ts +1 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +3 -5
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.d.ts +5 -6
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -3
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +5 -4
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +5 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +5 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/types.d.ts +16 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/index.d.ts +5 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/types.d.ts +4 -0
- package/package.json +3 -6
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -138
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -51
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -131
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.d.ts +0 -3
- package/dist/types/view/RelatedLinksModal/types.d.ts +0 -6
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.d.ts +0 -3
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +0 -6
- /package/dist/cjs/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
- /package/dist/es2019/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
- /package/dist/esm/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
5
|
+
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
6
|
+
import RelatedLinkItem from '../related-link-item';
|
|
7
|
+
import { messages } from '../../../../messages';
|
|
8
|
+
const RelatedLinksList = ({
|
|
9
|
+
urls,
|
|
10
|
+
title,
|
|
11
|
+
testId
|
|
12
|
+
}) => {
|
|
13
|
+
return jsx(Stack, {
|
|
14
|
+
testId: testId
|
|
15
|
+
}, jsx(Box, {
|
|
16
|
+
paddingBlockStart: "space.050",
|
|
17
|
+
xcss: xcss({
|
|
18
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
19
|
+
textTransform: 'uppercase'
|
|
20
|
+
})
|
|
21
|
+
}, jsx(FormattedMessage, title)), urls.length > 0 && jsx(Box, null, urls.map((url, idx) => jsx(Stack, {
|
|
22
|
+
key: `${idx}-${url}`
|
|
23
|
+
}, jsx(RelatedLinkItem, {
|
|
24
|
+
url: url,
|
|
25
|
+
testId: `${testId}-item-${idx}`
|
|
26
|
+
})))), urls.length === 0 && jsx(Box, {
|
|
27
|
+
paddingBlock: "space.100",
|
|
28
|
+
xcss: xcss({
|
|
29
|
+
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
30
|
+
})
|
|
31
|
+
}, jsx(FormattedMessage, messages.related_links_not_found)));
|
|
32
|
+
};
|
|
33
|
+
export default RelatedLinksList;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { messages } from '../../../../messages';
|
|
5
|
+
import RelatedLinksList from '../../components/related-links-list';
|
|
6
|
+
import { Stack } from '@atlaskit/primitives';
|
|
7
|
+
const RelatedLinksResolvedView = ({
|
|
8
|
+
incomingLinks = [],
|
|
9
|
+
outgoingLinks = []
|
|
10
|
+
}) => {
|
|
11
|
+
return jsx(Stack, {
|
|
12
|
+
space: "space.150"
|
|
13
|
+
}, jsx(RelatedLinksList, {
|
|
14
|
+
urls: incomingLinks,
|
|
15
|
+
title: messages.related_links_found_in,
|
|
16
|
+
testId: "incoming-related-links-list"
|
|
17
|
+
}), jsx(RelatedLinksList, {
|
|
18
|
+
urls: outgoingLinks,
|
|
19
|
+
title: messages.related_links_includes_links_to,
|
|
20
|
+
testId: "outgoing-related-links-list"
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
export default RelatedLinksResolvedView;
|
|
File without changes
|
|
@@ -29,6 +29,8 @@ export const Byline = ({
|
|
|
29
29
|
// due to HTML its unwrapping behaviour on paste.
|
|
30
30
|
MozUserSelect: 'none'
|
|
31
31
|
}),
|
|
32
|
-
"data-testid": testId
|
|
32
|
+
"data-testid": testId
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
34
|
+
,
|
|
33
35
|
className: className
|
|
34
36
|
}, text || children);
|
|
@@ -55,7 +55,9 @@ export const Icon = ({
|
|
|
55
55
|
});
|
|
56
56
|
return jsx("span", {
|
|
57
57
|
css: getSpanStyles(isFlexibleUi),
|
|
58
|
-
"data-testid": testId
|
|
58
|
+
"data-testid": testId
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
|
+
,
|
|
59
61
|
className: blockCardIconImageClassName
|
|
60
62
|
}, icon || image || placeholder);
|
|
61
63
|
};
|
|
@@ -18,7 +18,9 @@ export const MetadataList = ({
|
|
|
18
18
|
marginRight: '0px'
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"data-testid": testId
|
|
21
|
+
"data-testid": testId
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
23
|
+
,
|
|
22
24
|
className: metadataListClassName
|
|
23
25
|
}, items.map(item => jsx(Metadata, _extends({
|
|
24
26
|
key: item.text
|
|
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { extractLozenge } from '../common/lozenge';
|
|
5
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { getExtensionKey } from '../../state/helpers';
|
|
7
6
|
import extractServerAction from './extract-server-action';
|
|
8
7
|
import { extractLink } from '@atlaskit/link-extractors';
|
|
@@ -58,7 +57,7 @@ var extractState = function extractState(response, actionOptions, id) {
|
|
|
58
57
|
if (!lozenge) {
|
|
59
58
|
return;
|
|
60
59
|
}
|
|
61
|
-
if (!canShowAction(CardAction.ChangeStatusAction, actionOptions)
|
|
60
|
+
if (!canShowAction(CardAction.ChangeStatusAction, actionOptions)) {
|
|
62
61
|
return lozenge;
|
|
63
62
|
}
|
|
64
63
|
var action = extractAction(response, id);
|
package/dist/esm/messages.js
CHANGED
|
@@ -700,8 +700,8 @@ export var messages = defineMessages({
|
|
|
700
700
|
defaultMessage: 'An error occurred',
|
|
701
701
|
description: 'A generic error message to the user'
|
|
702
702
|
},
|
|
703
|
-
|
|
704
|
-
id: 'fabric.linking.related_links_modal_title
|
|
703
|
+
related_links_modal_title: {
|
|
704
|
+
id: 'fabric.linking.related_links_modal_title',
|
|
705
705
|
defaultMessage: 'Recent Links',
|
|
706
706
|
description: 'Shown as the title for the related links modal'
|
|
707
707
|
},
|
|
@@ -709,5 +709,20 @@ export var messages = defineMessages({
|
|
|
709
709
|
id: 'fabric.linking.related_links_view_related_urls.nonfinal',
|
|
710
710
|
defaultMessage: 'View recent links...',
|
|
711
711
|
description: 'Action to view related links to the given resource'
|
|
712
|
+
},
|
|
713
|
+
related_links_found_in: {
|
|
714
|
+
id: 'fabric.linking.related_links_found_in',
|
|
715
|
+
defaultMessage: 'Found In',
|
|
716
|
+
description: 'Informs the user of the resources are found in the given url'
|
|
717
|
+
},
|
|
718
|
+
related_links_not_found: {
|
|
719
|
+
id: 'fabric.linking.related_links_not_found',
|
|
720
|
+
defaultMessage: 'We didn\'t find any links to show here.',
|
|
721
|
+
description: 'Informs the user that there are no related resources for the given url'
|
|
722
|
+
},
|
|
723
|
+
related_links_includes_links_to: {
|
|
724
|
+
id: 'fabric.linking.related_links_includes_links_to',
|
|
725
|
+
defaultMessage: 'Includes Links To',
|
|
726
|
+
description: 'Informs the user of the resources the url links to'
|
|
712
727
|
}
|
|
713
728
|
});
|
|
@@ -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: "27.
|
|
18
|
+
packageVersion: "27.2.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -21,20 +21,28 @@ export var ActionIcon = function ActionIcon(_ref) {
|
|
|
21
21
|
case 'loading':
|
|
22
22
|
return null;
|
|
23
23
|
case 'success':
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
style
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
return (
|
|
25
|
+
/*#__PURE__*/
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
|
+
React.createElement("div", {
|
|
28
|
+
"data-testid": "check-icon",
|
|
29
|
+
style: spinnerStyles
|
|
30
|
+
}, /*#__PURE__*/React.createElement(CheckIcon, {
|
|
31
|
+
size: "small",
|
|
32
|
+
label: "check"
|
|
33
|
+
}))
|
|
34
|
+
);
|
|
31
35
|
case 'failure':
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
style
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
return (
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
|
+
React.createElement("div", {
|
|
40
|
+
"data-testid": "cross-icon",
|
|
41
|
+
style: spinnerStyles
|
|
42
|
+
}, /*#__PURE__*/React.createElement(CrossIcon, {
|
|
43
|
+
size: "small",
|
|
44
|
+
label: "check"
|
|
45
|
+
}))
|
|
46
|
+
);
|
|
39
47
|
}
|
|
40
48
|
};
|
|
@@ -21,7 +21,9 @@ export var Content = function Content(_ref) {
|
|
|
21
21
|
justifyContent: isCompact ? 'unset' : ['unset', 'space-between'],
|
|
22
22
|
flexGrow: 1
|
|
23
23
|
}),
|
|
24
|
-
"data-trello-do-not-use-override": "block-card-content"
|
|
24
|
+
"data-trello-do-not-use-override": "block-card-content"
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
26
|
+
,
|
|
25
27
|
className: blockCardContentClassName
|
|
26
28
|
}, children);
|
|
27
29
|
};
|
|
@@ -15,7 +15,9 @@ export var ContentFooter = function ContentFooter(_ref) {
|
|
|
15
15
|
alignItems: ['unset', 'center'],
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
17
17
|
marginTop: [gs(1), gs(1.5)]
|
|
18
|
-
})
|
|
18
|
+
})
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
20
|
+
,
|
|
19
21
|
className: contentFooterClassName
|
|
20
22
|
}, children);
|
|
21
23
|
};
|
|
@@ -25,7 +25,9 @@ export var ContentHeader = function ContentHeader(_ref) {
|
|
|
25
25
|
// due to HTML its unwrapping behaviour on paste.
|
|
26
26
|
MozUserSelect: 'none'
|
|
27
27
|
},
|
|
28
|
-
"data-trello-do-not-use-override": "block-card-content-header"
|
|
28
|
+
"data-trello-do-not-use-override": "block-card-content-header"
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
|
+
,
|
|
29
31
|
className: blockCardContentHeaderClassName
|
|
30
32
|
}, children);
|
|
31
33
|
};
|
|
@@ -41,7 +41,9 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
41
41
|
overflow: 'hidden',
|
|
42
42
|
boxShadow: "var(--ds-shadow-raised, ".concat("0 1px 1px ".concat(N50A, ", 0 0 1px 1px ").concat(N40A), ")")
|
|
43
43
|
})),
|
|
44
|
-
"data-testid": testId
|
|
44
|
+
"data-testid": testId
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
46
|
+
,
|
|
45
47
|
className: className,
|
|
46
48
|
"data-trello-do-not-use-override": testId
|
|
47
49
|
}, children);
|
|
@@ -68,7 +70,9 @@ export var CompactFrame = function CompactFrame(_ref2) {
|
|
|
68
70
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
69
71
|
padding: ["0px ".concat(gs(1)), '0']
|
|
70
72
|
})),
|
|
71
|
-
"data-testid": testId
|
|
73
|
+
"data-testid": testId
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
|
+
,
|
|
72
76
|
className: className
|
|
73
77
|
}, children);
|
|
74
78
|
};
|
|
@@ -7,7 +7,9 @@ export var Link = function Link(_ref) {
|
|
|
7
7
|
testId = _ref$testId === void 0 ? 'block-card' : _ref$testId,
|
|
8
8
|
className = _ref.className;
|
|
9
9
|
return jsx("span", {
|
|
10
|
-
"data-testid": "".concat(testId, "-link")
|
|
10
|
+
"data-testid": "".concat(testId, "-link")
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
12
|
+
,
|
|
11
13
|
className: className,
|
|
12
14
|
css: {
|
|
13
15
|
color: "var(--ds-link, ".concat(B400, ")"),
|
|
@@ -34,7 +34,9 @@ export var Name = function Name(_ref) {
|
|
|
34
34
|
maxHeight: gs(6)
|
|
35
35
|
},
|
|
36
36
|
"data-testid": testId,
|
|
37
|
-
"data-trello-do-not-use-override": "block-card-content-header-name"
|
|
37
|
+
"data-trello-do-not-use-override": "block-card-content-header-name"
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
|
+
,
|
|
38
40
|
className: blockCardContentHeaderNameClassName
|
|
39
41
|
}, name);
|
|
40
42
|
};
|
|
@@ -8,6 +8,7 @@ export var Provider = function Provider(_ref) {
|
|
|
8
8
|
var iconToRender = icon || null;
|
|
9
9
|
if (typeof icon === 'string') {
|
|
10
10
|
iconToRender = jsx("img", {
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
11
12
|
className: "smart-link-icon",
|
|
12
13
|
css: {
|
|
13
14
|
height: gs(1.5),
|
|
@@ -46,7 +46,9 @@ export var ErroredView = function ErroredView(_ref) {
|
|
|
46
46
|
}, [onRetry]);
|
|
47
47
|
return jsx(Frame, {
|
|
48
48
|
isSelected: isSelected,
|
|
49
|
-
testId: testId
|
|
49
|
+
testId: testId
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
51
|
+
,
|
|
50
52
|
className: blockCardErroredViewClassName,
|
|
51
53
|
isFluidHeight: true,
|
|
52
54
|
inheritDimensions: inheritDimensions
|
|
@@ -61,7 +61,9 @@ export var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
61
61
|
var items = action !== undefined && !(buttonDisabled !== null && buttonDisabled !== void 0 ? buttonDisabled : false) ? [].concat(_toConsumableArray(actions), [action]) : actions;
|
|
62
62
|
return jsx(Frame, {
|
|
63
63
|
isSelected: isSelected,
|
|
64
|
-
testId: testId
|
|
64
|
+
testId: testId
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
66
|
+
,
|
|
65
67
|
className: blockCardForbiddenViewClassName,
|
|
66
68
|
isFluidHeight: true
|
|
67
69
|
}, jsx(Content, {
|
|
@@ -71,7 +73,9 @@ export var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
71
73
|
link: link
|
|
72
74
|
}, jsx(Link, {
|
|
73
75
|
url: link,
|
|
74
|
-
testId: testId
|
|
76
|
+
testId: testId
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
78
|
+
,
|
|
75
79
|
className: blockCardForbiddenViewLinkClassName
|
|
76
80
|
})), jsx(Byline, null, jsx(UnresolvedText, {
|
|
77
81
|
icon: jsx(LockIcon, {
|
|
@@ -43,7 +43,9 @@ export var NotFoundView = function NotFoundView(_ref) {
|
|
|
43
43
|
};
|
|
44
44
|
return jsx(Frame, {
|
|
45
45
|
isSelected: isSelected,
|
|
46
|
-
testId: testId
|
|
46
|
+
testId: testId
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
48
|
+
,
|
|
47
49
|
className: blockCardNotFoundViewClassName,
|
|
48
50
|
isFluidHeight: true
|
|
49
51
|
}, jsx(Content, {
|
|
@@ -75,7 +75,9 @@ export var ResolvedView = function ResolvedView(_ref) {
|
|
|
75
75
|
items: details
|
|
76
76
|
}) : undefined;
|
|
77
77
|
var resolvedByline = jsx(Byline, {
|
|
78
|
-
testId: testId ? "".concat(testId, "-by") : undefined
|
|
78
|
+
testId: testId ? "".concat(testId, "-by") : undefined
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
80
|
+
,
|
|
79
81
|
className: blockCardResolvedViewByClassName
|
|
80
82
|
}, byline);
|
|
81
83
|
var handleClick = function handleClick(event) {
|
|
@@ -84,7 +86,9 @@ export var ResolvedView = function ResolvedView(_ref) {
|
|
|
84
86
|
var hasActions = actions.length > 0;
|
|
85
87
|
return jsx(Frame, {
|
|
86
88
|
isSelected: isSelected,
|
|
87
|
-
testId: testId
|
|
89
|
+
testId: testId
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
91
|
+
,
|
|
88
92
|
className: blockCardResolvedViewClassName
|
|
89
93
|
}, jsx(Content, null, jsx("div", null, jsx("div", {
|
|
90
94
|
css: styles
|
|
@@ -24,7 +24,9 @@ export var ResolvingView = function ResolvingView(_ref) {
|
|
|
24
24
|
inheritDimensions: inheritDimensions,
|
|
25
25
|
compact: true,
|
|
26
26
|
isSelected: isSelected,
|
|
27
|
-
testId: testId
|
|
27
|
+
testId: testId
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
29
|
+
,
|
|
28
30
|
className: blockCardResolvingViewClassName
|
|
29
31
|
}, jsx(DocumentFilledIcon, {
|
|
30
32
|
size: "small",
|
|
@@ -49,6 +49,8 @@ export function LazyIntersectionObserverCard(props) {
|
|
|
49
49
|
var content = isIntersecting ? /*#__PURE__*/React.createElement(CardWithUrlContent, props) : /*#__PURE__*/React.createElement(ComponentObserver, {
|
|
50
50
|
ref: ref
|
|
51
51
|
}, /*#__PURE__*/React.createElement(LoadingCardLink, props));
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
52
54
|
return /*#__PURE__*/React.createElement(Component, {
|
|
53
55
|
className: "loader-wrapper"
|
|
54
56
|
}, content);
|
|
@@ -14,7 +14,9 @@ export function LazyLazilyRenderCard(props) {
|
|
|
14
14
|
});
|
|
15
15
|
return /*#__PURE__*/React.createElement(LazilyRender, {
|
|
16
16
|
offset: offset,
|
|
17
|
-
component: appearance === 'inline' ? 'span' : 'div'
|
|
17
|
+
component: appearance === 'inline' ? 'span' : 'div'
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
18
20
|
className: "loader-wrapper",
|
|
19
21
|
placeholder: /*#__PURE__*/React.createElement(LoadingCardLink, props),
|
|
20
22
|
scrollContainer: container,
|
|
@@ -10,7 +10,9 @@ export var LoadingCardLink = function LoadingCardLink(_ref) {
|
|
|
10
10
|
testId: 'lazy-render-placeholder',
|
|
11
11
|
"data-trello-do-not-use-override": "lazy-render-placeholder-trello",
|
|
12
12
|
isSelected: isSelected,
|
|
13
|
-
link: url
|
|
13
|
+
link: url
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
15
|
+
,
|
|
14
16
|
className: loadingPlaceholderClassName,
|
|
15
17
|
placeholder: placeholder
|
|
16
18
|
});
|
|
@@ -31,35 +31,43 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
31
31
|
var handleMouseDown = useMouseDownEvent();
|
|
32
32
|
var isFixEmbedCardBlurEnabled = getBooleanFF('platform.linking-platform.smart-card.fix-embed-card-blurring') ? true : false;
|
|
33
33
|
var renderHeaderOld = function renderHeaderOld() {
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
return (
|
|
35
|
+
/*#__PURE__*/
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
37
|
+
React.createElement(Header, {
|
|
38
|
+
className: "embed-header",
|
|
39
|
+
frameStyle: frameStyle
|
|
40
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, {
|
|
41
|
+
isPlaceholder: isPlaceholder
|
|
42
|
+
}, !isPlaceholder && icon), /*#__PURE__*/React.createElement(TextWrapper, {
|
|
43
|
+
isPlaceholder: isPlaceholder
|
|
44
|
+
}, !isPlaceholder && /*#__PURE__*/React.createElement("a", {
|
|
45
|
+
href: href,
|
|
46
|
+
onClick: handleClick,
|
|
47
|
+
onMouseDown: handleMouseDown
|
|
48
|
+
}, text)))
|
|
49
|
+
);
|
|
46
50
|
};
|
|
47
51
|
var renderHeader = function renderHeader() {
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
return (
|
|
53
|
+
/*#__PURE__*/
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
55
|
+
React.createElement(Header, {
|
|
56
|
+
className: "embed-header",
|
|
57
|
+
frameStyle: frameStyle
|
|
58
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, {
|
|
59
|
+
isPlaceholder: isPlaceholder
|
|
60
|
+
}, !isPlaceholder && icon), /*#__PURE__*/React.createElement(TooltipWrapper, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
61
|
+
content: text,
|
|
62
|
+
hideTooltipOnMouseDown: true
|
|
63
|
+
}, /*#__PURE__*/React.createElement(TextWrapper, {
|
|
64
|
+
isPlaceholder: isPlaceholder
|
|
65
|
+
}, !isPlaceholder && /*#__PURE__*/React.createElement("a", {
|
|
66
|
+
href: href,
|
|
67
|
+
onClick: handleClick,
|
|
68
|
+
onMouseDown: handleMouseDown
|
|
69
|
+
}, text)))))
|
|
70
|
+
);
|
|
63
71
|
};
|
|
64
72
|
var renderContent = function renderContent() {
|
|
65
73
|
return /*#__PURE__*/React.createElement(Content, {
|
|
@@ -71,7 +79,9 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
71
79
|
}, children);
|
|
72
80
|
};
|
|
73
81
|
if (!isPlaceholder && href) {
|
|
74
|
-
return /*#__PURE__*/React.createElement(LinkWrapper
|
|
82
|
+
return /*#__PURE__*/React.createElement(LinkWrapper
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
84
|
+
, {
|
|
75
85
|
className: className,
|
|
76
86
|
isInteractive: isInteractive(),
|
|
77
87
|
isSelected: isSelected,
|
|
@@ -86,7 +96,9 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
86
96
|
inheritDimensions: inheritDimensions
|
|
87
97
|
}, getBooleanFF('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
|
|
88
98
|
} else {
|
|
89
|
-
return /*#__PURE__*/React.createElement(Wrapper
|
|
99
|
+
return /*#__PURE__*/React.createElement(Wrapper
|
|
100
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
101
|
+
, {
|
|
90
102
|
className: className,
|
|
91
103
|
isInteractive: isInteractive(),
|
|
92
104
|
isSelected: isSelected,
|
|
@@ -16,7 +16,9 @@ export var ImageIcon = function ImageIcon(_ref) {
|
|
|
16
16
|
return /*#__PURE__*/React.createElement(ImageLoader, {
|
|
17
17
|
src: src,
|
|
18
18
|
loading: defaultIcon,
|
|
19
|
-
loaded: /*#__PURE__*/React.createElement(Image
|
|
19
|
+
loaded: /*#__PURE__*/React.createElement(Image
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
21
|
+
, {
|
|
20
22
|
className: "smart-link-icon",
|
|
21
23
|
src: src,
|
|
22
24
|
alt: alt,
|
|
@@ -57,14 +57,17 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
57
57
|
}) : jsx(VidFullScreenOnIcon, {
|
|
58
58
|
label: message.defaultMessage
|
|
59
59
|
});
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
return (
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
62
|
+
jsx("span", {
|
|
63
|
+
className: "smart-link-resize-button"
|
|
64
|
+
}, jsx(LinkInfoButton, {
|
|
65
|
+
content: jsx(FormattedMessage, message),
|
|
66
|
+
icon: icon,
|
|
67
|
+
onClick: onResizeButtonClick,
|
|
68
|
+
testId: "".concat(testId, "-resize")
|
|
69
|
+
}))
|
|
70
|
+
);
|
|
68
71
|
}, [onResizeButtonClick, size, testId]);
|
|
69
72
|
return jsx("div", {
|
|
70
73
|
css: containerStyles
|