@atlaskit/smart-card 26.0.1 → 26.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +37 -0
- package/dist/cjs/state/hooks/use-invoke/index.js +28 -8
- package/dist/cjs/utils/analytics/analytics.js +198 -126
- package/dist/cjs/utils/analytics/index.js +18 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/cjs/view/CardWithUrl/component.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/index.js +43 -30
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/cjs/view/HoverCard/styled.js +2 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +37 -3
- package/dist/es2019/state/hooks/use-invoke/index.js +23 -9
- package/dist/es2019/utils/analytics/analytics.js +66 -0
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/es2019/view/CardWithUrl/component.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/index.js +29 -18
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/es2019/view/HoverCard/styled.js +3 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +39 -2
- package/dist/esm/state/hooks/use-invoke/index.js +28 -8
- package/dist/esm/utils/analytics/analytics.js +190 -124
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/esm/view/CardWithUrl/component.js +2 -1
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/index.js +43 -30
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/esm/view/HoverCard/styled.js +3 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +31 -0
- package/dist/types/state/flexible-ui-context/index.d.ts +24 -0
- package/dist/types/state/hooks/use-invoke/index.d.ts +7 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +12 -0
- package/dist/types/utils/analytics/analytics.d.ts +13 -0
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +1 -0
- package/dist/types/utils/mocks.d.ts +12 -0
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/types.d.ts +1 -1
- package/dist/types/view/HoverCard/styled.d.ts +1 -1
- package/dist/types-ts4.0/__fixtures__/bitbucket-pull-request.d.ts +73 -0
- package/dist/types-ts4.0/__fixtures__/confluence-blog.d.ts +49 -0
- package/dist/types-ts4.0/__fixtures__/confluence-page.d.ts +49 -0
- package/dist/types-ts4.0/__fixtures__/confluence-space.d.ts +36 -0
- package/dist/types-ts4.0/__fixtures__/confluence-template.d.ts +31 -0
- package/dist/types-ts4.0/__fixtures__/figma.d.ts +43 -0
- package/dist/types-ts4.0/__fixtures__/flexible-ui-data-context.d.ts +3 -0
- package/dist/types-ts4.0/__fixtures__/jira-roadmap.d.ts +35 -0
- package/dist/types-ts4.0/__fixtures__/jira-task.d.ts +78 -0
- package/dist/types-ts4.0/__fixtures__/youtube-video.d.ts +44 -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 +210 -0
- package/dist/types-ts4.0/extractors/action/extract-lozenge-action-items.d.ts +4 -0
- package/dist/types-ts4.0/extractors/block/index.d.ts +9 -0
- package/dist/types-ts4.0/extractors/block/types.d.ts +12 -0
- package/dist/types-ts4.0/extractors/common/__mocks__/jsonld.d.ts +38 -0
- package/dist/types-ts4.0/extractors/common/__mocks__/withIntl.d.ts +2 -0
- package/dist/types-ts4.0/extractors/common/actions/extractActions.d.ts +5 -0
- package/dist/types-ts4.0/extractors/common/actions/extractPreviewAction.d.ts +10 -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/extractAttachmentCount.d.ts +4 -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 +9 -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/extractLozengeText.d.ts +2 -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 +10 -0
- package/dist/types-ts4.0/extractors/common/lozenge/utils.d.ts +4 -0
- package/dist/types-ts4.0/extractors/common/meta/extractIsSupportTheming.d.ts +2 -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 +13 -0
- package/dist/types-ts4.0/extractors/embed/index.d.ts +4 -0
- package/dist/types-ts4.0/extractors/flexible/actions/extract-download-action.d.ts +3 -0
- package/dist/types-ts4.0/extractors/flexible/actions/extract-preview-action.d.ts +3 -0
- package/dist/types-ts4.0/extractors/flexible/actions/extract-view-action.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/extract-server-action.d.ts +3 -0
- package/dist/types-ts4.0/extractors/flexible/extract-state.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 +4 -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 +17 -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/hoverCard.d.ts +2 -0
- package/dist/types-ts4.0/i18n/cs.d.ts +84 -0
- package/dist/types-ts4.0/i18n/da.d.ts +84 -0
- package/dist/types-ts4.0/i18n/de.d.ts +84 -0
- package/dist/types-ts4.0/i18n/en.d.ts +88 -0
- package/dist/types-ts4.0/i18n/en_GB.d.ts +88 -0
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +38 -0
- package/dist/types-ts4.0/i18n/es.d.ts +84 -0
- package/dist/types-ts4.0/i18n/et.d.ts +94 -0
- package/dist/types-ts4.0/i18n/fi.d.ts +83 -0
- package/dist/types-ts4.0/i18n/fr.d.ts +84 -0
- package/dist/types-ts4.0/i18n/hu.d.ts +84 -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 +84 -0
- package/dist/types-ts4.0/i18n/ja.d.ts +84 -0
- package/dist/types-ts4.0/i18n/ko.d.ts +84 -0
- package/dist/types-ts4.0/i18n/languages.d.ts +27 -0
- package/dist/types-ts4.0/i18n/nb.d.ts +84 -0
- package/dist/types-ts4.0/i18n/nl.d.ts +84 -0
- package/dist/types-ts4.0/i18n/pl.d.ts +84 -0
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +84 -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 +84 -0
- package/dist/types-ts4.0/i18n/sk.d.ts +94 -0
- package/dist/types-ts4.0/i18n/sv.d.ts +84 -0
- package/dist/types-ts4.0/i18n/th.d.ts +84 -0
- package/dist/types-ts4.0/i18n/tr.d.ts +84 -0
- package/dist/types-ts4.0/i18n/uk.d.ts +84 -0
- package/dist/types-ts4.0/i18n/vi.d.ts +84 -0
- package/dist/types-ts4.0/i18n/zh.d.ts +84 -0
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +84 -0
- package/dist/types-ts4.0/in-product.d.ts +1 -0
- package/dist/types-ts4.0/index.d.ts +23 -0
- package/dist/types-ts4.0/linkUrl.d.ts +2 -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 +11 -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/useDispatchAnalytics.d.ts +11 -0
- package/dist/types-ts4.0/state/analytics/useMouseDownEvent.d.ts +3 -0
- package/dist/types-ts4.0/state/analytics/useSmartLinkAnalytics.d.ts +284 -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 +131 -0
- package/dist/types-ts4.0/state/flexible-ui-context/types.d.ts +219 -0
- package/dist/types-ts4.0/state/flexible-ui-context/utils.d.ts +6 -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/use-invoke/index.d.ts +9 -0
- package/dist/types-ts4.0/state/hooks/use-invoke/types.d.ts +34 -0
- package/dist/types-ts4.0/state/hooks/use-resolve/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 +75 -0
- package/dist/types-ts4.0/state/hooks-external/useSmartLinkActions.d.ts +56 -0
- package/dist/types-ts4.0/state/hooks-external/useSmartLinkReload.d.ts +22 -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/actions/create-status-update-request.d.ts +4 -0
- package/dist/types-ts4.0/utils/analytics/__mocks__/analytics.d.ts +2 -0
- package/dist/types-ts4.0/utils/analytics/analytics.d.ts +53 -0
- package/dist/types-ts4.0/utils/analytics/click.d.ts +22 -0
- package/dist/types-ts4.0/utils/analytics/index.d.ts +4 -0
- package/dist/types-ts4.0/utils/analytics/types.d.ts +130 -0
- package/dist/types-ts4.0/utils/flexible.d.ts +7 -0
- package/dist/types-ts4.0/utils/index.d.ts +23 -0
- package/dist/types-ts4.0/utils/jsonld.d.ts +4 -0
- package/dist/types-ts4.0/utils/mocks.d.ts +97 -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 +31 -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/actions/flexible/AuthorizeAction.d.ts +9 -0
- package/dist/types-ts4.0/view/BlockCard/actions/flexible/ForbiddenAction.d.ts +11 -0
- package/dist/types-ts4.0/view/BlockCard/actions/flexible/RetryAction.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/components/flexible/footer/index.d.ts +12 -0
- package/dist/types-ts4.0/view/BlockCard/components/flexible/footer/types.d.ts +5 -0
- package/dist/types-ts4.0/view/BlockCard/index.d.ts +15 -0
- package/dist/types-ts4.0/view/BlockCard/types.d.ts +27 -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 +36 -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/BlockCard/views/flexible/FlexibleErroredView.d.ts +10 -0
- package/dist/types-ts4.0/view/BlockCard/views/flexible/FlexibleForbiddenView.d.ts +11 -0
- package/dist/types-ts4.0/view/BlockCard/views/flexible/FlexibleNotFoundView.d.ts +10 -0
- package/dist/types-ts4.0/view/BlockCard/views/flexible/FlexibleResolvedView.d.ts +9 -0
- package/dist/types-ts4.0/view/BlockCard/views/flexible/FlexibleUnauthorisedView.d.ts +11 -0
- package/dist/types-ts4.0/view/BlockCard/views/flexible/types.d.ts +73 -0
- package/dist/types-ts4.0/view/Card/index.d.ts +5 -0
- package/dist/types-ts4.0/view/Card/types.d.ts +63 -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 +38 -0
- package/dist/types-ts4.0/view/EmbedCard/EmbedResizeMessageListener.d.ts +15 -0
- package/dist/types-ts4.0/view/EmbedCard/components/ExpandedFrame.d.ts +26 -0
- package/dist/types-ts4.0/view/EmbedCard/components/Frame.d.ts +9 -0
- package/dist/types-ts4.0/view/EmbedCard/components/IframeDwellTracker.d.ts +8 -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 +95 -0
- package/dist/types-ts4.0/view/EmbedCard/constants.d.ts +3 -0
- package/dist/types-ts4.0/view/EmbedCard/index.d.ts +3 -0
- package/dist/types-ts4.0/view/EmbedCard/types.d.ts +52 -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 +34 -0
- package/dist/types-ts4.0/view/EmbedCard/views/UnauthorisedView.d.ts +15 -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/constants.d.ts +2 -0
- package/dist/types-ts4.0/view/EmbedModal/index.d.ts +23 -0
- package/dist/types-ts4.0/view/EmbedModal/types.d.ts +31 -0
- package/dist/types-ts4.0/view/EmbedModal/utils.d.ts +10 -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/download-action/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/download-action/types.d.ts +8 -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/preview-action/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/preview-action/types.d.ts +16 -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/action/view-action/index.d.ts +5 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/view-action/types.d.ts +8 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/index.d.ts +41 -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/action-group-item/index.d.ts +12 -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 +11 -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 +15 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/index.d.ts +6 -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 +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +11 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/types.d.ts +23 -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 +92 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +367 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +12 -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 +8 -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/common/lozenge-action/error-boundary/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/styled.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.d.ts +35 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.d.ts +6 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.d.ts +4 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.d.ts +8 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/styled.d.ts +3 -0
- package/dist/types-ts4.0/view/FlexibleCard/components/common/lozenge-action/types.d.ts +15 -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 +23 -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 +145 -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 +39 -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 +23 -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 +18 -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 +144 -0
- package/dist/types-ts4.0/view/FlexibleCard/utils.d.ts +6 -0
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardComponent.d.ts +3 -0
- package/dist/types-ts4.0/view/HoverCard/components/HoverCardContent.d.ts +9 -0
- package/dist/types-ts4.0/view/HoverCard/components/SnippetOrPreview.d.ts +4 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/resolved/index.d.ts +7 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/resolved/styled.d.ts +3 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/resolved/types.d.ts +13 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/resolving/index.d.ts +4 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/resolving/styled.d.ts +2 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/resolving/types.d.ts +6 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/unauthorised/index.d.ts +4 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/unauthorised/styled.d.ts +3 -0
- package/dist/types-ts4.0/view/HoverCard/components/views/unauthorised/types.d.ts +30 -0
- package/dist/types-ts4.0/view/HoverCard/index.d.ts +3 -0
- package/dist/types-ts4.0/view/HoverCard/styled.d.ts +9 -0
- package/dist/types-ts4.0/view/HoverCard/types.d.ts +75 -0
- package/dist/types-ts4.0/view/HoverCard/utils.d.ts +5 -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 +28 -0
- package/dist/types-ts4.0/view/InlineCard/Frame/index.d.ts +15 -0
- package/dist/types-ts4.0/view/InlineCard/Frame/styled.d.ts +15 -0
- package/dist/types-ts4.0/view/InlineCard/Icon.d.ts +12 -0
- package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/index.d.ts +28 -0
- package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/styled.d.ts +40 -0
- package/dist/types-ts4.0/view/InlineCard/ResolvedView/index.d.ts +32 -0
- package/dist/types-ts4.0/view/InlineCard/ResolvingView/index.d.ts +17 -0
- package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +9 -0
- package/dist/types-ts4.0/view/InlineCard/UnauthorisedView/index.d.ts +31 -0
- package/dist/types-ts4.0/view/InlineCard/index.d.ts +9 -0
- package/dist/types-ts4.0/view/InlineCard/styled.d.ts +17 -0
- package/dist/types-ts4.0/view/InlineCard/types.d.ts +25 -0
- package/dist/types-ts4.0/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.d.ts +9 -0
- package/dist/types-ts4.0/view/LinkUrl/LinkWarningModal/index.d.ts +13 -0
- package/dist/types-ts4.0/view/LinkUrl/index.d.ts +6 -0
- package/dist/types-ts4.0/view/LinkUrl/types.d.ts +13 -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/common/Byline.d.ts +10 -0
- package/dist/types-ts4.0/view/common/Icon.d.ts +12 -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/UnauthorisedViewContent.d.ts +26 -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/package.json +3 -3
- package/report.api.md +20 -1
- package/tmp/api-report-tmp.d.ts +17 -2
|
@@ -4,29 +4,49 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import { useSmartLinkClientExtension } from '@atlaskit/link-client-extension';
|
|
5
5
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
6
6
|
var useInvoke = function useInvoke() {
|
|
7
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
8
|
+
failed = _ref.failed,
|
|
9
|
+
started = _ref.started,
|
|
10
|
+
success = _ref.success;
|
|
7
11
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
8
12
|
connections = _useSmartLinkContext.connections;
|
|
9
13
|
var clientExt = useSmartLinkClientExtension(connections.client);
|
|
10
14
|
return useCallback( /*#__PURE__*/function () {
|
|
11
|
-
var
|
|
12
|
-
var
|
|
15
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(req, cb) {
|
|
16
|
+
var _req$action;
|
|
17
|
+
var smartLinkActionType, response;
|
|
13
18
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14
19
|
while (1) switch (_context.prev = _context.next) {
|
|
15
20
|
case 0:
|
|
16
|
-
|
|
21
|
+
smartLinkActionType = req === null || req === void 0 ? void 0 : (_req$action = req.action) === null || _req$action === void 0 ? void 0 : _req$action.actionType;
|
|
22
|
+
_context.prev = 1;
|
|
23
|
+
started && started({
|
|
24
|
+
smartLinkActionType: smartLinkActionType
|
|
25
|
+
});
|
|
26
|
+
_context.next = 5;
|
|
17
27
|
return clientExt.invoke(req);
|
|
18
|
-
case
|
|
28
|
+
case 5:
|
|
19
29
|
response = _context.sent;
|
|
30
|
+
success && success({
|
|
31
|
+
smartLinkActionType: smartLinkActionType
|
|
32
|
+
});
|
|
20
33
|
return _context.abrupt("return", cb ? cb(response) : response);
|
|
21
|
-
case
|
|
34
|
+
case 10:
|
|
35
|
+
_context.prev = 10;
|
|
36
|
+
_context.t0 = _context["catch"](1);
|
|
37
|
+
failed && failed({
|
|
38
|
+
smartLinkActionType: smartLinkActionType
|
|
39
|
+
});
|
|
40
|
+
throw _context.t0;
|
|
41
|
+
case 14:
|
|
22
42
|
case "end":
|
|
23
43
|
return _context.stop();
|
|
24
44
|
}
|
|
25
|
-
}, _callee);
|
|
45
|
+
}, _callee, null, [[1, 10]]);
|
|
26
46
|
}));
|
|
27
47
|
return function (_x, _x2) {
|
|
28
|
-
return
|
|
48
|
+
return _ref2.apply(this, arguments);
|
|
29
49
|
};
|
|
30
|
-
}(), [clientExt]);
|
|
50
|
+
}(), [clientExt, failed, started, success]);
|
|
31
51
|
};
|
|
32
52
|
export default useInvoke;
|
|
@@ -2,7 +2,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
-
var _excluded = ["actionSubjectId"]
|
|
5
|
+
var _excluded = ["actionSubjectId"],
|
|
6
|
+
_excluded2 = ["smartLinkActionType"],
|
|
7
|
+
_excluded3 = ["smartLinkActionType"],
|
|
8
|
+
_excluded4 = ["smartLinkActionType"];
|
|
6
9
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
10
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
11
|
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
@@ -236,13 +239,49 @@ export var trackLinkUpdated = function trackLinkUpdated(_ref8) {
|
|
|
236
239
|
attributes: _objectSpread(_objectSpread({}, context), attributes)
|
|
237
240
|
};
|
|
238
241
|
};
|
|
239
|
-
export var
|
|
240
|
-
var
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
export var trackSmartLinkQuickActionStarted = function trackSmartLinkQuickActionStarted(_ref9) {
|
|
243
|
+
var smartLinkActionType = _ref9.smartLinkActionType,
|
|
244
|
+
attributes = _objectWithoutProperties(_ref9, _excluded2);
|
|
245
|
+
return {
|
|
246
|
+
action: 'started',
|
|
247
|
+
actionSubject: 'smartLinkQuickAction',
|
|
248
|
+
eventType: 'track',
|
|
249
|
+
attributes: _objectSpread(_objectSpread(_objectSpread({}, context), attributes), {}, {
|
|
250
|
+
smartLinkActionType: smartLinkActionType
|
|
251
|
+
})
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
export var trackSmartLinkQuickActionSuccess = function trackSmartLinkQuickActionSuccess(_ref10) {
|
|
255
|
+
var smartLinkActionType = _ref10.smartLinkActionType,
|
|
256
|
+
attributes = _objectWithoutProperties(_ref10, _excluded3);
|
|
257
|
+
return {
|
|
258
|
+
action: 'success',
|
|
259
|
+
actionSubject: 'smartLinkQuickAction',
|
|
260
|
+
eventType: 'track',
|
|
261
|
+
attributes: _objectSpread(_objectSpread(_objectSpread({}, context), attributes), {}, {
|
|
262
|
+
smartLinkActionType: smartLinkActionType
|
|
263
|
+
})
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
export var trackSmartLinkQuickActionFailed = function trackSmartLinkQuickActionFailed(_ref11) {
|
|
267
|
+
var smartLinkActionType = _ref11.smartLinkActionType,
|
|
268
|
+
attributes = _objectWithoutProperties(_ref11, _excluded4);
|
|
269
|
+
return {
|
|
270
|
+
action: 'failed',
|
|
271
|
+
actionSubject: 'smartLinkQuickAction',
|
|
272
|
+
eventType: 'track',
|
|
273
|
+
attributes: _objectSpread(_objectSpread(_objectSpread({}, context), attributes), {}, {
|
|
274
|
+
smartLinkActionType: smartLinkActionType
|
|
275
|
+
})
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
export var uiAuthEvent = function uiAuthEvent(_ref12) {
|
|
279
|
+
var definitionId = _ref12.definitionId,
|
|
280
|
+
extensionKey = _ref12.extensionKey,
|
|
281
|
+
destinationProduct = _ref12.destinationProduct,
|
|
282
|
+
destinationSubproduct = _ref12.destinationSubproduct,
|
|
283
|
+
location = _ref12.location,
|
|
284
|
+
display = _ref12.display;
|
|
246
285
|
return {
|
|
247
286
|
action: 'clicked',
|
|
248
287
|
actionSubject: 'button',
|
|
@@ -258,13 +297,13 @@ export var uiAuthEvent = function uiAuthEvent(_ref9) {
|
|
|
258
297
|
})
|
|
259
298
|
};
|
|
260
299
|
};
|
|
261
|
-
export var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(
|
|
262
|
-
var definitionId =
|
|
263
|
-
extensionKey =
|
|
264
|
-
destinationProduct =
|
|
265
|
-
destinationSubproduct =
|
|
266
|
-
location =
|
|
267
|
-
display =
|
|
300
|
+
export var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_ref13) {
|
|
301
|
+
var definitionId = _ref13.definitionId,
|
|
302
|
+
extensionKey = _ref13.extensionKey,
|
|
303
|
+
destinationProduct = _ref13.destinationProduct,
|
|
304
|
+
destinationSubproduct = _ref13.destinationSubproduct,
|
|
305
|
+
location = _ref13.location,
|
|
306
|
+
display = _ref13.display;
|
|
268
307
|
return {
|
|
269
308
|
action: 'clicked',
|
|
270
309
|
actionSubject: 'smartLink',
|
|
@@ -280,17 +319,17 @@ export var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_r
|
|
|
280
319
|
})
|
|
281
320
|
};
|
|
282
321
|
};
|
|
283
|
-
export var uiCardClickedEvent = function uiCardClickedEvent(
|
|
284
|
-
var id =
|
|
285
|
-
display =
|
|
286
|
-
status =
|
|
287
|
-
definitionId =
|
|
288
|
-
extensionKey =
|
|
289
|
-
isModifierKeyPressed =
|
|
290
|
-
location =
|
|
291
|
-
destinationProduct =
|
|
292
|
-
destinationSubproduct =
|
|
293
|
-
actionSubjectId =
|
|
322
|
+
export var uiCardClickedEvent = function uiCardClickedEvent(_ref14) {
|
|
323
|
+
var id = _ref14.id,
|
|
324
|
+
display = _ref14.display,
|
|
325
|
+
status = _ref14.status,
|
|
326
|
+
definitionId = _ref14.definitionId,
|
|
327
|
+
extensionKey = _ref14.extensionKey,
|
|
328
|
+
isModifierKeyPressed = _ref14.isModifierKeyPressed,
|
|
329
|
+
location = _ref14.location,
|
|
330
|
+
destinationProduct = _ref14.destinationProduct,
|
|
331
|
+
destinationSubproduct = _ref14.destinationSubproduct,
|
|
332
|
+
actionSubjectId = _ref14.actionSubjectId;
|
|
294
333
|
return {
|
|
295
334
|
action: 'clicked',
|
|
296
335
|
actionSubject: 'smartLink',
|
|
@@ -309,17 +348,17 @@ export var uiCardClickedEvent = function uiCardClickedEvent(_ref11) {
|
|
|
309
348
|
})
|
|
310
349
|
};
|
|
311
350
|
};
|
|
312
|
-
export var uiIframeDwelledEvent = function uiIframeDwelledEvent(
|
|
313
|
-
var id =
|
|
314
|
-
display =
|
|
315
|
-
status =
|
|
316
|
-
definitionId =
|
|
317
|
-
extensionKey =
|
|
318
|
-
location =
|
|
319
|
-
destinationProduct =
|
|
320
|
-
destinationSubproduct =
|
|
321
|
-
dwellTime =
|
|
322
|
-
dwellPercentVisible =
|
|
351
|
+
export var uiIframeDwelledEvent = function uiIframeDwelledEvent(_ref15) {
|
|
352
|
+
var id = _ref15.id,
|
|
353
|
+
display = _ref15.display,
|
|
354
|
+
status = _ref15.status,
|
|
355
|
+
definitionId = _ref15.definitionId,
|
|
356
|
+
extensionKey = _ref15.extensionKey,
|
|
357
|
+
location = _ref15.location,
|
|
358
|
+
destinationProduct = _ref15.destinationProduct,
|
|
359
|
+
destinationSubproduct = _ref15.destinationSubproduct,
|
|
360
|
+
dwellTime = _ref15.dwellTime,
|
|
361
|
+
dwellPercentVisible = _ref15.dwellPercentVisible;
|
|
323
362
|
return {
|
|
324
363
|
action: 'dwelled',
|
|
325
364
|
actionSubject: 'smartLinkIframe',
|
|
@@ -338,15 +377,15 @@ export var uiIframeDwelledEvent = function uiIframeDwelledEvent(_ref12) {
|
|
|
338
377
|
})
|
|
339
378
|
};
|
|
340
379
|
};
|
|
341
|
-
export var uiIframeFocusedEvent = function uiIframeFocusedEvent(
|
|
342
|
-
var id =
|
|
343
|
-
display =
|
|
344
|
-
status =
|
|
345
|
-
definitionId =
|
|
346
|
-
extensionKey =
|
|
347
|
-
location =
|
|
348
|
-
destinationProduct =
|
|
349
|
-
destinationSubproduct =
|
|
380
|
+
export var uiIframeFocusedEvent = function uiIframeFocusedEvent(_ref16) {
|
|
381
|
+
var id = _ref16.id,
|
|
382
|
+
display = _ref16.display,
|
|
383
|
+
status = _ref16.status,
|
|
384
|
+
definitionId = _ref16.definitionId,
|
|
385
|
+
extensionKey = _ref16.extensionKey,
|
|
386
|
+
location = _ref16.location,
|
|
387
|
+
destinationProduct = _ref16.destinationProduct,
|
|
388
|
+
destinationSubproduct = _ref16.destinationSubproduct;
|
|
350
389
|
return {
|
|
351
390
|
action: 'focused',
|
|
352
391
|
actionSubject: 'smartLinkIframe',
|
|
@@ -363,15 +402,15 @@ export var uiIframeFocusedEvent = function uiIframeFocusedEvent(_ref13) {
|
|
|
363
402
|
})
|
|
364
403
|
};
|
|
365
404
|
};
|
|
366
|
-
export var uiActionClickedEvent = function uiActionClickedEvent(
|
|
367
|
-
var id =
|
|
368
|
-
actionType =
|
|
369
|
-
extensionKey =
|
|
370
|
-
display =
|
|
371
|
-
definitionId =
|
|
372
|
-
destinationProduct =
|
|
373
|
-
destinationSubproduct =
|
|
374
|
-
location =
|
|
405
|
+
export var uiActionClickedEvent = function uiActionClickedEvent(_ref17) {
|
|
406
|
+
var id = _ref17.id,
|
|
407
|
+
actionType = _ref17.actionType,
|
|
408
|
+
extensionKey = _ref17.extensionKey,
|
|
409
|
+
display = _ref17.display,
|
|
410
|
+
definitionId = _ref17.definitionId,
|
|
411
|
+
destinationProduct = _ref17.destinationProduct,
|
|
412
|
+
destinationSubproduct = _ref17.destinationSubproduct,
|
|
413
|
+
location = _ref17.location;
|
|
375
414
|
return {
|
|
376
415
|
action: 'clicked',
|
|
377
416
|
actionSubject: 'button',
|
|
@@ -389,13 +428,13 @@ export var uiActionClickedEvent = function uiActionClickedEvent(_ref14) {
|
|
|
389
428
|
})
|
|
390
429
|
};
|
|
391
430
|
};
|
|
392
|
-
export var uiClosedAuthEvent = function uiClosedAuthEvent(
|
|
393
|
-
var display =
|
|
394
|
-
extensionKey =
|
|
395
|
-
definitionId =
|
|
396
|
-
destinationProduct =
|
|
397
|
-
destinationSubproduct =
|
|
398
|
-
location =
|
|
431
|
+
export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref18) {
|
|
432
|
+
var display = _ref18.display,
|
|
433
|
+
extensionKey = _ref18.extensionKey,
|
|
434
|
+
definitionId = _ref18.definitionId,
|
|
435
|
+
destinationProduct = _ref18.destinationProduct,
|
|
436
|
+
destinationSubproduct = _ref18.destinationSubproduct,
|
|
437
|
+
location = _ref18.location;
|
|
399
438
|
return {
|
|
400
439
|
action: 'closed',
|
|
401
440
|
actionSubject: 'consentModal',
|
|
@@ -410,12 +449,12 @@ export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref15) {
|
|
|
410
449
|
})
|
|
411
450
|
};
|
|
412
451
|
};
|
|
413
|
-
export var screenAuthPopupEvent = function screenAuthPopupEvent(
|
|
414
|
-
var extensionKey =
|
|
415
|
-
definitionId =
|
|
416
|
-
destinationProduct =
|
|
417
|
-
destinationSubproduct =
|
|
418
|
-
location =
|
|
452
|
+
export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref19) {
|
|
453
|
+
var extensionKey = _ref19.extensionKey,
|
|
454
|
+
definitionId = _ref19.definitionId,
|
|
455
|
+
destinationProduct = _ref19.destinationProduct,
|
|
456
|
+
destinationSubproduct = _ref19.destinationSubproduct,
|
|
457
|
+
location = _ref19.location;
|
|
419
458
|
return {
|
|
420
459
|
actionSubject: 'consentModal',
|
|
421
460
|
eventType: 'screen',
|
|
@@ -428,14 +467,14 @@ export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref16) {
|
|
|
428
467
|
})
|
|
429
468
|
};
|
|
430
469
|
};
|
|
431
|
-
export var uiRenderSuccessEvent = function uiRenderSuccessEvent(
|
|
432
|
-
var display =
|
|
433
|
-
status =
|
|
434
|
-
extensionKey =
|
|
435
|
-
definitionId =
|
|
436
|
-
destinationProduct =
|
|
437
|
-
destinationSubproduct =
|
|
438
|
-
location =
|
|
470
|
+
export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref20) {
|
|
471
|
+
var display = _ref20.display,
|
|
472
|
+
status = _ref20.status,
|
|
473
|
+
extensionKey = _ref20.extensionKey,
|
|
474
|
+
definitionId = _ref20.definitionId,
|
|
475
|
+
destinationProduct = _ref20.destinationProduct,
|
|
476
|
+
destinationSubproduct = _ref20.destinationSubproduct,
|
|
477
|
+
location = _ref20.location;
|
|
439
478
|
return {
|
|
440
479
|
action: 'renderSuccess',
|
|
441
480
|
actionSubject: 'smartLink',
|
|
@@ -451,15 +490,15 @@ export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref17) {
|
|
|
451
490
|
})
|
|
452
491
|
};
|
|
453
492
|
};
|
|
454
|
-
export var uiRenderFailedEvent = function uiRenderFailedEvent(
|
|
455
|
-
var display =
|
|
456
|
-
error =
|
|
457
|
-
errorInfo =
|
|
458
|
-
extensionKey =
|
|
459
|
-
definitionId =
|
|
460
|
-
destinationProduct =
|
|
461
|
-
destinationSubproduct =
|
|
462
|
-
location =
|
|
493
|
+
export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref21) {
|
|
494
|
+
var display = _ref21.display,
|
|
495
|
+
error = _ref21.error,
|
|
496
|
+
errorInfo = _ref21.errorInfo,
|
|
497
|
+
extensionKey = _ref21.extensionKey,
|
|
498
|
+
definitionId = _ref21.definitionId,
|
|
499
|
+
destinationProduct = _ref21.destinationProduct,
|
|
500
|
+
destinationSubproduct = _ref21.destinationSubproduct,
|
|
501
|
+
location = _ref21.location;
|
|
463
502
|
return {
|
|
464
503
|
actionSubject: 'smartLink',
|
|
465
504
|
action: 'renderFailed',
|
|
@@ -476,16 +515,16 @@ export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref18) {
|
|
|
476
515
|
})
|
|
477
516
|
};
|
|
478
517
|
};
|
|
479
|
-
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(
|
|
480
|
-
var id =
|
|
481
|
-
previewDisplay =
|
|
482
|
-
extensionKey =
|
|
483
|
-
definitionId =
|
|
484
|
-
destinationProduct =
|
|
485
|
-
destinationSubproduct =
|
|
486
|
-
location =
|
|
487
|
-
previewInvokeMethod =
|
|
488
|
-
status =
|
|
518
|
+
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref22) {
|
|
519
|
+
var id = _ref22.id,
|
|
520
|
+
previewDisplay = _ref22.previewDisplay,
|
|
521
|
+
extensionKey = _ref22.extensionKey,
|
|
522
|
+
definitionId = _ref22.definitionId,
|
|
523
|
+
destinationProduct = _ref22.destinationProduct,
|
|
524
|
+
destinationSubproduct = _ref22.destinationSubproduct,
|
|
525
|
+
location = _ref22.location,
|
|
526
|
+
previewInvokeMethod = _ref22.previewInvokeMethod,
|
|
527
|
+
status = _ref22.status;
|
|
489
528
|
return {
|
|
490
529
|
action: 'viewed',
|
|
491
530
|
actionSubject: 'hoverCard',
|
|
@@ -503,17 +542,17 @@ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref19) {
|
|
|
503
542
|
})
|
|
504
543
|
};
|
|
505
544
|
};
|
|
506
|
-
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(
|
|
507
|
-
var id =
|
|
508
|
-
previewDisplay =
|
|
509
|
-
hoverTime =
|
|
510
|
-
extensionKey =
|
|
511
|
-
definitionId =
|
|
512
|
-
destinationProduct =
|
|
513
|
-
destinationSubproduct =
|
|
514
|
-
location =
|
|
515
|
-
previewInvokeMethod =
|
|
516
|
-
status =
|
|
545
|
+
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref23) {
|
|
546
|
+
var id = _ref23.id,
|
|
547
|
+
previewDisplay = _ref23.previewDisplay,
|
|
548
|
+
hoverTime = _ref23.hoverTime,
|
|
549
|
+
extensionKey = _ref23.extensionKey,
|
|
550
|
+
definitionId = _ref23.definitionId,
|
|
551
|
+
destinationProduct = _ref23.destinationProduct,
|
|
552
|
+
destinationSubproduct = _ref23.destinationSubproduct,
|
|
553
|
+
location = _ref23.location,
|
|
554
|
+
previewInvokeMethod = _ref23.previewInvokeMethod,
|
|
555
|
+
status = _ref23.status;
|
|
517
556
|
return {
|
|
518
557
|
action: 'dismissed',
|
|
519
558
|
actionSubject: 'hoverCard',
|
|
@@ -532,15 +571,15 @@ export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref20
|
|
|
532
571
|
})
|
|
533
572
|
};
|
|
534
573
|
};
|
|
535
|
-
export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(
|
|
536
|
-
var id =
|
|
537
|
-
previewDisplay =
|
|
538
|
-
extensionKey =
|
|
539
|
-
definitionId =
|
|
540
|
-
destinationProduct =
|
|
541
|
-
destinationSubproduct =
|
|
542
|
-
location =
|
|
543
|
-
previewInvokeMethod =
|
|
574
|
+
export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref24) {
|
|
575
|
+
var id = _ref24.id,
|
|
576
|
+
previewDisplay = _ref24.previewDisplay,
|
|
577
|
+
extensionKey = _ref24.extensionKey,
|
|
578
|
+
definitionId = _ref24.definitionId,
|
|
579
|
+
destinationProduct = _ref24.destinationProduct,
|
|
580
|
+
destinationSubproduct = _ref24.destinationSubproduct,
|
|
581
|
+
location = _ref24.location,
|
|
582
|
+
previewInvokeMethod = _ref24.previewInvokeMethod;
|
|
544
583
|
return {
|
|
545
584
|
action: 'clicked',
|
|
546
585
|
actionSubject: 'button',
|
|
@@ -567,15 +606,15 @@ export var uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent()
|
|
|
567
606
|
attributes: _objectSpread({}, context)
|
|
568
607
|
};
|
|
569
608
|
};
|
|
570
|
-
export var chunkloadFailedEvent = function chunkloadFailedEvent(
|
|
571
|
-
var display =
|
|
572
|
-
error =
|
|
573
|
-
errorInfo =
|
|
574
|
-
extensionKey =
|
|
575
|
-
definitionId =
|
|
576
|
-
destinationProduct =
|
|
577
|
-
destinationSubproduct =
|
|
578
|
-
location =
|
|
609
|
+
export var chunkloadFailedEvent = function chunkloadFailedEvent(_ref25) {
|
|
610
|
+
var display = _ref25.display,
|
|
611
|
+
error = _ref25.error,
|
|
612
|
+
errorInfo = _ref25.errorInfo,
|
|
613
|
+
extensionKey = _ref25.extensionKey,
|
|
614
|
+
definitionId = _ref25.definitionId,
|
|
615
|
+
destinationProduct = _ref25.destinationProduct,
|
|
616
|
+
destinationSubproduct = _ref25.destinationSubproduct,
|
|
617
|
+
location = _ref25.location;
|
|
579
618
|
return {
|
|
580
619
|
action: 'chunkLoadFailed',
|
|
581
620
|
actionSubject: 'smartLink',
|
|
@@ -591,4 +630,31 @@ export var chunkloadFailedEvent = function chunkloadFailedEvent(_ref22) {
|
|
|
591
630
|
location: location
|
|
592
631
|
})
|
|
593
632
|
};
|
|
633
|
+
};
|
|
634
|
+
export var uiSmartLinkStatusLozengeButtonClicked = function uiSmartLinkStatusLozengeButtonClicked() {
|
|
635
|
+
return {
|
|
636
|
+
action: 'clicked',
|
|
637
|
+
actionSubject: 'button',
|
|
638
|
+
actionSubjectId: 'smartLinkStatusLozenge',
|
|
639
|
+
eventType: 'ui',
|
|
640
|
+
attributes: _objectSpread({}, context)
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
export var uiSmartLinkStatusListItemButtonClicked = function uiSmartLinkStatusListItemButtonClicked() {
|
|
644
|
+
return {
|
|
645
|
+
action: 'clicked',
|
|
646
|
+
actionSubject: 'button',
|
|
647
|
+
actionSubjectId: 'smartLinkStatusListItem',
|
|
648
|
+
eventType: 'ui',
|
|
649
|
+
attributes: _objectSpread({}, context)
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
export var uiSmartLinkStatusOpenPreviewButtonClicked = function uiSmartLinkStatusOpenPreviewButtonClicked() {
|
|
653
|
+
return {
|
|
654
|
+
action: 'clicked',
|
|
655
|
+
actionSubject: 'button',
|
|
656
|
+
actionSubjectId: 'smartLinkStatusOpenPreview',
|
|
657
|
+
eventType: 'ui',
|
|
658
|
+
attributes: _objectSpread({}, context)
|
|
659
|
+
};
|
|
594
660
|
};
|
|
@@ -3,7 +3,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
import { getMeasure } from '../performance';
|
|
5
5
|
import { resolvedEvent, unresolvedEvent } from './analytics';
|
|
6
|
-
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountAuthStarted, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiIframeDwelledEvent } from './analytics';
|
|
6
|
+
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountAuthStarted, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiIframeDwelledEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked } from './analytics';
|
|
7
7
|
export var instrumentEvent = function instrumentEvent(_ref) {
|
|
8
8
|
var id = _ref.id,
|
|
9
9
|
status = _ref.status,
|
package/dist/esm/version.json
CHANGED
|
@@ -61,6 +61,7 @@ var FlexibleResolvedView = function FlexibleResolvedView(_ref) {
|
|
|
61
61
|
name: ElementName.ModifiedBy
|
|
62
62
|
}].concat(baseMetadata);
|
|
63
63
|
return /*#__PURE__*/React.createElement(FlexibleCard, {
|
|
64
|
+
analytics: analytics,
|
|
64
65
|
appearance: "block",
|
|
65
66
|
cardState: cardState,
|
|
66
67
|
onClick: onClick,
|