@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
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { gs, mq } from '../../common/utils';
|
|
7
7
|
export var Thumbnail = function Thumbnail(props) {
|
|
8
8
|
return props.color ? jsx(ThumbnailWithBackground, props) : jsx(ThumbnailDefault, props);
|
|
@@ -17,6 +17,7 @@ export var ThumbnailDefault = function ThumbnailDefault(_ref) {
|
|
|
17
17
|
var src = _ref.src,
|
|
18
18
|
testId = _ref.testId;
|
|
19
19
|
return jsx("div", {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
20
21
|
css: mq(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
21
22
|
backgroundSize: 'cover',
|
|
22
23
|
backgroundRepeat: 'no-repeat',
|
|
@@ -27,11 +28,16 @@ export var ThumbnailDefault = function ThumbnailDefault(_ref) {
|
|
|
27
28
|
"data-trello-do-not-use-override": testId
|
|
28
29
|
});
|
|
29
30
|
};
|
|
31
|
+
var thumbnailImgStyles = css({
|
|
32
|
+
height: '90px',
|
|
33
|
+
width: '90px'
|
|
34
|
+
});
|
|
30
35
|
export var ThumbnailWithBackground = function ThumbnailWithBackground(_ref2) {
|
|
31
36
|
var src = _ref2.src,
|
|
32
37
|
color = _ref2.color,
|
|
33
38
|
testId = _ref2.testId;
|
|
34
39
|
return jsx("div", {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
41
|
css: mq(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
36
42
|
backgroundColor: color,
|
|
37
43
|
display: 'flex',
|
|
@@ -42,9 +48,6 @@ export var ThumbnailWithBackground = function ThumbnailWithBackground(_ref2) {
|
|
|
42
48
|
"data-trello-do-not-use-override": testId
|
|
43
49
|
}, jsx("img", {
|
|
44
50
|
src: src,
|
|
45
|
-
css:
|
|
46
|
-
height: '90px',
|
|
47
|
-
width: '90px'
|
|
48
|
-
}
|
|
51
|
+
css: thumbnailImgStyles
|
|
49
52
|
}));
|
|
50
53
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
|
+
var styles = css({
|
|
4
|
+
display: 'flex',
|
|
5
|
+
alignItems: 'center'
|
|
6
|
+
});
|
|
3
7
|
export var UnresolvedText = function UnresolvedText(_ref) {
|
|
4
8
|
var icon = _ref.icon,
|
|
5
9
|
text = _ref.text;
|
|
6
10
|
return jsx("span", {
|
|
7
|
-
css:
|
|
8
|
-
display: 'flex',
|
|
9
|
-
alignItems: 'center'
|
|
10
|
-
}
|
|
11
|
+
css: styles
|
|
11
12
|
}, icon, text);
|
|
12
13
|
};
|
|
@@ -102,6 +102,7 @@ export var ResolvedView = function ResolvedView(_ref) {
|
|
|
102
102
|
textColor: titleTextColor
|
|
103
103
|
}), lozenge && jsx(LozengeBlockWrapper, {
|
|
104
104
|
css: {
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
105
106
|
height: gs(2.5),
|
|
106
107
|
display: 'flex',
|
|
107
108
|
alignItems: 'center',
|
|
@@ -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 var blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
17
|
+
var messageStyles = css({
|
|
18
|
+
fontSize: "".concat(fontSize(), "px"),
|
|
19
|
+
color: "var(--ds-text-subtlest, ".concat(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 var ResolvingView = function ResolvingView(_ref) {
|
|
18
24
|
var _ref$isSelected = _ref.isSelected,
|
|
19
25
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
@@ -33,11 +39,6 @@ export var ResolvingView = function ResolvingView(_ref) {
|
|
|
33
39
|
primaryColor: "var(--ds-icon-subtle, ".concat(N50, ")"),
|
|
34
40
|
label: "document-icon"
|
|
35
41
|
}), jsx("span", {
|
|
36
|
-
css:
|
|
37
|
-
fontSize: "".concat(fontSize(), "px"),
|
|
38
|
-
color: "var(--ds-text-subtlest, ".concat(N90, ")"),
|
|
39
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
40
|
-
marginLeft: gs(0.5)
|
|
41
|
-
}
|
|
42
|
+
css: messageStyles
|
|
42
43
|
}, jsx(FormattedMessage, messages.loading)));
|
|
43
44
|
};
|
|
@@ -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 var 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 var 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 var 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 var 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 ".concat("var(--ds-border, ".concat(N40, ")"))
|
|
@@ -3,8 +3,11 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
import { flexibleBlockCardStyle } from '../styled';
|
|
4
4
|
export var withFlexibleUIBlockCardStyle = function withFlexibleUIBlockCardStyle(FlexibleBlockCardView) {
|
|
5
5
|
return function (props) {
|
|
6
|
-
return
|
|
7
|
-
css
|
|
8
|
-
|
|
6
|
+
return (
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
8
|
+
jsx("div", {
|
|
9
|
+
css: flexibleBlockCardStyle
|
|
10
|
+
}, jsx(FlexibleBlockCardView, props))
|
|
11
|
+
);
|
|
9
12
|
};
|
|
10
13
|
};
|
|
@@ -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 var 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,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import React, { useEffect, useState, useRef } from 'react';
|
|
5
5
|
import { di } from 'react-magnetic-di';
|
|
6
6
|
import { getIframeSandboxAttribute } from '../../../utils';
|
|
@@ -17,6 +17,16 @@ function mergeRefs(refs) {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
+
var iframeStyles = css({
|
|
21
|
+
border: 0,
|
|
22
|
+
top: 0,
|
|
23
|
+
left: 0,
|
|
24
|
+
width: '100%',
|
|
25
|
+
height: '100%',
|
|
26
|
+
position: 'relative',
|
|
27
|
+
overflow: 'hidden',
|
|
28
|
+
borderRadius: '3px'
|
|
29
|
+
});
|
|
20
30
|
export var Frame = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef) {
|
|
21
31
|
var url = _ref.url,
|
|
22
32
|
_ref$isTrusted = _ref.isTrusted,
|
|
@@ -98,16 +108,7 @@ export var Frame = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef) {
|
|
|
98
108
|
src: url,
|
|
99
109
|
"data-testid": "".concat(testId, "-frame"),
|
|
100
110
|
"data-iframe-loaded": isIframeLoaded,
|
|
101
|
-
css:
|
|
102
|
-
border: 0,
|
|
103
|
-
top: 0,
|
|
104
|
-
left: 0,
|
|
105
|
-
width: '100%',
|
|
106
|
-
height: '100%',
|
|
107
|
-
position: 'relative',
|
|
108
|
-
overflow: 'hidden',
|
|
109
|
-
borderRadius: '3px'
|
|
110
|
-
},
|
|
111
|
+
css: iframeStyles,
|
|
111
112
|
onMouseEnter: function onMouseEnter() {
|
|
112
113
|
return setMouseOver(true);
|
|
113
114
|
},
|
|
@@ -66,12 +66,12 @@ function visible(_ref7) {
|
|
|
66
66
|
return frameStyle === 'show' ? visibleStyles : '';
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
69
|
+
// 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
|
|
70
70
|
export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", " &:hover {\n\t\ttext-decoration: none;\n\t}\n"])), function (props) {
|
|
71
71
|
return wrapperStyles(props);
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
74
|
+
// 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
|
|
75
75
|
export var Wrapper = styled.div(function (props) {
|
|
76
76
|
return wrapperStyles(props);
|
|
77
77
|
}, {
|
|
@@ -81,7 +81,7 @@ export var Wrapper = styled.div(function (props) {
|
|
|
81
81
|
marginTop: '10px'
|
|
82
82
|
});
|
|
83
83
|
export var embedHeaderHeight = 32;
|
|
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 -- Ignored via go/DSP-18766
|
|
85
85
|
export var Header = styled.div({
|
|
86
86
|
height: "".concat(embedHeaderHeight, "px"),
|
|
87
87
|
position: 'absolute',
|
|
@@ -89,18 +89,27 @@ export var Header = styled.div({
|
|
|
89
89
|
width: '100%',
|
|
90
90
|
display: 'flex',
|
|
91
91
|
alignItems: 'center',
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
93
|
color: "var(--ds-icon, ".concat(colors.N300, ")"),
|
|
93
94
|
opacity: 0,
|
|
94
95
|
transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
|
|
95
|
-
},
|
|
96
|
+
},
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
98
|
+
function (_ref8) {
|
|
96
99
|
var frameStyle = _ref8.frameStyle;
|
|
97
100
|
return frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
|
|
98
101
|
});
|
|
99
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
100
|
-
export var IconWrapper = styled.div(
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
103
|
+
export var IconWrapper = styled.div(
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
105
|
+
borderRadius,
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
107
|
+
csssize(16),
|
|
108
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
109
|
+
function (_ref9) {
|
|
101
110
|
var isPlaceholder = _ref9.isPlaceholder;
|
|
102
111
|
if (isPlaceholder) {
|
|
103
|
-
return "\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
112
|
+
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 ");
|
|
104
113
|
} else {
|
|
105
114
|
return '';
|
|
106
115
|
}
|
|
@@ -108,28 +117,33 @@ export var IconWrapper = styled.div(borderRadius, csssize(16), function (_ref9)
|
|
|
108
117
|
marginRight: "var(--ds-space-050, 4px)"
|
|
109
118
|
});
|
|
110
119
|
|
|
111
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
112
|
-
export var TextWrapper = styled.div(
|
|
120
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
121
|
+
export var TextWrapper = styled.div(
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
123
|
+
function (_ref10) {
|
|
113
124
|
var isPlaceholder = _ref10.isPlaceholder;
|
|
114
125
|
if (isPlaceholder) {
|
|
115
|
-
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
126
|
+
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 ");
|
|
116
127
|
} else {
|
|
117
128
|
return '';
|
|
118
129
|
}
|
|
119
130
|
}, {
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
120
132
|
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
121
133
|
fontSize: '12px',
|
|
122
134
|
lineHeight: '16px'
|
|
123
|
-
},
|
|
135
|
+
},
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
137
|
+
ellipsis('none'));
|
|
124
138
|
|
|
125
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
126
140
|
export var TooltipWrapper = styled.div({
|
|
127
141
|
overflow: 'hidden'
|
|
128
142
|
});
|
|
129
143
|
// NB: `overflow` is kept as `hidden` since
|
|
130
144
|
// the internal contents of the `iframe` should
|
|
131
145
|
// manage scrolling behaviour.
|
|
132
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
146
|
+
// 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
|
|
133
147
|
export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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(N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
134
148
|
var allowScrollBar = _ref11.allowScrollBar,
|
|
135
149
|
removeOverflow = _ref11.removeOverflow;
|
|
@@ -144,7 +158,7 @@ export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedT
|
|
|
144
158
|
var frameStyle = _ref13.frameStyle;
|
|
145
159
|
return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
|
|
146
160
|
});
|
|
147
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
161
|
+
// 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
|
|
148
162
|
export var Image = styled.img(function (_ref14) {
|
|
149
163
|
var size = _ref14.size;
|
|
150
164
|
return csssize(size);
|
|
@@ -153,7 +167,7 @@ export var Image = styled.img(function (_ref14) {
|
|
|
153
167
|
});
|
|
154
168
|
export var maxAvatarCount = 6;
|
|
155
169
|
|
|
156
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
170
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
157
171
|
export var ContentWrapper = styled.div({
|
|
158
172
|
display: 'flex',
|
|
159
173
|
flexDirection: 'row',
|
|
@@ -161,8 +175,9 @@ export var ContentWrapper = styled.div({
|
|
|
161
175
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
|
|
162
176
|
});
|
|
163
177
|
|
|
164
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
165
179
|
export var Title = styled.div({
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
166
181
|
color: "var(--ds-text, ".concat(colors.N900, ")"),
|
|
167
182
|
fontSize: '16px',
|
|
168
183
|
fontWeight: 500,
|
|
@@ -171,18 +186,22 @@ export var Title = styled.div({
|
|
|
171
186
|
overflow: 'hidden'
|
|
172
187
|
});
|
|
173
188
|
|
|
174
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
189
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
175
190
|
export var Byline = styled.div({
|
|
176
191
|
marginTop: "var(--ds-space-050, 4px)",
|
|
192
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
177
193
|
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
178
194
|
fontSize: '12px',
|
|
179
195
|
fontWeight: 'normal',
|
|
180
196
|
lineHeight: 16 / 12
|
|
181
|
-
},
|
|
197
|
+
},
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
199
|
+
ellipsis('100%'));
|
|
182
200
|
|
|
183
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
201
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
184
202
|
export var Description = styled.div({
|
|
185
203
|
marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
186
205
|
color: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
187
206
|
fontSize: '12px',
|
|
188
207
|
fontWeight: 'normal',
|
|
@@ -191,39 +210,43 @@ export var Description = styled.div({
|
|
|
191
210
|
overflow: 'hidden'
|
|
192
211
|
});
|
|
193
212
|
|
|
194
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
213
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
195
214
|
export var ResolvedViewIconWrapper = styled.div({
|
|
196
215
|
marginTop: "var(--ds-space-050, 4px)"
|
|
197
216
|
});
|
|
198
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
217
|
+
// 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
|
|
199
218
|
export var Thumbnail = styled.div(borderRadius, csssize(48), function (props) {
|
|
200
219
|
return {
|
|
201
220
|
float: 'right',
|
|
202
221
|
margin: "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)"),
|
|
222
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
203
223
|
backgroundColor: "var(--ds-skeleton, ".concat(colors.N30, ")"),
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
204
225
|
backgroundImage: "url(".concat(props.src, ")"),
|
|
205
226
|
backgroundSize: 'cover'
|
|
206
227
|
};
|
|
207
228
|
});
|
|
208
229
|
|
|
209
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
230
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
210
231
|
export var UsersWrapper = styled.div({
|
|
211
232
|
marginTop: "var(--ds-space-100, 8px)"
|
|
212
233
|
});
|
|
213
234
|
|
|
214
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
215
236
|
export var ActionsWrapper = styled.div({
|
|
216
237
|
marginTop: "var(--ds-space-100, 8px)",
|
|
217
238
|
textAlign: 'right',
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
218
240
|
'> *': {
|
|
219
241
|
marginTop: "var(--ds-space-050, 4px)"
|
|
220
242
|
},
|
|
243
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
221
244
|
'> * + *': {
|
|
222
245
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
223
246
|
}
|
|
224
247
|
});
|
|
225
248
|
|
|
226
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
227
250
|
export var AlertWrapper = styled.div({
|
|
228
251
|
position: 'absolute',
|
|
229
252
|
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
|
+
var messageStyles = css({
|
|
12
|
+
fontSize: "".concat(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 var EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
12
27
|
var onRetry = _ref.onRetry,
|
|
13
28
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -25,20 +40,7 @@ export var EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
|
25
40
|
primaryColor: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
26
41
|
label: "error-icon"
|
|
27
42
|
}), jsx("span", {
|
|
28
|
-
css:
|
|
29
|
-
fontSize: "".concat(fontSize(), "px"),
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
31
|
-
marginLeft: gs(0.5),
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
33
|
-
marginRight: gs(0.5),
|
|
34
|
-
display: '-webkit-box',
|
|
35
|
-
overflow: 'hidden',
|
|
36
|
-
textOverflow: 'ellipsis',
|
|
37
|
-
WebkitLineClamp: 1,
|
|
38
|
-
WebkitBoxOrient: 'vertical',
|
|
39
|
-
// Fallback options.
|
|
40
|
-
maxHeight: gs(3)
|
|
41
|
-
}
|
|
43
|
+
css: messageStyles
|
|
42
44
|
}, jsx(FormattedMessage, messages.could_not_load_link)), jsx(Button, {
|
|
43
45
|
testId: "err-view-retry",
|
|
44
46
|
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 var 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 var contentStyles = css({
|
|
8
12
|
display: 'flex',
|
|
9
13
|
flexDirection: 'column',
|
|
@@ -12,19 +16,26 @@ export var 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 var 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 var 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 var descriptionStyles = css({
|
|
29
40
|
fontSize: '1em',
|
|
30
41
|
textAlign: 'center'
|
|
@@ -69,26 +69,31 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
69
69
|
}))
|
|
70
70
|
);
|
|
71
71
|
}, [onResizeButtonClick, size, testId]);
|
|
72
|
-
return
|
|
73
|
-
css
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
return (
|
|
73
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
74
|
+
jsx("div", {
|
|
75
|
+
css: containerStyles
|
|
76
|
+
}, icon &&
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
78
|
+
jsx("div", {
|
|
79
|
+
css: iconCss,
|
|
80
|
+
"data-testid": "".concat(testId, "-icon")
|
|
81
|
+
}, jsx(Icon, icon)), jsx("div", {
|
|
82
|
+
css: titleCss
|
|
83
|
+
}, jsx("h3", {
|
|
84
|
+
"data-testid": "".concat(testId, "-title")
|
|
85
|
+
}, title), jsx("span", {
|
|
86
|
+
tabIndex: 0
|
|
87
|
+
})), jsx("div", {
|
|
88
|
+
css: actionCss
|
|
89
|
+
}, downloadButton, urlButton, sizeButton, jsx(LinkInfoButton, {
|
|
90
|
+
content: jsx(FormattedMessage, messages.preview_close),
|
|
91
|
+
icon: jsx(CrossIcon, {
|
|
92
|
+
label: messages.preview_close.defaultMessage
|
|
93
|
+
}),
|
|
94
|
+
onClick: onClose,
|
|
95
|
+
testId: "".concat(testId, "-close")
|
|
96
|
+
})))
|
|
97
|
+
);
|
|
93
98
|
};
|
|
94
99
|
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 var containerStyles = css({
|
|
3
4
|
alignItems: 'center',
|
|
4
5
|
display: 'flex',
|
|
@@ -13,7 +14,9 @@ var 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 var 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 var iconCss = css({
|
|
|
24
27
|
}
|
|
25
28
|
});
|
|
26
29
|
var 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 var 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 var 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 var 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
|
}
|