@atlaskit/smart-card 22.1.2 → 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 +13 -0
- package/client/package.json +8 -1
- package/dist/cjs/state/helpers.js +2 -1
- package/dist/cjs/state/hooks/usePrefetch.js +26 -14
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/CardWithUrl/loader.js +10 -10
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +1 -5
- package/dist/es2019/state/helpers.js +2 -1
- package/dist/es2019/state/hooks/usePrefetch.js +9 -4
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/CardWithUrl/loader.js +10 -10
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -5
- package/dist/esm/state/helpers.js +2 -1
- package/dist/esm/state/hooks/usePrefetch.js +26 -14
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/CardWithUrl/loader.js +10 -10
- 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
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
export declare const TEST_URL = "https://my.url.com";
|
|
3
|
+
export declare const TEST_VISIT_URL = "https://visit.url.com";
|
|
4
|
+
export declare const TEST_NAME = "my name";
|
|
5
|
+
export declare const TEST_STRING = "foo";
|
|
6
|
+
export declare const TEST_PREFIX = "some-mock-prefix";
|
|
7
|
+
export declare const TEST_EMOJI = "\"emoji-id\"";
|
|
8
|
+
export declare const TEST_EMOJI_SANITIZED = "emoji-id";
|
|
9
|
+
export declare const TEST_LINK: JsonLd.Primitives.Link;
|
|
10
|
+
export declare const TEST_ARRAY: JsonLd.Primitives.Link[];
|
|
11
|
+
export declare const TEST_OBJECT: JsonLd.Primitives.Object;
|
|
12
|
+
export declare const TEST_PERSON: JsonLd.Primitives.Person;
|
|
13
|
+
export declare const TEST_IMAGE: JsonLd.Primitives.Image;
|
|
14
|
+
export declare const TEST_IMAGE_WITH_LINK: JsonLd.Primitives.Image;
|
|
15
|
+
export declare const TEST_TITLE_EMOJI: JsonLd.Data.BaseData['atlassian:titlePrefix'];
|
|
16
|
+
export declare const TEST_BASE_DATA: JsonLd.Data.BaseData;
|
|
17
|
+
export declare const TEST_DATA_WITH_EMOJI: JsonLd.Data.BaseData;
|
|
18
|
+
export declare const TEST_DATA_WITH_NO_PREFIX: JsonLd.Data.BaseData;
|
|
19
|
+
export declare const TEST_PROJECT: JsonLd.Data.Project;
|
|
20
|
+
export declare const TEST_PULL_REQUEST: JsonLd.Data.SourceCodePullRequest;
|
|
21
|
+
export declare const TEST_TASK: JsonLd.Data.Task;
|
|
22
|
+
export declare const TEST_META_DATA: JsonLd.Meta.BaseMeta;
|
|
23
|
+
export declare const TEST_DOCUMENT: JsonLd.Data.Document;
|
|
24
|
+
export declare const TEST_CURRENT_DOCUMENT: JsonLd.Data.Document;
|
|
25
|
+
export declare const TEST_DOWNLOAD_ACTION: JsonLd.Data.BaseData['schema:potentialAction'];
|
|
26
|
+
export declare const TEST_UNDEFINED_LINK: JsonLd.Data.UndefinedLinkDocument;
|
|
27
|
+
export declare const TEST_ASSIGN_ACTION: JsonLd.Data.BaseData['schema:potentialAction'];
|
|
28
|
+
export declare const TEST_NO_ID_ACTION: JsonLd.Data.BaseData['schema:potentialAction'];
|
|
29
|
+
export declare const TEST_DOCUMENT_WITH_ACTIONS: {
|
|
30
|
+
'schema:potentialAction': any[];
|
|
31
|
+
'@type': "Collection" | "Document" | "schema:BlogPosting" | "schema:TextDigitalDocument" | "schema:DigitalDocument" | "schema:PresentationDigitalDocument" | "schema:SpreadsheetDigitalDocument" | "atlassian:UndefinedLink" | ("Object" | "Document")[] | (JsonLd.Data.DocumentChildType | JsonLd.Data.DocumentParentType)[] | ("Document" | "schema:DigitalDocument")[];
|
|
32
|
+
'schema:fileFormat'?: string | undefined;
|
|
33
|
+
'atlassian:fileSize'?: number | undefined;
|
|
34
|
+
'schema:commentCount'?: number | undefined;
|
|
35
|
+
'atlassian:isDeleted'?: boolean | undefined;
|
|
36
|
+
'atlassian:dateViewed'?: string | undefined;
|
|
37
|
+
'atlassian:reactCount'?: number | undefined;
|
|
38
|
+
'atlassian:state'?: string | JsonLd.Primitives.Object<any> | undefined;
|
|
39
|
+
'atlassian:viewCount'?: number | undefined;
|
|
40
|
+
'atlassian:voteCount'?: number | undefined;
|
|
41
|
+
'@context': JsonLd.Primitives.Context;
|
|
42
|
+
'atlassian:downloadUrl'?: string | undefined;
|
|
43
|
+
'atlassian:visitUrl'?: string | undefined;
|
|
44
|
+
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
45
|
+
'atlassian:updatedBy'?: JsonLd.Primitives.Link | JsonLd.Primitives.Person<any> | JsonLd.Primitives.Collection<JsonLd.Primitives.Link | JsonLd.Primitives.Person<any>> | undefined;
|
|
46
|
+
'schema:dateCreated'?: string | undefined;
|
|
47
|
+
'@id'?: string | undefined;
|
|
48
|
+
attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
49
|
+
attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
|
|
50
|
+
actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
51
|
+
}> | undefined;
|
|
52
|
+
audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
53
|
+
bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
54
|
+
bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
55
|
+
cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
56
|
+
context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
57
|
+
generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
58
|
+
icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
59
|
+
image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
60
|
+
inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
61
|
+
location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
62
|
+
oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
63
|
+
anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
64
|
+
closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
65
|
+
preview?: string | ((JsonLd.Primitives.Object<any> | JsonLd.Primitives.LinkModel) & JsonLd.Primitives.PreviewExtension) | undefined;
|
|
66
|
+
replies?: JsonLd.Primitives.Collection<any> | undefined;
|
|
67
|
+
tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
68
|
+
to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
69
|
+
url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
|
|
70
|
+
content?: string | undefined;
|
|
71
|
+
contentMap?: Record<string, string> | undefined;
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
nameMap?: Record<string, string> | undefined;
|
|
74
|
+
duration?: string | undefined;
|
|
75
|
+
mediaType?: string | undefined;
|
|
76
|
+
endTime?: string | undefined;
|
|
77
|
+
published?: string | undefined;
|
|
78
|
+
startTime?: string | undefined;
|
|
79
|
+
summary?: string | undefined;
|
|
80
|
+
summaryMap?: Record<string, string> | undefined;
|
|
81
|
+
updated?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
export declare const PREVIEW: JsonLd.Data.BaseData['preview'];
|
|
84
|
+
export declare const TEST_DOCUMENT_WITH_PREVIEW: {
|
|
85
|
+
preview: JsonLd.Primitives.LinkModel & JsonLd.Primitives.PreviewExtension;
|
|
86
|
+
'@type': "Collection" | "Document" | "schema:BlogPosting" | "schema:TextDigitalDocument" | "schema:DigitalDocument" | "schema:PresentationDigitalDocument" | "schema:SpreadsheetDigitalDocument" | "atlassian:UndefinedLink" | ("Object" | "Document")[] | (JsonLd.Data.DocumentChildType | JsonLd.Data.DocumentParentType)[] | ("Document" | "schema:DigitalDocument")[];
|
|
87
|
+
'schema:fileFormat'?: string | undefined;
|
|
88
|
+
'atlassian:fileSize'?: number | undefined;
|
|
89
|
+
'schema:commentCount'?: number | undefined;
|
|
90
|
+
'atlassian:isDeleted'?: boolean | undefined;
|
|
91
|
+
'schema:potentialAction'?: JsonLd.Primitives.Property<JsonLd.Data.DocumentAction> | undefined;
|
|
92
|
+
'atlassian:dateViewed'?: string | undefined;
|
|
93
|
+
'atlassian:reactCount'?: number | undefined;
|
|
94
|
+
'atlassian:state'?: string | JsonLd.Primitives.Object<any> | undefined;
|
|
95
|
+
'atlassian:viewCount'?: number | undefined;
|
|
96
|
+
'atlassian:voteCount'?: number | undefined;
|
|
97
|
+
'@context': JsonLd.Primitives.Context;
|
|
98
|
+
'atlassian:downloadUrl'?: string | undefined;
|
|
99
|
+
'atlassian:visitUrl'?: string | undefined;
|
|
100
|
+
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
101
|
+
'atlassian:updatedBy'?: JsonLd.Primitives.Link | JsonLd.Primitives.Person<any> | JsonLd.Primitives.Collection<JsonLd.Primitives.Link | JsonLd.Primitives.Person<any>> | undefined;
|
|
102
|
+
'schema:dateCreated'?: string | undefined;
|
|
103
|
+
'@id'?: string | undefined;
|
|
104
|
+
attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
105
|
+
attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
|
|
106
|
+
actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
107
|
+
}> | undefined;
|
|
108
|
+
audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
109
|
+
bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
110
|
+
bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
111
|
+
cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
112
|
+
context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
113
|
+
generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
114
|
+
icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
115
|
+
image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
116
|
+
inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
117
|
+
location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
118
|
+
oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
119
|
+
anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
120
|
+
closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
121
|
+
replies?: JsonLd.Primitives.Collection<any> | undefined;
|
|
122
|
+
tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
123
|
+
to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
124
|
+
url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
|
|
125
|
+
content?: string | undefined;
|
|
126
|
+
contentMap?: Record<string, string> | undefined;
|
|
127
|
+
name?: string | undefined;
|
|
128
|
+
nameMap?: Record<string, string> | undefined;
|
|
129
|
+
duration?: string | undefined;
|
|
130
|
+
mediaType?: string | undefined;
|
|
131
|
+
endTime?: string | undefined;
|
|
132
|
+
published?: string | undefined;
|
|
133
|
+
startTime?: string | undefined;
|
|
134
|
+
summary?: string | undefined;
|
|
135
|
+
summaryMap?: Record<string, string> | undefined;
|
|
136
|
+
updated?: string | undefined;
|
|
137
|
+
};
|
|
138
|
+
export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: {
|
|
139
|
+
'atlassian:latestCommit': {
|
|
140
|
+
'@type': string;
|
|
141
|
+
name: string;
|
|
142
|
+
};
|
|
143
|
+
'@context': JsonLd.Primitives.Context;
|
|
144
|
+
'@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
|
|
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
|
+
'atlassian:downloadUrl'?: string | undefined;
|
|
147
|
+
'atlassian:visitUrl'?: string | undefined;
|
|
148
|
+
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
149
|
+
'atlassian:updatedBy'?: JsonLd.Primitives.Link | JsonLd.Primitives.Person<any> | JsonLd.Primitives.Collection<JsonLd.Primitives.Link | JsonLd.Primitives.Person<any>> | undefined;
|
|
150
|
+
'schema:dateCreated'?: string | undefined;
|
|
151
|
+
'@id'?: string | undefined;
|
|
152
|
+
attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
153
|
+
attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
|
|
154
|
+
actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
155
|
+
}> | undefined;
|
|
156
|
+
audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
157
|
+
bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
158
|
+
bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
159
|
+
cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
160
|
+
context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
161
|
+
generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
162
|
+
icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
163
|
+
image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
164
|
+
inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
165
|
+
location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
166
|
+
oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
167
|
+
anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
168
|
+
closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
169
|
+
preview?: string | ((JsonLd.Primitives.Object<any> | JsonLd.Primitives.LinkModel) & JsonLd.Primitives.PreviewExtension) | undefined;
|
|
170
|
+
replies?: JsonLd.Primitives.Collection<any> | undefined;
|
|
171
|
+
tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
172
|
+
to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
173
|
+
url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
|
|
174
|
+
content?: string | undefined;
|
|
175
|
+
contentMap?: Record<string, string> | undefined;
|
|
176
|
+
name?: string | undefined;
|
|
177
|
+
nameMap?: Record<string, string> | undefined;
|
|
178
|
+
duration?: string | undefined;
|
|
179
|
+
mediaType?: string | undefined;
|
|
180
|
+
endTime?: string | undefined;
|
|
181
|
+
published?: string | undefined;
|
|
182
|
+
startTime?: string | undefined;
|
|
183
|
+
summary?: string | undefined;
|
|
184
|
+
summaryMap?: Record<string, string> | undefined;
|
|
185
|
+
updated?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: {
|
|
188
|
+
'atlassian:latestCommit': string;
|
|
189
|
+
'@context': JsonLd.Primitives.Context;
|
|
190
|
+
'@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
|
|
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
|
+
'atlassian:downloadUrl'?: string | undefined;
|
|
193
|
+
'atlassian:visitUrl'?: string | undefined;
|
|
194
|
+
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
195
|
+
'atlassian:updatedBy'?: JsonLd.Primitives.Link | JsonLd.Primitives.Person<any> | JsonLd.Primitives.Collection<JsonLd.Primitives.Link | JsonLd.Primitives.Person<any>> | undefined;
|
|
196
|
+
'schema:dateCreated'?: string | undefined;
|
|
197
|
+
'@id'?: string | undefined;
|
|
198
|
+
attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
199
|
+
attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
|
|
200
|
+
actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
201
|
+
}> | undefined;
|
|
202
|
+
audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
203
|
+
bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
204
|
+
bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
205
|
+
cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
206
|
+
context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
207
|
+
generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
208
|
+
icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
209
|
+
image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
210
|
+
inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
211
|
+
location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
212
|
+
oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
213
|
+
anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
214
|
+
closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
215
|
+
preview?: string | ((JsonLd.Primitives.Object<any> | JsonLd.Primitives.LinkModel) & JsonLd.Primitives.PreviewExtension) | undefined;
|
|
216
|
+
replies?: JsonLd.Primitives.Collection<any> | undefined;
|
|
217
|
+
tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
218
|
+
to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
219
|
+
url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
|
|
220
|
+
content?: string | undefined;
|
|
221
|
+
contentMap?: Record<string, string> | undefined;
|
|
222
|
+
name?: string | undefined;
|
|
223
|
+
nameMap?: Record<string, string> | undefined;
|
|
224
|
+
duration?: string | undefined;
|
|
225
|
+
mediaType?: string | undefined;
|
|
226
|
+
endTime?: string | undefined;
|
|
227
|
+
published?: string | undefined;
|
|
228
|
+
startTime?: string | undefined;
|
|
229
|
+
summary?: string | undefined;
|
|
230
|
+
summaryMap?: Record<string, string> | undefined;
|
|
231
|
+
updated?: string | undefined;
|
|
232
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { InvokeHandler } from '../../../model/invoke-handler';
|
|
3
|
+
import { ActionProps } from '../../../view/BlockCard/components/Action';
|
|
4
|
+
export declare function extractActions(jsonLd: JsonLd.Data.BaseData, handler: InvokeHandler): ActionProps[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CardPlatform } from '../../../view/Card/types';
|
|
3
|
+
import { BlockCardResolvedViewProps } from '../../../view/BlockCard';
|
|
4
|
+
import { ExtractBlockOpts } from '../../block/types';
|
|
5
|
+
export declare const extractPreviewAction: ({ extensionKey, viewProps, jsonLd, handleInvoke, testId, platform, origin, source, featureFlags, analytics, }: ExtractBlockOpts & {
|
|
6
|
+
viewProps: BlockCardResolvedViewProps;
|
|
7
|
+
jsonLd: JsonLd.Data.BaseData;
|
|
8
|
+
platform?: JsonLd.Primitives.Platforms | undefined;
|
|
9
|
+
}) => import("../../../view/BlockCard/components/Action").ActionProps | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { RequestAccessContextProps } from '../../../view/types';
|
|
3
|
+
export declare const extractRequestAccessContext: ({ jsonLd, url, context, }: {
|
|
4
|
+
jsonLd: JsonLd.Meta.BaseMeta;
|
|
5
|
+
url: string;
|
|
6
|
+
context?: string | undefined;
|
|
7
|
+
}) => RequestAccessContextProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { extractRequestAccessContext } from './extractAccessContext';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { LinkDetail } from './types';
|
|
3
|
+
export declare type LinkCommentType = JsonLd.Data.Document | JsonLd.Data.Page | JsonLd.Data.Project | JsonLd.Data.SourceCodeCommit | JsonLd.Data.TaskType;
|
|
4
|
+
export declare const extractCommentCount: (jsonLd: LinkCommentType) => LinkDetail | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { LinkDetail } from './types';
|
|
3
|
+
export declare type LinkProgrammingLanguageType = JsonLd.Data.SourceCodeDocument | JsonLd.Data.SourceCodeCommit | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository;
|
|
4
|
+
export declare const extractProgrammingLanguage: (jsonLd: LinkProgrammingLanguageType) => LinkDetail | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { LinkDetail } from './types';
|
|
3
|
+
export declare type LinkSubscriberType = JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task | JsonLd.Data.TaskType;
|
|
4
|
+
export declare const extractSubscriberCount: (jsonLd: LinkSubscriberType) => LinkDetail | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { extractCommentCount } from './extractCommentCount';
|
|
2
|
+
export type { LinkCommentType } from './extractCommentCount';
|
|
3
|
+
export { extractDownloadUrl } from './extractDownloadUrl';
|
|
4
|
+
export { extractProgrammingLanguage } from './extractProgrammingLanguage';
|
|
5
|
+
export type { LinkProgrammingLanguageType } from './extractProgrammingLanguage';
|
|
6
|
+
export { extractSubscriberCount } from './extractSubscriberCount';
|
|
7
|
+
export type { LinkSubscriberType } from './extractSubscriberCount';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JsonLd } from 'json-ld-types';
|
|
3
|
+
import { LinkProvider } from '@atlaskit/linking-common/extractors';
|
|
4
|
+
import { LinkTaskType } from '../lozenge/extractTaskType';
|
|
5
|
+
export declare type IconPriority = 'type' | 'provider';
|
|
6
|
+
export interface IconOpts {
|
|
7
|
+
title?: string;
|
|
8
|
+
provider?: LinkProvider;
|
|
9
|
+
fileFormat?: string;
|
|
10
|
+
taskType?: LinkTaskType;
|
|
11
|
+
priority?: IconPriority;
|
|
12
|
+
icon?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const extractIcon: (jsonLd: JsonLd.Data.BaseData, priority?: IconPriority) => React.ReactNode | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconOpts } from './extractIcon';
|
|
3
|
+
export declare type DocumentType = 'Document' | 'schema:BlogPosting' | 'schema:DigitalDocument' | 'schema:TextDigitalDocument' | 'schema:PresentationDigitalDocument' | 'schema:SpreadsheetDigitalDocument' | 'atlassian:Template' | 'atlassian:UndefinedLink';
|
|
4
|
+
export declare const extractIconFromDocument: (type: DocumentType, opts: IconOpts) => React.ReactNode | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type LinkLozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|
|
2
|
+
export interface LinkLozenge {
|
|
3
|
+
text: string;
|
|
4
|
+
appearance?: LinkLozengeColor;
|
|
5
|
+
}
|
|
6
|
+
export declare type LinkDocumentState = 'archived' | 'draft' | 'current';
|
|
7
|
+
export declare type LinkPullRequestState = 'open' | 'merged' | 'declined' | 'closed';
|
|
8
|
+
export declare type LinkState = LinkDocumentState & LinkPullRequestState;
|