@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,93 @@
|
|
|
1
|
+
import { APIError, CardType } from '@atlaskit/linking-common';
|
|
2
|
+
import { PreviewDisplay, PreviewInvokeMethod } from '../../view/HoverCard/types';
|
|
3
|
+
import { ErrorInfo } from 'react';
|
|
4
|
+
import { CardInnerAppearance } from '../../view/Card/types';
|
|
5
|
+
import { InvokeType } from '../../model/invoke-opts';
|
|
6
|
+
export declare type DestinationProduct = 'jira' | 'confluence' | 'bitbucket' | 'trello';
|
|
7
|
+
export declare type DestinationSubproduct = 'core' | 'software' | 'servicedesk';
|
|
8
|
+
export interface CommonEventProps {
|
|
9
|
+
id?: string;
|
|
10
|
+
definitionId?: string;
|
|
11
|
+
extensionKey?: string;
|
|
12
|
+
resourceType?: string;
|
|
13
|
+
destinationSubproduct?: DestinationSubproduct | string;
|
|
14
|
+
destinationProduct?: DestinationProduct | string;
|
|
15
|
+
location?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type ResolvedEventProps = CommonEventProps & {
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type UnresolvedEventProps = CommonEventProps & {
|
|
21
|
+
id: string;
|
|
22
|
+
status: string;
|
|
23
|
+
error?: APIError;
|
|
24
|
+
};
|
|
25
|
+
export declare type InvokeSucceededEventProps = CommonEventProps & {
|
|
26
|
+
id: string;
|
|
27
|
+
actionType: string;
|
|
28
|
+
display: CardInnerAppearance;
|
|
29
|
+
};
|
|
30
|
+
export declare type InvokeFailedEventProps = CommonEventProps & {
|
|
31
|
+
id: string;
|
|
32
|
+
actionType: string;
|
|
33
|
+
display: CardInnerAppearance;
|
|
34
|
+
reason: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type ConnectSucceededEventProps = CommonEventProps & {
|
|
37
|
+
id?: string;
|
|
38
|
+
};
|
|
39
|
+
export declare type ConnectFailedEventProps = CommonEventProps & {
|
|
40
|
+
id?: string;
|
|
41
|
+
reason?: string;
|
|
42
|
+
};
|
|
43
|
+
export declare type TrackAppAccountConnectedProps = CommonEventProps;
|
|
44
|
+
export declare type UiAuthEventProps = CommonEventProps & {
|
|
45
|
+
display: CardInnerAppearance;
|
|
46
|
+
};
|
|
47
|
+
export declare type UiAuthAlternateAccountEventProps = CommonEventProps & {
|
|
48
|
+
display: CardInnerAppearance;
|
|
49
|
+
};
|
|
50
|
+
export declare type UiCardClickedEventProps = CommonEventProps & {
|
|
51
|
+
id: string;
|
|
52
|
+
display: CardInnerAppearance;
|
|
53
|
+
status: CardType;
|
|
54
|
+
isModifierKeyPressed?: boolean;
|
|
55
|
+
actionSubjectId?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare type UiActionClickedEventProps = CommonEventProps & {
|
|
58
|
+
id: string;
|
|
59
|
+
display: CardInnerAppearance;
|
|
60
|
+
actionType: string;
|
|
61
|
+
invokeType?: InvokeType;
|
|
62
|
+
};
|
|
63
|
+
export declare type ScreenAuthPopupEventProps = CommonEventProps;
|
|
64
|
+
export declare type UiClosedAuthEventProps = CommonEventProps & {
|
|
65
|
+
display: CardInnerAppearance;
|
|
66
|
+
};
|
|
67
|
+
export declare type UiRenderSuccessEventProps = CommonEventProps & {
|
|
68
|
+
display: CardInnerAppearance;
|
|
69
|
+
status: CardType;
|
|
70
|
+
};
|
|
71
|
+
export declare type UiRenderFailedEventProps = CommonEventProps & {
|
|
72
|
+
display: CardInnerAppearance;
|
|
73
|
+
error: Error;
|
|
74
|
+
errorInfo: ErrorInfo;
|
|
75
|
+
};
|
|
76
|
+
export declare type UiHoverCardViewedEventProps = CommonEventProps & {
|
|
77
|
+
previewDisplay: PreviewDisplay;
|
|
78
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
79
|
+
};
|
|
80
|
+
export declare type UiHoverCardDismissedEventProps = CommonEventProps & {
|
|
81
|
+
previewDisplay: PreviewDisplay;
|
|
82
|
+
hoverTime: number;
|
|
83
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
84
|
+
};
|
|
85
|
+
export declare type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
86
|
+
previewDisplay: PreviewDisplay;
|
|
87
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
88
|
+
};
|
|
89
|
+
export declare type InstrumentEventProps = CommonEventProps & {
|
|
90
|
+
error?: APIError;
|
|
91
|
+
status: CardType;
|
|
92
|
+
id: string;
|
|
93
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const isFlexibleUiCard: (children?: React.ReactNode) => boolean;
|
|
3
|
+
export declare const isFlexibleUiBlock: (node: React.ReactNode) => boolean;
|
|
4
|
+
export declare const isFlexibleUiElement: (node: React.ReactNode) => boolean;
|
|
5
|
+
export declare const isFlexibleUiTitleBlock: (node: React.ReactNode) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardProps } from '../view/Card';
|
|
3
|
+
export declare const isCardWithData: (props: CardProps) => boolean;
|
|
4
|
+
export declare const isSpecialEvent: (evt: React.MouseEvent | React.KeyboardEvent) => boolean;
|
|
5
|
+
export declare const isIframe: () => boolean;
|
|
6
|
+
export declare const isSpecialKey: (event: React.MouseEvent | React.KeyboardEvent) => boolean;
|
|
7
|
+
export declare const isSpecialClick: (event: React.MouseEvent) => boolean;
|
|
8
|
+
export declare const getIconForFileType: (fileMimeType: string) => React.ReactNode | undefined;
|
|
9
|
+
export declare const getLabelForFileType: (fileMimeType: string) => React.ReactNode | undefined;
|
|
10
|
+
export declare const getIframeSandboxAttribute: (isTrusted: boolean) => "allow-downloads allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts" | undefined;
|
|
11
|
+
export declare const handleOnClick: (handler: Function) => (e: React.BaseSyntheticEvent) => void;
|
|
12
|
+
export declare const isIntersectionObserverSupported: () => boolean;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
export declare const mockContext: {
|
|
3
|
+
readonly '@vocab': "https://www.w3.org/ns/activitystreams#";
|
|
4
|
+
readonly atlassian: "https://schema.atlassian.com/ns/vocabulary#";
|
|
5
|
+
readonly schema: "http://schema.org/";
|
|
6
|
+
};
|
|
7
|
+
export declare const mocks: {
|
|
8
|
+
success: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
9
|
+
notFound: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
10
|
+
forbidden: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
11
|
+
unauthorized: JsonLd.Response<JsonLd.Data.BaseData>;
|
|
12
|
+
actionSuccess: {
|
|
13
|
+
meta: {
|
|
14
|
+
visibility: string;
|
|
15
|
+
access: string;
|
|
16
|
+
auth: never[];
|
|
17
|
+
definitionId: string;
|
|
18
|
+
};
|
|
19
|
+
data: {
|
|
20
|
+
status: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
analytics: {
|
|
24
|
+
status: string;
|
|
25
|
+
details: {
|
|
26
|
+
meta: {
|
|
27
|
+
definitionId: string;
|
|
28
|
+
key: string;
|
|
29
|
+
resourceType: string;
|
|
30
|
+
subproduct: string;
|
|
31
|
+
product: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const fakeResponse: () => Promise<JsonLd.Response<JsonLd.Data.BaseData>>;
|
|
37
|
+
export declare const fakeFactory: any;
|
|
38
|
+
export declare const waitFor: (time?: number) => Promise<unknown>;
|
|
39
|
+
export declare const mockAnalytics: {
|
|
40
|
+
ui: {
|
|
41
|
+
authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiAuthEventProps) => void;
|
|
42
|
+
authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiAuthAlternateAccountEventProps) => void;
|
|
43
|
+
buttonClickedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
|
|
44
|
+
actionSubjectId: string;
|
|
45
|
+
}) => void;
|
|
46
|
+
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("./analytics/types").UiCardClickedEventProps) => void;
|
|
47
|
+
actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiActionClickedEventProps) => void;
|
|
48
|
+
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("./analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
49
|
+
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiClosedAuthEventProps) => void;
|
|
50
|
+
modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
|
|
51
|
+
actionSubjectId: string;
|
|
52
|
+
}) => void;
|
|
53
|
+
renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
|
|
54
|
+
renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
|
|
55
|
+
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
|
|
56
|
+
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
57
|
+
};
|
|
58
|
+
operational: {
|
|
59
|
+
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
|
|
60
|
+
invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeFailedEventProps) => void;
|
|
61
|
+
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectSucceededEventProps) => void;
|
|
62
|
+
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectFailedEventProps) => void;
|
|
63
|
+
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("./analytics/types").InstrumentEventProps) => void;
|
|
64
|
+
};
|
|
65
|
+
track: {
|
|
66
|
+
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
67
|
+
};
|
|
68
|
+
screen: {
|
|
69
|
+
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
70
|
+
modalViewedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
|
|
71
|
+
name: "embedPreviewModal";
|
|
72
|
+
}) => void;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardType } from '@atlaskit/linking-common';
|
|
2
|
+
export declare const getMarkName: (id: string, status: CardType) => string;
|
|
3
|
+
export declare const getMeasureName: (id: string, status: CardType) => string;
|
|
4
|
+
export declare const clearMarks: (id: string) => void;
|
|
5
|
+
export declare const clearMeasures: (id: string) => void;
|
|
6
|
+
export declare const getMeasure: (id: string, status: CardType) => PerformanceEntry | undefined;
|
|
7
|
+
export declare const mark: (id: string, status: CardType) => void;
|
|
8
|
+
export declare const create: (id: string, status: CardType) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProviderProps } from '../state';
|
|
3
|
+
export declare const renderHook: (callback: Function) => JSX.Element;
|
|
4
|
+
export declare const renderSmartLinkHook: (callback: Function, providerProps?: Partial<ProviderProps> | undefined) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const tokens: {
|
|
2
|
+
actionIcon: "var(--ds-icon)";
|
|
3
|
+
background: "var(--ds-surface-raised)";
|
|
4
|
+
badgeIcon: "var(--ds-icon-subtle)";
|
|
5
|
+
badgeText: "var(--ds-text-subtlest)";
|
|
6
|
+
blackLink: "var(--ds-text-subtle)";
|
|
7
|
+
blackLinkPressed: "var(--ds-text)";
|
|
8
|
+
blueLink: "var(--ds-link)";
|
|
9
|
+
blueLinkPressed: "var(--ds-link-pressed)";
|
|
10
|
+
elevation: "var(--ds-shadow-raised)";
|
|
11
|
+
errorMessage: "var(--ds-text-disabled)";
|
|
12
|
+
errorMessageHover: "var(--ds-text-subtle)";
|
|
13
|
+
focus: "var(--ds-border-focused)";
|
|
14
|
+
snippet: "var(--ds-text)";
|
|
15
|
+
text: "var(--ds-text-subtlest)";
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
|
+
import { CardInnerAppearance } from '../view/Card/types';
|
|
3
|
+
export declare type AnalyticsAction = 'resolved' | 'unresolved' | 'connectSucceeded' | 'connectFailed' | 'connected' | 'clicked' | 'closed' | 'renderFailed' | 'renderWithStatus' | 'renderSuccess' | 'inserted' | 'viewed' | 'dismissed' | 'created';
|
|
4
|
+
export declare type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal';
|
|
5
|
+
export declare type AnalyticsName = 'embedPreviewModal';
|
|
6
|
+
export declare type AnalyticsOrigin = 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard';
|
|
7
|
+
export declare type AnalyticsPayload = GasPayload & {
|
|
8
|
+
action?: AnalyticsAction;
|
|
9
|
+
actionSubject: AnalyticsActionSubject;
|
|
10
|
+
attributes: GasPayload['attributes'] & {
|
|
11
|
+
display?: CardInnerAppearance;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare type AnalyticsHandler = (event: AnalyticsPayload) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActionProps } from '../components/Action';
|
|
2
|
+
export interface DownloadFunctionArg {
|
|
3
|
+
url?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function downloadFunction({ url }: DownloadFunctionArg): Promise<void>;
|
|
6
|
+
export declare const DownloadAction: ({ url }: {
|
|
7
|
+
url?: string | undefined;
|
|
8
|
+
}) => ActionProps;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { ErrorInfo } from 'react';
|
|
2
|
+
import { LinkingPlatformFeatureFlags } from '@atlaskit/linking-common';
|
|
3
|
+
import { AnalyticsFacade } from '../../../state/analytics';
|
|
4
|
+
import { EmbedModalWithExperimentProps } from '../../EmbedModal/types';
|
|
5
|
+
import { ActionProps } from '../components/Action';
|
|
6
|
+
import { IconProps } from '../../common/Icon';
|
|
7
|
+
import { MetadataProps } from '../../common/Metadata';
|
|
8
|
+
import { AnalyticsOrigin } from '../../../utils/types';
|
|
9
|
+
export interface PreviewFunctionArg extends EmbedModalWithExperimentProps {
|
|
10
|
+
popupMountPointId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function previewFunction({ popupMountPointId, onClose, ...rest }: PreviewFunctionArg): Promise<void>;
|
|
13
|
+
declare type PreviewInfo = {
|
|
14
|
+
src?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
details?: Array<MetadataProps>;
|
|
17
|
+
icon?: IconProps;
|
|
18
|
+
url?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
providerName?: string;
|
|
21
|
+
download?: string;
|
|
22
|
+
byline?: React.ReactNode;
|
|
23
|
+
onViewActionClick?: () => void;
|
|
24
|
+
onDownloadActionClick?: () => void;
|
|
25
|
+
onOpen?: () => void;
|
|
26
|
+
onOpenFailed?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
27
|
+
featureFlags?: Partial<LinkingPlatformFeatureFlags>;
|
|
28
|
+
analytics: AnalyticsFacade;
|
|
29
|
+
origin?: AnalyticsOrigin;
|
|
30
|
+
};
|
|
31
|
+
declare const _default: ({ details, ...rest }: PreviewInfo) => ActionProps;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActionProps } from '../components/Action';
|
|
2
|
+
export interface ViewFunctionArg {
|
|
3
|
+
url?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function viewFunction({ url }: ViewFunctionArg): Promise<void>;
|
|
6
|
+
export declare const ViewAction: ({ url }: {
|
|
7
|
+
url?: string | undefined;
|
|
8
|
+
}) => ActionProps;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Appearance } from '@atlaskit/button/types';
|
|
3
|
+
export interface ActionProps {
|
|
4
|
+
id: string;
|
|
5
|
+
text: React.ReactNode;
|
|
6
|
+
promise: () => Promise<any>;
|
|
7
|
+
buttonAppearance?: Appearance;
|
|
8
|
+
}
|
|
9
|
+
export declare type ActionState = 'init' | 'loading' | 'success' | 'failure';
|
|
10
|
+
export declare const spinnerDelay = 1000;
|
|
11
|
+
export declare const Action: ({ promise, text, buttonAppearance, id, }: ActionProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ActionState } from './Action';
|
|
3
|
+
export declare const spinnerStyles: {
|
|
4
|
+
readonly display: "flex";
|
|
5
|
+
readonly position: "absolute";
|
|
6
|
+
readonly left: "50%";
|
|
7
|
+
readonly top: "50%";
|
|
8
|
+
readonly transform: "translate(-50%, -50%)";
|
|
9
|
+
};
|
|
10
|
+
export declare const ActionIcon: ({ state }: {
|
|
11
|
+
state: ActionState;
|
|
12
|
+
}) => JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AvatarClickEventHandler } from '@atlaskit/avatar';
|
|
3
|
+
export interface Collaborator {
|
|
4
|
+
src?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CollaboratorListProps {
|
|
8
|
+
items: Collaborator[];
|
|
9
|
+
handleAvatarClick: AvatarClickEventHandler;
|
|
10
|
+
handleMoreAvatarsClick: React.MouseEventHandler;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const CollaboratorList: ({ items, handleAvatarClick, handleMoreAvatarsClick, testId, }: CollaboratorListProps) => JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ContentProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
isCompact?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const blockCardContentClassName = "block-card-content";
|
|
7
|
+
export declare const Content: ({ children, isCompact }: ContentProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ContentFooterProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
hasSpaceBetween?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const contentFooterClassName = "smart-link-content-footer";
|
|
7
|
+
export declare const ContentFooter: ({ children, hasSpaceBetween, }: ContentFooterProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ContentHeaderProps {
|
|
3
|
+
onClick: React.MouseEventHandler;
|
|
4
|
+
link: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const blockCardContentHeaderClassName = "block-card-content-header";
|
|
8
|
+
export declare const ContentHeader: ({ onClick, link, children, }: ContentHeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FrameProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
isHoverable?: boolean;
|
|
7
|
+
isFluidHeight?: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
inheritDimensions?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Frame: (props?: FrameProps) => JSX.Element;
|
|
13
|
+
export declare const ExpandedFrame: ({ children, isSelected, isHoverable, testId, className, isFluidHeight, }: FrameProps) => JSX.Element;
|
|
14
|
+
export declare const CompactFrame: ({ children, isHoverable, isSelected, testId, className, inheritDimensions, }: FrameProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface NameProps {
|
|
3
|
+
name: React.ReactNode;
|
|
4
|
+
isLeftPadded?: boolean;
|
|
5
|
+
testId?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const blockCardContentHeaderNameClassName = "block-card-content-header-name";
|
|
10
|
+
export declare const Name: ({ name, isLeftPadded, testId, textColor, }: NameProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
src: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Thumbnail: (props: ImageProps) => JSX.Element;
|
|
8
|
+
export declare const ThumbnailDefault: ({ src, testId }: ImageProps) => JSX.Element;
|
|
9
|
+
export declare const ThumbnailWithBackground: ({ src, color, testId }: ImageProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BlockCardProps } from './types';
|
|
3
|
+
import { AuthorizeAction } from './actions/AuthorizeAction';
|
|
4
|
+
import { ForbiddenAction } from './actions/ForbiddenAction';
|
|
5
|
+
import { ResolvedView as BlockCardResolvedView } from './views/ResolvedView';
|
|
6
|
+
import { NotFoundView as BlockCardNotFoundView } from './views/NotFoundView';
|
|
7
|
+
import { ResolvingView as BlockCardResolvingView } from './views/ResolvingView';
|
|
8
|
+
import { UnauthorizedView as BlockCardUnauthorisedView } from './views/UnauthorizedView';
|
|
9
|
+
import { ForbiddenView as BlockCardForbiddenView } from './views/ForbiddenView';
|
|
10
|
+
import { ErroredView as BlockCardErroredView } from './views/ErroredView';
|
|
11
|
+
export { default as PreviewAction } from './actions/PreviewAction';
|
|
12
|
+
export type { ResolvedViewProps as BlockCardResolvedViewProps } from './views/ResolvedView';
|
|
13
|
+
export { ForbiddenAction, AuthorizeAction, BlockCardResolvedView, BlockCardResolvingView, BlockCardUnauthorisedView, BlockCardForbiddenView, BlockCardErroredView, BlockCardNotFoundView, };
|
|
14
|
+
export declare const BlockCard: FC<BlockCardProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardAuthFlowOpts, CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
+
import { CardState } from '../../state/types';
|
|
4
|
+
import { InvokeHandler } from '../../model/invoke-handler';
|
|
5
|
+
import { CardPlatform, OnResolveCallback } from '../Card/types';
|
|
6
|
+
import { OnErrorCallback } from '../types';
|
|
7
|
+
import { AnalyticsFacade } from '../../state/analytics';
|
|
8
|
+
export declare type BlockCardProps = {
|
|
9
|
+
id: string;
|
|
10
|
+
url: string;
|
|
11
|
+
cardState: CardState;
|
|
12
|
+
authFlow?: CardAuthFlowOpts['authFlow'];
|
|
13
|
+
handleAuthorize: (() => void) | undefined;
|
|
14
|
+
handleErrorRetry: () => void;
|
|
15
|
+
handleInvoke: InvokeHandler;
|
|
16
|
+
handleFrameClick: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
17
|
+
isSelected?: boolean;
|
|
18
|
+
onResolve?: OnResolveCallback;
|
|
19
|
+
onError?: OnErrorCallback;
|
|
20
|
+
testId?: string;
|
|
21
|
+
showActions?: boolean;
|
|
22
|
+
renderers?: CardProviderRenderers;
|
|
23
|
+
platform?: CardPlatform;
|
|
24
|
+
analytics: AnalyticsFacade;
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ErroredViewProps {
|
|
3
|
+
link?: string;
|
|
4
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
onRetry?: () => void;
|
|
7
|
+
message?: string;
|
|
8
|
+
testId?: string;
|
|
9
|
+
inheritDimensions?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const blockCardErroredViewClassName = "block-card-errored-view";
|
|
12
|
+
export declare const ErroredView: ({ isSelected, testId, link, onClick, onRetry, inheritDimensions, }: ErroredViewProps) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ActionProps } from '../components/Action';
|
|
3
|
+
import { IconProps } from '../../common/Icon';
|
|
4
|
+
import { RequestAccessContextProps } from '../../types';
|
|
5
|
+
export interface PermissionDeniedProps {
|
|
6
|
+
actions?: Array<ActionProps>;
|
|
7
|
+
context?: {
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
icon: IconProps;
|
|
12
|
+
link?: string;
|
|
13
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
14
|
+
isSelected?: boolean;
|
|
15
|
+
testId?: string;
|
|
16
|
+
showActions?: boolean;
|
|
17
|
+
requestAccessContext?: RequestAccessContextProps;
|
|
18
|
+
}
|
|
19
|
+
export declare const blockCardForbiddenViewClassName = "block-card-forbidden-view";
|
|
20
|
+
export declare const blockCardForbiddenViewLinkClassName = "block-card-forbidden-view-link";
|
|
21
|
+
export declare const ForbiddenView: ({ context, isSelected, actions, testId, showActions, link, onClick, requestAccessContext, }: PermissionDeniedProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../../common/Icon';
|
|
3
|
+
export interface NotFoundProps {
|
|
4
|
+
context?: {
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
link?: string;
|
|
9
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
icon: IconProps;
|
|
12
|
+
testId?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const blockCardNotFoundViewClassName = "block-card-not-found-view";
|
|
15
|
+
export declare const NotFoundView: ({ context, isSelected, testId, link, onClick, }: NotFoundProps) => JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AvatarClickEventHandler } from '@atlaskit/avatar';
|
|
3
|
+
import { Collaborator } from '../components/CollaboratorList';
|
|
4
|
+
import { IconProps } from '../../common/Icon';
|
|
5
|
+
import { ActionProps } from '../components/Action';
|
|
6
|
+
import { MetadataProps } from '../../common/Metadata';
|
|
7
|
+
import { ContextViewModel } from '../../types';
|
|
8
|
+
import { LozengeProps } from '../../../types';
|
|
9
|
+
export interface ResolvedViewProps {
|
|
10
|
+
context?: ContextViewModel;
|
|
11
|
+
link?: string;
|
|
12
|
+
icon: IconProps;
|
|
13
|
+
details?: Array<MetadataProps>;
|
|
14
|
+
byline?: React.ReactNode;
|
|
15
|
+
lozenge?: LozengeProps;
|
|
16
|
+
thumbnail?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
titleTextColor?: string;
|
|
19
|
+
users?: Collaborator[];
|
|
20
|
+
actions?: Array<ActionProps>;
|
|
21
|
+
handleAvatarClick?: AvatarClickEventHandler;
|
|
22
|
+
handleMoreAvatarsClick?: React.MouseEventHandler;
|
|
23
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
24
|
+
isSelected?: boolean;
|
|
25
|
+
testId?: string;
|
|
26
|
+
showActions?: boolean;
|
|
27
|
+
titlePrefix?: React.ReactNode;
|
|
28
|
+
isTrusted?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const blockCardResolvedViewClassName = "block-card-resolved-view";
|
|
31
|
+
export declare const blockCardResolvedViewByClassName = "block-card-resolved-view-by";
|
|
32
|
+
export declare const ResolvedView: ({ icon, actions, thumbnail, context, title, titleTextColor, titlePrefix, isSelected, users, handleAvatarClick, handleMoreAvatarsClick, onClick, link, byline, lozenge, details, testId, showActions, }: ResolvedViewProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ResolvingProps {
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
testId?: string;
|
|
5
|
+
inheritDimensions?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const blockCardResolvingViewClassName = "block-card-resolving-view";
|
|
8
|
+
export declare const ResolvingView: ({ isSelected, testId, inheritDimensions, }: ResolvingProps) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ActionProps } from '../components/Action';
|
|
3
|
+
import { IconProps } from '../../common/Icon';
|
|
4
|
+
export interface UnauthorizedViewProps {
|
|
5
|
+
actions: ActionProps[];
|
|
6
|
+
context?: {
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
testId?: string;
|
|
12
|
+
showActions?: boolean;
|
|
13
|
+
icon: IconProps;
|
|
14
|
+
link?: string;
|
|
15
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
16
|
+
}
|
|
17
|
+
export declare const UnauthorizedView: ({ context, isSelected, actions, testId, showActions, link, onClick, }: UnauthorizedViewProps) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardAppearance, CardPlatform, CardProps } from './types';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "appearance" | "testId" | "isSelected" | "inheritDimensions" | "id" | "placeholder" | "onError" | "onClick" | "analyticsContext" | "key" | "ui" | "showActions" | "showHoverPreview" | "onResolve" | "platform" | "isFrameVisible" | "embedIframeRef" | "inlinePreloaderStyle" | "importer" | "container" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
5
|
+
export type { CardAppearance, CardProps, CardPlatform };
|