@atlaskit/smart-card 23.14.1 → 23.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/__tests_external__/index.js +0 -6
- package/dist/cjs/__tests_external__/page-objects/BaseCard.js +6 -26
- package/dist/cjs/__tests_external__/page-objects/BlockCard.js +0 -15
- package/dist/cjs/__tests_external__/page-objects/EmbedCard.js +0 -15
- package/dist/cjs/__tests_external__/page-objects/InlineCard.js +0 -15
- package/dist/cjs/__tests_external__/test-cases/card.js +2 -6
- package/dist/cjs/__tests_external__/test-cases/embed.js +1 -5
- package/dist/cjs/__tests_external__/test-cases/inline.js +2 -6
- package/dist/cjs/classNames.js +0 -11
- package/dist/cjs/client/index.js +0 -1
- package/dist/cjs/constants.js +1 -36
- package/dist/cjs/extractors/block/index.js +2 -29
- package/dist/cjs/extractors/common/actions/extractActions.js +2 -20
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +18 -34
- package/dist/cjs/extractors/common/byline/extractByline.js +4 -15
- package/dist/cjs/extractors/common/context/extractAccessContext.js +2 -17
- package/dist/cjs/extractors/common/context/index.js +0 -1
- package/dist/cjs/extractors/common/detail/extractAttachmentCount.js +0 -7
- package/dist/cjs/extractors/common/detail/extractCommentCount.js +0 -7
- package/dist/cjs/extractors/common/detail/extractDownloadUrl.js +0 -2
- package/dist/cjs/extractors/common/detail/extractProgrammingLanguage.js +0 -7
- package/dist/cjs/extractors/common/detail/extractSubscriberCount.js +0 -7
- package/dist/cjs/extractors/common/detail/index.js +0 -5
- package/dist/cjs/extractors/common/icon/extractFileFormat.js +0 -2
- package/dist/cjs/extractors/common/icon/extractIcon.js +0 -26
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +2 -22
- package/dist/cjs/extractors/common/icon/extractIconFromTask.js +1 -28
- package/dist/cjs/extractors/common/icon/index.js +0 -4
- package/dist/cjs/extractors/common/lozenge/extractLozenge.js +0 -15
- package/dist/cjs/extractors/common/lozenge/extractLozengeText.js +1 -6
- package/dist/cjs/extractors/common/lozenge/extractState.js +0 -5
- package/dist/cjs/extractors/common/lozenge/extractTag.js +0 -6
- package/dist/cjs/extractors/common/lozenge/extractTaskStatus.js +0 -3
- package/dist/cjs/extractors/common/lozenge/extractTaskType.js +0 -4
- package/dist/cjs/extractors/common/lozenge/index.js +0 -5
- package/dist/cjs/extractors/common/lozenge/utils.js +0 -2
- package/dist/cjs/extractors/common/meta/extractIsTrusted.js +0 -2
- package/dist/cjs/extractors/common/primitives/extractSummary.js +0 -2
- package/dist/cjs/extractors/common/primitives/extractTitleTextColor.js +0 -7
- package/dist/cjs/extractors/common/primitives/extractVisitUrl.js +0 -2
- package/dist/cjs/extractors/common/primitives/index.js +0 -2
- package/dist/cjs/extractors/common/title-prefix/extractTitlePrefix.js +0 -6
- package/dist/cjs/extractors/common/title-prefix/index.js +0 -1
- package/dist/cjs/extractors/constants.js +2 -2
- package/dist/cjs/extractors/embed/index.js +0 -10
- package/dist/cjs/extractors/flexible/actions/extract-download-action.js +0 -6
- package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +0 -9
- package/dist/cjs/extractors/flexible/actions/extract-view-action.js +0 -6
- package/dist/cjs/extractors/flexible/collaboratorGroup/index.js +0 -4
- package/dist/cjs/extractors/flexible/extract-preview.js +0 -4
- package/dist/cjs/extractors/flexible/extract-priority.js +0 -7
- package/dist/cjs/extractors/flexible/icon/extract-document-type-icon.js +0 -10
- package/dist/cjs/extractors/flexible/icon/extract-file-formatIcon.js +0 -25
- package/dist/cjs/extractors/flexible/icon/extract-icon-renderer.js +0 -5
- package/dist/cjs/extractors/flexible/icon/extract-jira-task-icon.js +0 -12
- package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +4 -35
- package/dist/cjs/extractors/flexible/icon/extract-provider-icon.js +0 -11
- package/dist/cjs/extractors/flexible/icon/extract-url-icon.js +0 -3
- package/dist/cjs/extractors/flexible/icon/index.js +4 -20
- package/dist/cjs/extractors/flexible/index.js +0 -17
- package/dist/cjs/extractors/flexible/latest-commit/index.js +0 -4
- package/dist/cjs/extractors/flexible/utils.js +0 -33
- package/dist/cjs/extractors/hover/extractMetadata.js +0 -5
- package/dist/cjs/extractors/index.js +4 -16
- package/dist/cjs/extractors/inline/index.js +0 -12
- package/dist/cjs/hooks.js +0 -2
- package/dist/cjs/hoverCard.js +0 -1
- package/dist/cjs/i18n/cs.js +0 -1
- package/dist/cjs/i18n/da.js +0 -1
- package/dist/cjs/i18n/de.js +0 -1
- package/dist/cjs/i18n/en.js +0 -1
- package/dist/cjs/i18n/en_GB.js +0 -1
- package/dist/cjs/i18n/en_ZZ.js +0 -1
- package/dist/cjs/i18n/es.js +0 -1
- package/dist/cjs/i18n/et.js +0 -1
- package/dist/cjs/i18n/fi.js +0 -1
- package/dist/cjs/i18n/fr.js +0 -1
- package/dist/cjs/i18n/hu.js +0 -1
- package/dist/cjs/i18n/index.js +0 -30
- package/dist/cjs/i18n/it.js +0 -1
- package/dist/cjs/i18n/ja.js +0 -1
- package/dist/cjs/i18n/ko.js +0 -1
- package/dist/cjs/i18n/nb.js +0 -1
- package/dist/cjs/i18n/nl.js +0 -1
- package/dist/cjs/i18n/pl.js +0 -1
- package/dist/cjs/i18n/pt_BR.js +0 -1
- package/dist/cjs/i18n/pt_PT.js +0 -1
- package/dist/cjs/i18n/ru.js +0 -1
- package/dist/cjs/i18n/sk.js +0 -1
- package/dist/cjs/i18n/sv.js +0 -1
- package/dist/cjs/i18n/th.js +0 -1
- package/dist/cjs/i18n/tr.js +0 -1
- package/dist/cjs/i18n/uk.js +0 -1
- package/dist/cjs/i18n/vi.js +0 -1
- package/dist/cjs/i18n/zh.js +0 -1
- package/dist/cjs/i18n/zh_TW.js +0 -1
- package/dist/cjs/in-product.js +0 -1
- package/dist/cjs/index.js +0 -12
- package/dist/cjs/linkUrl.js +0 -2
- package/dist/cjs/messages.js +0 -2
- package/dist/cjs/ssr.js +4 -23
- package/dist/cjs/state/actions/index.js +36 -76
- package/dist/cjs/state/analytics/index.js +0 -2
- package/dist/cjs/state/analytics/ufoExperiences.js +0 -11
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +165 -205
- package/dist/cjs/state/config/index.js +0 -5
- package/dist/cjs/state/flexible-ui-context/index.js +1 -7
- package/dist/cjs/state/flexible-ui-context/utils.js +0 -2
- package/dist/cjs/state/helpers.js +3 -39
- package/dist/cjs/state/hooks/index.js +0 -2
- package/dist/cjs/state/hooks/usePrefetch.js +10 -31
- package/dist/cjs/state/hooks/useSmartLink.js +11 -23
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +12 -29
- package/dist/cjs/state/hooks-external/useSmartLinkReload.js +1 -7
- package/dist/cjs/state/index.js +0 -3
- package/dist/cjs/state/renderers/index.js +0 -4
- package/dist/cjs/state/store/index.js +7 -15
- package/dist/cjs/utils/analytics/analytics.js +133 -197
- package/dist/cjs/utils/analytics/index.js +8 -18
- package/dist/cjs/utils/flexible.js +0 -20
- package/dist/cjs/utils/index.js +5 -54
- package/dist/cjs/utils/jsonld.js +0 -11
- package/dist/cjs/utils/mocks.js +0 -35
- package/dist/cjs/utils/performance.js +0 -23
- package/dist/cjs/utils/test-utils.js +0 -10
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/actions/AuthorizeAction.js +0 -6
- package/dist/cjs/view/BlockCard/actions/DownloadAction.js +0 -15
- package/dist/cjs/view/BlockCard/actions/ForbiddenAction.js +0 -7
- package/dist/cjs/view/BlockCard/actions/PreviewAction.js +2 -30
- package/dist/cjs/view/BlockCard/actions/RetryAction.js +0 -11
- package/dist/cjs/view/BlockCard/actions/ViewAction.js +0 -14
- package/dist/cjs/view/BlockCard/actions/flexible/AuthorizeAction.js +0 -8
- package/dist/cjs/view/BlockCard/actions/flexible/ForbiddenAction.js +0 -8
- package/dist/cjs/view/BlockCard/actions/flexible/RetryAction.js +0 -7
- package/dist/cjs/view/BlockCard/components/Action.js +8 -19
- package/dist/cjs/view/BlockCard/components/ActionIcon.js +0 -10
- package/dist/cjs/view/BlockCard/components/ActionList.js +1 -17
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +7 -14
- package/dist/cjs/view/BlockCard/components/Content.js +3 -7
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +3 -7
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +3 -6
- package/dist/cjs/view/BlockCard/components/Emoji.js +1 -6
- package/dist/cjs/view/BlockCard/components/Frame.js +10 -24
- package/dist/cjs/view/BlockCard/components/Link.js +4 -7
- package/dist/cjs/view/BlockCard/components/Name.js +5 -10
- package/dist/cjs/view/BlockCard/components/Provider.js +2 -8
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +3 -15
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +2 -4
- package/dist/cjs/view/BlockCard/components/flexible/footer/index.js +7 -19
- package/dist/cjs/view/BlockCard/index.js +17 -68
- package/dist/cjs/view/BlockCard/utils/handlers.js +0 -2
- package/dist/cjs/view/BlockCard/views/ErroredView.js +10 -36
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +20 -42
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +11 -36
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +34 -57
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +5 -16
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +15 -37
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +7 -23
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +8 -31
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +7 -19
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +16 -33
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +11 -30
- package/dist/cjs/view/Card/index.js +0 -20
- package/dist/cjs/view/CardWithData/component.js +7 -32
- package/dist/cjs/view/CardWithData/loader.js +9 -30
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyFallback.js +2 -8
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +6 -22
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -14
- package/dist/cjs/view/CardWithUrl/component-lazy/index.js +0 -6
- package/dist/cjs/view/CardWithUrl/component.js +35 -60
- package/dist/cjs/view/CardWithUrl/loader.js +31 -50
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +0 -22
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +20 -29
- package/dist/cjs/view/EmbedCard/components/Frame.js +21 -48
- package/dist/cjs/view/EmbedCard/components/IframeDwellTracker.js +14 -23
- package/dist/cjs/view/EmbedCard/components/ImageIcon.js +6 -14
- package/dist/cjs/view/EmbedCard/components/styled.js +1 -61
- package/dist/cjs/view/EmbedCard/index.js +18 -53
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +6 -17
- package/dist/cjs/view/EmbedCard/views/ForbiddenView.js +11 -26
- package/dist/cjs/view/EmbedCard/views/NotFoundView.js +6 -16
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +13 -25
- package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +9 -24
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +8 -17
- package/dist/cjs/view/EmbedModal/components/analytics/index.js +5 -20
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +3 -11
- package/dist/cjs/view/EmbedModal/components/error-boundary/index.js +0 -8
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +11 -32
- package/dist/cjs/view/EmbedModal/components/link-info/link-info-button/index.js +5 -11
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +0 -5
- package/dist/cjs/view/EmbedModal/index.js +24 -47
- package/dist/cjs/view/EmbedModal/types.js +0 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +8 -25
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +4 -10
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -15
- package/dist/cjs/view/FlexibleCard/components/actions/action/download-action/index.js +5 -27
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +13 -25
- package/dist/cjs/view/FlexibleCard/components/actions/action/preview-action/index.js +10 -42
- package/dist/cjs/view/FlexibleCard/components/actions/action/view-action/index.js +5 -25
- package/dist/cjs/view/FlexibleCard/components/actions/index.js +4 -8
- package/dist/cjs/view/FlexibleCard/components/actions/utils.js +4 -43
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +8 -32
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +13 -47
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +11 -24
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +12 -30
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +7 -26
- package/dist/cjs/view/FlexibleCard/components/blocks/index.js +0 -7
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +12 -34
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +4 -16
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +10 -31
- package/dist/cjs/view/FlexibleCard/components/blocks/snippet-block/index.js +7 -19
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +10 -31
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +20 -52
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +9 -21
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +4 -16
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -44
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +4 -31
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +5 -11
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -9
- package/dist/cjs/view/FlexibleCard/components/container/index.js +29 -77
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +5 -13
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +10 -25
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +7 -28
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +11 -30
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +13 -35
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +0 -28
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +15 -37
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +11 -28
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +8 -18
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +8 -20
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -51
- package/dist/cjs/view/FlexibleCard/components/utils.js +1 -39
- package/dist/cjs/view/FlexibleCard/index.js +13 -30
- package/dist/cjs/view/FlexibleCard/utils.js +0 -28
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +20 -45
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +13 -55
- package/dist/cjs/view/HoverCard/components/SnippetOrPreview.js +10 -26
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +22 -46
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +0 -6
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +2 -11
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +0 -5
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +8 -30
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +0 -5
- package/dist/cjs/view/HoverCard/index.js +4 -15
- package/dist/cjs/view/HoverCard/styled.js +2 -11
- package/dist/cjs/view/HoverCard/utils.js +0 -21
- package/dist/cjs/view/InlineCard/ErroredView/index.js +8 -37
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +6 -46
- package/dist/cjs/view/InlineCard/Frame/index.js +11 -18
- package/dist/cjs/view/InlineCard/Frame/styled.js +1 -18
- package/dist/cjs/view/InlineCard/Icon.js +4 -13
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +10 -48
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +17 -34
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +13 -37
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +7 -27
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +0 -6
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +10 -44
- package/dist/cjs/view/InlineCard/index.js +13 -43
- package/dist/cjs/view/InlineCard/styled.js +2 -15
- package/dist/cjs/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.js +11 -30
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +5 -20
- package/dist/cjs/view/LinkUrl/index.js +10 -24
- package/dist/cjs/view/LinkView/index.js +0 -16
- package/dist/cjs/view/SmartLinkEvents/useSmartLinkEvents.js +0 -3
- package/dist/cjs/view/common/Byline.js +4 -8
- package/dist/cjs/view/common/Icon.js +6 -21
- package/dist/cjs/view/common/Metadata.js +4 -14
- package/dist/cjs/view/common/MetadataList.js +2 -9
- package/dist/cjs/view/common/UnauthorisedViewContent.js +3 -14
- package/dist/cjs/view/common/utils.js +0 -7
- package/dist/es2019/__tests_external__/page-objects/BaseCard.js +6 -15
- package/dist/es2019/__tests_external__/page-objects/BlockCard.js +0 -1
- package/dist/es2019/__tests_external__/page-objects/EmbedCard.js +0 -1
- package/dist/es2019/__tests_external__/page-objects/InlineCard.js +0 -1
- package/dist/es2019/constants.js +11 -26
- package/dist/es2019/extractors/block/index.js +6 -12
- package/dist/es2019/extractors/common/actions/extractActions.js +4 -12
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +14 -16
- package/dist/es2019/extractors/common/byline/extractByline.js +0 -2
- package/dist/es2019/extractors/common/context/extractAccessContext.js +10 -11
- package/dist/es2019/extractors/common/detail/extractAttachmentCount.js +0 -1
- package/dist/es2019/extractors/common/detail/extractCommentCount.js +0 -1
- package/dist/es2019/extractors/common/detail/extractProgrammingLanguage.js +0 -1
- package/dist/es2019/extractors/common/detail/extractSubscriberCount.js +0 -1
- package/dist/es2019/extractors/common/icon/extractIcon.js +0 -10
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +2 -11
- package/dist/es2019/extractors/common/icon/extractIconFromTask.js +0 -12
- package/dist/es2019/extractors/common/lozenge/extractLozenge.js +0 -3
- package/dist/es2019/extractors/common/lozenge/extractLozengeText.js +0 -1
- package/dist/es2019/extractors/common/lozenge/extractState.js +0 -2
- package/dist/es2019/extractors/common/lozenge/extractTag.js +0 -3
- package/dist/es2019/extractors/common/lozenge/extractTaskStatus.js +0 -1
- package/dist/es2019/extractors/common/lozenge/extractTaskType.js +0 -1
- package/dist/es2019/extractors/common/primitives/extractTitleTextColor.js +0 -3
- package/dist/es2019/extractors/common/title-prefix/extractTitlePrefix.js +0 -4
- package/dist/es2019/extractors/constants.js +2 -2
- package/dist/es2019/extractors/embed/index.js +2 -4
- package/dist/es2019/extractors/flexible/actions/extract-download-action.js +0 -2
- package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +0 -3
- package/dist/es2019/extractors/flexible/actions/extract-view-action.js +0 -2
- package/dist/es2019/extractors/flexible/collaboratorGroup/index.js +0 -1
- package/dist/es2019/extractors/flexible/extract-preview.js +0 -2
- package/dist/es2019/extractors/flexible/extract-priority.js +0 -4
- package/dist/es2019/extractors/flexible/icon/extract-document-type-icon.js +0 -9
- package/dist/es2019/extractors/flexible/icon/extract-file-formatIcon.js +0 -24
- package/dist/es2019/extractors/flexible/icon/extract-icon-renderer.js +0 -4
- package/dist/es2019/extractors/flexible/icon/extract-jira-task-icon.js +0 -10
- package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +0 -18
- package/dist/es2019/extractors/flexible/icon/extract-provider-icon.js +0 -6
- package/dist/es2019/extractors/flexible/icon/extract-url-icon.js +0 -2
- package/dist/es2019/extractors/flexible/icon/index.js +4 -6
- package/dist/es2019/extractors/flexible/index.js +0 -3
- package/dist/es2019/extractors/flexible/latest-commit/index.js +0 -2
- package/dist/es2019/extractors/flexible/utils.js +0 -5
- package/dist/es2019/extractors/hover/extractMetadata.js +0 -3
- package/dist/es2019/extractors/index.js +0 -6
- package/dist/es2019/extractors/inline/index.js +0 -2
- package/dist/es2019/index.js +4 -4
- package/dist/es2019/ssr.js +2 -4
- package/dist/es2019/state/actions/index.js +25 -33
- package/dist/es2019/state/analytics/ufoExperiences.js +0 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +31 -46
- package/dist/es2019/state/config/index.js +0 -2
- package/dist/es2019/state/flexible-ui-context/index.js +1 -2
- package/dist/es2019/state/helpers.js +2 -11
- package/dist/es2019/state/hooks/usePrefetch.js +14 -15
- package/dist/es2019/state/hooks/useSmartLink.js +8 -7
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +4 -8
- package/dist/es2019/state/hooks-external/useSmartLinkReload.js +0 -1
- package/dist/es2019/state/store/index.js +6 -5
- package/dist/es2019/utils/analytics/analytics.js +46 -24
- package/dist/es2019/utils/analytics/index.js +8 -5
- package/dist/es2019/utils/flexible.js +0 -1
- package/dist/es2019/utils/index.js +0 -7
- package/dist/es2019/utils/jsonld.js +4 -2
- package/dist/es2019/utils/mocks.js +0 -3
- package/dist/es2019/utils/performance.js +0 -9
- package/dist/es2019/utils/test-utils.js +0 -2
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/actions/DownloadAction.js +0 -1
- package/dist/es2019/view/BlockCard/actions/PreviewAction.js +1 -3
- package/dist/es2019/view/BlockCard/actions/ViewAction.js +0 -1
- package/dist/es2019/view/BlockCard/actions/flexible/AuthorizeAction.js +1 -1
- package/dist/es2019/view/BlockCard/actions/flexible/ForbiddenAction.js +1 -1
- package/dist/es2019/view/BlockCard/actions/flexible/RetryAction.js +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +0 -1
- package/dist/es2019/view/BlockCard/components/ActionIcon.js +0 -3
- package/dist/es2019/view/BlockCard/components/ActionList.js +0 -1
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +0 -1
- package/dist/es2019/view/BlockCard/components/Frame.js +4 -2
- package/dist/es2019/view/BlockCard/components/Provider.js +0 -2
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +4 -2
- package/dist/es2019/view/BlockCard/components/flexible/footer/index.js +1 -4
- package/dist/es2019/view/BlockCard/index.js +1 -24
- package/dist/es2019/view/BlockCard/views/ErroredView.js +2 -2
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +0 -2
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +2 -2
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +0 -2
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +2 -3
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleErroredView.js +0 -2
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleForbiddenView.js +1 -5
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleNotFoundView.js +0 -2
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -2
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +1 -3
- package/dist/es2019/view/Card/index.js +0 -3
- package/dist/es2019/view/CardWithData/component.js +0 -6
- package/dist/es2019/view/CardWithData/loader.js +1 -10
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +3 -4
- package/dist/es2019/view/CardWithUrl/component.js +10 -15
- package/dist/es2019/view/CardWithUrl/loader.js +8 -13
- package/dist/es2019/view/EmbedCard/EmbedResizeMessageListener.js +0 -8
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +4 -6
- package/dist/es2019/view/EmbedCard/components/Frame.js +1 -11
- package/dist/es2019/view/EmbedCard/components/IframeDwellTracker.js +4 -6
- package/dist/es2019/view/EmbedCard/components/ImageIcon.js +0 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +0 -9
- package/dist/es2019/view/EmbedCard/index.js +0 -17
- package/dist/es2019/view/EmbedCard/views/ForbiddenView.js +0 -5
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +0 -1
- package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +0 -1
- package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +0 -1
- package/dist/es2019/view/EmbedModal/components/analytics/index.js +0 -7
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -2
- package/dist/es2019/view/EmbedModal/components/error-boundary/index.js +0 -3
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +0 -2
- package/dist/es2019/view/EmbedModal/components/link-info/link-info-button/index.js +0 -2
- package/dist/es2019/view/EmbedModal/index.js +0 -6
- package/dist/es2019/view/EmbedModal/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +0 -5
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +0 -5
- package/dist/es2019/view/FlexibleCard/components/actions/action/download-action/index.js +2 -9
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/actions/action/preview-action/index.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/actions/action/view-action/index.js +2 -6
- package/dist/es2019/view/FlexibleCard/components/actions/index.js +4 -5
- package/dist/es2019/view/FlexibleCard/components/actions/utils.js +2 -11
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +2 -12
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -12
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +1 -9
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/index.js +1 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -8
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +2 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/snippet-block/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +1 -9
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +3 -18
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +62 -195
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +0 -2
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +0 -2
- package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -27
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -7
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -9
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -7
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -10
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +0 -25
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -10
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -5
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +0 -23
- package/dist/es2019/view/FlexibleCard/components/utils.js +0 -11
- package/dist/es2019/view/FlexibleCard/index.js +1 -5
- package/dist/es2019/view/FlexibleCard/utils.js +0 -15
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +7 -14
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +0 -9
- package/dist/es2019/view/HoverCard/components/SnippetOrPreview.js +4 -5
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +2 -7
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +0 -2
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +0 -3
- package/dist/es2019/view/HoverCard/index.js +0 -3
- package/dist/es2019/view/HoverCard/styled.js +2 -2
- package/dist/es2019/view/HoverCard/utils.js +2 -11
- package/dist/es2019/view/InlineCard/ErroredView/index.js +0 -5
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +0 -14
- package/dist/es2019/view/InlineCard/Frame/index.js +5 -4
- package/dist/es2019/view/InlineCard/Frame/styled.js +1 -5
- package/dist/es2019/view/InlineCard/Icon.js +6 -4
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +0 -21
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +22 -15
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +0 -6
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +0 -2
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +0 -6
- package/dist/es2019/view/InlineCard/index.js +0 -14
- package/dist/es2019/view/InlineCard/styled.js +3 -2
- package/dist/es2019/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.js +1 -9
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +0 -2
- package/dist/es2019/view/LinkUrl/index.js +0 -2
- package/dist/es2019/view/LinkView/index.js +0 -1
- package/dist/es2019/view/common/Icon.js +0 -5
- package/dist/es2019/view/common/Metadata.js +0 -4
- package/dist/es2019/view/common/MetadataList.js +0 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +0 -2
- package/dist/es2019/view/common/utils.js +0 -3
- package/dist/esm/__tests_external__/page-objects/BaseCard.js +6 -20
- package/dist/esm/__tests_external__/page-objects/BlockCard.js +0 -8
- package/dist/esm/__tests_external__/page-objects/EmbedCard.js +0 -8
- package/dist/esm/__tests_external__/page-objects/InlineCard.js +0 -8
- package/dist/esm/__tests_external__/test-cases/card.js +2 -2
- package/dist/esm/__tests_external__/test-cases/embed.js +1 -1
- package/dist/esm/__tests_external__/test-cases/inline.js +2 -2
- package/dist/esm/constants.js +11 -26
- package/dist/esm/extractors/block/index.js +2 -13
- package/dist/esm/extractors/common/actions/extractActions.js +2 -14
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +18 -28
- package/dist/esm/extractors/common/byline/extractByline.js +4 -8
- package/dist/esm/extractors/common/context/extractAccessContext.js +2 -12
- package/dist/esm/extractors/common/detail/extractAttachmentCount.js +0 -1
- package/dist/esm/extractors/common/detail/extractCommentCount.js +0 -1
- package/dist/esm/extractors/common/detail/extractProgrammingLanguage.js +0 -1
- package/dist/esm/extractors/common/detail/extractSubscriberCount.js +0 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +0 -10
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +2 -11
- package/dist/esm/extractors/common/icon/extractIconFromTask.js +1 -13
- package/dist/esm/extractors/common/lozenge/extractLozenge.js +0 -7
- package/dist/esm/extractors/common/lozenge/extractLozengeText.js +1 -3
- package/dist/esm/extractors/common/lozenge/extractState.js +0 -2
- package/dist/esm/extractors/common/lozenge/extractTag.js +0 -3
- package/dist/esm/extractors/common/lozenge/extractTaskStatus.js +0 -1
- package/dist/esm/extractors/common/lozenge/extractTaskType.js +0 -1
- package/dist/esm/extractors/common/primitives/extractTitleTextColor.js +0 -3
- package/dist/esm/extractors/common/title-prefix/extractTitlePrefix.js +0 -4
- package/dist/esm/extractors/constants.js +2 -2
- package/dist/esm/extractors/embed/index.js +0 -6
- package/dist/esm/extractors/flexible/actions/extract-download-action.js +0 -2
- package/dist/esm/extractors/flexible/actions/extract-preview-action.js +0 -3
- package/dist/esm/extractors/flexible/actions/extract-view-action.js +0 -2
- package/dist/esm/extractors/flexible/collaboratorGroup/index.js +0 -1
- package/dist/esm/extractors/flexible/extract-preview.js +0 -2
- package/dist/esm/extractors/flexible/extract-priority.js +0 -4
- package/dist/esm/extractors/flexible/icon/extract-document-type-icon.js +0 -9
- package/dist/esm/extractors/flexible/icon/extract-file-formatIcon.js +0 -24
- package/dist/esm/extractors/flexible/icon/extract-icon-renderer.js +0 -4
- package/dist/esm/extractors/flexible/icon/extract-jira-task-icon.js +0 -11
- package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +4 -24
- package/dist/esm/extractors/flexible/icon/extract-provider-icon.js +0 -6
- package/dist/esm/extractors/flexible/icon/extract-url-icon.js +0 -2
- package/dist/esm/extractors/flexible/icon/index.js +4 -11
- package/dist/esm/extractors/flexible/index.js +0 -3
- package/dist/esm/extractors/flexible/latest-commit/index.js +0 -2
- package/dist/esm/extractors/flexible/utils.js +0 -5
- package/dist/esm/extractors/hover/extractMetadata.js +0 -3
- package/dist/esm/extractors/index.js +4 -15
- package/dist/esm/extractors/inline/index.js +0 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/ssr.js +4 -11
- package/dist/esm/state/actions/index.js +36 -57
- package/dist/esm/state/analytics/ufoExperiences.js +0 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +165 -195
- package/dist/esm/state/config/index.js +0 -2
- package/dist/esm/state/flexible-ui-context/index.js +1 -2
- package/dist/esm/state/helpers.js +3 -12
- package/dist/esm/state/hooks/usePrefetch.js +10 -24
- package/dist/esm/state/hooks/useSmartLink.js +11 -13
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +12 -18
- package/dist/esm/state/hooks-external/useSmartLinkReload.js +1 -2
- package/dist/esm/state/store/index.js +7 -9
- package/dist/esm/utils/analytics/analytics.js +133 -139
- package/dist/esm/utils/analytics/index.js +8 -13
- package/dist/esm/utils/flexible.js +0 -1
- package/dist/esm/utils/index.js +5 -21
- package/dist/esm/utils/jsonld.js +0 -3
- package/dist/esm/utils/mocks.js +0 -20
- package/dist/esm/utils/performance.js +0 -9
- package/dist/esm/utils/test-utils.js +0 -2
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/actions/DownloadAction.js +0 -6
- package/dist/esm/view/BlockCard/actions/PreviewAction.js +3 -15
- package/dist/esm/view/BlockCard/actions/RetryAction.js +0 -3
- package/dist/esm/view/BlockCard/actions/ViewAction.js +0 -6
- package/dist/esm/view/BlockCard/actions/flexible/AuthorizeAction.js +1 -1
- package/dist/esm/view/BlockCard/actions/flexible/ForbiddenAction.js +1 -1
- package/dist/esm/view/BlockCard/actions/flexible/RetryAction.js +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +7 -11
- package/dist/esm/view/BlockCard/components/ActionIcon.js +0 -4
- package/dist/esm/view/BlockCard/components/ActionList.js +1 -3
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +6 -8
- package/dist/esm/view/BlockCard/components/Content.js +2 -2
- package/dist/esm/view/BlockCard/components/ContentFooter.js +2 -2
- package/dist/esm/view/BlockCard/components/ContentHeader.js +2 -2
- package/dist/esm/view/BlockCard/components/Frame.js +10 -13
- package/dist/esm/view/BlockCard/components/Link.js +3 -3
- package/dist/esm/view/BlockCard/components/Name.js +4 -4
- package/dist/esm/view/BlockCard/components/Provider.js +1 -3
- package/dist/esm/view/BlockCard/components/Thumbnail.js +3 -6
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -1
- package/dist/esm/view/BlockCard/components/flexible/footer/index.js +7 -12
- package/dist/esm/view/BlockCard/index.js +18 -42
- package/dist/esm/view/BlockCard/views/ErroredView.js +10 -17
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +19 -22
- package/dist/esm/view/BlockCard/views/NotFoundView.js +11 -18
- package/dist/esm/view/BlockCard/views/ResolvedView.js +33 -35
- package/dist/esm/view/BlockCard/views/ResolvingView.js +4 -4
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +15 -22
- package/dist/esm/view/BlockCard/views/flexible/FlexibleErroredView.js +7 -9
- package/dist/esm/view/BlockCard/views/flexible/FlexibleForbiddenView.js +9 -13
- package/dist/esm/view/BlockCard/views/flexible/FlexibleNotFoundView.js +7 -9
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +17 -22
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +11 -15
- package/dist/esm/view/Card/index.js +0 -10
- package/dist/esm/view/CardWithData/component.js +7 -20
- package/dist/esm/view/CardWithData/loader.js +10 -24
- package/dist/esm/view/CardWithUrl/component-lazy/LazyFallback.js +2 -2
- package/dist/esm/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +9 -11
- package/dist/esm/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -3
- package/dist/esm/view/CardWithUrl/component.js +35 -42
- package/dist/esm/view/CardWithUrl/loader.js +31 -37
- package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +0 -15
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +20 -23
- package/dist/esm/view/EmbedCard/components/Frame.js +20 -38
- package/dist/esm/view/EmbedCard/components/IframeDwellTracker.js +15 -20
- package/dist/esm/view/EmbedCard/components/ImageIcon.js +6 -8
- package/dist/esm/view/EmbedCard/components/styled.js +1 -17
- package/dist/esm/view/EmbedCard/index.js +18 -35
- package/dist/esm/view/EmbedCard/views/ErroredView.js +5 -5
- package/dist/esm/view/EmbedCard/views/ForbiddenView.js +11 -16
- package/dist/esm/view/EmbedCard/views/NotFoundView.js +6 -6
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +12 -13
- package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +9 -10
- package/dist/esm/view/EmbedCard/views/UnresolvedView.js +7 -8
- package/dist/esm/view/EmbedModal/components/analytics/index.js +5 -12
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +4 -7
- package/dist/esm/view/EmbedModal/components/error-boundary/index.js +0 -3
- package/dist/esm/view/EmbedModal/components/link-info/index.js +10 -14
- package/dist/esm/view/EmbedModal/components/link-info/link-info-button/index.js +5 -7
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +0 -2
- package/dist/esm/view/EmbedModal/index.js +24 -33
- package/dist/esm/view/EmbedModal/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +8 -15
- package/dist/esm/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +4 -6
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -9
- package/dist/esm/view/FlexibleCard/components/actions/action/download-action/index.js +5 -21
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +14 -18
- package/dist/esm/view/FlexibleCard/components/actions/action/preview-action/index.js +10 -25
- package/dist/esm/view/FlexibleCard/components/actions/action/view-action/index.js +5 -19
- package/dist/esm/view/FlexibleCard/components/actions/index.js +4 -5
- package/dist/esm/view/FlexibleCard/components/actions/utils.js +4 -20
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +8 -23
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +13 -28
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +11 -16
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +12 -22
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/index.js +7 -14
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +12 -22
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +5 -9
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +11 -18
- package/dist/esm/view/FlexibleCard/components/blocks/snippet-block/index.js +7 -10
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +10 -17
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +20 -32
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +10 -12
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +5 -8
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +4 -22
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +64 -200
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +4 -6
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -6
- package/dist/esm/view/FlexibleCard/components/container/index.js +29 -61
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +5 -9
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +10 -19
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +7 -17
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +11 -20
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +13 -24
- package/dist/esm/view/FlexibleCard/components/elements/index.js +0 -25
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +15 -26
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +11 -18
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +8 -14
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +8 -15
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +2 -28
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -14
- package/dist/esm/view/FlexibleCard/index.js +14 -20
- package/dist/esm/view/FlexibleCard/utils.js +0 -15
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +19 -29
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +12 -28
- package/dist/esm/view/HoverCard/components/SnippetOrPreview.js +10 -16
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +22 -29
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +0 -2
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +1 -3
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +0 -2
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +8 -13
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +0 -2
- package/dist/esm/view/HoverCard/index.js +3 -6
- package/dist/esm/view/HoverCard/styled.js +2 -4
- package/dist/esm/view/HoverCard/utils.js +0 -15
- package/dist/esm/view/InlineCard/ErroredView/index.js +8 -22
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +6 -29
- package/dist/esm/view/InlineCard/Frame/index.js +11 -10
- package/dist/esm/view/InlineCard/Frame/styled.js +1 -9
- package/dist/esm/view/InlineCard/Icon.js +5 -5
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +10 -36
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +20 -15
- package/dist/esm/view/InlineCard/ResolvedView/index.js +13 -25
- package/dist/esm/view/InlineCard/ResolvingView/index.js +7 -16
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +0 -2
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +10 -25
- package/dist/esm/view/InlineCard/index.js +13 -27
- package/dist/esm/view/InlineCard/styled.js +3 -4
- package/dist/esm/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.js +11 -22
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +5 -7
- package/dist/esm/view/LinkUrl/index.js +10 -14
- package/dist/esm/view/LinkView/index.js +0 -8
- package/dist/esm/view/common/Byline.js +3 -3
- package/dist/esm/view/common/Icon.js +6 -13
- package/dist/esm/view/common/Metadata.js +3 -7
- package/dist/esm/view/common/MetadataList.js +1 -2
- package/dist/esm/view/common/UnauthorisedViewContent.js +3 -5
- package/dist/esm/view/common/utils.js +0 -3
- package/package.json +2 -2
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
3
2
|
var _importIconMapper;
|
|
4
|
-
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import Loadable from 'react-loadable';
|
|
7
5
|
import { B200, B400, N700, R400 } from '@atlaskit/theme/colors';
|
|
@@ -10,261 +8,139 @@ import BlogIcon from '@atlaskit/icon-object/glyph/blog/16';
|
|
|
10
8
|
import { IconType } from '../../../../../constants';
|
|
11
9
|
// prettier-ignore
|
|
12
10
|
var importIconMapper = (_importIconMapper = {}, _defineProperty(_importIconMapper, IconType.Archive, function () {
|
|
13
|
-
return import(
|
|
14
|
-
/* webpackChunkName: "glyphArchive" */
|
|
15
|
-
'@atlaskit/icon-file-type/glyph/archive/16');
|
|
11
|
+
return import( /* webpackChunkName: "glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16');
|
|
16
12
|
}), _defineProperty(_importIconMapper, IconType.Audio, function () {
|
|
17
|
-
return import(
|
|
18
|
-
/* webpackChunkName: "glyphAudio" */
|
|
19
|
-
'@atlaskit/icon-file-type/glyph/audio/16');
|
|
13
|
+
return import( /* webpackChunkName: "glyphAudio" */'@atlaskit/icon-file-type/glyph/audio/16');
|
|
20
14
|
}), _defineProperty(_importIconMapper, IconType.Code, function () {
|
|
21
|
-
return import(
|
|
22
|
-
/* webpackChunkName: "glyphCode" */
|
|
23
|
-
'@atlaskit/icon-file-type/glyph/source-code/16');
|
|
15
|
+
return import( /* webpackChunkName: "glyphCode" */'@atlaskit/icon-file-type/glyph/source-code/16');
|
|
24
16
|
}), _defineProperty(_importIconMapper, IconType.Executable, function () {
|
|
25
|
-
return import(
|
|
26
|
-
/* webpackChunkName: "glyphExecutable" */
|
|
27
|
-
'@atlaskit/icon-file-type/glyph/executable/16');
|
|
17
|
+
return import( /* webpackChunkName: "glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16');
|
|
28
18
|
}), _defineProperty(_importIconMapper, IconType.File, function () {
|
|
29
|
-
return import(
|
|
30
|
-
/* webpackChunkName: "glyphFile" */
|
|
31
|
-
'@atlaskit/icon-file-type/glyph/generic/16');
|
|
19
|
+
return import( /* webpackChunkName: "glyphFile" */'@atlaskit/icon-file-type/glyph/generic/16');
|
|
32
20
|
}), _defineProperty(_importIconMapper, IconType.Folder, function () {
|
|
33
|
-
return import(
|
|
34
|
-
/* webpackChunkName: "glyphFolder" */
|
|
35
|
-
'@atlaskit/icon-file-type/glyph/folder/16');
|
|
21
|
+
return import( /* webpackChunkName: "glyphFolder" */'@atlaskit/icon-file-type/glyph/folder/16');
|
|
36
22
|
}), _defineProperty(_importIconMapper, IconType.Generic, function () {
|
|
37
|
-
return import(
|
|
38
|
-
/* webpackChunkName: "glyphGeneric" */
|
|
39
|
-
'@atlaskit/icon-file-type/glyph/generic/16');
|
|
23
|
+
return import( /* webpackChunkName: "glyphGeneric" */'@atlaskit/icon-file-type/glyph/generic/16');
|
|
40
24
|
}), _defineProperty(_importIconMapper, IconType.GIF, function () {
|
|
41
|
-
return import(
|
|
42
|
-
/* webpackChunkName: "glyphGIF" */
|
|
43
|
-
'@atlaskit/icon-file-type/glyph/gif/16');
|
|
25
|
+
return import( /* webpackChunkName: "glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16');
|
|
44
26
|
}), _defineProperty(_importIconMapper, IconType.GoogleDocs, function () {
|
|
45
|
-
return import(
|
|
46
|
-
/* webpackChunkName: "glyphGoogleDocs" */
|
|
47
|
-
'@atlaskit/icon-file-type/glyph/google-doc/16');
|
|
27
|
+
return import( /* webpackChunkName: "glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16');
|
|
48
28
|
}), _defineProperty(_importIconMapper, IconType.GoogleForms, function () {
|
|
49
|
-
return import(
|
|
50
|
-
/* webpackChunkName: "glyphGoogleForms" */
|
|
51
|
-
'@atlaskit/icon-file-type/glyph/google-form/16');
|
|
29
|
+
return import( /* webpackChunkName: "glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16');
|
|
52
30
|
}), _defineProperty(_importIconMapper, IconType.GoogleSheets, function () {
|
|
53
|
-
return import(
|
|
54
|
-
/* webpackChunkName: "glyphGoogleSheets" */
|
|
55
|
-
'@atlaskit/icon-file-type/glyph/google-sheet/16');
|
|
31
|
+
return import( /* webpackChunkName: "glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16');
|
|
56
32
|
}), _defineProperty(_importIconMapper, IconType.GoogleSlides, function () {
|
|
57
|
-
return import(
|
|
58
|
-
/* webpackChunkName: "glyphGoogleSlides" */
|
|
59
|
-
'@atlaskit/icon-file-type/glyph/google-slide/16');
|
|
33
|
+
return import( /* webpackChunkName: "glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16');
|
|
60
34
|
}), _defineProperty(_importIconMapper, IconType.Image, function () {
|
|
61
|
-
return import(
|
|
62
|
-
/* webpackChunkName: "glyphImage" */
|
|
63
|
-
'@atlaskit/icon-file-type/glyph/image/16');
|
|
35
|
+
return import( /* webpackChunkName: "glyphImage" */'@atlaskit/icon-file-type/glyph/image/16');
|
|
64
36
|
}), _defineProperty(_importIconMapper, IconType.MSExcel, function () {
|
|
65
|
-
return import(
|
|
66
|
-
/* webpackChunkName: "glyphMSExcel" */
|
|
67
|
-
'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16');
|
|
37
|
+
return import( /* webpackChunkName: "glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16');
|
|
68
38
|
}), _defineProperty(_importIconMapper, IconType.MSPowerpoint, function () {
|
|
69
|
-
return import(
|
|
70
|
-
/* webpackChunkName: "glyphMSPowerpoint" */
|
|
71
|
-
'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16');
|
|
39
|
+
return import( /* webpackChunkName: "glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16');
|
|
72
40
|
}), _defineProperty(_importIconMapper, IconType.MSWord, function () {
|
|
73
|
-
return import(
|
|
74
|
-
/* webpackChunkName: "glyphMSWord" */
|
|
75
|
-
'@atlaskit/icon-file-type/glyph/word-document/16');
|
|
41
|
+
return import( /* webpackChunkName: "glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16');
|
|
76
42
|
}), _defineProperty(_importIconMapper, IconType.PDF, function () {
|
|
77
|
-
return import(
|
|
78
|
-
/* webpackChunkName: "glyphPDF" */
|
|
79
|
-
'@atlaskit/icon-file-type/glyph/pdf-document/16');
|
|
43
|
+
return import( /* webpackChunkName: "glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16');
|
|
80
44
|
}), _defineProperty(_importIconMapper, IconType.Presentation, function () {
|
|
81
|
-
return import(
|
|
82
|
-
/* webpackChunkName: "glyphPresentation" */
|
|
83
|
-
'@atlaskit/icon-file-type/glyph/presentation/16');
|
|
45
|
+
return import( /* webpackChunkName: "glyphPresentation" */'@atlaskit/icon-file-type/glyph/presentation/16');
|
|
84
46
|
}), _defineProperty(_importIconMapper, IconType.Sketch, function () {
|
|
85
|
-
return import(
|
|
86
|
-
/* webpackChunkName: "glyphSketch" */
|
|
87
|
-
'@atlaskit/icon-file-type/glyph/sketch/16');
|
|
47
|
+
return import( /* webpackChunkName: "glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16');
|
|
88
48
|
}), _defineProperty(_importIconMapper, IconType.Spreadsheet, function () {
|
|
89
|
-
return import(
|
|
90
|
-
/* webpackChunkName: "glyphSpreadsheet" */
|
|
91
|
-
'@atlaskit/icon-file-type/glyph/spreadsheet/16');
|
|
49
|
+
return import( /* webpackChunkName: "glyphSpreadsheet" */'@atlaskit/icon-file-type/glyph/spreadsheet/16');
|
|
92
50
|
}), _defineProperty(_importIconMapper, IconType.Template, function () {
|
|
93
|
-
return import(
|
|
94
|
-
/* webpackChunkName: "glyphTemplate" */
|
|
95
|
-
'@atlaskit/icon/glyph/document-filled');
|
|
51
|
+
return import( /* webpackChunkName: "glyphTemplate" */'@atlaskit/icon/glyph/document-filled');
|
|
96
52
|
}), _defineProperty(_importIconMapper, IconType.Video, function () {
|
|
97
|
-
return import(
|
|
98
|
-
/* webpackChunkName: "glyphVideo" */
|
|
99
|
-
'@atlaskit/icon-file-type/glyph/video/16');
|
|
53
|
+
return import( /* webpackChunkName: "glyphVideo" */'@atlaskit/icon-file-type/glyph/video/16');
|
|
100
54
|
}), _defineProperty(_importIconMapper, IconType.Branch, function () {
|
|
101
|
-
return import(
|
|
102
|
-
/* webpackChunkName: "glyphBranch" */
|
|
103
|
-
'@atlaskit/icon-object/glyph/branch/16');
|
|
55
|
+
return import( /* webpackChunkName: "glyphBranch" */'@atlaskit/icon-object/glyph/branch/16');
|
|
104
56
|
}), _defineProperty(_importIconMapper, IconType.Commit, function () {
|
|
105
|
-
return import(
|
|
106
|
-
/* webpackChunkName: "glyphCommit" */
|
|
107
|
-
'@atlaskit/icon-object/glyph/commit/16');
|
|
57
|
+
return import( /* webpackChunkName: "glyphCommit" */'@atlaskit/icon-object/glyph/commit/16');
|
|
108
58
|
}), _defineProperty(_importIconMapper, IconType.Project, function () {
|
|
109
|
-
return import(
|
|
110
|
-
/* webpackChunkName: "glyphProject" */
|
|
111
|
-
'@atlaskit/icon/glyph/people-group');
|
|
59
|
+
return import( /* webpackChunkName: "glyphProject" */'@atlaskit/icon/glyph/people-group');
|
|
112
60
|
}), _defineProperty(_importIconMapper, IconType.PullRequest, function () {
|
|
113
|
-
return import(
|
|
114
|
-
/* webpackChunkName: "glyphPullRequest" */
|
|
115
|
-
'@atlaskit/icon-object/glyph/pull-request/16');
|
|
61
|
+
return import( /* webpackChunkName: "glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16');
|
|
116
62
|
}), _defineProperty(_importIconMapper, IconType.Repo, function () {
|
|
117
|
-
return import(
|
|
118
|
-
/* webpackChunkName: "glyphRepo" */
|
|
119
|
-
'@atlaskit/icon-object/glyph/code/16');
|
|
63
|
+
return import( /* webpackChunkName: "glyphRepo" */'@atlaskit/icon-object/glyph/code/16');
|
|
120
64
|
}), _defineProperty(_importIconMapper, IconType.Bug, function () {
|
|
121
|
-
return import(
|
|
122
|
-
/* webpackChunkName: "glyphBug" */
|
|
123
|
-
'@atlaskit/icon-object/glyph/bug/16');
|
|
65
|
+
return import( /* webpackChunkName: "glyphBug" */'@atlaskit/icon-object/glyph/bug/16');
|
|
124
66
|
}), _defineProperty(_importIconMapper, IconType.Change, function () {
|
|
125
|
-
return import(
|
|
126
|
-
/* webpackChunkName: "glyphChange" */
|
|
127
|
-
'@atlaskit/icon-object/glyph/changes/16');
|
|
67
|
+
return import( /* webpackChunkName: "glyphChange" */'@atlaskit/icon-object/glyph/changes/16');
|
|
128
68
|
}), _defineProperty(_importIconMapper, IconType.Epic, function () {
|
|
129
|
-
return import(
|
|
130
|
-
/* webpackChunkName: "glyphEpic" */
|
|
131
|
-
'@atlaskit/icon-object/glyph/epic/16');
|
|
69
|
+
return import( /* webpackChunkName: "glyphEpic" */'@atlaskit/icon-object/glyph/epic/16');
|
|
132
70
|
}), _defineProperty(_importIconMapper, IconType.Incident, function () {
|
|
133
|
-
return import(
|
|
134
|
-
/* webpackChunkName: "glyphIncident" */
|
|
135
|
-
'@atlaskit/icon-object/glyph/incident/16');
|
|
71
|
+
return import( /* webpackChunkName: "glyphIncident" */'@atlaskit/icon-object/glyph/incident/16');
|
|
136
72
|
}), _defineProperty(_importIconMapper, IconType.Problem, function () {
|
|
137
|
-
return import(
|
|
138
|
-
/* webpackChunkName: "glyphProblem" */
|
|
139
|
-
'@atlaskit/icon-object/glyph/problem/16');
|
|
73
|
+
return import( /* webpackChunkName: "glyphProblem" */'@atlaskit/icon-object/glyph/problem/16');
|
|
140
74
|
}), _defineProperty(_importIconMapper, IconType.ServiceRequest, function () {
|
|
141
|
-
return import(
|
|
142
|
-
/* webpackChunkName: "glyphServiceRequest" */
|
|
143
|
-
'@atlaskit/icon-object/glyph/issue/16');
|
|
75
|
+
return import( /* webpackChunkName: "glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16');
|
|
144
76
|
}), _defineProperty(_importIconMapper, IconType.Story, function () {
|
|
145
|
-
return import(
|
|
146
|
-
/* webpackChunkName: "glyphStory" */
|
|
147
|
-
'@atlaskit/icon-object/glyph/story/16');
|
|
77
|
+
return import( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16');
|
|
148
78
|
}), _defineProperty(_importIconMapper, IconType.SubTask, function () {
|
|
149
|
-
return import(
|
|
150
|
-
/* webpackChunkName: "glyphSubTask" */
|
|
151
|
-
'@atlaskit/icon-object/glyph/subtask/16');
|
|
79
|
+
return import( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16');
|
|
152
80
|
}), _defineProperty(_importIconMapper, IconType.Task, function () {
|
|
153
|
-
return import(
|
|
154
|
-
/* webpackChunkName: "glyphTask" */
|
|
155
|
-
'@atlaskit/icon-object/glyph/task/16');
|
|
81
|
+
return import( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16');
|
|
156
82
|
}), _defineProperty(_importIconMapper, IconType.Confluence, function () {
|
|
157
|
-
return import(
|
|
158
|
-
/* webpackChunkName: "glyphConfluence" */
|
|
159
|
-
'@atlaskit/logo/confluence-icon').then(function (_ref) {
|
|
83
|
+
return import( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref) {
|
|
160
84
|
var ConfluenceIcon = _ref.ConfluenceIcon;
|
|
161
85
|
return {
|
|
162
86
|
default: ConfluenceIcon
|
|
163
87
|
};
|
|
164
88
|
});
|
|
165
89
|
}), _defineProperty(_importIconMapper, IconType.Jira, function () {
|
|
166
|
-
return import(
|
|
167
|
-
/* webpackChunkName: "glyphJira" */
|
|
168
|
-
'@atlaskit/logo/jira-icon').then(function (_ref2) {
|
|
90
|
+
return import( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref2) {
|
|
169
91
|
var JiraIcon = _ref2.JiraIcon;
|
|
170
92
|
return {
|
|
171
93
|
default: JiraIcon
|
|
172
94
|
};
|
|
173
95
|
});
|
|
174
96
|
}), _defineProperty(_importIconMapper, IconType.Default, function () {
|
|
175
|
-
return import(
|
|
176
|
-
/* webpackChunkName: "glyphDefault" */
|
|
177
|
-
'@atlaskit/icon/glyph/link');
|
|
97
|
+
return import( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link');
|
|
178
98
|
}), _defineProperty(_importIconMapper, IconType.Error, function () {
|
|
179
|
-
return import(
|
|
180
|
-
/* webpackChunkName: "glyphError" */
|
|
181
|
-
'@atlaskit/icon/glyph/error');
|
|
99
|
+
return import( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error');
|
|
182
100
|
}), _defineProperty(_importIconMapper, IconType.Forbidden, function () {
|
|
183
|
-
return import(
|
|
184
|
-
/* webpackChunkName: "glyphForbidden" */
|
|
185
|
-
'@atlaskit/icon/glyph/lock-filled');
|
|
101
|
+
return import( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled');
|
|
186
102
|
}), _defineProperty(_importIconMapper, IconType.Attachment, function () {
|
|
187
|
-
return import(
|
|
188
|
-
/* webpackChunkName: "glyphAttachment" */
|
|
189
|
-
'@atlaskit/icon/glyph/attachment');
|
|
103
|
+
return import( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/attachment');
|
|
190
104
|
}), _defineProperty(_importIconMapper, IconType.CheckItem, function () {
|
|
191
|
-
return import(
|
|
192
|
-
/* webpackChunkName: "glyphAttachment" */
|
|
193
|
-
'@atlaskit/icon/glyph/task');
|
|
105
|
+
return import( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/task');
|
|
194
106
|
}), _defineProperty(_importIconMapper, IconType.Comment, function () {
|
|
195
|
-
return import(
|
|
196
|
-
/* webpackChunkName: "glyphComment" */
|
|
197
|
-
'@atlaskit/icon/glyph/comment');
|
|
107
|
+
return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/comment');
|
|
198
108
|
}), _defineProperty(_importIconMapper, IconType.View, function () {
|
|
199
|
-
return import(
|
|
200
|
-
/* webpackChunkName: "glyphComment" */
|
|
201
|
-
'@atlaskit/icon/glyph/watch');
|
|
109
|
+
return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/watch');
|
|
202
110
|
}), _defineProperty(_importIconMapper, IconType.React, function () {
|
|
203
|
-
return import(
|
|
204
|
-
/* webpackChunkName: "glyphComment" */
|
|
205
|
-
'@atlaskit/icon/glyph/like');
|
|
111
|
+
return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/like');
|
|
206
112
|
}), _defineProperty(_importIconMapper, IconType.Vote, function () {
|
|
207
|
-
return import(
|
|
208
|
-
/* webpackChunkName: "glyphComment" */
|
|
209
|
-
'@atlaskit/icon/glyph/arrow-up');
|
|
113
|
+
return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/arrow-up');
|
|
210
114
|
}), _defineProperty(_importIconMapper, IconType.PriorityBlocker, function () {
|
|
211
|
-
return import(
|
|
212
|
-
/* webpackChunkName: "glyphBlocker" */
|
|
213
|
-
'@atlaskit/icon-priority/glyph/priority-blocker');
|
|
115
|
+
return import( /* webpackChunkName: "glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
|
|
214
116
|
}), _defineProperty(_importIconMapper, IconType.PriorityCritical, function () {
|
|
215
|
-
return import(
|
|
216
|
-
/* webpackChunkName: "glyphCritical" */
|
|
217
|
-
'@atlaskit/icon-priority/glyph/priority-critical');
|
|
117
|
+
return import( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical');
|
|
218
118
|
}), _defineProperty(_importIconMapper, IconType.PriorityHigh, function () {
|
|
219
|
-
return import(
|
|
220
|
-
/* webpackChunkName: "glyphHigh" */
|
|
221
|
-
'@atlaskit/icon-priority/glyph/priority-high');
|
|
119
|
+
return import( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high');
|
|
222
120
|
}), _defineProperty(_importIconMapper, IconType.PriorityHighest, function () {
|
|
223
|
-
return import(
|
|
224
|
-
/* webpackChunkName: "glyphHighest" */
|
|
225
|
-
'@atlaskit/icon-priority/glyph/priority-highest');
|
|
121
|
+
return import( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest');
|
|
226
122
|
}), _defineProperty(_importIconMapper, IconType.PriorityLow, function () {
|
|
227
|
-
return import(
|
|
228
|
-
/* webpackChunkName: "glyphLow" */
|
|
229
|
-
'@atlaskit/icon-priority/glyph/priority-low');
|
|
123
|
+
return import( /* webpackChunkName: "glyphLow" */'@atlaskit/icon-priority/glyph/priority-low');
|
|
230
124
|
}), _defineProperty(_importIconMapper, IconType.PriorityLowest, function () {
|
|
231
|
-
return import(
|
|
232
|
-
/* webpackChunkName: "glyphLowest" */
|
|
233
|
-
'@atlaskit/icon-priority/glyph/priority-lowest');
|
|
125
|
+
return import( /* webpackChunkName: "glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest');
|
|
234
126
|
}), _defineProperty(_importIconMapper, IconType.PriorityMajor, function () {
|
|
235
|
-
return import(
|
|
236
|
-
/* webpackChunkName: "glyphMajor" */
|
|
237
|
-
'@atlaskit/icon-priority/glyph/priority-major');
|
|
127
|
+
return import( /* webpackChunkName: "glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major');
|
|
238
128
|
}), _defineProperty(_importIconMapper, IconType.PriorityMedium, function () {
|
|
239
|
-
return import(
|
|
240
|
-
/* webpackChunkName: "glyphMedium" */
|
|
241
|
-
'@atlaskit/icon-priority/glyph/priority-medium');
|
|
129
|
+
return import( /* webpackChunkName: "glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium');
|
|
242
130
|
}), _defineProperty(_importIconMapper, IconType.PriorityMinor, function () {
|
|
243
|
-
return import(
|
|
244
|
-
/* webpackChunkName: "glyphMinor" */
|
|
245
|
-
'@atlaskit/icon-priority/glyph/priority-minor');
|
|
131
|
+
return import( /* webpackChunkName: "glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor');
|
|
246
132
|
}), _defineProperty(_importIconMapper, IconType.PriorityTrivial, function () {
|
|
247
|
-
return import(
|
|
248
|
-
/* webpackChunkName: "glyphTrivial" */
|
|
249
|
-
'@atlaskit/icon-priority/glyph/priority-trivial');
|
|
133
|
+
return import( /* webpackChunkName: "glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial');
|
|
250
134
|
}), _defineProperty(_importIconMapper, IconType.PriorityUndefined, function () {
|
|
251
|
-
return import(
|
|
252
|
-
/* webpackChunkName: "glyphUndefined" */
|
|
253
|
-
'@atlaskit/icon/glyph/question');
|
|
135
|
+
return import( /* webpackChunkName: "glyphUndefined" */'@atlaskit/icon/glyph/question');
|
|
254
136
|
}), _defineProperty(_importIconMapper, IconType.ProgrammingLanguage, function () {
|
|
255
|
-
return import(
|
|
256
|
-
/* webpackChunkName: "glyphProgrammingLanguage" */
|
|
257
|
-
'@atlaskit/icon/glyph/code');
|
|
137
|
+
return import( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code');
|
|
258
138
|
}), _defineProperty(_importIconMapper, IconType.Subscriber, function () {
|
|
259
|
-
return import(
|
|
260
|
-
/* webpackChunkName: "glyphSubscriber" */
|
|
261
|
-
'@atlaskit/icon/glyph/people');
|
|
139
|
+
return import( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people');
|
|
262
140
|
}), _importIconMapper);
|
|
263
|
-
|
|
264
141
|
var getIconImportFn = function getIconImportFn(icon) {
|
|
265
142
|
return importIconMapper[icon];
|
|
266
143
|
};
|
|
267
|
-
|
|
268
144
|
var importIcon = function importIcon(importFn) {
|
|
269
145
|
return Loadable({
|
|
270
146
|
loader: function loader() {
|
|
@@ -280,9 +156,8 @@ var importIcon = function importIcon(importFn) {
|
|
|
280
156
|
|
|
281
157
|
var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
282
158
|
var icon = _ref3.icon,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
159
|
+
label = _ref3.label,
|
|
160
|
+
testId = _ref3.testId;
|
|
286
161
|
// Check for synchonously loaded icons first for SSR purposes
|
|
287
162
|
switch (icon) {
|
|
288
163
|
case IconType.Document:
|
|
@@ -290,34 +165,27 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
290
165
|
label: label || 'document',
|
|
291
166
|
testId: testId
|
|
292
167
|
});
|
|
293
|
-
|
|
294
168
|
case IconType.Blog:
|
|
295
169
|
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
296
170
|
label: label || 'blog',
|
|
297
171
|
testId: testId
|
|
298
172
|
});
|
|
299
173
|
}
|
|
300
|
-
|
|
301
174
|
var importFn = getIconImportFn(icon);
|
|
302
|
-
|
|
303
175
|
if (!importFn) {
|
|
304
176
|
return null;
|
|
305
177
|
}
|
|
306
|
-
|
|
307
178
|
var ImportedIcon = importIcon(importFn);
|
|
308
|
-
|
|
309
179
|
switch (icon) {
|
|
310
180
|
case IconType.Confluence:
|
|
311
181
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
312
182
|
testId: testId,
|
|
313
183
|
textColor: "var(--ds-text-subtle, ".concat(N700, ")")
|
|
314
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage
|
|
315
|
-
,
|
|
184
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
|
|
316
185
|
iconColor: B200,
|
|
317
186
|
iconGradientStart: B400,
|
|
318
187
|
iconGradientStop: B200
|
|
319
188
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
320
|
-
|
|
321
189
|
});
|
|
322
190
|
|
|
323
191
|
case IconType.Jira:
|
|
@@ -325,13 +193,11 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
325
193
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
326
194
|
testId: testId,
|
|
327
195
|
textColor: "var(--ds-text-subtle, ".concat(N700, ")")
|
|
328
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage
|
|
329
|
-
,
|
|
196
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
|
|
330
197
|
iconColor: B200,
|
|
331
198
|
iconGradientStart: B400,
|
|
332
199
|
iconGradientStop: B200
|
|
333
200
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
334
|
-
|
|
335
201
|
});
|
|
336
202
|
|
|
337
203
|
case IconType.Error:
|
|
@@ -341,7 +207,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
341
207
|
testId: testId,
|
|
342
208
|
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
343
209
|
});
|
|
344
|
-
|
|
345
210
|
default:
|
|
346
211
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
347
212
|
label: label,
|
|
@@ -349,5 +214,4 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
349
214
|
});
|
|
350
215
|
}
|
|
351
216
|
};
|
|
352
|
-
|
|
353
217
|
export default AtlaskitIcon;
|
|
@@ -3,13 +3,12 @@ import React from 'react';
|
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import ImageLoader from 'react-render-image';
|
|
5
5
|
import LoadingSkeleton from '../loading-skeleton';
|
|
6
|
-
|
|
7
6
|
var ImageIcon = function ImageIcon(_ref) {
|
|
8
7
|
var defaultIcon = _ref.defaultIcon,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
testId = _ref.testId,
|
|
9
|
+
url = _ref.url,
|
|
10
|
+
onError = _ref.onError,
|
|
11
|
+
onLoad = _ref.onLoad;
|
|
13
12
|
return jsx(ImageLoader, {
|
|
14
13
|
src: url,
|
|
15
14
|
loading: jsx(LoadingSkeleton, {
|
|
@@ -24,5 +23,4 @@ var ImageIcon = function ImageIcon(_ref) {
|
|
|
24
23
|
onLoad: onLoad
|
|
25
24
|
});
|
|
26
25
|
};
|
|
27
|
-
|
|
28
26
|
export default ImageIcon;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject, _templateObject2;
|
|
4
|
-
|
|
5
3
|
/** @jsx jsx */
|
|
6
4
|
import React from 'react';
|
|
7
5
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
8
|
-
|
|
9
6
|
var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
10
7
|
var testId = _ref.testId,
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
width = _ref.width,
|
|
9
|
+
height = _ref.height;
|
|
13
10
|
var animationNameStyles = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-position: 50% 0; }\n 100% { background-position: -50% 0; }\n "])));
|
|
14
11
|
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);
|
|
15
12
|
return jsx("span", {
|
|
@@ -17,5 +14,4 @@ var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
|
17
14
|
"data-testid": testId
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
|
-
|
|
21
17
|
export default LoadingSkeleton;
|