@atlaskit/smart-card 26.42.10 → 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 +6 -0
- 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 +4 -5
- 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 +1 -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/UnresolvedView.js +8 -10
- 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 +16 -19
- 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 +4 -6
- 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/index.js +6 -9
- 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/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 +5 -6
- 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 +1 -1
- 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/UnresolvedView.js +9 -10
- 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 +4 -6
- 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 +3 -4
- 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/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/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 +5 -6
- 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 +1 -1
- 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/UnresolvedView.js +9 -10
- 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 +4 -6
- 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 +4 -5
- 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/index.js +4 -6
- 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/types/extractors/inline/index.d.ts +1 -1
- package/dist/types/view/LinkView/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/inline/index.d.ts +1 -1
- package/dist/types-ts4.5/view/LinkView/index.d.ts +1 -1
- package/package.json +1 -1
- /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/cjs/view/{RedesignedInlineCard → InlineCard}/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/es2019/view/{RedesignedInlineCard → 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/esm/view/{RedesignedInlineCard → InlineCard}/types.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,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,8 +2,6 @@ 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
6
|
import DropdownMenu from '@atlaskit/dropdown-menu';
|
|
9
7
|
import LozengeActionTrigger from './lozenge-action-trigger';
|
|
@@ -135,7 +133,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
135
133
|
};
|
|
136
134
|
}(), [action.read, analytics, invoke, isLoaded, text]);
|
|
137
135
|
var trigger = useCallback(function (props) {
|
|
138
|
-
return
|
|
136
|
+
return /*#__PURE__*/React.createElement(LozengeActionTrigger, _extends({}, props, {
|
|
139
137
|
appearance: selected.appearance,
|
|
140
138
|
isOpen: isOpen,
|
|
141
139
|
showFeatureDiscovery: action === null || action === void 0 ? void 0 : action.showFeatureDiscovery,
|
|
@@ -204,7 +202,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
204
202
|
}(), [action === null || action === void 0 ? void 0 : action.update, analytics, invoke, linkId, reload, url]);
|
|
205
203
|
var dropdownItemGroup = useMemo(function () {
|
|
206
204
|
if (errorMessage) {
|
|
207
|
-
return
|
|
205
|
+
return /*#__PURE__*/React.createElement(LozengeActionError, {
|
|
208
206
|
errorMessage: errorMessage,
|
|
209
207
|
testId: testId,
|
|
210
208
|
url: url,
|
|
@@ -212,14 +210,14 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
212
210
|
});
|
|
213
211
|
}
|
|
214
212
|
if (items && items.length > 0) {
|
|
215
|
-
return
|
|
213
|
+
return /*#__PURE__*/React.createElement(LozengeActionItemsGroup, {
|
|
216
214
|
testId: testId,
|
|
217
215
|
items: items,
|
|
218
216
|
onClick: handleItemClick
|
|
219
217
|
});
|
|
220
218
|
}
|
|
221
219
|
}, [errorMessage, handleItemClick, items, previewData, testId, url]);
|
|
222
|
-
return
|
|
220
|
+
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
223
221
|
isLoading: isLoading,
|
|
224
222
|
isOpen: isOpen,
|
|
225
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
|
};
|
|
@@ -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 LozengeActionItem from '../lozenge-action-item';
|
|
5
3
|
import { dropdownItemGroupStyles } from '../styled';
|
|
6
4
|
import { DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
@@ -9,12 +7,13 @@ var LozengeActionItemsGroup = function LozengeActionItemsGroup(_ref) {
|
|
|
9
7
|
testId = _ref.testId,
|
|
10
8
|
onClick = _ref.onClick;
|
|
11
9
|
return (
|
|
10
|
+
/*#__PURE__*/
|
|
12
11
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
13
|
-
|
|
12
|
+
React.createElement("span", {
|
|
14
13
|
css: dropdownItemGroupStyles,
|
|
15
14
|
"data-testid": "".concat(testId, "-item-group")
|
|
16
|
-
},
|
|
17
|
-
return
|
|
15
|
+
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, items.map(function (item, idx) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(LozengeActionItem, _extends({}, item, {
|
|
18
17
|
key: idx,
|
|
19
18
|
onClick: onClick,
|
|
20
19
|
testId: "".concat(testId, "-item-").concat(idx)
|
|
@@ -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
|
})));
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import { useCallback } from 'react';
|
|
5
3
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
6
4
|
import { useSmartLinkAnalytics } from '../../state/analytics';
|
|
@@ -19,10 +17,10 @@ var HoverCardWithErrorBoundary = function HoverCardWithErrorBoundary(props) {
|
|
|
19
17
|
errorInfo: info
|
|
20
18
|
});
|
|
21
19
|
}, [analytics.ui, id]);
|
|
22
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
23
21
|
fallback: children,
|
|
24
22
|
onError: onError
|
|
25
|
-
},
|
|
23
|
+
}, /*#__PURE__*/React.createElement(HoverCardComponent, props, children));
|
|
26
24
|
};
|
|
27
25
|
var HoverCardWithoutAnalyticsContext = withAnalyticsEvents()(HoverCardWithErrorBoundary);
|
|
28
26
|
|
|
@@ -34,12 +32,12 @@ var HoverCardWithoutAnalyticsContext = withAnalyticsEvents()(HoverCardWithErrorB
|
|
|
34
32
|
* use to configure hover preview behaviour.
|
|
35
33
|
*/
|
|
36
34
|
export var HoverCard = function HoverCard(props) {
|
|
37
|
-
return
|
|
35
|
+
return /*#__PURE__*/React.createElement(HoverCardWithoutAnalyticsContext, props);
|
|
38
36
|
};
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* A standalone hover preview component
|
|
42
40
|
*/
|
|
43
41
|
export var StandaloneHoverCard = function StandaloneHoverCard(props) {
|
|
44
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement(HoverCard, props);
|
|
45
43
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
3
4
|
import { themed } from '@atlaskit/theme/components';
|
|
4
5
|
import { N500, N40 } from '@atlaskit/theme/colors';
|
|
5
6
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import Button from '@atlaskit/button/standard-button';
|
|
5
4
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
6
5
|
import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl-next';
|
|
7
6
|
import { breakWordsCss } from './styled';
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
7
|
import { messages } from '../../../messages';
|
|
10
8
|
var WarningModal = function WarningModal(props) {
|
|
11
9
|
var isOpen = props.isOpen,
|
|
@@ -14,33 +12,33 @@ var WarningModal = function WarningModal(props) {
|
|
|
14
12
|
onClose = props.onClose,
|
|
15
13
|
onContinue = props.onContinue,
|
|
16
14
|
intl = props.intl;
|
|
17
|
-
var content =
|
|
15
|
+
var content = /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
|
|
18
16
|
onClose: onClose,
|
|
19
17
|
testId: "link-with-safety-warning"
|
|
20
|
-
},
|
|
18
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
21
19
|
appearance: "warning"
|
|
22
|
-
},
|
|
20
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.check_this_link))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("div", {
|
|
23
21
|
css: breakWordsCss
|
|
24
|
-
}, url && unsafeLinkText &&
|
|
22
|
+
}, url && unsafeLinkText && /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.link_safety_warning_message, {
|
|
25
23
|
values: {
|
|
26
24
|
unsafeLinkText: unsafeLinkText,
|
|
27
25
|
a: function a() {
|
|
28
|
-
return
|
|
26
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
29
27
|
href: url,
|
|
30
28
|
target: "_blank",
|
|
31
29
|
rel: "noopener noreferrer"
|
|
32
30
|
}, url);
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
|
-
})))),
|
|
33
|
+
})))), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
|
|
36
34
|
appearance: "subtle",
|
|
37
35
|
onClick: onClose
|
|
38
|
-
},
|
|
36
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.go_back)), /*#__PURE__*/React.createElement(Button, {
|
|
39
37
|
appearance: "warning",
|
|
40
38
|
onClick: onContinue,
|
|
41
39
|
autoFocus: true
|
|
42
|
-
},
|
|
43
|
-
return intl ? content :
|
|
40
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.continue)))));
|
|
41
|
+
return intl ? content : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
44
42
|
locale: "en"
|
|
45
43
|
}, content);
|
|
46
44
|
};
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "26.42.
|
|
13
|
+
packageVersion: "26.42.11",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
8
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { Frame } from '../
|
|
10
|
+
import { Frame } from '../InlineCard/Frame';
|
|
11
11
|
export var CardLinkView = /*#__PURE__*/function (_React$PureComponent) {
|
|
12
12
|
_inherits(CardLinkView, _React$PureComponent);
|
|
13
13
|
var _super = _createSuper(CardLinkView);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { N300 } from '@atlaskit/theme/colors';
|
|
4
2
|
import { gs, mq } from './utils';
|
|
5
3
|
export var Byline = function Byline(_ref) {
|
|
@@ -7,7 +5,7 @@ export var Byline = function Byline(_ref) {
|
|
|
7
5
|
children = _ref.children,
|
|
8
6
|
testId = _ref.testId,
|
|
9
7
|
className = _ref.className;
|
|
10
|
-
return
|
|
8
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
11
9
|
css: mq({
|
|
12
10
|
fontSize: gs(1.5),
|
|
13
11
|
lineHeight: gs(2.5),
|