@atlaskit/smart-card 27.5.3 → 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 +21 -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/RelatedLinksModal/views/resolving/index.js +27 -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/RelatedLinksModal/views/resolving/index.js +18 -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/RelatedLinksModal/views/resolving/index.js +20 -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/view/RelatedLinksModal/views/resolving/index.d.ts +3 -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/dist/types-ts4.5/view/RelatedLinksModal/views/resolving/index.d.ts +3 -0
- package/package.json +183 -191
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import DocumentFilledIcon from '@atlaskit/icon/glyph/document-filled';
|
|
4
4
|
import { N50, N90 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
@@ -14,6 +14,12 @@ import { gs } from '../../common/utils';
|
|
|
14
14
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
15
15
|
*/
|
|
16
16
|
export const blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
17
|
+
const messageStyles = css({
|
|
18
|
+
fontSize: `${fontSize()}px`,
|
|
19
|
+
color: `var(--ds-text-subtlest, ${N90})`,
|
|
20
|
+
// 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
|
+
marginLeft: gs(0.5)
|
|
22
|
+
});
|
|
17
23
|
export const ResolvingView = ({
|
|
18
24
|
isSelected = false,
|
|
19
25
|
testId = 'block-card-resolving-view',
|
|
@@ -31,10 +37,5 @@ export const ResolvingView = ({
|
|
|
31
37
|
primaryColor: `var(--ds-icon-subtle, ${N50})`,
|
|
32
38
|
label: "document-icon"
|
|
33
39
|
}), jsx("span", {
|
|
34
|
-
css:
|
|
35
|
-
fontSize: `${fontSize()}px`,
|
|
36
|
-
color: `var(--ds-text-subtlest, ${N90})`,
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
38
|
-
marginLeft: gs(0.5)
|
|
39
|
-
}
|
|
40
|
+
css: messageStyles
|
|
40
41
|
}, jsx(FormattedMessage, messages.loading)));
|
|
@@ -3,32 +3,45 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
|
|
4
4
|
// in editor prosemirror adds padding-left so we need to overwrite it
|
|
5
5
|
// renderer overwrites the margin-right so we need to add it here
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
7
|
export const metadataBlockCss = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
7
9
|
'span[data-smart-element-avatar-group]': {
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
11
|
'> ul': {
|
|
9
12
|
paddingLeft: '0px',
|
|
10
13
|
marginRight: "var(--ds-space-100, 0.5rem)"
|
|
11
14
|
}
|
|
12
15
|
},
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
13
17
|
'[data-smart-element-group]': {
|
|
14
18
|
lineHeight: '1rem'
|
|
15
19
|
}
|
|
16
20
|
});
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
17
22
|
export const titleBlockCss = css({
|
|
18
23
|
gap: "var(--ds-space-100, 0.5em)",
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
19
25
|
"[data-smart-element='Title']": {
|
|
20
26
|
fontWeight: 600
|
|
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 const footerBlockCss = css({
|
|
24
32
|
height: '1.5rem',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
34
|
'.actions-button-group': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
36
|
'button, button:hover, button:focus, button:active': {
|
|
27
37
|
fontSize: '0.875rem'
|
|
28
38
|
}
|
|
29
39
|
}
|
|
30
40
|
});
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
43
|
export const flexibleBlockCardStyle = css({
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
45
|
'& > div': {
|
|
33
46
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
34
47
|
border: `1px solid ${`var(--ds-border, ${N40})`}`
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { flexibleBlockCardStyle } from '../styled';
|
|
4
4
|
export const withFlexibleUIBlockCardStyle = FlexibleBlockCardView => props => {
|
|
5
|
-
return
|
|
6
|
-
css
|
|
7
|
-
|
|
5
|
+
return (
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
7
|
+
jsx("div", {
|
|
8
|
+
css: flexibleBlockCardStyle
|
|
9
|
+
}, jsx(FlexibleBlockCardView, props))
|
|
10
|
+
);
|
|
8
11
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export const LozengeBlockWrapper = styled.span({
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
5
6
|
'& > span': {
|
|
6
7
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
7
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import React, { useEffect, useState, useRef } from 'react';
|
|
4
4
|
import { di } from 'react-magnetic-di';
|
|
5
5
|
import { getIframeSandboxAttribute } from '../../../utils';
|
|
@@ -16,6 +16,16 @@ function mergeRefs(refs) {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
+
const iframeStyles = css({
|
|
20
|
+
border: 0,
|
|
21
|
+
top: 0,
|
|
22
|
+
left: 0,
|
|
23
|
+
width: '100%',
|
|
24
|
+
height: '100%',
|
|
25
|
+
position: 'relative',
|
|
26
|
+
overflow: 'hidden',
|
|
27
|
+
borderRadius: '3px'
|
|
28
|
+
});
|
|
19
29
|
export const Frame = /*#__PURE__*/React.forwardRef(({
|
|
20
30
|
url,
|
|
21
31
|
isTrusted = false,
|
|
@@ -83,16 +93,7 @@ export const Frame = /*#__PURE__*/React.forwardRef(({
|
|
|
83
93
|
src: url,
|
|
84
94
|
"data-testid": `${testId}-frame`,
|
|
85
95
|
"data-iframe-loaded": isIframeLoaded,
|
|
86
|
-
css:
|
|
87
|
-
border: 0,
|
|
88
|
-
top: 0,
|
|
89
|
-
left: 0,
|
|
90
|
-
width: '100%',
|
|
91
|
-
height: '100%',
|
|
92
|
-
position: 'relative',
|
|
93
|
-
overflow: 'hidden',
|
|
94
|
-
borderRadius: '3px'
|
|
95
|
-
},
|
|
96
|
+
css: iframeStyles,
|
|
96
97
|
onMouseEnter: () => setMouseOver(true),
|
|
97
98
|
onMouseLeave: () => setMouseOver(false),
|
|
98
99
|
allowFullScreen: true,
|
|
@@ -136,14 +136,14 @@ function visible({
|
|
|
136
136
|
return frameStyle === 'show' ? visibleStyles : '';
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
139
|
+
// 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
|
|
140
140
|
export const LinkWrapper = styled.div`
|
|
141
141
|
${props => wrapperStyles(props)} &:hover {
|
|
142
142
|
text-decoration: none;
|
|
143
143
|
}
|
|
144
144
|
`;
|
|
145
145
|
|
|
146
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
146
|
+
// 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
|
|
147
147
|
export const Wrapper = styled.div(props => wrapperStyles(props), {
|
|
148
148
|
// We are keeping this margin as a hardcoded variable as it is not a standard token size and needs
|
|
149
149
|
// to be thoroughly checked with a designer so that we do not miss an unintended visual change
|
|
@@ -151,7 +151,7 @@ export const Wrapper = styled.div(props => wrapperStyles(props), {
|
|
|
151
151
|
marginTop: '10px'
|
|
152
152
|
});
|
|
153
153
|
export const embedHeaderHeight = 32;
|
|
154
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
155
155
|
export const Header = styled.div({
|
|
156
156
|
height: `${embedHeaderHeight}px`,
|
|
157
157
|
position: 'absolute',
|
|
@@ -159,21 +159,31 @@ export const Header = styled.div({
|
|
|
159
159
|
width: '100%',
|
|
160
160
|
display: 'flex',
|
|
161
161
|
alignItems: 'center',
|
|
162
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
162
163
|
color: `var(--ds-icon, ${colors.N300})`,
|
|
163
164
|
opacity: 0,
|
|
164
165
|
transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
|
|
165
|
-
},
|
|
166
|
+
},
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
168
|
+
({
|
|
166
169
|
frameStyle
|
|
167
170
|
}) => frameStyle === 'show' ? `
|
|
168
171
|
box-sizing: border-box;
|
|
169
172
|
padding: 0 ${"var(--ds-space-100, 8px)"};
|
|
170
173
|
` : '');
|
|
171
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
172
|
-
export const IconWrapper = styled.div(
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
175
|
+
export const IconWrapper = styled.div(
|
|
176
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
177
|
+
borderRadius,
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
179
|
+
csssize(16),
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
181
|
+
({
|
|
173
182
|
isPlaceholder
|
|
174
183
|
}) => {
|
|
175
184
|
if (isPlaceholder) {
|
|
176
185
|
return `
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
177
187
|
background-color: ${`var(--ds-skeleton, ${colors.N30})`};
|
|
178
188
|
`;
|
|
179
189
|
} else {
|
|
@@ -183,8 +193,10 @@ export const IconWrapper = styled.div(borderRadius, csssize(16), ({
|
|
|
183
193
|
marginRight: "var(--ds-space-050, 4px)"
|
|
184
194
|
});
|
|
185
195
|
|
|
186
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
187
|
-
export const TextWrapper = styled.div(
|
|
196
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
197
|
+
export const TextWrapper = styled.div(
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
199
|
+
({
|
|
188
200
|
isPlaceholder
|
|
189
201
|
}) => {
|
|
190
202
|
if (isPlaceholder) {
|
|
@@ -192,25 +204,29 @@ export const TextWrapper = styled.div(({
|
|
|
192
204
|
${borderRadius}
|
|
193
205
|
width: 125px;
|
|
194
206
|
height: 12px;
|
|
207
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
195
208
|
background-color: ${`var(--ds-skeleton, ${colors.N30})`};
|
|
196
209
|
`;
|
|
197
210
|
} else {
|
|
198
211
|
return '';
|
|
199
212
|
}
|
|
200
213
|
}, {
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
201
215
|
color: `var(--ds-text-subtlest, ${colors.N300})`,
|
|
202
216
|
fontSize: '12px',
|
|
203
217
|
lineHeight: '16px'
|
|
204
|
-
},
|
|
218
|
+
},
|
|
219
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
220
|
+
ellipsis('none'));
|
|
205
221
|
|
|
206
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
222
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
207
223
|
export const TooltipWrapper = styled.div({
|
|
208
224
|
overflow: 'hidden'
|
|
209
225
|
});
|
|
210
226
|
// NB: `overflow` is kept as `hidden` since
|
|
211
227
|
// the internal contents of the `iframe` should
|
|
212
228
|
// manage scrolling behaviour.
|
|
213
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
229
|
+
// 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
|
|
214
230
|
export const Content = styled.div`
|
|
215
231
|
${contentBorderRadius};
|
|
216
232
|
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
@@ -255,7 +271,7 @@ export const Content = styled.div`
|
|
|
255
271
|
top: ${"var(--ds-space-400, 32px)"};
|
|
256
272
|
`}
|
|
257
273
|
`;
|
|
258
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
274
|
+
// 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
|
|
259
275
|
export const Image = styled.img(({
|
|
260
276
|
size
|
|
261
277
|
}) => csssize(size), borderRadius, {
|
|
@@ -263,7 +279,7 @@ export const Image = styled.img(({
|
|
|
263
279
|
});
|
|
264
280
|
export const maxAvatarCount = 6;
|
|
265
281
|
|
|
266
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
282
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
267
283
|
export const ContentWrapper = styled.div({
|
|
268
284
|
display: 'flex',
|
|
269
285
|
flexDirection: 'row',
|
|
@@ -271,8 +287,9 @@ export const ContentWrapper = styled.div({
|
|
|
271
287
|
padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`
|
|
272
288
|
});
|
|
273
289
|
|
|
274
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
290
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
275
291
|
export const Title = styled.div({
|
|
292
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
276
293
|
color: `var(--ds-text, ${colors.N900})`,
|
|
277
294
|
fontSize: '16px',
|
|
278
295
|
fontWeight: 500,
|
|
@@ -281,18 +298,22 @@ export const Title = styled.div({
|
|
|
281
298
|
overflow: 'hidden'
|
|
282
299
|
});
|
|
283
300
|
|
|
284
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
301
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
285
302
|
export const Byline = styled.div({
|
|
286
303
|
marginTop: "var(--ds-space-050, 4px)",
|
|
304
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
287
305
|
color: `var(--ds-text-subtlest, ${colors.N300})`,
|
|
288
306
|
fontSize: '12px',
|
|
289
307
|
fontWeight: 'normal',
|
|
290
308
|
lineHeight: 16 / 12
|
|
291
|
-
},
|
|
309
|
+
},
|
|
310
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
311
|
+
ellipsis('100%'));
|
|
292
312
|
|
|
293
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
313
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
294
314
|
export const Description = styled.div({
|
|
295
315
|
marginTop: `calc(${"var(--ds-space-100, 8px)"} - 1px)`,
|
|
316
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
296
317
|
color: `var(--ds-text, ${colors.N800})`,
|
|
297
318
|
fontSize: '12px',
|
|
298
319
|
fontWeight: 'normal',
|
|
@@ -301,37 +322,41 @@ export const Description = styled.div({
|
|
|
301
322
|
overflow: 'hidden'
|
|
302
323
|
});
|
|
303
324
|
|
|
304
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
325
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
305
326
|
export const ResolvedViewIconWrapper = styled.div({
|
|
306
327
|
marginTop: "var(--ds-space-050, 4px)"
|
|
307
328
|
});
|
|
308
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
329
|
+
// 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
|
|
309
330
|
export const Thumbnail = styled.div(borderRadius, csssize(48), props => ({
|
|
310
331
|
float: 'right',
|
|
311
332
|
margin: `${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`,
|
|
333
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
312
334
|
backgroundColor: `var(--ds-skeleton, ${colors.N30})`,
|
|
335
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
313
336
|
backgroundImage: `url(${props.src})`,
|
|
314
337
|
backgroundSize: 'cover'
|
|
315
338
|
}));
|
|
316
339
|
|
|
317
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
340
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
318
341
|
export const UsersWrapper = styled.div({
|
|
319
342
|
marginTop: "var(--ds-space-100, 8px)"
|
|
320
343
|
});
|
|
321
344
|
|
|
322
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
345
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
323
346
|
export const ActionsWrapper = styled.div({
|
|
324
347
|
marginTop: "var(--ds-space-100, 8px)",
|
|
325
348
|
textAlign: 'right',
|
|
349
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
326
350
|
'> *': {
|
|
327
351
|
marginTop: "var(--ds-space-050, 4px)"
|
|
328
352
|
},
|
|
353
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
329
354
|
'> * + *': {
|
|
330
355
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
331
356
|
}
|
|
332
357
|
});
|
|
333
358
|
|
|
334
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
359
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
335
360
|
export const AlertWrapper = styled.div({
|
|
336
361
|
position: 'absolute',
|
|
337
362
|
top: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
4
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
@@ -8,6 +8,21 @@ import { Frame } from '../../BlockCard/components/Frame';
|
|
|
8
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import { messages } from '../../../messages';
|
|
10
10
|
import { gs } from '../../common/utils';
|
|
11
|
+
const messageStyles = css({
|
|
12
|
+
fontSize: `${fontSize()}px`,
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
|
+
marginLeft: gs(0.5),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
marginRight: gs(0.5),
|
|
17
|
+
display: '-webkit-box',
|
|
18
|
+
overflow: 'hidden',
|
|
19
|
+
textOverflow: 'ellipsis',
|
|
20
|
+
WebkitLineClamp: 1,
|
|
21
|
+
WebkitBoxOrient: 'vertical',
|
|
22
|
+
// Fallback options.
|
|
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
|
+
maxHeight: gs(3)
|
|
25
|
+
});
|
|
11
26
|
export const EmbedCardErroredView = ({
|
|
12
27
|
onRetry,
|
|
13
28
|
isSelected = false,
|
|
@@ -23,20 +38,7 @@ export const EmbedCardErroredView = ({
|
|
|
23
38
|
primaryColor: `var(--ds-icon-danger, ${R300})`,
|
|
24
39
|
label: "error-icon"
|
|
25
40
|
}), jsx("span", {
|
|
26
|
-
css:
|
|
27
|
-
fontSize: `${fontSize()}px`,
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
29
|
-
marginLeft: gs(0.5),
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
31
|
-
marginRight: gs(0.5),
|
|
32
|
-
display: '-webkit-box',
|
|
33
|
-
overflow: 'hidden',
|
|
34
|
-
textOverflow: 'ellipsis',
|
|
35
|
-
WebkitLineClamp: 1,
|
|
36
|
-
WebkitBoxOrient: 'vertical',
|
|
37
|
-
// Fallback options.
|
|
38
|
-
maxHeight: gs(3)
|
|
39
|
-
}
|
|
41
|
+
css: messageStyles
|
|
40
42
|
}, jsx(FormattedMessage, messages.could_not_load_link)), jsx(Button, {
|
|
41
43
|
testId: "err-view-retry",
|
|
42
44
|
appearance: "link",
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { gs } from '../../../common/utils';
|
|
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 const containerStyles = css({
|
|
4
6
|
display: 'grid',
|
|
5
7
|
height: 'inherit'
|
|
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 const contentStyles = css({
|
|
8
12
|
display: 'flex',
|
|
9
13
|
flexDirection: 'column',
|
|
@@ -12,19 +16,26 @@ export const contentStyles = css({
|
|
|
12
16
|
margin: 'auto',
|
|
13
17
|
padding: "var(--ds-space-200, 16px)",
|
|
14
18
|
gap: "var(--ds-space-250, 20px)",
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
20
|
maxWidth: gs(50)
|
|
16
21
|
});
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
17
24
|
export const imageStyles = css({
|
|
18
25
|
height: '120px',
|
|
19
26
|
width: '180px',
|
|
20
27
|
objectFit: 'contain',
|
|
21
28
|
objectPosition: 'center center'
|
|
22
29
|
});
|
|
30
|
+
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
23
32
|
export const titleStyles = css({
|
|
24
33
|
textAlign: 'center',
|
|
25
34
|
margin: 0,
|
|
26
35
|
padding: 0
|
|
27
36
|
});
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
28
39
|
export const descriptionStyles = css({
|
|
29
40
|
fontSize: '1em',
|
|
30
41
|
textAlign: 'center'
|
|
@@ -71,26 +71,31 @@ const LinkInfo = ({
|
|
|
71
71
|
}))
|
|
72
72
|
);
|
|
73
73
|
}, [onResizeButtonClick, size, testId]);
|
|
74
|
-
return
|
|
75
|
-
css
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
74
|
+
return (
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
76
|
+
jsx("div", {
|
|
77
|
+
css: containerStyles
|
|
78
|
+
}, icon &&
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
80
|
+
jsx("div", {
|
|
81
|
+
css: iconCss,
|
|
82
|
+
"data-testid": `${testId}-icon`
|
|
83
|
+
}, jsx(Icon, icon)), jsx("div", {
|
|
84
|
+
css: titleCss
|
|
85
|
+
}, jsx("h3", {
|
|
86
|
+
"data-testid": `${testId}-title`
|
|
87
|
+
}, title), jsx("span", {
|
|
88
|
+
tabIndex: 0
|
|
89
|
+
})), jsx("div", {
|
|
90
|
+
css: actionCss
|
|
91
|
+
}, downloadButton, urlButton, sizeButton, jsx(LinkInfoButton, {
|
|
92
|
+
content: jsx(FormattedMessage, messages.preview_close),
|
|
93
|
+
icon: jsx(CrossIcon, {
|
|
94
|
+
label: messages.preview_close.defaultMessage
|
|
95
|
+
}),
|
|
96
|
+
onClick: onClose,
|
|
97
|
+
testId: `${testId}-close`
|
|
98
|
+
})))
|
|
99
|
+
);
|
|
95
100
|
};
|
|
96
101
|
export default LinkInfo;
|
|
@@ -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 const containerStyles = css({
|
|
3
4
|
alignItems: 'center',
|
|
4
5
|
display: 'flex',
|
|
@@ -13,7 +14,9 @@ const iconSize = '24px';
|
|
|
13
14
|
// EDM-7328: CSS Specificity
|
|
14
15
|
// An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
|
|
15
16
|
// Specify flex ui icon selector to increase specificity weight to 0-2-1.
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
16
18
|
export const iconCss = css({
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
17
20
|
'&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
|
|
18
21
|
height: iconSize,
|
|
19
22
|
minHeight: iconSize,
|
|
@@ -24,8 +27,10 @@ export const iconCss = css({
|
|
|
24
27
|
}
|
|
25
28
|
});
|
|
26
29
|
const height = '20px';
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
27
31
|
export const titleCss = css({
|
|
28
32
|
flex: '1 1 auto',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
34
|
h3: {
|
|
30
35
|
flex: '1 1 auto',
|
|
31
36
|
fontSize: '16px',
|
|
@@ -43,17 +48,21 @@ export const titleCss = css({
|
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
});
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
46
53
|
export const actionCss = css({
|
|
47
54
|
display: 'flex',
|
|
48
55
|
flex: '0 0 auto',
|
|
49
56
|
gap: "var(--ds-space-050, 4px)",
|
|
50
57
|
lineHeight: height,
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
51
59
|
span: {
|
|
52
60
|
lineHeight: height
|
|
53
61
|
},
|
|
54
62
|
'@media only screen and (max-width: 980px)': {
|
|
55
63
|
// Hide resize button if the screen is smaller than the min width
|
|
56
64
|
// or too small to have enough impact to matter.
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
57
66
|
'.smart-link-resize-button': {
|
|
58
67
|
display: 'none'
|
|
59
68
|
}
|
|
@@ -9,8 +9,10 @@ const getButtonStyle = (size, iconOnly) => {
|
|
|
9
9
|
switch (size) {
|
|
10
10
|
case SmartLinkSize.Large:
|
|
11
11
|
return iconOnly ? css({
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
13
|
'button, button:hover, button:focus, button:active': {
|
|
13
14
|
padding: 0,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
16
|
'> span': {
|
|
15
17
|
margin: 0
|
|
16
18
|
}
|
|
@@ -21,6 +23,7 @@ const getButtonStyle = (size, iconOnly) => {
|
|
|
21
23
|
fontSize: '0.75rem',
|
|
22
24
|
fontWeight: 500,
|
|
23
25
|
lineHeight: '1rem',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
27
|
'button, button:hover, button:focus, button:active': [{
|
|
25
28
|
lineHeight: '1rem'
|
|
26
29
|
}, iconOnly ? `
|
|
@@ -57,6 +60,7 @@ const ActionButton = ({
|
|
|
57
60
|
handler();
|
|
58
61
|
}, []);
|
|
59
62
|
return jsx("div", {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
60
64
|
css: [getButtonStyle(size, iconOnly), overrideCss],
|
|
61
65
|
"data-testid": `${testId}-button-wrapper`
|
|
62
66
|
}, jsx(Tooltip, {
|
|
@@ -15,13 +15,16 @@ const getIconWidth = size => {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
const getIconStyles = isDisabled => css({
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
19
|
color: isDisabled ? "var(--ds-text-disabled, #6B778C)" : "var(--ds-icon, #44546F)"
|
|
19
20
|
});
|
|
20
21
|
const stackItemIconSizeStyles = getIconSizeStyles('20px');
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
23
|
const stackItemIconStyles = css(stackItemIconSizeStyles, {
|
|
22
24
|
display: 'inline-block',
|
|
23
25
|
lineHeight: 0,
|
|
24
26
|
padding: "var(--ds-space-025, 2px)",
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
28
|
'span,svg,img': {
|
|
26
29
|
lineHeight: 0
|
|
27
30
|
}
|
|
@@ -33,7 +36,11 @@ const ActionIcon = ({
|
|
|
33
36
|
isDisabled,
|
|
34
37
|
asStackItemIcon
|
|
35
38
|
}) => jsx("span", {
|
|
36
|
-
css: [
|
|
39
|
+
css: [
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
41
|
+
getIconStyles(isDisabled),
|
|
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
|
|
43
|
+
asStackItemIcon ? stackItemIconStyles : getIconSizeStyles(getIconWidth(size))],
|
|
37
44
|
"data-testid": `${testId}-icon`
|
|
38
45
|
}, icon);
|
|
39
46
|
export default ActionIcon;
|