@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 27.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109796](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109796)
|
|
8
|
+
[`c9e8631e9b24f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c9e8631e9b24f) -
|
|
9
|
+
EDM-10129: add functionality to View Related Links Action to open Related Links Modal
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 27.5.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#108244](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108244)
|
|
20
|
+
[`400b3c1c97aab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/400b3c1c97aab) -
|
|
21
|
+
Add loading view for related links modal
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 27.5.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "27.
|
|
25
|
+
packageVersion: "27.6.0"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -13,6 +13,9 @@ var _ActionIcon = require("./ActionIcon");
|
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
|
|
15
15
|
var spinnerDelay = exports.spinnerDelay = 1000;
|
|
16
|
+
var baseTextStyles = (0, _react.css)({
|
|
17
|
+
transition: 'opacity 0.3s'
|
|
18
|
+
});
|
|
16
19
|
var Action = exports.Action = function Action(_ref) {
|
|
17
20
|
var promise = _ref.promise,
|
|
18
21
|
text = _ref.text,
|
|
@@ -45,10 +48,9 @@ var Action = exports.Action = function Action(_ref) {
|
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
}, (0, _react.jsx)("div", {
|
|
48
|
-
css: {
|
|
49
|
-
transition: 'opacity 0.3s',
|
|
51
|
+
css: [baseTextStyles, {
|
|
50
52
|
opacity: state !== 'init' ? 0 : 1
|
|
51
|
-
}
|
|
53
|
+
}]
|
|
52
54
|
}, text), (0, _react.jsx)(_ActionIcon.ActionIcon, {
|
|
53
55
|
state: state
|
|
54
56
|
}));
|
|
@@ -20,14 +20,18 @@ var _excluded = ["triggerRef"];
|
|
|
20
20
|
/** @jsx jsx */
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
+
var buttonStyles = (0, _react.css)({
|
|
24
|
+
height: 'auto'
|
|
25
|
+
});
|
|
23
26
|
var ActionList = exports.ActionList = function ActionList(_ref) {
|
|
24
27
|
var items = _ref.items;
|
|
25
28
|
var actionsToShow = items.slice(0, 2);
|
|
26
29
|
var actionsToList = items.slice(2, items.length);
|
|
27
30
|
return (0, _react.jsx)("div", {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
28
32
|
css: (0, _utils.mq)({
|
|
29
33
|
display: 'flex',
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
31
35
|
marginTop: [(0, _utils.gs)(2), 0]
|
|
32
36
|
})
|
|
33
37
|
}, (0, _react.jsx)(_buttonGroup.default, null, actionsToShow.map(function (action) {
|
|
@@ -35,7 +39,7 @@ var ActionList = exports.ActionList = function ActionList(_ref) {
|
|
|
35
39
|
key: action.id
|
|
36
40
|
}, action));
|
|
37
41
|
})), actionsToList.length ?
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
43
|
(0, _react.jsx)("div", {
|
|
40
44
|
css: {
|
|
41
45
|
marginLeft: (0, _utils.gs)(0.5)
|
|
@@ -49,9 +53,7 @@ var ActionList = exports.ActionList = function ActionList(_ref) {
|
|
|
49
53
|
label: "more"
|
|
50
54
|
}),
|
|
51
55
|
ref: triggerRef,
|
|
52
|
-
css:
|
|
53
|
-
height: 'auto'
|
|
54
|
-
},
|
|
56
|
+
css: buttonStyles,
|
|
55
57
|
testId: "dropdown-trigger"
|
|
56
58
|
}));
|
|
57
59
|
},
|
|
@@ -21,25 +21,28 @@ var CollaboratorList = exports.CollaboratorList = function CollaboratorList(_ref
|
|
|
21
21
|
if (items.length === 0) {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
-
return (
|
|
25
|
-
css
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
event
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
event
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
24
|
+
return (
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
|
+
(0, _react.jsx)("span", {
|
|
27
|
+
css: (0, _utils.mq)({
|
|
28
|
+
display: ['none', 'inherit']
|
|
29
|
+
})
|
|
30
|
+
}, (0, _react.jsx)(_avatarGroup.default, {
|
|
31
|
+
maxCount: 4,
|
|
32
|
+
appearance: "stack",
|
|
33
|
+
size: "small",
|
|
34
|
+
data: items,
|
|
35
|
+
onAvatarClick: function onAvatarClick(event) {
|
|
36
|
+
event.stopPropagation();
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
handleAvatarClick(event);
|
|
39
|
+
},
|
|
40
|
+
onMoreClick: function onMoreClick(event) {
|
|
41
|
+
event.stopPropagation();
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
handleMoreAvatarsClick(event);
|
|
44
|
+
},
|
|
45
|
+
testId: testId
|
|
46
|
+
}))
|
|
47
|
+
);
|
|
45
48
|
};
|
|
@@ -20,8 +20,9 @@ var Content = exports.Content = function Content(_ref) {
|
|
|
20
20
|
_ref$isCompact = _ref.isCompact,
|
|
21
21
|
isCompact = _ref$isCompact === void 0 ? false : _ref$isCompact;
|
|
22
22
|
return (0, _react.jsx)("div", {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
24
|
css: (0, _utils.mq)({
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
26
|
padding: isCompact ? (0, _utils.gs)(1) : (0, _utils.gs)(2),
|
|
26
27
|
display: 'flex',
|
|
27
28
|
flexDirection: 'column',
|
|
@@ -14,13 +14,14 @@ var ContentFooter = exports.ContentFooter = function ContentFooter(_ref) {
|
|
|
14
14
|
_ref$hasSpaceBetween = _ref.hasSpaceBetween,
|
|
15
15
|
hasSpaceBetween = _ref$hasSpaceBetween === void 0 ? false : _ref$hasSpaceBetween;
|
|
16
16
|
return (0, _react.jsx)("div", {
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
18
|
css: (0, _utils.mq)({
|
|
18
19
|
display: 'flex',
|
|
19
20
|
flexDirection: ['column', 'row'],
|
|
20
21
|
flexGrow: [1, 'unset'],
|
|
21
22
|
justifyContent: [hasSpaceBetween ? 'space-between' : 'flex-end', 'space-between'],
|
|
22
23
|
alignItems: ['unset', 'center'],
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
25
|
marginTop: [(0, _utils.gs)(1), (0, _utils.gs)(1.5)]
|
|
25
26
|
})
|
|
26
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -15,6 +15,13 @@ var _useLinkClicked = require("../../../state/analytics/useLinkClicked");
|
|
|
15
15
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
16
16
|
*/
|
|
17
17
|
var blockCardContentHeaderClassName = exports.blockCardContentHeaderClassName = 'block-card-content-header';
|
|
18
|
+
var styles = (0, _react.css)({
|
|
19
|
+
display: 'flex',
|
|
20
|
+
alignItems: 'flex-start',
|
|
21
|
+
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
22
|
+
// due to HTML its unwrapping behaviour on paste.
|
|
23
|
+
MozUserSelect: 'none'
|
|
24
|
+
});
|
|
18
25
|
var ContentHeader = exports.ContentHeader = function ContentHeader(_ref) {
|
|
19
26
|
var onClick = _ref.onClick,
|
|
20
27
|
link = _ref.link,
|
|
@@ -25,13 +32,7 @@ var ContentHeader = exports.ContentHeader = function ContentHeader(_ref) {
|
|
|
25
32
|
onMouseDown: onMouseDown,
|
|
26
33
|
href: link,
|
|
27
34
|
target: "_blank",
|
|
28
|
-
css:
|
|
29
|
-
display: 'flex',
|
|
30
|
-
alignItems: 'flex-start',
|
|
31
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
32
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
33
|
-
MozUserSelect: 'none'
|
|
34
|
-
},
|
|
35
|
+
css: styles,
|
|
35
36
|
"data-trello-do-not-use-override": "block-card-content-header"
|
|
36
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
37
38
|
,
|
|
@@ -10,16 +10,19 @@ var _react2 = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _utils = require("../../common/utils");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
var styles = (0, _react.css)({
|
|
14
|
+
// 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
|
+
height: (0, _utils.gs)(2.5),
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
|
+
width: (0, _utils.gs)(2),
|
|
18
|
+
display: 'flex',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
justifyContent: 'center',
|
|
21
|
+
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
22
|
+
});
|
|
13
23
|
var Emoji = exports.Emoji = function Emoji(_ref) {
|
|
14
24
|
var emoji = _ref.emoji;
|
|
15
25
|
return (0, _react.jsx)("span", {
|
|
16
|
-
css:
|
|
17
|
-
height: (0, _utils.gs)(2.5),
|
|
18
|
-
width: (0, _utils.gs)(2),
|
|
19
|
-
display: 'flex',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
23
|
-
}
|
|
26
|
+
css: styles
|
|
24
27
|
}, emoji);
|
|
25
28
|
};
|
|
@@ -34,13 +34,16 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
34
34
|
className = _ref.className,
|
|
35
35
|
isFluidHeight = _ref.isFluidHeight;
|
|
36
36
|
return (0, _react.jsx)("div", {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
37
38
|
css: (0, _utils.mq)(_objectSpread(_objectSpread({}, sharedFrameStyles), {}, {
|
|
38
39
|
'&:hover': isHoverable ? {
|
|
39
40
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4064
|
|
40
41
|
backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20A, ")"),
|
|
41
42
|
cursor: 'pointer'
|
|
42
43
|
} : undefined,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
45
|
minHeight: isFluidHeight ? 0 : [(0, _utils.gs)(21), (0, _utils.gs)(15)],
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
44
47
|
borderRadius: isSelected ? (0, _utils.br)() : (0, _utils.br)(0.5),
|
|
45
48
|
border: "2px solid ".concat(isSelected ? "var(--ds-border-selected, ".concat(_colors.B200, ")") : 'transparent'),
|
|
46
49
|
justifyContent: 'space-between',
|
|
@@ -62,18 +65,21 @@ var CompactFrame = exports.CompactFrame = function CompactFrame(_ref2) {
|
|
|
62
65
|
className = _ref2.className,
|
|
63
66
|
inheritDimensions = _ref2.inheritDimensions;
|
|
64
67
|
return (0, _react.jsx)("div", {
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
65
69
|
css: (0, _utils.mq)(_objectSpread(_objectSpread({}, sharedFrameStyles), {}, {
|
|
66
70
|
'&:hover': isHoverable ? {
|
|
67
71
|
backgroundColor: "var(--ds-background-neutral-hovered, ".concat(_colors.N30A, ")")
|
|
68
72
|
} : undefined,
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
69
74
|
borderRadius: isSelected ? (0, _utils.br)() : (0, _utils.br)(0.5),
|
|
70
75
|
border: isSelected ? "2px solid ".concat("var(--ds-border-selected, ".concat(_colors.B200, ")")) : '',
|
|
71
76
|
justifyContent: 'center',
|
|
72
77
|
alignItems: 'center',
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
73
79
|
height: inheritDimensions ? '100%' : (0, _utils.gs)(5),
|
|
74
80
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20A, ")"),
|
|
75
81
|
width: ['calc(100% - 16px)', '100%'],
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
82
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
77
83
|
padding: ["0px ".concat((0, _utils.gs)(1)), '0']
|
|
78
84
|
})),
|
|
79
85
|
"data-testid": testId
|
|
@@ -8,6 +8,10 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
|
|
11
|
+
var styles = (0, _react.css)({
|
|
12
|
+
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
13
|
+
wordBreak: 'break-all'
|
|
14
|
+
});
|
|
11
15
|
var Link = exports.Link = function Link(_ref) {
|
|
12
16
|
var url = _ref.url,
|
|
13
17
|
_ref$testId = _ref.testId,
|
|
@@ -18,9 +22,6 @@ var Link = exports.Link = function Link(_ref) {
|
|
|
18
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
19
23
|
,
|
|
20
24
|
className: className,
|
|
21
|
-
css:
|
|
22
|
-
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
23
|
-
wordBreak: 'break-all'
|
|
24
|
-
}
|
|
25
|
+
css: styles
|
|
25
26
|
}, url);
|
|
26
27
|
};
|
|
@@ -16,6 +16,22 @@ var _utils = require("../../common/utils");
|
|
|
16
16
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
17
17
|
*/
|
|
18
18
|
var blockCardContentHeaderNameClassName = exports.blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
19
|
+
var baseStyles = (0, _react.css)({
|
|
20
|
+
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
21
|
+
fontWeight: 500,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
+
lineHeight: (0, _utils.gs)(2.5),
|
|
24
|
+
// Spec: show max two lines.
|
|
25
|
+
display: '-webkit-box',
|
|
26
|
+
overflow: 'hidden',
|
|
27
|
+
textOverflow: 'ellipsis',
|
|
28
|
+
wordBreak: 'break-word',
|
|
29
|
+
WebkitLineClamp: 2,
|
|
30
|
+
WebkitBoxOrient: 'vertical',
|
|
31
|
+
// Fallback options.
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
maxHeight: (0, _utils.gs)(6)
|
|
34
|
+
});
|
|
19
35
|
var Name = exports.Name = function Name(_ref) {
|
|
20
36
|
var name = _ref.name,
|
|
21
37
|
_ref$isLeftPadded = _ref.isLeftPadded,
|
|
@@ -23,23 +39,13 @@ var Name = exports.Name = function Name(_ref) {
|
|
|
23
39
|
testId = _ref.testId,
|
|
24
40
|
textColor = _ref.textColor;
|
|
25
41
|
return (0, _react.jsx)("span", {
|
|
26
|
-
css:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line @atlaskit/
|
|
42
|
+
css: [baseStyles,
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
44
|
+
{
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
46
|
marginLeft: isLeftPadded ? (0, _utils.gs)(1) : '0',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
display: '-webkit-box',
|
|
34
|
-
overflow: 'hidden',
|
|
35
|
-
textOverflow: 'ellipsis',
|
|
36
|
-
wordBreak: 'break-word',
|
|
37
|
-
WebkitLineClamp: 2,
|
|
38
|
-
WebkitBoxOrient: 'vertical',
|
|
39
|
-
color: textColor ? textColor : 'inherit',
|
|
40
|
-
// Fallback options.
|
|
41
|
-
maxHeight: (0, _utils.gs)(6)
|
|
42
|
-
},
|
|
47
|
+
color: textColor ? textColor : 'inherit'
|
|
48
|
+
}],
|
|
43
49
|
"data-testid": testId,
|
|
44
50
|
"data-trello-do-not-use-override": "block-card-content-header-name"
|
|
45
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -9,6 +9,28 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
9
9
|
var _utils = require("../../common/utils");
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
|
|
12
|
+
var wrapperStyles = (0, _react.css)({
|
|
13
|
+
display: 'flex',
|
|
14
|
+
alignItems: 'center',
|
|
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
|
+
fontSize: (0, _utils.gs)(1.5),
|
|
17
|
+
whiteSpace: 'normal'
|
|
18
|
+
});
|
|
19
|
+
var imgStyles = (0, _react.css)({
|
|
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
|
+
height: (0, _utils.gs)(1.5),
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
+
width: (0, _utils.gs)(1.5)
|
|
24
|
+
});
|
|
25
|
+
var textStyles = (0, _react.css)({
|
|
26
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N300, ")"),
|
|
27
|
+
margin: 0,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
+
marginLeft: (0, _utils.gs)(0.5),
|
|
30
|
+
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
31
|
+
// due to HTML its unwrapping behaviour on paste.
|
|
32
|
+
MozUserSelect: 'none'
|
|
33
|
+
});
|
|
12
34
|
var Provider = exports.Provider = function Provider(_ref) {
|
|
13
35
|
var name = _ref.name,
|
|
14
36
|
icon = _ref.icon;
|
|
@@ -17,29 +39,13 @@ var Provider = exports.Provider = function Provider(_ref) {
|
|
|
17
39
|
iconToRender = (0, _react.jsx)("img", {
|
|
18
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
19
41
|
className: "smart-link-icon",
|
|
20
|
-
css:
|
|
21
|
-
height: (0, _utils.gs)(1.5),
|
|
22
|
-
width: (0, _utils.gs)(1.5)
|
|
23
|
-
},
|
|
42
|
+
css: imgStyles,
|
|
24
43
|
src: icon
|
|
25
44
|
});
|
|
26
45
|
}
|
|
27
46
|
return (0, _react.jsx)("div", {
|
|
28
|
-
css:
|
|
29
|
-
display: 'flex',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
fontSize: (0, _utils.gs)(1.5),
|
|
32
|
-
whiteSpace: 'normal'
|
|
33
|
-
}
|
|
47
|
+
css: wrapperStyles
|
|
34
48
|
}, iconToRender, (0, _react.jsx)("span", {
|
|
35
|
-
css:
|
|
36
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N300, ")"),
|
|
37
|
-
margin: 0,
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
39
|
-
marginLeft: (0, _utils.gs)(0.5),
|
|
40
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
41
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
42
|
-
MozUserSelect: 'none'
|
|
43
|
-
}
|
|
49
|
+
css: textStyles
|
|
44
50
|
}, name));
|
|
45
51
|
};
|
|
@@ -23,6 +23,7 @@ var ThumbnailDefault = exports.ThumbnailDefault = function ThumbnailDefault(_ref
|
|
|
23
23
|
var src = _ref.src,
|
|
24
24
|
testId = _ref.testId;
|
|
25
25
|
return (0, _react.jsx)("div", {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
27
|
css: (0, _utils.mq)(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
27
28
|
backgroundSize: 'cover',
|
|
28
29
|
backgroundRepeat: 'no-repeat',
|
|
@@ -33,11 +34,16 @@ var ThumbnailDefault = exports.ThumbnailDefault = function ThumbnailDefault(_ref
|
|
|
33
34
|
"data-trello-do-not-use-override": testId
|
|
34
35
|
});
|
|
35
36
|
};
|
|
37
|
+
var thumbnailImgStyles = (0, _react.css)({
|
|
38
|
+
height: '90px',
|
|
39
|
+
width: '90px'
|
|
40
|
+
});
|
|
36
41
|
var ThumbnailWithBackground = exports.ThumbnailWithBackground = function ThumbnailWithBackground(_ref2) {
|
|
37
42
|
var src = _ref2.src,
|
|
38
43
|
color = _ref2.color,
|
|
39
44
|
testId = _ref2.testId;
|
|
40
45
|
return (0, _react.jsx)("div", {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
41
47
|
css: (0, _utils.mq)(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
42
48
|
backgroundColor: color,
|
|
43
49
|
display: 'flex',
|
|
@@ -48,9 +54,6 @@ var ThumbnailWithBackground = exports.ThumbnailWithBackground = function Thumbna
|
|
|
48
54
|
"data-trello-do-not-use-override": testId
|
|
49
55
|
}, (0, _react.jsx)("img", {
|
|
50
56
|
src: src,
|
|
51
|
-
css:
|
|
52
|
-
height: '90px',
|
|
53
|
-
width: '90px'
|
|
54
|
-
}
|
|
57
|
+
css: thumbnailImgStyles
|
|
55
58
|
}));
|
|
56
59
|
};
|
|
@@ -7,13 +7,14 @@ exports.UnresolvedText = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
|
|
10
|
+
var styles = (0, _react.css)({
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center'
|
|
13
|
+
});
|
|
10
14
|
var UnresolvedText = exports.UnresolvedText = function UnresolvedText(_ref) {
|
|
11
15
|
var icon = _ref.icon,
|
|
12
16
|
text = _ref.text;
|
|
13
17
|
return (0, _react.jsx)("span", {
|
|
14
|
-
css:
|
|
15
|
-
display: 'flex',
|
|
16
|
-
alignItems: 'center'
|
|
17
|
-
}
|
|
18
|
+
css: styles
|
|
18
19
|
}, icon, text);
|
|
19
20
|
};
|
|
@@ -110,6 +110,7 @@ var ResolvedView = exports.ResolvedView = function ResolvedView(_ref) {
|
|
|
110
110
|
textColor: titleTextColor
|
|
111
111
|
}), lozenge && (0, _react.jsx)(_styled.LozengeBlockWrapper, {
|
|
112
112
|
css: {
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
113
114
|
height: (0, _utils.gs)(2.5),
|
|
114
115
|
display: 'flex',
|
|
115
116
|
alignItems: 'center',
|
|
@@ -22,6 +22,12 @@ var _utils = require("../../common/utils");
|
|
|
22
22
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
23
23
|
*/
|
|
24
24
|
var blockCardResolvingViewClassName = exports.blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
25
|
+
var messageStyles = (0, _react.css)({
|
|
26
|
+
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
27
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N90, ")"),
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
+
marginLeft: (0, _utils.gs)(0.5)
|
|
30
|
+
});
|
|
25
31
|
var ResolvingView = exports.ResolvingView = function ResolvingView(_ref) {
|
|
26
32
|
var _ref$isSelected = _ref.isSelected,
|
|
27
33
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
@@ -41,11 +47,6 @@ var ResolvingView = exports.ResolvingView = function ResolvingView(_ref) {
|
|
|
41
47
|
primaryColor: "var(--ds-icon-subtle, ".concat(_colors.N50, ")"),
|
|
42
48
|
label: "document-icon"
|
|
43
49
|
}), (0, _react.jsx)("span", {
|
|
44
|
-
css:
|
|
45
|
-
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
46
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N90, ")"),
|
|
47
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
48
|
-
marginLeft: (0, _utils.gs)(0.5)
|
|
49
|
-
}
|
|
50
|
+
css: messageStyles
|
|
50
51
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.loading)));
|
|
51
52
|
};
|
|
@@ -8,32 +8,45 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
// in editor prosemirror adds padding-left so we need to overwrite it
|
|
10
10
|
// renderer overwrites the margin-right so we need to add it here
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
12
|
var metadataBlockCss = exports.metadataBlockCss = (0, _react.css)({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
14
|
'span[data-smart-element-avatar-group]': {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
13
16
|
'> ul': {
|
|
14
17
|
paddingLeft: '0px',
|
|
15
18
|
marginRight: "var(--ds-space-100, 0.5rem)"
|
|
16
19
|
}
|
|
17
20
|
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
22
|
'[data-smart-element-group]': {
|
|
19
23
|
lineHeight: '1rem'
|
|
20
24
|
}
|
|
21
25
|
});
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
27
|
var titleBlockCss = exports.titleBlockCss = (0, _react.css)({
|
|
23
28
|
gap: "var(--ds-space-100, 0.5em)",
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
30
|
"[data-smart-element='Title']": {
|
|
25
31
|
fontWeight: 600
|
|
26
32
|
}
|
|
27
33
|
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
28
36
|
var footerBlockCss = exports.footerBlockCss = (0, _react.css)({
|
|
29
37
|
height: '1.5rem',
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
39
|
'.actions-button-group': {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
41
|
'button, button:hover, button:focus, button:active': {
|
|
32
42
|
fontSize: '0.875rem'
|
|
33
43
|
}
|
|
34
44
|
}
|
|
35
45
|
});
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
36
48
|
var flexibleBlockCardStyle = exports.flexibleBlockCardStyle = (0, _react.css)({
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
50
|
'& > div': {
|
|
38
51
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
39
52
|
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")"))
|
|
@@ -10,8 +10,11 @@ var _styled = require("../styled");
|
|
|
10
10
|
|
|
11
11
|
var withFlexibleUIBlockCardStyle = exports.withFlexibleUIBlockCardStyle = function withFlexibleUIBlockCardStyle(FlexibleBlockCardView) {
|
|
12
12
|
return function (props) {
|
|
13
|
-
return (
|
|
14
|
-
css
|
|
15
|
-
|
|
13
|
+
return (
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
+
(0, _react.jsx)("div", {
|
|
16
|
+
css: _styled.flexibleBlockCardStyle
|
|
17
|
+
}, (0, _react.jsx)(FlexibleBlockCardView, props))
|
|
18
|
+
);
|
|
16
19
|
};
|
|
17
20
|
};
|
|
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.LozengeBlockWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var LozengeBlockWrapper = exports.LozengeBlockWrapper = _styled.default.span({
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
13
|
'& > span': {
|
|
13
14
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
14
15
|
}
|
|
@@ -28,6 +28,16 @@ function mergeRefs(refs) {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
var iframeStyles = (0, _react.css)({
|
|
32
|
+
border: 0,
|
|
33
|
+
top: 0,
|
|
34
|
+
left: 0,
|
|
35
|
+
width: '100%',
|
|
36
|
+
height: '100%',
|
|
37
|
+
position: 'relative',
|
|
38
|
+
overflow: 'hidden',
|
|
39
|
+
borderRadius: '3px'
|
|
40
|
+
});
|
|
31
41
|
var Frame = exports.Frame = /*#__PURE__*/_react2.default.forwardRef(function (_ref, iframeRef) {
|
|
32
42
|
var url = _ref.url,
|
|
33
43
|
_ref$isTrusted = _ref.isTrusted,
|
|
@@ -109,16 +119,7 @@ var Frame = exports.Frame = /*#__PURE__*/_react2.default.forwardRef(function (_r
|
|
|
109
119
|
src: url,
|
|
110
120
|
"data-testid": "".concat(testId, "-frame"),
|
|
111
121
|
"data-iframe-loaded": isIframeLoaded,
|
|
112
|
-
css:
|
|
113
|
-
border: 0,
|
|
114
|
-
top: 0,
|
|
115
|
-
left: 0,
|
|
116
|
-
width: '100%',
|
|
117
|
-
height: '100%',
|
|
118
|
-
position: 'relative',
|
|
119
|
-
overflow: 'hidden',
|
|
120
|
-
borderRadius: '3px'
|
|
121
|
-
},
|
|
122
|
+
css: iframeStyles,
|
|
122
123
|
onMouseEnter: function onMouseEnter() {
|
|
123
124
|
return setMouseOver(true);
|
|
124
125
|
},
|