@atlaskit/smart-card 23.2.0 → 23.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/constants.js +4 -2
- package/dist/cjs/messages.js +15 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/{BlockCard/utils → EmbedCard}/constants.js +4 -4
- package/dist/cjs/view/EmbedCard/views/ForbiddenView.js +1 -1
- package/dist/cjs/view/EmbedCard/views/NotFoundView.js +1 -1
- package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +23 -5
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +9 -5
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +6 -1
- package/dist/es2019/constants.js +2 -0
- package/dist/es2019/messages.js +15 -0
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/{BlockCard/utils → EmbedCard}/constants.js +2 -2
- package/dist/es2019/view/EmbedCard/views/ForbiddenView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/NotFoundView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +19 -5
- package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +9 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +5 -0
- package/dist/esm/constants.js +2 -0
- package/dist/esm/messages.js +15 -0
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/{BlockCard/utils → EmbedCard}/constants.js +2 -2
- package/dist/esm/view/EmbedCard/views/ForbiddenView.js +1 -1
- package/dist/esm/view/EmbedCard/views/NotFoundView.js +1 -1
- package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +19 -5
- package/dist/esm/view/EmbedCard/views/UnresolvedView.js +9 -5
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +6 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/{BlockCard/utils → EmbedCard}/constants.d.ts +1 -1
- package/dist/types/view/EmbedCard/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/types.d.ts +6 -0
- package/package.json +2 -10
- package/report.api.md +1 -0
- package/tmp/api-report-tmp.d.ts +1 -0
- package/dist/types-ts4.0/__fixtures__/flexible-ui-data-context.d.ts +0 -3
- package/dist/types-ts4.0/__tests_external__/index.d.ts +0 -6
- package/dist/types-ts4.0/__tests_external__/page-objects/BaseCard.d.ts +0 -16
- package/dist/types-ts4.0/__tests_external__/page-objects/BlockCard.d.ts +0 -6
- package/dist/types-ts4.0/__tests_external__/page-objects/EmbedCard.d.ts +0 -6
- package/dist/types-ts4.0/__tests_external__/page-objects/InlineCard.d.ts +0 -6
- package/dist/types-ts4.0/__tests_external__/test-cases/card.d.ts +0 -3
- package/dist/types-ts4.0/__tests_external__/test-cases/embed.d.ts +0 -3
- package/dist/types-ts4.0/__tests_external__/test-cases/inline.d.ts +0 -3
- package/dist/types-ts4.0/__tests_external__/test-cases/types.d.ts +0 -5
- package/dist/types-ts4.0/classNames.d.ts +0 -11
- package/dist/types-ts4.0/client/index.d.ts +0 -1
- package/dist/types-ts4.0/constants.d.ts +0 -187
- package/dist/types-ts4.0/extractors/block/index.d.ts +0 -9
- package/dist/types-ts4.0/extractors/block/types.d.ts +0 -12
- package/dist/types-ts4.0/extractors/common/__mocks__/jsonld.d.ts +0 -234
- package/dist/types-ts4.0/extractors/common/__mocks__/render.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/actions/extractActions.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/actions/extractPreviewAction.d.ts +0 -9
- package/dist/types-ts4.0/extractors/common/byline/extractByline.d.ts +0 -3
- package/dist/types-ts4.0/extractors/common/context/extractAccessContext.d.ts +0 -7
- package/dist/types-ts4.0/extractors/common/context/index.d.ts +0 -1
- package/dist/types-ts4.0/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/detail/extractCommentCount.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/detail/extractDownloadUrl.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/detail/index.d.ts +0 -9
- package/dist/types-ts4.0/extractors/common/detail/types.d.ts +0 -5
- package/dist/types-ts4.0/extractors/common/icon/extractFileFormat.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/icon/extractIcon.d.ts +0 -14
- package/dist/types-ts4.0/extractors/common/icon/extractIconFromDocument.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/icon/extractIconFromTask.d.ts +0 -3
- package/dist/types-ts4.0/extractors/common/icon/index.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/icon/priority.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/lozenge/extractLozenge.d.ts +0 -3
- package/dist/types-ts4.0/extractors/common/lozenge/extractState.d.ts +0 -3
- package/dist/types-ts4.0/extractors/common/lozenge/extractTag.d.ts +0 -3
- package/dist/types-ts4.0/extractors/common/lozenge/extractTaskStatus.d.ts +0 -3
- package/dist/types-ts4.0/extractors/common/lozenge/extractTaskType.d.ts +0 -7
- package/dist/types-ts4.0/extractors/common/lozenge/index.d.ts +0 -5
- package/dist/types-ts4.0/extractors/common/lozenge/types.d.ts +0 -8
- package/dist/types-ts4.0/extractors/common/lozenge/utils.d.ts +0 -4
- package/dist/types-ts4.0/extractors/common/meta/extractIsTrusted.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/primitives/extractSummary.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/primitives/extractTitleTextColor.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/primitives/extractVisitUrl.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/primitives/index.d.ts +0 -2
- package/dist/types-ts4.0/extractors/common/title-prefix/extractTitlePrefix.d.ts +0 -5
- package/dist/types-ts4.0/extractors/common/title-prefix/index.d.ts +0 -1
- package/dist/types-ts4.0/extractors/constants.d.ts +0 -12
- package/dist/types-ts4.0/extractors/embed/index.d.ts +0 -3
- package/dist/types-ts4.0/extractors/flexible/collaboratorGroup/index.d.ts +0 -4
- package/dist/types-ts4.0/extractors/flexible/extract-preview.d.ts +0 -4
- package/dist/types-ts4.0/extractors/flexible/extract-priority.d.ts +0 -4
- package/dist/types-ts4.0/extractors/flexible/icon/extract-document-type-icon.d.ts +0 -3
- package/dist/types-ts4.0/extractors/flexible/icon/extract-file-formatIcon.d.ts +0 -3
- package/dist/types-ts4.0/extractors/flexible/icon/extract-icon-renderer.d.ts +0 -4
- package/dist/types-ts4.0/extractors/flexible/icon/extract-jira-task-icon.d.ts +0 -3
- package/dist/types-ts4.0/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +0 -4
- package/dist/types-ts4.0/extractors/flexible/icon/extract-provider-icon.d.ts +0 -4
- package/dist/types-ts4.0/extractors/flexible/icon/extract-url-icon.d.ts +0 -4
- package/dist/types-ts4.0/extractors/flexible/icon/index.d.ts +0 -17
- package/dist/types-ts4.0/extractors/flexible/icon/types.d.ts +0 -6
- package/dist/types-ts4.0/extractors/flexible/index.d.ts +0 -5
- package/dist/types-ts4.0/extractors/flexible/latest-commit/index.d.ts +0 -2
- package/dist/types-ts4.0/extractors/flexible/utils.d.ts +0 -13
- package/dist/types-ts4.0/extractors/hover/extractMetadata.d.ts +0 -3
- package/dist/types-ts4.0/extractors/index.d.ts +0 -14
- package/dist/types-ts4.0/extractors/inline/index.d.ts +0 -6
- package/dist/types-ts4.0/hooks.d.ts +0 -2
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -71
- package/dist/types-ts4.0/i18n/da.d.ts +0 -71
- package/dist/types-ts4.0/i18n/de.d.ts +0 -71
- package/dist/types-ts4.0/i18n/en.d.ts +0 -71
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -71
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -38
- package/dist/types-ts4.0/i18n/es.d.ts +0 -71
- package/dist/types-ts4.0/i18n/et.d.ts +0 -94
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -71
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -71
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -71
- package/dist/types-ts4.0/i18n/index.d.ts +0 -35
- package/dist/types-ts4.0/i18n/is.d.ts +0 -70
- package/dist/types-ts4.0/i18n/it.d.ts +0 -71
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -71
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -71
- package/dist/types-ts4.0/i18n/languages.d.ts +0 -27
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -71
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -71
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -71
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -71
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -94
- package/dist/types-ts4.0/i18n/ro.d.ts +0 -70
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -71
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -94
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -71
- package/dist/types-ts4.0/i18n/th.d.ts +0 -71
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -71
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -71
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -71
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -71
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -71
- package/dist/types-ts4.0/in-product.d.ts +0 -1
- package/dist/types-ts4.0/index.d.ts +0 -22
- package/dist/types-ts4.0/messages.d.ts +0 -8
- package/dist/types-ts4.0/model/invoke-handler.d.ts +0 -3
- package/dist/types-ts4.0/model/invoke-opts.d.ts +0 -17
- package/dist/types-ts4.0/ssr.d.ts +0 -6
- package/dist/types-ts4.0/state/actions/constants.d.ts +0 -6
- package/dist/types-ts4.0/state/actions/index.d.ts +0 -12
- package/dist/types-ts4.0/state/actions/types.d.ts +0 -2
- package/dist/types-ts4.0/state/analytics/index.d.ts +0 -3
- package/dist/types-ts4.0/state/analytics/types.d.ts +0 -9
- package/dist/types-ts4.0/state/analytics/ufoExperiences.d.ts +0 -7
- package/dist/types-ts4.0/state/analytics/useSmartLinkAnalytics.d.ts +0 -195
- package/dist/types-ts4.0/state/config/index.d.ts +0 -2
- package/dist/types-ts4.0/state/flexible-ui-context/index.d.ts +0 -8
- package/dist/types-ts4.0/state/flexible-ui-context/types.d.ts +0 -165
- package/dist/types-ts4.0/state/helpers.d.ts +0 -16
- package/dist/types-ts4.0/state/hooks/index.d.ts +0 -2
- package/dist/types-ts4.0/state/hooks/usePrefetch.d.ts +0 -1
- package/dist/types-ts4.0/state/hooks/useSmartLink.d.ts +0 -50
- package/dist/types-ts4.0/state/hooks-external/useSmartLinkActions.d.ts +0 -49
- package/dist/types-ts4.0/state/hooks-external/useSmartLinkReload.d.ts +0 -19
- package/dist/types-ts4.0/state/index.d.ts +0 -5
- package/dist/types-ts4.0/state/reducers/types.d.ts +0 -4
- package/dist/types-ts4.0/state/renderers/index.d.ts +0 -2
- package/dist/types-ts4.0/state/store/index.d.ts +0 -3
- package/dist/types-ts4.0/state/types.d.ts +0 -1
- package/dist/types-ts4.0/types.d.ts +0 -20
- package/dist/types-ts4.0/utils/analytics/__mocks__/analytics.d.ts +0 -2
- package/dist/types-ts4.0/utils/analytics/analytics.d.ts +0 -32
- package/dist/types-ts4.0/utils/analytics/index.d.ts +0 -4
- package/dist/types-ts4.0/utils/analytics/types.d.ts +0 -93
- package/dist/types-ts4.0/utils/flexible.d.ts +0 -5
- package/dist/types-ts4.0/utils/index.d.ts +0 -12
- package/dist/types-ts4.0/utils/jsonld.d.ts +0 -3
- package/dist/types-ts4.0/utils/mocks.d.ts +0 -75
- package/dist/types-ts4.0/utils/performance.d.ts +0 -8
- package/dist/types-ts4.0/utils/test-utils.d.ts +0 -4
- package/dist/types-ts4.0/utils/token.d.ts +0 -16
- package/dist/types-ts4.0/utils/types.d.ts +0 -14
- package/dist/types-ts4.0/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
- package/dist/types-ts4.0/view/BlockCard/actions/DownloadAction.d.ts +0 -8
- package/dist/types-ts4.0/view/BlockCard/actions/ForbiddenAction.d.ts +0 -2
- package/dist/types-ts4.0/view/BlockCard/actions/PreviewAction.d.ts +0 -30
- package/dist/types-ts4.0/view/BlockCard/actions/RetryAction.d.ts +0 -2
- package/dist/types-ts4.0/view/BlockCard/actions/ViewAction.d.ts +0 -8
- package/dist/types-ts4.0/view/BlockCard/components/Action.d.ts +0 -13
- package/dist/types-ts4.0/view/BlockCard/components/ActionIcon.d.ts +0 -12
- package/dist/types-ts4.0/view/BlockCard/components/ActionList.d.ts +0 -7
- package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +0 -15
- package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +0 -9
- package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +0 -9
- package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +0 -10
- package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +0 -7
- package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +0 -16
- package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +0 -8
- package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +0 -12
- package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +0 -8
- package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +0 -10
- package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +0 -8
- package/dist/types-ts4.0/view/BlockCard/index.d.ts +0 -14
- package/dist/types-ts4.0/view/BlockCard/types.d.ts +0 -25
- package/dist/types-ts4.0/view/BlockCard/utils/constants.d.ts +0 -3
- package/dist/types-ts4.0/view/BlockCard/utils/handlers.d.ts +0 -2
- package/dist/types-ts4.0/view/BlockCard/views/ErroredView.d.ts +0 -14
- package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +0 -23
- package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +0 -17
- package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +0 -34
- package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +0 -9
- package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
- package/dist/types-ts4.0/view/Card/index.d.ts +0 -5
- package/dist/types-ts4.0/view/Card/types.d.ts +0 -37
- package/dist/types-ts4.0/view/CardWithData/component.d.ts +0 -5
- package/dist/types-ts4.0/view/CardWithData/loader.d.ts +0 -9
- package/dist/types-ts4.0/view/CardWithData/types.d.ts +0 -15
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyFallback.d.ts +0 -4
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +0 -3
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.d.ts +0 -3
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/index.d.ts +0 -3
- package/dist/types-ts4.0/view/CardWithUrl/component.d.ts +0 -3
- package/dist/types-ts4.0/view/CardWithUrl/loader.d.ts +0 -3
- package/dist/types-ts4.0/view/CardWithUrl/types.d.ts +0 -29
- package/dist/types-ts4.0/view/EmbedCard/EmbedResizeMessageListener.d.ts +0 -15
- package/dist/types-ts4.0/view/EmbedCard/components/ExpandedFrame.d.ts +0 -23
- package/dist/types-ts4.0/view/EmbedCard/components/Frame.d.ts +0 -7
- package/dist/types-ts4.0/view/EmbedCard/components/ImageIcon.d.ts +0 -9
- package/dist/types-ts4.0/view/EmbedCard/components/styled.d.ts +0 -45
- package/dist/types-ts4.0/view/EmbedCard/index.d.ts +0 -3
- package/dist/types-ts4.0/view/EmbedCard/types.d.ts +0 -46
- package/dist/types-ts4.0/view/EmbedCard/views/ErroredView.d.ts +0 -9
- package/dist/types-ts4.0/view/EmbedCard/views/ForbiddenView.d.ts +0 -13
- package/dist/types-ts4.0/view/EmbedCard/views/NotFoundView.d.ts +0 -11
- package/dist/types-ts4.0/view/EmbedCard/views/ResolvedView.d.ts +0 -27
- package/dist/types-ts4.0/view/EmbedCard/views/UnauthorisedView.d.ts +0 -12
- package/dist/types-ts4.0/view/EmbedCard/views/UnresolvedView.d.ts +0 -18
- package/dist/types-ts4.0/view/EmbedModal/components/analytics/index.d.ts +0 -5
- package/dist/types-ts4.0/view/EmbedModal/components/analytics/types.d.ts +0 -6
- package/dist/types-ts4.0/view/EmbedModal/components/embed-content/index.d.ts +0 -5
- package/dist/types-ts4.0/view/EmbedModal/components/embed-content/types.d.ts +0 -6
- package/dist/types-ts4.0/view/EmbedModal/components/error-boundary/index.d.ts +0 -4
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/index.d.ts +0 -4
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/index.d.ts +0 -4
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/types.d.ts +0 -9
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/styled.d.ts +0 -4
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/types.d.ts +0 -13
- package/dist/types-ts4.0/view/EmbedModal/constants.d.ts +0 -2
- package/dist/types-ts4.0/view/EmbedModal/index.d.ts +0 -4
- package/dist/types-ts4.0/view/EmbedModal/types.d.ts +0 -31
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/index.d.ts +0 -5
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/types.d.ts +0 -8
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/index.d.ts +0 -4
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/types.d.ts +0 -8
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +0 -5
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +0 -7
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/index.d.ts +0 -13
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/types.d.ts +0 -48
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/index.d.ts +0 -20
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/utils.d.ts +0 -4
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/types.d.ts +0 -37
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/block/index.d.ts +0 -12
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/index.d.ts +0 -15
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/types.d.ts +0 -10
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/types.d.ts +0 -10
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/index.d.ts +0 -5
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +0 -26
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/index.d.ts +0 -10
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -8
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +0 -10
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +0 -8
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +0 -12
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/index.d.ts +0 -16
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +0 -9
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/types.d.ts +0 -86
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +0 -300
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +0 -13
- package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +0 -4
- package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +0 -6
- package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/index.d.ts +0 -5
- package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/types.d.ts +0 -7
- package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +0 -5
- package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +0 -16
- package/dist/types-ts4.0/view/FlexibleCard/components/container/index.d.ts +0 -16
- package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/index.d.ts +0 -10
- package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/types.d.ts +0 -12
- package/dist/types-ts4.0/view/FlexibleCard/components/container/types.d.ts +0 -25
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -12
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/types.d.ts +0 -21
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/index.d.ts +0 -18
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/types.d.ts +0 -17
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/index.d.ts +0 -12
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/types.d.ts +0 -16
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/types.d.ts +0 -27
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/index.d.ts +0 -129
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/types.d.ts +0 -35
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/types.d.ts +0 -13
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/types.d.ts +0 -17
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/index.d.ts +0 -11
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/types.d.ts +0 -17
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/types.d.ts +0 -24
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/utils.d.ts +0 -3
- package/dist/types-ts4.0/view/FlexibleCard/components/types.d.ts +0 -6
- package/dist/types-ts4.0/view/FlexibleCard/components/utils.d.ts +0 -15
- package/dist/types-ts4.0/view/FlexibleCard/index.d.ts +0 -10
- package/dist/types-ts4.0/view/FlexibleCard/types.d.ts +0 -113
- package/dist/types-ts4.0/view/FlexibleCard/utils.d.ts +0 -7
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardComponent.d.ts +0 -4
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardContent.d.ts +0 -9
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardLoadingView.d.ts +0 -4
- package/dist/types-ts4.0/view/HoverCard/components/SnippetOrPreview.d.ts +0 -4
- package/dist/types-ts4.0/view/HoverCard/index.d.ts +0 -3
- package/dist/types-ts4.0/view/HoverCard/styled.d.ts +0 -12
- package/dist/types-ts4.0/view/HoverCard/types.d.ts +0 -45
- package/dist/types-ts4.0/view/HoverCard/utils.d.ts +0 -3
- package/dist/types-ts4.0/view/InlineCard/ErroredView/index.d.ts +0 -21
- package/dist/types-ts4.0/view/InlineCard/ForbiddenView/index.d.ts +0 -25
- package/dist/types-ts4.0/view/InlineCard/Frame/index.d.ts +0 -16
- package/dist/types-ts4.0/view/InlineCard/Frame/styled.d.ts +0 -8
- package/dist/types-ts4.0/view/InlineCard/Icon.d.ts +0 -4
- package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/index.d.ts +0 -19
- package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -13
- package/dist/types-ts4.0/view/InlineCard/ResolvedView/index.d.ts +0 -30
- package/dist/types-ts4.0/view/InlineCard/ResolvingView/index.d.ts +0 -18
- package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +0 -14
- package/dist/types-ts4.0/view/InlineCard/UnauthorisedView/index.d.ts +0 -20
- package/dist/types-ts4.0/view/InlineCard/index.d.ts +0 -9
- package/dist/types-ts4.0/view/InlineCard/styled.d.ts +0 -9
- package/dist/types-ts4.0/view/InlineCard/types.d.ts +0 -21
- package/dist/types-ts4.0/view/LinkView/index.d.ts +0 -8
- package/dist/types-ts4.0/view/SmartLinkEvents/useSmartLinkEvents.d.ts +0 -2
- package/dist/types-ts4.0/view/__mocks__/intersection-observer.d.ts +0 -26
- package/dist/types-ts4.0/view/__mocks__/intersection-observer.mock.d.ts +0 -12
- package/dist/types-ts4.0/view/common/Byline.d.ts +0 -10
- package/dist/types-ts4.0/view/common/Icon.d.ts +0 -11
- package/dist/types-ts4.0/view/common/Metadata.d.ts +0 -10
- package/dist/types-ts4.0/view/common/MetadataList.d.ts +0 -9
- package/dist/types-ts4.0/view/common/utils.d.ts +0 -5
- package/dist/types-ts4.0/view/types.d.ts +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 23.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6533e448c53`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6533e448c53) - [ux] Embed: Update unauthorised view text messages and use provider image if available
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 23.3.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`be7ac1e0d9b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be7ac1e0d9b) - Add `hideRetry` optional prop to TitleBlock element to allow customers to optout from any retry buttons to be shown (like "connect to preview" or "Can't find link" or "Restricted link, try another account")
|
|
15
|
+
|
|
3
16
|
## 23.2.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/cjs/constants.js
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SmartLinkWidth = exports.SmartLinkTheme = exports.SmartLinkStatus = exports.SmartLinkSize = exports.SmartLinkPosition = exports.SmartLinkDirection = exports.SmartLinkAlignment = exports.MediaType = exports.IconType = exports.ElementName = exports.ActionName = void 0;
|
|
7
|
-
|
|
6
|
+
exports.SmartLinkWidth = exports.SmartLinkTheme = exports.SmartLinkStatus = exports.SmartLinkSize = exports.SmartLinkPosition = exports.SmartLinkDirection = exports.SmartLinkAlignment = exports.MediaType = exports.IconType = exports.ElementName = exports.CONTENT_URL_SECURITY_AND_PERMISSIONS = exports.ActionName = void 0;
|
|
7
|
+
var CONTENT_URL_SECURITY_AND_PERMISSIONS = 'https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links';
|
|
8
8
|
/**
|
|
9
9
|
* The alignment of Flexible UI component.
|
|
10
10
|
*/
|
|
11
|
+
|
|
12
|
+
exports.CONTENT_URL_SECURITY_AND_PERMISSIONS = CONTENT_URL_SECURITY_AND_PERMISSIONS;
|
|
11
13
|
var SmartLinkAlignment;
|
|
12
14
|
/**
|
|
13
15
|
* The direction of Flexible UI components. It establish the main-axis
|
package/dist/cjs/messages.js
CHANGED
|
@@ -78,6 +78,16 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
78
78
|
defaultMessage: 'To show a preview of this link, connect your {context} account.',
|
|
79
79
|
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view. Displayed in byline.'
|
|
80
80
|
},
|
|
81
|
+
connect_unauthorised_account_action: {
|
|
82
|
+
id: 'fabric.linking.connect_unauthorised_account_action',
|
|
83
|
+
defaultMessage: 'Connect to {context}',
|
|
84
|
+
description: 'Shown on a button to connect user external account to their Atlassian account.'
|
|
85
|
+
},
|
|
86
|
+
connect_unauthorised_account_description: {
|
|
87
|
+
id: 'fabric.linking.connect_unauthorised_account_description',
|
|
88
|
+
defaultMessage: 'Connect {context} to Atlassian to view more details from your work and collaboration from one place.',
|
|
89
|
+
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view.'
|
|
90
|
+
},
|
|
81
91
|
could_not_load_link: {
|
|
82
92
|
id: 'fabric.linking.couldnt_load_link',
|
|
83
93
|
defaultMessage: "We couldn't load this link for an unknown reason.",
|
|
@@ -133,6 +143,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
133
143
|
defaultMessage: 'Join {context} to view this issue',
|
|
134
144
|
description: 'Allows the user join the product or service immediately'
|
|
135
145
|
},
|
|
146
|
+
learn_more_about_smart_links_security: {
|
|
147
|
+
id: 'fabric.linking.learn_more_about_smart_links_security',
|
|
148
|
+
defaultMessage: 'Learn more about smart link security and permissions.',
|
|
149
|
+
description: 'An anchor link to redirect user to a page about smart link security and permissions.'
|
|
150
|
+
},
|
|
136
151
|
loading: {
|
|
137
152
|
id: 'fabric.linking.loading',
|
|
138
153
|
defaultMessage: 'Loading...',
|
package/dist/cjs/version.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.UnauthorisedImage = exports.NotFoundImage = exports.LockImage = void 0;
|
|
7
7
|
var CDN_BASE_URL = 'https://smart-links-cdn.us-east-1.prod.public.atl-paas.net';
|
|
8
8
|
var LockImage = "".concat(CDN_BASE_URL, "/lock.svg");
|
|
9
9
|
exports.LockImage = LockImage;
|
|
10
|
-
var CelebrationImage = "".concat(CDN_BASE_URL, "/celebration.svg");
|
|
11
|
-
exports.CelebrationImage = CelebrationImage;
|
|
12
10
|
var NotFoundImage = "".concat(CDN_BASE_URL, "/not_found.svg");
|
|
13
|
-
exports.NotFoundImage = NotFoundImage;
|
|
11
|
+
exports.NotFoundImage = NotFoundImage;
|
|
12
|
+
var UnauthorisedImage = "".concat(CDN_BASE_URL, "/unauth.svg");
|
|
13
|
+
exports.UnauthorisedImage = UnauthorisedImage;
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _UnresolvedView = require("./UnresolvedView");
|
|
13
13
|
|
|
14
|
-
var _constants = require("
|
|
14
|
+
var _constants = require("../constants");
|
|
15
15
|
|
|
16
16
|
var _ExpandedFrame = require("../components/ExpandedFrame");
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _UnresolvedView = require("./UnresolvedView");
|
|
13
13
|
|
|
14
|
-
var _constants = require("
|
|
14
|
+
var _constants = require("../constants");
|
|
15
15
|
|
|
16
16
|
var _ExpandedFrame = require("../components/ExpandedFrame");
|
|
17
17
|
|
|
@@ -7,17 +7,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.EmbedCardUnauthorisedView = void 0;
|
|
9
9
|
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
10
12
|
var _react = _interopRequireDefault(require("react"));
|
|
11
13
|
|
|
14
|
+
var _reactIntlNext = require("react-intl-next");
|
|
15
|
+
|
|
12
16
|
var _UnresolvedView = require("./UnresolvedView");
|
|
13
17
|
|
|
14
|
-
var _constants = require("
|
|
18
|
+
var _constants = require("../constants");
|
|
15
19
|
|
|
16
20
|
var _ExpandedFrame = require("../components/ExpandedFrame");
|
|
17
21
|
|
|
18
22
|
var _ImageIcon = require("../components/ImageIcon");
|
|
19
23
|
|
|
24
|
+
var _messages = require("../../../messages");
|
|
25
|
+
|
|
26
|
+
var _constants2 = require("../../../constants");
|
|
27
|
+
|
|
20
28
|
var EmbedCardUnauthorisedView = function EmbedCardUnauthorisedView(_ref) {
|
|
29
|
+
var _context$image;
|
|
30
|
+
|
|
21
31
|
var link = _ref.link,
|
|
22
32
|
context = _ref.context,
|
|
23
33
|
isSelected = _ref.isSelected,
|
|
@@ -41,18 +51,26 @@ var EmbedCardUnauthorisedView = function EmbedCardUnauthorisedView(_ref) {
|
|
|
41
51
|
onClick: onClick,
|
|
42
52
|
testId: testId
|
|
43
53
|
}, /*#__PURE__*/_react.default.createElement(_UnresolvedView.EmbedCardUnresolvedView, {
|
|
44
|
-
image: _constants.
|
|
54
|
+
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : _constants.UnauthorisedImage,
|
|
45
55
|
title: "connect_link_account_card_name",
|
|
46
|
-
description: "
|
|
56
|
+
description: "connect_unauthorised_account_description",
|
|
47
57
|
context: context && context.text,
|
|
48
58
|
button: {
|
|
49
59
|
appearance: 'primary',
|
|
50
|
-
text: '
|
|
60
|
+
text: 'connect_unauthorised_account_action',
|
|
51
61
|
testId: 'connect-account'
|
|
52
62
|
},
|
|
53
63
|
onClick: onAuthorise,
|
|
54
64
|
testId: testId
|
|
55
|
-
})
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_unauthorised_account_description, {
|
|
66
|
+
values: {
|
|
67
|
+
context: context === null || context === void 0 ? void 0 : context.text
|
|
68
|
+
}
|
|
69
|
+
})), ' ', /*#__PURE__*/_react.default.createElement("a", {
|
|
70
|
+
href: _constants2.CONTENT_URL_SECURITY_AND_PERMISSIONS,
|
|
71
|
+
target: "_blank",
|
|
72
|
+
"data-testid": "".concat(testId, "-learn-more")
|
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.learn_more_about_smart_links_security))));
|
|
56
74
|
};
|
|
57
75
|
|
|
58
76
|
exports.EmbedCardUnauthorisedView = EmbedCardUnauthorisedView;
|
|
@@ -29,7 +29,8 @@ var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
29
29
|
button = _ref.button,
|
|
30
30
|
context = _ref.context,
|
|
31
31
|
onClick = _ref.onClick,
|
|
32
|
-
testId = _ref.testId
|
|
32
|
+
testId = _ref.testId,
|
|
33
|
+
children = _ref.children;
|
|
33
34
|
return (0, _react.jsx)("div", {
|
|
34
35
|
css: {
|
|
35
36
|
display: 'flex',
|
|
@@ -45,14 +46,16 @@ var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
45
46
|
css: {
|
|
46
47
|
height: (0, _utils.gs)(14),
|
|
47
48
|
marginBottom: (0, _utils.gs)(4)
|
|
48
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"data-testid": "".concat(testId, "-unresolved-image")
|
|
49
51
|
}), (0, _react.jsx)("span", {
|
|
50
52
|
css: {
|
|
51
53
|
fontSize: (0, _utils.gs)(2.5),
|
|
52
54
|
marginBottom: (0, _utils.gs)(1.5),
|
|
53
55
|
width: (0, _utils.gs)(50),
|
|
54
56
|
textAlign: 'center'
|
|
55
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"data-testid": "".concat(testId, "-unresolved-title")
|
|
56
59
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages[title], {
|
|
57
60
|
values: {
|
|
58
61
|
context: context
|
|
@@ -64,8 +67,9 @@ var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
64
67
|
textAlign: 'center',
|
|
65
68
|
width: (0, _utils.gs)(50),
|
|
66
69
|
lineHeight: (0, _utils.gs)(3)
|
|
67
|
-
}
|
|
68
|
-
|
|
70
|
+
},
|
|
71
|
+
"data-testid": "".concat(testId, "-unresolved-description")
|
|
72
|
+
}, children !== null && children !== void 0 ? children : (0, _react.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages[description], {
|
|
69
73
|
values: {
|
|
70
74
|
context: context
|
|
71
75
|
}
|
|
@@ -33,7 +33,7 @@ var _actionGroup = _interopRequireDefault(require("../action-group"));
|
|
|
33
33
|
|
|
34
34
|
var _elements = require("../../elements");
|
|
35
35
|
|
|
36
|
-
var _excluded = ["actions", "anchorTarget", "hideTitleTooltip", "maxLines", "onActionMenuOpenChange", "onClick", "overrideCss", "status", "showActionOnHover", "testId", "text", "theme"];
|
|
36
|
+
var _excluded = ["actions", "anchorTarget", "hideTitleTooltip", "maxLines", "onActionMenuOpenChange", "onClick", "overrideCss", "status", "showActionOnHover", "testId", "text", "theme", "hideRetry"];
|
|
37
37
|
|
|
38
38
|
var _templateObject, _templateObject2;
|
|
39
39
|
|
|
@@ -95,8 +95,13 @@ var TitleBlock = function TitleBlock(_ref) {
|
|
|
95
95
|
testId = _ref$testId === void 0 ? 'smart-block-title' : _ref$testId,
|
|
96
96
|
text = _ref.text,
|
|
97
97
|
theme = _ref.theme,
|
|
98
|
+
hideRetry = _ref.hideRetry,
|
|
98
99
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
99
100
|
|
|
101
|
+
if (hideRetry && props.retry) {
|
|
102
|
+
delete props.retry;
|
|
103
|
+
}
|
|
104
|
+
|
|
100
105
|
var _useState = (0, _react.useState)(false),
|
|
101
106
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
102
107
|
actionDropdownOpen = _useState2[0],
|
package/dist/es2019/constants.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export const CONTENT_URL_SECURITY_AND_PERMISSIONS = 'https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links';
|
|
1
2
|
/**
|
|
2
3
|
* The alignment of Flexible UI component.
|
|
3
4
|
*/
|
|
5
|
+
|
|
4
6
|
export let SmartLinkAlignment;
|
|
5
7
|
/**
|
|
6
8
|
* The direction of Flexible UI components. It establish the main-axis
|
package/dist/es2019/messages.js
CHANGED
|
@@ -70,6 +70,16 @@ export const messages = defineMessages({
|
|
|
70
70
|
defaultMessage: 'To show a preview of this link, connect your {context} account.',
|
|
71
71
|
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view. Displayed in byline.'
|
|
72
72
|
},
|
|
73
|
+
connect_unauthorised_account_action: {
|
|
74
|
+
id: 'fabric.linking.connect_unauthorised_account_action',
|
|
75
|
+
defaultMessage: 'Connect to {context}',
|
|
76
|
+
description: 'Shown on a button to connect user external account to their Atlassian account.'
|
|
77
|
+
},
|
|
78
|
+
connect_unauthorised_account_description: {
|
|
79
|
+
id: 'fabric.linking.connect_unauthorised_account_description',
|
|
80
|
+
defaultMessage: 'Connect {context} to Atlassian to view more details from your work and collaboration from one place.',
|
|
81
|
+
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view.'
|
|
82
|
+
},
|
|
73
83
|
could_not_load_link: {
|
|
74
84
|
id: 'fabric.linking.couldnt_load_link',
|
|
75
85
|
defaultMessage: "We couldn't load this link for an unknown reason.",
|
|
@@ -125,6 +135,11 @@ export const messages = defineMessages({
|
|
|
125
135
|
defaultMessage: 'Join {context} to view this issue',
|
|
126
136
|
description: 'Allows the user join the product or service immediately'
|
|
127
137
|
},
|
|
138
|
+
learn_more_about_smart_links_security: {
|
|
139
|
+
id: 'fabric.linking.learn_more_about_smart_links_security',
|
|
140
|
+
defaultMessage: 'Learn more about smart link security and permissions.',
|
|
141
|
+
description: 'An anchor link to redirect user to a page about smart link security and permissions.'
|
|
142
|
+
},
|
|
128
143
|
loading: {
|
|
129
144
|
id: 'fabric.linking.loading',
|
|
130
145
|
defaultMessage: 'Loading...',
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const CDN_BASE_URL = 'https://smart-links-cdn.us-east-1.prod.public.atl-paas.net';
|
|
2
2
|
export const LockImage = `${CDN_BASE_URL}/lock.svg`;
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
3
|
+
export const NotFoundImage = `${CDN_BASE_URL}/not_found.svg`;
|
|
4
|
+
export const UnauthorisedImage = `${CDN_BASE_URL}/unauth.svg`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EmbedCardUnresolvedView } from './UnresolvedView';
|
|
3
|
-
import { LockImage } from '
|
|
3
|
+
import { LockImage } from '../constants';
|
|
4
4
|
import { ExpandedFrame } from '../components/ExpandedFrame';
|
|
5
5
|
import { ImageIcon } from '../components/ImageIcon';
|
|
6
6
|
export const EmbedCardForbiddenView = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EmbedCardUnresolvedView } from './UnresolvedView';
|
|
3
|
-
import { NotFoundImage } from '
|
|
3
|
+
import { NotFoundImage } from '../constants';
|
|
4
4
|
import { ExpandedFrame } from '../components/ExpandedFrame';
|
|
5
5
|
import { ImageIcon } from '../components/ImageIcon';
|
|
6
6
|
export const EmbedCardNotFoundView = ({
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
2
4
|
import { EmbedCardUnresolvedView } from './UnresolvedView';
|
|
3
|
-
import {
|
|
5
|
+
import { UnauthorisedImage } from '../constants';
|
|
4
6
|
import { ExpandedFrame } from '../components/ExpandedFrame';
|
|
5
7
|
import { ImageIcon } from '../components/ImageIcon';
|
|
8
|
+
import { messages } from '../../../messages';
|
|
9
|
+
import { CONTENT_URL_SECURITY_AND_PERMISSIONS } from '../../../constants';
|
|
6
10
|
export const EmbedCardUnauthorisedView = ({
|
|
7
11
|
link,
|
|
8
12
|
context,
|
|
@@ -12,6 +16,8 @@ export const EmbedCardUnauthorisedView = ({
|
|
|
12
16
|
inheritDimensions,
|
|
13
17
|
onClick
|
|
14
18
|
}) => {
|
|
19
|
+
var _context$image;
|
|
20
|
+
|
|
15
21
|
const icon = context && context.icon && /*#__PURE__*/React.createElement(ImageIcon, {
|
|
16
22
|
src: typeof context.icon === 'string' ? context.icon : undefined
|
|
17
23
|
});
|
|
@@ -25,16 +31,24 @@ export const EmbedCardUnauthorisedView = ({
|
|
|
25
31
|
onClick: onClick,
|
|
26
32
|
testId: testId
|
|
27
33
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
28
|
-
image:
|
|
34
|
+
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : UnauthorisedImage,
|
|
29
35
|
title: "connect_link_account_card_name",
|
|
30
|
-
description: "
|
|
36
|
+
description: "connect_unauthorised_account_description",
|
|
31
37
|
context: context && context.text,
|
|
32
38
|
button: {
|
|
33
39
|
appearance: 'primary',
|
|
34
|
-
text: '
|
|
40
|
+
text: 'connect_unauthorised_account_action',
|
|
35
41
|
testId: 'connect-account'
|
|
36
42
|
},
|
|
37
43
|
onClick: onAuthorise,
|
|
38
44
|
testId: testId
|
|
39
|
-
}
|
|
45
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_unauthorised_account_description, {
|
|
46
|
+
values: {
|
|
47
|
+
context: context === null || context === void 0 ? void 0 : context.text
|
|
48
|
+
}
|
|
49
|
+
})), ' ', /*#__PURE__*/React.createElement("a", {
|
|
50
|
+
href: CONTENT_URL_SECURITY_AND_PERMISSIONS,
|
|
51
|
+
target: "_blank",
|
|
52
|
+
"data-testid": `${testId}-learn-more`
|
|
53
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.learn_more_about_smart_links_security))));
|
|
40
54
|
};
|
|
@@ -14,7 +14,8 @@ export const EmbedCardUnresolvedView = ({
|
|
|
14
14
|
button,
|
|
15
15
|
context,
|
|
16
16
|
onClick,
|
|
17
|
-
testId
|
|
17
|
+
testId,
|
|
18
|
+
children
|
|
18
19
|
}) => {
|
|
19
20
|
return jsx("div", {
|
|
20
21
|
css: {
|
|
@@ -31,14 +32,16 @@ export const EmbedCardUnresolvedView = ({
|
|
|
31
32
|
css: {
|
|
32
33
|
height: gridSize(14),
|
|
33
34
|
marginBottom: gridSize(4)
|
|
34
|
-
}
|
|
35
|
+
},
|
|
36
|
+
"data-testid": `${testId}-unresolved-image`
|
|
35
37
|
}), jsx("span", {
|
|
36
38
|
css: {
|
|
37
39
|
fontSize: gridSize(2.5),
|
|
38
40
|
marginBottom: gridSize(1.5),
|
|
39
41
|
width: gridSize(50),
|
|
40
42
|
textAlign: 'center'
|
|
41
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"data-testid": `${testId}-unresolved-title`
|
|
42
45
|
}, jsx(FormattedMessage, _extends({}, messages[title], {
|
|
43
46
|
values: {
|
|
44
47
|
context
|
|
@@ -50,8 +53,9 @@ export const EmbedCardUnresolvedView = ({
|
|
|
50
53
|
textAlign: 'center',
|
|
51
54
|
width: gridSize(50),
|
|
52
55
|
lineHeight: gridSize(3)
|
|
53
|
-
}
|
|
54
|
-
|
|
56
|
+
},
|
|
57
|
+
"data-testid": `${testId}-unresolved-description`
|
|
58
|
+
}, children !== null && children !== void 0 ? children : jsx(FormattedMessage, _extends({}, messages[description], {
|
|
55
59
|
values: {
|
|
56
60
|
context
|
|
57
61
|
}
|
|
@@ -68,8 +68,13 @@ const TitleBlock = ({
|
|
|
68
68
|
testId = 'smart-block-title',
|
|
69
69
|
text,
|
|
70
70
|
theme,
|
|
71
|
+
hideRetry,
|
|
71
72
|
...props
|
|
72
73
|
}) => {
|
|
74
|
+
if (hideRetry && props.retry) {
|
|
75
|
+
delete props.retry;
|
|
76
|
+
}
|
|
77
|
+
|
|
73
78
|
const [actionDropdownOpen, setActionDropdownOpen] = useState(false);
|
|
74
79
|
const onDropdownOpenChange = useCallback(isOpen => {
|
|
75
80
|
setActionDropdownOpen(isOpen);
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export var CONTENT_URL_SECURITY_AND_PERMISSIONS = 'https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links';
|
|
1
2
|
/**
|
|
2
3
|
* The alignment of Flexible UI component.
|
|
3
4
|
*/
|
|
5
|
+
|
|
4
6
|
export var SmartLinkAlignment;
|
|
5
7
|
/**
|
|
6
8
|
* The direction of Flexible UI components. It establish the main-axis
|
package/dist/esm/messages.js
CHANGED
|
@@ -70,6 +70,16 @@ export var messages = defineMessages({
|
|
|
70
70
|
defaultMessage: 'To show a preview of this link, connect your {context} account.',
|
|
71
71
|
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view. Displayed in byline.'
|
|
72
72
|
},
|
|
73
|
+
connect_unauthorised_account_action: {
|
|
74
|
+
id: 'fabric.linking.connect_unauthorised_account_action',
|
|
75
|
+
defaultMessage: 'Connect to {context}',
|
|
76
|
+
description: 'Shown on a button to connect user external account to their Atlassian account.'
|
|
77
|
+
},
|
|
78
|
+
connect_unauthorised_account_description: {
|
|
79
|
+
id: 'fabric.linking.connect_unauthorised_account_description',
|
|
80
|
+
defaultMessage: 'Connect {context} to Atlassian to view more details from your work and collaboration from one place.',
|
|
81
|
+
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view.'
|
|
82
|
+
},
|
|
73
83
|
could_not_load_link: {
|
|
74
84
|
id: 'fabric.linking.couldnt_load_link',
|
|
75
85
|
defaultMessage: "We couldn't load this link for an unknown reason.",
|
|
@@ -125,6 +135,11 @@ export var messages = defineMessages({
|
|
|
125
135
|
defaultMessage: 'Join {context} to view this issue',
|
|
126
136
|
description: 'Allows the user join the product or service immediately'
|
|
127
137
|
},
|
|
138
|
+
learn_more_about_smart_links_security: {
|
|
139
|
+
id: 'fabric.linking.learn_more_about_smart_links_security',
|
|
140
|
+
defaultMessage: 'Learn more about smart link security and permissions.',
|
|
141
|
+
description: 'An anchor link to redirect user to a page about smart link security and permissions.'
|
|
142
|
+
},
|
|
128
143
|
loading: {
|
|
129
144
|
id: 'fabric.linking.loading',
|
|
130
145
|
defaultMessage: 'Loading...',
|
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var CDN_BASE_URL = 'https://smart-links-cdn.us-east-1.prod.public.atl-paas.net';
|
|
2
2
|
export var LockImage = "".concat(CDN_BASE_URL, "/lock.svg");
|
|
3
|
-
export var
|
|
4
|
-
export var
|
|
3
|
+
export var NotFoundImage = "".concat(CDN_BASE_URL, "/not_found.svg");
|
|
4
|
+
export var UnauthorisedImage = "".concat(CDN_BASE_URL, "/unauth.svg");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EmbedCardUnresolvedView } from './UnresolvedView';
|
|
3
|
-
import { LockImage } from '
|
|
3
|
+
import { LockImage } from '../constants';
|
|
4
4
|
import { ExpandedFrame } from '../components/ExpandedFrame';
|
|
5
5
|
import { ImageIcon } from '../components/ImageIcon';
|
|
6
6
|
export var EmbedCardForbiddenView = function EmbedCardForbiddenView(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EmbedCardUnresolvedView } from './UnresolvedView';
|
|
3
|
-
import { NotFoundImage } from '
|
|
3
|
+
import { NotFoundImage } from '../constants';
|
|
4
4
|
import { ExpandedFrame } from '../components/ExpandedFrame';
|
|
5
5
|
import { ImageIcon } from '../components/ImageIcon';
|
|
6
6
|
export var EmbedCardNotFoundView = function EmbedCardNotFoundView(_ref) {
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
2
4
|
import { EmbedCardUnresolvedView } from './UnresolvedView';
|
|
3
|
-
import {
|
|
5
|
+
import { UnauthorisedImage } from '../constants';
|
|
4
6
|
import { ExpandedFrame } from '../components/ExpandedFrame';
|
|
5
7
|
import { ImageIcon } from '../components/ImageIcon';
|
|
8
|
+
import { messages } from '../../../messages';
|
|
9
|
+
import { CONTENT_URL_SECURITY_AND_PERMISSIONS } from '../../../constants';
|
|
6
10
|
export var EmbedCardUnauthorisedView = function EmbedCardUnauthorisedView(_ref) {
|
|
11
|
+
var _context$image;
|
|
12
|
+
|
|
7
13
|
var link = _ref.link,
|
|
8
14
|
context = _ref.context,
|
|
9
15
|
isSelected = _ref.isSelected,
|
|
@@ -25,16 +31,24 @@ export var EmbedCardUnauthorisedView = function EmbedCardUnauthorisedView(_ref)
|
|
|
25
31
|
onClick: onClick,
|
|
26
32
|
testId: testId
|
|
27
33
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
28
|
-
image:
|
|
34
|
+
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : UnauthorisedImage,
|
|
29
35
|
title: "connect_link_account_card_name",
|
|
30
|
-
description: "
|
|
36
|
+
description: "connect_unauthorised_account_description",
|
|
31
37
|
context: context && context.text,
|
|
32
38
|
button: {
|
|
33
39
|
appearance: 'primary',
|
|
34
|
-
text: '
|
|
40
|
+
text: 'connect_unauthorised_account_action',
|
|
35
41
|
testId: 'connect-account'
|
|
36
42
|
},
|
|
37
43
|
onClick: onAuthorise,
|
|
38
44
|
testId: testId
|
|
39
|
-
}
|
|
45
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_unauthorised_account_description, {
|
|
46
|
+
values: {
|
|
47
|
+
context: context === null || context === void 0 ? void 0 : context.text
|
|
48
|
+
}
|
|
49
|
+
})), ' ', /*#__PURE__*/React.createElement("a", {
|
|
50
|
+
href: CONTENT_URL_SECURITY_AND_PERMISSIONS,
|
|
51
|
+
target: "_blank",
|
|
52
|
+
"data-testid": "".concat(testId, "-learn-more")
|
|
53
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.learn_more_about_smart_links_security))));
|
|
40
54
|
};
|
|
@@ -14,7 +14,8 @@ export var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
14
14
|
button = _ref.button,
|
|
15
15
|
context = _ref.context,
|
|
16
16
|
onClick = _ref.onClick,
|
|
17
|
-
testId = _ref.testId
|
|
17
|
+
testId = _ref.testId,
|
|
18
|
+
children = _ref.children;
|
|
18
19
|
return jsx("div", {
|
|
19
20
|
css: {
|
|
20
21
|
display: 'flex',
|
|
@@ -30,14 +31,16 @@ export var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
30
31
|
css: {
|
|
31
32
|
height: gridSize(14),
|
|
32
33
|
marginBottom: gridSize(4)
|
|
33
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"data-testid": "".concat(testId, "-unresolved-image")
|
|
34
36
|
}), jsx("span", {
|
|
35
37
|
css: {
|
|
36
38
|
fontSize: gridSize(2.5),
|
|
37
39
|
marginBottom: gridSize(1.5),
|
|
38
40
|
width: gridSize(50),
|
|
39
41
|
textAlign: 'center'
|
|
40
|
-
}
|
|
42
|
+
},
|
|
43
|
+
"data-testid": "".concat(testId, "-unresolved-title")
|
|
41
44
|
}, jsx(FormattedMessage, _extends({}, messages[title], {
|
|
42
45
|
values: {
|
|
43
46
|
context: context
|
|
@@ -49,8 +52,9 @@ export var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
49
52
|
textAlign: 'center',
|
|
50
53
|
width: gridSize(50),
|
|
51
54
|
lineHeight: gridSize(3)
|
|
52
|
-
}
|
|
53
|
-
|
|
55
|
+
},
|
|
56
|
+
"data-testid": "".concat(testId, "-unresolved-description")
|
|
57
|
+
}, children !== null && children !== void 0 ? children : jsx(FormattedMessage, _extends({}, messages[description], {
|
|
54
58
|
values: {
|
|
55
59
|
context: context
|
|
56
60
|
}
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
|
-
var _excluded = ["actions", "anchorTarget", "hideTitleTooltip", "maxLines", "onActionMenuOpenChange", "onClick", "overrideCss", "status", "showActionOnHover", "testId", "text", "theme"];
|
|
5
|
+
var _excluded = ["actions", "anchorTarget", "hideTitleTooltip", "maxLines", "onActionMenuOpenChange", "onClick", "overrideCss", "status", "showActionOnHover", "testId", "text", "theme", "hideRetry"];
|
|
6
6
|
|
|
7
7
|
var _templateObject, _templateObject2;
|
|
8
8
|
|
|
@@ -69,8 +69,13 @@ var TitleBlock = function TitleBlock(_ref) {
|
|
|
69
69
|
testId = _ref$testId === void 0 ? 'smart-block-title' : _ref$testId,
|
|
70
70
|
text = _ref.text,
|
|
71
71
|
theme = _ref.theme,
|
|
72
|
+
hideRetry = _ref.hideRetry,
|
|
72
73
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
73
74
|
|
|
75
|
+
if (hideRetry && props.retry) {
|
|
76
|
+
delete props.retry;
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
var _useState = useState(false),
|
|
75
80
|
_useState2 = _slicedToArray(_useState, 2),
|
|
76
81
|
actionDropdownOpen = _useState2[0],
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export declare type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_description' | 'request_denied_description';
|
|
3
|
-
export declare type MessageKey = 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'could_not_load_link' | 'download' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'delete' | 'edit' | 'loading' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'preview' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'try_again' | 'try_another_account' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
|
|
3
|
+
export declare type MessageKey = 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'could_not_load_link' | 'download' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'delete' | 'edit' | 'learn_more_about_smart_links_security' | 'loading' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'preview' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'try_again' | 'try_another_account' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
|
|
4
4
|
declare type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|