@atlaskit/smart-card 22.2.0 → 22.2.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 +7 -0
- package/client/package.json +8 -1
- package/dist/cjs/state/helpers.js +2 -1
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +1 -5
- package/dist/es2019/state/helpers.js +2 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -5
- package/dist/esm/state/helpers.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +1 -4
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +2 -2
- package/dist/types-ts4.0/__fixtures__/flexible-ui-data-context.d.ts +3 -0
- package/dist/types-ts4.0/__tests_external__/index.d.ts +6 -0
- package/dist/types-ts4.0/__tests_external__/page-objects/BaseCard.d.ts +16 -0
- package/dist/types-ts4.0/__tests_external__/page-objects/BlockCard.d.ts +6 -0
- package/dist/types-ts4.0/__tests_external__/page-objects/EmbedCard.d.ts +6 -0
- package/dist/types-ts4.0/__tests_external__/page-objects/InlineCard.d.ts +6 -0
- package/dist/types-ts4.0/__tests_external__/test-cases/card.d.ts +3 -0
- package/dist/types-ts4.0/__tests_external__/test-cases/embed.d.ts +3 -0
- package/dist/types-ts4.0/__tests_external__/test-cases/inline.d.ts +3 -0
- package/dist/types-ts4.0/__tests_external__/test-cases/types.d.ts +5 -0
- package/dist/types-ts4.0/classNames.d.ts +11 -0
- package/dist/types-ts4.0/client/index.d.ts +1 -0
- package/dist/types-ts4.0/constants.d.ts +185 -0
- package/dist/types-ts4.0/extractors/block/index.d.ts +9 -0
- package/dist/types-ts4.0/extractors/block/types.d.ts +14 -0
- package/dist/types-ts4.0/extractors/common/__mocks__/jsonld.d.ts +232 -0
- package/dist/types-ts4.0/extractors/common/__mocks__/render.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/actions/extractActions.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/actions/extractPreviewAction.d.ts +9 -0
- package/dist/types-ts4.0/extractors/common/byline/extractByline.d.ts +3 -0
- package/dist/types-ts4.0/extractors/common/context/extractAccessContext.d.ts +7 -0
- package/dist/types-ts4.0/extractors/common/context/index.d.ts +1 -0
- package/dist/types-ts4.0/extractors/common/detail/extractCommentCount.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/detail/extractDownloadUrl.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/detail/extractProgrammingLanguage.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/detail/extractSubscriberCount.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/detail/index.d.ts +7 -0
- package/dist/types-ts4.0/extractors/common/detail/types.d.ts +5 -0
- package/dist/types-ts4.0/extractors/common/icon/extractFileFormat.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/icon/extractIcon.d.ts +14 -0
- package/dist/types-ts4.0/extractors/common/icon/extractIconFromDocument.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/icon/extractIconFromTask.d.ts +3 -0
- package/dist/types-ts4.0/extractors/common/icon/index.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/icon/priority.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/lozenge/extractLozenge.d.ts +3 -0
- package/dist/types-ts4.0/extractors/common/lozenge/extractState.d.ts +3 -0
- package/dist/types-ts4.0/extractors/common/lozenge/extractTag.d.ts +3 -0
- package/dist/types-ts4.0/extractors/common/lozenge/extractTaskStatus.d.ts +3 -0
- package/dist/types-ts4.0/extractors/common/lozenge/extractTaskType.d.ts +7 -0
- package/dist/types-ts4.0/extractors/common/lozenge/index.d.ts +5 -0
- package/dist/types-ts4.0/extractors/common/lozenge/types.d.ts +8 -0
- package/dist/types-ts4.0/extractors/common/lozenge/utils.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/meta/extractIsTrusted.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/primitives/extractSummary.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/primitives/extractTitleTextColor.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/primitives/extractVisitUrl.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/primitives/index.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/title-prefix/extractTitlePrefix.d.ts +5 -0
- package/dist/types-ts4.0/extractors/common/title-prefix/index.d.ts +1 -0
- package/dist/types-ts4.0/extractors/constants.d.ts +12 -0
- package/dist/types-ts4.0/extractors/embed/index.d.ts +3 -0
- package/dist/types-ts4.0/extractors/flexible/collaboratorGroup/index.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/extract-preview.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/extract-priority.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/icon/extract-document-type-icon.d.ts +3 -0
- package/dist/types-ts4.0/extractors/flexible/icon/extract-file-formatIcon.d.ts +3 -0
- package/dist/types-ts4.0/extractors/flexible/icon/extract-icon-renderer.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/icon/extract-jira-task-icon.d.ts +3 -0
- package/dist/types-ts4.0/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/icon/extract-provider-icon.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/icon/extract-url-icon.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/icon/index.d.ts +17 -0
- package/dist/types-ts4.0/extractors/flexible/icon/types.d.ts +6 -0
- package/dist/types-ts4.0/extractors/flexible/index.d.ts +5 -0
- package/dist/types-ts4.0/extractors/flexible/latest-commit/index.d.ts +2 -0
- package/dist/types-ts4.0/extractors/flexible/utils.d.ts +12 -0
- package/dist/types-ts4.0/extractors/hover/extractMetadata.d.ts +3 -0
- package/dist/types-ts4.0/extractors/index.d.ts +14 -0
- package/dist/types-ts4.0/extractors/inline/index.d.ts +6 -0
- package/dist/types-ts4.0/hooks.d.ts +2 -0
- package/dist/types-ts4.0/i18n/cs.d.ts +71 -0
- package/dist/types-ts4.0/i18n/da.d.ts +71 -0
- package/dist/types-ts4.0/i18n/de.d.ts +71 -0
- package/dist/types-ts4.0/i18n/en.d.ts +71 -0
- package/dist/types-ts4.0/i18n/en_GB.d.ts +71 -0
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +38 -0
- package/dist/types-ts4.0/i18n/es.d.ts +71 -0
- package/dist/types-ts4.0/i18n/et.d.ts +94 -0
- package/dist/types-ts4.0/i18n/fi.d.ts +71 -0
- package/dist/types-ts4.0/i18n/fr.d.ts +71 -0
- package/dist/types-ts4.0/i18n/hu.d.ts +71 -0
- package/dist/types-ts4.0/i18n/index.d.ts +35 -0
- package/dist/types-ts4.0/i18n/is.d.ts +70 -0
- package/dist/types-ts4.0/i18n/it.d.ts +71 -0
- package/dist/types-ts4.0/i18n/ja.d.ts +71 -0
- package/dist/types-ts4.0/i18n/ko.d.ts +71 -0
- package/dist/types-ts4.0/i18n/languages.d.ts +27 -0
- package/dist/types-ts4.0/i18n/nb.d.ts +71 -0
- package/dist/types-ts4.0/i18n/nl.d.ts +71 -0
- package/dist/types-ts4.0/i18n/pl.d.ts +71 -0
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +71 -0
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +94 -0
- package/dist/types-ts4.0/i18n/ro.d.ts +70 -0
- package/dist/types-ts4.0/i18n/ru.d.ts +71 -0
- package/dist/types-ts4.0/i18n/sk.d.ts +94 -0
- package/dist/types-ts4.0/i18n/sv.d.ts +71 -0
- package/dist/types-ts4.0/i18n/th.d.ts +71 -0
- package/dist/types-ts4.0/i18n/tr.d.ts +71 -0
- package/dist/types-ts4.0/i18n/uk.d.ts +71 -0
- package/dist/types-ts4.0/i18n/vi.d.ts +71 -0
- package/dist/types-ts4.0/i18n/zh.d.ts +71 -0
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +71 -0
- package/dist/types-ts4.0/in-product.d.ts +1 -0
- package/dist/types-ts4.0/index.d.ts +22 -0
- package/dist/types-ts4.0/messages.d.ts +8 -0
- package/dist/types-ts4.0/model/invoke-handler.d.ts +3 -0
- package/dist/types-ts4.0/model/invoke-opts.d.ts +17 -0
- package/dist/types-ts4.0/ssr.d.ts +6 -0
- package/dist/types-ts4.0/state/actions/constants.d.ts +6 -0
- package/dist/types-ts4.0/state/actions/index.d.ts +12 -0
- package/dist/types-ts4.0/state/actions/types.d.ts +2 -0
- package/dist/types-ts4.0/state/analytics/index.d.ts +3 -0
- package/dist/types-ts4.0/state/analytics/types.d.ts +9 -0
- package/dist/types-ts4.0/state/analytics/ufoExperiences.d.ts +7 -0
- package/dist/types-ts4.0/state/analytics/useSmartLinkAnalytics.d.ts +195 -0
- package/dist/types-ts4.0/state/config/index.d.ts +2 -0
- package/dist/types-ts4.0/state/flexible-ui-context/index.d.ts +8 -0
- package/dist/types-ts4.0/state/flexible-ui-context/types.d.ts +159 -0
- package/dist/types-ts4.0/state/helpers.d.ts +16 -0
- package/dist/types-ts4.0/state/hooks/index.d.ts +2 -0
- package/dist/types-ts4.0/state/hooks/usePrefetch.d.ts +1 -0
- package/dist/types-ts4.0/state/hooks/useSmartLink.d.ts +50 -0
- package/dist/types-ts4.0/state/hooks-external/useSmartLinkActions.d.ts +49 -0
- package/dist/types-ts4.0/state/hooks-external/useSmartLinkReload.d.ts +19 -0
- package/dist/types-ts4.0/state/index.d.ts +5 -0
- package/dist/types-ts4.0/state/reducers/types.d.ts +4 -0
- package/dist/types-ts4.0/state/renderers/index.d.ts +2 -0
- package/dist/types-ts4.0/state/store/index.d.ts +3 -0
- package/dist/types-ts4.0/state/types.d.ts +1 -0
- package/dist/types-ts4.0/types.d.ts +20 -0
- package/dist/types-ts4.0/utils/analytics/__mocks__/analytics.d.ts +2 -0
- package/dist/types-ts4.0/utils/analytics/analytics.d.ts +32 -0
- package/dist/types-ts4.0/utils/analytics/index.d.ts +4 -0
- package/dist/types-ts4.0/utils/analytics/types.d.ts +93 -0
- package/dist/types-ts4.0/utils/flexible.d.ts +5 -0
- package/dist/types-ts4.0/utils/index.d.ts +12 -0
- package/dist/types-ts4.0/utils/jsonld.d.ts +3 -0
- package/dist/types-ts4.0/utils/mocks.d.ts +74 -0
- package/dist/types-ts4.0/utils/performance.d.ts +8 -0
- package/dist/types-ts4.0/utils/test-utils.d.ts +4 -0
- package/dist/types-ts4.0/utils/token.d.ts +16 -0
- package/dist/types-ts4.0/utils/types.d.ts +14 -0
- package/dist/types-ts4.0/view/BlockCard/actions/AuthorizeAction.d.ts +2 -0
- package/dist/types-ts4.0/view/BlockCard/actions/DownloadAction.d.ts +8 -0
- package/dist/types-ts4.0/view/BlockCard/actions/ForbiddenAction.d.ts +2 -0
- package/dist/types-ts4.0/view/BlockCard/actions/PreviewAction.d.ts +32 -0
- package/dist/types-ts4.0/view/BlockCard/actions/RetryAction.d.ts +2 -0
- package/dist/types-ts4.0/view/BlockCard/actions/ViewAction.d.ts +8 -0
- package/dist/types-ts4.0/view/BlockCard/components/Action.d.ts +11 -0
- package/dist/types-ts4.0/view/BlockCard/components/ActionIcon.d.ts +12 -0
- package/dist/types-ts4.0/view/BlockCard/components/ActionList.d.ts +6 -0
- package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +13 -0
- package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +7 -0
- package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +7 -0
- package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +8 -0
- package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +5 -0
- package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +14 -0
- package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +7 -0
- package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +10 -0
- package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +6 -0
- package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +9 -0
- package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +6 -0
- package/dist/types-ts4.0/view/BlockCard/index.d.ts +14 -0
- package/dist/types-ts4.0/view/BlockCard/types.d.ts +25 -0
- package/dist/types-ts4.0/view/BlockCard/utils/constants.d.ts +3 -0
- package/dist/types-ts4.0/view/BlockCard/utils/handlers.d.ts +2 -0
- package/dist/types-ts4.0/view/BlockCard/views/ErroredView.d.ts +12 -0
- package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +21 -0
- package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +15 -0
- package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +32 -0
- package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +8 -0
- package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +17 -0
- package/dist/types-ts4.0/view/Card/index.d.ts +5 -0
- package/dist/types-ts4.0/view/Card/types.d.ts +37 -0
- package/dist/types-ts4.0/view/CardWithData/component.d.ts +5 -0
- package/dist/types-ts4.0/view/CardWithData/loader.d.ts +9 -0
- package/dist/types-ts4.0/view/CardWithData/types.d.ts +15 -0
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyFallback.d.ts +4 -0
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +3 -0
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.d.ts +3 -0
- package/dist/types-ts4.0/view/CardWithUrl/component-lazy/index.d.ts +3 -0
- package/dist/types-ts4.0/view/CardWithUrl/component.d.ts +3 -0
- package/dist/types-ts4.0/view/CardWithUrl/loader.d.ts +3 -0
- package/dist/types-ts4.0/view/CardWithUrl/types.d.ts +29 -0
- package/dist/types-ts4.0/view/EmbedCard/EmbedResizeMessageListener.d.ts +15 -0
- package/dist/types-ts4.0/view/EmbedCard/components/ExpandedFrame.d.ts +23 -0
- package/dist/types-ts4.0/view/EmbedCard/components/Frame.d.ts +7 -0
- package/dist/types-ts4.0/view/EmbedCard/components/ImageIcon.d.ts +9 -0
- package/dist/types-ts4.0/view/EmbedCard/components/styled.d.ts +45 -0
- package/dist/types-ts4.0/view/EmbedCard/index.d.ts +3 -0
- package/dist/types-ts4.0/view/EmbedCard/types.d.ts +46 -0
- package/dist/types-ts4.0/view/EmbedCard/views/ErroredView.d.ts +8 -0
- package/dist/types-ts4.0/view/EmbedCard/views/ForbiddenView.d.ts +13 -0
- package/dist/types-ts4.0/view/EmbedCard/views/NotFoundView.d.ts +11 -0
- package/dist/types-ts4.0/view/EmbedCard/views/ResolvedView.d.ts +27 -0
- package/dist/types-ts4.0/view/EmbedCard/views/UnauthorisedView.d.ts +12 -0
- package/dist/types-ts4.0/view/EmbedCard/views/UnresolvedView.d.ts +18 -0
- package/dist/types-ts4.0/view/EmbedModal/components/analytics/index.d.ts +5 -0
- package/dist/types-ts4.0/view/EmbedModal/components/analytics/types.d.ts +6 -0
- package/dist/types-ts4.0/view/EmbedModal/components/embed-content/index.d.ts +5 -0
- package/dist/types-ts4.0/view/EmbedModal/components/embed-content/types.d.ts +6 -0
- package/dist/types-ts4.0/view/EmbedModal/components/error-boundary/index.d.ts +4 -0
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/index.d.ts +4 -0
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/index.d.ts +4 -0
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/types.d.ts +9 -0
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/styled.d.ts +4 -0
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/types.d.ts +13 -0
- package/dist/types-ts4.0/view/EmbedModal/components/size-experiment/index.d.ts +7 -0
- package/dist/types-ts4.0/view/EmbedModal/components/size-experiment/types.d.ts +4 -0
- package/dist/types-ts4.0/view/EmbedModal/constants.d.ts +2 -0
- package/dist/types-ts4.0/view/EmbedModal/index.d.ts +6 -0
- package/dist/types-ts4.0/view/EmbedModal/types.d.ts +34 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/index.d.ts +5 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/types.d.ts +8 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/types.d.ts +8 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +5 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +7 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/index.d.ts +13 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/types.d.ts +48 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/index.d.ts +20 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/utils.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/types.d.ts +37 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/block/index.d.ts +12 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/index.d.ts +15 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/types.d.ts +10 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/types.d.ts +10 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/index.d.ts +5 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +26 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/index.d.ts +10 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/types.d.ts +8 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +10 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +8 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +12 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/index.d.ts +16 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +9 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/types.d.ts +86 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +293 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +13 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +6 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/index.d.ts +5 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/types.d.ts +7 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +5 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +16 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/container/index.d.ts +16 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/index.d.ts +10 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/types.d.ts +12 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/container/types.d.ts +25 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/index.d.ts +12 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/types.d.ts +21 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/index.d.ts +18 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/types.d.ts +17 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/index.d.ts +12 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/types.d.ts +16 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/types.d.ts +27 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/index.d.ts +124 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/types.d.ts +35 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/types.d.ts +13 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/types.d.ts +17 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/types.d.ts +17 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/types.d.ts +24 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/utils.d.ts +3 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/types.d.ts +6 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/utils.d.ts +15 -0
- package/dist/types-ts4.0/view/FlexibleCard/index.d.ts +10 -0
- package/dist/types-ts4.0/view/FlexibleCard/types.d.ts +113 -0
- package/dist/types-ts4.0/view/FlexibleCard/utils.d.ts +7 -0
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardComponent.d.ts +4 -0
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardContent.d.ts +9 -0
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardLoadingView.d.ts +4 -0
- package/dist/types-ts4.0/view/HoverCard/components/SnippetOrPreview.d.ts +4 -0
- package/dist/types-ts4.0/view/HoverCard/index.d.ts +3 -0
- package/dist/types-ts4.0/view/HoverCard/styled.d.ts +12 -0
- package/dist/types-ts4.0/view/HoverCard/types.d.ts +45 -0
- package/dist/types-ts4.0/view/HoverCard/utils.d.ts +3 -0
- package/dist/types-ts4.0/view/InlineCard/ErroredView/index.d.ts +21 -0
- package/dist/types-ts4.0/view/InlineCard/ForbiddenView/index.d.ts +25 -0
- package/dist/types-ts4.0/view/InlineCard/Frame/index.d.ts +16 -0
- package/dist/types-ts4.0/view/InlineCard/Frame/styled.d.ts +8 -0
- package/dist/types-ts4.0/view/InlineCard/Icon.d.ts +4 -0
- package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/index.d.ts +19 -0
- package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/styled.d.ts +13 -0
- package/dist/types-ts4.0/view/InlineCard/ResolvedView/index.d.ts +30 -0
- package/dist/types-ts4.0/view/InlineCard/ResolvingView/index.d.ts +18 -0
- package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +14 -0
- package/dist/types-ts4.0/view/InlineCard/UnauthorisedView/index.d.ts +20 -0
- package/dist/types-ts4.0/view/InlineCard/index.d.ts +9 -0
- package/dist/types-ts4.0/view/InlineCard/styled.d.ts +9 -0
- package/dist/types-ts4.0/view/InlineCard/types.d.ts +21 -0
- package/dist/types-ts4.0/view/LinkView/index.d.ts +8 -0
- package/dist/types-ts4.0/view/SmartLinkEvents/useSmartLinkEvents.d.ts +2 -0
- package/dist/types-ts4.0/view/__mocks__/intersection-observer.d.ts +26 -0
- package/dist/types-ts4.0/view/__mocks__/intersection-observer.mock.d.ts +12 -0
- package/dist/types-ts4.0/view/common/Byline.d.ts +8 -0
- package/dist/types-ts4.0/view/common/Icon.d.ts +9 -0
- package/dist/types-ts4.0/view/common/Metadata.d.ts +8 -0
- package/dist/types-ts4.0/view/common/MetadataList.d.ts +8 -0
- package/dist/types-ts4.0/view/common/Modal.d.ts +26 -0
- package/dist/types-ts4.0/view/common/ModalHeader.d.ts +17 -0
- package/dist/types-ts4.0/view/common/utils.d.ts +5 -0
- package/dist/types-ts4.0/view/types.d.ts +29 -0
- package/hooks/package.json +8 -1
- package/in-product/package.json +8 -1
- package/package.json +13 -6
- package/report.api.md +341 -738
- package/ssr/package.json +8 -1
- package/types/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 22.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 22.2.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/client/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/client/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/client/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/client/index.d.ts"
|
|
7
|
+
"types": "../dist/types/client/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/client/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|
|
@@ -93,7 +93,8 @@ exports.isAccessible = isAccessible;
|
|
|
93
93
|
var isVisible = function isVisible(_ref2) {
|
|
94
94
|
var visibility = _ref2.meta.visibility;
|
|
95
95
|
return visibility === 'restricted' || visibility === 'public';
|
|
96
|
-
};
|
|
96
|
+
}; // Be aware, this is a copy of a function in link-provider/src/helpers
|
|
97
|
+
|
|
97
98
|
|
|
98
99
|
exports.isVisible = isVisible;
|
|
99
100
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
11
|
|
|
14
12
|
var _core = require("@emotion/core");
|
|
@@ -33,9 +31,7 @@ var EmbedContent = function EmbedContent(_ref) {
|
|
|
33
31
|
src: src,
|
|
34
32
|
'data-testid': "".concat(testId, "-embed")
|
|
35
33
|
};
|
|
36
|
-
return
|
|
37
|
-
src: src
|
|
38
|
-
}, props)) : (0, _core.jsx)("iframe", props);
|
|
34
|
+
return (0, _core.jsx)("iframe", props);
|
|
39
35
|
};
|
|
40
36
|
|
|
41
37
|
var _default = EmbedContent;
|
|
@@ -55,7 +55,8 @@ export const isVisible = ({
|
|
|
55
55
|
meta: {
|
|
56
56
|
visibility
|
|
57
57
|
}
|
|
58
|
-
}) => visibility === 'restricted' || visibility === 'public';
|
|
58
|
+
}) => visibility === 'restricted' || visibility === 'public'; // Be aware, this is a copy of a function in link-provider/src/helpers
|
|
59
|
+
|
|
59
60
|
export const getStatus = ({
|
|
60
61
|
meta
|
|
61
62
|
}) => {
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
import { css, jsx } from '@emotion/core';
|
|
5
3
|
import { getIframeSandboxAttribute } from '../../../../utils';
|
|
@@ -23,9 +21,7 @@ const EmbedContent = ({
|
|
|
23
21
|
src,
|
|
24
22
|
'data-testid': `${testId}-embed`
|
|
25
23
|
};
|
|
26
|
-
return
|
|
27
|
-
src: src
|
|
28
|
-
}, props)) : jsx("iframe", props);
|
|
24
|
+
return jsx("iframe", props);
|
|
29
25
|
};
|
|
30
26
|
|
|
31
27
|
export default EmbedContent;
|
|
@@ -55,7 +55,8 @@ export var isAccessible = function isAccessible(_ref) {
|
|
|
55
55
|
export var isVisible = function isVisible(_ref2) {
|
|
56
56
|
var visibility = _ref2.meta.visibility;
|
|
57
57
|
return visibility === 'restricted' || visibility === 'public';
|
|
58
|
-
};
|
|
58
|
+
}; // Be aware, this is a copy of a function in link-provider/src/helpers
|
|
59
|
+
|
|
59
60
|
export var getStatus = function getStatus(_ref3) {
|
|
60
61
|
var meta = _ref3.meta;
|
|
61
62
|
var access = meta.access,
|
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
2
|
|
|
4
3
|
var _templateObject;
|
|
@@ -22,9 +21,7 @@ var EmbedContent = function EmbedContent(_ref) {
|
|
|
22
21
|
src: src,
|
|
23
22
|
'data-testid': "".concat(testId, "-embed")
|
|
24
23
|
};
|
|
25
|
-
return
|
|
26
|
-
src: src
|
|
27
|
-
}, props)) : jsx("iframe", props);
|
|
24
|
+
return jsx("iframe", props);
|
|
28
25
|
};
|
|
29
26
|
|
|
30
27
|
export default EmbedContent;
|
|
@@ -142,7 +142,7 @@ export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: {
|
|
|
142
142
|
};
|
|
143
143
|
'@context': JsonLd.Primitives.Context;
|
|
144
144
|
'@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
|
|
145
|
-
'schema:potentialAction'?: import("schema-dts").
|
|
145
|
+
'schema:potentialAction'?: import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction | (import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction)[] | undefined;
|
|
146
146
|
'atlassian:downloadUrl'?: string | undefined;
|
|
147
147
|
'atlassian:visitUrl'?: string | undefined;
|
|
148
148
|
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
@@ -188,7 +188,7 @@ export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: {
|
|
|
188
188
|
'atlassian:latestCommit': string;
|
|
189
189
|
'@context': JsonLd.Primitives.Context;
|
|
190
190
|
'@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
|
|
191
|
-
'schema:potentialAction'?: import("schema-dts").
|
|
191
|
+
'schema:potentialAction'?: import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction | (import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction)[] | undefined;
|
|
192
192
|
'atlassian:downloadUrl'?: string | undefined;
|
|
193
193
|
'atlassian:visitUrl'?: string | undefined;
|
|
194
194
|
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { InlineCardPageObject } from './page-objects/InlineCard';
|
|
2
|
+
export { BlockCardPageObject } from './page-objects/BlockCard';
|
|
3
|
+
export { EmbedCardPageObject } from './page-objects/EmbedCard';
|
|
4
|
+
export { inlineSmartLinkRendersTestCase } from './test-cases/inline';
|
|
5
|
+
export { blockSmartLinkRendersTestCase } from './test-cases/card';
|
|
6
|
+
export { embedSmartLinkRendersTestCase } from './test-cases/embed';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="cypress" />
|
|
2
|
+
import { InProductTestPageObject, CypressType } from '@atlaskit/in-product-testing';
|
|
3
|
+
import { CardType, CardAppearance } from '@atlaskit/linking-common';
|
|
4
|
+
export declare class BaseCardPageObject extends InProductTestPageObject {
|
|
5
|
+
protected cy: CypressType;
|
|
6
|
+
protected appearance: CardAppearance;
|
|
7
|
+
protected constructor(cy: CypressType, appearance: CardAppearance);
|
|
8
|
+
private static CARD_TIMEOUT;
|
|
9
|
+
private _toSelector;
|
|
10
|
+
expectCardReady(numOfCards?: number, status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
11
|
+
expectCardNotExists(status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
12
|
+
findCardNth(nth?: number, status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
13
|
+
assertHrefRendered(url: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
14
|
+
assertHrefNotRendered(url: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
15
|
+
click(status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { contentFooterClassName } from './view/BlockCard/components/ContentFooter';
|
|
2
|
+
export { metadataListClassName } from './view/common/MetadataList';
|
|
3
|
+
export { blockCardResolvingViewClassName } from './view/BlockCard/views/ResolvingView';
|
|
4
|
+
export { blockCardResolvedViewClassName, blockCardResolvedViewByClassName, } from './view/BlockCard/views/ResolvedView';
|
|
5
|
+
export { blockCardForbiddenViewClassName, blockCardForbiddenViewLinkClassName, } from './view/BlockCard/views/ForbiddenView';
|
|
6
|
+
export { blockCardIconImageClassName } from './view/common/Icon';
|
|
7
|
+
export { blockCardContentClassName } from './view/BlockCard/components/Content';
|
|
8
|
+
export { blockCardContentHeaderClassName } from './view/BlockCard/components/ContentHeader';
|
|
9
|
+
export { blockCardContentHeaderNameClassName } from './view/BlockCard/components/Name';
|
|
10
|
+
export { blockCardNotFoundViewClassName } from './view/BlockCard/views/NotFoundView';
|
|
11
|
+
export { blockCardErroredViewClassName } from './view/BlockCard/views/ErroredView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CardClient as default } from '@atlaskit/link-provider';
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The alignment of Flexible UI component.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SmartLinkAlignment {
|
|
5
|
+
Left = "left",
|
|
6
|
+
Right = "right"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The direction of Flexible UI components. It establish the main-axis
|
|
10
|
+
* or how the child components laid out inside the parent component.
|
|
11
|
+
* Similar to flex's flex-direction concept.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum SmartLinkDirection {
|
|
14
|
+
Horizontal = "horizontal",
|
|
15
|
+
Vertical = "vertical"
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The positioning of the component within the parent component.
|
|
19
|
+
* Similar to flex's align-items or align-self concept.
|
|
20
|
+
*/
|
|
21
|
+
export declare enum SmartLinkPosition {
|
|
22
|
+
Top = "top",
|
|
23
|
+
Center = "center"
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The sizing options of the Flexible UI component. Every component
|
|
27
|
+
* has or inherits the sizing props. Implementation varies
|
|
28
|
+
* as per component.
|
|
29
|
+
*/
|
|
30
|
+
export declare enum SmartLinkSize {
|
|
31
|
+
XLarge = "xlarge",
|
|
32
|
+
Large = "large",
|
|
33
|
+
Medium = "medium",
|
|
34
|
+
Small = "small"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Smart Links link request status
|
|
38
|
+
*/
|
|
39
|
+
export declare enum SmartLinkStatus {
|
|
40
|
+
Pending = "pending",
|
|
41
|
+
Resolving = "resolving",
|
|
42
|
+
Resolved = "resolved",
|
|
43
|
+
Forbidden = "forbidden",
|
|
44
|
+
Errored = "errored",
|
|
45
|
+
NotFound = "not_found",
|
|
46
|
+
Unauthorized = "unauthorized",
|
|
47
|
+
Fallback = "fallback"
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Flexible UI theme available on the Card level.
|
|
51
|
+
* This determine the styling of the link.
|
|
52
|
+
*/
|
|
53
|
+
export declare enum SmartLinkTheme {
|
|
54
|
+
Black = "black",
|
|
55
|
+
Link = "link"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Determines whether the container size will fit to the content
|
|
59
|
+
* or expand to the available width or the parent component.
|
|
60
|
+
* Similar to flex's flex-grow concept.
|
|
61
|
+
*/
|
|
62
|
+
export declare enum SmartLinkWidth {
|
|
63
|
+
FitToContent = "fit-to-content",
|
|
64
|
+
Flexible = "flexible"
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Flexible UI element name - each reflecting the link data its represented.
|
|
68
|
+
* When adding an element...
|
|
69
|
+
* 1) Create base element if it doesn't already exist.
|
|
70
|
+
* Base element are inside src/view/FlexibleCard/components/elements.
|
|
71
|
+
* E.g. Badge, DateTime, Icon, Lozenge, etc.
|
|
72
|
+
* 2) Update FlexibleUiContext with the new prop for data representing
|
|
73
|
+
* the element, preferably with the same name as the element itself.
|
|
74
|
+
* (src/state/flexible-ui-context/types.ts)
|
|
75
|
+
* 3) Update Flexible UI extractor (src/extractors/flexible/index.ts)
|
|
76
|
+
* 4) Set base element and data mapping
|
|
77
|
+
* (src/view/FlexibleCard/components/elements/utils.tsx)
|
|
78
|
+
* 5) Create element. (src/view/FlexibleCard/components/elements/index.ts)
|
|
79
|
+
* 6) Update element ElementDisplaySchema for inline/block display
|
|
80
|
+
* (src/view/FlexibleCard/components/blocks/utils.tsx)
|
|
81
|
+
*/
|
|
82
|
+
export declare enum ElementName {
|
|
83
|
+
AuthorGroup = "AuthorGroup",
|
|
84
|
+
CollaboratorGroup = "CollaboratorGroup",
|
|
85
|
+
CommentCount = "CommentCount",
|
|
86
|
+
CreatedBy = "CreatedBy",
|
|
87
|
+
CreatedOn = "CreatedOn",
|
|
88
|
+
DueOn = "DueOn",
|
|
89
|
+
LinkIcon = "LinkIcon",
|
|
90
|
+
ModifiedBy = "ModifiedBy",
|
|
91
|
+
ModifiedOn = "ModifiedOn",
|
|
92
|
+
Preview = "Preview",
|
|
93
|
+
Priority = "Priority",
|
|
94
|
+
ProgrammingLanguage = "ProgrammingLanguage",
|
|
95
|
+
Provider = "Provider",
|
|
96
|
+
ReactCount = "ReactCount",
|
|
97
|
+
Snippet = "Snippet",
|
|
98
|
+
SourceBranch = "SourceBranch",
|
|
99
|
+
State = "State",
|
|
100
|
+
SubscriberCount = "SubscriberCount",
|
|
101
|
+
TargetBranch = "TargetBranch",
|
|
102
|
+
Title = "Title",
|
|
103
|
+
ViewCount = "ViewCount",
|
|
104
|
+
VoteCount = "VoteCount",
|
|
105
|
+
LatestCommit = "LatestCommit"
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Flexible UI action (button)
|
|
109
|
+
*/
|
|
110
|
+
export declare enum ActionName {
|
|
111
|
+
DeleteAction = "DeleteAction",
|
|
112
|
+
EditAction = "EditAction",
|
|
113
|
+
CustomAction = "CustomAction"
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Flexible UI icons - each mapped to AK icons.
|
|
117
|
+
*/
|
|
118
|
+
export declare enum IconType {
|
|
119
|
+
Archive = "FileType:Archive",
|
|
120
|
+
Audio = "FileType:Audio",
|
|
121
|
+
Blog = "FileType:Blog",
|
|
122
|
+
Code = "FileType:Code",
|
|
123
|
+
Document = "FileType:Document",
|
|
124
|
+
Executable = "FileType:Executable",
|
|
125
|
+
File = "FileType:File",
|
|
126
|
+
Folder = "FileType:Folder",
|
|
127
|
+
Generic = "FileType:Generic",
|
|
128
|
+
GIF = "FileType:GIF",
|
|
129
|
+
GoogleDocs = "FileType:GoogleDocs",
|
|
130
|
+
GoogleForms = "FileType:GoogleForms",
|
|
131
|
+
GoogleSheets = "FileType:GoogleSheets",
|
|
132
|
+
GoogleSlides = "FileType:GoogleSlides",
|
|
133
|
+
Image = "FileType.Image",
|
|
134
|
+
MSExcel = "FileType:Excel",
|
|
135
|
+
MSPowerpoint = "FileType:Powerpoint",
|
|
136
|
+
MSWord = "FileType:WordDocument",
|
|
137
|
+
PDF = "FileType:PDF",
|
|
138
|
+
Presentation = "FileType:Presentation",
|
|
139
|
+
Sketch = "FileType:Sketch",
|
|
140
|
+
Spreadsheet = "FileType:Spreadsheet",
|
|
141
|
+
Template = "FileType:Template",
|
|
142
|
+
Video = "FileType:Video",
|
|
143
|
+
Branch = "BitBucket:Branch",
|
|
144
|
+
Commit = "BitBucket:Commit",
|
|
145
|
+
Project = "BitBucket:Project",
|
|
146
|
+
PullRequest = "BitBucket:PullRequest",
|
|
147
|
+
Repo = "BitBucket:Repo",
|
|
148
|
+
Bug = "Jira:Bug",
|
|
149
|
+
Change = "Jira:Change",
|
|
150
|
+
Epic = "Jira:Epic",
|
|
151
|
+
Incident = "Jira:Incident",
|
|
152
|
+
Problem = "Jira:Problem",
|
|
153
|
+
ServiceRequest = "Jira:ServiceRequest",
|
|
154
|
+
Story = "Jira:Story",
|
|
155
|
+
SubTask = "Jira:SubTask",
|
|
156
|
+
Task = "Jira:Task",
|
|
157
|
+
Confluence = "Provider:Confluence",
|
|
158
|
+
Jira = "Provider:Jira",
|
|
159
|
+
Default = "Default",
|
|
160
|
+
Error = "Default:Error",
|
|
161
|
+
Forbidden = "Default:Forbidden",
|
|
162
|
+
Comment = "Badge:Comment",
|
|
163
|
+
View = "Badge:View",
|
|
164
|
+
React = "Badge:React",
|
|
165
|
+
Vote = "Badge:Vote",
|
|
166
|
+
PriorityBlocker = "Badge:PriorityBlocker",
|
|
167
|
+
PriorityCritical = "Badge:PriorityCritical",
|
|
168
|
+
PriorityHigh = "Badge:PriorityHigh",
|
|
169
|
+
PriorityHighest = "Badge:PriorityHighest",
|
|
170
|
+
PriorityLow = "Badge:PriorityLow",
|
|
171
|
+
PriorityLowest = "Badge:PriorityLowest",
|
|
172
|
+
PriorityMajor = "Badge:PriorityMajor",
|
|
173
|
+
PriorityMedium = "Badge:PriorityMedium",
|
|
174
|
+
PriorityMinor = "Badge:PriorityMinor",
|
|
175
|
+
PriorityTrivial = "Badge:PriorityTrivial",
|
|
176
|
+
PriorityUndefined = "Badge:PriorityUndefined",
|
|
177
|
+
ProgrammingLanguage = "Badge:ProgrammingLanguage",
|
|
178
|
+
Subscriber = "Badge:Subscriber"
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Type for Flexible UI's Media element
|
|
182
|
+
*/
|
|
183
|
+
export declare enum MediaType {
|
|
184
|
+
Image = "image"
|
|
185
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
+
import { LinkPerson } from '@atlaskit/linking-common/extractors';
|
|
4
|
+
import { ExtractBlockOpts } from './types';
|
|
5
|
+
import { BlockCardResolvedViewProps } from '../../view/BlockCard';
|
|
6
|
+
import { ActionProps } from '../../view/BlockCard/components/Action';
|
|
7
|
+
export declare const extractBlockActions: (props: BlockCardResolvedViewProps, jsonLd: JsonLd.Data.BaseData, opts?: ExtractBlockOpts | undefined, platform?: JsonLd.Primitives.Platforms | undefined) => ActionProps[];
|
|
8
|
+
export declare const extractBlockUsers: (jsonLd: JsonLd.Data.BaseData) => LinkPerson[] | undefined;
|
|
9
|
+
export declare const extractBlockProps: (jsonLd: JsonLd.Data.BaseData, meta?: JsonLd.Meta.BaseMeta | undefined, opts?: ExtractBlockOpts | undefined, renderers?: CardProviderRenderers | undefined, platform?: JsonLd.Primitives.Platforms | undefined) => BlockCardResolvedViewProps;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LinkingPlatformFeatureFlags } from '@atlaskit/linking-common';
|
|
2
|
+
import { InvokeHandler } from '../../model/invoke-handler';
|
|
3
|
+
import { AnalyticsFacade } from '../../state/analytics';
|
|
4
|
+
import { CardInnerAppearance } from '../../view/Card/types';
|
|
5
|
+
import { AnalyticsOrigin } from '../../utils/types';
|
|
6
|
+
export interface ExtractBlockOpts {
|
|
7
|
+
handleInvoke: InvokeHandler;
|
|
8
|
+
analytics: AnalyticsFacade;
|
|
9
|
+
origin?: AnalyticsOrigin;
|
|
10
|
+
extensionKey?: string;
|
|
11
|
+
featureFlags?: Partial<LinkingPlatformFeatureFlags>;
|
|
12
|
+
source?: CardInnerAppearance;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|