@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
|
@@ -76,12 +76,12 @@ function visible(_ref7) {
|
|
|
76
76
|
return frameStyle === 'show' ? visibleStyles : '';
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
80
|
var LinkWrapper = exports.LinkWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", " &:hover {\n\t\ttext-decoration: none;\n\t}\n"])), function (props) {
|
|
81
81
|
return wrapperStyles(props);
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
84
|
+
// 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
|
|
85
85
|
var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
|
|
86
86
|
return wrapperStyles(props);
|
|
87
87
|
}, {
|
|
@@ -91,7 +91,7 @@ var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
|
|
|
91
91
|
marginTop: '10px'
|
|
92
92
|
});
|
|
93
93
|
var embedHeaderHeight = exports.embedHeaderHeight = 32;
|
|
94
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
95
95
|
var Header = exports.Header = _styled.default.div({
|
|
96
96
|
height: "".concat(embedHeaderHeight, "px"),
|
|
97
97
|
position: 'absolute',
|
|
@@ -99,18 +99,27 @@ var Header = exports.Header = _styled.default.div({
|
|
|
99
99
|
width: '100%',
|
|
100
100
|
display: 'flex',
|
|
101
101
|
alignItems: 'center',
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
102
103
|
color: "var(--ds-icon, ".concat(colors.N300, ")"),
|
|
103
104
|
opacity: 0,
|
|
104
105
|
transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
|
|
105
|
-
},
|
|
106
|
+
},
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
108
|
+
function (_ref8) {
|
|
106
109
|
var frameStyle = _ref8.frameStyle;
|
|
107
110
|
return frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
|
|
108
111
|
});
|
|
109
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
110
|
-
var IconWrapper = exports.IconWrapper = _styled.default.div(
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
113
|
+
var IconWrapper = exports.IconWrapper = _styled.default.div(
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
115
|
+
borderRadius,
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
117
|
+
csssize(16),
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
119
|
+
function (_ref9) {
|
|
111
120
|
var isPlaceholder = _ref9.isPlaceholder;
|
|
112
121
|
if (isPlaceholder) {
|
|
113
|
-
return "\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
122
|
+
return "\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
114
123
|
} else {
|
|
115
124
|
return '';
|
|
116
125
|
}
|
|
@@ -118,28 +127,33 @@ var IconWrapper = exports.IconWrapper = _styled.default.div(borderRadius, csssiz
|
|
|
118
127
|
marginRight: "var(--ds-space-050, 4px)"
|
|
119
128
|
});
|
|
120
129
|
|
|
121
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
122
|
-
var TextWrapper = exports.TextWrapper = _styled.default.div(
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
131
|
+
var TextWrapper = exports.TextWrapper = _styled.default.div(
|
|
132
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
133
|
+
function (_ref10) {
|
|
123
134
|
var isPlaceholder = _ref10.isPlaceholder;
|
|
124
135
|
if (isPlaceholder) {
|
|
125
|
-
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
136
|
+
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
126
137
|
} else {
|
|
127
138
|
return '';
|
|
128
139
|
}
|
|
129
140
|
}, {
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
130
142
|
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
131
143
|
fontSize: '12px',
|
|
132
144
|
lineHeight: '16px'
|
|
133
|
-
},
|
|
145
|
+
},
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
147
|
+
ellipsis('none'));
|
|
134
148
|
|
|
135
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
136
150
|
var TooltipWrapper = exports.TooltipWrapper = _styled.default.div({
|
|
137
151
|
overflow: 'hidden'
|
|
138
152
|
});
|
|
139
153
|
// NB: `overflow` is kept as `hidden` since
|
|
140
154
|
// the internal contents of the `iframe` should
|
|
141
155
|
// manage scrolling behaviour.
|
|
142
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
156
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
143
157
|
var Content = exports.Content = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t", ";\n\tborder: 1px solid ", ";\n\tbackground-color: ", ";\n\tposition: absolute;\n\tz-index: 1;\n\twidth: 100%;\n\ttransition: box-shadow 0.3s;\n\n\t> .calc-height > div > div {\n\t\tleft: unset !important;\n\t\twidth: unset !important;\n\t\theight: unset !important;\n\t\tposition: initial !important;\n\t\tpadding-bottom: unset !important;\n\t}\n\t> .embed-preview > div {\n\t\tmargin: 0 auto;\n\t}\n\n\t", "\n\n\t", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(_colors.N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
144
158
|
var allowScrollBar = _ref11.allowScrollBar,
|
|
145
159
|
removeOverflow = _ref11.removeOverflow;
|
|
@@ -154,7 +168,7 @@ var Content = exports.Content = _styled.default.div(_templateObject2 || (_templa
|
|
|
154
168
|
var frameStyle = _ref13.frameStyle;
|
|
155
169
|
return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
|
|
156
170
|
});
|
|
157
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
158
172
|
var Image = exports.Image = _styled.default.img(function (_ref14) {
|
|
159
173
|
var size = _ref14.size;
|
|
160
174
|
return csssize(size);
|
|
@@ -163,7 +177,7 @@ var Image = exports.Image = _styled.default.img(function (_ref14) {
|
|
|
163
177
|
});
|
|
164
178
|
var maxAvatarCount = exports.maxAvatarCount = 6;
|
|
165
179
|
|
|
166
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
167
181
|
var ContentWrapper = exports.ContentWrapper = _styled.default.div({
|
|
168
182
|
display: 'flex',
|
|
169
183
|
flexDirection: 'row',
|
|
@@ -171,8 +185,9 @@ var ContentWrapper = exports.ContentWrapper = _styled.default.div({
|
|
|
171
185
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
|
|
172
186
|
});
|
|
173
187
|
|
|
174
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
175
189
|
var Title = exports.Title = _styled.default.div({
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
176
191
|
color: "var(--ds-text, ".concat(colors.N900, ")"),
|
|
177
192
|
fontSize: '16px',
|
|
178
193
|
fontWeight: 500,
|
|
@@ -181,18 +196,22 @@ var Title = exports.Title = _styled.default.div({
|
|
|
181
196
|
overflow: 'hidden'
|
|
182
197
|
});
|
|
183
198
|
|
|
184
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
199
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
185
200
|
var Byline = exports.Byline = _styled.default.div({
|
|
186
201
|
marginTop: "var(--ds-space-050, 4px)",
|
|
202
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
187
203
|
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
188
204
|
fontSize: '12px',
|
|
189
205
|
fontWeight: 'normal',
|
|
190
206
|
lineHeight: 16 / 12
|
|
191
|
-
},
|
|
207
|
+
},
|
|
208
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
209
|
+
ellipsis('100%'));
|
|
192
210
|
|
|
193
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
194
212
|
var Description = exports.Description = _styled.default.div({
|
|
195
213
|
marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
196
215
|
color: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
197
216
|
fontSize: '12px',
|
|
198
217
|
fontWeight: 'normal',
|
|
@@ -201,39 +220,43 @@ var Description = exports.Description = _styled.default.div({
|
|
|
201
220
|
overflow: 'hidden'
|
|
202
221
|
});
|
|
203
222
|
|
|
204
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
223
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
205
224
|
var ResolvedViewIconWrapper = exports.ResolvedViewIconWrapper = _styled.default.div({
|
|
206
225
|
marginTop: "var(--ds-space-050, 4px)"
|
|
207
226
|
});
|
|
208
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
209
228
|
var Thumbnail = exports.Thumbnail = _styled.default.div(borderRadius, csssize(48), function (props) {
|
|
210
229
|
return {
|
|
211
230
|
float: 'right',
|
|
212
231
|
margin: "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)"),
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
213
233
|
backgroundColor: "var(--ds-skeleton, ".concat(colors.N30, ")"),
|
|
234
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
214
235
|
backgroundImage: "url(".concat(props.src, ")"),
|
|
215
236
|
backgroundSize: 'cover'
|
|
216
237
|
};
|
|
217
238
|
});
|
|
218
239
|
|
|
219
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
240
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
220
241
|
var UsersWrapper = exports.UsersWrapper = _styled.default.div({
|
|
221
242
|
marginTop: "var(--ds-space-100, 8px)"
|
|
222
243
|
});
|
|
223
244
|
|
|
224
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
225
246
|
var ActionsWrapper = exports.ActionsWrapper = _styled.default.div({
|
|
226
247
|
marginTop: "var(--ds-space-100, 8px)",
|
|
227
248
|
textAlign: 'right',
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
228
250
|
'> *': {
|
|
229
251
|
marginTop: "var(--ds-space-050, 4px)"
|
|
230
252
|
},
|
|
253
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
231
254
|
'> * + *': {
|
|
232
255
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
233
256
|
}
|
|
234
257
|
});
|
|
235
258
|
|
|
236
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
259
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
237
260
|
var AlertWrapper = exports.AlertWrapper = _styled.default.div({
|
|
238
261
|
position: 'absolute',
|
|
239
262
|
top: 0,
|
|
@@ -16,6 +16,21 @@ var _messages = require("../../../messages");
|
|
|
16
16
|
var _utils = require("../../common/utils");
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
|
|
19
|
+
var messageStyles = (0, _react.css)({
|
|
20
|
+
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
marginLeft: (0, _utils.gs)(0.5),
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
+
marginRight: (0, _utils.gs)(0.5),
|
|
25
|
+
display: '-webkit-box',
|
|
26
|
+
overflow: 'hidden',
|
|
27
|
+
textOverflow: 'ellipsis',
|
|
28
|
+
WebkitLineClamp: 1,
|
|
29
|
+
WebkitBoxOrient: 'vertical',
|
|
30
|
+
// Fallback options.
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
maxHeight: (0, _utils.gs)(3)
|
|
33
|
+
});
|
|
19
34
|
var EmbedCardErroredView = exports.EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
20
35
|
var onRetry = _ref.onRetry,
|
|
21
36
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -33,20 +48,7 @@ var EmbedCardErroredView = exports.EmbedCardErroredView = function EmbedCardErro
|
|
|
33
48
|
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
34
49
|
label: "error-icon"
|
|
35
50
|
}), (0, _react.jsx)("span", {
|
|
36
|
-
css:
|
|
37
|
-
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
39
|
-
marginLeft: (0, _utils.gs)(0.5),
|
|
40
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
41
|
-
marginRight: (0, _utils.gs)(0.5),
|
|
42
|
-
display: '-webkit-box',
|
|
43
|
-
overflow: 'hidden',
|
|
44
|
-
textOverflow: 'ellipsis',
|
|
45
|
-
WebkitLineClamp: 1,
|
|
46
|
-
WebkitBoxOrient: 'vertical',
|
|
47
|
-
// Fallback options.
|
|
48
|
-
maxHeight: (0, _utils.gs)(3)
|
|
49
|
-
}
|
|
51
|
+
css: messageStyles
|
|
50
52
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.could_not_load_link)), (0, _react.jsx)(_customThemeButton.default, {
|
|
51
53
|
testId: "err-view-retry",
|
|
52
54
|
appearance: "link",
|
|
@@ -6,10 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.titleStyles = exports.imageStyles = exports.descriptionStyles = exports.contentStyles = exports.containerStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _utils = require("../../../common/utils");
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
10
|
var containerStyles = exports.containerStyles = (0, _react.css)({
|
|
10
11
|
display: 'grid',
|
|
11
12
|
height: 'inherit'
|
|
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 contentStyles = exports.contentStyles = (0, _react.css)({
|
|
14
17
|
display: 'flex',
|
|
15
18
|
flexDirection: 'column',
|
|
@@ -18,19 +21,26 @@ var contentStyles = exports.contentStyles = (0, _react.css)({
|
|
|
18
21
|
margin: 'auto',
|
|
19
22
|
padding: "var(--ds-space-200, 16px)",
|
|
20
23
|
gap: "var(--ds-space-250, 20px)",
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
25
|
maxWidth: (0, _utils.gs)(50)
|
|
22
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
23
29
|
var imageStyles = exports.imageStyles = (0, _react.css)({
|
|
24
30
|
height: '120px',
|
|
25
31
|
width: '180px',
|
|
26
32
|
objectFit: 'contain',
|
|
27
33
|
objectPosition: 'center center'
|
|
28
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
|
|
29
37
|
var titleStyles = exports.titleStyles = (0, _react.css)({
|
|
30
38
|
textAlign: 'center',
|
|
31
39
|
margin: 0,
|
|
32
40
|
padding: 0
|
|
33
41
|
});
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
34
44
|
var descriptionStyles = exports.descriptionStyles = (0, _react.css)({
|
|
35
45
|
fontSize: '1em',
|
|
36
46
|
textAlign: 'center'
|
|
@@ -80,26 +80,31 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
80
80
|
}))
|
|
81
81
|
);
|
|
82
82
|
}, [onResizeButtonClick, size, testId]);
|
|
83
|
-
return (
|
|
84
|
-
css
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
83
|
+
return (
|
|
84
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
85
|
+
(0, _react.jsx)("div", {
|
|
86
|
+
css: _styled.containerStyles
|
|
87
|
+
}, icon &&
|
|
88
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
89
|
+
(0, _react.jsx)("div", {
|
|
90
|
+
css: _styled.iconCss,
|
|
91
|
+
"data-testid": "".concat(testId, "-icon")
|
|
92
|
+
}, (0, _react.jsx)(_Icon.Icon, icon)), (0, _react.jsx)("div", {
|
|
93
|
+
css: _styled.titleCss
|
|
94
|
+
}, (0, _react.jsx)("h3", {
|
|
95
|
+
"data-testid": "".concat(testId, "-title")
|
|
96
|
+
}, title), (0, _react.jsx)("span", {
|
|
97
|
+
tabIndex: 0
|
|
98
|
+
})), (0, _react.jsx)("div", {
|
|
99
|
+
css: _styled.actionCss
|
|
100
|
+
}, downloadButton, urlButton, sizeButton, (0, _react.jsx)(_linkInfoButton.default, {
|
|
101
|
+
content: (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
|
|
102
|
+
icon: (0, _react.jsx)(_cross.default, {
|
|
103
|
+
label: _messages.messages.preview_close.defaultMessage
|
|
104
|
+
}),
|
|
105
|
+
onClick: onClose,
|
|
106
|
+
testId: "".concat(testId, "-close")
|
|
107
|
+
})))
|
|
108
|
+
);
|
|
104
109
|
};
|
|
105
110
|
var _default = exports.default = LinkInfo;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.titleCss = exports.iconCss = exports.containerStyles = exports.actionCss = 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 containerStyles = exports.containerStyles = (0, _react.css)({
|
|
9
10
|
alignItems: 'center',
|
|
10
11
|
display: 'flex',
|
|
@@ -19,7 +20,9 @@ var iconSize = '24px';
|
|
|
19
20
|
// EDM-7328: CSS Specificity
|
|
20
21
|
// An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
|
|
21
22
|
// Specify flex ui icon selector to increase specificity weight to 0-2-1.
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
24
|
var iconCss = exports.iconCss = (0, _react.css)({
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
26
|
'&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
|
|
24
27
|
height: iconSize,
|
|
25
28
|
minHeight: iconSize,
|
|
@@ -30,8 +33,10 @@ var iconCss = exports.iconCss = (0, _react.css)({
|
|
|
30
33
|
}
|
|
31
34
|
});
|
|
32
35
|
var height = '20px';
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
33
37
|
var titleCss = exports.titleCss = (0, _react.css)({
|
|
34
38
|
flex: '1 1 auto',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
40
|
h3: {
|
|
36
41
|
flex: '1 1 auto',
|
|
37
42
|
fontSize: '16px',
|
|
@@ -49,17 +54,21 @@ var titleCss = exports.titleCss = (0, _react.css)({
|
|
|
49
54
|
}
|
|
50
55
|
}
|
|
51
56
|
});
|
|
57
|
+
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
52
59
|
var actionCss = exports.actionCss = (0, _react.css)({
|
|
53
60
|
display: 'flex',
|
|
54
61
|
flex: '0 0 auto',
|
|
55
62
|
gap: "var(--ds-space-050, 4px)",
|
|
56
63
|
lineHeight: height,
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
57
65
|
span: {
|
|
58
66
|
lineHeight: height
|
|
59
67
|
},
|
|
60
68
|
'@media only screen and (max-width: 980px)': {
|
|
61
69
|
// Hide resize button if the screen is smaller than the min width
|
|
62
70
|
// or too small to have enough impact to matter.
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
63
72
|
'.smart-link-resize-button': {
|
|
64
73
|
display: 'none'
|
|
65
74
|
}
|
|
@@ -20,8 +20,10 @@ var getButtonStyle = function getButtonStyle(size, iconOnly) {
|
|
|
20
20
|
switch (size) {
|
|
21
21
|
case _constants.SmartLinkSize.Large:
|
|
22
22
|
return iconOnly ? (0, _react2.css)({
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
24
|
'button, button:hover, button:focus, button:active': {
|
|
24
25
|
padding: 0,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
27
|
'> span': {
|
|
26
28
|
margin: 0
|
|
27
29
|
}
|
|
@@ -32,6 +34,7 @@ var getButtonStyle = function getButtonStyle(size, iconOnly) {
|
|
|
32
34
|
fontSize: '0.75rem',
|
|
33
35
|
fontWeight: 500,
|
|
34
36
|
lineHeight: '1rem',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
38
|
'button, button:hover, button:focus, button:active': [{
|
|
36
39
|
lineHeight: '1rem'
|
|
37
40
|
}, iconOnly ? "\n padding: 0.125rem;\n " : "\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n "]
|
|
@@ -64,6 +67,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
64
67
|
};
|
|
65
68
|
}, []);
|
|
66
69
|
return (0, _react2.jsx)("div", {
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
67
71
|
css: [getButtonStyle(size, iconOnly), overrideCss],
|
|
68
72
|
"data-testid": "".concat(testId, "-button-wrapper")
|
|
69
73
|
}, (0, _react2.jsx)(_tooltip.default, {
|
|
@@ -24,14 +24,17 @@ var getIconWidth = function getIconWidth(size) {
|
|
|
24
24
|
};
|
|
25
25
|
var getIconStyles = function getIconStyles(isDisabled) {
|
|
26
26
|
return (0, _react2.css)({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
28
|
color: isDisabled ? "var(--ds-text-disabled, #6B778C)" : "var(--ds-icon, #44546F)"
|
|
28
29
|
});
|
|
29
30
|
};
|
|
30
31
|
var stackItemIconSizeStyles = (0, _utils.getIconSizeStyles)('20px');
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
33
|
var stackItemIconStyles = (0, _react2.css)(stackItemIconSizeStyles, {
|
|
32
34
|
display: 'inline-block',
|
|
33
35
|
lineHeight: 0,
|
|
34
36
|
padding: "var(--ds-space-025, 2px)",
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
38
|
'span,svg,img': {
|
|
36
39
|
lineHeight: 0
|
|
37
40
|
}
|
|
@@ -43,7 +46,11 @@ var ActionIcon = function ActionIcon(_ref) {
|
|
|
43
46
|
isDisabled = _ref.isDisabled,
|
|
44
47
|
asStackItemIcon = _ref.asStackItemIcon;
|
|
45
48
|
return (0, _react2.jsx)("span", {
|
|
46
|
-
css: [
|
|
49
|
+
css: [
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
51
|
+
getIconStyles(isDisabled),
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
53
|
+
asStackItemIcon ? stackItemIconStyles : (0, _utils.getIconSizeStyles)(getIconWidth(size))],
|
|
47
54
|
"data-testid": "".concat(testId, "-icon")
|
|
48
55
|
}, icon);
|
|
49
56
|
};
|
package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -19,6 +19,7 @@ var buttonStyles = (0, _primitives.xcss)({
|
|
|
19
19
|
cursor: 'pointer',
|
|
20
20
|
padding: 'space.050',
|
|
21
21
|
width: '100%',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
22
23
|
':focus:not(:focus-visible)': {
|
|
23
24
|
outline: 'none'
|
|
24
25
|
},
|
|
@@ -5,22 +5,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
11
|
var _react = require("@emotion/react");
|
|
10
12
|
var _action = _interopRequireDefault(require("../action"));
|
|
11
13
|
var _reactIntlNext = require("react-intl-next");
|
|
12
14
|
var _messages = require("../../../../../messages");
|
|
13
15
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
14
16
|
var _relatedLinksActionIcon = _interopRequireDefault(require("./related-links-action-icon"));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var
|
|
17
|
+
var _react2 = require("react");
|
|
18
|
+
var _modal = require("../../../../../state/modal");
|
|
19
|
+
var _excluded = ["onClick"];
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /** @jsx jsx */
|
|
22
|
+
var RelatedLinksModal = /*#__PURE__*/(0, _react2.lazy)(function () {
|
|
23
|
+
return Promise.resolve().then(function () {
|
|
24
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_smartcard-RelatedLinksModal" */'../../../../RelatedLinksModal'));
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
var ViewRelatedLinksAction = function ViewRelatedLinksAction(_ref) {
|
|
18
28
|
var _context$actions;
|
|
29
|
+
var onClickCallback = _ref.onClick,
|
|
30
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
|
+
var modal = (0, _modal.useSmartLinkModal)();
|
|
19
32
|
var context = (0, _flexibleUiContext.useFlexibleUiContext)();
|
|
20
33
|
var actionData = context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions.ViewRelatedLinksAction;
|
|
34
|
+
var onClick = (0, _react2.useCallback)(function () {
|
|
35
|
+
var url = actionData === null || actionData === void 0 ? void 0 : actionData.url;
|
|
36
|
+
if (url) {
|
|
37
|
+
modal.open((0, _react.jsx)(RelatedLinksModal, {
|
|
38
|
+
url: url,
|
|
39
|
+
showModal: true,
|
|
40
|
+
onClose: function onClose() {
|
|
41
|
+
return modal.close();
|
|
42
|
+
}
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
46
|
+
}, [actionData === null || actionData === void 0 ? void 0 : actionData.url, modal, onClickCallback]);
|
|
21
47
|
return actionData ? (0, _react.jsx)(_action.default, (0, _extends2.default)({
|
|
22
48
|
content: (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.related_links_view_related_urls),
|
|
23
49
|
icon: (0, _react.jsx)(_relatedLinksActionIcon.default, null),
|
|
50
|
+
onClick: onClick,
|
|
24
51
|
testId: "smart-action-view-related-links-action",
|
|
25
52
|
ariaLabel: "View most recent pages or content types coming from or found on this link"
|
|
26
53
|
}, props)) : null;
|
|
@@ -88,7 +88,9 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
88
88
|
},
|
|
89
89
|
onError: onError,
|
|
90
90
|
onLoadingChange: onLoadingChange,
|
|
91
|
-
size: size
|
|
91
|
+
size: size
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
93
|
+
,
|
|
92
94
|
xcss: (0, _primitives.xcss)({
|
|
93
95
|
paddingInline: padding
|
|
94
96
|
}),
|
|
@@ -28,8 +28,10 @@ var _excluded = ["triggerRef"];
|
|
|
28
28
|
var styles = (0, _react2.css)({
|
|
29
29
|
display: 'inline-flex',
|
|
30
30
|
lineHeight: '1rem',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
32
|
'> div': {
|
|
32
33
|
alignItems: 'center',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
35
|
'button:focus-visible': {
|
|
34
36
|
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
35
37
|
}
|
|
@@ -28,6 +28,7 @@ var tooltipMsgStyles = (0, _primitives.xcss)({
|
|
|
28
28
|
});
|
|
29
29
|
var iconTooltipLinkStyles = (0, _react2.css)({
|
|
30
30
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
32
|
'&:link, :visited': {
|
|
32
33
|
color: "var(--ds-text-subtlest, #626F86)"
|
|
33
34
|
},
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -43,10 +43,13 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
43
43
|
}, [storageClient, discovered]);
|
|
44
44
|
var component = (0, _react2.useMemo)(function () {
|
|
45
45
|
if (!discovered) {
|
|
46
|
-
return (
|
|
47
|
-
css
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
return (
|
|
47
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
48
|
+
(0, _react.jsx)("span", {
|
|
49
|
+
css: (0, _styled.getPulseStyles)(),
|
|
50
|
+
"data-testid": "".concat(testId, "-discovery")
|
|
51
|
+
}, children)
|
|
52
|
+
);
|
|
50
53
|
}
|
|
51
54
|
}, [children, discovered, testId]);
|
|
52
55
|
return component !== null && component !== void 0 ? component : children;
|
|
@@ -155,7 +155,9 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
155
155
|
*/,
|
|
156
156
|
overrideCss: (0, _react2.css)({
|
|
157
157
|
overflow: 'visible'
|
|
158
|
-
},
|
|
158
|
+
},
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
160
|
+
props.overrideCss)
|
|
159
161
|
}), status === 'done' && /*#__PURE__*/_react.default.createElement(_aiEventSummaryViewed.default, {
|
|
160
162
|
fromCache: isSummarisedOnMountRef.current
|
|
161
163
|
}), /*#__PURE__*/_react.default.createElement(_motionWrapper.default, {
|
|
@@ -41,6 +41,7 @@ var Block = function Block(_ref) {
|
|
|
41
41
|
onRender && onRender();
|
|
42
42
|
}, [onRender]);
|
|
43
43
|
return (0, _react2.jsx)("div", {
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
44
45
|
css: [getBlockStyles(direction, size), overrideCss],
|
|
45
46
|
"data-smart-block": true,
|
|
46
47
|
"data-testid": testId,
|