@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
|
@@ -5,22 +5,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
11
|
var _react = require("@emotion/react");
|
|
10
12
|
var _action = _interopRequireDefault(require("../action"));
|
|
11
13
|
var _reactIntlNext = require("react-intl-next");
|
|
12
14
|
var _messages = require("../../../../../messages");
|
|
13
15
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
14
16
|
var _relatedLinksActionIcon = _interopRequireDefault(require("./related-links-action-icon"));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var
|
|
17
|
+
var _react2 = require("react");
|
|
18
|
+
var _modal = require("../../../../../state/modal");
|
|
19
|
+
var _excluded = ["onClick"];
|
|
20
|
+
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
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
var RelatedLinksModal = /*#__PURE__*/(0, _react2.lazy)(function () {
|
|
23
|
+
return Promise.resolve().then(function () {
|
|
24
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_smartcard-RelatedLinksModal" */'../../../../RelatedLinksModal'));
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
var ViewRelatedLinksAction = function ViewRelatedLinksAction(_ref) {
|
|
18
28
|
var _context$actions;
|
|
29
|
+
var onClickCallback = _ref.onClick,
|
|
30
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
|
+
var modal = (0, _modal.useSmartLinkModal)();
|
|
19
32
|
var context = (0, _flexibleUiContext.useFlexibleUiContext)();
|
|
20
33
|
var actionData = context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions.ViewRelatedLinksAction;
|
|
34
|
+
var onClick = (0, _react2.useCallback)(function () {
|
|
35
|
+
var url = actionData === null || actionData === void 0 ? void 0 : actionData.url;
|
|
36
|
+
if (url) {
|
|
37
|
+
modal.open((0, _react.jsx)(RelatedLinksModal, {
|
|
38
|
+
url: url,
|
|
39
|
+
showModal: true,
|
|
40
|
+
onClose: function onClose() {
|
|
41
|
+
return modal.close();
|
|
42
|
+
}
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
46
|
+
}, [actionData === null || actionData === void 0 ? void 0 : actionData.url, modal, onClickCallback]);
|
|
21
47
|
return actionData ? (0, _react.jsx)(_action.default, (0, _extends2.default)({
|
|
22
48
|
content: (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.related_links_view_related_urls),
|
|
23
49
|
icon: (0, _react.jsx)(_relatedLinksActionIcon.default, null),
|
|
50
|
+
onClick: onClick,
|
|
24
51
|
testId: "smart-action-view-related-links-action",
|
|
25
52
|
ariaLabel: "View most recent pages or content types coming from or found on this link"
|
|
26
53
|
}, props)) : null;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _childIssues = _interopRequireDefault(require("@atlaskit/icon/glyph/child-issues"));
|
|
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 rotateSvg = (0, _react.css)({
|
|
13
14
|
transform: 'rotate(180deg)',
|
|
@@ -19,6 +19,7 @@ var _reactMagneticDi = require("react-magnetic-di");
|
|
|
19
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); }
|
|
20
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; }
|
|
21
21
|
/** @jsx jsx */
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
23
|
|
|
23
24
|
var ignoreContainerPaddingStyles = (0, _react.css)({
|
|
24
25
|
display: 'flex',
|
|
@@ -88,7 +89,9 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
88
89
|
},
|
|
89
90
|
onError: onError,
|
|
90
91
|
onLoadingChange: onLoadingChange,
|
|
91
|
-
size: size
|
|
92
|
+
size: size
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
94
|
+
,
|
|
92
95
|
xcss: (0, _primitives.xcss)({
|
|
93
96
|
paddingInline: padding
|
|
94
97
|
}),
|
package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var _react2 = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var Actions = _interopRequireWildcard(require("../../../actions"));
|
|
15
15
|
var _excluded = ["name", "hideContent", "hideIcon", "onClick", "isDisabled"];
|
|
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
|
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,11 +25,14 @@ var _utils2 = require("../utils");
|
|
|
25
25
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
26
26
|
var _excluded = ["triggerRef"];
|
|
27
27
|
/** @jsx jsx */
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
29
|
var styles = (0, _react2.css)({
|
|
29
30
|
display: 'inline-flex',
|
|
30
31
|
lineHeight: '1rem',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
33
|
'> div': {
|
|
32
34
|
alignItems: 'center',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
36
|
'button:focus-visible': {
|
|
34
37
|
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
35
38
|
}
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -13,18 +13,12 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
13
13
|
var _aiIcon = _interopRequireDefault(require("../../../../../common/ai-icon"));
|
|
14
14
|
var _info = require("../icons/info");
|
|
15
15
|
var _messages = require("../../../../../../messages");
|
|
16
|
-
var
|
|
16
|
+
var _useAiSummaryAction = _interopRequireDefault(require("../../../../../../state/hooks/use-ai-summary-action"));
|
|
17
17
|
var AIFooterMetadata = exports.AIFooterMetadata = function AIFooterMetadata(_ref) {
|
|
18
18
|
var testId = _ref.testId,
|
|
19
|
-
url = _ref.url
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _useAISummary = (0, _useAiSummary.useAISummary)({
|
|
23
|
-
url: url,
|
|
24
|
-
ari: ari,
|
|
25
|
-
product: product
|
|
26
|
-
}),
|
|
27
|
-
status = _useAISummary.state.status;
|
|
19
|
+
url = _ref.url;
|
|
20
|
+
var _useAISummaryAction = (0, _useAiSummaryAction.default)(url),
|
|
21
|
+
status = _useAISummaryAction.state.status;
|
|
28
22
|
if (status !== 'done') {
|
|
29
23
|
return null;
|
|
30
24
|
}
|
|
@@ -13,6 +13,8 @@ var _tooltip = _interopRequireWildcard(require("@atlaskit/tooltip"));
|
|
|
13
13
|
var _primitives = require("@atlaskit/primitives");
|
|
14
14
|
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); }
|
|
15
15
|
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; }
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
+
|
|
16
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
17
19
|
var AIIndicatorTooltipPrimitive = (0, _styled.default)(_tooltip.TooltipPrimitive)({
|
|
18
20
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -20,6 +20,8 @@ var _aiIndicatorContainer = _interopRequireDefault(require("./ai-indicator-conta
|
|
|
20
20
|
var _aiLearnMoreAnchor = _interopRequireDefault(require("../../../common/ai-summary/ai-learn-more-anchor"));
|
|
21
21
|
/** @jsx jsx */
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
+
|
|
23
25
|
var tooltipMsgStyles = (0, _primitives.xcss)({
|
|
24
26
|
color: 'color.text',
|
|
25
27
|
fontSize: '14px',
|
|
@@ -28,6 +30,7 @@ var tooltipMsgStyles = (0, _primitives.xcss)({
|
|
|
28
30
|
});
|
|
29
31
|
var iconTooltipLinkStyles = (0, _react2.css)({
|
|
30
32
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
34
|
'&:link, :visited': {
|
|
32
35
|
color: "var(--ds-text-subtlest, #626F86)"
|
|
33
36
|
},
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var _aiStateLoading = _interopRequireDefault(require("./ai-state-loading"));
|
|
|
11
11
|
var _aiStateDone = _interopRequireDefault(require("./ai-state-done"));
|
|
12
12
|
var _aiStateError = _interopRequireDefault(require("./ai-state-error"));
|
|
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 AIStateIndicator = function AIStateIndicator(_ref) {
|
|
16
17
|
var state = _ref.state,
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var _react2 = require("react");
|
|
|
9
9
|
var _storageClient = require("@atlaskit/frontend-utilities/storage-client");
|
|
10
10
|
var _styled = require("./styled");
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
13
14
|
var LOCAL_STORAGE_CLIENT_KEY = '@atlaskit/smart-card';
|
|
14
15
|
var LOCAL_STORAGE_DISCOVERY_KEY = 'action-discovery-ai-summarise';
|
|
@@ -43,10 +44,13 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
43
44
|
}, [storageClient, discovered]);
|
|
44
45
|
var component = (0, _react2.useMemo)(function () {
|
|
45
46
|
if (!discovered) {
|
|
46
|
-
return (
|
|
47
|
-
css
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
return (
|
|
48
|
+
// 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
|
+
(0, _react.jsx)("span", {
|
|
50
|
+
css: (0, _styled.getPulseStyles)(),
|
|
51
|
+
"data-testid": "".concat(testId, "-discovery")
|
|
52
|
+
}, children)
|
|
53
|
+
);
|
|
50
54
|
}
|
|
51
55
|
}, [children, discovered, testId]);
|
|
52
56
|
return component !== null && component !== void 0 ? component : children;
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getPulseStyles = 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
|
+
|
|
8
10
|
var getPulseStyles = exports.getPulseStyles = function getPulseStyles() {
|
|
9
11
|
var color = "var(--ds-border-discovery, #8270DB)";
|
|
10
12
|
var pulseKeyframes = (0, _react.keyframes)({
|
|
@@ -10,6 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _resolved = _interopRequireDefault(require("./resolved"));
|
|
12
12
|
var _constants = require("../../../../../constants");
|
|
13
|
+
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
13
14
|
var _excluded = ["status", "testId"];
|
|
14
15
|
/**
|
|
15
16
|
* Represents an AISummaryBlock, designed to summarising link resource
|
|
@@ -19,15 +20,22 @@ var _excluded = ["status", "testId"];
|
|
|
19
20
|
* @see Block
|
|
20
21
|
*/
|
|
21
22
|
var AISummaryBlock = function AISummaryBlock(_ref) {
|
|
23
|
+
var _context$actions;
|
|
22
24
|
var status = _ref.status,
|
|
23
25
|
_ref$testId = _ref.testId,
|
|
24
26
|
testId = _ref$testId === void 0 ? 'smart-ai-summary-block' : _ref$testId,
|
|
25
27
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
var context = (0, _flexibleUiContext.useFlexibleUiContext)();
|
|
29
|
+
var actionData = context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[_constants.InternalActionName.AISummaryAction];
|
|
26
30
|
if (status !== _constants.SmartLinkStatus.Resolved) {
|
|
27
31
|
return null;
|
|
28
32
|
}
|
|
33
|
+
if (!(actionData !== null && actionData !== void 0 && actionData.url)) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
29
36
|
return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, props, {
|
|
30
|
-
testId: testId
|
|
37
|
+
testId: testId,
|
|
38
|
+
url: actionData.url
|
|
31
39
|
}));
|
|
32
40
|
};
|
|
33
41
|
var _default = exports.default = AISummaryBlock;
|
|
@@ -19,7 +19,7 @@ var _motionWrapper = _interopRequireDefault(require("../../../common/motion-wrap
|
|
|
19
19
|
var _aiStateIndicator = _interopRequireDefault(require("../ai-state-indicator"));
|
|
20
20
|
var _utils = require("../../utils");
|
|
21
21
|
var _messages = require("../../../../../../messages");
|
|
22
|
-
var
|
|
22
|
+
var _useAiSummaryAction = _interopRequireDefault(require("../../../../../../state/hooks/use-ai-summary-action"));
|
|
23
23
|
var _aiIcon = _interopRequireDefault(require("../../../../../common/ai-icon"));
|
|
24
24
|
var _aiSummary = _interopRequireDefault(require("../../../../../common/ai-summary"));
|
|
25
25
|
var _useAnalyticsEvents2 = require("../../../../../../common/analytics/generated/use-analytics-events");
|
|
@@ -28,11 +28,11 @@ var _aiEventErrorViewed = _interopRequireDefault(require("../../../common/ai-sum
|
|
|
28
28
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
29
29
|
var _react2 = require("@emotion/react");
|
|
30
30
|
var _featureDiscovery = _interopRequireDefault(require("../feature-discovery"));
|
|
31
|
-
var _flexibleUiContext = require("../../../../../../state/flexible-ui-context");
|
|
32
|
-
var _linkProvider = require("@atlaskit/link-provider");
|
|
33
31
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
34
32
|
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); }
|
|
35
33
|
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; }
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
35
|
+
|
|
36
36
|
var AISummaryBlockErrorIndicator = exports.AISummaryBlockErrorIndicator = function AISummaryBlockErrorIndicator(_ref) {
|
|
37
37
|
var showErrorIndicator = _ref.showErrorIndicator,
|
|
38
38
|
error = _ref.error,
|
|
@@ -74,27 +74,16 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
74
74
|
_props$aiSummaryMinHe = props.aiSummaryMinHeight,
|
|
75
75
|
aiSummaryMinHeight = _props$aiSummaryMinHe === void 0 ? 0 : _props$aiSummaryMinHe,
|
|
76
76
|
metadata = props.metadata,
|
|
77
|
-
placeholder = props.placeholder
|
|
77
|
+
placeholder = props.placeholder,
|
|
78
|
+
url = props.url;
|
|
78
79
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
79
80
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
var _useAISummary = (0, _useAiSummary.useAISummary)({
|
|
87
|
-
url: url,
|
|
88
|
-
ari: ari,
|
|
89
|
-
product: product,
|
|
90
|
-
envKey: connections.client.envKey,
|
|
91
|
-
baseUrl: connections.client.baseUrlOverride
|
|
92
|
-
}),
|
|
93
|
-
summariseUrl = _useAISummary.summariseUrl,
|
|
94
|
-
_useAISummary$state = _useAISummary.state,
|
|
95
|
-
content = _useAISummary$state.content,
|
|
96
|
-
status = _useAISummary$state.status,
|
|
97
|
-
error = _useAISummary$state.error;
|
|
81
|
+
var _useAISummaryAction = (0, _useAiSummaryAction.default)(url),
|
|
82
|
+
summariseUrl = _useAISummaryAction.summariseUrl,
|
|
83
|
+
_useAISummaryAction$s = _useAISummaryAction.state,
|
|
84
|
+
content = _useAISummaryAction$s.content,
|
|
85
|
+
status = _useAISummaryAction$s.status,
|
|
86
|
+
error = _useAISummaryAction$s.error;
|
|
98
87
|
var showAISummary = status === 'done' ||
|
|
99
88
|
// We want to display the AI Summary component only when there is content available during the loading process.
|
|
100
89
|
status === 'loading' && !!content;
|
|
@@ -155,7 +144,9 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
155
144
|
*/,
|
|
156
145
|
overrideCss: (0, _react2.css)({
|
|
157
146
|
overflow: 'visible'
|
|
158
|
-
},
|
|
147
|
+
},
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
149
|
+
props.overrideCss)
|
|
159
150
|
}), status === 'done' && /*#__PURE__*/_react.default.createElement(_aiEventSummaryViewed.default, {
|
|
160
151
|
fromCache: isSummarisedOnMountRef.current
|
|
161
152
|
}), /*#__PURE__*/_react.default.createElement(_motionWrapper.default, {
|
|
@@ -12,6 +12,7 @@ var _constants = require("../../../../../constants");
|
|
|
12
12
|
var _utils = require("../utils");
|
|
13
13
|
var _templateObject;
|
|
14
14
|
/** @jsx jsx */
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
16
|
var getBlockStyles = function getBlockStyles(direction, size
|
|
16
17
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
17
18
|
) {
|
|
@@ -41,6 +42,7 @@ var Block = function Block(_ref) {
|
|
|
41
42
|
onRender && onRender();
|
|
42
43
|
}, [onRender]);
|
|
43
44
|
return (0, _react2.jsx)("div", {
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
44
46
|
css: [getBlockStyles(direction, size), overrideCss],
|
|
45
47
|
"data-smart-block": true,
|
|
46
48
|
"data-testid": testId,
|
|
@@ -12,6 +12,7 @@ var _utils = require("../utils");
|
|
|
12
12
|
var _utils2 = require("../../utils");
|
|
13
13
|
var _templateObject;
|
|
14
14
|
/** @jsx jsx */
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
16
|
var getAlignmentStyles = function getAlignmentStyles(align) {
|
|
16
17
|
switch (align) {
|
|
17
18
|
case _constants.SmartLinkAlignment.Right:
|
|
@@ -35,17 +36,23 @@ var getGapStyles = function getGapStyles(size, align) {
|
|
|
35
36
|
var gap = (0, _utils.getGapSize)(size);
|
|
36
37
|
if (align === _constants.SmartLinkAlignment.Right) {
|
|
37
38
|
return (0, _react.css)({
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
40
|
'> span': {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
42
|
marginLeft: "".concat(gap, "rem")
|
|
40
43
|
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
41
45
|
'> span:first-child': {
|
|
42
46
|
marginLeft: 'initial'
|
|
43
47
|
}
|
|
44
48
|
});
|
|
45
49
|
}
|
|
46
50
|
return (0, _react.css)({
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
47
52
|
'> span': {
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
54
|
marginRight: "".concat(gap, "rem"),
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
49
56
|
'&:last-child': {
|
|
50
57
|
marginRight: 'initial'
|
|
51
58
|
}
|
|
@@ -58,9 +65,19 @@ var getHorizontalDirectionStyles = function getHorizontalDirectionStyles(size, a
|
|
|
58
65
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\tdisplay: block;\n\t\tvertical-align: middle;\n\t\t", "\n\n\t\t> span, > div {\n\t\t\tvertical-align: middle;\n\n\t\t\t&[data-smart-element-date-time],\n\t\t\t&[data-smart-element-text] {\n\t\t\t\t// Show all/wrapped/truncated\n\t\t\t\tdisplay: inline;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t"])), (0, _utils2.getTruncateStyles)(1, lineHeight + 'rem'), getGapStyles(size, align));
|
|
59
66
|
};
|
|
60
67
|
var getElementGroupStyles = exports.getElementGroupStyles = function getElementGroupStyles(direction, size, align, width, position) {
|
|
61
|
-
return (0, _react.css)(
|
|
68
|
+
return (0, _react.css)(
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
70
|
+
(0, _utils.getBaseStyles)(direction, size),
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
72
|
+
getAlignmentStyles(align), {
|
|
62
73
|
minWidth: '10%'
|
|
63
|
-
},
|
|
74
|
+
},
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
76
|
+
width === _constants.SmartLinkWidth.Flexible ? "flex: 1 3;" : '',
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
78
|
+
direction === _constants.SmartLinkDirection.Horizontal ? getHorizontalDirectionStyles(size, align) : '',
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
80
|
+
position === _constants.SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
|
|
64
81
|
};
|
|
65
82
|
|
|
66
83
|
/**
|
|
@@ -86,6 +103,7 @@ var ElementGroup = function ElementGroup(_ref) {
|
|
|
86
103
|
_ref$position = _ref.position,
|
|
87
104
|
position = _ref$position === void 0 ? _constants.SmartLinkPosition.Center : _ref$position;
|
|
88
105
|
return (0, _react.jsx)("div", {
|
|
106
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
89
107
|
css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
|
|
90
108
|
"data-smart-element-group": true,
|
|
91
109
|
"data-testid": testId
|
|
@@ -14,7 +14,7 @@ var _utils = require("../utils");
|
|
|
14
14
|
var _block = _interopRequireDefault(require("../block"));
|
|
15
15
|
var _elementGroup = _interopRequireDefault(require("../element-group"));
|
|
16
16
|
var _utils2 = require("../../utils");
|
|
17
|
-
var _excluded = ["maxLines", "status", "testId", "primary", "secondary"];
|
|
17
|
+
var _excluded = ["maxLines", "status", "testId", "primary", "secondary"]; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
var DEFAULT_MAX_LINES = 2;
|
|
19
19
|
var MAXIMUM_MAX_LINES = 2;
|
|
20
20
|
var MINIMUM_MAX_LINES = 1;
|
|
@@ -25,8 +25,11 @@ var getElementGroupStyles = function getElementGroupStyles(size, maxLines) {
|
|
|
25
25
|
// sides so they line up nicely.
|
|
26
26
|
var lineHeight = (0, _utils2.getMaxLineHeight)(size);
|
|
27
27
|
return (0, _react2.css)({
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
29
|
lineHeight: "".concat(lineHeight, "rem")
|
|
29
|
-
},
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
(0, _utils2.getTruncateStyles)(maxLines, lineHeight + 'rem'));
|
|
30
33
|
};
|
|
31
34
|
var getMaxLines = function getMaxLines(maxLines) {
|
|
32
35
|
if (maxLines > MAXIMUM_MAX_LINES) {
|
|
@@ -13,6 +13,7 @@ var _constants = require("../../../../../constants");
|
|
|
13
13
|
var _resolved = _interopRequireDefault(require("./resolved"));
|
|
14
14
|
var _excluded = ["status", "testId", "overrideUrl"];
|
|
15
15
|
/** @jsx jsx */
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
17
|
/**
|
|
17
18
|
* Represents a PreviewBlock, which typically contains media or other large format content.
|
|
18
19
|
* @public
|
|
@@ -18,6 +18,7 @@ var _elements = require("../../../elements");
|
|
|
18
18
|
var _excluded = ["ignoreContainerPadding", "onError", "overrideCss", "placement", "testId", "overrideUrl"];
|
|
19
19
|
var _templateObject;
|
|
20
20
|
/** @jsx jsx */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
24
|
/**
|
|
@@ -45,9 +46,11 @@ var getPreviewBlockStyles = function getPreviewBlockStyles(placement, ignoreCont
|
|
|
45
46
|
return (0, _react2.css)({
|
|
46
47
|
marginLeft: 'calc(var(--container-gap-left) * -1)',
|
|
47
48
|
marginRight: 'calc(var(--container-gap-right) * -1)',
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
48
50
|
'&:first-of-type': {
|
|
49
51
|
marginTop: 'calc(var(--container-padding) * -1)'
|
|
50
52
|
},
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
51
54
|
'&:last-of-type': {
|
|
52
55
|
marginBottom: 'calc(var(--container-padding) * -1)'
|
|
53
56
|
}
|
|
@@ -75,6 +78,7 @@ var PreviewBlockResolvedView = function PreviewBlockResolvedView(_ref) {
|
|
|
75
78
|
styles = _useState2[0],
|
|
76
79
|
setStyles = _useState2[1];
|
|
77
80
|
var updateStyles = (0, _react.useCallback)(function () {
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
78
82
|
setStyles((0, _react2.css)(getPreviewBlockStyles(placement, ignoreContainerPadding), overrideCss));
|
|
79
83
|
}, [ignoreContainerPadding, overrideCss, placement]);
|
|
80
84
|
(0, _react.useEffect)(function () {
|
|
@@ -20,7 +20,7 @@ var _errored = require("./errored");
|
|
|
20
20
|
var _resolved = require("./resolved");
|
|
21
21
|
var _resolving = require("./resolving");
|
|
22
22
|
var _analytics = require("./analytics");
|
|
23
|
-
var _excluded = ["testId", "url", "renderers"];
|
|
23
|
+
var _excluded = ["testId", "url", "renderers"]; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
24
|
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); }
|
|
25
25
|
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; }
|
|
26
26
|
/**
|
|
@@ -19,6 +19,8 @@ var _text = _interopRequireDefault(require("../../../../elements/text"));
|
|
|
19
19
|
var _resolvedResultStack = _interopRequireDefault(require("./resolved-result-stack"));
|
|
20
20
|
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
21
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
22
24
|
var RelatedUrlList = function RelatedUrlList(_ref) {
|
|
23
25
|
var resolvedResults = _ref.resolvedResults,
|
|
24
26
|
title = _ref.title,
|
|
@@ -17,8 +17,10 @@ var _utils = require("../../../utils");
|
|
|
17
17
|
var _elementGroup = _interopRequireDefault(require("../../element-group"));
|
|
18
18
|
var _excluded = ["actionGroup", "retry", "position", "testId", "title", "icon", "hideIcon"];
|
|
19
19
|
/** @jsx jsx */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
21
|
var actionStyles = (0, _react2.css)({
|
|
21
22
|
cursor: 'pointer',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
22
24
|
':hover': {
|
|
23
25
|
color: "var(--ds-text-subtle, #8993A4)",
|
|
24
26
|
textDecoration: 'underline'
|
|
@@ -29,8 +31,15 @@ var getMessageStyles = function getMessageStyles(size, hasAction) {
|
|
|
29
31
|
return (0, _react2.css)({
|
|
30
32
|
flex: '1 1 auto',
|
|
31
33
|
justifyContent: 'flex-end'
|
|
32
|
-
},
|
|
34
|
+
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
|
+
hasAction ? actionStyles : '',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
|
+
sizeStyles,
|
|
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
|
|
40
|
+
(0, _utils.getTruncateStyles)(1, (0, _utils.getLinkLineHeight)(size)), {
|
|
33
41
|
color: "var(--ds-text-disabled, #6B778C)",
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
43
|
':focus': {
|
|
35
44
|
outline: "var(--ds-border-focused, #388BFF)".concat(" solid 2px")
|
|
36
45
|
}
|
|
@@ -70,7 +79,9 @@ var TitleBlockErroredView = function TitleBlockErroredView(_ref) {
|
|
|
70
79
|
align: _constants.SmartLinkAlignment.Right
|
|
71
80
|
}, (0, _react2.jsx)("span", {
|
|
72
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
73
|
-
className: hasAction ? 'has-action' : ''
|
|
82
|
+
className: hasAction ? 'has-action' : ''
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
84
|
+
,
|
|
74
85
|
css: getMessageStyles(size, hasAction),
|
|
75
86
|
onClick: onClick,
|
|
76
87
|
"data-testid": "".concat(testId, "-errored-view-message"),
|
|
@@ -18,15 +18,17 @@ var _errored = _interopRequireDefault(require("./errored"));
|
|
|
18
18
|
var _resolving = _interopRequireDefault(require("./resolving"));
|
|
19
19
|
var _actionGroup = _interopRequireDefault(require("../action-group"));
|
|
20
20
|
var _elements = require("../../elements");
|
|
21
|
-
var _excluded = ["actions", "anchorTarget", "hideTitleTooltip", "maxLines", "onActionMenuOpenChange", "onClick", "overrideCss", "status", "showActionOnHover", "testId", "text", "icon", "theme", "hideRetry", "metadataPosition", "hideIcon"];
|
|
21
|
+
var _excluded = ["actions", "anchorTarget", "hideTitleTooltip", "maxLines", "onActionMenuOpenChange", "onClick", "overrideCss", "status", "showActionOnHover", "testId", "text", "icon", "theme", "hideRetry", "metadataPosition", "hideIcon"]; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
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
23
|
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
24
|
var getActionStyles = function getActionStyles(showOnHover, isOpen) {
|
|
25
25
|
if (showOnHover && !isOpen) {
|
|
26
26
|
return (0, _react2.css)({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
28
|
'.actions-button-group': {
|
|
28
29
|
opacity: 0
|
|
29
30
|
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
32
|
'&:hover .actions-button-group, .actions-button-group:focus-within': {
|
|
31
33
|
opacity: 1
|
|
32
34
|
}
|
|
@@ -105,6 +107,7 @@ var TitleBlock = function TitleBlock(_ref) {
|
|
|
105
107
|
onDropdownOpenChange: onDropdownOpenChange
|
|
106
108
|
});
|
|
107
109
|
var actionStyles = getActionStyles(showActionOnHover, actionDropdownOpen);
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
111
|
var combinedCss = (0, _react2.css)(actionStyles, overrideCss);
|
|
109
112
|
var overrideText = !!text ? {
|
|
110
113
|
text: text
|
|
@@ -14,7 +14,7 @@ var _block = _interopRequireDefault(require("../../block"));
|
|
|
14
14
|
var _elementGroup = _interopRequireDefault(require("../../element-group"));
|
|
15
15
|
var _constants = require("../../../../../../constants");
|
|
16
16
|
var _utils = require("../../utils");
|
|
17
|
-
var _excluded = ["actionGroup", "metadata", "position", "subtitle", "testId", "text", "icon", "title", "metadataPosition", "hideIcon"];
|
|
17
|
+
var _excluded = ["actionGroup", "metadata", "position", "subtitle", "testId", "text", "icon", "title", "metadataPosition", "hideIcon"]; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
/**
|
|
19
19
|
* This renders a fully resolved TitleBlock.
|
|
20
20
|
* This should render when a Smart Link returns a valid response.
|
|
@@ -15,6 +15,7 @@ var _loadingSkeleton = _interopRequireDefault(require("../../../common/loading-s
|
|
|
15
15
|
var _utils = require("../../../utils");
|
|
16
16
|
var _excluded = ["actionGroup", "testId", "title", "hideIcon"];
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
/**
|
|
19
20
|
* This represents a TitleBlock for a Smart Link that is currently waiting
|
|
20
21
|
* for a request to finish.
|
|
@@ -33,7 +34,9 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
33
34
|
var iconStyles = (0, _utils.getIconSizeStyles)(iconWidth);
|
|
34
35
|
return (0, _react2.jsx)(_block.default, (0, _extends2.default)({}, blockProps, {
|
|
35
36
|
testId: "".concat(testId, "-resolving-view")
|
|
36
|
-
}), !hideIcon &&
|
|
37
|
+
}), !hideIcon &&
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
39
|
+
(0, _react2.jsx)("span", {
|
|
37
40
|
css: iconStyles,
|
|
38
41
|
"data-testid": "".concat(testId, "-icon")
|
|
39
42
|
}, (0, _react2.jsx)(_loadingSkeleton.default, {
|