@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
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.TitleWrapperClassName = exports.TitleWrapper = exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.IconWrapper = exports.IconTitleWrapper = exports.IconPositionWrapper = exports.IconOverrides = exports.IconObjectOverrides = exports.IconEmptyWrapper = exports.EmojiWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
9
11
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
10
12
|
var IconObjectOverrides = exports.IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 3px;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
11
13
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
@@ -17,23 +19,31 @@ var IconOverrides = exports.IconOverrides = "\n\n & > * > span {\n height: 1
|
|
|
17
19
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
18
20
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
19
21
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
23
|
var IconWrapper = exports.IconWrapper = _styled.default.span({
|
|
22
24
|
userSelect: 'none'
|
|
23
|
-
},
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
IconOverrides,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
+
IconObjectOverrides);
|
|
24
30
|
|
|
25
31
|
// Wraps all emoji in Inline Links similar to icon
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
33
|
var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
|
|
28
34
|
display: 'inline-block',
|
|
29
35
|
marginRight: "var(--ds-space-025, 2px)",
|
|
30
36
|
userSelect: 'none'
|
|
31
|
-
},
|
|
37
|
+
},
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
|
+
IconOverrides,
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
+
IconObjectOverrides);
|
|
32
42
|
|
|
33
43
|
// The main 'wrapping' element, title of the content.
|
|
34
44
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
35
45
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
47
|
var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
|
|
38
48
|
whiteSpace: 'pre-wrap',
|
|
39
49
|
wordBreak: 'break-all',
|
|
@@ -42,14 +52,14 @@ var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
|
|
|
42
52
|
});
|
|
43
53
|
|
|
44
54
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
56
|
var LozengeWrapper = exports.LozengeWrapper = _styled.default.span({
|
|
47
57
|
display: 'inline-block',
|
|
48
58
|
verticalAlign: '1px',
|
|
49
59
|
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
|
|
50
60
|
});
|
|
51
61
|
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
63
|
var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.default.span({
|
|
54
64
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
55
65
|
position: 'relative',
|
|
@@ -59,14 +69,14 @@ var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.defaul
|
|
|
59
69
|
// The following components are used to absolutely position icons in the vertical center.
|
|
60
70
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
61
71
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
73
|
var IconPositionWrapper = exports.IconPositionWrapper = _styled.default.span({
|
|
64
74
|
marginRight: "var(--ds-space-050, 4px)",
|
|
65
75
|
position: 'relative',
|
|
66
76
|
display: 'inline-block'
|
|
67
77
|
});
|
|
68
78
|
|
|
69
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
70
80
|
var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
71
81
|
width: '14px',
|
|
72
82
|
height: '100%',
|
|
@@ -78,5 +88,5 @@ var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
|
78
88
|
// To achieve same result we use classname instead.
|
|
79
89
|
var TitleWrapperClassName = exports.TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
80
90
|
|
|
81
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
|
|
82
92
|
var TitleWrapper = exports.TitleWrapper = _styled.default.span({});
|
|
@@ -7,7 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.SpinnerWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _styled2 = require("../IconAndTitleLayout/styled");
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/
|
|
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-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
13
|
var SpinnerWrapper = exports.SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)({
|
|
12
14
|
verticalAlign: 'text-bottom',
|
|
13
15
|
padding: '0px'
|
|
@@ -7,10 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.NoLinkAppearance = exports.LowercaseAppearance = exports.LinkAppearance = exports.IconStyledButton = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
10
12
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
11
13
|
// This basically turns the button back into inline content
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
15
|
var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
14
17
|
'&&&': {
|
|
15
18
|
textAlign: 'initial',
|
|
16
19
|
display: 'inline',
|
|
@@ -22,11 +25,13 @@ var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
|
22
25
|
backgroundClip: 'padding-box',
|
|
23
26
|
boxDecorationBreak: 'clone'
|
|
24
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
29
|
'> span': {
|
|
26
30
|
display: 'inline',
|
|
27
31
|
overflow: 'initial',
|
|
28
32
|
textOverflow: 'initial',
|
|
29
33
|
whiteSpace: 'initial',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
35
|
'> span': {
|
|
31
36
|
overflow: 'initial',
|
|
32
37
|
textOverflow: 'initial',
|
|
@@ -35,18 +40,18 @@ var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
|
35
40
|
}
|
|
36
41
|
});
|
|
37
42
|
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
44
|
var NoLinkAppearance = exports.NoLinkAppearance = _styled.default.span({
|
|
40
45
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
41
46
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
42
47
|
});
|
|
43
48
|
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
50
|
var LowercaseAppearance = exports.LowercaseAppearance = _styled.default.span({
|
|
46
51
|
textTransform: 'lowercase'
|
|
47
52
|
});
|
|
48
53
|
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
55
|
var LinkAppearance = exports.LinkAppearance = _styled.default.a({
|
|
51
56
|
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
52
57
|
'&:hover': {
|
|
@@ -18,6 +18,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
18
18
|
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
19
|
/** @jsx jsx */
|
|
20
20
|
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
|
|
21
23
|
var WarningModal = function WarningModal(props) {
|
|
22
24
|
var isOpen = props.isOpen,
|
|
23
25
|
unsafeLinkText = props.unsafeLinkText,
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.breakWordsCss = 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 breakWordsCss = exports.breakWordsCss = (0, _react.css)({
|
|
9
12
|
whiteSpace: 'pre-line',
|
|
10
13
|
wordBreak: 'break-all'
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "27.
|
|
20
|
+
packageVersion: "27.6.1",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -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 fixedWidth = 'small'; // pre-defined 400px by Atlaskit
|
|
21
23
|
|
|
22
24
|
var boxStyles = (0, _primitives.xcss)({
|
|
@@ -8,6 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _primitives = require("@atlaskit/primitives");
|
|
9
9
|
var _index = require("../../../../index");
|
|
10
10
|
/** @jsx jsx */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
12
13
|
var hoverStyles = (0, _primitives.xcss)({
|
|
13
14
|
':hover': {
|
|
@@ -12,6 +12,8 @@ var _relatedLinkItem = _interopRequireDefault(require("../related-link-item"));
|
|
|
12
12
|
var _messages = require("../../../../messages");
|
|
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 RelatedLinksList = function RelatedLinksList(_ref) {
|
|
16
18
|
var urls = _ref.urls,
|
|
17
19
|
title = _ref.title,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _RelatedLinksBaseModal = _interopRequireDefault(require("./components/RelatedLinksBaseModal"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _unavailable = require("./views/unavailable");
|
|
11
|
+
var RelatedLinksModal = function RelatedLinksModal(_ref) {
|
|
12
|
+
var onClose = _ref.onClose,
|
|
13
|
+
showModal = _ref.showModal,
|
|
14
|
+
url = _ref.url;
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_RelatedLinksBaseModal.default, {
|
|
16
|
+
onClose: onClose,
|
|
17
|
+
showModal: showModal
|
|
18
|
+
}, /*#__PURE__*/_react.default.createElement(_unavailable.RelatedLinksUnavailableView, null));
|
|
19
|
+
};
|
|
20
|
+
var _default = exports.default = RelatedLinksModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -8,6 +8,7 @@ exports.ErrorSVG = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
/** @jsx jsx */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
12
13
|
var errorStyles = (0, _react.css)({
|
|
13
14
|
width: '80px',
|
|
@@ -11,6 +11,8 @@ var _relatedLinksList = _interopRequireDefault(require("../../components/related
|
|
|
11
11
|
var _primitives = require("@atlaskit/primitives");
|
|
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 RelatedLinksResolvedView = function RelatedLinksResolvedView(_ref) {
|
|
15
17
|
var _ref$incomingLinks = _ref.incomingLinks,
|
|
16
18
|
incomingLinks = _ref$incomingLinks === void 0 ? [] : _ref$incomingLinks,
|
|
@@ -8,6 +8,7 @@ exports.UnavailableSVG = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
/** @jsx jsx */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
12
13
|
var unavailableStyles = (0, _react.css)({
|
|
13
14
|
width: '130px',
|
|
@@ -8,6 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
/** @jsx jsx */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
12
13
|
var Byline = exports.Byline = function Byline(_ref) {
|
|
13
14
|
var text = _ref.text,
|
|
@@ -15,12 +16,15 @@ var Byline = exports.Byline = function Byline(_ref) {
|
|
|
15
16
|
testId = _ref.testId,
|
|
16
17
|
className = _ref.className;
|
|
17
18
|
return (0, _react.jsx)("span", {
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
20
|
css: (0, _utils.mq)({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
22
|
fontSize: (0, _utils.gs)(1.5),
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
20
24
|
lineHeight: (0, _utils.gs)(2.5),
|
|
21
25
|
color: "".concat("var(--ds-text-subtlest, ".concat(_colors.N300, ")")),
|
|
22
26
|
fontWeight: 'normal',
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
27
|
+
// 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
28
|
marginTop: (0, _utils.gs)(0.5),
|
|
25
29
|
// Spec: only allow two lines MAX to be shown.
|
|
26
30
|
display: '-webkit-box',
|
|
@@ -30,6 +34,7 @@ var Byline = exports.Byline = function Byline(_ref) {
|
|
|
30
34
|
WebkitBoxOrient: 'vertical',
|
|
31
35
|
wordBreak: 'break-word',
|
|
32
36
|
// Fallback options.
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
38
|
maxHeight: (0, _utils.gs)(5),
|
|
34
39
|
whiteSpace: 'pre-line',
|
|
35
40
|
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
@@ -11,6 +11,7 @@ var _reactRenderImage = _interopRequireDefault(require("react-render-image"));
|
|
|
11
11
|
var _link = _interopRequireDefault(require("@atlaskit/icon/glyph/link"));
|
|
12
12
|
var _utils = require("./utils");
|
|
13
13
|
/** @jsx jsx */
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Class name for selecting non-flexible block card icon image
|
|
@@ -24,7 +25,9 @@ var getImageStyles = function getImageStyles(isFlexibleUi) {
|
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
27
|
return (0, _react.css)({
|
|
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
|
|
27
29
|
height: (0, _utils.gs)(2),
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
31
|
width: (0, _utils.gs)(2)
|
|
29
32
|
});
|
|
30
33
|
};
|
|
@@ -33,7 +36,9 @@ var getSpanStyles = function getSpanStyles(isFlexibleUi) {
|
|
|
33
36
|
return;
|
|
34
37
|
}
|
|
35
38
|
return (0, _react.css)({
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
40
|
height: (0, _utils.gs)(2.5),
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
42
|
width: (0, _utils.gs)(2),
|
|
38
43
|
display: 'flex',
|
|
39
44
|
alignItems: 'center',
|
|
@@ -54,7 +59,9 @@ var Icon = exports.Icon = function Icon(_ref) {
|
|
|
54
59
|
testId: "".concat(testId, "-default")
|
|
55
60
|
});
|
|
56
61
|
var image = url && (0, _react.jsx)(_reactRenderImage.default, {
|
|
57
|
-
src: url
|
|
62
|
+
src: url
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
64
|
+
,
|
|
58
65
|
loaded: (0, _react.jsx)("img", {
|
|
59
66
|
css: getImageStyles(isFlexibleUi),
|
|
60
67
|
src: url,
|
|
@@ -63,6 +70,7 @@ var Icon = exports.Icon = function Icon(_ref) {
|
|
|
63
70
|
errored: placeholder
|
|
64
71
|
});
|
|
65
72
|
return (0, _react.jsx)("span", {
|
|
73
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
66
74
|
css: getSpanStyles(isFlexibleUi),
|
|
67
75
|
"data-testid": testId
|
|
68
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -9,7 +9,23 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
14
|
+
var wrapperStyles = (0, _react.css)({
|
|
15
|
+
display: 'flex',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
18
|
+
});
|
|
19
|
+
var imgStyles = (0, _react.css)({
|
|
20
|
+
width: "var(--ds-space-100, 8px)",
|
|
21
|
+
height: "var(--ds-space-100, 8px)"
|
|
22
|
+
});
|
|
23
|
+
var textStyles = (0, _react.css)({
|
|
24
|
+
fontSize: "var(--ds-space-150, 12px)",
|
|
25
|
+
color: "".concat("var(--ds-text-subtlest, ".concat(_colors.N300, ")")),
|
|
26
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
27
|
+
marginLeft: "var(--ds-space-025, 2px)"
|
|
28
|
+
});
|
|
13
29
|
var Metadata = exports.Metadata = function Metadata(_ref) {
|
|
14
30
|
var text = _ref.text,
|
|
15
31
|
icon = _ref.icon,
|
|
@@ -19,25 +35,13 @@ var Metadata = exports.Metadata = function Metadata(_ref) {
|
|
|
19
35
|
if (!metadataIcon && iconUrl) {
|
|
20
36
|
metadataIcon = (0, _react.jsx)("img", {
|
|
21
37
|
src: iconUrl,
|
|
22
|
-
css:
|
|
23
|
-
width: "var(--ds-space-100, 8px)",
|
|
24
|
-
height: "var(--ds-space-100, 8px)"
|
|
25
|
-
}
|
|
38
|
+
css: imgStyles
|
|
26
39
|
});
|
|
27
40
|
}
|
|
28
41
|
var metadata = (0, _react.jsx)("div", {
|
|
29
|
-
css:
|
|
30
|
-
display: 'flex',
|
|
31
|
-
alignItems: 'center',
|
|
32
|
-
marginRight: "var(--ds-space-050, 4px)"
|
|
33
|
-
}
|
|
42
|
+
css: wrapperStyles
|
|
34
43
|
}, metadataIcon, (0, _react.jsx)("span", {
|
|
35
|
-
css:
|
|
36
|
-
fontSize: "var(--ds-space-150, 12px)",
|
|
37
|
-
color: "".concat("var(--ds-text-subtlest, ".concat(_colors.N300, ")")),
|
|
38
|
-
marginRight: "var(--ds-space-050, 4px)",
|
|
39
|
-
marginLeft: "var(--ds-space-025, 2px)"
|
|
40
|
-
}
|
|
44
|
+
css: textStyles
|
|
41
45
|
}, text));
|
|
42
46
|
if (tooltip) {
|
|
43
47
|
return (0, _react.jsx)(_tooltip.default, {
|
|
@@ -10,21 +10,24 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _Metadata = require("./Metadata");
|
|
11
11
|
var _utils = require("./utils");
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
|
|
14
15
|
var metadataListClassName = exports.metadataListClassName = 'smart-link-metadata-list';
|
|
16
|
+
var wrapperStyles = (0, _react.css)({
|
|
17
|
+
display: 'flex',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
marginTop: (0, _utils.gs)(0.5),
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
'&:last-child': {
|
|
23
|
+
marginRight: '0px'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
15
26
|
var MetadataList = exports.MetadataList = function MetadataList(_ref) {
|
|
16
27
|
var items = _ref.items,
|
|
17
28
|
testId = _ref.testId;
|
|
18
29
|
return (0, _react.jsx)("div", {
|
|
19
|
-
css:
|
|
20
|
-
display: 'flex',
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
|
-
marginTop: (0, _utils.gs)(0.5),
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
'&:last-child': {
|
|
25
|
-
marginRight: '0px'
|
|
26
|
-
}
|
|
27
|
-
},
|
|
30
|
+
css: wrapperStyles,
|
|
28
31
|
"data-testid": testId
|
|
29
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
33
|
,
|
|
@@ -9,6 +9,7 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _svg = _interopRequireDefault(require("@atlaskit/icon/svg"));
|
|
10
10
|
var _constants = require("../ai-prism/constants");
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* The bulk of this file is originally from
|
|
@@ -11,10 +11,12 @@ var _constants = require("../constants");
|
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
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 namespaceUUID = 0;
|
|
16
17
|
var svgStyles = (0, _react.css)({
|
|
17
18
|
position: 'absolute',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
20
|
borderRadius: _constants.OUTER_BORDER_RADIUS
|
|
19
21
|
});
|
|
20
22
|
var blurredStyles = (0, _react.css)({
|
|
@@ -74,6 +76,7 @@ var AnimatedSvgContainer = function AnimatedSvgContainer(_ref) {
|
|
|
74
76
|
return undefined;
|
|
75
77
|
}, [isMoving]);
|
|
76
78
|
return (0, _react.jsx)("svg", {
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
77
80
|
css: [svgStyles, isGlowing ? blurredStyles : notBlurredStyles, additionalCss],
|
|
78
81
|
ref: svgRef,
|
|
79
82
|
viewBox: "0 0 24 24",
|
|
@@ -10,6 +10,7 @@ var _react2 = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _animatedSvgContainer = _interopRequireDefault(require("./animated-svg-container"));
|
|
11
11
|
var _constants = require("../constants");
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
|
|
14
15
|
var borderContainerStyles = (0, _react.css)({
|
|
15
16
|
display: 'flex',
|
|
@@ -17,7 +18,10 @@ var borderContainerStyles = (0, _react.css)({
|
|
|
17
18
|
padding: "var(--ds-space-025, 2px)",
|
|
18
19
|
width: 'fit-content'
|
|
19
20
|
});
|
|
21
|
+
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
20
23
|
var borderContentStyles = exports.borderContentStyles = (0, _react.css)({
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
25
|
borderRadius: _constants.INNER_BORDER_RADIUS,
|
|
22
26
|
flexGrow: 1,
|
|
23
27
|
zIndex: 1 // needs to be more than the svg container at least
|
|
@@ -11,6 +11,7 @@ var _constants = require("./constants");
|
|
|
11
11
|
var _aiGlowingBorder = _interopRequireDefault(require("./ai-glowing-border"));
|
|
12
12
|
var _styled = require("../../HoverCard/styled");
|
|
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 contentStyles = (0, _react.css)({
|
|
16
17
|
transition: 'box-shadow 0.5s ease'
|
|
@@ -36,6 +37,7 @@ var AIPrism = function AIPrism(_ref) {
|
|
|
36
37
|
return (0, _react.jsx)(_aiGlowingBorder.default, {
|
|
37
38
|
additionalCss: {
|
|
38
39
|
animatedSvgContainer: (0, _react.css)({
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
41
|
opacity: isVisible ? 1 : 0,
|
|
40
42
|
transition: 'opacity 0.5s ease'
|
|
41
43
|
})
|
|
@@ -45,7 +47,9 @@ var AIPrism = function AIPrism(_ref) {
|
|
|
45
47
|
isMoving: isMoving,
|
|
46
48
|
testId: testId
|
|
47
49
|
}, (0, _react.jsx)("div", {
|
|
48
|
-
css: [
|
|
50
|
+
css: [
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
|
+
_styled.popupContainerStyles, contentStyles, isVisible ? contentStylesPrismVisible : undefined]
|
|
49
53
|
}, children));
|
|
50
54
|
};
|
|
51
55
|
var _default = exports.default = AIPrism;
|
|
@@ -12,6 +12,8 @@ var _aiStateIndicator = _interopRequireDefault(require("../../FlexibleCard/compo
|
|
|
12
12
|
var _ulist = _interopRequireDefault(require("./ulist"));
|
|
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 AITooltipIcon = function AITooltipIcon() {
|
|
16
18
|
return (0, _react2.jsx)(_aiStateIndicator.default, {
|
|
17
19
|
appearance: "icon-only",
|
|
@@ -11,6 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _excluded = ["children"];
|
|
13
13
|
/** @jsx jsx */
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
15
|
var listStyles = (0, _react2.css)({
|
|
15
16
|
paddingLeft: "var(--ds-space-250, 20px)",
|
|
16
17
|
paddingInlineStart: "var(--ds-space-250, 20px)"
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { CardAction } from '../../../view/Card/types';
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { getIsAISummaryEnabled } from '../../../utils/ai-summary';
|
|
4
|
-
import { extractAri } from '@atlaskit/link-extractors';
|
|
5
4
|
export const extractAISummaryAction = (response, url, actionOptions, aiSummaryConfig) => {
|
|
6
|
-
if (!canShowAction(CardAction.AISummaryAction, actionOptions) || !getIsAISummaryEnabled(aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.isAdminHubAIEnabled, response) || !
|
|
5
|
+
if (!canShowAction(CardAction.AISummaryAction, actionOptions) || !getIsAISummaryEnabled(aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.isAdminHubAIEnabled, response) || !url) {
|
|
7
6
|
return;
|
|
8
7
|
}
|
|
9
8
|
return {
|
|
10
|
-
url
|
|
11
|
-
ari: extractAri(response.data),
|
|
12
|
-
product: aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.product
|
|
9
|
+
url
|
|
13
10
|
};
|
|
14
11
|
};
|
|
@@ -15,7 +15,8 @@ const extractFlexibleUiContext = ({
|
|
|
15
15
|
renderers,
|
|
16
16
|
actionOptions,
|
|
17
17
|
response,
|
|
18
|
-
aiSummaryConfig
|
|
18
|
+
aiSummaryConfig,
|
|
19
|
+
...props
|
|
19
20
|
} = {}) => {
|
|
20
21
|
if (!response) {
|
|
21
22
|
return undefined;
|
|
@@ -23,7 +24,8 @@ const extractFlexibleUiContext = ({
|
|
|
23
24
|
const data = response.data;
|
|
24
25
|
const url = extractLink(data);
|
|
25
26
|
return {
|
|
26
|
-
|
|
27
|
+
// Use the original URL in edge cases, such as short links for AI summary and copy link actions.
|
|
28
|
+
actions: extractActions(response, props.url, actionOptions, id, aiSummaryConfig),
|
|
27
29
|
assignedToGroup: extractPersonAssignedToAsArray(data),
|
|
28
30
|
attachmentCount: extractAttachmentCount(data),
|
|
29
31
|
authorGroup: extractPersonCreatedBy(data),
|
|
@@ -48,8 +48,7 @@ export class AISummaryService {
|
|
|
48
48
|
headers: {
|
|
49
49
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
50
50
|
'x-experience-id': 'smart-link',
|
|
51
|
-
'x-product': ((_getXProductHeaderVal = getXProductHeaderValue(props.product)) === null || _getXProductHeaderVal === void 0 ? void 0 : _getXProductHeaderVal.toLowerCase()) || 'confluence'
|
|
52
|
-
...props.headers
|
|
51
|
+
'x-product': ((_getXProductHeaderVal = getXProductHeaderValue(props.product)) === null || _getXProductHeaderVal === void 0 ? void 0 : _getXProductHeaderVal.toLowerCase()) || 'confluence'
|
|
53
52
|
}
|
|
54
53
|
};
|
|
55
54
|
this.url = props.url;
|