@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,159 @@
|
|
|
1
|
+
import { LinkLozenge } from '../../extractors/common/lozenge/types';
|
|
2
|
+
import { LinkPerson } from '@atlaskit/linking-common/extractors';
|
|
3
|
+
import { IconType, MediaType } from '../../constants';
|
|
4
|
+
/**
|
|
5
|
+
* This provides the data that will be used by Smart Links Flexible UI to populate it's
|
|
6
|
+
* underlying elements.
|
|
7
|
+
*/
|
|
8
|
+
export declare type FlexibleUiDataContext = {
|
|
9
|
+
/**
|
|
10
|
+
* An array containing data used to populate the AuthorGroup element.
|
|
11
|
+
* @see AvatarGroup
|
|
12
|
+
*/
|
|
13
|
+
authorGroup?: LinkPerson[];
|
|
14
|
+
/**
|
|
15
|
+
* An array containing a @type {LinkPerson} used to populate the CollaboratorGroup element.
|
|
16
|
+
* @see CollaboratorGroup
|
|
17
|
+
*/
|
|
18
|
+
collaboratorGroup?: LinkPerson[];
|
|
19
|
+
/**
|
|
20
|
+
* Contains the number of comments of the linked resource.
|
|
21
|
+
* @type number
|
|
22
|
+
* @see CommentCount
|
|
23
|
+
*/
|
|
24
|
+
commentCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Contains the ISO timestamp of when the resource was due.
|
|
27
|
+
* This value is mapped to JsonLD endTime.
|
|
28
|
+
* @type string - ISO Timestamp
|
|
29
|
+
* @see DueOn
|
|
30
|
+
*/
|
|
31
|
+
dueOn?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Contains the number of views of the linked resource.
|
|
34
|
+
* @type number
|
|
35
|
+
* @see ViewCount
|
|
36
|
+
*/
|
|
37
|
+
viewCount?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Contains the number of react of the linked resource.
|
|
40
|
+
* @type number
|
|
41
|
+
* @see ReactCount
|
|
42
|
+
*/
|
|
43
|
+
reactCount?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Contains the number of votes of the linked resource.
|
|
46
|
+
* @type number
|
|
47
|
+
* @see VoteCount
|
|
48
|
+
*/
|
|
49
|
+
voteCount?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Contains the name of the entity that created the resource.
|
|
52
|
+
* @type string
|
|
53
|
+
* @see CreatedBy
|
|
54
|
+
*/
|
|
55
|
+
createdBy?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Contains the ISO timestamp of when the resource was created.
|
|
58
|
+
* @type string - ISO Timestamp
|
|
59
|
+
* @see CreatedOn
|
|
60
|
+
*/
|
|
61
|
+
createdOn?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Contains the information about the latest commit in the repository
|
|
64
|
+
*/
|
|
65
|
+
latestCommit?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Contains the favicon of the resource.
|
|
68
|
+
* @type Icon
|
|
69
|
+
* @see LinkIcon
|
|
70
|
+
*/
|
|
71
|
+
linkIcon?: Icon;
|
|
72
|
+
/**
|
|
73
|
+
* Contains the name of the entity that last modified the resource.
|
|
74
|
+
* @type string
|
|
75
|
+
* @see ModifiedBy
|
|
76
|
+
*/
|
|
77
|
+
modifiedBy?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Contains the ISO timestamp of when the resource was last modified.
|
|
80
|
+
* @type string - ISO Timestamp
|
|
81
|
+
* @see ModifiedOn
|
|
82
|
+
*/
|
|
83
|
+
modifiedOn?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Contains the preview (typically the thumbnail) of the resource.
|
|
86
|
+
* @type Media
|
|
87
|
+
* @see Preview
|
|
88
|
+
*/
|
|
89
|
+
preview?: Media;
|
|
90
|
+
/**
|
|
91
|
+
* Contains the priority icon of the resource.
|
|
92
|
+
* @type Icon
|
|
93
|
+
* @see Priority
|
|
94
|
+
*/
|
|
95
|
+
priority?: Icon;
|
|
96
|
+
/**
|
|
97
|
+
* Contains the programming language of the resource.
|
|
98
|
+
* @type string
|
|
99
|
+
* @see ProgrammingLanguage
|
|
100
|
+
*/
|
|
101
|
+
programmingLanguage?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Contains the provider icon of the linked resource.
|
|
104
|
+
* @type Icon
|
|
105
|
+
* @see Provider
|
|
106
|
+
*/
|
|
107
|
+
provider?: Icon;
|
|
108
|
+
/**
|
|
109
|
+
* Contains the snippet of the resource.
|
|
110
|
+
* @type string
|
|
111
|
+
* @see Snippet
|
|
112
|
+
*/
|
|
113
|
+
snippet?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Contains the source branch name of the link typed pull request.
|
|
116
|
+
* @type string
|
|
117
|
+
* @see SourceBranch
|
|
118
|
+
*/
|
|
119
|
+
sourceBranch?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Contains the number of subscribers of the linked resource.
|
|
122
|
+
* @type number
|
|
123
|
+
* @see SubscriberCount
|
|
124
|
+
*/
|
|
125
|
+
subscriberCount?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Contains the number of subscribers of the linked resource.
|
|
128
|
+
* @type number
|
|
129
|
+
* @see SubscriberCount
|
|
130
|
+
*/
|
|
131
|
+
state?: LinkLozenge;
|
|
132
|
+
/**
|
|
133
|
+
* Contains the target branch name of the link typed pull request.
|
|
134
|
+
* @type string
|
|
135
|
+
* @see TargetBranch
|
|
136
|
+
*/
|
|
137
|
+
targetBranch?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Contains the Title of the linked resource.
|
|
140
|
+
* @type string
|
|
141
|
+
* @see Title
|
|
142
|
+
*/
|
|
143
|
+
title?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Contains the url of the linked resource.
|
|
146
|
+
* @type string
|
|
147
|
+
* @see Title
|
|
148
|
+
*/
|
|
149
|
+
url?: string;
|
|
150
|
+
};
|
|
151
|
+
export declare type Icon = {
|
|
152
|
+
icon?: IconType;
|
|
153
|
+
label?: string;
|
|
154
|
+
url?: string;
|
|
155
|
+
};
|
|
156
|
+
export declare type Media = {
|
|
157
|
+
type: MediaType;
|
|
158
|
+
url: string;
|
|
159
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CardType, CardStore } from '@atlaskit/linking-common';
|
|
3
|
+
import { DestinationProduct, DestinationSubproduct } from '../utils/analytics/types';
|
|
4
|
+
export declare const getByDefinitionId: (definitionId: string | undefined, store: CardStore) => string[];
|
|
5
|
+
export declare const getClickUrl: (url: string, jsonLd?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string;
|
|
6
|
+
export declare const getDefinitionId: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
|
|
7
|
+
export declare const getExtensionKey: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
|
|
8
|
+
export declare const getResourceType: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
|
|
9
|
+
export declare const getProduct: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => DestinationProduct | string | undefined;
|
|
10
|
+
export declare const getSubproduct: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => DestinationSubproduct | string | undefined;
|
|
11
|
+
export declare const getServices: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => JsonLd.Primitives.AuthService[];
|
|
12
|
+
export declare const hasResolved: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => boolean | undefined;
|
|
13
|
+
export declare const isAccessible: ({ meta: { access } }: JsonLd.Response) => boolean;
|
|
14
|
+
export declare const isVisible: ({ meta: { visibility } }: JsonLd.Response) => boolean;
|
|
15
|
+
export declare const getStatus: ({ meta }: JsonLd.Response) => CardType;
|
|
16
|
+
export declare const isFinalState: (status: CardType) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePrefetch(url: string): () => Promise<void>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AnalyticsHandler } from '../../utils/types';
|
|
2
|
+
export declare function useSmartLink(id: string, url: string, dispatchAnalytics: AnalyticsHandler): {
|
|
3
|
+
state: import("@atlaskit/linking-common").CardState;
|
|
4
|
+
actions: {
|
|
5
|
+
register: () => Promise<void>;
|
|
6
|
+
reload: () => void;
|
|
7
|
+
authorize: (appearance: import("@atlaskit/linking-common").CardAppearance) => void;
|
|
8
|
+
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("json-ld-types").JsonLd.Response<import("json-ld-types").JsonLd.Data.BaseData>>;
|
|
9
|
+
loadMetadata: () => Promise<void> | undefined;
|
|
10
|
+
};
|
|
11
|
+
config: (import("@atlaskit/link-provider").CardProviderCacheOpts & import("@atlaskit/link-provider").CardAuthFlowOpts) | undefined;
|
|
12
|
+
analytics: {
|
|
13
|
+
ui: {
|
|
14
|
+
authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthEventProps) => void;
|
|
15
|
+
authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthAlternateAccountEventProps) => void;
|
|
16
|
+
buttonClickedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
|
|
17
|
+
actionSubjectId: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../utils/analytics/types").UiCardClickedEventProps) => void;
|
|
20
|
+
actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
|
|
21
|
+
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
22
|
+
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiClosedAuthEventProps) => void;
|
|
23
|
+
modalClosedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
|
|
24
|
+
actionSubjectId: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
|
|
27
|
+
renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
|
|
28
|
+
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
|
|
29
|
+
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
30
|
+
};
|
|
31
|
+
operational: {
|
|
32
|
+
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
|
|
33
|
+
invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeFailedEventProps) => void;
|
|
34
|
+
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectSucceededEventProps) => void;
|
|
35
|
+
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectFailedEventProps) => void;
|
|
36
|
+
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../utils/analytics/types").InstrumentEventProps) => void;
|
|
37
|
+
};
|
|
38
|
+
track: {
|
|
39
|
+
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
40
|
+
};
|
|
41
|
+
screen: {
|
|
42
|
+
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
43
|
+
modalViewedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
|
|
44
|
+
name: "embedPreviewModal";
|
|
45
|
+
}) => void;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
renderers: import("@atlaskit/link-provider").CardProviderRenderers | undefined;
|
|
49
|
+
error: Error | null;
|
|
50
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { JsonLd } from 'json-ld-types';
|
|
3
|
+
import type { AnalyticsHandler, AnalyticsOrigin } from '../../utils/types';
|
|
4
|
+
import type { CardInnerAppearance } from '../../view/Card/types';
|
|
5
|
+
export interface LinkAction {
|
|
6
|
+
/**
|
|
7
|
+
* Unique ID for the action.
|
|
8
|
+
* @example `delete-action`
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text to render for the action.
|
|
13
|
+
* @description Use this in tooltips and UI.
|
|
14
|
+
* @example `Delete`.
|
|
15
|
+
*/
|
|
16
|
+
text: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Promise to invoke on triggering this action.
|
|
19
|
+
* @example Clicking on `Delete` leading to deletion of content.
|
|
20
|
+
*/
|
|
21
|
+
invoke: () => Promise<any>;
|
|
22
|
+
}
|
|
23
|
+
export interface UseSmartLinkActionsOpts {
|
|
24
|
+
/**
|
|
25
|
+
* Smart Link URL for which actions will be invoked.
|
|
26
|
+
* @example https://start.atlassian.com
|
|
27
|
+
*/
|
|
28
|
+
url: string;
|
|
29
|
+
/**
|
|
30
|
+
* Appearance under which these actions will be invoked.
|
|
31
|
+
* @example `block` for card views.
|
|
32
|
+
*/
|
|
33
|
+
appearance: CardInnerAppearance;
|
|
34
|
+
/**
|
|
35
|
+
* Callback for sending analytics events.
|
|
36
|
+
* @description Accepts an analytics payload and fires it to a system.
|
|
37
|
+
*/
|
|
38
|
+
analyticsHandler: AnalyticsHandler;
|
|
39
|
+
/**
|
|
40
|
+
* Platform on which actions are being invoked.
|
|
41
|
+
* @default 'web'
|
|
42
|
+
*/
|
|
43
|
+
platform?: JsonLd.Primitives.Platforms;
|
|
44
|
+
/**
|
|
45
|
+
* Smart link origin that the action being invoked from.
|
|
46
|
+
*/
|
|
47
|
+
origin?: AnalyticsOrigin;
|
|
48
|
+
}
|
|
49
|
+
export declare function useSmartLinkActions({ url, appearance, analyticsHandler, platform, origin, }: UseSmartLinkActionsOpts): LinkAction[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AnalyticsHandler } from '../../utils/types';
|
|
2
|
+
export interface UseSmartLinkReloadOpts {
|
|
3
|
+
/**
|
|
4
|
+
* Smart Link URL for which the reload will be invoked.
|
|
5
|
+
* @example https://start.atlassian.com
|
|
6
|
+
*/
|
|
7
|
+
url: string;
|
|
8
|
+
/**
|
|
9
|
+
* Callback for sending analytics events.
|
|
10
|
+
* @description Accepts an analytics payload and fires it to a system.
|
|
11
|
+
*/
|
|
12
|
+
analyticsHandler: AnalyticsHandler;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Exposes a programmatic way to reload the data being used to render a Smart Link.
|
|
16
|
+
* @param
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function useSmartLinkReload({ url, analyticsHandler, }: UseSmartLinkReloadOpts): () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SmartCardContext, SmartCardProvider, useSmartLinkContext, } from '@atlaskit/link-provider';
|
|
2
|
+
export type { CardContext, ProviderProps } from '@atlaskit/link-provider';
|
|
3
|
+
export type { CardType } from '@atlaskit/linking-common';
|
|
4
|
+
export { useSmartLink, usePrefetch } from './hooks';
|
|
5
|
+
export { useSmartLinkAnalytics } from './analytics';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Reducer } from 'react';
|
|
2
|
+
import { CardAction, CardActionType } from '@atlaskit/linking-common';
|
|
3
|
+
export declare type CardReducerMap<StateType, ActionType> = Record<CardActionType, CardReducer<StateType, ActionType>>;
|
|
4
|
+
export declare type CardReducer<StateType, ActionType> = Reducer<StateType, CardAction<ActionType>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CardStore, CardState } from '@atlaskit/linking-common';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { RequestAccessMessageKey } from './messages';
|
|
3
|
+
export type { CardContext } from '@atlaskit/link-provider';
|
|
4
|
+
import { AccessContext } from './view/types';
|
|
5
|
+
import { ActionProps } from './view/BlockCard/components/Action';
|
|
6
|
+
export declare type ResolveResponse = JsonLd.Response;
|
|
7
|
+
export type { ProviderProps, CardType } from './state';
|
|
8
|
+
export type { CardProps, CardAppearance, CardPlatform, } from './view/Card/types';
|
|
9
|
+
export interface RequestAccessContextProps extends AccessContext {
|
|
10
|
+
action?: ActionProps;
|
|
11
|
+
callToActionMessageKey?: RequestAccessMessageKey;
|
|
12
|
+
descriptiveMessageKey?: RequestAccessMessageKey;
|
|
13
|
+
}
|
|
14
|
+
export declare type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
|
|
15
|
+
export declare type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|
|
16
|
+
export interface LozengeProps {
|
|
17
|
+
text: string;
|
|
18
|
+
appearance?: LozengeColor;
|
|
19
|
+
isBold?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { AnalyticsPayload } from '../types';
|
|
3
|
+
import { CardInnerAppearance } from '../../view/Card/types';
|
|
4
|
+
import { ConnectFailedEventProps, ConnectSucceededEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ResolvedEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UnresolvedEventProps } from './types';
|
|
5
|
+
export declare const ANALYTICS_CHANNEL = "media";
|
|
6
|
+
export declare const context: {
|
|
7
|
+
componentName: string;
|
|
8
|
+
packageName: any;
|
|
9
|
+
packageVersion: any;
|
|
10
|
+
};
|
|
11
|
+
export declare class SmartLinkEvents {
|
|
12
|
+
insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
13
|
+
}
|
|
14
|
+
export declare const fireSmartLinkEvent: (payload: AnalyticsPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent | undefined) => void;
|
|
15
|
+
export declare const resolvedEvent: (props: ResolvedEventProps) => AnalyticsPayload;
|
|
16
|
+
export declare const unresolvedEvent: ({ id, definitionId, extensionKey, resourceType, destinationSubproduct, destinationProduct, error, status, location, }: UnresolvedEventProps) => AnalyticsPayload;
|
|
17
|
+
export declare const invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => AnalyticsPayload;
|
|
18
|
+
export declare const invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => AnalyticsPayload;
|
|
19
|
+
export declare const connectSucceededEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => AnalyticsPayload;
|
|
20
|
+
export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
|
|
21
|
+
export declare const trackAppAccountConnected: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
|
|
22
|
+
export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
|
|
23
|
+
export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
|
|
24
|
+
export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
|
|
25
|
+
export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
|
|
26
|
+
export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
|
|
27
|
+
export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
|
|
28
|
+
export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => AnalyticsPayload;
|
|
29
|
+
export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
|
|
30
|
+
export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
|
|
31
|
+
export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
|
|
32
|
+
export declare const uiHoverCardOpenLinkClickedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => AnalyticsPayload;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnalyticsPayload } from '../types';
|
|
2
|
+
import { InstrumentEventProps } from './types';
|
|
3
|
+
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, } from './analytics';
|
|
4
|
+
export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
|
|
@@ -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;
|