@atlaskit/smart-card 27.5.4 → 27.6.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 +12 -0
- package/compass.yml +0 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/Action.js +5 -3
- package/dist/cjs/view/BlockCard/components/ActionList.js +7 -5
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/cjs/view/BlockCard/components/Content.js +2 -1
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +8 -7
- package/dist/cjs/view/BlockCard/components/Emoji.js +11 -8
- package/dist/cjs/view/BlockCard/components/Frame.js +7 -1
- package/dist/cjs/view/BlockCard/components/Link.js +5 -4
- package/dist/cjs/view/BlockCard/components/Name.js +22 -16
- package/dist/cjs/view/BlockCard/components/Provider.js +25 -19
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +7 -4
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +5 -4
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +7 -6
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/cjs/view/BlockCard/views/styled.js +2 -1
- package/dist/cjs/view/EmbedCard/components/Frame.js +11 -10
- package/dist/cjs/view/EmbedCard/components/styled.js +47 -24
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +16 -14
- package/dist/cjs/view/EmbedCard/views/unresolved-view/styled.js +10 -0
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +30 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +22 -13
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +10 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +12 -0
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +31 -28
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +7 -0
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/cjs/view/HoverCard/styled.js +16 -7
- package/dist/cjs/view/InlineCard/Frame/styled.js +2 -2
- package/dist/cjs/view/InlineCard/Icon.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/cjs/view/InlineCard/styled.js +7 -4
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/index.js +20 -0
- package/dist/cjs/view/RelatedLinksModal/types.js +1 -0
- package/dist/cjs/view/common/Byline.js +5 -1
- package/dist/cjs/view/common/Icon.js +8 -1
- package/dist/cjs/view/common/Metadata.js +18 -15
- package/dist/cjs/view/common/MetadataList.js +11 -9
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/cjs/view/common/ai-prism/index.js +4 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +6 -4
- package/dist/es2019/view/BlockCard/components/ActionList.js +8 -6
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/es2019/view/BlockCard/components/Content.js +2 -1
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +9 -8
- package/dist/es2019/view/BlockCard/components/Emoji.js +12 -9
- package/dist/es2019/view/BlockCard/components/Frame.js +7 -1
- package/dist/es2019/view/BlockCard/components/Link.js +6 -5
- package/dist/es2019/view/BlockCard/components/Name.js +33 -25
- package/dist/es2019/view/BlockCard/components/Provider.js +26 -20
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +8 -5
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +6 -5
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +8 -7
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/es2019/view/BlockCard/views/styled.js +2 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +12 -11
- package/dist/es2019/view/EmbedCard/components/styled.js +47 -22
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +17 -15
- package/dist/es2019/view/EmbedCard/views/unresolved-view/styled.js +11 -0
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +20 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +11 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +12 -0
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +29 -26
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +8 -0
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/es2019/view/HoverCard/styled.js +11 -3
- package/dist/es2019/view/InlineCard/Frame/styled.js +5 -2
- package/dist/es2019/view/InlineCard/Icon.js +2 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/es2019/view/InlineCard/styled.js +7 -4
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +2 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/index.js +14 -0
- package/dist/es2019/view/RelatedLinksModal/types.js +0 -0
- package/dist/es2019/view/common/Byline.js +5 -1
- package/dist/es2019/view/common/Icon.js +8 -1
- package/dist/es2019/view/common/Metadata.js +19 -16
- package/dist/es2019/view/common/MetadataList.js +12 -10
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/es2019/view/common/ai-prism/index.js +4 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +6 -4
- package/dist/esm/view/BlockCard/components/ActionList.js +8 -6
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/esm/view/BlockCard/components/Content.js +2 -1
- package/dist/esm/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/esm/view/BlockCard/components/ContentHeader.js +9 -8
- package/dist/esm/view/BlockCard/components/Emoji.js +12 -9
- package/dist/esm/view/BlockCard/components/Frame.js +7 -1
- package/dist/esm/view/BlockCard/components/Link.js +6 -5
- package/dist/esm/view/BlockCard/components/Name.js +23 -17
- package/dist/esm/view/BlockCard/components/Provider.js +26 -20
- package/dist/esm/view/BlockCard/components/Thumbnail.js +8 -5
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +6 -5
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/esm/view/BlockCard/views/ResolvingView.js +8 -7
- package/dist/esm/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/esm/view/BlockCard/views/styled.js +2 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +12 -11
- package/dist/esm/view/EmbedCard/components/styled.js +47 -24
- package/dist/esm/view/EmbedCard/views/ErroredView.js +17 -15
- package/dist/esm/view/EmbedCard/views/unresolved-view/styled.js +11 -0
- package/dist/esm/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +25 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +22 -13
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +11 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +12 -0
- package/dist/esm/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +31 -28
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +8 -0
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/esm/view/HoverCard/styled.js +16 -7
- package/dist/esm/view/InlineCard/Frame/styled.js +2 -2
- package/dist/esm/view/InlineCard/Icon.js +2 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/esm/view/InlineCard/styled.js +7 -4
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +2 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/index.js +13 -0
- package/dist/esm/view/RelatedLinksModal/types.js +0 -0
- package/dist/esm/view/common/Byline.js +5 -1
- package/dist/esm/view/common/Icon.js +8 -1
- package/dist/esm/view/common/Metadata.js +19 -16
- package/dist/esm/view/common/MetadataList.js +12 -10
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/esm/view/common/ai-prism/index.js +4 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types/view/RelatedLinksModal/types.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +5 -0
- package/package.json +183 -191
|
@@ -38,11 +38,17 @@ var getFormattedMessageAsString = exports.getFormattedMessageAsString = function
|
|
|
38
38
|
};
|
|
39
39
|
var getIconDimensionStyles = function getIconDimensionStyles(value) {
|
|
40
40
|
return (0, _react2.css)({
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
42
|
height: value,
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
44
|
minHeight: value,
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
46
|
maxHeight: value,
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
48
|
width: value,
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
50
|
minWidth: value,
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
52
|
maxWidth: value
|
|
47
53
|
});
|
|
48
54
|
};
|
|
@@ -94,6 +100,7 @@ var getLinkSizeStyles = exports.getLinkSizeStyles = function getLinkSizeStyles(s
|
|
|
94
100
|
fontSize: '1.25rem',
|
|
95
101
|
fontWeight: 400,
|
|
96
102
|
letterSpacing: '-0.008em',
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
97
104
|
lineHeight: getLinkLineHeight(size)
|
|
98
105
|
});
|
|
99
106
|
case _constants.SmartLinkSize.Large:
|
|
@@ -102,6 +109,7 @@ var getLinkSizeStyles = exports.getLinkSizeStyles = function getLinkSizeStyles(s
|
|
|
102
109
|
fontSize: '0.875rem',
|
|
103
110
|
fontWeight: 400,
|
|
104
111
|
letterSpacing: '-0.003em',
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
105
113
|
lineHeight: getLinkLineHeight(size)
|
|
106
114
|
});
|
|
107
115
|
case _constants.SmartLinkSize.Small:
|
|
@@ -110,6 +118,7 @@ var getLinkSizeStyles = exports.getLinkSizeStyles = function getLinkSizeStyles(s
|
|
|
110
118
|
fontSize: '0.75rem',
|
|
111
119
|
fontWeight: 400,
|
|
112
120
|
letterSpacing: '0em',
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
113
122
|
lineHeight: getLinkLineHeight(size)
|
|
114
123
|
});
|
|
115
124
|
}
|
|
@@ -179,10 +188,13 @@ var getTruncateStyles = exports.getTruncateStyles = function getTruncateStyles(m
|
|
|
179
188
|
display: '-webkit-box',
|
|
180
189
|
overflow: 'hidden',
|
|
181
190
|
textOverflow: 'ellipsis',
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
182
192
|
wordBreak: wordBreak,
|
|
193
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
183
194
|
WebkitLineClamp: maxLines,
|
|
184
195
|
WebkitBoxOrient: 'vertical',
|
|
185
196
|
'@supports not (-webkit-line-clamp: 1)': {
|
|
197
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
186
198
|
maxHeight: "calc(".concat(maxLines, " * ").concat(lineHeight, ")")
|
|
187
199
|
}
|
|
188
200
|
});
|
|
@@ -56,7 +56,9 @@ var ConnectedAIPrismContainer = function ConnectedAIPrismContainer(_ref) {
|
|
|
56
56
|
}, [status]);
|
|
57
57
|
var container = (0, _react.jsx)("div", (0, _extends2.default)({
|
|
58
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
59
|
-
className: _HoverCardContent.hoverCardClassName
|
|
59
|
+
className: _HoverCardContent.hoverCardClassName
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
|
+
,
|
|
60
62
|
css: [_styled.HoverCardContainer, !isAIEnabled ? _styled.popupContainerStyles : undefined],
|
|
61
63
|
"data-testid": testId
|
|
62
64
|
}, props), children);
|
|
@@ -81,7 +83,9 @@ var ContentContainer = function ContentContainer(_ref2) {
|
|
|
81
83
|
}
|
|
82
84
|
return (0, _react.jsx)("div", (0, _extends2.default)({
|
|
83
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
84
|
-
className: _HoverCardContent.hoverCardClassName
|
|
86
|
+
className: _HoverCardContent.hoverCardClassName
|
|
87
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
88
|
+
,
|
|
85
89
|
css: _styled.HoverCardContainer,
|
|
86
90
|
"data-testid": testId
|
|
87
91
|
}, props), children);
|
|
@@ -22,7 +22,11 @@ var CustomPopupContainer = /*#__PURE__*/_react.default.forwardRef(function (_ref
|
|
|
22
22
|
var children = _ref.children,
|
|
23
23
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
24
24
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
25
|
-
css:
|
|
25
|
+
css:
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
27
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.hover-card-ai-summaries') ? undefined :
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
29
|
+
_styled.popupContainerStyles
|
|
26
30
|
}, props, {
|
|
27
31
|
ref: ref
|
|
28
32
|
}), children);
|
|
@@ -6,11 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.titleBlockStyles = exports.mainTextStyles = exports.connectButtonStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var titleFontWeight = '600';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
11
|
var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
10
12
|
justifyContent: 'center',
|
|
11
13
|
fontWeight: titleFontWeight,
|
|
12
14
|
marginTop: "var(--ds-space-100, 8px)"
|
|
13
15
|
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
14
18
|
var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
15
19
|
display: 'inline',
|
|
16
20
|
justifyContent: 'center',
|
|
@@ -18,6 +22,8 @@ var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
|
18
22
|
fontSize: '0.75rem',
|
|
19
23
|
textAlign: 'center'
|
|
20
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
21
27
|
var connectButtonStyles = exports.connectButtonStyles = (0, _react.css)({
|
|
22
28
|
justifyContent: 'center',
|
|
23
29
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -11,11 +11,15 @@ var _styled = require("../../../styled");
|
|
|
11
11
|
var _templateObject;
|
|
12
12
|
var elementGap = '0.5rem';
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
15
|
var metadataBlockCss = exports.metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tgap: 0px;\n\t/* primary element group */\n\t[data-smart-element-group]:nth-of-type(1) {\n\t\tflex-grow: 7;\n\n\t\t// a separator between text-based element\n\t\t", "\n\n\t\t/* horizontal spacing between elements in group */\n > span {\n\t\t\tmargin-right: ", ";\n\t\t}\n\t}\n\t/* secondary element group */\n\t[data-smart-element-group]:nth-of-type(2) {\n\t\tflex-grow: 3;\n\t\t/* horizontal spacing between elements in group */\n\t\t> span {\n\t\t\tmargin-left: ", ";\n\t\t}\n\t}\n\n\t[data-smart-element-group] {\n\t\tline-height: 1rem;\n\t}\n"])), _styled.separatorCss, elementGap, elementGap);
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
16
18
|
var footerBlockCss = exports.footerBlockCss = (0, _react.css)({
|
|
17
19
|
height: '1.5rem'
|
|
18
20
|
});
|
|
21
|
+
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
19
23
|
var hiddenSnippetStyles = exports.hiddenSnippetStyles = (0, _react.css)({
|
|
20
24
|
visibility: 'hidden',
|
|
21
25
|
position: 'absolute'
|
|
@@ -27,33 +27,36 @@ var HoverCardLoadingView = function HoverCardLoadingView(_ref) {
|
|
|
27
27
|
items: actions,
|
|
28
28
|
visibleButtonsNum: 2
|
|
29
29
|
});
|
|
30
|
-
return (
|
|
31
|
-
css
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
|
+
(0, _react.jsx)("div", {
|
|
33
|
+
css: _styled2.loadingViewContainer,
|
|
34
|
+
"data-testid": testId
|
|
35
|
+
}, (0, _react.jsx)("div", {
|
|
36
|
+
css: _styled2.skeletonContainer
|
|
37
|
+
}, (0, _react.jsx)(_blocks.CustomBlock, (0, _extends2.default)({}, titleBlockProps, {
|
|
38
|
+
overrideCss: _styled2.titleBlockStyles,
|
|
39
|
+
testId: "".concat(testId, "-title-block")
|
|
40
|
+
}), (0, _react.jsx)(_icon.default, {
|
|
41
|
+
render: function render() {
|
|
42
|
+
return (0, _react.jsx)(_loadingSkeleton.default, null);
|
|
43
|
+
},
|
|
44
|
+
size: size
|
|
45
|
+
}), (0, _react.jsx)("span", {
|
|
46
|
+
css: (0, _styled2.getTitleStyles)(lineHeightRem),
|
|
47
|
+
"data-testid": "".concat(testId, "-title")
|
|
48
|
+
}, (0, _react.jsx)(_loadingSkeleton.default, {
|
|
49
|
+
height: lineHeightRem
|
|
50
|
+
})), actionGroup), (0, _react.jsx)(_loadingSkeleton.default, {
|
|
51
|
+
width: skeletonWidth,
|
|
52
|
+
height: lineHeightRem
|
|
53
|
+
}), (0, _react.jsx)(_loadingSkeleton.default, {
|
|
54
|
+
width: skeletonWidth,
|
|
55
|
+
height: lineHeightRem * 3
|
|
56
|
+
}), (0, _react.jsx)(_loadingSkeleton.default, {
|
|
57
|
+
width: skeletonWidth,
|
|
58
|
+
height: lineHeightRem
|
|
59
|
+
})))
|
|
60
|
+
);
|
|
58
61
|
};
|
|
59
62
|
var _default = exports.default = HoverCardLoadingView;
|
|
@@ -5,11 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.titleBlockStyles = exports.skeletonContainer = exports.loadingViewContainer = exports.getTitleStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
9
|
var loadingViewContainer = exports.loadingViewContainer = (0, _react.css)({
|
|
9
10
|
display: 'flex',
|
|
10
11
|
flexDirection: 'column',
|
|
11
12
|
padding: "var(--ds-space-200, 1rem)"
|
|
12
13
|
});
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
16
|
var skeletonContainer = exports.skeletonContainer = (0, _react.css)({
|
|
14
17
|
display: 'flex',
|
|
15
18
|
flexDirection: 'column',
|
|
@@ -20,12 +23,16 @@ var skeletonContainer = exports.skeletonContainer = (0, _react.css)({
|
|
|
20
23
|
var getTitleStyles = exports.getTitleStyles = function getTitleStyles(height) {
|
|
21
24
|
return (0, _react.css)({
|
|
22
25
|
flex: '1 0 auto',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
27
|
height: "".concat(height, "rem"),
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
29
|
span: {
|
|
25
30
|
width: '100%'
|
|
26
31
|
}
|
|
27
32
|
});
|
|
28
33
|
};
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
29
36
|
var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
30
37
|
width: '100%',
|
|
31
38
|
gap: "var(--ds-space-100, 0.5rem)"
|
|
@@ -8,16 +8,23 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var blockGap = '0.5rem';
|
|
9
9
|
var iconGap = '0.5rem';
|
|
10
10
|
var titleFontWeight = '500';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
13
|
var connectButtonStyles = exports.connectButtonStyles = (0, _react.css)({
|
|
12
14
|
justifyContent: 'flex-end',
|
|
13
15
|
marginTop: blockGap
|
|
14
16
|
});
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
19
|
var titleBlockStyles = exports.titleBlockStyles = (0, _react.css)({
|
|
16
20
|
gap: "".concat(blockGap, " ").concat(iconGap),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
22
|
a: {
|
|
18
23
|
fontWeight: titleFontWeight
|
|
19
24
|
}
|
|
20
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
21
28
|
var mainTextStyles = exports.mainTextStyles = (0, _react.css)({
|
|
22
29
|
marginTop: blockGap,
|
|
23
30
|
fontSize: '0.75rem'
|
|
@@ -27,32 +27,41 @@ var NEW_CARD_WIDTH_REM = exports.NEW_CARD_WIDTH_REM = 25;
|
|
|
27
27
|
var CARD_GAP_PX = exports.CARD_GAP_PX = 10;
|
|
28
28
|
var blockGap = '0.5rem';
|
|
29
29
|
var elementGap = '0.5rem';
|
|
30
|
+
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
30
32
|
var separatorCss = exports.separatorCss = (0, _react.css)({
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
34
|
'[data-separator] + [data-separator]:before': {
|
|
32
35
|
marginRight: elementGap
|
|
33
36
|
}
|
|
34
37
|
});
|
|
35
38
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
37
40
|
var HoverCardContainer = exports.HoverCardContainer = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tbackground: none;\n\tborder-width: 0;\n\tbox-sizing: border-box;\n\twidth: ", "rem;\n\n\t.", " {\n\t\tdisplay: none;\n\t}\n"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.hover-card-ai-summaries') ? NEW_CARD_WIDTH_REM : CARD_WIDTH_REM, _index.loadingPlaceholderClassName);
|
|
38
41
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
40
43
|
var titleBlockCss = exports.titleBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tgap: ", ";\n\n\t", "\n\n\t// title and subtitle element group\n [data-smart-element-group] {\n\t\t// gap between title and subtitle\n\t\tgap: 0.06rem;\n\t\tdisplay: flex;\n\t\t/* subtitle element group */\n\t\t> [data-smart-element-group] {\n\t\t\t> span {\n\t\t\t\tmargin-right: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t[data-smart-element='Title'] {\n\t\tfont-weight: 600;\n\t}\n"])), blockGap, separatorCss, elementGap);
|
|
41
44
|
var getTransitionStyles = exports.getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
42
45
|
return (0, _react.css)({
|
|
43
46
|
transition: 'height 300ms ease-in-out',
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
48
|
height: "".concat(snippetHeight, "px")
|
|
45
49
|
});
|
|
46
50
|
};
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
47
53
|
var popupContainerStyles = exports.popupContainerStyles = (0, _react.css)({
|
|
48
54
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
49
55
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
50
56
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px rgba(9, 30, 66, 0.15),0px 0px 1px rgba(9, 30, 66, 0.31))"
|
|
51
57
|
});
|
|
52
58
|
var getPreviewBlockStyles = exports.getPreviewBlockStyles = function getPreviewBlockStyles(previewHeight) {
|
|
53
|
-
return (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
return (
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
|
+
(0, _react.css)(previewHeight ? "height: ".concat(previewHeight, "px;") : '', {
|
|
62
|
+
borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
|
|
63
|
+
borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
|
|
64
|
+
marginBottom: blockGap
|
|
65
|
+
})
|
|
66
|
+
);
|
|
58
67
|
};
|
|
@@ -95,13 +95,13 @@ var baseWrapperStyles = function baseWrapperStyles(props) {
|
|
|
95
95
|
}, props.isHovered ? hoveredWihBorderStyles(props) : undefined);
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
99
99
|
var WrapperAnchor = exports.WrapperAnchor = _styled.default.a(function (props) {
|
|
100
100
|
return _objectSpread(_objectSpread({}, baseWrapperStyles(props)), isInteractive(props));
|
|
101
101
|
});
|
|
102
102
|
WrapperAnchor.displayName = 'WrapperAnchor';
|
|
103
103
|
|
|
104
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
105
105
|
var WrapperSpan = exports.WrapperSpan = _styled.default.span(function (props) {
|
|
106
106
|
return _objectSpread({}, baseWrapperStyles(props));
|
|
107
107
|
});
|
|
@@ -13,7 +13,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
// Current rationale: vertically positioned at the top of
|
|
14
14
|
// the smart card container (when set to 0). Offset this
|
|
15
15
|
// to position it with appropriate whitespace from the top.
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
17
|
var Icon = exports.Icon = _styled.default.img({
|
|
18
18
|
height: '14px',
|
|
19
19
|
width: '14px',
|
|
@@ -29,7 +29,7 @@ var Icon = exports.Icon = _styled.default.img({
|
|
|
29
29
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
30
30
|
// are less than that in height/width.
|
|
31
31
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
33
|
var AKIconWrapper = exports.AKIconWrapper = _styled.default.span({
|
|
34
34
|
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
35
35
|
});
|
|
@@ -17,23 +17,31 @@ var IconOverrides = exports.IconOverrides = "\n\n & > * > span {\n height: 1
|
|
|
17
17
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
18
18
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
19
19
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
21
|
var IconWrapper = exports.IconWrapper = _styled.default.span({
|
|
22
22
|
userSelect: 'none'
|
|
23
|
-
},
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
+
IconOverrides,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
IconObjectOverrides);
|
|
24
28
|
|
|
25
29
|
// Wraps all emoji in Inline Links similar to icon
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
31
|
var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
|
|
28
32
|
display: 'inline-block',
|
|
29
33
|
marginRight: "var(--ds-space-025, 2px)",
|
|
30
34
|
userSelect: 'none'
|
|
31
|
-
},
|
|
35
|
+
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
|
+
IconOverrides,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
|
+
IconObjectOverrides);
|
|
32
40
|
|
|
33
41
|
// The main 'wrapping' element, title of the content.
|
|
34
42
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
35
43
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
45
|
var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
|
|
38
46
|
whiteSpace: 'pre-wrap',
|
|
39
47
|
wordBreak: 'break-all',
|
|
@@ -42,14 +50,14 @@ var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
|
|
|
42
50
|
});
|
|
43
51
|
|
|
44
52
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
54
|
var LozengeWrapper = exports.LozengeWrapper = _styled.default.span({
|
|
47
55
|
display: 'inline-block',
|
|
48
56
|
verticalAlign: '1px',
|
|
49
57
|
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
|
|
50
58
|
});
|
|
51
59
|
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
61
|
var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.default.span({
|
|
54
62
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
55
63
|
position: 'relative',
|
|
@@ -59,14 +67,14 @@ var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.defaul
|
|
|
59
67
|
// The following components are used to absolutely position icons in the vertical center.
|
|
60
68
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
61
69
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
71
|
var IconPositionWrapper = exports.IconPositionWrapper = _styled.default.span({
|
|
64
72
|
marginRight: "var(--ds-space-050, 4px)",
|
|
65
73
|
position: 'relative',
|
|
66
74
|
display: 'inline-block'
|
|
67
75
|
});
|
|
68
76
|
|
|
69
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
70
78
|
var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
71
79
|
width: '14px',
|
|
72
80
|
height: '100%',
|
|
@@ -78,5 +86,5 @@ var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
|
78
86
|
// To achieve same result we use classname instead.
|
|
79
87
|
var TitleWrapperClassName = exports.TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
80
88
|
|
|
81
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
|
|
82
90
|
var TitleWrapper = exports.TitleWrapper = _styled.default.span({});
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.SpinnerWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _styled2 = require("../IconAndTitleLayout/styled");
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var SpinnerWrapper = exports.SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)({
|
|
12
12
|
verticalAlign: 'text-bottom',
|
|
13
13
|
padding: '0px'
|
|
@@ -9,8 +9,9 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
11
11
|
// This basically turns the button back into inline content
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
13
|
var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
14
15
|
'&&&': {
|
|
15
16
|
textAlign: 'initial',
|
|
16
17
|
display: 'inline',
|
|
@@ -22,11 +23,13 @@ var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
|
22
23
|
backgroundClip: 'padding-box',
|
|
23
24
|
boxDecorationBreak: 'clone'
|
|
24
25
|
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
27
|
'> span': {
|
|
26
28
|
display: 'inline',
|
|
27
29
|
overflow: 'initial',
|
|
28
30
|
textOverflow: 'initial',
|
|
29
31
|
whiteSpace: 'initial',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
33
|
'> span': {
|
|
31
34
|
overflow: 'initial',
|
|
32
35
|
textOverflow: 'initial',
|
|
@@ -35,18 +38,18 @@ var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
|
35
38
|
}
|
|
36
39
|
});
|
|
37
40
|
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
42
|
var NoLinkAppearance = exports.NoLinkAppearance = _styled.default.span({
|
|
40
43
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
41
44
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
42
45
|
});
|
|
43
46
|
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
48
|
var LowercaseAppearance = exports.LowercaseAppearance = _styled.default.span({
|
|
46
49
|
textTransform: 'lowercase'
|
|
47
50
|
});
|
|
48
51
|
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
53
|
var LinkAppearance = exports.LinkAppearance = _styled.default.a({
|
|
51
54
|
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
52
55
|
'&:hover': {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.breakWordsCss = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
9
|
var breakWordsCss = exports.breakWordsCss = (0, _react.css)({
|
|
9
10
|
whiteSpace: 'pre-line',
|
|
10
11
|
wordBreak: 'break-all'
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "27.
|
|
20
|
+
packageVersion: "27.6.0",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _RelatedLinksBaseModal = _interopRequireDefault(require("./components/RelatedLinksBaseModal"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _unavailable = require("./views/unavailable");
|
|
11
|
+
var RelatedLinksModal = function RelatedLinksModal(_ref) {
|
|
12
|
+
var onClose = _ref.onClose,
|
|
13
|
+
showModal = _ref.showModal,
|
|
14
|
+
url = _ref.url;
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_RelatedLinksBaseModal.default, {
|
|
16
|
+
onClose: onClose,
|
|
17
|
+
showModal: showModal
|
|
18
|
+
}, /*#__PURE__*/_react.default.createElement(_unavailable.RelatedLinksUnavailableView, null));
|
|
19
|
+
};
|
|
20
|
+
var _default = exports.default = RelatedLinksModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -15,12 +15,15 @@ var Byline = exports.Byline = function Byline(_ref) {
|
|
|
15
15
|
testId = _ref.testId,
|
|
16
16
|
className = _ref.className;
|
|
17
17
|
return (0, _react.jsx)("span", {
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
19
|
css: (0, _utils.mq)({
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
21
|
fontSize: (0, _utils.gs)(1.5),
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
20
23
|
lineHeight: (0, _utils.gs)(2.5),
|
|
21
24
|
color: "".concat("var(--ds-text-subtlest, ".concat(_colors.N300, ")")),
|
|
22
25
|
fontWeight: 'normal',
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
27
|
marginTop: (0, _utils.gs)(0.5),
|
|
25
28
|
// Spec: only allow two lines MAX to be shown.
|
|
26
29
|
display: '-webkit-box',
|
|
@@ -30,6 +33,7 @@ var Byline = exports.Byline = function Byline(_ref) {
|
|
|
30
33
|
WebkitBoxOrient: 'vertical',
|
|
31
34
|
wordBreak: 'break-word',
|
|
32
35
|
// Fallback options.
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
37
|
maxHeight: (0, _utils.gs)(5),
|
|
34
38
|
whiteSpace: 'pre-line',
|
|
35
39
|
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
@@ -24,7 +24,9 @@ var getImageStyles = function getImageStyles(isFlexibleUi) {
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
return (0, _react.css)({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
28
|
height: (0, _utils.gs)(2),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
30
|
width: (0, _utils.gs)(2)
|
|
29
31
|
});
|
|
30
32
|
};
|
|
@@ -33,7 +35,9 @@ var getSpanStyles = function getSpanStyles(isFlexibleUi) {
|
|
|
33
35
|
return;
|
|
34
36
|
}
|
|
35
37
|
return (0, _react.css)({
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
39
|
height: (0, _utils.gs)(2.5),
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
41
|
width: (0, _utils.gs)(2),
|
|
38
42
|
display: 'flex',
|
|
39
43
|
alignItems: 'center',
|
|
@@ -54,7 +58,9 @@ var Icon = exports.Icon = function Icon(_ref) {
|
|
|
54
58
|
testId: "".concat(testId, "-default")
|
|
55
59
|
});
|
|
56
60
|
var image = url && (0, _react.jsx)(_reactRenderImage.default, {
|
|
57
|
-
src: url
|
|
61
|
+
src: url
|
|
62
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
63
|
+
,
|
|
58
64
|
loaded: (0, _react.jsx)("img", {
|
|
59
65
|
css: getImageStyles(isFlexibleUi),
|
|
60
66
|
src: url,
|
|
@@ -63,6 +69,7 @@ var Icon = exports.Icon = function Icon(_ref) {
|
|
|
63
69
|
errored: placeholder
|
|
64
70
|
});
|
|
65
71
|
return (0, _react.jsx)("span", {
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
66
73
|
css: getSpanStyles(isFlexibleUi),
|
|
67
74
|
"data-testid": testId
|
|
68
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|