@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
|
@@ -12,7 +12,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
12
12
|
var _colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
13
13
|
var colors = _colors;
|
|
14
14
|
var _utils = require("../../common/utils");
|
|
15
|
-
var _templateObject, _templateObject2;
|
|
15
|
+
var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
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); }
|
|
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
|
var className = exports.className = 'media-card-frame';
|
|
@@ -76,12 +76,12 @@ function visible(_ref7) {
|
|
|
76
76
|
return frameStyle === 'show' ? visibleStyles : '';
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
80
|
var LinkWrapper = exports.LinkWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", " &:hover {\n\t\ttext-decoration: none;\n\t}\n"])), function (props) {
|
|
81
81
|
return wrapperStyles(props);
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
85
85
|
var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
|
|
86
86
|
return wrapperStyles(props);
|
|
87
87
|
}, {
|
|
@@ -91,7 +91,7 @@ var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
|
|
|
91
91
|
marginTop: '10px'
|
|
92
92
|
});
|
|
93
93
|
var embedHeaderHeight = exports.embedHeaderHeight = 32;
|
|
94
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
95
95
|
var Header = exports.Header = _styled.default.div({
|
|
96
96
|
height: "".concat(embedHeaderHeight, "px"),
|
|
97
97
|
position: 'absolute',
|
|
@@ -99,18 +99,27 @@ var Header = exports.Header = _styled.default.div({
|
|
|
99
99
|
width: '100%',
|
|
100
100
|
display: 'flex',
|
|
101
101
|
alignItems: 'center',
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
102
103
|
color: "var(--ds-icon, ".concat(colors.N300, ")"),
|
|
103
104
|
opacity: 0,
|
|
104
105
|
transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
|
|
105
|
-
},
|
|
106
|
+
},
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
108
|
+
function (_ref8) {
|
|
106
109
|
var frameStyle = _ref8.frameStyle;
|
|
107
110
|
return frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
|
|
108
111
|
});
|
|
109
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
110
|
-
var IconWrapper = exports.IconWrapper = _styled.default.div(
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
113
|
+
var IconWrapper = exports.IconWrapper = _styled.default.div(
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
115
|
+
borderRadius,
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
117
|
+
csssize(16),
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
119
|
+
function (_ref9) {
|
|
111
120
|
var isPlaceholder = _ref9.isPlaceholder;
|
|
112
121
|
if (isPlaceholder) {
|
|
113
|
-
return "\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
122
|
+
return "\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
114
123
|
} else {
|
|
115
124
|
return '';
|
|
116
125
|
}
|
|
@@ -118,28 +127,33 @@ var IconWrapper = exports.IconWrapper = _styled.default.div(borderRadius, csssiz
|
|
|
118
127
|
marginRight: "var(--ds-space-050, 4px)"
|
|
119
128
|
});
|
|
120
129
|
|
|
121
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
122
|
-
var TextWrapper = exports.TextWrapper = _styled.default.div(
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
131
|
+
var TextWrapper = exports.TextWrapper = _styled.default.div(
|
|
132
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
133
|
+
function (_ref10) {
|
|
123
134
|
var isPlaceholder = _ref10.isPlaceholder;
|
|
124
135
|
if (isPlaceholder) {
|
|
125
|
-
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
136
|
+
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
126
137
|
} else {
|
|
127
138
|
return '';
|
|
128
139
|
}
|
|
129
140
|
}, {
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
130
142
|
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
131
143
|
fontSize: '12px',
|
|
132
144
|
lineHeight: '16px'
|
|
133
|
-
},
|
|
145
|
+
},
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
147
|
+
ellipsis('none'));
|
|
134
148
|
|
|
135
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
136
150
|
var TooltipWrapper = exports.TooltipWrapper = _styled.default.div({
|
|
137
151
|
overflow: 'hidden'
|
|
138
152
|
});
|
|
139
153
|
// NB: `overflow` is kept as `hidden` since
|
|
140
154
|
// the internal contents of the `iframe` should
|
|
141
155
|
// manage scrolling behaviour.
|
|
142
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
156
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
143
157
|
var Content = exports.Content = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t", ";\n\tborder: 1px solid ", ";\n\tbackground-color: ", ";\n\tposition: absolute;\n\tz-index: 1;\n\twidth: 100%;\n\ttransition: box-shadow 0.3s;\n\n\t> .calc-height > div > div {\n\t\tleft: unset !important;\n\t\twidth: unset !important;\n\t\theight: unset !important;\n\t\tposition: initial !important;\n\t\tpadding-bottom: unset !important;\n\t}\n\t> .embed-preview > div {\n\t\tmargin: 0 auto;\n\t}\n\n\t", "\n\n\t", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(_colors.N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
144
158
|
var allowScrollBar = _ref11.allowScrollBar,
|
|
145
159
|
removeOverflow = _ref11.removeOverflow;
|
|
@@ -154,7 +168,7 @@ var Content = exports.Content = _styled.default.div(_templateObject2 || (_templa
|
|
|
154
168
|
var frameStyle = _ref13.frameStyle;
|
|
155
169
|
return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
|
|
156
170
|
});
|
|
157
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
158
172
|
var Image = exports.Image = _styled.default.img(function (_ref14) {
|
|
159
173
|
var size = _ref14.size;
|
|
160
174
|
return csssize(size);
|
|
@@ -163,7 +177,7 @@ var Image = exports.Image = _styled.default.img(function (_ref14) {
|
|
|
163
177
|
});
|
|
164
178
|
var maxAvatarCount = exports.maxAvatarCount = 6;
|
|
165
179
|
|
|
166
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
167
181
|
var ContentWrapper = exports.ContentWrapper = _styled.default.div({
|
|
168
182
|
display: 'flex',
|
|
169
183
|
flexDirection: 'row',
|
|
@@ -171,8 +185,9 @@ var ContentWrapper = exports.ContentWrapper = _styled.default.div({
|
|
|
171
185
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
|
|
172
186
|
});
|
|
173
187
|
|
|
174
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
175
189
|
var Title = exports.Title = _styled.default.div({
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
176
191
|
color: "var(--ds-text, ".concat(colors.N900, ")"),
|
|
177
192
|
fontSize: '16px',
|
|
178
193
|
fontWeight: 500,
|
|
@@ -181,18 +196,22 @@ var Title = exports.Title = _styled.default.div({
|
|
|
181
196
|
overflow: 'hidden'
|
|
182
197
|
});
|
|
183
198
|
|
|
184
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
199
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
185
200
|
var Byline = exports.Byline = _styled.default.div({
|
|
186
201
|
marginTop: "var(--ds-space-050, 4px)",
|
|
202
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
187
203
|
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
188
204
|
fontSize: '12px',
|
|
189
205
|
fontWeight: 'normal',
|
|
190
206
|
lineHeight: 16 / 12
|
|
191
|
-
},
|
|
207
|
+
},
|
|
208
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
209
|
+
ellipsis('100%'));
|
|
192
210
|
|
|
193
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
194
212
|
var Description = exports.Description = _styled.default.div({
|
|
195
213
|
marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
196
215
|
color: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
197
216
|
fontSize: '12px',
|
|
198
217
|
fontWeight: 'normal',
|
|
@@ -201,39 +220,43 @@ var Description = exports.Description = _styled.default.div({
|
|
|
201
220
|
overflow: 'hidden'
|
|
202
221
|
});
|
|
203
222
|
|
|
204
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
223
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
205
224
|
var ResolvedViewIconWrapper = exports.ResolvedViewIconWrapper = _styled.default.div({
|
|
206
225
|
marginTop: "var(--ds-space-050, 4px)"
|
|
207
226
|
});
|
|
208
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
209
228
|
var Thumbnail = exports.Thumbnail = _styled.default.div(borderRadius, csssize(48), function (props) {
|
|
210
229
|
return {
|
|
211
230
|
float: 'right',
|
|
212
231
|
margin: "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)"),
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
213
233
|
backgroundColor: "var(--ds-skeleton, ".concat(colors.N30, ")"),
|
|
234
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
214
235
|
backgroundImage: "url(".concat(props.src, ")"),
|
|
215
236
|
backgroundSize: 'cover'
|
|
216
237
|
};
|
|
217
238
|
});
|
|
218
239
|
|
|
219
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
240
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
220
241
|
var UsersWrapper = exports.UsersWrapper = _styled.default.div({
|
|
221
242
|
marginTop: "var(--ds-space-100, 8px)"
|
|
222
243
|
});
|
|
223
244
|
|
|
224
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
225
246
|
var ActionsWrapper = exports.ActionsWrapper = _styled.default.div({
|
|
226
247
|
marginTop: "var(--ds-space-100, 8px)",
|
|
227
248
|
textAlign: 'right',
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
228
250
|
'> *': {
|
|
229
251
|
marginTop: "var(--ds-space-050, 4px)"
|
|
230
252
|
},
|
|
253
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
231
254
|
'> * + *': {
|
|
232
255
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
233
256
|
}
|
|
234
257
|
});
|
|
235
258
|
|
|
236
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
259
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
237
260
|
var AlertWrapper = exports.AlertWrapper = _styled.default.div({
|
|
238
261
|
position: 'absolute',
|
|
239
262
|
top: 0,
|
|
@@ -15,7 +15,23 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
15
15
|
var _messages = require("../../../messages");
|
|
16
16
|
var _utils = require("../../common/utils");
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
|
|
20
|
+
var messageStyles = (0, _react.css)({
|
|
21
|
+
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
+
marginLeft: (0, _utils.gs)(0.5),
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
+
marginRight: (0, _utils.gs)(0.5),
|
|
26
|
+
display: '-webkit-box',
|
|
27
|
+
overflow: 'hidden',
|
|
28
|
+
textOverflow: 'ellipsis',
|
|
29
|
+
WebkitLineClamp: 1,
|
|
30
|
+
WebkitBoxOrient: 'vertical',
|
|
31
|
+
// Fallback options.
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
maxHeight: (0, _utils.gs)(3)
|
|
34
|
+
});
|
|
19
35
|
var EmbedCardErroredView = exports.EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
20
36
|
var onRetry = _ref.onRetry,
|
|
21
37
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -33,20 +49,7 @@ var EmbedCardErroredView = exports.EmbedCardErroredView = function EmbedCardErro
|
|
|
33
49
|
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
34
50
|
label: "error-icon"
|
|
35
51
|
}), (0, _react.jsx)("span", {
|
|
36
|
-
css:
|
|
37
|
-
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
39
|
-
marginLeft: (0, _utils.gs)(0.5),
|
|
40
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
41
|
-
marginRight: (0, _utils.gs)(0.5),
|
|
42
|
-
display: '-webkit-box',
|
|
43
|
-
overflow: 'hidden',
|
|
44
|
-
textOverflow: 'ellipsis',
|
|
45
|
-
WebkitLineClamp: 1,
|
|
46
|
-
WebkitBoxOrient: 'vertical',
|
|
47
|
-
// Fallback options.
|
|
48
|
-
maxHeight: (0, _utils.gs)(3)
|
|
49
|
-
}
|
|
52
|
+
css: messageStyles
|
|
50
53
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.could_not_load_link)), (0, _react.jsx)(_customThemeButton.default, {
|
|
51
54
|
testId: "err-view-retry",
|
|
52
55
|
appearance: "link",
|
|
@@ -14,6 +14,7 @@ var _Frame = require("../components/Frame");
|
|
|
14
14
|
var _tokens = require("@atlaskit/tokens");
|
|
15
15
|
var _utils = require("../../../utils");
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
|
|
18
19
|
var EmbedCardResolvedView = exports.EmbedCardResolvedView = /*#__PURE__*/_react2.default.forwardRef(function (_ref, embedIframeRef) {
|
|
19
20
|
var link = _ref.link,
|
|
@@ -16,6 +16,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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; }
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
|
|
19
21
|
var UnresolvedView = function UnresolvedView(_ref) {
|
|
20
22
|
var button = _ref.button,
|
|
21
23
|
description = _ref.description,
|
|
@@ -6,10 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.titleStyles = exports.imageStyles = exports.descriptionStyles = exports.contentStyles = exports.containerStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _utils = require("../../../common/utils");
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
12
|
var containerStyles = exports.containerStyles = (0, _react.css)({
|
|
10
13
|
display: 'grid',
|
|
11
14
|
height: 'inherit'
|
|
12
15
|
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
18
|
var contentStyles = exports.contentStyles = (0, _react.css)({
|
|
14
19
|
display: 'flex',
|
|
15
20
|
flexDirection: 'column',
|
|
@@ -18,19 +23,26 @@ var contentStyles = exports.contentStyles = (0, _react.css)({
|
|
|
18
23
|
margin: 'auto',
|
|
19
24
|
padding: "var(--ds-space-200, 16px)",
|
|
20
25
|
gap: "var(--ds-space-250, 20px)",
|
|
26
|
+
// 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
27
|
maxWidth: (0, _utils.gs)(50)
|
|
22
28
|
});
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
23
31
|
var imageStyles = exports.imageStyles = (0, _react.css)({
|
|
24
32
|
height: '120px',
|
|
25
33
|
width: '180px',
|
|
26
34
|
objectFit: 'contain',
|
|
27
35
|
objectPosition: 'center center'
|
|
28
36
|
});
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
29
39
|
var titleStyles = exports.titleStyles = (0, _react.css)({
|
|
30
40
|
textAlign: 'center',
|
|
31
41
|
margin: 0,
|
|
32
42
|
padding: 0
|
|
33
43
|
});
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
34
46
|
var descriptionStyles = exports.descriptionStyles = (0, _react.css)({
|
|
35
47
|
fontSize: '1em',
|
|
36
48
|
textAlign: 'center'
|
|
@@ -10,6 +10,8 @@ var _utils = require("../../../../utils");
|
|
|
10
10
|
var _IFrame = require("../../../EmbedCard/components/IFrame");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
var iframeCss = (0, _react.css)({
|
|
14
16
|
width: '100%',
|
|
15
17
|
height: 'calc(100vh - 208px)'
|
|
@@ -23,6 +23,7 @@ var _styled = require("./styled");
|
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
/** @jsx jsx */
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
27
|
|
|
27
28
|
var LinkInfo = function LinkInfo(_ref) {
|
|
28
29
|
var icon = _ref.icon,
|
|
@@ -80,26 +81,31 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
80
81
|
}))
|
|
81
82
|
);
|
|
82
83
|
}, [onResizeButtonClick, size, testId]);
|
|
83
|
-
return (
|
|
84
|
-
css
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
84
|
+
return (
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
86
|
+
(0, _react.jsx)("div", {
|
|
87
|
+
css: _styled.containerStyles
|
|
88
|
+
}, icon &&
|
|
89
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
90
|
+
(0, _react.jsx)("div", {
|
|
91
|
+
css: _styled.iconCss,
|
|
92
|
+
"data-testid": "".concat(testId, "-icon")
|
|
93
|
+
}, (0, _react.jsx)(_Icon.Icon, icon)), (0, _react.jsx)("div", {
|
|
94
|
+
css: _styled.titleCss
|
|
95
|
+
}, (0, _react.jsx)("h3", {
|
|
96
|
+
"data-testid": "".concat(testId, "-title")
|
|
97
|
+
}, title), (0, _react.jsx)("span", {
|
|
98
|
+
tabIndex: 0
|
|
99
|
+
})), (0, _react.jsx)("div", {
|
|
100
|
+
css: _styled.actionCss
|
|
101
|
+
}, downloadButton, urlButton, sizeButton, (0, _react.jsx)(_linkInfoButton.default, {
|
|
102
|
+
content: (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
|
|
103
|
+
icon: (0, _react.jsx)(_cross.default, {
|
|
104
|
+
label: _messages.messages.preview_close.defaultMessage
|
|
105
|
+
}),
|
|
106
|
+
onClick: onClose,
|
|
107
|
+
testId: "".concat(testId, "-close")
|
|
108
|
+
})))
|
|
109
|
+
);
|
|
104
110
|
};
|
|
105
111
|
var _default = exports.default = LinkInfo;
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.titleCss = exports.iconCss = exports.containerStyles = exports.actionCss = 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 containerStyles = exports.containerStyles = (0, _react.css)({
|
|
9
12
|
alignItems: 'center',
|
|
10
13
|
display: 'flex',
|
|
@@ -19,7 +22,9 @@ var iconSize = '24px';
|
|
|
19
22
|
// EDM-7328: CSS Specificity
|
|
20
23
|
// An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
|
|
21
24
|
// Specify flex ui icon selector to increase specificity weight to 0-2-1.
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
26
|
var iconCss = exports.iconCss = (0, _react.css)({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
28
|
'&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
|
|
24
29
|
height: iconSize,
|
|
25
30
|
minHeight: iconSize,
|
|
@@ -30,8 +35,10 @@ var iconCss = exports.iconCss = (0, _react.css)({
|
|
|
30
35
|
}
|
|
31
36
|
});
|
|
32
37
|
var height = '20px';
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
33
39
|
var titleCss = exports.titleCss = (0, _react.css)({
|
|
34
40
|
flex: '1 1 auto',
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
42
|
h3: {
|
|
36
43
|
flex: '1 1 auto',
|
|
37
44
|
fontSize: '16px',
|
|
@@ -49,17 +56,21 @@ var titleCss = exports.titleCss = (0, _react.css)({
|
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
});
|
|
59
|
+
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
52
61
|
var actionCss = exports.actionCss = (0, _react.css)({
|
|
53
62
|
display: 'flex',
|
|
54
63
|
flex: '0 0 auto',
|
|
55
64
|
gap: "var(--ds-space-050, 4px)",
|
|
56
65
|
lineHeight: height,
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
57
67
|
span: {
|
|
58
68
|
lineHeight: height
|
|
59
69
|
},
|
|
60
70
|
'@media only screen and (max-width: 980px)': {
|
|
61
71
|
// Hide resize button if the screen is smaller than the min width
|
|
62
72
|
// or too small to have enough impact to matter.
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
63
74
|
'.smart-link-resize-button': {
|
|
64
75
|
display: 'none'
|
|
65
76
|
}
|
|
@@ -16,12 +16,16 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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; }
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
|
|
19
21
|
var getButtonStyle = function getButtonStyle(size, iconOnly) {
|
|
20
22
|
switch (size) {
|
|
21
23
|
case _constants.SmartLinkSize.Large:
|
|
22
24
|
return iconOnly ? (0, _react2.css)({
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
26
|
'button, button:hover, button:focus, button:active': {
|
|
24
27
|
padding: 0,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
29
|
'> span': {
|
|
26
30
|
margin: 0
|
|
27
31
|
}
|
|
@@ -32,6 +36,7 @@ var getButtonStyle = function getButtonStyle(size, iconOnly) {
|
|
|
32
36
|
fontSize: '0.75rem',
|
|
33
37
|
fontWeight: 500,
|
|
34
38
|
lineHeight: '1rem',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
40
|
'button, button:hover, button:focus, button:active': [{
|
|
36
41
|
lineHeight: '1rem'
|
|
37
42
|
}, iconOnly ? "\n padding: 0.125rem;\n " : "\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n "]
|
|
@@ -64,6 +69,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
64
69
|
};
|
|
65
70
|
}, []);
|
|
66
71
|
return (0, _react2.jsx)("div", {
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
67
73
|
css: [getButtonStyle(size, iconOnly), overrideCss],
|
|
68
74
|
"data-testid": "".concat(testId, "-button-wrapper")
|
|
69
75
|
}, (0, _react2.jsx)(_tooltip.default, {
|
|
@@ -11,6 +11,8 @@ var _constants = require("../../../../../../constants");
|
|
|
11
11
|
var _utils = require("../../../utils");
|
|
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 getIconWidth = function getIconWidth(size) {
|
|
15
17
|
switch (size) {
|
|
16
18
|
case _constants.SmartLinkSize.XLarge:
|
|
@@ -24,14 +26,17 @@ var getIconWidth = function getIconWidth(size) {
|
|
|
24
26
|
};
|
|
25
27
|
var getIconStyles = function getIconStyles(isDisabled) {
|
|
26
28
|
return (0, _react2.css)({
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
30
|
color: isDisabled ? "var(--ds-text-disabled, #6B778C)" : "var(--ds-icon, #44546F)"
|
|
28
31
|
});
|
|
29
32
|
};
|
|
30
33
|
var stackItemIconSizeStyles = (0, _utils.getIconSizeStyles)('20px');
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
35
|
var stackItemIconStyles = (0, _react2.css)(stackItemIconSizeStyles, {
|
|
32
36
|
display: 'inline-block',
|
|
33
37
|
lineHeight: 0,
|
|
34
38
|
padding: "var(--ds-space-025, 2px)",
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
40
|
'span,svg,img': {
|
|
36
41
|
lineHeight: 0
|
|
37
42
|
}
|
|
@@ -43,7 +48,11 @@ var ActionIcon = function ActionIcon(_ref) {
|
|
|
43
48
|
isDisabled = _ref.isDisabled,
|
|
44
49
|
asStackItemIcon = _ref.asStackItemIcon;
|
|
45
50
|
return (0, _react2.jsx)("span", {
|
|
46
|
-
css: [
|
|
51
|
+
css: [
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
|
+
getIconStyles(isDisabled),
|
|
54
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
55
|
+
asStackItemIcon ? stackItemIconStyles : (0, _utils.getIconSizeStyles)(getIconWidth(size))],
|
|
47
56
|
"data-testid": "".concat(testId, "-icon")
|
|
48
57
|
}, icon);
|
|
49
58
|
};
|
package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -19,6 +19,7 @@ var buttonStyles = (0, _primitives.xcss)({
|
|
|
19
19
|
cursor: 'pointer',
|
|
20
20
|
padding: 'space.050',
|
|
21
21
|
width: '100%',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
22
23
|
':focus:not(:focus-visible)': {
|
|
23
24
|
outline: 'none'
|
|
24
25
|
},
|
|
@@ -13,6 +13,8 @@ var _actionDropdownItem = _interopRequireDefault(require("./action-dropdown-item
|
|
|
13
13
|
var _actionIcon = _interopRequireDefault(require("./action-icon"));
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
+
|
|
16
18
|
/**
|
|
17
19
|
* A base action that can be triggered with an on click.
|
|
18
20
|
* @internal
|
package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -15,13 +15,11 @@ var _aiIcon = _interopRequireDefault(require("../../../../common/ai-icon"));
|
|
|
15
15
|
var _messages = require("../../../../../messages");
|
|
16
16
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
17
17
|
var _utils = require("./utils");
|
|
18
|
-
var _excluded = ["url", "
|
|
18
|
+
var _excluded = ["url", "onClick", "onError", "testId", "status", "summariseUrl"];
|
|
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
|
function AISummariseAction(_ref) {
|
|
22
22
|
var url = _ref.url,
|
|
23
|
-
ari = _ref.ari,
|
|
24
|
-
product = _ref.product,
|
|
25
23
|
onClickCallback = _ref.onClick,
|
|
26
24
|
onErrorCallback = _ref.onError,
|
|
27
25
|
testId = _ref.testId,
|
|
@@ -9,27 +9,21 @@ exports.AISummaryActionComponent = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
12
|
-
var
|
|
12
|
+
var _useAiSummaryAction = _interopRequireDefault(require("../../../../../state/hooks/use-ai-summary-action"));
|
|
13
13
|
var _copySummaryAction = require("./copy-summary-action");
|
|
14
14
|
var _aiSummariseAction = require("./ai-summarise-action");
|
|
15
15
|
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); }
|
|
16
16
|
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; }
|
|
17
17
|
var AISummaryActionComponent = exports.AISummaryActionComponent = function AISummaryActionComponent(props) {
|
|
18
18
|
var url = props.url,
|
|
19
|
-
ari = props.ari,
|
|
20
|
-
product = props.product,
|
|
21
19
|
onLoadingChange = props.onLoadingChange,
|
|
22
20
|
_props$testId = props.testId,
|
|
23
21
|
testId = _props$testId === void 0 ? 'smart-action-ai-summary-action' : _props$testId;
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
_useAISummary$state = _useAISummary.state,
|
|
30
|
-
status = _useAISummary$state.status,
|
|
31
|
-
content = _useAISummary$state.content,
|
|
32
|
-
summariseUrl = _useAISummary.summariseUrl;
|
|
22
|
+
var _useAISummaryAction = (0, _useAiSummaryAction.default)(url),
|
|
23
|
+
_useAISummaryAction$s = _useAISummaryAction.state,
|
|
24
|
+
status = _useAISummaryAction$s.status,
|
|
25
|
+
content = _useAISummaryAction$s.content,
|
|
26
|
+
summariseUrl = _useAISummaryAction.summariseUrl;
|
|
33
27
|
(0, _react.useEffect)(function () {
|
|
34
28
|
onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(status === 'loading');
|
|
35
29
|
}, [onLoadingChange, status]);
|
package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -17,13 +17,11 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
17
17
|
var _action = _interopRequireDefault(require("../action"));
|
|
18
18
|
var _messages = require("../../../../../messages");
|
|
19
19
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
20
|
-
var _excluded = ["url", "
|
|
20
|
+
var _excluded = ["url", "onClick", "testId", "content"];
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
function CopySummaryAction(_ref) {
|
|
24
24
|
var url = _ref.url,
|
|
25
|
-
ari = _ref.ari,
|
|
26
|
-
product = _ref.product,
|
|
27
25
|
onClickCallback = _ref.onClick,
|
|
28
26
|
testId = _ref.testId,
|
|
29
27
|
content = _ref.content,
|
|
@@ -7,6 +7,9 @@ exports.Skeleton = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** @jsx jsx */
|
|
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/use-compiled -- Ignored via go/DSP-18766
|
|
10
13
|
|
|
11
14
|
var AutomationSkeletonContainer = (0, _react.css)({
|
|
12
15
|
paddingBlock: "var(--ds-space-025, 2px)"
|