@atlaskit/smart-card 26.42.9 → 26.42.11
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 +13 -0
- package/dist/cjs/constants.js +2 -1
- package/dist/cjs/messages.js +7 -2
- package/dist/cjs/state/helpers.js +4 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/Action.js +5 -8
- package/dist/cjs/view/BlockCard/components/ActionList.js +9 -11
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +2 -5
- package/dist/cjs/view/BlockCard/components/Content.js +1 -4
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +1 -4
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +1 -4
- package/dist/cjs/view/BlockCard/components/Emoji.js +2 -5
- package/dist/cjs/view/BlockCard/components/Frame.js +5 -6
- package/dist/cjs/view/BlockCard/components/Link.js +1 -4
- package/dist/cjs/view/BlockCard/components/Name.js +1 -4
- package/dist/cjs/view/BlockCard/components/Provider.js +3 -6
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +5 -6
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +1 -4
- package/dist/cjs/view/BlockCard/index.js +16 -19
- package/dist/cjs/view/BlockCard/views/ErroredView.js +11 -12
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +9 -12
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +10 -11
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +13 -16
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +4 -7
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +9 -10
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +7 -6
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +2 -5
- package/dist/cjs/view/CardWithData/component.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +2 -2
- package/dist/cjs/view/EmbedCard/components/Frame.js +12 -15
- package/dist/cjs/view/EmbedCard/components/IframeDwellTracker.js +0 -2
- package/dist/cjs/view/EmbedCard/index.js +4 -1
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +5 -8
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +9 -12
- package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +4 -2
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +8 -10
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +4 -2
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +11 -14
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +1 -2
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +24 -27
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +4 -5
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +3 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +8 -9
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +2 -3
- 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/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +5 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +3 -6
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +3 -4
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +5 -6
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +4 -5
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +3 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +3 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/index.js +7 -10
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +22 -34
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -14
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +31 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +10 -12
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +1 -3
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +26 -29
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +16 -19
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +12 -15
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +3 -0
- package/dist/cjs/view/HoverCard/index.js +6 -9
- package/dist/cjs/view/InlineCard/types.js +5 -0
- package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.js +1 -0
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +9 -12
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/LinkView/index.js +1 -1
- package/dist/cjs/view/common/Byline.js +1 -4
- package/dist/cjs/view/common/Icon.js +4 -5
- package/dist/cjs/view/common/Metadata.js +4 -7
- package/dist/cjs/view/common/MetadataList.js +2 -5
- package/dist/cjs/view/common/UnauthorisedViewContent.js +4 -2
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/messages.js +7 -2
- package/dist/es2019/state/helpers.js +2 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +3 -5
- package/dist/es2019/view/BlockCard/components/ActionList.js +8 -10
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +2 -4
- package/dist/es2019/view/BlockCard/components/Content.js +1 -3
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -3
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +1 -3
- package/dist/es2019/view/BlockCard/components/Emoji.js +1 -3
- package/dist/es2019/view/BlockCard/components/Frame.js +3 -5
- package/dist/es2019/view/BlockCard/components/Link.js +1 -3
- package/dist/es2019/view/BlockCard/components/Name.js +1 -3
- package/dist/es2019/view/BlockCard/components/Provider.js +3 -5
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +4 -6
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +1 -3
- package/dist/es2019/view/BlockCard/index.js +16 -19
- package/dist/es2019/view/BlockCard/views/ErroredView.js +8 -10
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +9 -11
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +8 -10
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +13 -15
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +4 -6
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +8 -10
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +9 -8
- package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +2 -4
- package/dist/es2019/view/CardWithData/component.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +2 -2
- package/dist/es2019/view/EmbedCard/components/Frame.js +2 -4
- package/dist/es2019/view/EmbedCard/components/IframeDwellTracker.js +0 -1
- package/dist/es2019/view/EmbedCard/index.js +5 -2
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +5 -7
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +4 -6
- package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +4 -2
- package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +9 -10
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/index.js +3 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +8 -10
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +2 -4
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +20 -22
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +5 -6
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +9 -10
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +6 -7
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/container/index.js +4 -5
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +6 -7
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +5 -6
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +4 -5
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +4 -5
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +10 -16
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +8 -10
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +20 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +5 -7
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/elements/preview/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +2 -3
- package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +1 -3
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +5 -7
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +7 -9
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +11 -13
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +3 -0
- package/dist/es2019/view/HoverCard/index.js +4 -6
- package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.js +1 -0
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +9 -11
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/LinkView/index.js +1 -1
- package/dist/es2019/view/common/Byline.js +1 -3
- package/dist/es2019/view/common/Icon.js +5 -6
- package/dist/es2019/view/common/Metadata.js +4 -6
- package/dist/es2019/view/common/MetadataList.js +2 -4
- package/dist/es2019/view/common/UnauthorisedViewContent.js +5 -3
- package/dist/esm/constants.js +1 -0
- package/dist/esm/messages.js +7 -2
- package/dist/esm/state/helpers.js +3 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +3 -5
- package/dist/esm/view/BlockCard/components/ActionList.js +9 -11
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +2 -4
- package/dist/esm/view/BlockCard/components/Content.js +1 -3
- package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -3
- package/dist/esm/view/BlockCard/components/ContentHeader.js +1 -3
- package/dist/esm/view/BlockCard/components/Emoji.js +1 -3
- package/dist/esm/view/BlockCard/components/Frame.js +3 -5
- package/dist/esm/view/BlockCard/components/Link.js +1 -3
- package/dist/esm/view/BlockCard/components/Name.js +1 -3
- package/dist/esm/view/BlockCard/components/Provider.js +3 -5
- package/dist/esm/view/BlockCard/components/Thumbnail.js +4 -6
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -3
- package/dist/esm/view/BlockCard/index.js +16 -19
- package/dist/esm/view/BlockCard/views/ErroredView.js +8 -10
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +9 -11
- package/dist/esm/view/BlockCard/views/NotFoundView.js +8 -10
- package/dist/esm/view/BlockCard/views/ResolvedView.js +13 -15
- package/dist/esm/view/BlockCard/views/ResolvingView.js +4 -6
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +8 -10
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +9 -8
- package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +2 -4
- package/dist/esm/view/CardWithData/component.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +2 -2
- package/dist/esm/view/EmbedCard/components/Frame.js +2 -4
- package/dist/esm/view/EmbedCard/components/IframeDwellTracker.js +0 -1
- package/dist/esm/view/EmbedCard/index.js +5 -2
- package/dist/esm/view/EmbedCard/views/ErroredView.js +5 -7
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +4 -6
- package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +4 -2
- package/dist/esm/view/EmbedCard/views/UnresolvedView.js +9 -10
- package/dist/esm/view/EmbedCard/views/unauthorized-view/index.js +4 -2
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +8 -10
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +2 -4
- package/dist/esm/view/EmbedModal/components/link-info/index.js +20 -22
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +5 -6
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +9 -10
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -4
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +6 -7
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/container/index.js +4 -5
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +3 -4
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +3 -4
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +6 -7
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +3 -4
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +5 -6
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +4 -5
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +4 -5
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +10 -18
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +8 -10
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +24 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +5 -7
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +3 -4
- package/dist/esm/view/FlexibleCard/components/elements/preview/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +2 -3
- package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +1 -3
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +5 -7
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +7 -9
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +11 -13
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +3 -0
- package/dist/esm/view/HoverCard/index.js +4 -6
- package/dist/esm/view/InlineCard/types.js +1 -0
- package/dist/esm/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.js +1 -0
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +9 -11
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/LinkView/index.js +1 -1
- package/dist/esm/view/common/Byline.js +1 -3
- package/dist/esm/view/common/Icon.js +5 -6
- package/dist/esm/view/common/Metadata.js +4 -6
- package/dist/esm/view/common/MetadataList.js +2 -4
- package/dist/esm/view/common/UnauthorisedViewContent.js +5 -3
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/extractors/inline/index.d.ts +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/helpers.d.ts +1 -0
- package/dist/types/view/EmbedCard/views/UnauthorisedView.d.ts +1 -0
- package/dist/types/view/EmbedCard/views/unauthorized-view/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.d.ts +7 -0
- package/dist/types/view/LinkView/index.d.ts +1 -1
- package/dist/types/view/common/UnauthorisedViewContent.d.ts +6 -1
- package/dist/types-ts4.5/constants.d.ts +1 -0
- package/dist/types-ts4.5/extractors/inline/index.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/helpers.d.ts +1 -0
- package/dist/types-ts4.5/view/EmbedCard/views/UnauthorisedView.d.ts +1 -0
- package/dist/types-ts4.5/view/EmbedCard/views/unauthorized-view/types.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.d.ts +7 -0
- package/dist/types-ts4.5/view/LinkView/index.d.ts +1 -1
- package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +6 -1
- package/package.json +1 -1
- /package/dist/cjs/view/{RedesignedInlineCard → FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group}/types.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/Frame/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/Frame/styled.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/Icon.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/index.js +0 -0
- /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/styled.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group}/types.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/Frame/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/Frame/styled.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/Icon.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/index.js +0 -0
- /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/styled.js +0 -0
- /package/dist/{esm/view/RedesignedInlineCard → es2019/view/InlineCard}/types.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/Frame/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/Frame/styled.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/Icon.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/index.js +0 -0
- /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/styled.js +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/Frame/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/Frame/styled.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/Icon.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/index.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/styled.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/types.d.ts +0 -0
- /package/dist/types/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/Frame/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/Frame/styled.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/Icon.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/styled.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/types.d.ts +0 -0
- /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.d.ts +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { useIntl, FormattedMessage } from 'react-intl-next';
|
|
7
|
-
import { css
|
|
6
|
+
import { css } from '@emotion/react';
|
|
8
7
|
import { getTruncateStyles } from '../../utils';
|
|
9
8
|
import { tokens } from '../../../../../utils/token';
|
|
10
9
|
import { selectUnit } from '@formatjs/intl-utils';
|
|
@@ -66,13 +65,13 @@ var DateTime = function DateTime(_ref) {
|
|
|
66
65
|
numeric: 'auto'
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
|
-
return
|
|
68
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
70
69
|
css: [styles, overrideCss],
|
|
71
70
|
"data-separator": true,
|
|
72
71
|
"data-smart-element": name,
|
|
73
72
|
"data-smart-element-date-time": true,
|
|
74
73
|
"data-testid": testId
|
|
75
|
-
}, text ? "".concat(text, " ").concat(context) :
|
|
74
|
+
}, text ? "".concat(text, " ").concat(context) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
|
|
76
75
|
values: {
|
|
77
76
|
context: context
|
|
78
77
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React, { useMemo } from 'react';
|
|
5
4
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
6
|
-
import { css
|
|
5
|
+
import { css } from '@emotion/react';
|
|
7
6
|
import { SmartLinkPosition, SmartLinkSize } from '../../../../../constants';
|
|
8
7
|
import AtlaskitIcon from '../../common/atlaskit-icon';
|
|
9
8
|
import ImageIcon from '../../common/image-icon';
|
|
@@ -25,7 +24,7 @@ var getCustomRenderStyles = function getCustomRenderStyles(value) {
|
|
|
25
24
|
};
|
|
26
25
|
var renderAtlaskitIcon = function renderAtlaskitIcon(icon, label, testId) {
|
|
27
26
|
if (icon) {
|
|
28
|
-
return
|
|
27
|
+
return /*#__PURE__*/React.createElement(AtlaskitIcon, {
|
|
29
28
|
icon: icon,
|
|
30
29
|
label: label,
|
|
31
30
|
testId: "".concat(testId, "-icon")
|
|
@@ -33,14 +32,14 @@ var renderAtlaskitIcon = function renderAtlaskitIcon(icon, label, testId) {
|
|
|
33
32
|
}
|
|
34
33
|
};
|
|
35
34
|
var renderDefaultIcon = function renderDefaultIcon(label, testId) {
|
|
36
|
-
return
|
|
35
|
+
return /*#__PURE__*/React.createElement(LinkIcon, {
|
|
37
36
|
label: label,
|
|
38
37
|
testId: "".concat(testId, "-default")
|
|
39
38
|
});
|
|
40
39
|
};
|
|
41
40
|
var renderImageIcon = function renderImageIcon(defaultIcon, url, testId) {
|
|
42
41
|
if (url) {
|
|
43
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement(ImageIcon, {
|
|
44
43
|
defaultIcon: defaultIcon,
|
|
45
44
|
testId: testId,
|
|
46
45
|
url: url
|
|
@@ -75,7 +74,7 @@ var Icon = function Icon(_ref) {
|
|
|
75
74
|
var width = getIconWidth(size);
|
|
76
75
|
var styles = getIconStyles(position, width);
|
|
77
76
|
var renderStyles = render ? getCustomRenderStyles(width) : undefined;
|
|
78
|
-
return
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
79
78
|
css: [styles, renderStyles, overrideCss],
|
|
80
79
|
"data-fit-to-content": true,
|
|
81
80
|
"data-smart-element": name,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React, { useMemo } from 'react';
|
|
6
|
-
import { css
|
|
5
|
+
import { css } from '@emotion/react';
|
|
7
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
7
|
import { SmartLinkInternalTheme, SmartLinkSize, SmartLinkTheme } from '../../../../../constants';
|
|
9
8
|
import { getLinkLineHeight, getLinkSizeStyles, getTruncateStyles, hasWhiteSpace } from '../../utils';
|
|
@@ -41,7 +40,7 @@ var getMaxLines = function getMaxLines(maxLines) {
|
|
|
41
40
|
return maxLines;
|
|
42
41
|
};
|
|
43
42
|
var withTooltip = function withTooltip(trigger, content, testId) {
|
|
44
|
-
return
|
|
43
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
45
44
|
content: content,
|
|
46
45
|
testId: "".concat(testId, "-tooltip"),
|
|
47
46
|
tag: "span"
|
|
@@ -75,7 +74,7 @@ var Link = function Link(_ref) {
|
|
|
75
74
|
var hasSpace = useMemo(function () {
|
|
76
75
|
return text ? hasWhiteSpace(text) : false;
|
|
77
76
|
}, [text]);
|
|
78
|
-
var anchor =
|
|
77
|
+
var anchor = /*#__PURE__*/React.createElement("a", _extends({
|
|
79
78
|
css: [getAnchorStyles(size, theme, getMaxLines(maxLines), hasSpace), overrideCss],
|
|
80
79
|
"data-smart-element": name,
|
|
81
80
|
"data-smart-element-link": true,
|
|
@@ -88,7 +87,7 @@ var Link = function Link(_ref) {
|
|
|
88
87
|
}, target !== '_self' && {
|
|
89
88
|
target: target
|
|
90
89
|
}), text);
|
|
91
|
-
return
|
|
90
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
92
91
|
css: containerStyles
|
|
93
92
|
}, hideTooltip || text === undefined ? anchor : withTooltip(anchor, text, testId));
|
|
94
93
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import AtlaskitLozenge from '@atlaskit/lozenge';
|
|
7
6
|
import LozengeAction from './lozenge-action';
|
|
8
7
|
import { useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -27,17 +26,17 @@ var Lozenge = function Lozenge(_ref) {
|
|
|
27
26
|
if (!text) {
|
|
28
27
|
return null;
|
|
29
28
|
}
|
|
30
|
-
var lozenge = action ?
|
|
29
|
+
var lozenge = action ? /*#__PURE__*/React.createElement(LozengeAction, {
|
|
31
30
|
action: action,
|
|
32
31
|
appearance: appearance,
|
|
33
32
|
testId: testId,
|
|
34
33
|
text: text,
|
|
35
34
|
zIndex: ui === null || ui === void 0 ? void 0 : ui.zIndex
|
|
36
|
-
}) :
|
|
35
|
+
}) : /*#__PURE__*/React.createElement(AtlaskitLozenge, {
|
|
37
36
|
appearance: appearance,
|
|
38
37
|
testId: "".concat(testId, "-lozenge")
|
|
39
38
|
}, text);
|
|
40
|
-
return
|
|
39
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
41
40
|
css: [styles, overrideCss],
|
|
42
41
|
"data-fit-to-content": true,
|
|
43
42
|
"data-smart-element": name,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { useEffect, useMemo, useRef } from 'react';
|
|
4
2
|
import { StorageClient } from '@atlaskit/frontend-utilities/storage-client';
|
|
5
3
|
import { getPulseStyles } from './styled';
|
|
@@ -39,7 +37,7 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
39
37
|
}, [storageClient, discovered]);
|
|
40
38
|
var component = useMemo(function () {
|
|
41
39
|
if (!discovered) {
|
|
42
|
-
return
|
|
40
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
43
41
|
css: getPulseStyles(appearance),
|
|
44
42
|
"data-testid": "".concat(testId, "-discovery")
|
|
45
43
|
}, children);
|
|
@@ -2,15 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
-
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
5
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
|
-
import DropdownMenu
|
|
9
|
-
import LozengeActionItem from './lozenge-action-item';
|
|
6
|
+
import DropdownMenu from '@atlaskit/dropdown-menu';
|
|
10
7
|
import LozengeActionTrigger from './lozenge-action-trigger';
|
|
11
8
|
import LozengeActionError from './lozenge-action-error';
|
|
12
9
|
import withErrorBoundary from './error-boundary';
|
|
13
|
-
import { dropdownItemGroupStyles } from './styled';
|
|
14
10
|
import useInvoke from '../../../../../../state/hooks/use-invoke';
|
|
15
11
|
import extractLozengeActionItems from '../../../../../../extractors/action/extract-lozenge-action-items';
|
|
16
12
|
import createStatusUpdateRequest from '../../../../../../utils/actions/create-status-update-request';
|
|
@@ -20,6 +16,7 @@ import { isInvokeCustomError } from '../../../../../../state/hooks/use-invoke/ut
|
|
|
20
16
|
import { useFlexibleUiAnalyticsContext } from '../../../../../../state/flexible-ui-context';
|
|
21
17
|
import { TrackQuickActionType } from '../../../../../../utils/analytics/analytics';
|
|
22
18
|
import { permissionLoadErrorAnalyticsPayload, unknownLoadErrorAnalyticsPayload, unknownUpdateErrorAnalyticsPayload, validationUpdateErrorAnalyticsPayload } from './lozenge-action-analytics';
|
|
19
|
+
import LozengeActionItemsGroup from './lozenge-action-items-group';
|
|
23
20
|
var validateItems = function validateItems() {
|
|
24
21
|
var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
25
22
|
var text = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -136,7 +133,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
136
133
|
};
|
|
137
134
|
}(), [action.read, analytics, invoke, isLoaded, text]);
|
|
138
135
|
var trigger = useCallback(function (props) {
|
|
139
|
-
return
|
|
136
|
+
return /*#__PURE__*/React.createElement(LozengeActionTrigger, _extends({}, props, {
|
|
140
137
|
appearance: selected.appearance,
|
|
141
138
|
isOpen: isOpen,
|
|
142
139
|
showFeatureDiscovery: action === null || action === void 0 ? void 0 : action.showFeatureDiscovery,
|
|
@@ -205,7 +202,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
205
202
|
}(), [action === null || action === void 0 ? void 0 : action.update, analytics, invoke, linkId, reload, url]);
|
|
206
203
|
var dropdownItemGroup = useMemo(function () {
|
|
207
204
|
if (errorMessage) {
|
|
208
|
-
return
|
|
205
|
+
return /*#__PURE__*/React.createElement(LozengeActionError, {
|
|
209
206
|
errorMessage: errorMessage,
|
|
210
207
|
testId: testId,
|
|
211
208
|
url: url,
|
|
@@ -213,19 +210,14 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
213
210
|
});
|
|
214
211
|
}
|
|
215
212
|
if (items && items.length > 0) {
|
|
216
|
-
return
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
key: idx,
|
|
222
|
-
onClick: handleItemClick,
|
|
223
|
-
testId: "".concat(testId, "-item-").concat(idx)
|
|
224
|
-
}));
|
|
225
|
-
})));
|
|
213
|
+
return /*#__PURE__*/React.createElement(LozengeActionItemsGroup, {
|
|
214
|
+
testId: testId,
|
|
215
|
+
items: items,
|
|
216
|
+
onClick: handleItemClick
|
|
217
|
+
});
|
|
226
218
|
}
|
|
227
219
|
}, [errorMessage, handleItemClick, items, previewData, testId, url]);
|
|
228
|
-
return
|
|
220
|
+
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
229
221
|
isLoading: isLoading,
|
|
230
222
|
isOpen: isOpen,
|
|
231
223
|
onOpenChange: handleOpenChange,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
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
|
-
/** @jsx jsx */
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
4
|
import { Fragment, useMemo, useCallback } from 'react';
|
|
7
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
6
|
import { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
@@ -39,29 +37,29 @@ var LozengeActionError = function LozengeActionError(_ref) {
|
|
|
39
37
|
}
|
|
40
38
|
}, [analytics, handlePreviewClose, isPreviewAvailable, previewData]);
|
|
41
39
|
var content = useMemo(function () {
|
|
42
|
-
return
|
|
40
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
43
41
|
css: contentStyles
|
|
44
|
-
},
|
|
42
|
+
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
45
43
|
testId: "".concat(testId, "-icon"),
|
|
46
44
|
size: "medium",
|
|
47
45
|
primaryColor: "var(--ds-icon-danger, ".concat(R500, ")"),
|
|
48
46
|
secondaryColor: "var(--ds-background-danger, ".concat(R50, ")"),
|
|
49
47
|
label: 'error'
|
|
50
|
-
}),
|
|
48
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
51
49
|
css: textStyles(maxLineNumber),
|
|
52
50
|
"data-testid": "".concat(testId, "-error-message")
|
|
53
|
-
}, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ?
|
|
51
|
+
}, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ? /*#__PURE__*/React.createElement("div", {
|
|
54
52
|
css: linkStyles
|
|
55
|
-
},
|
|
53
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
56
54
|
target: "_blank",
|
|
57
55
|
"data-testid": "".concat(testId, "-open-embed"),
|
|
58
56
|
onClick: handlePreviewOpen
|
|
59
|
-
},
|
|
57
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.open_issue_in_jira))) : null);
|
|
60
58
|
}, [errorMessage, handlePreviewOpen, isPreviewAvailable, maxLineNumber, testId]);
|
|
61
|
-
return
|
|
59
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
62
60
|
css: dropdownItemGroupStyles,
|
|
63
61
|
"data-testid": "".concat(testId, "-error-item-group")
|
|
64
|
-
},
|
|
62
|
+
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
65
63
|
testId: "".concat(testId, "-error")
|
|
66
64
|
}, content)));
|
|
67
65
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import LozengeActionItem from '../lozenge-action-item';
|
|
3
|
+
import { dropdownItemGroupStyles } from '../styled';
|
|
4
|
+
import { DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
5
|
+
var LozengeActionItemsGroup = function LozengeActionItemsGroup(_ref) {
|
|
6
|
+
var items = _ref.items,
|
|
7
|
+
testId = _ref.testId,
|
|
8
|
+
onClick = _ref.onClick;
|
|
9
|
+
return (
|
|
10
|
+
/*#__PURE__*/
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
12
|
+
React.createElement("span", {
|
|
13
|
+
css: dropdownItemGroupStyles,
|
|
14
|
+
"data-testid": "".concat(testId, "-item-group")
|
|
15
|
+
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, items.map(function (item, idx) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(LozengeActionItem, _extends({}, item, {
|
|
17
|
+
key: idx,
|
|
18
|
+
onClick: onClick,
|
|
19
|
+
testId: "".concat(testId, "-item-").concat(idx)
|
|
20
|
+
}));
|
|
21
|
+
})))
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export default LozengeActionItemsGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,8 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["appearance", "isOpen", "showFeatureDiscovery", "testId", "text", "triggerRef"];
|
|
5
|
-
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
5
|
import { useCallback, useMemo, useState } from 'react';
|
|
8
6
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
7
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
@@ -28,17 +26,17 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
28
26
|
return setIsBold(false);
|
|
29
27
|
}, []);
|
|
30
28
|
var lozenge = useMemo(function () {
|
|
31
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement(Lozenge, {
|
|
32
30
|
appearance: appearance,
|
|
33
31
|
isBold: isBold
|
|
34
|
-
},
|
|
32
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
35
33
|
css: triggerLozengeStyles
|
|
36
|
-
},
|
|
34
|
+
}, /*#__PURE__*/React.createElement("span", null, text), /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
37
35
|
label: "options",
|
|
38
36
|
size: "medium"
|
|
39
37
|
})));
|
|
40
38
|
}, [appearance, isBold, text]);
|
|
41
|
-
return
|
|
39
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
42
40
|
type: "button"
|
|
43
41
|
}, props, {
|
|
44
42
|
css: triggerButtonStyles,
|
|
@@ -47,7 +45,7 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
47
45
|
onMouseEnter: onMouseEnter,
|
|
48
46
|
onMouseLeave: onMouseLeave,
|
|
49
47
|
ref: triggerRef
|
|
50
|
-
}), showFeatureDiscovery ?
|
|
48
|
+
}), showFeatureDiscovery ? /*#__PURE__*/React.createElement(FeatureDiscovery, {
|
|
51
49
|
appearance: appearance,
|
|
52
50
|
testId: testId
|
|
53
51
|
}, lozenge) : lozenge);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import ImageIcon from '../../common/image-icon';
|
|
7
6
|
/**
|
|
8
7
|
* Media: Image
|
|
@@ -34,12 +33,12 @@ var Media = function Media(_ref) {
|
|
|
34
33
|
if (!type || !url) {
|
|
35
34
|
return null;
|
|
36
35
|
}
|
|
37
|
-
return
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
37
|
css: [styles, overrideCss],
|
|
39
38
|
"data-smart-element": name,
|
|
40
39
|
"data-smart-element-media": type,
|
|
41
40
|
"data-testid": testId
|
|
42
|
-
},
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ImageIcon, {
|
|
43
42
|
testId: "".concat(testId, "-image"),
|
|
44
43
|
url: url,
|
|
45
44
|
onError: onError,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["overrideUrl"];
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React, { useContext } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
5
|
import { FlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
8
6
|
import { MediaType } from '../../../../../constants';
|
|
9
7
|
import Media from '../media';
|
|
@@ -19,6 +17,6 @@ var Preview = function Preview(props) {
|
|
|
19
17
|
if (!data) {
|
|
20
18
|
return null;
|
|
21
19
|
}
|
|
22
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement(Media, _extends({}, rest, data));
|
|
23
21
|
};
|
|
24
22
|
export default Preview;
|
|
@@ -3,8 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _excluded = ["content", "maxLines", "overrideCss"];
|
|
5
5
|
var _templateObject;
|
|
6
|
-
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
6
|
+
import { css } from '@emotion/react';
|
|
8
7
|
import React, { useContext } from 'react';
|
|
9
8
|
import { FlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
10
9
|
import Text from '../text';
|
|
@@ -20,7 +19,7 @@ var SnippetElement = function SnippetElement() {
|
|
|
20
19
|
overrideCss = _ref.overrideCss,
|
|
21
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
21
|
var context = useContext(FlexibleUiContext);
|
|
23
|
-
return
|
|
22
|
+
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
24
23
|
content: overrideContent !== null && overrideContent !== void 0 ? overrideContent : context === null || context === void 0 ? void 0 : context.snippet,
|
|
25
24
|
maxLines: maxLines,
|
|
26
25
|
overrideCss: getSnippetStyles(overrideCss)
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import { getFormattedMessage, getTruncateStyles } from '../../utils';
|
|
7
6
|
import { tokens } from '../../../../../utils/token';
|
|
8
7
|
var getStyles = function getStyles(maxLines) {
|
|
@@ -27,7 +26,7 @@ var Text = function Text(_ref) {
|
|
|
27
26
|
if (!message && !content) {
|
|
28
27
|
return null;
|
|
29
28
|
}
|
|
30
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
31
30
|
css: [getStyles(maxLines), overrideCss],
|
|
32
31
|
"data-separator": true,
|
|
33
32
|
"data-smart-element": name,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children"];
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { popupContainerStyles } from '../styled';
|
|
7
|
-
import { jsx } from '@emotion/react';
|
|
8
6
|
var CustomPopupContainer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9
7
|
var children = _ref.children,
|
|
10
8
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
-
return
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12
10
|
css: popupContainerStyles
|
|
13
11
|
}, props, {
|
|
14
12
|
ref: ref
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import Popup from '@atlaskit/popup';
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
4
|
import React, { useCallback, useMemo, useRef, useEffect } from 'react';
|
|
7
5
|
import { useSmartLinkActions } from '../../../state/hooks-external/useSmartLinkActions';
|
|
8
6
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -201,17 +199,17 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
201
199
|
url: url,
|
|
202
200
|
id: id
|
|
203
201
|
};
|
|
204
|
-
return
|
|
202
|
+
return /*#__PURE__*/React.createElement(SmartLinkAnalyticsContext, {
|
|
205
203
|
url: url,
|
|
206
204
|
display: CardDisplay.HoverCardPreview,
|
|
207
205
|
id: id,
|
|
208
206
|
source: HOVER_CARD_SOURCE
|
|
209
|
-
},
|
|
207
|
+
}, /*#__PURE__*/React.createElement(HoverCardContent, hoverCardContentProps));
|
|
210
208
|
}, [initShowCard, initHideCard, filteredActions, linkState, onActionClick, renderers, showServerActions, url, id]);
|
|
211
209
|
var trigger = useCallback(function (triggerProps) {
|
|
212
|
-
return
|
|
210
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
213
211
|
ref: parentSpan
|
|
214
|
-
},
|
|
212
|
+
}, /*#__PURE__*/React.createElement("span", _extends({}, triggerProps, {
|
|
215
213
|
onMouseOver: initShowCard,
|
|
216
214
|
onMouseLeave: initHideCard,
|
|
217
215
|
onMouseMove: setMousePosition,
|
|
@@ -220,7 +218,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
220
218
|
"data-testid": "hover-card-trigger-wrapper"
|
|
221
219
|
}), children));
|
|
222
220
|
}, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition]);
|
|
223
|
-
return
|
|
221
|
+
return /*#__PURE__*/React.createElement(Popup, {
|
|
224
222
|
testId: "hover-card",
|
|
225
223
|
isOpen: isOpen && canOpen,
|
|
226
224
|
onClose: hideCard,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
4
|
import CopyIcon from '@atlaskit/icon/glyph/copy';
|
|
7
5
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
@@ -25,7 +23,7 @@ export var hoverCardClassName = 'smart-links-hover-preview';
|
|
|
25
23
|
export var getCopyAction = function getCopyAction(url) {
|
|
26
24
|
return {
|
|
27
25
|
name: ActionName.CustomAction,
|
|
28
|
-
icon:
|
|
26
|
+
icon: /*#__PURE__*/React.createElement(CopyIcon, {
|
|
29
27
|
label: "copy url",
|
|
30
28
|
size: "medium"
|
|
31
29
|
}),
|
|
@@ -50,7 +48,7 @@ export var getCopyAction = function getCopyAction(url) {
|
|
|
50
48
|
}
|
|
51
49
|
return onClick;
|
|
52
50
|
}(),
|
|
53
|
-
tooltipMessage:
|
|
51
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_url_to_clipboard),
|
|
54
52
|
testId: 'hover-card-copy-button'
|
|
55
53
|
};
|
|
56
54
|
};
|
|
@@ -157,13 +155,13 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
157
155
|
}, []);
|
|
158
156
|
var getCardView = function getCardView(cardState) {
|
|
159
157
|
if (cardState.metadataStatus === 'pending') {
|
|
160
|
-
return
|
|
158
|
+
return /*#__PURE__*/React.createElement(HoverCardLoadingView, {
|
|
161
159
|
flexibleCardProps: flexibleCardProps,
|
|
162
160
|
titleBlockProps: titleBlockProps
|
|
163
161
|
});
|
|
164
162
|
}
|
|
165
163
|
if (cardState.status === 'unauthorized' && services !== null && services !== void 0 && services.length) {
|
|
166
|
-
return
|
|
164
|
+
return /*#__PURE__*/React.createElement(HoverCardUnauthorisedView, {
|
|
167
165
|
analytics: analytics,
|
|
168
166
|
extensionKey: extensionKey,
|
|
169
167
|
id: id,
|
|
@@ -173,13 +171,13 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
173
171
|
}
|
|
174
172
|
if (getBooleanFF('platform.linking-platform.smart-card.cross-join')) {
|
|
175
173
|
if (cardState.status === 'forbidden' || cardState.status === 'not_found') {
|
|
176
|
-
return
|
|
174
|
+
return /*#__PURE__*/React.createElement(HoverCardForbiddenView, {
|
|
177
175
|
flexibleCardProps: flexibleCardProps
|
|
178
176
|
});
|
|
179
177
|
}
|
|
180
178
|
}
|
|
181
179
|
if (cardState.status === 'resolved') {
|
|
182
|
-
return
|
|
180
|
+
return /*#__PURE__*/React.createElement(HoverCardResolvedView, {
|
|
183
181
|
id: id,
|
|
184
182
|
url: url,
|
|
185
183
|
extensionKey: extensionKey,
|
|
@@ -194,7 +192,7 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
194
192
|
return null;
|
|
195
193
|
};
|
|
196
194
|
var cardView = getCardView(cardState);
|
|
197
|
-
return cardView ?
|
|
195
|
+
return cardView ? /*#__PURE__*/React.createElement("div", {
|
|
198
196
|
onMouseEnter: onMouseEnter,
|
|
199
197
|
onMouseLeave: onMouseLeave,
|
|
200
198
|
onClick: onClickStopPropagation,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import LoadingSkeleton from '../../../../FlexibleCard/components/common/loading-skeleton';
|
|
6
4
|
import { CARD_WIDTH_REM } from '../../../styled';
|
|
@@ -15,35 +13,35 @@ var HoverCardLoadingView = function HoverCardLoadingView(_ref) {
|
|
|
15
13
|
var skeletonWidth = CARD_WIDTH_REM - 2;
|
|
16
14
|
var size = titleBlockProps.size,
|
|
17
15
|
actions = titleBlockProps.actions;
|
|
18
|
-
var actionGroup = (actions === null || actions === void 0 ? void 0 : actions.length) && (actions === null || actions === void 0 ? void 0 : actions.length) > 0 &&
|
|
16
|
+
var actionGroup = (actions === null || actions === void 0 ? void 0 : actions.length) && (actions === null || actions === void 0 ? void 0 : actions.length) > 0 && /*#__PURE__*/React.createElement(ActionGroup, {
|
|
19
17
|
items: actions,
|
|
20
18
|
visibleButtonsNum: 2
|
|
21
19
|
});
|
|
22
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
21
|
css: loadingViewContainer,
|
|
24
22
|
"data-testid": testId
|
|
25
|
-
},
|
|
23
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
26
24
|
css: skeletonContainer
|
|
27
|
-
},
|
|
25
|
+
}, /*#__PURE__*/React.createElement(CustomBlock, _extends({}, titleBlockProps, {
|
|
28
26
|
overrideCss: titleBlockStyles,
|
|
29
27
|
testId: "".concat(testId, "-title-block")
|
|
30
|
-
}),
|
|
28
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
31
29
|
render: function render() {
|
|
32
|
-
return
|
|
30
|
+
return /*#__PURE__*/React.createElement(LoadingSkeleton, null);
|
|
33
31
|
},
|
|
34
32
|
size: size
|
|
35
|
-
}),
|
|
33
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
36
34
|
css: getTitleStyles(lineHeightRem),
|
|
37
35
|
"data-testid": "".concat(testId, "-title")
|
|
38
|
-
},
|
|
36
|
+
}, /*#__PURE__*/React.createElement(LoadingSkeleton, {
|
|
39
37
|
height: lineHeightRem
|
|
40
|
-
})), actionGroup),
|
|
38
|
+
})), actionGroup), /*#__PURE__*/React.createElement(LoadingSkeleton, {
|
|
41
39
|
width: skeletonWidth,
|
|
42
40
|
height: lineHeightRem
|
|
43
|
-
}),
|
|
41
|
+
}), /*#__PURE__*/React.createElement(LoadingSkeleton, {
|
|
44
42
|
width: skeletonWidth,
|
|
45
43
|
height: lineHeightRem * 3
|
|
46
|
-
}),
|
|
44
|
+
}), /*#__PURE__*/React.createElement(LoadingSkeleton, {
|
|
47
45
|
width: skeletonWidth,
|
|
48
46
|
height: lineHeightRem
|
|
49
47
|
})));
|
|
@@ -11,6 +11,7 @@ import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group
|
|
|
11
11
|
import { LinkIcon } from '../../../../FlexibleCard/components/elements';
|
|
12
12
|
import { ActionName, CardDisplay } from '../../../../../constants';
|
|
13
13
|
import { useSmartCardActions } from '../../../../../state/actions';
|
|
14
|
+
import { hasAuthScopeOverrides } from '../../../../../state/helpers';
|
|
14
15
|
var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
15
16
|
var _cardState$details, _extractProvider;
|
|
16
17
|
var analytics = _ref.analytics,
|
|
@@ -24,6 +25,7 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
24
25
|
var cardState = flexibleCardProps.cardState;
|
|
25
26
|
var data = (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data;
|
|
26
27
|
var providerName = (_extractProvider = extractProvider(data)) === null || _extractProvider === void 0 ? void 0 : _extractProvider.text;
|
|
28
|
+
var isProductIntegrationSupported = hasAuthScopeOverrides(cardState.details);
|
|
27
29
|
var _useSmartCardActions = useSmartCardActions(id, url, analytics),
|
|
28
30
|
authorize = _useSmartCardActions.authorize;
|
|
29
31
|
var handleAuthorize = useCallback(function () {
|
|
@@ -59,6 +61,7 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
59
61
|
testId: "".concat(testId, "-content")
|
|
60
62
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
61
63
|
providerName: providerName,
|
|
64
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
62
65
|
analytics: analytics
|
|
63
66
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
64
67
|
overrideCss: connectButtonStyles,
|