@atlaskit/smart-card 22.2.0 → 22.3.0
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 +17 -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/BlockCard/components/Action.js +6 -6
- package/dist/cjs/view/BlockCard/components/ActionList.js +10 -10
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +3 -3
- package/dist/cjs/view/BlockCard/components/Content.js +2 -2
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +2 -2
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +2 -2
- package/dist/cjs/view/BlockCard/components/Emoji.js +3 -3
- package/dist/cjs/view/BlockCard/components/Frame.js +5 -5
- package/dist/cjs/view/BlockCard/components/Link.js +2 -2
- package/dist/cjs/view/BlockCard/components/Name.js +2 -2
- package/dist/cjs/view/BlockCard/components/Provider.js +4 -4
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +5 -5
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +2 -2
- package/dist/cjs/view/BlockCard/views/ErroredView.js +11 -11
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +10 -10
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +10 -10
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +14 -14
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +5 -5
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +9 -9
- package/dist/cjs/view/EmbedCard/components/Frame.js +5 -5
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +6 -6
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +10 -10
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +9 -9
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +3 -7
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +25 -25
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +6 -6
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/container/index.js +6 -6
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +9 -9
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +9 -9
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/utils.js +7 -7
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +20 -20
- package/dist/cjs/view/HoverCard/components/HoverCardLoadingView.js +7 -7
- package/dist/cjs/view/HoverCard/components/SnippetOrPreview.js +2 -2
- package/dist/cjs/view/HoverCard/index.js +6 -6
- package/dist/cjs/view/HoverCard/styled.js +10 -10
- package/dist/cjs/view/InlineCard/Icon.js +2 -2
- package/dist/cjs/view/common/Byline.js +2 -2
- package/dist/cjs/view/common/Icon.js +6 -6
- package/dist/cjs/view/common/Metadata.js +5 -5
- package/dist/cjs/view/common/MetadataList.js +3 -3
- package/dist/cjs/view/common/ModalHeader.js +14 -14
- package/dist/es2019/state/helpers.js +2 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +1 -1
- package/dist/es2019/view/BlockCard/components/ActionList.js +1 -1
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +1 -1
- package/dist/es2019/view/BlockCard/components/Content.js +1 -1
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -1
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +1 -1
- package/dist/es2019/view/BlockCard/components/Emoji.js +1 -1
- package/dist/es2019/view/BlockCard/components/Frame.js +1 -1
- package/dist/es2019/view/BlockCard/components/Link.js +1 -1
- package/dist/es2019/view/BlockCard/components/Name.js +1 -1
- package/dist/es2019/view/BlockCard/components/Provider.js +1 -1
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +1 -1
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +1 -1
- package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +2 -6
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +5 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardLoadingView.js +1 -1
- package/dist/es2019/view/HoverCard/components/SnippetOrPreview.js +1 -1
- package/dist/es2019/view/HoverCard/index.js +1 -1
- package/dist/es2019/view/HoverCard/styled.js +1 -1
- package/dist/es2019/view/InlineCard/Icon.js +1 -1
- package/dist/es2019/view/common/Byline.js +1 -1
- package/dist/es2019/view/common/Icon.js +1 -1
- package/dist/es2019/view/common/Metadata.js +1 -1
- package/dist/es2019/view/common/MetadataList.js +1 -1
- package/dist/es2019/view/common/ModalHeader.js +1 -1
- package/dist/esm/state/helpers.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +1 -1
- package/dist/esm/view/BlockCard/components/ActionList.js +1 -1
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +1 -1
- package/dist/esm/view/BlockCard/components/Content.js +1 -1
- package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -1
- package/dist/esm/view/BlockCard/components/ContentHeader.js +1 -1
- package/dist/esm/view/BlockCard/components/Emoji.js +1 -1
- package/dist/esm/view/BlockCard/components/Frame.js +1 -1
- package/dist/esm/view/BlockCard/components/Link.js +1 -1
- package/dist/esm/view/BlockCard/components/Name.js +1 -1
- package/dist/esm/view/BlockCard/components/Provider.js +1 -1
- package/dist/esm/view/BlockCard/components/Thumbnail.js +1 -1
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -1
- package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +1 -1
- package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -1
- package/dist/esm/view/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +2 -5
- package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardLoadingView.js +1 -1
- package/dist/esm/view/HoverCard/components/SnippetOrPreview.js +1 -1
- package/dist/esm/view/HoverCard/index.js +1 -1
- package/dist/esm/view/HoverCard/styled.js +1 -1
- package/dist/esm/view/InlineCard/Icon.js +1 -1
- package/dist/esm/view/common/Byline.js +1 -1
- package/dist/esm/view/common/Icon.js +1 -1
- package/dist/esm/view/common/Metadata.js +1 -1
- package/dist/esm/view/common/MetadataList.js +1 -1
- package/dist/esm/view/common/ModalHeader.js +1 -1
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +2 -2
- package/dist/types/view/BlockCard/components/Action.d.ts +3 -1
- package/dist/types/view/BlockCard/components/ActionList.d.ts +3 -2
- package/dist/types/view/BlockCard/components/CollaboratorList.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Content.d.ts +3 -1
- package/dist/types/view/BlockCard/components/ContentFooter.d.ts +3 -1
- package/dist/types/view/BlockCard/components/ContentHeader.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Emoji.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Frame.d.ts +5 -3
- package/dist/types/view/BlockCard/components/Link.d.ts +3 -2
- package/dist/types/view/BlockCard/components/Name.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Provider.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Thumbnail.d.ts +5 -4
- package/dist/types/view/BlockCard/components/UnresolvedText.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ErroredView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/NotFoundView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ResolvedView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ResolvingView.d.ts +3 -2
- package/dist/types/view/BlockCard/views/UnauthorizedView.d.ts +3 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/EmbedCard/views/ErroredView.d.ts +3 -2
- package/dist/types/view/EmbedModal/components/link-info/styled.d.ts +4 -4
- package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/utils.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -1
- package/dist/types/view/HoverCard/index.d.ts +1 -1
- package/dist/types/view/HoverCard/styled.d.ts +8 -8
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +3 -3
- package/dist/types/view/common/Byline.d.ts +3 -1
- package/dist/types/view/common/Icon.d.ts +3 -1
- package/dist/types/view/common/Metadata.d.ts +3 -1
- package/dist/types/view/common/MetadataList.d.ts +3 -2
- package/dist/types/view/common/ModalHeader.d.ts +3 -1
- 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 +13 -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 +7 -0
- package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +15 -0
- package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +9 -0
- package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +9 -0
- package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +10 -0
- package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +7 -0
- package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +16 -0
- package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +8 -0
- package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +12 -0
- package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +8 -0
- package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +10 -0
- package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +8 -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 +14 -0
- package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +23 -0
- package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +17 -0
- package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +34 -0
- package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +9 -0
- package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +19 -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 +9 -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 +10 -0
- package/dist/types-ts4.0/view/common/Icon.d.ts +11 -0
- package/dist/types-ts4.0/view/common/Metadata.d.ts +10 -0
- package/dist/types-ts4.0/view/common/MetadataList.d.ts +9 -0
- package/dist/types-ts4.0/view/common/Modal.d.ts +26 -0
- package/dist/types-ts4.0/view/common/ModalHeader.d.ts +19 -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 +29 -22
- package/report.api.md +386 -776
- package/ssr/package.json +8 -1
- package/tmp/api-report-tmp.d.ts +794 -0
- package/types/package.json +8 -1
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/smart-card"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import { APIError } from '@atlaskit/linking-common';
|
|
10
|
+
import { Appearance } from '@atlaskit/button/types';
|
|
11
|
+
import { BlockCardAdf } from '@atlaskit/linking-common';
|
|
12
|
+
import { CardAdf } from '@atlaskit/linking-common';
|
|
13
|
+
import { CardAppearance } from '@atlaskit/linking-common';
|
|
14
|
+
import { CardContext } from '@atlaskit/link-provider';
|
|
15
|
+
import { CardPlatform } from '@atlaskit/linking-common';
|
|
16
|
+
import { CardType } from '@atlaskit/linking-common';
|
|
17
|
+
import { CardClient as Client } from '@atlaskit/link-provider';
|
|
18
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
19
|
+
import { EditorCardProvider } from '@atlaskit/link-provider';
|
|
20
|
+
import { editorCardProvider } from '@atlaskit/link-provider';
|
|
21
|
+
import { EmbedCardAdf } from '@atlaskit/linking-common';
|
|
22
|
+
import { ErrorInfo } from 'react';
|
|
23
|
+
import { GasPayload } from '@atlaskit/analytics-gas-types';
|
|
24
|
+
import { InlineCardAdf } from '@atlaskit/linking-common';
|
|
25
|
+
import { JsonLd } from 'json-ld-types';
|
|
26
|
+
import { MessageDescriptor } from 'react-intl-next';
|
|
27
|
+
import { SmartCardProvider as Provider } from '@atlaskit/link-provider';
|
|
28
|
+
import { ProviderProps } from '@atlaskit/link-provider';
|
|
29
|
+
import { default as React_2 } from 'react';
|
|
30
|
+
import { ReactChild } from 'react';
|
|
31
|
+
import { Ref } from 'react';
|
|
32
|
+
import { SerializedStyles } from '@emotion/react';
|
|
33
|
+
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
34
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
35
|
+
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
36
|
+
import { WithIntlProps } from 'react-intl-next';
|
|
37
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
38
|
+
|
|
39
|
+
// @public (undocumented)
|
|
40
|
+
export type ActionItem = CustomActionItem | NamedActionItem;
|
|
41
|
+
|
|
42
|
+
// @public
|
|
43
|
+
export enum ActionName {
|
|
44
|
+
// (undocumented)
|
|
45
|
+
CustomAction = "CustomAction",
|
|
46
|
+
// (undocumented)
|
|
47
|
+
DeleteAction = "DeleteAction",
|
|
48
|
+
// (undocumented)
|
|
49
|
+
EditAction = "EditAction"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// @public (undocumented)
|
|
53
|
+
type ActionProps = {
|
|
54
|
+
size?: SmartLinkSize;
|
|
55
|
+
content?: React.ReactNode;
|
|
56
|
+
appearance?: Appearance;
|
|
57
|
+
onClick: () => any;
|
|
58
|
+
icon?: ReactChild;
|
|
59
|
+
iconPosition?: 'after' | 'before';
|
|
60
|
+
tooltipMessage?: React.ReactNode;
|
|
61
|
+
asDropDownItem?: boolean;
|
|
62
|
+
overrideCss?: SerializedStyles;
|
|
63
|
+
testId?: string;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// @public (undocumented)
|
|
67
|
+
export type AnalyticsAction = 'clicked' | 'closed' | 'connectFailed' | 'connectSucceeded' | 'connected' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'unresolved' | 'viewed';
|
|
68
|
+
|
|
69
|
+
// @public (undocumented)
|
|
70
|
+
export type AnalyticsActionSubject = 'applicationAccount' | 'button' | 'consentModal' | 'embedPreviewModal' | 'hoverCard' | 'modal' | 'smartLink' | 'smartLinkAction';
|
|
71
|
+
|
|
72
|
+
// @public (undocumented)
|
|
73
|
+
type AnalyticsFacade = ReturnType<typeof useSmartLinkAnalytics>;
|
|
74
|
+
|
|
75
|
+
// @public (undocumented)
|
|
76
|
+
export type AnalyticsHandler = (event: AnalyticsPayload) => void;
|
|
77
|
+
|
|
78
|
+
// @public (undocumented)
|
|
79
|
+
type AnalyticsName = 'embedPreviewModal';
|
|
80
|
+
|
|
81
|
+
// @public (undocumented)
|
|
82
|
+
export type AnalyticsPayload = GasPayload & {
|
|
83
|
+
action?: AnalyticsAction;
|
|
84
|
+
actionSubject: AnalyticsActionSubject;
|
|
85
|
+
attributes: GasPayload['attributes'] & {
|
|
86
|
+
display?: CardInnerAppearance;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// @public (undocumented)
|
|
91
|
+
type AnchorTarget = '_blank' | '_parent' | '_self' | '_top';
|
|
92
|
+
|
|
93
|
+
export { APIError }
|
|
94
|
+
|
|
95
|
+
// @public
|
|
96
|
+
type AuthorGroup = {
|
|
97
|
+
name: ElementName.AuthorGroup;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// @public
|
|
101
|
+
type BaseActionItem = {
|
|
102
|
+
hideContent?: boolean;
|
|
103
|
+
hideIcon?: boolean;
|
|
104
|
+
name: ActionName;
|
|
105
|
+
onClick: () => any;
|
|
106
|
+
overrideCss?: SerializedStyles;
|
|
107
|
+
size?: SmartLinkSize;
|
|
108
|
+
testId?: string;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export { BlockCardAdf }
|
|
112
|
+
|
|
113
|
+
// @public (undocumented)
|
|
114
|
+
export const blockCardContentClassName = "block-card-content";
|
|
115
|
+
|
|
116
|
+
// @public (undocumented)
|
|
117
|
+
export const blockCardContentHeaderClassName = "block-card-content-header";
|
|
118
|
+
|
|
119
|
+
// @public (undocumented)
|
|
120
|
+
export const blockCardContentHeaderNameClassName = "block-card-content-header-name";
|
|
121
|
+
|
|
122
|
+
// @public (undocumented)
|
|
123
|
+
export const blockCardErroredViewClassName = "block-card-errored-view";
|
|
124
|
+
|
|
125
|
+
// @public (undocumented)
|
|
126
|
+
export const blockCardForbiddenViewClassName = "block-card-forbidden-view";
|
|
127
|
+
|
|
128
|
+
// @public (undocumented)
|
|
129
|
+
export const blockCardForbiddenViewLinkClassName = "block-card-forbidden-view-link";
|
|
130
|
+
|
|
131
|
+
// @public (undocumented)
|
|
132
|
+
export const blockCardIconImageClassName = "block-card-icon-image";
|
|
133
|
+
|
|
134
|
+
// @public (undocumented)
|
|
135
|
+
export const blockCardNotFoundViewClassName = "block-card-not-found-view";
|
|
136
|
+
|
|
137
|
+
// @public (undocumented)
|
|
138
|
+
export const blockCardResolvedViewByClassName = "block-card-resolved-view-by";
|
|
139
|
+
|
|
140
|
+
// @public (undocumented)
|
|
141
|
+
export const blockCardResolvedViewClassName = "block-card-resolved-view";
|
|
142
|
+
|
|
143
|
+
// @public (undocumented)
|
|
144
|
+
export const blockCardResolvingViewClassName = "block-card-resolving-view";
|
|
145
|
+
|
|
146
|
+
// @public (undocumented)
|
|
147
|
+
type BlockProps = {
|
|
148
|
+
direction?: SmartLinkDirection;
|
|
149
|
+
overrideCss?: SerializedStyles;
|
|
150
|
+
size?: SmartLinkSize;
|
|
151
|
+
status?: SmartLinkStatus;
|
|
152
|
+
testId?: string;
|
|
153
|
+
blockRef?: Ref<HTMLDivElement>;
|
|
154
|
+
onRender?: () => void;
|
|
155
|
+
onTransitionEnd?: () => void;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// @public (undocumented)
|
|
159
|
+
export const Card: React_2.ForwardRefExoticComponent<Pick<Omit<React_2.PropsWithChildren<WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "analyticsEvents" | "appearance" | "children" | "container" | "data" | "embedIframeRef" | "forwardedRef" | "id" | "importer" | "inheritDimensions" | "inlinePreloaderStyle" | "isFrameVisible" | "isSelected" | "key" | "onClick" | "onError" | "onResolve" | "placeholder" | "platform" | "showActions" | "showHoverPreview" | "testId" | "ui" | "url"> & React_2.RefAttributes<any>>;
|
|
160
|
+
|
|
161
|
+
export { CardAdf }
|
|
162
|
+
|
|
163
|
+
export { CardAppearance }
|
|
164
|
+
|
|
165
|
+
export { CardContext }
|
|
166
|
+
|
|
167
|
+
// @public (undocumented)
|
|
168
|
+
type CardInnerAppearance = 'flexible' | 'preview' | CardAppearance;
|
|
169
|
+
|
|
170
|
+
export { CardPlatform }
|
|
171
|
+
|
|
172
|
+
// @public (undocumented)
|
|
173
|
+
export interface CardProps extends WithAnalyticsEventsProps {
|
|
174
|
+
// (undocumented)
|
|
175
|
+
analyticsEvents?: AnalyticsFacade;
|
|
176
|
+
// (undocumented)
|
|
177
|
+
appearance: CardAppearance;
|
|
178
|
+
// (undocumented)
|
|
179
|
+
children?: React.ReactNode;
|
|
180
|
+
// (undocumented)
|
|
181
|
+
container?: HTMLElement;
|
|
182
|
+
// (undocumented)
|
|
183
|
+
data?: any;
|
|
184
|
+
// (undocumented)
|
|
185
|
+
embedIframeRef?: React.Ref<HTMLIFrameElement>;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
id?: string;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
importer?: (target: any) => void;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
inheritDimensions?: boolean;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
194
|
+
// (undocumented)
|
|
195
|
+
isFrameVisible?: boolean;
|
|
196
|
+
// (undocumented)
|
|
197
|
+
isSelected?: boolean;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
onClick?: React.EventHandler<React.KeyboardEvent | React.MouseEvent>;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
onError?: OnErrorCallback;
|
|
202
|
+
// (undocumented)
|
|
203
|
+
onResolve?: OnResolveCallback;
|
|
204
|
+
// (undocumented)
|
|
205
|
+
placeholder?: string;
|
|
206
|
+
// (undocumented)
|
|
207
|
+
platform?: CardPlatform;
|
|
208
|
+
// (undocumented)
|
|
209
|
+
showActions?: boolean;
|
|
210
|
+
// (undocumented)
|
|
211
|
+
showHoverPreview?: boolean;
|
|
212
|
+
// (undocumented)
|
|
213
|
+
testId?: string;
|
|
214
|
+
// (undocumented)
|
|
215
|
+
ui?: FlexibleUiOptions;
|
|
216
|
+
// (undocumented)
|
|
217
|
+
url?: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export { CardType }
|
|
221
|
+
|
|
222
|
+
export { Client }
|
|
223
|
+
|
|
224
|
+
// @public
|
|
225
|
+
type CollaboratorGroup = {
|
|
226
|
+
name: ElementName.CollaboratorGroup;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
// @public
|
|
230
|
+
type CommentCount = {
|
|
231
|
+
name: ElementName.CommentCount;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
// @public (undocumented)
|
|
235
|
+
interface CommonEventProps {
|
|
236
|
+
// (undocumented)
|
|
237
|
+
definitionId?: string;
|
|
238
|
+
// (undocumented)
|
|
239
|
+
destinationProduct?: DestinationProduct | string;
|
|
240
|
+
// (undocumented)
|
|
241
|
+
destinationSubproduct?: DestinationSubproduct | string;
|
|
242
|
+
// (undocumented)
|
|
243
|
+
extensionKey?: string;
|
|
244
|
+
// (undocumented)
|
|
245
|
+
id?: string;
|
|
246
|
+
// (undocumented)
|
|
247
|
+
location?: string;
|
|
248
|
+
// (undocumented)
|
|
249
|
+
resourceType?: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// @public (undocumented)
|
|
253
|
+
type ConnectFailedEventProps = CommonEventProps & {
|
|
254
|
+
id?: string;
|
|
255
|
+
reason?: string;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
// @public (undocumented)
|
|
259
|
+
type ConnectSucceededEventProps = CommonEventProps & {
|
|
260
|
+
id?: string;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
// @public (undocumented)
|
|
264
|
+
export const contentFooterClassName = "smart-link-content-footer";
|
|
265
|
+
|
|
266
|
+
// @public
|
|
267
|
+
type CreatedBy = {
|
|
268
|
+
name: ElementName.CreatedBy;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
// @public
|
|
272
|
+
type CreatedOn = {
|
|
273
|
+
name: ElementName.CreatedOn;
|
|
274
|
+
text?: string;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
// @public
|
|
278
|
+
type CustomActionItem = BaseActionItem & {
|
|
279
|
+
name: ActionName.CustomAction;
|
|
280
|
+
} & (((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>) | (Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>));
|
|
281
|
+
|
|
282
|
+
// @public (undocumented)
|
|
283
|
+
type DestinationProduct = 'bitbucket' | 'confluence' | 'jira' | 'trello';
|
|
284
|
+
|
|
285
|
+
// @public (undocumented)
|
|
286
|
+
type DestinationSubproduct = 'core' | 'servicedesk' | 'software';
|
|
287
|
+
|
|
288
|
+
// @public
|
|
289
|
+
type DueOn = {
|
|
290
|
+
name: ElementName.DueOn;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
export { EditorCardProvider }
|
|
294
|
+
|
|
295
|
+
export { editorCardProvider }
|
|
296
|
+
|
|
297
|
+
// @public
|
|
298
|
+
export type ElementItem = {
|
|
299
|
+
overrideCss?: SerializedStyles;
|
|
300
|
+
size?: SmartLinkSize;
|
|
301
|
+
testId?: string;
|
|
302
|
+
} & ElementItemProps;
|
|
303
|
+
|
|
304
|
+
// @public
|
|
305
|
+
type ElementItemProps = AuthorGroup | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | ModifiedBy | ModifiedOn | Preview | Priority | ProgrammingLanguage | Provider_2 | ReactCount | Snippet | SourceBranch | State_2 | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
306
|
+
|
|
307
|
+
// @public
|
|
308
|
+
export enum ElementName {
|
|
309
|
+
// (undocumented)
|
|
310
|
+
AuthorGroup = "AuthorGroup",
|
|
311
|
+
// (undocumented)
|
|
312
|
+
CollaboratorGroup = "CollaboratorGroup",
|
|
313
|
+
// (undocumented)
|
|
314
|
+
CommentCount = "CommentCount",
|
|
315
|
+
// (undocumented)
|
|
316
|
+
CreatedBy = "CreatedBy",
|
|
317
|
+
// (undocumented)
|
|
318
|
+
CreatedOn = "CreatedOn",
|
|
319
|
+
// (undocumented)
|
|
320
|
+
DueOn = "DueOn",
|
|
321
|
+
// (undocumented)
|
|
322
|
+
LatestCommit = "LatestCommit",
|
|
323
|
+
// (undocumented)
|
|
324
|
+
LinkIcon = "LinkIcon",
|
|
325
|
+
// (undocumented)
|
|
326
|
+
ModifiedBy = "ModifiedBy",
|
|
327
|
+
// (undocumented)
|
|
328
|
+
ModifiedOn = "ModifiedOn",
|
|
329
|
+
// (undocumented)
|
|
330
|
+
Preview = "Preview",
|
|
331
|
+
// (undocumented)
|
|
332
|
+
Priority = "Priority",
|
|
333
|
+
// (undocumented)
|
|
334
|
+
ProgrammingLanguage = "ProgrammingLanguage",
|
|
335
|
+
// (undocumented)
|
|
336
|
+
Provider = "Provider",
|
|
337
|
+
// (undocumented)
|
|
338
|
+
ReactCount = "ReactCount",
|
|
339
|
+
// (undocumented)
|
|
340
|
+
Snippet = "Snippet",
|
|
341
|
+
// (undocumented)
|
|
342
|
+
SourceBranch = "SourceBranch",
|
|
343
|
+
// (undocumented)
|
|
344
|
+
State = "State",
|
|
345
|
+
// (undocumented)
|
|
346
|
+
SubscriberCount = "SubscriberCount",
|
|
347
|
+
// (undocumented)
|
|
348
|
+
TargetBranch = "TargetBranch",
|
|
349
|
+
// (undocumented)
|
|
350
|
+
Title = "Title",
|
|
351
|
+
// (undocumented)
|
|
352
|
+
ViewCount = "ViewCount",
|
|
353
|
+
// (undocumented)
|
|
354
|
+
VoteCount = "VoteCount"
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export { EmbedCardAdf }
|
|
358
|
+
|
|
359
|
+
// @public (undocumented)
|
|
360
|
+
export const embedHeaderHeight = 32;
|
|
361
|
+
|
|
362
|
+
// @public (undocumented)
|
|
363
|
+
export class EmbedResizeMessageListener extends React_2.Component<Props, State> {
|
|
364
|
+
// (undocumented)
|
|
365
|
+
componentDidMount(): void;
|
|
366
|
+
// (undocumented)
|
|
367
|
+
componentWillUnmount(): void;
|
|
368
|
+
// (undocumented)
|
|
369
|
+
render(): React_2.ReactNode;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// @public (undocumented)
|
|
373
|
+
type ErrorCardType = 'errored' | 'fallback' | 'forbidden' | 'not_found' | 'unauthorized';
|
|
374
|
+
|
|
375
|
+
// @public (undocumented)
|
|
376
|
+
type FlexibleUiOptions = {
|
|
377
|
+
clickableContainer?: boolean;
|
|
378
|
+
hideElevation?: boolean;
|
|
379
|
+
hidePadding?: boolean;
|
|
380
|
+
hideBackground?: boolean;
|
|
381
|
+
size?: SmartLinkSize;
|
|
382
|
+
theme?: SmartLinkTheme;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
// @public
|
|
386
|
+
export const FooterBlock: React_2.FC<FooterBlockProps>;
|
|
387
|
+
|
|
388
|
+
// @public (undocumented)
|
|
389
|
+
type FooterBlockProps = {
|
|
390
|
+
actions?: ActionItem[];
|
|
391
|
+
} & BlockProps;
|
|
392
|
+
|
|
393
|
+
export { InlineCardAdf }
|
|
394
|
+
|
|
395
|
+
// @public (undocumented)
|
|
396
|
+
type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
|
|
397
|
+
|
|
398
|
+
// @public (undocumented)
|
|
399
|
+
type InstrumentEventProps = CommonEventProps & {
|
|
400
|
+
error?: APIError;
|
|
401
|
+
status: CardType;
|
|
402
|
+
id: string;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
// @public (undocumented)
|
|
406
|
+
type InvokeFailedEventProps = CommonEventProps & {
|
|
407
|
+
id: string;
|
|
408
|
+
actionType: string;
|
|
409
|
+
display: CardInnerAppearance;
|
|
410
|
+
reason: string;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
// @public (undocumented)
|
|
414
|
+
type InvokeSucceededEventProps = CommonEventProps & {
|
|
415
|
+
id: string;
|
|
416
|
+
actionType: string;
|
|
417
|
+
display: CardInnerAppearance;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
// @public (undocumented)
|
|
421
|
+
type InvokeType = 'client' | 'server';
|
|
422
|
+
|
|
423
|
+
// @public
|
|
424
|
+
type LatestCommit = {
|
|
425
|
+
name: ElementName.LatestCommit;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
// @public
|
|
429
|
+
type LinkIcon = {
|
|
430
|
+
name: ElementName.LinkIcon;
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
// @public (undocumented)
|
|
434
|
+
export const loadingPlaceholderClassName = "smart-link-loading-placeholder";
|
|
435
|
+
|
|
436
|
+
// @public
|
|
437
|
+
export const MetadataBlock: React_2.FC<MetadataBlockProps>;
|
|
438
|
+
|
|
439
|
+
// @public (undocumented)
|
|
440
|
+
type MetadataBlockProps = {
|
|
441
|
+
maxLines?: number;
|
|
442
|
+
primary?: ElementItem[];
|
|
443
|
+
secondary?: ElementItem[];
|
|
444
|
+
} & BlockProps;
|
|
445
|
+
|
|
446
|
+
// @public (undocumented)
|
|
447
|
+
export const metadataListClassName = "smart-link-metadata-list";
|
|
448
|
+
|
|
449
|
+
// @public
|
|
450
|
+
type ModifiedBy = {
|
|
451
|
+
name: ElementName.ModifiedBy;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
// @public
|
|
455
|
+
type ModifiedOn = {
|
|
456
|
+
name: ElementName.ModifiedOn;
|
|
457
|
+
text?: string;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
// @public
|
|
461
|
+
type NamedActionItem = BaseActionItem & {
|
|
462
|
+
name: Exclude<ActionName, ActionName.CustomAction>;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
// @public (undocumented)
|
|
466
|
+
export type OnActionMenuOpenChangeOptions = {
|
|
467
|
+
isOpen: boolean;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
// @public (undocumented)
|
|
471
|
+
type OnErrorCallback = (data: {
|
|
472
|
+
status: Extract<CardType, ErrorCardType>;
|
|
473
|
+
url: string;
|
|
474
|
+
}) => void;
|
|
475
|
+
|
|
476
|
+
// @public (undocumented)
|
|
477
|
+
type OnResolveCallback = (data: {
|
|
478
|
+
url?: string;
|
|
479
|
+
title?: string;
|
|
480
|
+
aspectRatio?: number;
|
|
481
|
+
}) => void;
|
|
482
|
+
|
|
483
|
+
// @public
|
|
484
|
+
type Preview = {
|
|
485
|
+
name: ElementName.Preview;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
// @public
|
|
489
|
+
export const PreviewBlock: React_2.FC<PreviewBlockProps>;
|
|
490
|
+
|
|
491
|
+
// @public (undocumented)
|
|
492
|
+
type PreviewBlockProps = {
|
|
493
|
+
onError?: () => void;
|
|
494
|
+
} & BlockProps;
|
|
495
|
+
|
|
496
|
+
// @public (undocumented)
|
|
497
|
+
type PreviewDisplay = 'card' | 'embed';
|
|
498
|
+
|
|
499
|
+
// @public (undocumented)
|
|
500
|
+
type PreviewInvokeMethod = 'keyboard' | 'mouse_click' | 'mouse_hover';
|
|
501
|
+
|
|
502
|
+
// @public
|
|
503
|
+
type Priority = {
|
|
504
|
+
name: ElementName.Priority;
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
// @public
|
|
508
|
+
type ProgrammingLanguage = {
|
|
509
|
+
name: ElementName.ProgrammingLanguage;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
// @public (undocumented)
|
|
513
|
+
interface Props {
|
|
514
|
+
// (undocumented)
|
|
515
|
+
embedIframeRef: React_2.RefObject<HTMLIFrameElement>;
|
|
516
|
+
// (undocumented)
|
|
517
|
+
onHeightUpdate: (height: number) => void;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export { Provider }
|
|
521
|
+
|
|
522
|
+
// @public
|
|
523
|
+
type Provider_2 = {
|
|
524
|
+
name: ElementName.Provider;
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
export { ProviderProps }
|
|
528
|
+
|
|
529
|
+
// @public
|
|
530
|
+
type ReactCount = {
|
|
531
|
+
name: ElementName.ReactCount;
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
// @public (undocumented)
|
|
535
|
+
export type ResolveResponse = JsonLd.Response;
|
|
536
|
+
|
|
537
|
+
// @public
|
|
538
|
+
type RetryOptions = {
|
|
539
|
+
descriptor?: MessageDescriptor;
|
|
540
|
+
onClick?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
541
|
+
values?: Record<string, string>;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
// @public (undocumented)
|
|
545
|
+
type ScreenAuthPopupEventProps = CommonEventProps;
|
|
546
|
+
|
|
547
|
+
export { SmartCardContext as Context }
|
|
548
|
+
export { SmartCardContext }
|
|
549
|
+
|
|
550
|
+
// @public
|
|
551
|
+
export enum SmartLinkDirection {
|
|
552
|
+
// (undocumented)
|
|
553
|
+
Horizontal = "horizontal",
|
|
554
|
+
// (undocumented)
|
|
555
|
+
Vertical = "vertical"
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// @public (undocumented)
|
|
559
|
+
export class SmartLinkEvents {
|
|
560
|
+
// (undocumented)
|
|
561
|
+
insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
// @public
|
|
565
|
+
export enum SmartLinkPosition {
|
|
566
|
+
// (undocumented)
|
|
567
|
+
Center = "center",
|
|
568
|
+
// (undocumented)
|
|
569
|
+
Top = "top"
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
// @public
|
|
573
|
+
export enum SmartLinkSize {
|
|
574
|
+
// (undocumented)
|
|
575
|
+
Large = "large",
|
|
576
|
+
// (undocumented)
|
|
577
|
+
Medium = "medium",
|
|
578
|
+
// (undocumented)
|
|
579
|
+
Small = "small",
|
|
580
|
+
// (undocumented)
|
|
581
|
+
XLarge = "xlarge"
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
// @public
|
|
585
|
+
enum SmartLinkStatus {
|
|
586
|
+
// (undocumented)
|
|
587
|
+
Errored = "errored",
|
|
588
|
+
// (undocumented)
|
|
589
|
+
Fallback = "fallback",
|
|
590
|
+
// (undocumented)
|
|
591
|
+
Forbidden = "forbidden",
|
|
592
|
+
// (undocumented)
|
|
593
|
+
NotFound = "not_found",
|
|
594
|
+
// (undocumented)
|
|
595
|
+
Pending = "pending",
|
|
596
|
+
// (undocumented)
|
|
597
|
+
Resolved = "resolved",
|
|
598
|
+
// (undocumented)
|
|
599
|
+
Resolving = "resolving",
|
|
600
|
+
// (undocumented)
|
|
601
|
+
Unauthorized = "unauthorized"
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// @public
|
|
605
|
+
export enum SmartLinkTheme {
|
|
606
|
+
// (undocumented)
|
|
607
|
+
Black = "black",
|
|
608
|
+
// (undocumented)
|
|
609
|
+
Link = "link"
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
// @public
|
|
613
|
+
type Snippet = {
|
|
614
|
+
name: ElementName.Snippet;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
// @public
|
|
618
|
+
export const SnippetBlock: React_2.FC<SnippetBlockProps>;
|
|
619
|
+
|
|
620
|
+
// @public (undocumented)
|
|
621
|
+
type SnippetBlockProps = {
|
|
622
|
+
maxLines?: number;
|
|
623
|
+
} & BlockProps;
|
|
624
|
+
|
|
625
|
+
// @public
|
|
626
|
+
type SourceBranch = {
|
|
627
|
+
name: ElementName.SourceBranch;
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
// @public (undocumented)
|
|
631
|
+
interface State {
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
// @public
|
|
635
|
+
type State_2 = {
|
|
636
|
+
name: ElementName.State;
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
// @public
|
|
640
|
+
type SubscriberCount = {
|
|
641
|
+
name: ElementName.SubscriberCount;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
// @public
|
|
645
|
+
type TargetBranch = {
|
|
646
|
+
name: ElementName.TargetBranch;
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
// @public
|
|
650
|
+
type Title = {
|
|
651
|
+
name: ElementName.Title;
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
// @public
|
|
655
|
+
export const TitleBlock: React_2.FC<TitleBlockProps>;
|
|
656
|
+
|
|
657
|
+
// @public (undocumented)
|
|
658
|
+
type TitleBlockProps = {
|
|
659
|
+
actions?: ActionItem[];
|
|
660
|
+
anchorTarget?: AnchorTarget;
|
|
661
|
+
hideTitleTooltip?: boolean;
|
|
662
|
+
maxLines?: number;
|
|
663
|
+
metadata?: ElementItem[];
|
|
664
|
+
onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
|
|
665
|
+
position?: SmartLinkPosition;
|
|
666
|
+
onClick?: React_2.EventHandler<React_2.KeyboardEvent | React_2.MouseEvent>;
|
|
667
|
+
retry?: RetryOptions;
|
|
668
|
+
showActionOnHover?: boolean;
|
|
669
|
+
subtitle?: ElementItem[];
|
|
670
|
+
text?: string;
|
|
671
|
+
theme?: SmartLinkTheme;
|
|
672
|
+
} & BlockProps;
|
|
673
|
+
|
|
674
|
+
// @public (undocumented)
|
|
675
|
+
type TrackAppAccountConnectedProps = CommonEventProps;
|
|
676
|
+
|
|
677
|
+
// @public (undocumented)
|
|
678
|
+
type UiActionClickedEventProps = CommonEventProps & {
|
|
679
|
+
id: string;
|
|
680
|
+
display: CardInnerAppearance;
|
|
681
|
+
actionType: string;
|
|
682
|
+
invokeType?: InvokeType;
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
// @public (undocumented)
|
|
686
|
+
type UiAuthAlternateAccountEventProps = CommonEventProps & {
|
|
687
|
+
display: CardInnerAppearance;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
// @public (undocumented)
|
|
691
|
+
type UiAuthEventProps = CommonEventProps & {
|
|
692
|
+
display: CardInnerAppearance;
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
// @public (undocumented)
|
|
696
|
+
type UiCardClickedEventProps = CommonEventProps & {
|
|
697
|
+
id: string;
|
|
698
|
+
display: CardInnerAppearance;
|
|
699
|
+
status: CardType;
|
|
700
|
+
isModifierKeyPressed?: boolean;
|
|
701
|
+
actionSubjectId?: string;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
// @public (undocumented)
|
|
705
|
+
type UiClosedAuthEventProps = CommonEventProps & {
|
|
706
|
+
display: CardInnerAppearance;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
// @public (undocumented)
|
|
710
|
+
type UiHoverCardDismissedEventProps = CommonEventProps & {
|
|
711
|
+
previewDisplay: PreviewDisplay;
|
|
712
|
+
hoverTime: number;
|
|
713
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
// @public (undocumented)
|
|
717
|
+
type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
718
|
+
previewDisplay: PreviewDisplay;
|
|
719
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
// @public (undocumented)
|
|
723
|
+
type UiHoverCardViewedEventProps = CommonEventProps & {
|
|
724
|
+
previewDisplay: PreviewDisplay;
|
|
725
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
// @public (undocumented)
|
|
729
|
+
type UiRenderFailedEventProps = CommonEventProps & {
|
|
730
|
+
display: CardInnerAppearance;
|
|
731
|
+
error: Error;
|
|
732
|
+
errorInfo: ErrorInfo;
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
// @public (undocumented)
|
|
736
|
+
type UiRenderSuccessEventProps = CommonEventProps & {
|
|
737
|
+
display: CardInnerAppearance;
|
|
738
|
+
status: CardType;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
// @public
|
|
742
|
+
export const useSmartLinkAnalytics: (url: string, dispatchAnalytics: AnalyticsHandler, id?: string | undefined, defaultLocation?: string | undefined) => {
|
|
743
|
+
ui: {
|
|
744
|
+
authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthEventProps) => void;
|
|
745
|
+
authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthAlternateAccountEventProps) => void;
|
|
746
|
+
buttonClickedEvent: (data: Partial<AnalyticsPayload> & {
|
|
747
|
+
actionSubjectId: Required<string>;
|
|
748
|
+
}) => void;
|
|
749
|
+
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
|
|
750
|
+
actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
751
|
+
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
|
|
752
|
+
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
|
|
753
|
+
modalClosedEvent: (data: Partial<AnalyticsPayload> & {
|
|
754
|
+
actionSubjectId: Required<string>;
|
|
755
|
+
}) => void;
|
|
756
|
+
renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
|
|
757
|
+
renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
758
|
+
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardViewedEventProps) => void;
|
|
759
|
+
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardDismissedEventProps) => void;
|
|
760
|
+
};
|
|
761
|
+
operational: {
|
|
762
|
+
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
|
|
763
|
+
invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
|
|
764
|
+
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
|
|
765
|
+
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
|
|
766
|
+
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
|
|
767
|
+
};
|
|
768
|
+
track: {
|
|
769
|
+
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
|
|
770
|
+
};
|
|
771
|
+
screen: {
|
|
772
|
+
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
|
|
773
|
+
modalViewedEvent: (data: Partial<AnalyticsPayload> & {
|
|
774
|
+
name: Extract<AnalyticsName, 'embedPreviewModal'>;
|
|
775
|
+
}) => void;
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
// @public (undocumented)
|
|
780
|
+
export function useSmartLinkEvents(): SmartLinkEvents;
|
|
781
|
+
|
|
782
|
+
// @public
|
|
783
|
+
type ViewCount = {
|
|
784
|
+
name: ElementName.ViewCount;
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
// @public
|
|
788
|
+
type VoteCount = {
|
|
789
|
+
name: ElementName.VoteCount;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
// (No @packageDocumentation comment for this package)
|
|
793
|
+
|
|
794
|
+
```
|