@atlaskit/smart-card 27.6.0 → 27.6.2
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 +18 -0
- 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 +1 -0
- package/dist/cjs/view/BlockCard/components/ActionList.js +1 -0
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +1 -0
- package/dist/cjs/view/BlockCard/components/Content.js +1 -0
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +1 -0
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +1 -0
- package/dist/cjs/view/BlockCard/components/Emoji.js +1 -0
- package/dist/cjs/view/BlockCard/components/Frame.js +1 -1
- package/dist/cjs/view/BlockCard/components/Link.js +1 -0
- package/dist/cjs/view/BlockCard/components/Name.js +1 -0
- package/dist/cjs/view/BlockCard/components/Provider.js +1 -0
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +1 -1
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +1 -0
- 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 +1 -0
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +1 -0
- 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 +2 -0
- package/dist/cjs/view/BlockCard/views/flexible/unresolved-view/index.js +2 -0
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +1 -0
- package/dist/cjs/view/BlockCard/views/styled.js +2 -0
- package/dist/cjs/view/EmbedCard/components/Frame.js +1 -0
- package/dist/cjs/view/EmbedCard/components/styled.js +1 -1
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +1 -0
- 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 +2 -0
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +2 -0
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +1 -0
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -15
- 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 +1 -1
- 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 +1 -0
- 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 +1 -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 +2 -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 +1 -0
- 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 +11 -22
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- 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 +1 -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 +3 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +1 -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 +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +2 -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 +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/utils.js +1 -1
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +4 -22
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +1 -0
- 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 +2 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +8 -21
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +1 -0
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +2 -0
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +2 -0
- package/dist/cjs/view/HoverCard/index.js +2 -0
- package/dist/cjs/view/HoverCard/styled.js +1 -1
- package/dist/cjs/view/InlineCard/Frame/styled.js +1 -1
- package/dist/cjs/view/InlineCard/Icon.js +2 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +2 -0
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +2 -0
- package/dist/cjs/view/InlineCard/styled.js +2 -0
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +2 -0
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +2 -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/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 +1 -0
- package/dist/cjs/view/common/Icon.js +1 -0
- package/dist/cjs/view/common/Metadata.js +1 -0
- package/dist/cjs/view/common/MetadataList.js +1 -0
- 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 +1 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +1 -0
- package/dist/cjs/view/common/ai-prism/index.js +1 -0
- 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 +1 -0
- package/dist/es2019/view/BlockCard/components/ActionList.js +1 -0
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +1 -0
- package/dist/es2019/view/BlockCard/components/Content.js +1 -0
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -0
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +1 -0
- package/dist/es2019/view/BlockCard/components/Emoji.js +1 -0
- package/dist/es2019/view/BlockCard/components/Frame.js +1 -0
- package/dist/es2019/view/BlockCard/components/Link.js +1 -0
- package/dist/es2019/view/BlockCard/components/Name.js +1 -0
- package/dist/es2019/view/BlockCard/components/Provider.js +1 -0
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +1 -0
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +1 -0
- 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 +1 -0
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -0
- 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 +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +1 -0
- package/dist/es2019/view/BlockCard/views/styled.js +1 -0
- package/dist/es2019/view/EmbedCard/components/Frame.js +1 -0
- package/dist/es2019/view/EmbedCard/components/styled.js +1 -0
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -0
- 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 +1 -0
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -0
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -0
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -16
- 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 +1 -0
- 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 +1 -0
- 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 +1 -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 +1 -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 +1 -0
- 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 +5 -18
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -0
- 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 +1 -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 +3 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +1 -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 +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -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 +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/preview/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/utils.js +1 -0
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +3 -22
- package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +1 -0
- 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 +1 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +5 -19
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +1 -0
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +1 -0
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +1 -0
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +1 -0
- package/dist/es2019/view/HoverCard/index.js +1 -0
- package/dist/es2019/view/HoverCard/styled.js +1 -0
- package/dist/es2019/view/InlineCard/Frame/styled.js +1 -0
- package/dist/es2019/view/InlineCard/Icon.js +1 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +1 -0
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +1 -0
- package/dist/es2019/view/InlineCard/styled.js +1 -0
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +1 -0
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +1 -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/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 +1 -0
- package/dist/es2019/view/common/Icon.js +1 -0
- package/dist/es2019/view/common/Metadata.js +1 -0
- package/dist/es2019/view/common/MetadataList.js +1 -0
- 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 +1 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +1 -0
- package/dist/es2019/view/common/ai-prism/index.js +1 -0
- 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 +1 -0
- package/dist/esm/view/BlockCard/components/ActionList.js +1 -0
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +1 -0
- package/dist/esm/view/BlockCard/components/Content.js +1 -0
- package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -0
- package/dist/esm/view/BlockCard/components/ContentHeader.js +1 -0
- package/dist/esm/view/BlockCard/components/Emoji.js +1 -0
- package/dist/esm/view/BlockCard/components/Frame.js +1 -0
- package/dist/esm/view/BlockCard/components/Link.js +1 -0
- package/dist/esm/view/BlockCard/components/Name.js +1 -0
- package/dist/esm/view/BlockCard/components/Provider.js +1 -0
- package/dist/esm/view/BlockCard/components/Thumbnail.js +1 -0
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -0
- 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 +1 -0
- package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -0
- 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 +1 -0
- package/dist/esm/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +1 -0
- package/dist/esm/view/BlockCard/views/styled.js +1 -0
- package/dist/esm/view/EmbedCard/components/Frame.js +1 -0
- package/dist/esm/view/EmbedCard/components/styled.js +1 -0
- package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -0
- 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 +1 -0
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +1 -0
- package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -0
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -16
- 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 +1 -0
- 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 +1 -0
- 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 +1 -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 +1 -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 +1 -0
- 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 +10 -22
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -0
- 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 +1 -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 +3 -3
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +1 -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 +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/container/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -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 +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/preview/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -0
- package/dist/esm/view/HoverCard/components/ContentContainer.js +4 -22
- package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +1 -0
- 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 +1 -0
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +8 -21
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +1 -0
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +1 -0
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +1 -0
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +1 -0
- package/dist/esm/view/HoverCard/index.js +1 -0
- package/dist/esm/view/HoverCard/styled.js +1 -0
- package/dist/esm/view/InlineCard/Frame/styled.js +1 -0
- package/dist/esm/view/InlineCard/Icon.js +1 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +1 -0
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +1 -0
- package/dist/esm/view/InlineCard/styled.js +1 -0
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +1 -0
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +1 -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/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 +1 -0
- package/dist/esm/view/common/Icon.js +1 -0
- package/dist/esm/view/common/Metadata.js +1 -0
- package/dist/esm/view/common/MetadataList.js +1 -0
- 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 +1 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +1 -0
- package/dist/esm/view/common/ai-prism/index.js +1 -0
- 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/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/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-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/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/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/package.json +34 -26
|
@@ -10,9 +10,7 @@ import { messages } from '../../../../../messages';
|
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { getCanBeDatasource } from '../../../../../state/helpers';
|
|
13
|
-
import
|
|
14
|
-
import { extractAri, extractLink } from '@atlaskit/link-extractors';
|
|
15
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
13
|
+
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
16
14
|
import { SmartLinkStatus } from '../../../../../constants';
|
|
17
15
|
import { di } from 'react-magnetic-di';
|
|
18
16
|
export const toFooterActions = (cardActions, onActionClick) => {
|
|
@@ -50,30 +48,18 @@ export const toFooterActions = (cardActions, onActionClick) => {
|
|
|
50
48
|
return [followAction, ...actions];
|
|
51
49
|
};
|
|
52
50
|
|
|
53
|
-
//This component encapsulates
|
|
51
|
+
//This component encapsulates useAISummarySmartLink hook under the AI Summary FF 'platform.linking-platform.smart-card.hover-card-ai-summaries'
|
|
54
52
|
const ConnectedAIBlock = ({
|
|
55
53
|
bottomPrimary,
|
|
56
54
|
imagePreview,
|
|
57
|
-
|
|
55
|
+
url
|
|
58
56
|
}) => {
|
|
59
|
-
const dataUrl = data ? extractLink(data) : null;
|
|
60
|
-
const dataAri = data ? extractAri(data) : null;
|
|
61
|
-
const {
|
|
62
|
-
product,
|
|
63
|
-
connections
|
|
64
|
-
} = useSmartLinkContext();
|
|
65
57
|
const {
|
|
66
58
|
state: {
|
|
67
59
|
status,
|
|
68
60
|
content
|
|
69
61
|
}
|
|
70
|
-
} =
|
|
71
|
-
url: dataUrl || '',
|
|
72
|
-
ari: dataAri || '',
|
|
73
|
-
product,
|
|
74
|
-
envKey: connections.client.envKey,
|
|
75
|
-
baseUrl: connections.client.baseUrlOverride
|
|
76
|
-
});
|
|
62
|
+
} = useAISummaryAction(url);
|
|
77
63
|
const showData = status === 'ready' || status === 'error' ||
|
|
78
64
|
// Description & bottom metadata should only disappear when we start getting summary content
|
|
79
65
|
!content && status === 'loading';
|
|
@@ -157,7 +143,7 @@ const HoverCardResolvedView = ({
|
|
|
157
143
|
}, /*#__PURE__*/React.createElement(ConnectedAIBlock, {
|
|
158
144
|
imagePreview: !!imagePreview,
|
|
159
145
|
bottomPrimary: tertiary,
|
|
160
|
-
|
|
146
|
+
url: url
|
|
161
147
|
})), !isAISummaryEnabled && !imagePreview && /*#__PURE__*/React.createElement(SnippetBlock, {
|
|
162
148
|
status: SmartLinkStatus.Resolved
|
|
163
149
|
}), /*#__PURE__*/React.createElement(SnippetBlock, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import LoadingSkeleton from '../../../../FlexibleCard/components/common/loading-skeleton';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
|
|
3
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useCallback } from 'react';
|
|
5
6
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
3
4
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
@@ -5,6 +5,7 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
5
5
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
6
6
|
import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl-next';
|
|
7
7
|
import { breakWordsCss } from './styled';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
9
|
import { jsx } from '@emotion/react';
|
|
9
10
|
import { messages } from '../../../messages';
|
|
10
11
|
const WarningModal = props => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
|
|
3
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "27.6.
|
|
10
|
+
packageVersion: "27.6.2",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { jsx } from '@emotion/react';
|
|
5
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
7
|
import Button from '@atlaskit/button/new';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
5
|
import { Card, ElementName, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, TitleBlock } from '../../../../index';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
6
|
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { messages } from '../../../../messages';
|
|
5
6
|
import RelatedLinksList from '../../components/related-links-list';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
const unavailableStyles = css({
|
|
5
6
|
width: '130px',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { Metadata } from './Metadata';
|
|
5
6
|
import { gs } from './utils';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Markdown from 'markdown-to-jsx';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import AIStateIndicator from '../../FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator';
|
|
6
7
|
import UList from './ulist';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
const listStyles = css({
|
|
6
7
|
paddingLeft: "var(--ds-space-250, 20px)",
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { CardAction } from '../../../view/Card/types';
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { getIsAISummaryEnabled } from '../../../utils/ai-summary';
|
|
4
|
-
import { extractAri } from '@atlaskit/link-extractors';
|
|
5
4
|
export var extractAISummaryAction = function extractAISummaryAction(response, url, actionOptions, aiSummaryConfig) {
|
|
6
|
-
if (!canShowAction(CardAction.AISummaryAction, actionOptions) || !getIsAISummaryEnabled(aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.isAdminHubAIEnabled, response) || !
|
|
5
|
+
if (!canShowAction(CardAction.AISummaryAction, actionOptions) || !getIsAISummaryEnabled(aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.isAdminHubAIEnabled, response) || !url) {
|
|
7
6
|
return;
|
|
8
7
|
}
|
|
9
8
|
return {
|
|
10
|
-
url: url
|
|
11
|
-
ari: extractAri(response.data),
|
|
12
|
-
product: aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.product
|
|
9
|
+
url: url
|
|
13
10
|
};
|
|
14
11
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id", "renderers", "actionOptions", "response", "aiSummaryConfig"];
|
|
1
3
|
import { extractSummary } from '../common/primitives';
|
|
2
4
|
import extractActions from './actions';
|
|
3
5
|
import { extractLinkIcon } from './icon';
|
|
@@ -11,19 +13,21 @@ import extractState from './extract-state';
|
|
|
11
13
|
import { extractLatestCommit } from './latest-commit';
|
|
12
14
|
import { extractViewAction } from './actions/extract-view-action';
|
|
13
15
|
var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
14
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}
|
|
15
|
-
|
|
16
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17
|
+
var id = _ref.id,
|
|
16
18
|
renderers = _ref.renderers,
|
|
17
19
|
actionOptions = _ref.actionOptions,
|
|
18
20
|
response = _ref.response,
|
|
19
|
-
aiSummaryConfig = _ref.aiSummaryConfig
|
|
21
|
+
aiSummaryConfig = _ref.aiSummaryConfig,
|
|
22
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
23
|
if (!response) {
|
|
21
24
|
return undefined;
|
|
22
25
|
}
|
|
23
26
|
var data = response.data;
|
|
24
27
|
var url = extractLink(data);
|
|
25
28
|
return {
|
|
26
|
-
|
|
29
|
+
// Use the original URL in edge cases, such as short links for AI summary and copy link actions.
|
|
30
|
+
actions: extractActions(response, props.url, actionOptions, id, aiSummaryConfig),
|
|
27
31
|
assignedToGroup: extractPersonAssignedToAsArray(data),
|
|
28
32
|
attachmentCount: extractAttachmentCount(data),
|
|
29
33
|
authorGroup: extractPersonCreatedBy(data),
|
|
@@ -2,11 +2,11 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
+
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; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
7
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
6
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
9
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
-
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; }
|
|
9
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
11
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
12
12
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
@@ -72,11 +72,11 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
72
72
|
})));
|
|
73
73
|
this.config = {
|
|
74
74
|
requestUrl: this.getRequestUrl(props.envKey, props.baseUrl),
|
|
75
|
-
headers:
|
|
75
|
+
headers: {
|
|
76
76
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
77
77
|
'x-experience-id': 'smart-link',
|
|
78
78
|
'x-product': ((_getXProductHeaderVal = getXProductHeaderValue(props.product)) === null || _getXProductHeaderVal === void 0 ? void 0 : _getXProductHeaderVal.toLowerCase()) || 'confluence'
|
|
79
|
-
}
|
|
79
|
+
}
|
|
80
80
|
};
|
|
81
81
|
this.url = props.url;
|
|
82
82
|
this.ari = props.ari;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import {
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
3
|
import { AISummariesStore } from './ai-summary-service/store';
|
|
4
4
|
import { AISummaryService } from './ai-summary-service';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Stream AI summary for an url.
|
|
7
|
+
* For hook specific to AI summary on as a smart link, please see useAISummaryAction.
|
|
8
|
+
*/
|
|
8
9
|
export var useAISummary = function useAISummary(props) {
|
|
9
10
|
var _AISummariesStore$get;
|
|
10
11
|
var url = props.url,
|
|
11
12
|
baseUrl = props.baseUrl,
|
|
12
|
-
headers = props.headers,
|
|
13
13
|
product = props.product,
|
|
14
14
|
ari = props.ari,
|
|
15
|
-
envKey = props.envKey
|
|
15
|
+
envKey = props.envKey,
|
|
16
|
+
onError = props.onError,
|
|
17
|
+
onStart = props.onStart,
|
|
18
|
+
onSuccess = props.onSuccess;
|
|
16
19
|
var _useState = useState(((_AISummariesStore$get = AISummariesStore.get(url)) === null || _AISummariesStore$get === void 0 ? void 0 : _AISummariesStore$get.state) || {
|
|
17
20
|
status: 'ready',
|
|
18
21
|
content: ''
|
|
@@ -20,28 +23,6 @@ export var useAISummary = function useAISummary(props) {
|
|
|
20
23
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21
24
|
state = _useState2[0],
|
|
22
25
|
setState = _useState2[1];
|
|
23
|
-
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
24
|
-
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
25
|
-
var onStart = useCallback(function (id) {
|
|
26
|
-
startUfoExperience(EXPERIENCE_NAME, id);
|
|
27
|
-
}, []);
|
|
28
|
-
var onSuccess = useCallback(function (id) {
|
|
29
|
-
fireEvent('operational.summary.success', {});
|
|
30
|
-
succeedUfoExperience(EXPERIENCE_NAME, id);
|
|
31
|
-
}, [fireEvent]);
|
|
32
|
-
var onError = useCallback(function (id, reason) {
|
|
33
|
-
/**
|
|
34
|
-
* Errors should only be counted to the SLO if they are not due to acceptable use violations
|
|
35
|
-
* HIPAA content detected or exceeding context length.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
var isSloError = reason === undefined ? true : !['ACCEPTABLE_USE_VIOLATIONS', 'HIPAA_CONTENT_DETECTED', 'EXCEEDING_CONTEXT_LENGTH_ERROR'].includes(reason);
|
|
39
|
-
fireEvent('operational.summary.failed', {
|
|
40
|
-
reason: reason || null,
|
|
41
|
-
isSloError: isSloError
|
|
42
|
-
});
|
|
43
|
-
failUfoExperience(EXPERIENCE_NAME, id);
|
|
44
|
-
}, [fireEvent]);
|
|
45
26
|
useEffect(function () {
|
|
46
27
|
var _AISummariesStore$get2;
|
|
47
28
|
//do not create a service for the empty URL string when the link data is not yet available,
|
|
@@ -51,18 +32,17 @@ export var useAISummary = function useAISummary(props) {
|
|
|
51
32
|
url: url,
|
|
52
33
|
ari: ari,
|
|
53
34
|
baseUrl: baseUrl,
|
|
54
|
-
|
|
35
|
+
product: product,
|
|
36
|
+
envKey: envKey,
|
|
55
37
|
onError: onError,
|
|
56
38
|
onStart: onStart,
|
|
57
|
-
onSuccess: onSuccess
|
|
58
|
-
product: product,
|
|
59
|
-
envKey: envKey
|
|
39
|
+
onSuccess: onSuccess
|
|
60
40
|
}));
|
|
61
41
|
}
|
|
62
42
|
|
|
63
43
|
//returns function that calls unsubscribe method
|
|
64
44
|
return (_AISummariesStore$get2 = AISummariesStore.get(url)) === null || _AISummariesStore$get2 === void 0 ? void 0 : _AISummariesStore$get2.subscribe(setState);
|
|
65
|
-
}, [url, baseUrl,
|
|
45
|
+
}, [url, baseUrl, onError, onStart, onSuccess, product, ari, envKey]);
|
|
66
46
|
var summariseUrl = function summariseUrl() {
|
|
67
47
|
var _AISummariesStore$get3;
|
|
68
48
|
return (_AISummariesStore$get3 = AISummariesStore.get(url)) === null || _AISummariesStore$get3 === void 0 ? void 0 : _AISummariesStore$get3.summariseUrl();
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { extractAri, extractLink } from '@atlaskit/link-extractors';
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
4
|
+
import { failUfoExperience, startUfoExperience, succeedUfoExperience } from '../../analytics';
|
|
5
|
+
import { useSmartCardState } from '../../store';
|
|
6
|
+
import { useAISummary } from '../use-ai-summary';
|
|
7
|
+
import { useAISummaryConfig } from '../use-ai-summary-config';
|
|
8
|
+
var EXPERIENCE_NAME = 'smart-link-ai-summary';
|
|
9
|
+
var useAISummaryAction = function useAISummaryAction(url) {
|
|
10
|
+
var _cardState$details;
|
|
11
|
+
var _useAISummaryConfig = useAISummaryConfig(),
|
|
12
|
+
baseUrl = _useAISummaryConfig.baseUrl,
|
|
13
|
+
envKey = _useAISummaryConfig.envKey,
|
|
14
|
+
product = _useAISummaryConfig.product;
|
|
15
|
+
var cardState = useSmartCardState(url);
|
|
16
|
+
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
17
|
+
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
18
|
+
var data = (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data;
|
|
19
|
+
var ari = data && extractAri(data);
|
|
20
|
+
var dataUrl = data && extractLink(data) || '';
|
|
21
|
+
var onStart = useCallback(function (id) {
|
|
22
|
+
startUfoExperience(EXPERIENCE_NAME, id);
|
|
23
|
+
}, []);
|
|
24
|
+
var onSuccess = useCallback(function (id) {
|
|
25
|
+
fireEvent('operational.summary.success', {});
|
|
26
|
+
succeedUfoExperience(EXPERIENCE_NAME, id);
|
|
27
|
+
}, [fireEvent]);
|
|
28
|
+
var onError = useCallback(function (id, reason) {
|
|
29
|
+
/**
|
|
30
|
+
* Errors should only be counted to the SLO if they are not due to acceptable use violations
|
|
31
|
+
* HIPAA content detected or exceeding context length.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
var isSloError = reason === undefined ? true : !['ACCEPTABLE_USE_VIOLATIONS', 'HIPAA_CONTENT_DETECTED', 'EXCEEDING_CONTEXT_LENGTH_ERROR'].includes(reason);
|
|
35
|
+
fireEvent('operational.summary.failed', {
|
|
36
|
+
reason: reason || null,
|
|
37
|
+
isSloError: isSloError
|
|
38
|
+
});
|
|
39
|
+
failUfoExperience(EXPERIENCE_NAME, id);
|
|
40
|
+
}, [fireEvent]);
|
|
41
|
+
return useAISummary({
|
|
42
|
+
url: dataUrl,
|
|
43
|
+
ari: ari,
|
|
44
|
+
product: product,
|
|
45
|
+
envKey: envKey,
|
|
46
|
+
baseUrl: baseUrl,
|
|
47
|
+
onStart: onStart,
|
|
48
|
+
onSuccess: onSuccess,
|
|
49
|
+
onError: onError
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export default useAISummaryAction;
|
|
@@ -2,12 +2,15 @@ import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
export var useAISummaryConfig = function useAISummaryConfig() {
|
|
4
4
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
5
|
+
connections = _useSmartLinkContext.connections,
|
|
5
6
|
product = _useSmartLinkContext.product,
|
|
6
7
|
isAdminHubAIEnabled = _useSmartLinkContext.isAdminHubAIEnabled;
|
|
7
8
|
return useMemo(function () {
|
|
8
9
|
return {
|
|
10
|
+
baseUrl: connections.client.baseUrlOverride,
|
|
11
|
+
envKey: connections.client.envKey,
|
|
9
12
|
product: product,
|
|
10
13
|
isAdminHubAIEnabled: isAdminHubAIEnabled
|
|
11
14
|
};
|
|
12
|
-
}, [product, isAdminHubAIEnabled]);
|
|
15
|
+
}, [connections.client.baseUrlOverride, connections.client.envKey, product, isAdminHubAIEnabled]);
|
|
13
16
|
};
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "27.6.
|
|
18
|
+
packageVersion: "27.6.2"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/mocks.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { useState } from 'react';
|
|
5
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -2,6 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
var _excluded = ["triggerRef"];
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
6
|
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
7
8
|
import Button from '@atlaskit/button/standard-button';
|
|
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
6
|
import { jsx } from '@emotion/react';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { N20A, N30A, B200, N40A, N50A } from '@atlaskit/theme/colors';
|