@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,6 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
3
|
import { Frame } from '../components/Frame';
|
|
6
4
|
import { Provider } from '../components/Provider';
|
|
@@ -27,29 +25,29 @@ export const UnauthorizedView = ({
|
|
|
27
25
|
onClick = () => {}
|
|
28
26
|
}) => {
|
|
29
27
|
const handleClick = event => handleClickCommon(event, onClick);
|
|
30
|
-
return
|
|
28
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
31
29
|
isSelected: isSelected,
|
|
32
30
|
testId: testId,
|
|
33
31
|
isFluidHeight: true
|
|
34
|
-
},
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Content, {
|
|
35
33
|
isCompact: true
|
|
36
|
-
},
|
|
34
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ContentHeader, {
|
|
37
35
|
onClick: handleClick,
|
|
38
36
|
link: link
|
|
39
|
-
},
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
40
38
|
url: link,
|
|
41
39
|
testId: testId
|
|
42
|
-
})),
|
|
40
|
+
})), /*#__PURE__*/React.createElement(Byline, {
|
|
43
41
|
testId: testId ? `${testId}-byline` : undefined,
|
|
44
|
-
text:
|
|
42
|
+
text: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, textBylineProps, {
|
|
45
43
|
values: {
|
|
46
44
|
context: context.text
|
|
47
45
|
}
|
|
48
46
|
}))
|
|
49
|
-
})),
|
|
47
|
+
})), /*#__PURE__*/React.createElement(ContentFooter, null, /*#__PURE__*/React.createElement(Provider, {
|
|
50
48
|
name: context.text,
|
|
51
49
|
icon: context.icon
|
|
52
|
-
}), showActions &&
|
|
50
|
+
}), showActions && /*#__PURE__*/React.createElement(ActionList, {
|
|
53
51
|
items: actions
|
|
54
52
|
}))));
|
|
55
53
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
import { css, jsx } from '@emotion/react';
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { useCallback, useMemo } from 'react';
|
|
5
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
-
import { getExtensionKey } from '../../../../state/helpers';
|
|
5
|
+
import { getExtensionKey, hasAuthScopeOverrides } from '../../../../state/helpers';
|
|
7
6
|
import { AuthorizeAction } from '../../actions/flexible/AuthorizeAction';
|
|
8
7
|
import { extractProvider } from '@atlaskit/link-extractors';
|
|
9
8
|
import UnauthorisedViewContent from '../../../common/UnauthorisedViewContent';
|
|
@@ -36,6 +35,7 @@ const FlexibleUnauthorisedView = ({
|
|
|
36
35
|
const extensionKey = (_getExtensionKey = getExtensionKey(cardState === null || cardState === void 0 ? void 0 : cardState.details)) !== null && _getExtensionKey !== void 0 ? _getExtensionKey : '';
|
|
37
36
|
const data = (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data;
|
|
38
37
|
const providerName = (_extractProvider = extractProvider(data)) === null || _extractProvider === void 0 ? void 0 : _extractProvider.text;
|
|
38
|
+
const isProductIntegrationSupported = hasAuthScopeOverrides(cardState === null || cardState === void 0 ? void 0 : cardState.details);
|
|
39
39
|
const handleAuthorize = useCallback(() => {
|
|
40
40
|
if (onAuthorize) {
|
|
41
41
|
analytics === null || analytics === void 0 ? void 0 : analytics.track.appAccountAuthStarted({
|
|
@@ -44,20 +44,21 @@ const FlexibleUnauthorisedView = ({
|
|
|
44
44
|
onAuthorize();
|
|
45
45
|
}
|
|
46
46
|
}, [onAuthorize, extensionKey, analytics === null || analytics === void 0 ? void 0 : analytics.track]);
|
|
47
|
-
const content = useMemo(() => onAuthorize ?
|
|
47
|
+
const content = useMemo(() => onAuthorize ? /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
48
48
|
providerName: providerName,
|
|
49
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
49
50
|
analytics: analytics,
|
|
50
51
|
testId: testId
|
|
51
|
-
}) :
|
|
52
|
+
}) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[providerName ? 'unauthorised_account_description' : 'unauthorised_account_description_no_provider'], {
|
|
52
53
|
values: {
|
|
53
54
|
context: providerName
|
|
54
55
|
}
|
|
55
|
-
})), [analytics, onAuthorize, providerName, testId]);
|
|
56
|
+
})), [analytics, isProductIntegrationSupported, onAuthorize, providerName, testId]);
|
|
56
57
|
const actions = useMemo(() => onAuthorize ? [AuthorizeAction(handleAuthorize, providerName)] : [], [handleAuthorize, onAuthorize, providerName]);
|
|
57
|
-
return
|
|
58
|
+
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
|
|
58
59
|
actions: actions,
|
|
59
60
|
testId: testId
|
|
60
|
-
}),
|
|
61
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
61
62
|
css: contentStyles,
|
|
62
63
|
"data-testid": `${testId}-content`
|
|
63
64
|
}, content));
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { flexibleBlockCardStyle } from '../styled';
|
|
4
2
|
export const withFlexibleUIBlockCardStyle = FlexibleBlockCardView => props => {
|
|
5
|
-
return
|
|
3
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
6
4
|
css: flexibleBlockCardStyle
|
|
7
|
-
},
|
|
5
|
+
}, /*#__PURE__*/React.createElement(FlexibleBlockCardView, props));
|
|
8
6
|
};
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
4
4
|
import { extractInlineProps } from '../../extractors/inline';
|
|
5
5
|
import { extractBlockProps } from '../../extractors/block';
|
|
6
|
-
import { InlineCardResolvedView } from '../
|
|
6
|
+
import { InlineCardResolvedView } from '../InlineCard/ResolvedView';
|
|
7
7
|
import { BlockCardResolvedView } from '../BlockCard';
|
|
8
8
|
export class CardWithDataContent extends React.Component {
|
|
9
9
|
render() {
|
|
@@ -6,7 +6,7 @@ import * as measure from '../../utils/performance';
|
|
|
6
6
|
import { getDefinitionId, getServices, isFinalState, getClickUrl, getResourceType, getExtensionKey, getSubproduct, getProduct, getCanBeDatasource } from '../../state/helpers';
|
|
7
7
|
import { useSmartLink } from '../../state';
|
|
8
8
|
import { BlockCard } from '../BlockCard';
|
|
9
|
-
import { InlineCard
|
|
9
|
+
import { InlineCard } from '../InlineCard';
|
|
10
10
|
import { EmbedCard } from '../EmbedCard';
|
|
11
11
|
import { isFlexibleUiCard } from '../../utils/flexible';
|
|
12
12
|
import FlexibleCard from '../FlexibleCard';
|
|
@@ -211,7 +211,7 @@ function Component({
|
|
|
211
211
|
showAuthTooltip: showAuthTooltip,
|
|
212
212
|
showServerActions: showServerActions
|
|
213
213
|
};
|
|
214
|
-
return /*#__PURE__*/React.createElement(
|
|
214
|
+
return /*#__PURE__*/React.createElement(InlineCard, inlineProps);
|
|
215
215
|
case 'block':
|
|
216
216
|
return /*#__PURE__*/React.createElement(BlockCard, {
|
|
217
217
|
id: id,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import React, { useEffect, useState, useRef } from 'react';
|
|
4
2
|
import { di } from 'react-magnetic-di';
|
|
5
3
|
import { getIframeSandboxAttribute } from '../../../utils';
|
|
@@ -72,13 +70,13 @@ export const Frame = /*#__PURE__*/React.forwardRef(({
|
|
|
72
70
|
if (!url) {
|
|
73
71
|
return null;
|
|
74
72
|
}
|
|
75
|
-
return
|
|
73
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IframeDwellTracker, {
|
|
76
74
|
isIframeLoaded: isIframeLoaded,
|
|
77
75
|
isMouseOver: isMouseOver,
|
|
78
76
|
isWindowFocused: isWindowFocused,
|
|
79
77
|
iframePercentVisible: percentVisible,
|
|
80
78
|
onIframeDwell: onIframeDwell
|
|
81
|
-
}),
|
|
79
|
+
}), /*#__PURE__*/React.createElement(IFrame, {
|
|
82
80
|
childRef: mergedRef,
|
|
83
81
|
src: url,
|
|
84
82
|
"data-testid": `${testId}-frame`,
|
|
@@ -6,10 +6,10 @@ import { extractEmbedProps } from '../../extractors/embed';
|
|
|
6
6
|
import { getEmptyJsonLd, getForbiddenJsonLd } from '../../utils/jsonld';
|
|
7
7
|
import { extractInlineProps } from '../../extractors/inline';
|
|
8
8
|
import { extractBlockProps } from '../../extractors/block';
|
|
9
|
-
import { getExtensionKey } from '../../state/helpers';
|
|
9
|
+
import { getExtensionKey, hasAuthScopeOverrides } from '../../state/helpers';
|
|
10
10
|
import { extractRequestAccessContext } from '../../extractors/common/context';
|
|
11
11
|
import { BlockCardResolvedView, BlockCardResolvingView } from '../BlockCard';
|
|
12
|
-
import { InlineCardResolvedView } from '../
|
|
12
|
+
import { InlineCardResolvedView } from '../InlineCard/ResolvedView';
|
|
13
13
|
import { EmbedCardForbiddenView } from './views/ForbiddenView';
|
|
14
14
|
import { EmbedCardNotFoundView } from './views/NotFoundView';
|
|
15
15
|
import { EmbedCardResolvedView } from './views/ResolvedView';
|
|
@@ -50,6 +50,7 @@ export const EmbedCard = /*#__PURE__*/React.forwardRef(({
|
|
|
50
50
|
const data = details && details.data || getEmptyJsonLd();
|
|
51
51
|
const meta = details && details.meta;
|
|
52
52
|
const extensionKey = getExtensionKey(details);
|
|
53
|
+
const isProductIntegrationSupported = hasAuthScopeOverrides(details);
|
|
53
54
|
switch (status) {
|
|
54
55
|
case 'pending':
|
|
55
56
|
case 'resolving':
|
|
@@ -115,6 +116,7 @@ export const EmbedCard = /*#__PURE__*/React.forwardRef(({
|
|
|
115
116
|
analytics: analytics,
|
|
116
117
|
context: unauthorisedViewProps.context,
|
|
117
118
|
extensionKey: extensionKey,
|
|
119
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
118
120
|
inheritDimensions: inheritDimensions,
|
|
119
121
|
isSelected: isSelected,
|
|
120
122
|
onAuthorize: handleAuthorize,
|
|
@@ -130,6 +132,7 @@ export const EmbedCard = /*#__PURE__*/React.forwardRef(({
|
|
|
130
132
|
onClick: handleFrameClick,
|
|
131
133
|
analytics: analytics,
|
|
132
134
|
extensionKey: extensionKey,
|
|
135
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
133
136
|
testId: testId
|
|
134
137
|
}));
|
|
135
138
|
case 'forbidden':
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
2
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
5
3
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
@@ -13,16 +11,16 @@ export const EmbedCardErroredView = ({
|
|
|
13
11
|
isSelected = false,
|
|
14
12
|
testId = 'embed-card-errored-view',
|
|
15
13
|
inheritDimensions
|
|
16
|
-
}) =>
|
|
14
|
+
}) => /*#__PURE__*/React.createElement(Frame, {
|
|
17
15
|
inheritDimensions: inheritDimensions,
|
|
18
16
|
compact: true,
|
|
19
17
|
isSelected: isSelected,
|
|
20
18
|
testId: testId
|
|
21
|
-
},
|
|
19
|
+
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
22
20
|
size: "small",
|
|
23
21
|
primaryColor: `var(--ds-icon-danger, ${R300})`,
|
|
24
22
|
label: "error-icon"
|
|
25
|
-
}),
|
|
23
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
26
24
|
css: {
|
|
27
25
|
fontSize: `${fontSize()}px`,
|
|
28
26
|
marginLeft: gs(0.5),
|
|
@@ -35,9 +33,9 @@ export const EmbedCardErroredView = ({
|
|
|
35
33
|
// Fallback options.
|
|
36
34
|
maxHeight: gs(3)
|
|
37
35
|
}
|
|
38
|
-
},
|
|
36
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.could_not_load_link)), /*#__PURE__*/React.createElement(Button, {
|
|
39
37
|
testId: "err-view-retry",
|
|
40
38
|
appearance: "link",
|
|
41
39
|
spacing: "none",
|
|
42
40
|
onClick: onRetry
|
|
43
|
-
},
|
|
41
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)));
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import LinkGlyph from '@atlaskit/icon/glyph/link';
|
|
5
3
|
import { ExpandedFrame } from '../components/ExpandedFrame';
|
|
@@ -25,7 +23,7 @@ export const EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(({
|
|
|
25
23
|
const iconFromContext = context === null || context === void 0 ? void 0 : context.icon;
|
|
26
24
|
const src = typeof iconFromContext === 'string' ? iconFromContext : undefined;
|
|
27
25
|
const text = title || (context === null || context === void 0 ? void 0 : context.text);
|
|
28
|
-
const linkGlyph = React.useMemo(() =>
|
|
26
|
+
const linkGlyph = React.useMemo(() => /*#__PURE__*/React.createElement(LinkGlyph, {
|
|
29
27
|
label: "icon",
|
|
30
28
|
size: "small",
|
|
31
29
|
testId: "embed-card-fallback-icon"
|
|
@@ -34,7 +32,7 @@ export const EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(({
|
|
|
34
32
|
if ( /*#__PURE__*/React.isValidElement(iconFromContext)) {
|
|
35
33
|
return iconFromContext;
|
|
36
34
|
}
|
|
37
|
-
return
|
|
35
|
+
return /*#__PURE__*/React.createElement(ImageIcon, {
|
|
38
36
|
src: src,
|
|
39
37
|
default: linkGlyph
|
|
40
38
|
});
|
|
@@ -46,7 +44,7 @@ export const EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(({
|
|
|
46
44
|
if (previewUrl && isSupportTheming && colorMode) {
|
|
47
45
|
previewUrl = `${previewUrl}${previewUrl.includes('?') ? '&' : '?'}themeMode=${colorMode}`;
|
|
48
46
|
}
|
|
49
|
-
return
|
|
47
|
+
return /*#__PURE__*/React.createElement(ExpandedFrame, {
|
|
50
48
|
isSelected: isSelected,
|
|
51
49
|
isFrameVisible: isFrameVisible,
|
|
52
50
|
frameStyle: frameStyle,
|
|
@@ -56,7 +54,7 @@ export const EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(({
|
|
|
56
54
|
text: text,
|
|
57
55
|
onClick: onClick,
|
|
58
56
|
inheritDimensions: inheritDimensions
|
|
59
|
-
},
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Frame, {
|
|
60
58
|
url: previewUrl,
|
|
61
59
|
isTrusted: isTrusted,
|
|
62
60
|
testId: testId,
|
|
@@ -18,7 +18,8 @@ export const EmbedCardUnauthorisedView = ({
|
|
|
18
18
|
onAuthorise,
|
|
19
19
|
inheritDimensions,
|
|
20
20
|
onClick,
|
|
21
|
-
extensionKey
|
|
21
|
+
extensionKey,
|
|
22
|
+
isProductIntegrationSupported
|
|
22
23
|
}) => {
|
|
23
24
|
const icon = context && context.icon && /*#__PURE__*/React.createElement(ImageIcon, {
|
|
24
25
|
src: typeof context.icon === 'string' ? context.icon : undefined
|
|
@@ -50,6 +51,7 @@ export const EmbedCardUnauthorisedView = ({
|
|
|
50
51
|
}, /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
51
52
|
analytics: analytics,
|
|
52
53
|
providerName: context === null || context === void 0 ? void 0 : context.text,
|
|
54
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
53
55
|
testId: testId
|
|
54
56
|
}));
|
|
55
57
|
}
|
|
@@ -60,7 +62,7 @@ export const EmbedCardUnauthorisedView = ({
|
|
|
60
62
|
testId: testId,
|
|
61
63
|
title: context !== null && context !== void 0 && context.text ? 'unauthorised_account_name' : 'unauthorised_account_name_no_provider'
|
|
62
64
|
});
|
|
63
|
-
}, [analytics, context, handleOnAuthorizeClick, onAuthorise, testId]);
|
|
65
|
+
}, [analytics, context, handleOnAuthorizeClick, isProductIntegrationSupported, onAuthorise, testId]);
|
|
64
66
|
return /*#__PURE__*/React.createElement(ExpandedFrame, {
|
|
65
67
|
href: link,
|
|
66
68
|
icon: icon,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
|
-
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
3
|
+
|
|
5
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -21,7 +20,7 @@ export const EmbedCardUnresolvedView = ({
|
|
|
21
20
|
testId,
|
|
22
21
|
children
|
|
23
22
|
}) => {
|
|
24
|
-
return
|
|
23
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
24
|
css: {
|
|
26
25
|
display: 'flex',
|
|
27
26
|
flexDirection: 'column',
|
|
@@ -31,14 +30,14 @@ export const EmbedCardUnresolvedView = ({
|
|
|
31
30
|
paddingBottom: gridSize(6)
|
|
32
31
|
},
|
|
33
32
|
"data-testid": `${testId}-unresolved-container`
|
|
34
|
-
},
|
|
33
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
35
34
|
src: image,
|
|
36
35
|
css: {
|
|
37
36
|
height: gridSize(14),
|
|
38
37
|
marginBottom: gridSize(4)
|
|
39
38
|
},
|
|
40
39
|
"data-testid": `${testId}-unresolved-image`
|
|
41
|
-
}),
|
|
40
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
42
41
|
css: {
|
|
43
42
|
fontSize: gridSize(2.5),
|
|
44
43
|
marginBottom: gridSize(1.5),
|
|
@@ -46,11 +45,11 @@ export const EmbedCardUnresolvedView = ({
|
|
|
46
45
|
textAlign: 'center'
|
|
47
46
|
},
|
|
48
47
|
"data-testid": `${testId}-unresolved-title`
|
|
49
|
-
},
|
|
48
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[title], {
|
|
50
49
|
values: {
|
|
51
50
|
context
|
|
52
51
|
}
|
|
53
|
-
}))),
|
|
52
|
+
}))), /*#__PURE__*/React.createElement("span", {
|
|
54
53
|
css: {
|
|
55
54
|
fontSize: fontSize(),
|
|
56
55
|
marginBottom: gridSize(2.5),
|
|
@@ -59,15 +58,15 @@ export const EmbedCardUnresolvedView = ({
|
|
|
59
58
|
lineHeight: gridSize(3)
|
|
60
59
|
},
|
|
61
60
|
"data-testid": `${testId}-unresolved-description`
|
|
62
|
-
}, children !== null && children !== void 0 ? children :
|
|
61
|
+
}, children !== null && children !== void 0 ? children : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[description], {
|
|
63
62
|
values: {
|
|
64
63
|
context
|
|
65
64
|
}
|
|
66
|
-
}))), button &&
|
|
65
|
+
}))), button && /*#__PURE__*/React.createElement(Button, {
|
|
67
66
|
testId: `button-${button.testId || testId}`,
|
|
68
67
|
appearance: button.appearance,
|
|
69
68
|
onClick: onClick
|
|
70
|
-
},
|
|
69
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[button.text], {
|
|
71
70
|
values: {
|
|
72
71
|
context
|
|
73
72
|
}
|
|
@@ -11,6 +11,7 @@ const UnauthorizedView = ({
|
|
|
11
11
|
analytics,
|
|
12
12
|
context,
|
|
13
13
|
extensionKey,
|
|
14
|
+
isProductIntegrationSupported,
|
|
14
15
|
onAuthorize,
|
|
15
16
|
testId = 'embed-card-unauthorized-view',
|
|
16
17
|
...unresolvedViewProps
|
|
@@ -43,6 +44,7 @@ const UnauthorizedView = ({
|
|
|
43
44
|
description: /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
44
45
|
analytics: analytics,
|
|
45
46
|
providerName: context === null || context === void 0 ? void 0 : context.text,
|
|
47
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
46
48
|
testId: testId
|
|
47
49
|
}),
|
|
48
50
|
button: /*#__PURE__*/React.createElement(Button, {
|
|
@@ -77,7 +79,7 @@ const UnauthorizedView = ({
|
|
|
77
79
|
title: /*#__PURE__*/React.createElement(FormattedMessage, messages.unauthorised_account_name_no_provider),
|
|
78
80
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.unauthorised_account_description_no_provider)
|
|
79
81
|
};
|
|
80
|
-
}, [analytics, context === null || context === void 0 ? void 0 : context.text, handleOnAuthorizeClick, onAuthorize, testId]);
|
|
82
|
+
}, [analytics, context === null || context === void 0 ? void 0 : context.text, handleOnAuthorizeClick, isProductIntegrationSupported, onAuthorize, testId]);
|
|
81
83
|
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, unresolvedViewProps, content, {
|
|
82
84
|
icon: context === null || context === void 0 ? void 0 : context.icon,
|
|
83
85
|
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : getUnresolvedEmbedCardImage('unauthorized'),
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import LinkGlyph from '@atlaskit/icon/glyph/link';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import React, { useMemo } from 'react';
|
|
5
3
|
import { ExpandedFrame } from '../../components/ExpandedFrame';
|
|
6
4
|
import { ImageIcon } from '../../components/ImageIcon';
|
|
@@ -22,16 +20,16 @@ const UnresolvedView = ({
|
|
|
22
20
|
if ( /*#__PURE__*/React.isValidElement(iconUrlOrElement)) {
|
|
23
21
|
return iconUrlOrElement;
|
|
24
22
|
}
|
|
25
|
-
return
|
|
23
|
+
return /*#__PURE__*/React.createElement(ImageIcon, {
|
|
26
24
|
src: typeof iconUrlOrElement === 'string' ? iconUrlOrElement : undefined,
|
|
27
|
-
default:
|
|
25
|
+
default: /*#__PURE__*/React.createElement(LinkGlyph, {
|
|
28
26
|
label: "icon",
|
|
29
27
|
size: "small",
|
|
30
28
|
testId: "embed-card-fallback-icon"
|
|
31
29
|
})
|
|
32
30
|
});
|
|
33
31
|
}, [iconUrlOrElement]);
|
|
34
|
-
return
|
|
32
|
+
return /*#__PURE__*/React.createElement(ExpandedFrame, {
|
|
35
33
|
allowScrollBar: true,
|
|
36
34
|
frameStyle: "show",
|
|
37
35
|
href: url,
|
|
@@ -41,19 +39,19 @@ const UnresolvedView = ({
|
|
|
41
39
|
onClick: onClick,
|
|
42
40
|
testId: testId,
|
|
43
41
|
text: text
|
|
44
|
-
},
|
|
42
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
45
43
|
css: containerStyles,
|
|
46
44
|
"data-testid": `${testId}-unresolved-container`
|
|
47
|
-
},
|
|
45
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
48
46
|
css: contentStyles
|
|
49
|
-
},
|
|
47
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
50
48
|
css: imageStyles,
|
|
51
49
|
"data-testid": `${testId}-unresolved-image`,
|
|
52
50
|
src: image
|
|
53
|
-
}),
|
|
51
|
+
}), /*#__PURE__*/React.createElement("h2", {
|
|
54
52
|
css: titleStyles,
|
|
55
53
|
"data-testid": `${testId}-unresolved-title`
|
|
56
|
-
}, title),
|
|
54
|
+
}, title), /*#__PURE__*/React.createElement("span", {
|
|
57
55
|
css: descriptionStyles,
|
|
58
56
|
"data-testid": `${testId}-unresolved-description`
|
|
59
57
|
}, description), button)));
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
|
|
3
1
|
import { di } from 'react-magnetic-di';
|
|
4
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
5
3
|
import { getIframeSandboxAttribute } from '../../../../utils';
|
|
6
4
|
import { IFrame } from '../../../EmbedCard/components/IFrame';
|
|
7
5
|
const iframeCss = css`
|
|
@@ -23,6 +21,6 @@ const EmbedContent = ({
|
|
|
23
21
|
src,
|
|
24
22
|
'data-testid': `${testId}-embed`
|
|
25
23
|
};
|
|
26
|
-
return
|
|
24
|
+
return /*#__PURE__*/React.createElement(IFrame, props);
|
|
27
25
|
};
|
|
28
26
|
export default EmbedContent;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import React, { useMemo } from 'react';
|
|
4
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
3
|
import { useModal } from '@atlaskit/modal-dialog';
|
|
@@ -28,9 +26,9 @@ const LinkInfo = ({
|
|
|
28
26
|
} = useModal();
|
|
29
27
|
const downloadButton = useMemo(() => {
|
|
30
28
|
if (onDownloadButtonClick) {
|
|
31
|
-
return
|
|
32
|
-
content:
|
|
33
|
-
icon:
|
|
29
|
+
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
30
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.download),
|
|
31
|
+
icon: /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
34
32
|
label: messages.download.defaultMessage
|
|
35
33
|
}),
|
|
36
34
|
onClick: onDownloadButtonClick,
|
|
@@ -40,10 +38,10 @@ const LinkInfo = ({
|
|
|
40
38
|
}, [onDownloadButtonClick, testId]);
|
|
41
39
|
const urlButton = useMemo(() => {
|
|
42
40
|
if (onViewButtonClick) {
|
|
43
|
-
const content = providerName ?
|
|
44
|
-
return
|
|
41
|
+
const content = providerName ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.viewIn), " ", providerName) : /*#__PURE__*/React.createElement(FormattedMessage, messages.viewOriginal);
|
|
42
|
+
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
45
43
|
content: content,
|
|
46
|
-
icon:
|
|
44
|
+
icon: /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
47
45
|
label: messages.viewOriginal.defaultMessage
|
|
48
46
|
}),
|
|
49
47
|
onClick: onViewButtonClick,
|
|
@@ -54,36 +52,36 @@ const LinkInfo = ({
|
|
|
54
52
|
const sizeButton = useMemo(() => {
|
|
55
53
|
const isFullScreen = size === MAX_MODAL_SIZE;
|
|
56
54
|
const message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
|
|
57
|
-
const icon = isFullScreen ?
|
|
55
|
+
const icon = isFullScreen ? /*#__PURE__*/React.createElement(VidFullScreenOffIcon, {
|
|
58
56
|
label: message.defaultMessage
|
|
59
|
-
}) :
|
|
57
|
+
}) : /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
|
|
60
58
|
label: message.defaultMessage
|
|
61
59
|
});
|
|
62
|
-
return
|
|
60
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
63
61
|
className: "smart-link-resize-button"
|
|
64
|
-
},
|
|
65
|
-
content:
|
|
62
|
+
}, /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
63
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, message),
|
|
66
64
|
icon: icon,
|
|
67
65
|
onClick: onResizeButtonClick,
|
|
68
66
|
testId: `${testId}-resize`
|
|
69
67
|
}));
|
|
70
68
|
}, [onResizeButtonClick, size, testId]);
|
|
71
|
-
return
|
|
69
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
72
70
|
css: containerStyles
|
|
73
|
-
}, icon &&
|
|
71
|
+
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
74
72
|
css: iconCss,
|
|
75
73
|
"data-testid": `${testId}-icon`
|
|
76
|
-
},
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Icon, icon)), /*#__PURE__*/React.createElement("div", {
|
|
77
75
|
css: titleCss
|
|
78
|
-
},
|
|
76
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
79
77
|
"data-testid": `${testId}-title`
|
|
80
|
-
}, title),
|
|
78
|
+
}, title), /*#__PURE__*/React.createElement("span", {
|
|
81
79
|
tabIndex: 0
|
|
82
|
-
})),
|
|
80
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
83
81
|
css: actionCss
|
|
84
|
-
}, downloadButton, urlButton, sizeButton,
|
|
85
|
-
content:
|
|
86
|
-
icon:
|
|
82
|
+
}, downloadButton, urlButton, sizeButton, /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
83
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
|
|
84
|
+
icon: /*#__PURE__*/React.createElement(CrossIcon, {
|
|
87
85
|
label: messages.preview_close.defaultMessage
|
|
88
86
|
}),
|
|
89
87
|
onClick: onClose,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React, { useCallback } from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
4
|
import { LoadingButton } from '@atlaskit/button';
|
|
6
5
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -63,14 +62,14 @@ const ActionButton = ({
|
|
|
63
62
|
e.preventDefault();
|
|
64
63
|
handler();
|
|
65
64
|
}, []);
|
|
66
|
-
return
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
66
|
css: [getButtonStyle(size, iconOnly), overrideCss],
|
|
68
67
|
"data-testid": `${testId}-button-wrapper`
|
|
69
|
-
},
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
70
69
|
content: tooltipMessage,
|
|
71
70
|
hideTooltipOnClick: true,
|
|
72
71
|
testId: `${testId}-tooltip`
|
|
73
|
-
}, getBooleanFF('platform.linking-platform.smart-card.follow-button') ?
|
|
72
|
+
}, getBooleanFF('platform.linking-platform.smart-card.follow-button') ? /*#__PURE__*/React.createElement(LoadingButton, {
|
|
74
73
|
appearance: appearance,
|
|
75
74
|
iconAfter: iconAfter,
|
|
76
75
|
iconBefore: iconBefore,
|
|
@@ -79,7 +78,7 @@ const ActionButton = ({
|
|
|
79
78
|
onClick: onButtonClick(onClick),
|
|
80
79
|
spacing: sizeToButtonSpacing[size],
|
|
81
80
|
testId: testId
|
|
82
|
-
}, content) :
|
|
81
|
+
}, content) : /*#__PURE__*/React.createElement(Button, {
|
|
83
82
|
appearance: appearance,
|
|
84
83
|
iconAfter: iconAfter,
|
|
85
84
|
iconBefore: iconBefore,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
5
4
|
import { getIconSizeStyles } from '../../../utils';
|
|
6
5
|
const getIconWidth = size => {
|
|
@@ -23,7 +22,7 @@ const ActionIcon = ({
|
|
|
23
22
|
testId,
|
|
24
23
|
icon,
|
|
25
24
|
isDisabled
|
|
26
|
-
}) =>
|
|
25
|
+
}) => /*#__PURE__*/React.createElement("span", {
|
|
27
26
|
css: getIconStyles(size, isDisabled),
|
|
28
27
|
"data-testid": `${testId}-icon`
|
|
29
28
|
}, icon);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import { SmartLinkSize } from '../../../../../constants';
|
|
5
3
|
import ActionButton from './action-button';
|
|
6
4
|
import ActionDropdownItem from './action-dropdown-item';
|
|
@@ -31,7 +29,7 @@ const Action = ({
|
|
|
31
29
|
if (!onClick) {
|
|
32
30
|
return null;
|
|
33
31
|
}
|
|
34
|
-
const actionIcon = icon &&
|
|
32
|
+
const actionIcon = icon && /*#__PURE__*/React.createElement(ActionIcon, {
|
|
35
33
|
isDisabled: isDisabled,
|
|
36
34
|
icon: icon,
|
|
37
35
|
size: size,
|
|
@@ -40,7 +38,7 @@ const Action = ({
|
|
|
40
38
|
const iconBefore = icon && iconPosition === 'before' ? actionIcon : undefined;
|
|
41
39
|
const iconAfter = icon && iconPosition === 'after' ? actionIcon : undefined;
|
|
42
40
|
if (asDropDownItem) {
|
|
43
|
-
return
|
|
41
|
+
return /*#__PURE__*/React.createElement(ActionDropdownItem, {
|
|
44
42
|
content: content,
|
|
45
43
|
iconAfter: iconAfter,
|
|
46
44
|
iconBefore: iconBefore,
|
|
@@ -49,7 +47,7 @@ const Action = ({
|
|
|
49
47
|
testId: testId
|
|
50
48
|
});
|
|
51
49
|
} else {
|
|
52
|
-
return
|
|
50
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
53
51
|
appearance: appearance,
|
|
54
52
|
content: content,
|
|
55
53
|
iconAfter: iconAfter,
|