@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
|
@@ -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;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JsonLd } from 'json-ld-types';
|
|
3
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
+
import { CardAppearance } from '../../../view/Card';
|
|
5
|
+
export declare const extractTitlePrefix: (jsonLd: JsonLd.Data.BaseData, renderers?: CardProviderRenderers | undefined, type?: CardAppearance | undefined) => string | React.ReactNode | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { extractTitlePrefix } from './extractTitlePrefix';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const CONFLUENCE_GENERATOR_ID = "https://www.atlassian.com/#Confluence";
|
|
2
|
+
export declare const JIRA_GENERATOR_ID = "https://www.atlassian.com/#Jira";
|
|
3
|
+
export declare const JIRA_TASK = "JiraTask";
|
|
4
|
+
export declare const JIRA_SUB_TASK = "JiraSubTask";
|
|
5
|
+
export declare const JIRA_STORY = "JiraStory";
|
|
6
|
+
export declare const JIRA_BUG = "JiraBug";
|
|
7
|
+
export declare const JIRA_EPIC = "JiraEpic";
|
|
8
|
+
export declare const JIRA_INCIDENT = "JiraIncident";
|
|
9
|
+
export declare const JIRA_SERVICE_REQUEST = "JiraServiceRequest";
|
|
10
|
+
export declare const JIRA_CHANGE = "JiraChange";
|
|
11
|
+
export declare const JIRA_PROBLEM = "JiraProblem";
|
|
12
|
+
export declare const JIRA_CUSTOM_TASK_TYPE = "JiraCustomTaskType";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { EmbedCardResolvedViewProps } from '../../view/EmbedCard/views/ResolvedView';
|
|
3
|
+
export declare const extractEmbedProps: (jsonLd: JsonLd.Data.BaseData, meta?: JsonLd.Meta.BaseMeta | undefined, platform?: JsonLd.Primitives.Platforms | undefined) => EmbedCardResolvedViewProps;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { LinkPerson } from '@atlaskit/linking-common/extractors';
|
|
3
|
+
export declare type LinkTypeUpdatedBy = JsonLd.Data.Document | JsonLd.Data.Project | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task;
|
|
4
|
+
export declare const extractPersonsUpdatedBy: (jsonLd: LinkTypeUpdatedBy) => LinkPerson[] | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
+
declare const extractIconRenderer: (data: JsonLd.Data.BaseData, renderers?: CardProviderRenderers | undefined) => (() => React.ReactNode) | undefined;
|
|
4
|
+
export default extractIconRenderer;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { IconDescriptor } from './types';
|
|
3
|
+
declare const extractUrlIcon: (icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined, label?: string | undefined) => IconDescriptor | undefined;
|
|
4
|
+
export default extractUrlIcon;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { JsonLd } from 'json-ld-types';
|
|
3
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
+
import { IconType, SmartLinkStatus } from '../../../constants';
|
|
5
|
+
export declare const extractLinkIcon: (response: JsonLd.Response, renderers?: CardProviderRenderers | undefined) => {
|
|
6
|
+
render: (() => import("react").ReactNode) | undefined;
|
|
7
|
+
icon?: IconType | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
url?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const extractErrorIcon: (response?: JsonLd.Response<JsonLd.Data.BaseData> | undefined, status?: SmartLinkStatus | undefined) => {
|
|
12
|
+
icon: IconType | undefined;
|
|
13
|
+
url: string | undefined;
|
|
14
|
+
} | {
|
|
15
|
+
icon: IconType;
|
|
16
|
+
url?: undefined;
|
|
17
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
+
import { FlexibleUiDataContext } from '../../state/flexible-ui-context/types';
|
|
4
|
+
declare const extractFlexibleUiContext: (response?: JsonLd.Response<JsonLd.Data.BaseData> | undefined, renderers?: CardProviderRenderers | undefined) => FlexibleUiDataContext | undefined;
|
|
5
|
+
export default extractFlexibleUiContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
export declare const extractCommentCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
3
|
+
export declare const extractDueOn: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
4
|
+
export declare const extractViewCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
5
|
+
export declare const extractReactCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
6
|
+
export declare const extractVoteCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
7
|
+
export declare const extractCreatedBy: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
8
|
+
export declare const extractModifiedBy: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
9
|
+
export declare const extractProgrammingLanguage: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
10
|
+
export declare const extractSourceBranch: (data: JsonLd.Data.SourceCodePullRequest) => string | undefined;
|
|
11
|
+
export declare const extractSubscriberCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
12
|
+
export declare const extractTargetBranch: (data: JsonLd.Data.SourceCodePullRequest) => string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ExtractorFunction<T> {
|
|
2
|
+
(json: any): T;
|
|
3
|
+
}
|
|
4
|
+
export interface ExtractOptions<T> {
|
|
5
|
+
defaultExtractorFunction: ExtractorFunction<T>;
|
|
6
|
+
extractorPrioritiesByType: {
|
|
7
|
+
[type: string]: number;
|
|
8
|
+
};
|
|
9
|
+
extractorFunctionsByType: {
|
|
10
|
+
[type: string]: ExtractorFunction<T>;
|
|
11
|
+
};
|
|
12
|
+
json: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function genericExtractPropsFromJSONLD<T>(options: ExtractOptions<T>): T;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { JsonLd } from 'json-ld-types';
|
|
3
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
+
import { InlineCardResolvedViewProps } from '../../view/InlineCard/ResolvedView';
|
|
5
|
+
export declare const extractInlineIcon: (jsonLd: JsonLd.Data.BaseData) => import("react").ReactNode;
|
|
6
|
+
export declare const extractInlineProps: (jsonLd: JsonLd.Data.BaseData, renderers?: CardProviderRenderers | undefined) => InlineCardResolvedViewProps;
|