@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,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React, { useCallback } from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
6
|
import { LoadingButton } from '@atlaskit/button';
|
|
8
7
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -40,14 +39,14 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
40
39
|
handler();
|
|
41
40
|
};
|
|
42
41
|
}, []);
|
|
43
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
44
43
|
css: [getButtonStyle(size, iconOnly), overrideCss],
|
|
45
44
|
"data-testid": "".concat(testId, "-button-wrapper")
|
|
46
|
-
},
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
47
46
|
content: tooltipMessage,
|
|
48
47
|
hideTooltipOnClick: true,
|
|
49
48
|
testId: "".concat(testId, "-tooltip")
|
|
50
|
-
}, getBooleanFF('platform.linking-platform.smart-card.follow-button') ?
|
|
49
|
+
}, getBooleanFF('platform.linking-platform.smart-card.follow-button') ? /*#__PURE__*/React.createElement(LoadingButton, {
|
|
51
50
|
appearance: appearance,
|
|
52
51
|
iconAfter: iconAfter,
|
|
53
52
|
iconBefore: iconBefore,
|
|
@@ -56,7 +55,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
56
55
|
onClick: onButtonClick(onClick),
|
|
57
56
|
spacing: sizeToButtonSpacing[size],
|
|
58
57
|
testId: testId
|
|
59
|
-
}, content) :
|
|
58
|
+
}, content) : /*#__PURE__*/React.createElement(Button, {
|
|
60
59
|
appearance: appearance,
|
|
61
60
|
iconAfter: iconAfter,
|
|
62
61
|
iconBefore: iconBefore,
|
|
@@ -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 { SmartLinkSize } from '../../../../../../constants';
|
|
7
6
|
import { getIconSizeStyles } from '../../../utils';
|
|
8
7
|
var getIconWidth = function getIconWidth(size) {
|
|
@@ -24,7 +23,7 @@ var ActionIcon = function ActionIcon(_ref) {
|
|
|
24
23
|
testId = _ref.testId,
|
|
25
24
|
icon = _ref.icon,
|
|
26
25
|
isDisabled = _ref.isDisabled;
|
|
27
|
-
return
|
|
26
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
28
27
|
css: getIconStyles(size, isDisabled),
|
|
29
28
|
"data-testid": "".concat(testId, "-icon")
|
|
30
29
|
}, 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';
|
|
@@ -35,7 +33,7 @@ var Action = function Action(_ref) {
|
|
|
35
33
|
if (!onClick) {
|
|
36
34
|
return null;
|
|
37
35
|
}
|
|
38
|
-
var actionIcon = icon &&
|
|
36
|
+
var actionIcon = icon && /*#__PURE__*/React.createElement(ActionIcon, {
|
|
39
37
|
isDisabled: isDisabled,
|
|
40
38
|
icon: icon,
|
|
41
39
|
size: size,
|
|
@@ -44,7 +42,7 @@ var Action = function Action(_ref) {
|
|
|
44
42
|
var iconBefore = icon && iconPosition === 'before' ? actionIcon : undefined;
|
|
45
43
|
var iconAfter = icon && iconPosition === 'after' ? actionIcon : undefined;
|
|
46
44
|
if (asDropDownItem) {
|
|
47
|
-
return
|
|
45
|
+
return /*#__PURE__*/React.createElement(ActionDropdownItem, {
|
|
48
46
|
content: content,
|
|
49
47
|
iconAfter: iconAfter,
|
|
50
48
|
iconBefore: iconBefore,
|
|
@@ -53,7 +51,7 @@ var Action = function Action(_ref) {
|
|
|
53
51
|
testId: testId
|
|
54
52
|
});
|
|
55
53
|
} else {
|
|
56
|
-
return
|
|
54
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
57
55
|
appearance: appearance,
|
|
58
56
|
content: content,
|
|
59
57
|
iconAfter: iconAfter,
|
package/dist/esm/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js
CHANGED
|
@@ -4,8 +4,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
var _excluded = ["name", "hideContent", "hideIcon", "onClick", "isDisabled"];
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
/** @jsx jsx */
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
7
|
import React, { useCallback } from 'react';
|
|
10
8
|
import * as Actions from '../../../actions';
|
|
11
9
|
import { isJSXElementNull } from '../../utils';
|
|
@@ -40,7 +38,7 @@ var ActionGroupItem = function ActionGroupItem(_ref) {
|
|
|
40
38
|
if (hideIcon) {
|
|
41
39
|
actionProps.icon = undefined;
|
|
42
40
|
}
|
|
43
|
-
var action =
|
|
41
|
+
var action = /*#__PURE__*/React.createElement(Action, _extends({
|
|
44
42
|
url: "",
|
|
45
43
|
asDropDownItem: asDropDownItems,
|
|
46
44
|
size: size,
|
|
@@ -4,10 +4,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
5
|
var _excluded = ["triggerRef"];
|
|
6
6
|
var _templateObject;
|
|
7
|
-
/** @jsx jsx */
|
|
8
7
|
import { useCallback, useMemo, useState } from 'react';
|
|
9
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import { css
|
|
9
|
+
import { css } from '@emotion/react';
|
|
11
10
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
12
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
12
|
import DropdownMenu from '@atlaskit/dropdown-menu';
|
|
@@ -27,7 +26,7 @@ var renderActionItems = function renderActionItems() {
|
|
|
27
26
|
var asDropDownItems = arguments.length > 3 ? arguments[3] : undefined;
|
|
28
27
|
var onActionItemClick = arguments.length > 4 ? arguments[4] : undefined;
|
|
29
28
|
return items.map(function (item, idx) {
|
|
30
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement(ActionGroupItem, {
|
|
31
30
|
item: item,
|
|
32
31
|
key: idx,
|
|
33
32
|
size: size,
|
|
@@ -85,22 +84,22 @@ var ActionGroup = function ActionGroup(_ref) {
|
|
|
85
84
|
var actionItems = isMoreThenTwoItems ? renderableActionItems.slice(visibleButtonsNum - 1) : [];
|
|
86
85
|
if (actionItems.length > 0) {
|
|
87
86
|
var spacing = sizeToButtonSpacing[size];
|
|
88
|
-
var moreIcon =
|
|
87
|
+
var moreIcon = /*#__PURE__*/React.createElement(MoreIcon, {
|
|
89
88
|
label: "more"
|
|
90
89
|
});
|
|
91
|
-
var formatMessage =
|
|
92
|
-
return
|
|
90
|
+
var formatMessage = /*#__PURE__*/React.createElement(FormattedMessage, messages.more_actions);
|
|
91
|
+
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
93
92
|
isOpen: isOpen,
|
|
94
93
|
onOpenChange: onOpenChange,
|
|
95
94
|
trigger: function trigger(_ref2) {
|
|
96
95
|
var triggerRef = _ref2.triggerRef,
|
|
97
96
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
98
|
-
return
|
|
97
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
99
98
|
content: formatMessage,
|
|
100
99
|
hideTooltipOnClick: true,
|
|
101
100
|
testId: "action-group-more-button-tooltip",
|
|
102
101
|
tag: "span"
|
|
103
|
-
},
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
104
103
|
spacing: spacing,
|
|
105
104
|
testId: "action-group-more-button",
|
|
106
105
|
iconBefore: moreIcon,
|
|
@@ -113,10 +112,10 @@ var ActionGroup = function ActionGroup(_ref) {
|
|
|
113
112
|
}
|
|
114
113
|
return null;
|
|
115
114
|
}, [appearance, isMoreThenTwoItems, isOpen, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum]);
|
|
116
|
-
return renderableActionItems.length > 0 ?
|
|
115
|
+
return renderableActionItems.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
117
116
|
css: styles,
|
|
118
117
|
className: "actions-button-group",
|
|
119
118
|
"data-action-open": isOpen
|
|
120
|
-
},
|
|
119
|
+
}, /*#__PURE__*/React.createElement(ButtonGroup, null, actionButtons, moreActionDropdown)) : null;
|
|
121
120
|
};
|
|
122
121
|
export default ActionGroup;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React, { useEffect } from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
|
|
7
6
|
import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from '../utils';
|
|
8
7
|
var getBlockStyles = function getBlockStyles(direction, size) {
|
|
@@ -31,7 +30,7 @@ var Block = function Block(_ref) {
|
|
|
31
30
|
useEffect(function () {
|
|
32
31
|
onRender && onRender();
|
|
33
32
|
}, [onRender]);
|
|
34
|
-
return
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
35
34
|
css: [getBlockStyles(direction, size), overrideCss],
|
|
36
35
|
"data-smart-block": true,
|
|
37
36
|
"data-testid": testId,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
|
|
7
6
|
import { getBaseStyles, getGapSize, renderChildren } from '../utils';
|
|
8
7
|
import { getMaxLineHeight, getTruncateStyles } from '../../utils';
|
|
@@ -52,7 +51,7 @@ var ElementGroup = function ElementGroup(_ref) {
|
|
|
52
51
|
width = _ref$width === void 0 ? SmartLinkWidth.FitToContent : _ref$width,
|
|
53
52
|
_ref$position = _ref.position,
|
|
54
53
|
position = _ref$position === void 0 ? SmartLinkPosition.Center : _ref$position;
|
|
55
|
-
return
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
56
55
|
css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
|
|
57
56
|
"data-smart-element-group": true,
|
|
58
57
|
"data-testid": testId
|
|
@@ -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 = ["status", "testId", "overrideUrl"];
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
5
|
import { SmartLinkStatus } from '../../../../../constants';
|
|
8
6
|
import PreviewBlockResolvedView from './resolved';
|
|
9
7
|
|
|
@@ -20,7 +18,7 @@ var PreviewBlock = function PreviewBlock(_ref) {
|
|
|
20
18
|
testId = _ref$testId === void 0 ? 'smart-block-preview' : _ref$testId,
|
|
21
19
|
overrideUrl = _ref.overrideUrl,
|
|
22
20
|
blockProps = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
-
return
|
|
21
|
+
return /*#__PURE__*/React.createElement(PreviewBlockResolvedView, _extends({}, blockProps, {
|
|
24
22
|
testId: testId,
|
|
25
23
|
overrideUrl: overrideUrl
|
|
26
24
|
}));
|
|
@@ -4,9 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
5
|
var _excluded = ["ignoreContainerPadding", "onError", "overrideCss", "placement", "testId", "overrideUrl"];
|
|
6
6
|
var _templateObject, _templateObject2, _templateObject3;
|
|
7
|
-
/** @jsx jsx */
|
|
8
7
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
9
|
-
import { css
|
|
8
|
+
import { css } from '@emotion/react';
|
|
10
9
|
import { MediaPlacement } from '../../../../../../constants';
|
|
11
10
|
import Block from '../../block';
|
|
12
11
|
import { Preview } from '../../../elements';
|
|
@@ -69,10 +68,10 @@ var PreviewBlockResolvedView = function PreviewBlockResolvedView(_ref) {
|
|
|
69
68
|
onError();
|
|
70
69
|
}
|
|
71
70
|
}, [onError]);
|
|
72
|
-
return
|
|
71
|
+
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
73
72
|
overrideCss: styles,
|
|
74
73
|
testId: "".concat(testId, "-resolved-view")
|
|
75
|
-
}),
|
|
74
|
+
}), /*#__PURE__*/React.createElement(Preview, {
|
|
76
75
|
onError: handleOnError,
|
|
77
76
|
onLoad: handleOnLoad,
|
|
78
77
|
overrideUrl: overrideUrl
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
1
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
4
|
var _templateObject;
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
6
|
import React, { useCallback, useState } from 'react';
|
|
5
7
|
import { useIntl } from 'react-intl-next';
|
|
6
8
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
3
|
import React, { useEffect } from 'react';
|
|
2
4
|
import { Stack, xcss } from '@atlaskit/primitives';
|
|
3
5
|
import { AnalyticsContext, useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -3,10 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _excluded = ["actionGroup", "retry", "position", "testId", "title", "hideIcon"];
|
|
5
5
|
var _templateObject, _templateObject2;
|
|
6
|
-
/** @jsx jsx */
|
|
7
6
|
import React from 'react';
|
|
8
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
|
-
import { css
|
|
8
|
+
import { css } from '@emotion/react';
|
|
10
9
|
import { LinkIcon } from '../../../elements';
|
|
11
10
|
import Block from '../../block';
|
|
12
11
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize } from '../../../../../../constants';
|
|
@@ -41,20 +40,20 @@ var TitleBlockErroredView = function TitleBlockErroredView(_ref) {
|
|
|
41
40
|
var _blockProps$size = blockProps.size,
|
|
42
41
|
size = _blockProps$size === void 0 ? SmartLinkSize.Medium : _blockProps$size;
|
|
43
42
|
var hasAction = onClick !== undefined;
|
|
44
|
-
return
|
|
43
|
+
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
45
44
|
testId: "".concat(testId, "-errored-view")
|
|
46
|
-
}), !hideIcon &&
|
|
45
|
+
}), !hideIcon && /*#__PURE__*/React.createElement(LinkIcon, {
|
|
47
46
|
position: position
|
|
48
|
-
}), title, descriptor &&
|
|
47
|
+
}), title, descriptor && /*#__PURE__*/React.createElement(ElementGroup, {
|
|
49
48
|
direction: SmartLinkDirection.Horizontal,
|
|
50
49
|
align: SmartLinkAlignment.Right
|
|
51
|
-
},
|
|
50
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
52
51
|
className: hasAction ? 'has-action' : '',
|
|
53
52
|
css: getMessageStyles(size, hasAction),
|
|
54
53
|
onClick: onClick,
|
|
55
54
|
"data-testid": "".concat(testId, "-errored-view-message"),
|
|
56
55
|
tabIndex: hasAction ? 0 : -1
|
|
57
|
-
},
|
|
56
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, descriptor, {
|
|
58
57
|
values: values
|
|
59
58
|
})))), actionGroup);
|
|
60
59
|
};
|
|
@@ -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 = ["actionGroup", "testId", "title", "hideIcon"];
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
5
|
import Block from '../../block';
|
|
8
6
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
9
7
|
import LoadingSkeleton from '../../../common/loading-skeleton';
|
|
@@ -25,12 +23,12 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
25
23
|
size = _blockProps$size === void 0 ? SmartLinkSize.Medium : _blockProps$size;
|
|
26
24
|
var iconWidth = getIconWidth(size);
|
|
27
25
|
var iconStyles = getIconSizeStyles(iconWidth);
|
|
28
|
-
return
|
|
26
|
+
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
29
27
|
testId: "".concat(testId, "-resolving-view")
|
|
30
|
-
}), !hideIcon &&
|
|
28
|
+
}), !hideIcon && /*#__PURE__*/React.createElement("span", {
|
|
31
29
|
css: iconStyles,
|
|
32
30
|
"data-testid": "".concat(testId, "-icon")
|
|
33
|
-
},
|
|
31
|
+
}, /*#__PURE__*/React.createElement(LoadingSkeleton, {
|
|
34
32
|
testId: "".concat(testId, "-icon-loading")
|
|
35
33
|
})), title, actionGroup);
|
|
36
34
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import ImageLoader from 'react-render-image';
|
|
5
3
|
import LoadingSkeleton from '../loading-skeleton';
|
|
6
4
|
var ImageIcon = function ImageIcon(_ref) {
|
|
@@ -9,12 +7,12 @@ var ImageIcon = function ImageIcon(_ref) {
|
|
|
9
7
|
url = _ref.url,
|
|
10
8
|
onError = _ref.onError,
|
|
11
9
|
onLoad = _ref.onLoad;
|
|
12
|
-
return
|
|
10
|
+
return /*#__PURE__*/React.createElement(ImageLoader, {
|
|
13
11
|
src: url,
|
|
14
|
-
loading:
|
|
12
|
+
loading: /*#__PURE__*/React.createElement(LoadingSkeleton, {
|
|
15
13
|
testId: "".concat(testId, "-loading")
|
|
16
14
|
}),
|
|
17
|
-
loaded:
|
|
15
|
+
loaded: /*#__PURE__*/React.createElement("img", {
|
|
18
16
|
src: url,
|
|
19
17
|
"data-testid": "".concat(testId, "-image")
|
|
20
18
|
}),
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import { css,
|
|
4
|
+
import { css, keyframes } from '@emotion/react';
|
|
6
5
|
var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
7
6
|
var testId = _ref.testId,
|
|
8
7
|
width = _ref.width,
|
|
9
8
|
height = _ref.height;
|
|
10
9
|
var animationNameStyles = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-position: 50% 0; }\n 100% { background-position: -50% 0; }\n "])));
|
|
11
10
|
var styles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "rem;\n height: ", "rem;\n border-radius: 2px;\n user-select: none;\n background: ", ";\n background-image: linear-gradient(\n to right,\n transparent 0%,\n ", " 20%,\n transparent 40%,\n transparent 100%\n );\n background-repeat: no-repeat;\n background-size: 280% 100%;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n "])), width, height, "var(--ds-skeleton-subtle, #f6f7f8)", "var(--ds-skeleton, #edeef1)", animationNameStyles);
|
|
12
|
-
return
|
|
11
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13
12
|
css: styles,
|
|
14
13
|
"data-testid": testId
|
|
15
14
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React, { useContext } from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import { MediaPlacement, SmartLinkSize, SmartLinkTheme } from '../../../../constants';
|
|
7
6
|
import { isFlexibleUiBlock, isFlexibleUiPreviewBlock, isFlexibleUiTitleBlock } from '../../../../utils/flexible';
|
|
8
7
|
import { tokens } from '../../../../utils/token';
|
|
@@ -109,7 +108,7 @@ var getLayeredLink = function getLayeredLink(testId, context, children, onClick)
|
|
|
109
108
|
var _ref2 = getTitleBlockProps(children) || {},
|
|
110
109
|
target = _ref2.anchorTarget,
|
|
111
110
|
text = _ref2.text;
|
|
112
|
-
return
|
|
111
|
+
return /*#__PURE__*/React.createElement(LayeredLink, {
|
|
113
112
|
onClick: onClick,
|
|
114
113
|
target: target,
|
|
115
114
|
testId: testId,
|
|
@@ -159,13 +158,13 @@ var Container = function Container(_ref3) {
|
|
|
159
158
|
// `retry` object contains action that can be performed on
|
|
160
159
|
// unresolved link (unauthorized, forbidden, not found, etc.)
|
|
161
160
|
var canShowAuthTooltip = showAuthTooltip && status === 'unauthorized' && retry !== undefined;
|
|
162
|
-
var container =
|
|
161
|
+
var container = /*#__PURE__*/React.createElement("div", {
|
|
163
162
|
css: getContainerStyles(size, hideBackground, hideElevation, hidePadding, clickableContainer, childrenOptions),
|
|
164
163
|
"data-smart-link-container": true,
|
|
165
164
|
"data-testid": testId
|
|
166
165
|
}, clickableContainer ? getLayeredLink(testId, context, children, onClick) : null, renderChildren(children, size, theme, status, retry, onClick));
|
|
167
166
|
if (context !== null && context !== void 0 && context.url && (canShowHoverPreview || canShowAuthTooltip)) {
|
|
168
|
-
return
|
|
167
|
+
return /*#__PURE__*/React.createElement(HoverCardControl, {
|
|
169
168
|
hideHoverCardPreviewButton: hideHoverCardPreviewButton,
|
|
170
169
|
isHoverPreview: canShowHoverPreview,
|
|
171
170
|
isAuthTooltip: canShowAuthTooltip,
|
|
@@ -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 {
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
|
|
7
6
|
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Stretch the invisible link over the whole of the post.\n // Hide the link\u2019s text.\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n text-indent: 100%;\n white-space: nowrap;\n\n // Needs a heightened specificity to trump other anchor.\n // Stack it under all other links in the post text.\n a&.layered-link {\n position: absolute;\n z-index: 0;\n }\n\n // When hovering over the layered link, any hidden action buttons inside\n // the Container should become visible.\n // As actions resides inside blocks and layered link is expected to be\n // on the same level of blocks. That makes the blocks, e.g. TitleBlock,\n // its sibling. Using general sibling combinator here to apply styling to\n // all the siblings of layered link.\n // The general sibling combinator (~) separates two selectors and matches all\n // iterations of the second element, that are following the first element\n // (though not necessarily immediately), and are children of the same parent\n // element.\n &:hover ~ * {\n .actions-button-group {\n opacity: 1;\n }\n }\n"])));
|
|
8
7
|
|
|
@@ -18,7 +17,7 @@ var LayeredLink = function LayeredLink(_ref) {
|
|
|
18
17
|
text = _ref.text,
|
|
19
18
|
url = _ref.url;
|
|
20
19
|
var onMouseDown = useMouseDownEvent();
|
|
21
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
22
21
|
className: "layered-link",
|
|
23
22
|
css: styles,
|
|
24
23
|
"data-testid": "".concat(testId, "-layered-link"),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import AKBadge from '@atlaskit/badge';
|
|
6
|
-
import { css
|
|
5
|
+
import { css } from '@emotion/react';
|
|
7
6
|
var badgeStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: inline-flex;\n"])));
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -21,12 +20,12 @@ var AtlaskitBadge = function AtlaskitBadge(_ref) {
|
|
|
21
20
|
if (!value) {
|
|
22
21
|
return null;
|
|
23
22
|
}
|
|
24
|
-
return
|
|
23
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
25
24
|
css: [badgeStyles, overrideCss],
|
|
26
25
|
"data-fit-to-content": true,
|
|
27
26
|
"data-smart-element": name,
|
|
28
27
|
"data-smart-element-atlaskit-badge": true,
|
|
29
28
|
"data-testid": testId
|
|
30
|
-
},
|
|
29
|
+
}, /*#__PURE__*/React.createElement(AKBadge, null, value));
|
|
31
30
|
};
|
|
32
31
|
export default AtlaskitBadge;
|
|
@@ -3,9 +3,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
|
-
/** @jsx jsx */
|
|
7
6
|
import React, { useMemo } from 'react';
|
|
8
|
-
import { css
|
|
7
|
+
import { css } from '@emotion/react';
|
|
9
8
|
import AtlaskitAvatarGroup from '@atlaskit/avatar-group';
|
|
10
9
|
import { SmartLinkSize } from '../../../../../constants';
|
|
11
10
|
import { messages } from '../../../../../messages';
|
|
@@ -87,13 +86,13 @@ var AvatarGroup = function AvatarGroup(_ref) {
|
|
|
87
86
|
if (!data.length) {
|
|
88
87
|
return null;
|
|
89
88
|
}
|
|
90
|
-
return
|
|
89
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
91
90
|
css: [getStyles(size), overrideCss],
|
|
92
91
|
"data-fit-to-content": true,
|
|
93
92
|
"data-smart-element": name,
|
|
94
93
|
"data-smart-element-avatar-group": true,
|
|
95
94
|
"data-testid": testId
|
|
96
|
-
},
|
|
95
|
+
}, /*#__PURE__*/React.createElement(AtlaskitAvatarGroup, {
|
|
97
96
|
maxCount: maxCount,
|
|
98
97
|
appearance: "stack",
|
|
99
98
|
size: "small",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _messageMapper;
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React from 'react';
|
|
6
|
-
import { css
|
|
5
|
+
import { css } from '@emotion/react';
|
|
7
6
|
import { tokens } from '../../../../../utils/token';
|
|
8
7
|
import { getFormattedMessage, getIconSizeStyles } from '../../utils';
|
|
9
8
|
import { IconType } from '../../../../../constants';
|
|
@@ -26,7 +25,7 @@ var getFormattedMessageFromIcon = function getFormattedMessageFromIcon(icon) {
|
|
|
26
25
|
};
|
|
27
26
|
var renderAtlaskitIcon = function renderAtlaskitIcon(icon, testId) {
|
|
28
27
|
if (icon) {
|
|
29
|
-
return
|
|
28
|
+
return /*#__PURE__*/React.createElement(AtlaskitIcon, {
|
|
30
29
|
icon: icon,
|
|
31
30
|
label: icon,
|
|
32
31
|
testId: "".concat(testId, "-icon")
|
|
@@ -35,7 +34,7 @@ var renderAtlaskitIcon = function renderAtlaskitIcon(icon, testId) {
|
|
|
35
34
|
};
|
|
36
35
|
var renderImageIcon = function renderImageIcon(url, testId) {
|
|
37
36
|
if (url) {
|
|
38
|
-
return
|
|
37
|
+
return /*#__PURE__*/React.createElement(ImageIcon, {
|
|
39
38
|
testId: testId,
|
|
40
39
|
url: url
|
|
41
40
|
});
|
|
@@ -68,15 +67,15 @@ var Badge = function Badge(_ref) {
|
|
|
68
67
|
if (!formattedMessageOrLabel || !badgeIcon) {
|
|
69
68
|
return null;
|
|
70
69
|
}
|
|
71
|
-
return
|
|
70
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
72
71
|
css: [badgeStyles, overrideCss],
|
|
73
72
|
"data-fit-to-content": true,
|
|
74
73
|
"data-smart-element": name,
|
|
75
74
|
"data-smart-element-badge": true,
|
|
76
75
|
"data-testid": testId
|
|
77
|
-
},
|
|
76
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
78
77
|
css: iconStyles
|
|
79
|
-
}, badgeIcon),
|
|
78
|
+
}, badgeIcon), /*#__PURE__*/React.createElement("span", {
|
|
80
79
|
css: labelStyles,
|
|
81
80
|
"data-testid": "".concat(testId, "-label")
|
|
82
81
|
}, formattedMessageOrLabel));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
-
/** @jsx jsx */
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { useIntl, FormattedMessage } from 'react-intl-next';
|
|
7
|
-
import { css
|
|
6
|
+
import { css } from '@emotion/react';
|
|
8
7
|
import { getTruncateStyles } from '../../utils';
|
|
9
8
|
import { tokens } from '../../../../../utils/token';
|
|
10
9
|
import { selectUnit } from '@formatjs/intl-utils';
|
|
@@ -66,13 +65,13 @@ var DateTime = function DateTime(_ref) {
|
|
|
66
65
|
numeric: 'auto'
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
|
-
return
|
|
68
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
70
69
|
css: [styles, overrideCss],
|
|
71
70
|
"data-separator": true,
|
|
72
71
|
"data-smart-element": name,
|
|
73
72
|
"data-smart-element-date-time": true,
|
|
74
73
|
"data-testid": testId
|
|
75
|
-
}, text ? "".concat(text, " ").concat(context) :
|
|
74
|
+
}, text ? "".concat(text, " ").concat(context) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
|
|
76
75
|
values: {
|
|
77
76
|
context: context
|
|
78
77
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
-
/** @jsx jsx */
|
|
4
3
|
import React, { useMemo } from 'react';
|
|
5
4
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
6
|
-
import { css
|
|
5
|
+
import { css } from '@emotion/react';
|
|
7
6
|
import { SmartLinkPosition, SmartLinkSize } from '../../../../../constants';
|
|
8
7
|
import AtlaskitIcon from '../../common/atlaskit-icon';
|
|
9
8
|
import ImageIcon from '../../common/image-icon';
|
|
@@ -25,7 +24,7 @@ var getCustomRenderStyles = function getCustomRenderStyles(value) {
|
|
|
25
24
|
};
|
|
26
25
|
var renderAtlaskitIcon = function renderAtlaskitIcon(icon, label, testId) {
|
|
27
26
|
if (icon) {
|
|
28
|
-
return
|
|
27
|
+
return /*#__PURE__*/React.createElement(AtlaskitIcon, {
|
|
29
28
|
icon: icon,
|
|
30
29
|
label: label,
|
|
31
30
|
testId: "".concat(testId, "-icon")
|
|
@@ -33,14 +32,14 @@ var renderAtlaskitIcon = function renderAtlaskitIcon(icon, label, testId) {
|
|
|
33
32
|
}
|
|
34
33
|
};
|
|
35
34
|
var renderDefaultIcon = function renderDefaultIcon(label, testId) {
|
|
36
|
-
return
|
|
35
|
+
return /*#__PURE__*/React.createElement(LinkIcon, {
|
|
37
36
|
label: label,
|
|
38
37
|
testId: "".concat(testId, "-default")
|
|
39
38
|
});
|
|
40
39
|
};
|
|
41
40
|
var renderImageIcon = function renderImageIcon(defaultIcon, url, testId) {
|
|
42
41
|
if (url) {
|
|
43
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement(ImageIcon, {
|
|
44
43
|
defaultIcon: defaultIcon,
|
|
45
44
|
testId: testId,
|
|
46
45
|
url: url
|
|
@@ -75,7 +74,7 @@ var Icon = function Icon(_ref) {
|
|
|
75
74
|
var width = getIconWidth(size);
|
|
76
75
|
var styles = getIconStyles(position, width);
|
|
77
76
|
var renderStyles = render ? getCustomRenderStyles(width) : undefined;
|
|
78
|
-
return
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
79
78
|
css: [styles, renderStyles, overrideCss],
|
|
80
79
|
"data-fit-to-content": true,
|
|
81
80
|
"data-smart-element": name,
|