@atlaskit/smart-card 27.5.4 → 27.6.1
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/extractors/flexible/actions/extract-ai-summary-action.js +2 -5
- package/dist/cjs/extractors/flexible/index.js +8 -4
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +4 -4
- package/dist/cjs/state/hooks/use-ai-summary/index.js +12 -32
- package/dist/cjs/state/hooks/use-ai-summary-action/index.js +58 -0
- package/dist/cjs/state/hooks/use-ai-summary-config/index.js +4 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/mocks.js +3 -0
- package/dist/cjs/view/BlockCard/components/Action.js +6 -3
- package/dist/cjs/view/BlockCard/components/ActionList.js +8 -5
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +25 -21
- package/dist/cjs/view/BlockCard/components/Content.js +3 -1
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +3 -1
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +9 -7
- package/dist/cjs/view/BlockCard/components/Emoji.js +12 -8
- package/dist/cjs/view/BlockCard/components/Frame.js +8 -2
- package/dist/cjs/view/BlockCard/components/Link.js +6 -4
- package/dist/cjs/view/BlockCard/components/Name.js +23 -16
- package/dist/cjs/view/BlockCard/components/Provider.js +26 -19
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +8 -5
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +6 -4
- package/dist/cjs/view/BlockCard/index.js +2 -0
- package/dist/cjs/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +1 -0
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -0
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +8 -6
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +1 -0
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +15 -0
- package/dist/cjs/view/BlockCard/views/flexible/unresolved-view/index.js +2 -0
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +7 -3
- package/dist/cjs/view/BlockCard/views/styled.js +4 -1
- package/dist/cjs/view/EmbedCard/components/Frame.js +12 -10
- package/dist/cjs/view/EmbedCard/components/styled.js +48 -25
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +17 -14
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +1 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +2 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/styled.js +12 -0
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +2 -0
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +27 -21
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +11 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +6 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +10 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -12
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +30 -3
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +4 -10
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +8 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +9 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +14 -23
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +20 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +5 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +4 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +13 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +8 -3
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +4 -0
- package/dist/cjs/view/FlexibleCard/components/container/index.js +12 -1
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +6 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +24 -13
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +15 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -8
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +12 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +9 -1
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +4 -0
- package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +6 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +13 -1
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +10 -24
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +6 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -0
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -0
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +2 -0
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +8 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +8 -21
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +6 -2
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +32 -28
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +9 -0
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +9 -0
- package/dist/cjs/view/HoverCard/index.js +2 -0
- package/dist/cjs/view/HoverCard/styled.js +17 -8
- package/dist/cjs/view/InlineCard/Frame/styled.js +3 -3
- package/dist/cjs/view/InlineCard/Icon.js +4 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +20 -10
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +3 -1
- package/dist/cjs/view/InlineCard/styled.js +9 -4
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +2 -0
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +3 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +2 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +1 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +2 -0
- package/dist/cjs/view/RelatedLinksModal/index.js +20 -0
- package/dist/cjs/view/RelatedLinksModal/types.js +1 -0
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.js +1 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +2 -0
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +1 -0
- package/dist/cjs/view/common/Byline.js +6 -1
- package/dist/cjs/view/common/Icon.js +9 -1
- package/dist/cjs/view/common/Metadata.js +19 -15
- package/dist/cjs/view/common/MetadataList.js +12 -9
- package/dist/cjs/view/common/ai-icon-loading/index.js +1 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +3 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +4 -0
- package/dist/cjs/view/common/ai-prism/index.js +5 -1
- package/dist/cjs/view/common/ai-summary/index.js +2 -0
- package/dist/cjs/view/common/ai-summary/ulist.js +1 -0
- package/dist/es2019/extractors/flexible/actions/extract-ai-summary-action.js +2 -5
- package/dist/es2019/extractors/flexible/index.js +4 -2
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/es2019/state/hooks/use-ai-summary/index.js +13 -34
- package/dist/es2019/state/hooks/use-ai-summary-action/index.js +54 -0
- package/dist/es2019/state/hooks/use-ai-summary-config/index.js +4 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/mocks.js +3 -0
- package/dist/es2019/view/BlockCard/components/Action.js +7 -4
- package/dist/es2019/view/BlockCard/components/ActionList.js +9 -6
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +25 -21
- package/dist/es2019/view/BlockCard/components/Content.js +3 -1
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +3 -1
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +10 -8
- package/dist/es2019/view/BlockCard/components/Emoji.js +13 -9
- package/dist/es2019/view/BlockCard/components/Frame.js +8 -1
- package/dist/es2019/view/BlockCard/components/Link.js +7 -5
- package/dist/es2019/view/BlockCard/components/Name.js +34 -25
- package/dist/es2019/view/BlockCard/components/Provider.js +27 -20
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +9 -5
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +7 -5
- package/dist/es2019/view/BlockCard/index.js +1 -0
- package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -0
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -0
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -0
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +2 -0
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +9 -7
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +14 -0
- package/dist/es2019/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +7 -3
- package/dist/es2019/view/BlockCard/views/styled.js +3 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +13 -11
- package/dist/es2019/view/EmbedCard/components/styled.js +48 -22
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +18 -15
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/styled.js +12 -0
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -0
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +27 -21
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +10 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +5 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +9 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +2 -8
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +21 -1
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +8 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +10 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +8 -19
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +20 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +4 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +13 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +4 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +8 -2
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +4 -0
- package/dist/es2019/view/FlexibleCard/components/container/index.js +12 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +4 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +10 -2
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +14 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -7
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +12 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +8 -1
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/elements/preview/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +13 -0
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +9 -24
- package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +6 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -0
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/es2019/view/HoverCard/components/ImagePreview.js +2 -0
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +7 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +5 -19
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +6 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +30 -26
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +9 -0
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +8 -0
- package/dist/es2019/view/HoverCard/index.js +1 -0
- package/dist/es2019/view/HoverCard/styled.js +12 -3
- package/dist/es2019/view/InlineCard/Frame/styled.js +6 -2
- package/dist/es2019/view/InlineCard/Icon.js +3 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +19 -10
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +2 -1
- package/dist/es2019/view/InlineCard/styled.js +8 -4
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +1 -0
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +3 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +1 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +1 -0
- package/dist/es2019/view/RelatedLinksModal/index.js +14 -0
- package/dist/es2019/view/RelatedLinksModal/types.js +0 -0
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.js +1 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +1 -0
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +1 -0
- package/dist/es2019/view/common/Byline.js +6 -1
- package/dist/es2019/view/common/Icon.js +9 -1
- package/dist/es2019/view/common/Metadata.js +20 -16
- package/dist/es2019/view/common/MetadataList.js +13 -10
- package/dist/es2019/view/common/ai-icon-loading/index.js +1 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +3 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +4 -0
- package/dist/es2019/view/common/ai-prism/index.js +5 -1
- package/dist/es2019/view/common/ai-summary/index.js +1 -0
- package/dist/es2019/view/common/ai-summary/ulist.js +1 -0
- package/dist/esm/extractors/flexible/actions/extract-ai-summary-action.js +2 -5
- package/dist/esm/extractors/flexible/index.js +8 -4
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +4 -4
- package/dist/esm/state/hooks/use-ai-summary/index.js +13 -33
- package/dist/esm/state/hooks/use-ai-summary-action/index.js +52 -0
- package/dist/esm/state/hooks/use-ai-summary-config/index.js +4 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +3 -0
- package/dist/esm/view/BlockCard/components/Action.js +7 -4
- package/dist/esm/view/BlockCard/components/ActionList.js +9 -6
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +25 -21
- package/dist/esm/view/BlockCard/components/Content.js +3 -1
- package/dist/esm/view/BlockCard/components/ContentFooter.js +3 -1
- package/dist/esm/view/BlockCard/components/ContentHeader.js +10 -8
- package/dist/esm/view/BlockCard/components/Emoji.js +13 -9
- package/dist/esm/view/BlockCard/components/Frame.js +8 -1
- package/dist/esm/view/BlockCard/components/Link.js +7 -5
- package/dist/esm/view/BlockCard/components/Name.js +24 -17
- package/dist/esm/view/BlockCard/components/Provider.js +27 -20
- package/dist/esm/view/BlockCard/components/Thumbnail.js +9 -5
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +7 -5
- package/dist/esm/view/BlockCard/index.js +1 -0
- package/dist/esm/view/BlockCard/views/ErroredView.js +1 -0
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -0
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -0
- package/dist/esm/view/BlockCard/views/ResolvedView.js +2 -0
- package/dist/esm/view/BlockCard/views/ResolvingView.js +9 -7
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +1 -0
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +1 -0
- package/dist/esm/view/BlockCard/views/flexible/styled.js +14 -0
- package/dist/esm/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +7 -3
- package/dist/esm/view/BlockCard/views/styled.js +3 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +13 -11
- package/dist/esm/view/EmbedCard/components/styled.js +48 -24
- package/dist/esm/view/EmbedCard/views/ErroredView.js +18 -15
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/styled.js +12 -0
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +1 -0
- package/dist/esm/view/EmbedModal/components/link-info/index.js +27 -21
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +10 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +5 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +9 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -12
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.js +3 -0
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +26 -1
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +4 -10
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +8 -4
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +10 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +13 -23
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +20 -2
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +4 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +13 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +4 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +8 -2
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +4 -0
- package/dist/esm/view/FlexibleCard/components/container/index.js +12 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +4 -0
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +23 -13
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +14 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -7
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +12 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +8 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/elements/preview/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +13 -0
- package/dist/esm/view/HoverCard/components/ContentContainer.js +10 -24
- package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +6 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -0
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/esm/view/HoverCard/components/ImagePreview.js +2 -0
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +7 -0
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +8 -21
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +6 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +32 -28
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +9 -0
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +8 -0
- package/dist/esm/view/HoverCard/index.js +1 -0
- package/dist/esm/view/HoverCard/styled.js +17 -7
- package/dist/esm/view/InlineCard/Frame/styled.js +3 -2
- package/dist/esm/view/InlineCard/Icon.js +3 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +19 -10
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +2 -1
- package/dist/esm/view/InlineCard/styled.js +8 -4
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +1 -0
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +3 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -0
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +1 -0
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +1 -0
- package/dist/esm/view/RelatedLinksModal/index.js +13 -0
- package/dist/esm/view/RelatedLinksModal/types.js +0 -0
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.js +1 -0
- package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +1 -0
- package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +1 -0
- package/dist/esm/view/common/Byline.js +6 -1
- package/dist/esm/view/common/Icon.js +9 -1
- package/dist/esm/view/common/Metadata.js +20 -16
- package/dist/esm/view/common/MetadataList.js +13 -10
- package/dist/esm/view/common/ai-icon-loading/index.js +1 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +3 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +4 -0
- package/dist/esm/view/common/ai-prism/index.js +5 -1
- package/dist/esm/view/common/ai-summary/index.js +1 -0
- package/dist/esm/view/common/ai-summary/ulist.js +1 -0
- package/dist/types/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types/extractors/flexible/index.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +0 -3
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -1
- package/dist/types/state/hooks/use-ai-summary/index.d.ts +4 -0
- package/dist/types/state/hooks/use-ai-summary-action/index.d.ts +5 -0
- package/dist/types/state/hooks/use-ai-summary-config/types.d.ts +3 -1
- package/dist/types/utils/mocks.d.ts +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/ai-summary-action/ai-summarise-action.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +7 -1
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types/view/RelatedLinksModal/types.d.ts +5 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/index.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +0 -3
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -1
- package/dist/types-ts4.5/state/hooks/use-ai-summary/index.d.ts +4 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary-action/index.d.ts +5 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary-config/types.d.ts +3 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +4 -1
- 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/ai-summary-action/ai-summarise-action.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.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/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +7 -1
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +5 -0
- package/package.json +191 -191
|
@@ -19,7 +19,7 @@ var _flexible = require("../../../../utils/flexible");
|
|
|
19
19
|
var _actionGroup = _interopRequireDefault(require("./action-group"));
|
|
20
20
|
var _elementGroup = _interopRequireDefault(require("./element-group"));
|
|
21
21
|
var _excluded = ["name"];
|
|
22
|
-
var _ElementDisplaySchema, _templateObject;
|
|
22
|
+
var _ElementDisplaySchema, _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
23
|
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); }
|
|
24
24
|
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; }
|
|
25
25
|
// Determine whether the element can be display as inline/block.
|
|
@@ -63,24 +63,29 @@ var getBaseStyles = exports.getBaseStyles = function getBaseStyles(direction, si
|
|
|
63
63
|
return (0, _react2.css)({
|
|
64
64
|
alignItems: 'center',
|
|
65
65
|
display: 'flex',
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
67
|
gap: "".concat(getGapSize(size), "rem"),
|
|
67
68
|
lineHeight: '1rem',
|
|
68
69
|
minWidth: 0,
|
|
69
70
|
overflow: 'hidden'
|
|
70
|
-
},
|
|
71
|
+
},
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
73
|
+
getDirectionStyles(direction), {
|
|
71
74
|
'&:empty': {
|
|
72
75
|
display: 'none'
|
|
73
76
|
},
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
74
78
|
'& > *': {
|
|
75
79
|
minWidth: 0
|
|
76
80
|
},
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
77
82
|
'& > [data-fit-to-content]': {
|
|
78
83
|
minWidth: 'fit-content'
|
|
79
84
|
}
|
|
80
85
|
});
|
|
81
86
|
};
|
|
82
87
|
|
|
83
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
88
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
84
89
|
var highlightRemoveStyles = exports.highlightRemoveStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\toutline: none !important;\n\toutline-color: inherit;\n\tcolor: inherit;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-touch-callout: none;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n"])));
|
|
85
90
|
var isActionGroup = function isActionGroup(node) {
|
|
86
91
|
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _actionGroup.default;
|
|
@@ -11,6 +11,8 @@ var _reactRenderImage = _interopRequireDefault(require("react-render-image"));
|
|
|
11
11
|
var _loadingSkeleton = _interopRequireDefault(require("../loading-skeleton"));
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
14
16
|
var ImageIcon = function ImageIcon(_ref) {
|
|
15
17
|
var defaultIcon = _ref.defaultIcon,
|
|
16
18
|
testId = _ref.testId,
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
12
14
|
var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
13
15
|
var testId = _ref.testId,
|
|
14
16
|
width = _ref.width,
|
|
@@ -22,7 +24,9 @@ var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
|
22
24
|
}
|
|
23
25
|
});
|
|
24
26
|
var styles = (0, _react2.css)({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
28
|
width: "".concat(width, "rem"),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
30
|
height: "".concat(height, "rem"),
|
|
27
31
|
borderRadius: '2px',
|
|
28
32
|
userSelect: 'none',
|
|
@@ -19,6 +19,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
19
19
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
20
20
|
var _templateObject;
|
|
21
21
|
/** @jsx jsx */
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
23
|
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); }
|
|
23
24
|
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; }
|
|
24
25
|
var elevationStyles = (0, _react2.css)({
|
|
@@ -59,6 +60,7 @@ var getPadding = function getPadding(size) {
|
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
62
|
var clickableContainerStyles = (0, _react2.css)({
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
62
64
|
'a, button, .has-action': {
|
|
63
65
|
position: 'relative',
|
|
64
66
|
zIndex: 1
|
|
@@ -70,12 +72,20 @@ var getContainerPaddingStyles = function getContainerPaddingStyles(size, hidePad
|
|
|
70
72
|
var previewOnLeft = childrenOptions.previewOnLeft,
|
|
71
73
|
previewOnRight = childrenOptions.previewOnRight;
|
|
72
74
|
return (0, _react2.css)({
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
73
76
|
'--container-padding': padding,
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
74
78
|
'--container-gap-left': previewOnLeft ? gap : padding,
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
75
80
|
'--container-gap-right': previewOnRight ? gap : padding,
|
|
76
81
|
'--preview-block-width': '30%',
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
83
|
padding: padding
|
|
78
|
-
},
|
|
84
|
+
},
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
86
|
+
previewOnLeft ? "padding-left: calc(var(--preview-block-width) + ".concat(gap, ");") : '',
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
88
|
+
previewOnRight ? "padding-right: calc(var(--preview-block-width) + ".concat(gap, ");") : '');
|
|
79
89
|
};
|
|
80
90
|
var getChildrenOptions = function getChildrenOptions(children, context) {
|
|
81
91
|
var options = {};
|
|
@@ -192,6 +202,7 @@ var Container = function Container(_ref3) {
|
|
|
192
202
|
// unresolved link (unauthorized, forbidden, not found, etc.)
|
|
193
203
|
var canShowAuthTooltip = showAuthTooltip && status === 'unauthorized' && retry !== undefined;
|
|
194
204
|
var container = (0, _react2.jsx)("div", {
|
|
205
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
195
206
|
css: getContainerStyles(size, hideBackground, hideElevation, hidePadding, clickableContainer, childrenOptions),
|
|
196
207
|
"data-smart-link-container": true,
|
|
197
208
|
"data-testid": testId
|
|
@@ -10,6 +10,8 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _useLinkClicked = require("../../../../../state/analytics/useLinkClicked");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
var styles = (0, _react2.css)({
|
|
14
16
|
// Stretch the invisible link over the whole of the post.
|
|
15
17
|
// Hide the link’s text.
|
|
@@ -22,6 +24,7 @@ var styles = (0, _react2.css)({
|
|
|
22
24
|
whiteSpace: 'nowrap',
|
|
23
25
|
// Needs a heightened specificity to trump other anchor.
|
|
24
26
|
// Stack it under all other links in the post text.
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
28
|
'a&.layered-link': {
|
|
26
29
|
position: 'absolute',
|
|
27
30
|
zIndex: 0
|
|
@@ -36,7 +39,9 @@ var styles = (0, _react2.css)({
|
|
|
36
39
|
// iterations of the second element, that are following the first element
|
|
37
40
|
// (though not necessarily immediately), and are children of the same parent
|
|
38
41
|
// element.
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
43
|
'&:hover ~ *': {
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
45
|
'.actions-button-group': {
|
|
41
46
|
opacity: 1
|
|
42
47
|
}
|
|
@@ -10,6 +10,8 @@ var _badge = _interopRequireDefault(require("@atlaskit/badge"));
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
var badgeStyles = (0, _react2.css)({
|
|
14
16
|
alignItems: 'center',
|
|
15
17
|
display: 'inline-flex'
|
|
@@ -31,6 +33,7 @@ var AtlaskitBadge = function AtlaskitBadge(_ref) {
|
|
|
31
33
|
return null;
|
|
32
34
|
}
|
|
33
35
|
return (0, _react2.jsx)("span", {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
34
37
|
css: [badgeStyles, overrideCss],
|
|
35
38
|
"data-fit-to-content": true,
|
|
36
39
|
"data-smart-element": name,
|
|
@@ -17,6 +17,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
17
17
|
var _utils = require("../../utils");
|
|
18
18
|
var _templateObject;
|
|
19
19
|
/** @jsx jsx */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
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); }
|
|
21
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; }
|
|
22
23
|
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; }
|
|
@@ -25,6 +26,7 @@ var MAX_COUNT = 4;
|
|
|
25
26
|
var getStyles = function getStyles(size) {
|
|
26
27
|
var styles = (0, _react2.css)({
|
|
27
28
|
display: 'inline-flex',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
30
|
ul: {
|
|
29
31
|
marginRight: "var(--ds-space-100, 0.5rem)",
|
|
30
32
|
marginTop: 0
|
|
@@ -104,6 +106,7 @@ var AvatarGroup = function AvatarGroup(_ref) {
|
|
|
104
106
|
return null;
|
|
105
107
|
}
|
|
106
108
|
return (0, _react2.jsx)("span", {
|
|
109
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
107
110
|
css: [getStyles(size), overrideCss],
|
|
108
111
|
"data-fit-to-content": true,
|
|
109
112
|
"data-smart-element": name,
|
|
@@ -16,13 +16,14 @@ var _imageIcon = _interopRequireDefault(require("../../common/image-icon"));
|
|
|
16
16
|
var _atlaskitIcon = _interopRequireDefault(require("../../common/atlaskit-icon"));
|
|
17
17
|
var _templateObject, _messageMapper;
|
|
18
18
|
/** @jsx jsx */
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
20
|
var badgeStyles = (0, _react2.css)({
|
|
20
21
|
alignItems: 'center',
|
|
21
22
|
display: 'inline-flex',
|
|
22
23
|
minWidth: 'fit-content'
|
|
23
24
|
});
|
|
24
25
|
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
26
27
|
var iconStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tcolor: ", ";\n\tline-height: 0;\n\tvertical-align: middle;\n\t", "\n\timg,\n span,\n svg {\n\t\tline-height: 0;\n\t\tvertical-align: middle;\n\t}\n"])), "var(--ds-icon-subtle, #626F86)", (0, _utils.getIconSizeStyles)('1rem'));
|
|
27
28
|
var labelStyles = (0, _react2.css)({
|
|
28
29
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
@@ -89,6 +90,7 @@ var Badge = function Badge(_ref) {
|
|
|
89
90
|
return null;
|
|
90
91
|
}
|
|
91
92
|
return (0, _react2.jsx)("span", {
|
|
93
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
92
94
|
css: [badgeStyles, overrideCss],
|
|
93
95
|
"data-fit-to-content": true,
|
|
94
96
|
"data-smart-element": name,
|
|
@@ -14,11 +14,15 @@ var _intlUtils = require("@formatjs/intl-utils");
|
|
|
14
14
|
var _messages = require("../../../../../messages");
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
|
|
17
19
|
var styles = (0, _react2.css)({
|
|
18
20
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
19
21
|
fontSize: '0.75rem',
|
|
20
22
|
lineHeight: '1rem'
|
|
21
|
-
},
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
+
(0, _utils.getTruncateStyles)(1));
|
|
22
26
|
var typeToDescriptorMap = {
|
|
23
27
|
created: {
|
|
24
28
|
relative: _messages.messages.created_on_relative,
|
|
@@ -76,6 +80,7 @@ var DateTime = function DateTime(_ref) {
|
|
|
76
80
|
});
|
|
77
81
|
}
|
|
78
82
|
return (0, _react2.jsx)("span", {
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
79
84
|
css: [styles, overrideCss],
|
|
80
85
|
"data-separator": true,
|
|
81
86
|
"data-smart-element": name,
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
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; }
|
|
18
18
|
/** @jsx jsx */
|
|
19
19
|
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
|
+
|
|
20
22
|
var getPositionStyles = function getPositionStyles(position) {
|
|
21
23
|
switch (position) {
|
|
22
24
|
case _constants.SmartLinkPosition.Center:
|
|
@@ -32,21 +34,30 @@ var getPositionStyles = function getPositionStyles(position) {
|
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
var getIconStyles = function getIconStyles(position, width) {
|
|
35
|
-
return (
|
|
37
|
+
return (
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
(0, _react2.css)(getPositionStyles(position), (0, _utils.getIconSizeStyles)(width))
|
|
40
|
+
);
|
|
36
41
|
};
|
|
37
42
|
var getCustomRenderStyles = function getCustomRenderStyles(value) {
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
return (
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
+
(0, _react2.css)((0, _utils.getTruncateStyles)(1, value), {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
+
lineHeight: value,
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
|
+
fontSize: value,
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
textOverflow: 'clip',
|
|
52
|
+
WebkitBoxOrient: 'unset',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
54
|
+
span: {
|
|
55
|
+
margin: 0,
|
|
56
|
+
padding: 0,
|
|
57
|
+
verticalAlign: 'baseline'
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
);
|
|
50
61
|
};
|
|
51
62
|
var renderAtlaskitIcon = function renderAtlaskitIcon(icon, label, testId) {
|
|
52
63
|
if (icon) {
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
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; }
|
|
18
18
|
/** @jsx jsx */
|
|
19
19
|
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
|
+
|
|
20
22
|
var DEFAULT_MAX_LINES = 2;
|
|
21
23
|
var MAXIMUM_MAX_LINES = 2;
|
|
22
24
|
var MINIMUM_MAX_LINES = 1;
|
|
@@ -29,6 +31,7 @@ var getThemeStyles = function getThemeStyles(theme) {
|
|
|
29
31
|
// We are being specifc with the CSS selectors to ensure that Confluence overrides
|
|
30
32
|
// do not affect our internal Smart Card styles
|
|
31
33
|
return (0, _react2.css)({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
35
|
'a&': {
|
|
33
36
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
34
37
|
'&:active, &:visited, &:focus, &:hover': {
|
|
@@ -42,9 +45,11 @@ var getThemeStyles = function getThemeStyles(theme) {
|
|
|
42
45
|
case _constants.SmartLinkTheme.Black:
|
|
43
46
|
return (0, _react2.css)({
|
|
44
47
|
color: "var(--ds-text-subtle, #44546F)",
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
45
49
|
':active': {
|
|
46
50
|
color: "var(--ds-text, #172B4D)"
|
|
47
51
|
},
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
48
53
|
':hover': {
|
|
49
54
|
color: "var(--ds-text-subtle, #44546F)",
|
|
50
55
|
textDecoration: 'underline'
|
|
@@ -54,9 +59,11 @@ var getThemeStyles = function getThemeStyles(theme) {
|
|
|
54
59
|
default:
|
|
55
60
|
return (0, _react2.css)({
|
|
56
61
|
color: "var(--ds-link, #0C66E4)",
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
57
63
|
':active': {
|
|
58
64
|
color: "var(--ds-link-pressed, #0055CC)"
|
|
59
65
|
},
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
60
67
|
':hover': {
|
|
61
68
|
color: "var(--ds-link, #0C66E4)",
|
|
62
69
|
textDecoration: 'underline'
|
|
@@ -68,7 +75,13 @@ var getAnchorStyles = function getAnchorStyles(size, theme, maxLines, hasSpace)
|
|
|
68
75
|
var sizeStyles = (0, _utils.getLinkSizeStyles)(size);
|
|
69
76
|
return (0, _react2.css)({
|
|
70
77
|
flex: '1 1 auto'
|
|
71
|
-
},
|
|
78
|
+
},
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
80
|
+
sizeStyles,
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
82
|
+
(0, _utils.getTruncateStyles)(maxLines, (0, _utils.getLinkLineHeight)(size), hasSpace ? 'break-word' : 'break-all'),
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
84
|
+
getThemeStyles(theme));
|
|
72
85
|
};
|
|
73
86
|
var getMaxLines = function getMaxLines(maxLines) {
|
|
74
87
|
if (maxLines > MAXIMUM_MAX_LINES) {
|
|
@@ -115,6 +128,7 @@ var Link = function Link(_ref) {
|
|
|
115
128
|
return text ? (0, _utils.hasWhiteSpace)(text) : false;
|
|
116
129
|
}, [text]);
|
|
117
130
|
var anchor = (0, _react2.jsx)("a", (0, _extends2.default)({
|
|
131
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
118
132
|
css: [getAnchorStyles(size, theme, getMaxLines(maxLines), hasSpace), overrideCss],
|
|
119
133
|
"data-smart-element": name,
|
|
120
134
|
"data-smart-element-link": true,
|
|
@@ -12,6 +12,8 @@ var _lozengeAction = _interopRequireDefault(require("./lozenge-action"));
|
|
|
12
12
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
|
|
15
17
|
var styles = (0, _react2.css)({
|
|
16
18
|
display: 'inline-flex',
|
|
17
19
|
lineHeight: 'inherit'
|
|
@@ -51,6 +53,7 @@ var Lozenge = function Lozenge(_ref) {
|
|
|
51
53
|
testId: "".concat(testId, "-lozenge")
|
|
52
54
|
}, text);
|
|
53
55
|
return (0, _react2.jsx)("span", {
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
54
57
|
css: [styles, overrideCss],
|
|
55
58
|
"data-fit-to-content": true,
|
|
56
59
|
"data-smart-element": name,
|
|
@@ -26,6 +26,7 @@ var _analytics = require("../../../../../../utils/analytics/analytics");
|
|
|
26
26
|
var _lozengeActionAnalytics = require("./lozenge-action-analytics");
|
|
27
27
|
var _lozengeActionItemsGroup = _interopRequireDefault(require("./lozenge-action-items-group"));
|
|
28
28
|
/** @jsx jsx */
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
29
30
|
|
|
30
31
|
var validateItems = function validateItems() {
|
|
31
32
|
var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -18,7 +18,7 @@ var _messages = require("../../../../../../../messages");
|
|
|
18
18
|
var _flexibleUiContext = require("../../../../../../../state/flexible-ui-context");
|
|
19
19
|
var _useResolve = _interopRequireDefault(require("../../../../../../../state/hooks/use-resolve"));
|
|
20
20
|
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; }
|
|
21
|
-
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) { (0, _defineProperty2.default)(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; } /** @jsx jsx */
|
|
21
|
+
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) { (0, _defineProperty2.default)(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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
var MAX_LINE_NUMBER = 8;
|
|
23
23
|
var LozengeActionError = function LozengeActionError(_ref) {
|
|
24
24
|
var errorMessage = _ref.errorMessage,
|
|
@@ -56,7 +56,9 @@ var LozengeActionError = function LozengeActionError(_ref) {
|
|
|
56
56
|
}), (0, _react.jsx)("span", {
|
|
57
57
|
css: (0, _styled.textStyles)(maxLineNumber),
|
|
58
58
|
"data-testid": "".concat(testId, "-error-message")
|
|
59
|
-
}, typeof errorMessage === 'string' ? errorMessage : (0, _utils.getFormattedMessage)(errorMessage))), isPreviewAvailable ?
|
|
59
|
+
}, typeof errorMessage === 'string' ? errorMessage : (0, _utils.getFormattedMessage)(errorMessage))), isPreviewAvailable ?
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
|
+
(0, _react.jsx)("div", {
|
|
60
62
|
css: _styled.linkStyles
|
|
61
63
|
}, (0, _react.jsx)("a", {
|
|
62
64
|
target: "_blank",
|
|
@@ -64,11 +66,14 @@ var LozengeActionError = function LozengeActionError(_ref) {
|
|
|
64
66
|
onClick: handlePreviewOpen
|
|
65
67
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.open_issue_in_jira))) : null);
|
|
66
68
|
}, [errorMessage, handlePreviewOpen, isPreviewAvailable, maxLineNumber, testId]);
|
|
67
|
-
return (
|
|
68
|
-
css
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
return (
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
71
|
+
(0, _react.jsx)("span", {
|
|
72
|
+
css: _styled.dropdownItemGroupStyles,
|
|
73
|
+
"data-testid": "".concat(testId, "-error-item-group")
|
|
74
|
+
}, (0, _react.jsx)(_dropdownMenu.DropdownItemGroup, null, (0, _react.jsx)(_dropdownMenu.DropdownItem, {
|
|
75
|
+
testId: "".concat(testId, "-error")
|
|
76
|
+
}, content)))
|
|
77
|
+
);
|
|
73
78
|
};
|
|
74
79
|
var _default = exports.default = LozengeActionError;
|
|
@@ -7,7 +7,11 @@ exports.textStyles = exports.linkStyles = exports.dropdownItemGroupStyles = expo
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _utils = require("../../../../utils");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
10
13
|
var dropdownItemGroupStyles = exports.dropdownItemGroupStyles = (0, _react.css)({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
15
|
button: {
|
|
12
16
|
width: '220px',
|
|
13
17
|
'&:hover': {
|
|
@@ -25,15 +29,20 @@ var sharedBlockStyles = (0, _react.css)({
|
|
|
25
29
|
flexDirection: 'row',
|
|
26
30
|
alignItems: 'center'
|
|
27
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
34
|
var contentStyles = exports.contentStyles = (0, _react.css)(sharedBlockStyles, {
|
|
29
35
|
marginTop: "var(--ds-space-025, 2px)",
|
|
30
36
|
alignItems: 'flex-start',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
38
|
'> span, > div': {
|
|
32
39
|
fontSize: '0.875rem',
|
|
33
40
|
lineHeight: '1.25rem',
|
|
34
41
|
color: "var(--ds-text, ".concat(_colors.N800, ")")
|
|
35
42
|
}
|
|
36
43
|
});
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
46
|
var linkStyles = exports.linkStyles = (0, _react.css)(sharedBlockStyles, {
|
|
38
47
|
cursor: 'pointer',
|
|
39
48
|
fontSize: '0.875rem',
|
|
@@ -45,5 +54,7 @@ var textStyles = exports.textStyles = function textStyles(maxLines) {
|
|
|
45
54
|
return (0, _react.css)({
|
|
46
55
|
lineHeight: '1rem',
|
|
47
56
|
whiteSpace: 'normal'
|
|
48
|
-
},
|
|
57
|
+
},
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
|
+
(0, _utils.getTruncateStyles)(maxLines));
|
|
49
60
|
};
|
|
@@ -11,13 +11,14 @@ var _lozengeActionItem = _interopRequireDefault(require("../lozenge-action-item"
|
|
|
11
11
|
var _styled = require("../styled");
|
|
12
12
|
var _dropdownMenu = require("@atlaskit/dropdown-menu");
|
|
13
13
|
/** @jsx jsx */
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
15
|
|
|
15
16
|
var LozengeActionItemsGroup = function LozengeActionItemsGroup(_ref) {
|
|
16
17
|
var items = _ref.items,
|
|
17
18
|
testId = _ref.testId,
|
|
18
19
|
onClick = _ref.onClick;
|
|
19
20
|
return (
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
22
|
(0, _react.jsx)("span", {
|
|
22
23
|
css: _styled.dropdownItemGroupStyles,
|
|
23
24
|
"data-testid": "".concat(testId, "-item-group")
|
|
@@ -15,6 +15,7 @@ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-
|
|
|
15
15
|
var _styled = require("../styled");
|
|
16
16
|
var _excluded = ["appearance", "isOpen", "testId", "text", "triggerRef"];
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
19
20
|
var appearance = _ref.appearance,
|
|
20
21
|
isOpen = _ref.isOpen,
|
|
@@ -46,6 +47,7 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
46
47
|
return (0, _react.jsx)("button", (0, _extends2.default)({
|
|
47
48
|
type: "button"
|
|
48
49
|
}, props, {
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
51
|
css: _styled.triggerButtonStyles,
|
|
50
52
|
"data-action-open": isOpen,
|
|
51
53
|
"data-testid": "".concat(testId, "--trigger"),
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.triggerLozengeStyles = exports.triggerButtonStyles = exports.dropdownItemGroupStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
var triggerButtonStyles = exports.triggerButtonStyles = (0, _react.css)({
|
|
9
12
|
all: 'unset',
|
|
10
13
|
backgroundColor: 'transparent',
|
|
@@ -20,6 +23,7 @@ var triggerButtonStyles = exports.triggerButtonStyles = (0, _react.css)({
|
|
|
20
23
|
textTransform: 'unset',
|
|
21
24
|
border: '2px solid transparent',
|
|
22
25
|
margin: "var(--ds-space-025, 2px)",
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
27
|
"&:focus-visible, &:focus-within, &[aria-expanded='true']": {
|
|
24
28
|
outline: 'none',
|
|
25
29
|
boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, #388BFF)"),
|
|
@@ -27,17 +31,21 @@ var triggerButtonStyles = exports.triggerButtonStyles = (0, _react.css)({
|
|
|
27
31
|
}
|
|
28
32
|
});
|
|
29
33
|
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
35
|
var triggerLozengeStyles = exports.triggerLozengeStyles = (0, _react.css)({
|
|
32
36
|
alignItems: 'center',
|
|
33
37
|
display: 'flex',
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
39
|
"span[role='img']": {
|
|
35
40
|
margin: "var(--ds-space-negative-050, -4px)".concat(" ", "var(--ds-space-negative-100, -8px)", " ", "var(--ds-space-negative-050, -4px)", " -1px")
|
|
36
41
|
}
|
|
37
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
38
45
|
var dropdownItemGroupStyles = exports.dropdownItemGroupStyles = (0, _react.css)({
|
|
39
46
|
maxHeight: '300px',
|
|
40
47
|
overflowY: 'auto',
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
49
|
button: {
|
|
42
50
|
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-150, 12px)"),
|
|
43
51
|
minHeight: '28px',
|
|
@@ -10,6 +10,8 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _imageIcon = _interopRequireDefault(require("../../common/image-icon"));
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
/**
|
|
14
16
|
* Media: Image
|
|
15
17
|
* [aspect-ratio: 16 / 9] The context box is fixed to aspect ratio of 16:9.
|
|
@@ -33,6 +35,7 @@ var styles = (0, _react2.css)({
|
|
|
33
35
|
position: 'relative',
|
|
34
36
|
overflow: 'hidden'
|
|
35
37
|
},
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
39
|
'> img, > span': {
|
|
37
40
|
minHeight: '100%',
|
|
38
41
|
minWidth: '100%',
|
|
@@ -70,6 +73,7 @@ var Media = function Media(_ref) {
|
|
|
70
73
|
return null;
|
|
71
74
|
}
|
|
72
75
|
return (0, _react2.jsx)("div", {
|
|
76
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
73
77
|
css: [styles, overrideCss],
|
|
74
78
|
"data-smart-element": name,
|
|
75
79
|
"data-smart-element-media": type,
|
|
@@ -15,6 +15,7 @@ var _constants = require("../../../../../constants");
|
|
|
15
15
|
var _media = _interopRequireDefault(require("../media"));
|
|
16
16
|
var _excluded = ["overrideUrl"];
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
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); }
|
|
19
20
|
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; }
|
|
20
21
|
var Preview = function Preview(props) {
|
|
@@ -14,6 +14,7 @@ var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
|
14
14
|
var _text = _interopRequireDefault(require("../text"));
|
|
15
15
|
var _excluded = ["content", "maxLines", "overrideCss"];
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
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); }
|
|
18
19
|
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; }
|
|
19
20
|
var SNIPPET_DEFAULT_MAX_LINES = 3;
|
|
@@ -24,7 +25,9 @@ var getSnippetStyles = function getSnippetStyles(overrideCss) {
|
|
|
24
25
|
MozUserSelect: 'text',
|
|
25
26
|
MsUserSelect: 'text',
|
|
26
27
|
userSelect: 'text'
|
|
27
|
-
},
|
|
28
|
+
},
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
|
+
overrideCss);
|
|
28
31
|
};
|
|
29
32
|
var SnippetElement = function SnippetElement() {
|
|
30
33
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -10,13 +10,17 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _utils = require("../../utils");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
var getStyles = function getStyles(maxLines) {
|
|
14
16
|
return (0, _react2.css)({
|
|
15
17
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
16
18
|
fontSize: '0.75rem',
|
|
17
19
|
lineHeight: '1rem',
|
|
18
20
|
whiteSpace: 'normal'
|
|
19
|
-
},
|
|
21
|
+
},
|
|
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
|
+
(0, _utils.getTruncateStyles)(maxLines));
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
/**
|
|
@@ -38,6 +42,7 @@ var Text = function Text(_ref) {
|
|
|
38
42
|
return null;
|
|
39
43
|
}
|
|
40
44
|
return (0, _react2.jsx)("span", {
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
41
46
|
css: [getStyles(maxLines), overrideCss],
|
|
42
47
|
"data-separator": true,
|
|
43
48
|
"data-smart-element": name,
|