@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
|
@@ -9,7 +9,7 @@ var LozengeActionItemsGroup = function LozengeActionItemsGroup(_ref) {
|
|
|
9
9
|
testId = _ref.testId,
|
|
10
10
|
onClick = _ref.onClick;
|
|
11
11
|
return (
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
13
|
jsx("span", {
|
|
14
14
|
css: dropdownItemGroupStyles,
|
|
15
15
|
"data-testid": "".concat(testId, "-item-group")
|
|
@@ -39,6 +39,7 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
39
39
|
return jsx("button", _extends({
|
|
40
40
|
type: "button"
|
|
41
41
|
}, props, {
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
43
|
css: triggerButtonStyles,
|
|
43
44
|
"data-action-open": isOpen,
|
|
44
45
|
"data-testid": "".concat(testId, "--trigger"),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export var triggerButtonStyles = css({
|
|
3
4
|
all: 'unset',
|
|
4
5
|
backgroundColor: 'transparent',
|
|
@@ -14,6 +15,7 @@ export var triggerButtonStyles = css({
|
|
|
14
15
|
textTransform: 'unset',
|
|
15
16
|
border: '2px solid transparent',
|
|
16
17
|
margin: "var(--ds-space-025, 2px)",
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
19
|
"&:focus-visible, &:focus-within, &[aria-expanded='true']": {
|
|
18
20
|
outline: 'none',
|
|
19
21
|
boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, #388BFF)"),
|
|
@@ -21,17 +23,21 @@ export var triggerButtonStyles = css({
|
|
|
21
23
|
}
|
|
22
24
|
});
|
|
23
25
|
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
27
|
export var triggerLozengeStyles = css({
|
|
26
28
|
alignItems: 'center',
|
|
27
29
|
display: 'flex',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
31
|
"span[role='img']": {
|
|
29
32
|
margin: "var(--ds-space-negative-050, -4px)".concat(" ", "var(--ds-space-negative-100, -8px)", " ", "var(--ds-space-negative-050, -4px)", " -1px")
|
|
30
33
|
}
|
|
31
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
32
37
|
export var dropdownItemGroupStyles = css({
|
|
33
38
|
maxHeight: '300px',
|
|
34
39
|
overflowY: 'auto',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
41
|
button: {
|
|
36
42
|
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-150, 12px)"),
|
|
37
43
|
minHeight: '28px',
|
|
@@ -25,6 +25,7 @@ var styles = css({
|
|
|
25
25
|
position: 'relative',
|
|
26
26
|
overflow: 'hidden'
|
|
27
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
29
|
'> img, > span': {
|
|
29
30
|
minHeight: '100%',
|
|
30
31
|
minWidth: '100%',
|
|
@@ -62,6 +63,7 @@ var Media = function Media(_ref) {
|
|
|
62
63
|
return null;
|
|
63
64
|
}
|
|
64
65
|
return jsx("div", {
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
65
67
|
css: [styles, overrideCss],
|
|
66
68
|
"data-smart-element": name,
|
|
67
69
|
"data-smart-element-media": type,
|
|
@@ -14,7 +14,9 @@ var getSnippetStyles = function getSnippetStyles(overrideCss) {
|
|
|
14
14
|
MozUserSelect: 'text',
|
|
15
15
|
MsUserSelect: 'text',
|
|
16
16
|
userSelect: 'text'
|
|
17
|
-
},
|
|
17
|
+
},
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
overrideCss);
|
|
18
20
|
};
|
|
19
21
|
var SnippetElement = function SnippetElement() {
|
|
20
22
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -8,7 +8,9 @@ var getStyles = function getStyles(maxLines) {
|
|
|
8
8
|
fontSize: '0.75rem',
|
|
9
9
|
lineHeight: '1rem',
|
|
10
10
|
whiteSpace: 'normal'
|
|
11
|
-
},
|
|
11
|
+
},
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
+
getTruncateStyles(maxLines));
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -30,6 +32,7 @@ var Text = function Text(_ref) {
|
|
|
30
32
|
return null;
|
|
31
33
|
}
|
|
32
34
|
return jsx("span", {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
33
36
|
css: [getStyles(maxLines), overrideCss],
|
|
34
37
|
"data-separator": true,
|
|
35
38
|
"data-smart-element": name,
|
|
@@ -31,11 +31,17 @@ export var getFormattedMessageAsString = function getFormattedMessageAsString(in
|
|
|
31
31
|
};
|
|
32
32
|
var getIconDimensionStyles = function getIconDimensionStyles(value) {
|
|
33
33
|
return css({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
35
|
height: value,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
37
|
minHeight: value,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
39
|
maxHeight: value,
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
41
|
width: value,
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
43
|
minWidth: value,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
45
|
maxWidth: value
|
|
40
46
|
});
|
|
41
47
|
};
|
|
@@ -87,6 +93,7 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
|
|
|
87
93
|
fontSize: '1.25rem',
|
|
88
94
|
fontWeight: 400,
|
|
89
95
|
letterSpacing: '-0.008em',
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
90
97
|
lineHeight: getLinkLineHeight(size)
|
|
91
98
|
});
|
|
92
99
|
case SmartLinkSize.Large:
|
|
@@ -95,6 +102,7 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
|
|
|
95
102
|
fontSize: '0.875rem',
|
|
96
103
|
fontWeight: 400,
|
|
97
104
|
letterSpacing: '-0.003em',
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
98
106
|
lineHeight: getLinkLineHeight(size)
|
|
99
107
|
});
|
|
100
108
|
case SmartLinkSize.Small:
|
|
@@ -103,6 +111,7 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
|
|
|
103
111
|
fontSize: '0.75rem',
|
|
104
112
|
fontWeight: 400,
|
|
105
113
|
letterSpacing: '0em',
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
106
115
|
lineHeight: getLinkLineHeight(size)
|
|
107
116
|
});
|
|
108
117
|
}
|
|
@@ -172,10 +181,13 @@ export var getTruncateStyles = function getTruncateStyles(maxLines) {
|
|
|
172
181
|
display: '-webkit-box',
|
|
173
182
|
overflow: 'hidden',
|
|
174
183
|
textOverflow: 'ellipsis',
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
175
185
|
wordBreak: wordBreak,
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
176
187
|
WebkitLineClamp: maxLines,
|
|
177
188
|
WebkitBoxOrient: 'vertical',
|
|
178
189
|
'@supports not (-webkit-line-clamp: 1)': {
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
179
191
|
maxHeight: "calc(".concat(maxLines, " * ").concat(lineHeight, ")")
|
|
180
192
|
}
|
|
181
193
|
});
|
|
@@ -49,7 +49,9 @@ var ConnectedAIPrismContainer = function ConnectedAIPrismContainer(_ref) {
|
|
|
49
49
|
}, [status]);
|
|
50
50
|
var container = jsx("div", _extends({
|
|
51
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
52
|
-
className: hoverCardClassName
|
|
52
|
+
className: hoverCardClassName
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
54
|
+
,
|
|
53
55
|
css: [HoverCardContainer, !isAIEnabled ? popupContainerStyles : undefined],
|
|
54
56
|
"data-testid": testId
|
|
55
57
|
}, props), children);
|
|
@@ -74,7 +76,9 @@ var ContentContainer = function ContentContainer(_ref2) {
|
|
|
74
76
|
}
|
|
75
77
|
return jsx("div", _extends({
|
|
76
78
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
|
-
className: hoverCardClassName
|
|
79
|
+
className: hoverCardClassName
|
|
80
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
81
|
+
,
|
|
78
82
|
css: HoverCardContainer,
|
|
79
83
|
"data-testid": testId
|
|
80
84
|
}, props), children);
|
|
@@ -16,7 +16,11 @@ var CustomPopupContainer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
16
16
|
var children = _ref.children,
|
|
17
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
18
|
return jsx("div", _extends({
|
|
19
|
-
css:
|
|
19
|
+
css:
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
|
+
getBooleanFF('platform.linking-platform.smart-card.hover-card-ai-summaries') ? undefined :
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
|
+
popupContainerStyles
|
|
20
24
|
}, props, {
|
|
21
25
|
ref: ref
|
|
22
26
|
}), children);
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
var titleFontWeight = '600';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
5
|
export var titleBlockStyles = css({
|
|
4
6
|
justifyContent: 'center',
|
|
5
7
|
fontWeight: titleFontWeight,
|
|
6
8
|
marginTop: "var(--ds-space-100, 8px)"
|
|
7
9
|
});
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
12
|
export var mainTextStyles = css({
|
|
9
13
|
display: 'inline',
|
|
10
14
|
justifyContent: 'center',
|
|
@@ -12,6 +16,8 @@ export var mainTextStyles = css({
|
|
|
12
16
|
fontSize: '0.75rem',
|
|
13
17
|
textAlign: 'center'
|
|
14
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
21
|
export var connectButtonStyles = css({
|
|
16
22
|
justifyContent: 'center',
|
|
17
23
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -4,11 +4,15 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
import { separatorCss } from '../../../styled';
|
|
5
5
|
var elementGap = '0.5rem';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
7
|
+
// 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
|
|
8
8
|
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), separatorCss, elementGap, elementGap);
|
|
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
|
export var footerBlockCss = css({
|
|
10
12
|
height: '1.5rem'
|
|
11
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
|
|
12
16
|
export var hiddenSnippetStyles = css({
|
|
13
17
|
visibility: 'hidden',
|
|
14
18
|
position: 'absolute'
|
|
@@ -19,33 +19,36 @@ var HoverCardLoadingView = function HoverCardLoadingView(_ref) {
|
|
|
19
19
|
items: actions,
|
|
20
20
|
visibleButtonsNum: 2
|
|
21
21
|
});
|
|
22
|
-
return
|
|
23
|
-
css
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
22
|
+
return (
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
|
+
jsx("div", {
|
|
25
|
+
css: loadingViewContainer,
|
|
26
|
+
"data-testid": testId
|
|
27
|
+
}, jsx("div", {
|
|
28
|
+
css: skeletonContainer
|
|
29
|
+
}, jsx(CustomBlock, _extends({}, titleBlockProps, {
|
|
30
|
+
overrideCss: titleBlockStyles,
|
|
31
|
+
testId: "".concat(testId, "-title-block")
|
|
32
|
+
}), jsx(Icon, {
|
|
33
|
+
render: function render() {
|
|
34
|
+
return jsx(LoadingSkeleton, null);
|
|
35
|
+
},
|
|
36
|
+
size: size
|
|
37
|
+
}), jsx("span", {
|
|
38
|
+
css: getTitleStyles(lineHeightRem),
|
|
39
|
+
"data-testid": "".concat(testId, "-title")
|
|
40
|
+
}, jsx(LoadingSkeleton, {
|
|
41
|
+
height: lineHeightRem
|
|
42
|
+
})), actionGroup), jsx(LoadingSkeleton, {
|
|
43
|
+
width: skeletonWidth,
|
|
44
|
+
height: lineHeightRem
|
|
45
|
+
}), jsx(LoadingSkeleton, {
|
|
46
|
+
width: skeletonWidth,
|
|
47
|
+
height: lineHeightRem * 3
|
|
48
|
+
}), jsx(LoadingSkeleton, {
|
|
49
|
+
width: skeletonWidth,
|
|
50
|
+
height: lineHeightRem
|
|
51
|
+
})))
|
|
52
|
+
);
|
|
50
53
|
};
|
|
51
54
|
export default HoverCardLoadingView;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export var loadingViewContainer = css({
|
|
3
5
|
display: 'flex',
|
|
4
6
|
flexDirection: 'column',
|
|
5
7
|
padding: "var(--ds-space-200, 1rem)"
|
|
6
8
|
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
7
11
|
export var skeletonContainer = css({
|
|
8
12
|
display: 'flex',
|
|
9
13
|
flexDirection: 'column',
|
|
@@ -14,12 +18,16 @@ export var skeletonContainer = css({
|
|
|
14
18
|
export var getTitleStyles = function getTitleStyles(height) {
|
|
15
19
|
return css({
|
|
16
20
|
flex: '1 0 auto',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
22
|
height: "".concat(height, "rem"),
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
24
|
span: {
|
|
19
25
|
width: '100%'
|
|
20
26
|
}
|
|
21
27
|
});
|
|
22
28
|
};
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
23
31
|
export var titleBlockStyles = css({
|
|
24
32
|
width: '100%',
|
|
25
33
|
gap: "var(--ds-space-100, 0.5rem)"
|
|
@@ -2,16 +2,23 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
var blockGap = '0.5rem';
|
|
3
3
|
var iconGap = '0.5rem';
|
|
4
4
|
var titleFontWeight = '500';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
7
|
export var connectButtonStyles = css({
|
|
6
8
|
justifyContent: 'flex-end',
|
|
7
9
|
marginTop: blockGap
|
|
8
10
|
});
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
13
|
export var titleBlockStyles = css({
|
|
10
14
|
gap: "".concat(blockGap, " ").concat(iconGap),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
16
|
a: {
|
|
12
17
|
fontWeight: titleFontWeight
|
|
13
18
|
}
|
|
14
19
|
});
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
22
|
export var mainTextStyles = css({
|
|
16
23
|
marginTop: blockGap,
|
|
17
24
|
fontSize: '0.75rem'
|
|
@@ -21,32 +21,41 @@ export var NEW_CARD_WIDTH_REM = 25;
|
|
|
21
21
|
export var CARD_GAP_PX = 10;
|
|
22
22
|
var blockGap = '0.5rem';
|
|
23
23
|
var elementGap = '0.5rem';
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
24
26
|
export var separatorCss = css({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
25
28
|
'[data-separator] + [data-separator]:before': {
|
|
26
29
|
marginRight: elementGap
|
|
27
30
|
}
|
|
28
31
|
});
|
|
29
32
|
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
33
|
+
// 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
|
|
31
34
|
export var HoverCardContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), getBooleanFF('platform.linking-platform.smart-card.hover-card-ai-summaries') ? NEW_CARD_WIDTH_REM : CARD_WIDTH_REM, loadingPlaceholderClassName);
|
|
32
35
|
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
36
|
+
// 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
|
|
34
37
|
export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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);
|
|
35
38
|
export var getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
36
39
|
return css({
|
|
37
40
|
transition: 'height 300ms ease-in-out',
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
42
|
height: "".concat(snippetHeight, "px")
|
|
39
43
|
});
|
|
40
44
|
};
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
41
47
|
export var popupContainerStyles = css({
|
|
42
48
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
43
49
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
44
50
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px rgba(9, 30, 66, 0.15),0px 0px 1px rgba(9, 30, 66, 0.31))"
|
|
45
51
|
});
|
|
46
52
|
export var getPreviewBlockStyles = function getPreviewBlockStyles(previewHeight) {
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
return (
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
55
|
+
css(previewHeight ? "height: ".concat(previewHeight, "px;") : '', {
|
|
56
|
+
borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
|
|
57
|
+
borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
|
|
58
|
+
marginBottom: blockGap
|
|
59
|
+
})
|
|
60
|
+
);
|
|
52
61
|
};
|
|
@@ -88,13 +88,13 @@ var baseWrapperStyles = function baseWrapperStyles(props) {
|
|
|
88
88
|
}, props.isHovered ? hoveredWihBorderStyles(props) : undefined);
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
91
|
+
// 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
|
|
92
92
|
export var WrapperAnchor = styled.a(function (props) {
|
|
93
93
|
return _objectSpread(_objectSpread({}, baseWrapperStyles(props)), isInteractive(props));
|
|
94
94
|
});
|
|
95
95
|
WrapperAnchor.displayName = 'WrapperAnchor';
|
|
96
96
|
|
|
97
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
97
|
+
// 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
|
|
98
98
|
export var WrapperSpan = styled.span(function (props) {
|
|
99
99
|
return _objectSpread({}, baseWrapperStyles(props));
|
|
100
100
|
});
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
// Current rationale: vertically positioned at the top of
|
|
8
8
|
// the smart card container (when set to 0). Offset this
|
|
9
9
|
// to position it with appropriate whitespace from the top.
|
|
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
|
export var Icon = styled.img({
|
|
12
12
|
height: '14px',
|
|
13
13
|
width: '14px',
|
|
@@ -23,7 +23,7 @@ export var Icon = styled.img({
|
|
|
23
23
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
24
24
|
// are less than that in height/width.
|
|
25
25
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
export var AKIconWrapper = styled.span({
|
|
28
28
|
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
29
29
|
});
|
|
@@ -10,23 +10,31 @@ export var IconOverrides = "\n\n & > * > span {\n height: 16px;\n width:
|
|
|
10
10
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
11
11
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
12
12
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
14
|
export var IconWrapper = styled.span({
|
|
15
15
|
userSelect: 'none'
|
|
16
|
-
},
|
|
16
|
+
},
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
IconOverrides,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
+
IconObjectOverrides);
|
|
17
21
|
|
|
18
22
|
// Wraps all emoji in Inline Links similar to icon
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
24
|
export var EmojiWrapper = styled.span({
|
|
21
25
|
display: 'inline-block',
|
|
22
26
|
marginRight: "var(--ds-space-025, 2px)",
|
|
23
27
|
userSelect: 'none'
|
|
24
|
-
},
|
|
28
|
+
},
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
|
+
IconOverrides,
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
IconObjectOverrides);
|
|
25
33
|
|
|
26
34
|
// The main 'wrapping' element, title of the content.
|
|
27
35
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
28
36
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
29
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
30
38
|
export var IconTitleWrapper = styled.span({
|
|
31
39
|
whiteSpace: 'pre-wrap',
|
|
32
40
|
wordBreak: 'break-all',
|
|
@@ -35,14 +43,14 @@ export var IconTitleWrapper = styled.span({
|
|
|
35
43
|
});
|
|
36
44
|
|
|
37
45
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
47
|
export var LozengeWrapper = styled.span({
|
|
40
48
|
display: 'inline-block',
|
|
41
49
|
verticalAlign: '1px',
|
|
42
50
|
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
|
|
43
51
|
});
|
|
44
52
|
|
|
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
|
export var RightIconPositionWrapper = styled.span({
|
|
47
55
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
48
56
|
position: 'relative',
|
|
@@ -52,14 +60,14 @@ export var RightIconPositionWrapper = styled.span({
|
|
|
52
60
|
// The following components are used to absolutely position icons in the vertical center.
|
|
53
61
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
54
62
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
56
64
|
export var IconPositionWrapper = styled.span({
|
|
57
65
|
marginRight: "var(--ds-space-050, 4px)",
|
|
58
66
|
position: 'relative',
|
|
59
67
|
display: 'inline-block'
|
|
60
68
|
});
|
|
61
69
|
|
|
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
|
export var IconEmptyWrapper = styled.span({
|
|
64
72
|
width: '14px',
|
|
65
73
|
height: '100%',
|
|
@@ -71,5 +79,5 @@ export var IconEmptyWrapper = styled.span({
|
|
|
71
79
|
// To achieve same result we use classname instead.
|
|
72
80
|
export var TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
73
81
|
|
|
74
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
82
|
+
// 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
|
|
75
83
|
export var TitleWrapper = styled.span({});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var SpinnerWrapper = styled(IconTitleWrapper)({
|
|
6
6
|
verticalAlign: 'text-bottom',
|
|
7
7
|
padding: '0px'
|
|
@@ -2,8 +2,9 @@ import styled from '@emotion/styled';
|
|
|
2
2
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
4
4
|
// This basically turns the button back into inline content
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export var IconStyledButton = styled.span({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
7
8
|
'&&&': {
|
|
8
9
|
textAlign: 'initial',
|
|
9
10
|
display: 'inline',
|
|
@@ -15,11 +16,13 @@ export var IconStyledButton = styled.span({
|
|
|
15
16
|
backgroundClip: 'padding-box',
|
|
16
17
|
boxDecorationBreak: 'clone'
|
|
17
18
|
},
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
20
|
'> span': {
|
|
19
21
|
display: 'inline',
|
|
20
22
|
overflow: 'initial',
|
|
21
23
|
textOverflow: 'initial',
|
|
22
24
|
whiteSpace: 'initial',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
26
|
'> span': {
|
|
24
27
|
overflow: 'initial',
|
|
25
28
|
textOverflow: 'initial',
|
|
@@ -28,18 +31,18 @@ export var IconStyledButton = styled.span({
|
|
|
28
31
|
}
|
|
29
32
|
});
|
|
30
33
|
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
35
|
export var NoLinkAppearance = styled.span({
|
|
33
36
|
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
34
37
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
35
38
|
});
|
|
36
39
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
41
|
export var LowercaseAppearance = styled.span({
|
|
39
42
|
textTransform: 'lowercase'
|
|
40
43
|
});
|
|
41
44
|
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
43
46
|
export var LinkAppearance = styled.a({
|
|
44
47
|
color: "var(--ds-link, ".concat(B400, ")"),
|
|
45
48
|
'&:hover': {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export var breakWordsCss = css({
|
|
3
5
|
whiteSpace: 'pre-line',
|
|
4
6
|
wordBreak: 'break-all'
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "27.
|
|
13
|
+
packageVersion: "27.6.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import RelatedLinksBaseModal from './components/RelatedLinksBaseModal';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RelatedLinksUnavailableView } from './views/unavailable';
|
|
4
|
+
var RelatedLinksModal = function RelatedLinksModal(_ref) {
|
|
5
|
+
var onClose = _ref.onClose,
|
|
6
|
+
showModal = _ref.showModal,
|
|
7
|
+
url = _ref.url;
|
|
8
|
+
return /*#__PURE__*/React.createElement(RelatedLinksBaseModal, {
|
|
9
|
+
onClose: onClose,
|
|
10
|
+
showModal: showModal
|
|
11
|
+
}, /*#__PURE__*/React.createElement(RelatedLinksUnavailableView, null));
|
|
12
|
+
};
|
|
13
|
+
export default RelatedLinksModal;
|
|
File without changes
|