@atlaskit/smart-card 26.31.0 → 26.32.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 +12 -0
- package/dist/cjs/__tests_external__/page-objects/BaseCard.js +1 -2
- package/dist/cjs/__tests_external__/page-objects/BlockCard.js +2 -3
- package/dist/cjs/__tests_external__/page-objects/EmbedCard.js +2 -3
- package/dist/cjs/__tests_external__/page-objects/InlineCard.js +2 -3
- package/dist/cjs/__tests_external__/test-cases/card.js +2 -3
- package/dist/cjs/__tests_external__/test-cases/embed.js +2 -3
- package/dist/cjs/__tests_external__/test-cases/inline.js +2 -3
- package/dist/cjs/constants.js +16 -31
- package/dist/cjs/extractors/action/extract-lozenge-action-items.js +2 -3
- package/dist/cjs/extractors/block/index.js +4 -7
- package/dist/cjs/extractors/common/actions/extractActions.js +1 -2
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +2 -3
- package/dist/cjs/extractors/common/byline/extractByline.js +1 -2
- package/dist/cjs/extractors/common/context/extractAccessContext.js +11 -7
- package/dist/cjs/extractors/common/detail/extractAttachmentCount.js +2 -3
- package/dist/cjs/extractors/common/detail/extractCommentCount.js +2 -3
- package/dist/cjs/extractors/common/detail/extractDownloadUrl.js +2 -3
- package/dist/cjs/extractors/common/detail/extractProgrammingLanguage.js +2 -3
- package/dist/cjs/extractors/common/detail/extractSubscriberCount.js +2 -3
- package/dist/cjs/extractors/common/hostname/extractHostname.js +1 -2
- package/dist/cjs/extractors/common/icon/extractFileFormat.js +2 -3
- package/dist/cjs/extractors/common/icon/extractIcon.js +1 -2
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +1 -2
- package/dist/cjs/extractors/common/icon/extractIconFromTask.js +2 -3
- package/dist/cjs/extractors/common/icon/priority.js +2 -3
- package/dist/cjs/extractors/common/lozenge/extractLozenge.js +1 -2
- package/dist/cjs/extractors/common/lozenge/extractState.js +2 -3
- package/dist/cjs/extractors/common/lozenge/extractTag.js +1 -2
- package/dist/cjs/extractors/common/lozenge/extractTaskStatus.js +2 -3
- package/dist/cjs/extractors/common/lozenge/extractTaskType.js +2 -3
- package/dist/cjs/extractors/common/lozenge/utils.js +3 -6
- package/dist/cjs/extractors/common/meta/extractIsSupportTheming.js +2 -3
- package/dist/cjs/extractors/common/meta/extractIsTrusted.js +2 -3
- package/dist/cjs/extractors/common/primitives/extractSummary.js +2 -3
- package/dist/cjs/extractors/common/primitives/extractTitleTextColor.js +2 -3
- package/dist/cjs/extractors/common/primitives/extractVisitUrl.js +2 -3
- package/dist/cjs/extractors/common/title-prefix/extractTitlePrefix.js +2 -3
- package/dist/cjs/extractors/constants.js +13 -26
- package/dist/cjs/extractors/embed/index.js +2 -3
- package/dist/cjs/extractors/flexible/actions/extract-download-action.js +2 -3
- package/dist/cjs/extractors/flexible/actions/extract-follow-action.js +2 -3
- package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +2 -3
- package/dist/cjs/extractors/flexible/actions/extract-view-action.js +2 -3
- package/dist/cjs/extractors/flexible/collaboratorGroup/index.js +2 -3
- package/dist/cjs/extractors/flexible/extract-preview.js +1 -2
- package/dist/cjs/extractors/flexible/extract-priority.js +1 -2
- package/dist/cjs/extractors/flexible/extract-server-action.js +1 -2
- package/dist/cjs/extractors/flexible/extract-state.js +1 -2
- package/dist/cjs/extractors/flexible/icon/extract-document-type-icon.js +1 -2
- package/dist/cjs/extractors/flexible/icon/extract-file-formatIcon.js +1 -2
- package/dist/cjs/extractors/flexible/icon/extract-icon-renderer.js +1 -2
- package/dist/cjs/extractors/flexible/icon/extract-jira-task-icon.js +1 -2
- package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -2
- package/dist/cjs/extractors/flexible/icon/extract-provider-icon.js +1 -2
- package/dist/cjs/extractors/flexible/icon/extract-url-icon.js +1 -2
- package/dist/cjs/extractors/flexible/icon/index.js +3 -5
- package/dist/cjs/extractors/flexible/index.js +1 -2
- package/dist/cjs/extractors/flexible/latest-commit/index.js +2 -3
- package/dist/cjs/extractors/flexible/utils.js +22 -43
- package/dist/cjs/extractors/hover/extractMetadata.js +3 -5
- package/dist/cjs/extractors/inline/index.js +3 -5
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +2 -3
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/is.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/languages.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +2 -3
- package/dist/cjs/i18n/ro.js +2 -3
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +2 -3
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/cjs/messages.js +2 -3
- package/dist/cjs/ssr.js +2 -3
- package/dist/cjs/state/actions/constants.js +6 -12
- package/dist/cjs/state/actions/index.js +2 -3
- package/dist/cjs/state/analytics/ufoExperiences.js +5 -9
- package/dist/cjs/state/analytics/useDispatchAnalytics.js +2 -3
- package/dist/cjs/state/analytics/useLinkClicked.js +5 -8
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +2 -3
- package/dist/cjs/state/config/index.js +2 -3
- package/dist/cjs/state/flexible-ui-context/index.js +7 -13
- package/dist/cjs/state/flexible-ui-context/utils.js +2 -3
- package/dist/cjs/state/helpers.js +23 -38
- package/dist/cjs/state/hooks/use-invoke/index.js +1 -2
- package/dist/cjs/state/hooks/use-invoke/utils.js +3 -5
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +4 -5
- package/dist/cjs/state/hooks/use-resolve/index.js +1 -2
- package/dist/cjs/state/renderers/index.js +2 -3
- package/dist/cjs/utils/actions/create-invoke-request.js +1 -2
- package/dist/cjs/utils/actions/create-status-update-request.js +1 -2
- package/dist/cjs/utils/analytics/LinkAnalyticsContext.js +2 -3
- package/dist/cjs/utils/analytics/SmartLinkAnalyticsContext.js +2 -3
- package/dist/cjs/utils/analytics/analytics.js +41 -80
- package/dist/cjs/utils/analytics/click.js +4 -8
- package/dist/cjs/utils/analytics/index.js +2 -3
- package/dist/cjs/utils/flexible.js +12 -17
- package/dist/cjs/utils/index.js +15 -29
- package/dist/cjs/utils/intl-utils/index.js +2 -3
- package/dist/cjs/utils/jsonld.js +4 -7
- package/dist/cjs/utils/mocks.js +8 -15
- package/dist/cjs/utils/performance.js +8 -15
- package/dist/cjs/utils/test-utils.js +3 -5
- package/dist/cjs/utils/token.js +2 -3
- package/dist/cjs/view/BlockCard/actions/AuthorizeAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/DownloadAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/ForbiddenAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/PreviewAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/RetryAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/ViewAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/flexible/AuthorizeAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/flexible/ForbiddenAction.js +2 -3
- package/dist/cjs/view/BlockCard/actions/flexible/RetryAction.js +2 -3
- package/dist/cjs/view/BlockCard/components/Action.js +3 -5
- package/dist/cjs/view/BlockCard/components/ActionIcon.js +3 -5
- package/dist/cjs/view/BlockCard/components/ActionList.js +2 -3
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +2 -3
- package/dist/cjs/view/BlockCard/components/Content.js +3 -5
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +3 -5
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +3 -5
- package/dist/cjs/view/BlockCard/components/Emoji.js +2 -3
- package/dist/cjs/view/BlockCard/components/Frame.js +4 -7
- package/dist/cjs/view/BlockCard/components/Link.js +2 -3
- package/dist/cjs/view/BlockCard/components/Name.js +3 -5
- package/dist/cjs/view/BlockCard/components/Provider.js +2 -3
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +4 -7
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +2 -3
- package/dist/cjs/view/BlockCard/components/flexible/footer/index.js +1 -2
- package/dist/cjs/view/BlockCard/index.js +2 -3
- package/dist/cjs/view/BlockCard/utils/handlers.js +2 -3
- package/dist/cjs/view/BlockCard/views/ErroredView.js +3 -5
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +4 -7
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +3 -5
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +4 -7
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +3 -5
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +2 -3
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +1 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +1 -2
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +4 -8
- package/dist/cjs/view/BlockCard/views/flexible/utils/index.js +3 -5
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +2 -3
- package/dist/cjs/view/Card/index.js +2 -3
- package/dist/cjs/view/CardWithData/component.js +2 -3
- package/dist/cjs/view/CardWithData/loader.js +1 -2
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyFallback.js +3 -5
- package/dist/cjs/view/CardWithUrl/component.js +2 -3
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +2 -3
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +2 -3
- package/dist/cjs/view/EmbedCard/components/Frame.js +2 -3
- package/dist/cjs/view/EmbedCard/components/IframeDwellTracker.js +2 -3
- package/dist/cjs/view/EmbedCard/components/ImageIcon.js +2 -3
- package/dist/cjs/view/EmbedCard/components/styled.js +25 -46
- package/dist/cjs/view/EmbedCard/constants.js +3 -6
- package/dist/cjs/view/EmbedCard/index.js +21 -5
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -3
- package/dist/cjs/view/EmbedCard/views/ForbiddenView.js +6 -3
- package/dist/cjs/view/EmbedCard/views/NotFoundView.js +6 -3
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +2 -3
- package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +2 -3
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +2 -3
- package/dist/cjs/view/EmbedCard/views/forbidden-view/index.js +23 -28
- package/dist/cjs/view/EmbedCard/views/not-found-view/index.js +52 -0
- package/dist/cjs/view/EmbedCard/views/not-found-view/types.js +5 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -2
- package/dist/cjs/view/EmbedCard/views/unresolved-view/styled.js +4 -8
- package/dist/cjs/view/EmbedModal/components/analytics/index.js +6 -7
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +1 -2
- package/dist/cjs/view/EmbedModal/components/error-boundary/index.js +1 -2
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +1 -2
- package/dist/cjs/view/EmbedModal/components/link-info/link-info-button/index.js +1 -2
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +4 -8
- package/dist/cjs/view/EmbedModal/constants.js +2 -4
- package/dist/cjs/view/EmbedModal/index.js +1 -2
- package/dist/cjs/view/EmbedModal/types.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/download-action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/preview-action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +5 -6
- package/dist/cjs/view/FlexibleCard/components/actions/action/view-action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/index.js +6 -12
- package/dist/cjs/view/FlexibleCard/components/actions/utils.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +2 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/snippet-block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +9 -17
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/container/hover-card-control/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +2 -4
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +34 -66
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/error-boundary/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/styled.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +10 -11
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-analytics.js +5 -9
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +5 -9
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +3 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -6
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/utils.js +13 -25
- package/dist/cjs/view/FlexibleCard/index.js +3 -4
- package/dist/cjs/view/FlexibleCard/utils.js +5 -7
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +1 -2
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -3
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +3 -6
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +1 -2
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +1 -2
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +3 -6
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +2 -4
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +3 -6
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +1 -2
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +4 -8
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +1 -2
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +3 -6
- package/dist/cjs/view/HoverCard/index.js +3 -5
- package/dist/cjs/view/HoverCard/styled.js +11 -21
- package/dist/cjs/view/HoverCard/utils.js +3 -5
- package/dist/cjs/view/InlineCard/ErroredView/index.js +2 -3
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +8 -9
- package/dist/cjs/view/InlineCard/Frame/index.js +2 -3
- package/dist/cjs/view/InlineCard/Frame/styled.js +2 -4
- package/dist/cjs/view/InlineCard/Icon.js +4 -7
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +1 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +12 -24
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +2 -3
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +2 -3
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +1 -2
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +3 -4
- package/dist/cjs/view/InlineCard/index.js +2 -3
- package/dist/cjs/view/InlineCard/styled.js +5 -9
- package/dist/cjs/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.js +2 -3
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +2 -3
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +1 -2
- package/dist/cjs/view/LinkUrl/index.js +2 -3
- package/dist/cjs/view/LinkView/index.js +2 -3
- package/dist/cjs/view/RedesignedInlineCard/ErroredView/index.js +2 -3
- package/dist/cjs/view/RedesignedInlineCard/ForbiddenView/index.js +8 -9
- package/dist/cjs/view/RedesignedInlineCard/Frame/index.js +2 -3
- package/dist/cjs/view/RedesignedInlineCard/Frame/styled.js +2 -4
- package/dist/cjs/view/RedesignedInlineCard/Icon.js +4 -7
- package/dist/cjs/view/RedesignedInlineCard/IconAndTitleLayout/index.js +1 -2
- package/dist/cjs/view/RedesignedInlineCard/IconAndTitleLayout/styled.js +11 -22
- package/dist/cjs/view/RedesignedInlineCard/ResolvedView/index.js +2 -3
- package/dist/cjs/view/RedesignedInlineCard/ResolvingView/index.js +2 -3
- package/dist/cjs/view/RedesignedInlineCard/ResolvingView/styled.js +1 -2
- package/dist/cjs/view/RedesignedInlineCard/UnauthorisedView/index.js +3 -4
- package/dist/cjs/view/RedesignedInlineCard/index.js +2 -3
- package/dist/cjs/view/RedesignedInlineCard/styled.js +5 -9
- package/dist/cjs/view/RedesignedInlineCard/utils/withFrameStyleControl.js +2 -3
- package/dist/cjs/view/common/Byline.js +2 -3
- package/dist/cjs/view/common/Icon.js +3 -5
- package/dist/cjs/view/common/Metadata.js +2 -3
- package/dist/cjs/view/common/MetadataList.js +3 -5
- package/dist/cjs/view/common/UnauthorisedViewContent.js +2 -3
- package/dist/cjs/view/common/utils.js +3 -6
- package/dist/es2019/extractors/common/context/extractAccessContext.js +7 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/index.js +19 -2
- package/dist/es2019/view/EmbedCard/views/ForbiddenView.js +4 -0
- package/dist/es2019/view/EmbedCard/views/NotFoundView.js +4 -0
- package/dist/es2019/view/EmbedCard/views/forbidden-view/index.js +14 -20
- package/dist/es2019/view/EmbedCard/views/not-found-view/index.js +39 -0
- package/dist/es2019/view/EmbedCard/views/not-found-view/types.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/action/extract-lozenge-action-items.js +1 -1
- package/dist/esm/extractors/common/context/extractAccessContext.js +8 -2
- package/dist/esm/extractors/flexible/actions/extract-follow-action.js +1 -1
- package/dist/esm/state/analytics/useLinkClicked.js +1 -1
- package/dist/esm/state/helpers.js +7 -7
- package/dist/esm/state/hooks/use-invoke-client-action/index.js +3 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/index.js +19 -2
- package/dist/esm/view/EmbedCard/views/ForbiddenView.js +4 -0
- package/dist/esm/view/EmbedCard/views/NotFoundView.js +4 -0
- package/dist/esm/view/EmbedCard/views/forbidden-view/index.js +22 -26
- package/dist/esm/view/EmbedCard/views/not-found-view/index.js +42 -0
- package/dist/esm/view/EmbedCard/views/not-found-view/types.js +1 -0
- package/dist/esm/view/EmbedModal/components/analytics/index.js +5 -5
- package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +9 -9
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +2 -2
- package/dist/esm/view/FlexibleCard/index.js +2 -2
- package/dist/esm/view/FlexibleCard/utils.js +2 -2
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +6 -6
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RedesignedInlineCard/ForbiddenView/index.js +6 -6
- package/dist/esm/view/RedesignedInlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/view/common/UnauthorisedViewContent.js +1 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/EmbedCard/views/ForbiddenView.d.ts +4 -0
- package/dist/types/view/EmbedCard/views/NotFoundView.d.ts +4 -0
- package/dist/types/view/EmbedCard/views/forbidden-view/types.d.ts +3 -8
- package/dist/types/view/EmbedCard/views/not-found-view/index.d.ts +4 -0
- package/dist/types/view/EmbedCard/views/not-found-view/types.d.ts +7 -0
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/views/ForbiddenView.d.ts +4 -0
- package/dist/types-ts4.5/view/EmbedCard/views/NotFoundView.d.ts +4 -0
- package/dist/types-ts4.5/view/EmbedCard/views/forbidden-view/types.d.ts +3 -8
- package/dist/types-ts4.5/view/EmbedCard/views/not-found-view/index.d.ts +4 -0
- package/dist/types-ts4.5/view/EmbedCard/views/not-found-view/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -18,37 +18,31 @@ var _excluded = ["smartLinkActionType"],
|
|
|
18
18
|
var _SmartLinkActionTypeT, _SmartLinkActionTypeU;
|
|
19
19
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
-
var ANALYTICS_CHANNEL = 'media';
|
|
22
|
-
exports.
|
|
23
|
-
var context = {
|
|
21
|
+
var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
22
|
+
var context = exports.context = {
|
|
24
23
|
componentName: 'smart-cards',
|
|
25
24
|
packageName: "@atlaskit/smart-card",
|
|
26
|
-
packageVersion: "26.
|
|
25
|
+
packageVersion: "26.32.0"
|
|
27
26
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
27
|
+
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
30
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
31
29
|
return TrackQuickActionType;
|
|
32
30
|
}({});
|
|
33
|
-
exports.
|
|
34
|
-
var TrackQuickActionFailureReason = /*#__PURE__*/function (TrackQuickActionFailureReason) {
|
|
31
|
+
var TrackQuickActionFailureReason = exports.TrackQuickActionFailureReason = /*#__PURE__*/function (TrackQuickActionFailureReason) {
|
|
35
32
|
TrackQuickActionFailureReason["PermissionError"] = "PermissionError";
|
|
36
33
|
TrackQuickActionFailureReason["ValidationError"] = "ValidationError";
|
|
37
34
|
TrackQuickActionFailureReason["UnknownError"] = "UnknownError";
|
|
38
35
|
return TrackQuickActionFailureReason;
|
|
39
36
|
}({});
|
|
40
|
-
exports.
|
|
41
|
-
var
|
|
42
|
-
exports.SmartLinkActionTypeTrackingEventMapper = SmartLinkActionTypeTrackingEventMapper;
|
|
43
|
-
var SmartLinkActionTypeUiEventMapper = (_SmartLinkActionTypeU = {}, (0, _defineProperty2.default)(_SmartLinkActionTypeU, _linkingTypes.SmartLinkActionType.FollowEntityAction, 'smartLinkFollowButton'), (0, _defineProperty2.default)(_SmartLinkActionTypeU, _linkingTypes.SmartLinkActionType.UnfollowEntityAction, 'smartLinkFollowButton'), _SmartLinkActionTypeU);
|
|
44
|
-
exports.SmartLinkActionTypeUiEventMapper = SmartLinkActionTypeUiEventMapper;
|
|
37
|
+
var SmartLinkActionTypeTrackingEventMapper = exports.SmartLinkActionTypeTrackingEventMapper = (_SmartLinkActionTypeT = {}, (0, _defineProperty2.default)(_SmartLinkActionTypeT, _linkingTypes.SmartLinkActionType.FollowEntityAction, 'Follow'), (0, _defineProperty2.default)(_SmartLinkActionTypeT, _linkingTypes.SmartLinkActionType.StatusUpdateAction, 'StatusUpdate'), (0, _defineProperty2.default)(_SmartLinkActionTypeT, _linkingTypes.SmartLinkActionType.UnfollowEntityAction, 'Unfollow'), _SmartLinkActionTypeT);
|
|
38
|
+
var SmartLinkActionTypeUiEventMapper = exports.SmartLinkActionTypeUiEventMapper = (_SmartLinkActionTypeU = {}, (0, _defineProperty2.default)(_SmartLinkActionTypeU, _linkingTypes.SmartLinkActionType.FollowEntityAction, 'smartLinkFollowButton'), (0, _defineProperty2.default)(_SmartLinkActionTypeU, _linkingTypes.SmartLinkActionType.UnfollowEntityAction, 'smartLinkFollowButton'), _SmartLinkActionTypeU);
|
|
45
39
|
var uiActionSubjectIds = {
|
|
46
40
|
DownloadAction: 'downloadDocument',
|
|
47
41
|
PreviewAction: 'invokePreviewScreen',
|
|
48
42
|
ViewAction: 'shortcutGoToLink',
|
|
49
43
|
StatusAction: 'issueStatusUpdate'
|
|
50
44
|
};
|
|
51
|
-
var SmartLinkEvents = /*#__PURE__*/function () {
|
|
45
|
+
var SmartLinkEvents = exports.SmartLinkEvents = /*#__PURE__*/function () {
|
|
52
46
|
function SmartLinkEvents() {
|
|
53
47
|
(0, _classCallCheck2.default)(this, SmartLinkEvents);
|
|
54
48
|
}
|
|
@@ -70,14 +64,12 @@ var SmartLinkEvents = /*#__PURE__*/function () {
|
|
|
70
64
|
}]);
|
|
71
65
|
return SmartLinkEvents;
|
|
72
66
|
}();
|
|
73
|
-
exports.
|
|
74
|
-
var fireSmartLinkEvent = function fireSmartLinkEvent(payload, createAnalyticsEvent) {
|
|
67
|
+
var fireSmartLinkEvent = exports.fireSmartLinkEvent = function fireSmartLinkEvent(payload, createAnalyticsEvent) {
|
|
75
68
|
if (createAnalyticsEvent) {
|
|
76
69
|
createAnalyticsEvent(payload).fire(ANALYTICS_CHANNEL);
|
|
77
70
|
}
|
|
78
71
|
};
|
|
79
|
-
exports.
|
|
80
|
-
var resolvedEvent = function resolvedEvent(props) {
|
|
72
|
+
var resolvedEvent = exports.resolvedEvent = function resolvedEvent(props) {
|
|
81
73
|
return {
|
|
82
74
|
action: 'resolved',
|
|
83
75
|
actionSubject: 'smartLink',
|
|
@@ -85,8 +77,7 @@ var resolvedEvent = function resolvedEvent(props) {
|
|
|
85
77
|
attributes: _objectSpread(_objectSpread({}, props), context)
|
|
86
78
|
};
|
|
87
79
|
};
|
|
88
|
-
exports.
|
|
89
|
-
var unresolvedEvent = function unresolvedEvent(_ref) {
|
|
80
|
+
var unresolvedEvent = exports.unresolvedEvent = function unresolvedEvent(_ref) {
|
|
90
81
|
var id = _ref.id,
|
|
91
82
|
definitionId = _ref.definitionId,
|
|
92
83
|
extensionKey = _ref.extensionKey,
|
|
@@ -124,8 +115,7 @@ var unresolvedEvent = function unresolvedEvent(_ref) {
|
|
|
124
115
|
})
|
|
125
116
|
};
|
|
126
117
|
};
|
|
127
|
-
exports.
|
|
128
|
-
var invokeSucceededEvent = function invokeSucceededEvent(_ref2) {
|
|
118
|
+
var invokeSucceededEvent = exports.invokeSucceededEvent = function invokeSucceededEvent(_ref2) {
|
|
129
119
|
var id = _ref2.id,
|
|
130
120
|
actionType = _ref2.actionType,
|
|
131
121
|
display = _ref2.display,
|
|
@@ -152,8 +142,7 @@ var invokeSucceededEvent = function invokeSucceededEvent(_ref2) {
|
|
|
152
142
|
})
|
|
153
143
|
};
|
|
154
144
|
};
|
|
155
|
-
exports.
|
|
156
|
-
var invokeFailedEvent = function invokeFailedEvent(_ref3) {
|
|
145
|
+
var invokeFailedEvent = exports.invokeFailedEvent = function invokeFailedEvent(_ref3) {
|
|
157
146
|
var id = _ref3.id,
|
|
158
147
|
actionType = _ref3.actionType,
|
|
159
148
|
display = _ref3.display,
|
|
@@ -182,8 +171,7 @@ var invokeFailedEvent = function invokeFailedEvent(_ref3) {
|
|
|
182
171
|
})
|
|
183
172
|
};
|
|
184
173
|
};
|
|
185
|
-
exports.
|
|
186
|
-
var connectSucceededEvent = function connectSucceededEvent(_ref4) {
|
|
174
|
+
var connectSucceededEvent = exports.connectSucceededEvent = function connectSucceededEvent(_ref4) {
|
|
187
175
|
var definitionId = _ref4.definitionId,
|
|
188
176
|
extensionKey = _ref4.extensionKey,
|
|
189
177
|
destinationProduct = _ref4.destinationProduct,
|
|
@@ -202,8 +190,7 @@ var connectSucceededEvent = function connectSucceededEvent(_ref4) {
|
|
|
202
190
|
})
|
|
203
191
|
};
|
|
204
192
|
};
|
|
205
|
-
exports.
|
|
206
|
-
var connectFailedEvent = function connectFailedEvent(_ref5) {
|
|
193
|
+
var connectFailedEvent = exports.connectFailedEvent = function connectFailedEvent(_ref5) {
|
|
207
194
|
var definitionId = _ref5.definitionId,
|
|
208
195
|
extensionKey = _ref5.extensionKey,
|
|
209
196
|
destinationProduct = _ref5.destinationProduct,
|
|
@@ -225,8 +212,7 @@ var connectFailedEvent = function connectFailedEvent(_ref5) {
|
|
|
225
212
|
})
|
|
226
213
|
};
|
|
227
214
|
};
|
|
228
|
-
exports.
|
|
229
|
-
var trackAppAccountConnected = function trackAppAccountConnected(_ref6) {
|
|
215
|
+
var trackAppAccountConnected = exports.trackAppAccountConnected = function trackAppAccountConnected(_ref6) {
|
|
230
216
|
var definitionId = _ref6.definitionId,
|
|
231
217
|
extensionKey = _ref6.extensionKey,
|
|
232
218
|
destinationProduct = _ref6.destinationProduct,
|
|
@@ -245,8 +231,7 @@ var trackAppAccountConnected = function trackAppAccountConnected(_ref6) {
|
|
|
245
231
|
})
|
|
246
232
|
};
|
|
247
233
|
};
|
|
248
|
-
exports.
|
|
249
|
-
var trackAppAccountAuthStarted = function trackAppAccountAuthStarted(_ref7) {
|
|
234
|
+
var trackAppAccountAuthStarted = exports.trackAppAccountAuthStarted = function trackAppAccountAuthStarted(_ref7) {
|
|
250
235
|
var extensionKey = _ref7.extensionKey,
|
|
251
236
|
location = _ref7.location;
|
|
252
237
|
return {
|
|
@@ -259,8 +244,7 @@ var trackAppAccountAuthStarted = function trackAppAccountAuthStarted(_ref7) {
|
|
|
259
244
|
})
|
|
260
245
|
};
|
|
261
246
|
};
|
|
262
|
-
exports.
|
|
263
|
-
var trackSmartLinkQuickActionStarted = function trackSmartLinkQuickActionStarted(_ref8) {
|
|
247
|
+
var trackSmartLinkQuickActionStarted = exports.trackSmartLinkQuickActionStarted = function trackSmartLinkQuickActionStarted(_ref8) {
|
|
264
248
|
var _SmartLinkActionTypeT2;
|
|
265
249
|
var smartLinkActionType = _ref8.smartLinkActionType,
|
|
266
250
|
attributes = (0, _objectWithoutProperties2.default)(_ref8, _excluded);
|
|
@@ -273,8 +257,7 @@ var trackSmartLinkQuickActionStarted = function trackSmartLinkQuickActionStarted
|
|
|
273
257
|
})
|
|
274
258
|
};
|
|
275
259
|
};
|
|
276
|
-
exports.
|
|
277
|
-
var trackSmartLinkQuickActionSuccess = function trackSmartLinkQuickActionSuccess(_ref9) {
|
|
260
|
+
var trackSmartLinkQuickActionSuccess = exports.trackSmartLinkQuickActionSuccess = function trackSmartLinkQuickActionSuccess(_ref9) {
|
|
278
261
|
var _SmartLinkActionTypeT3;
|
|
279
262
|
var smartLinkActionType = _ref9.smartLinkActionType,
|
|
280
263
|
attributes = (0, _objectWithoutProperties2.default)(_ref9, _excluded2);
|
|
@@ -287,8 +270,7 @@ var trackSmartLinkQuickActionSuccess = function trackSmartLinkQuickActionSuccess
|
|
|
287
270
|
})
|
|
288
271
|
};
|
|
289
272
|
};
|
|
290
|
-
exports.
|
|
291
|
-
var trackSmartLinkQuickActionFailed = function trackSmartLinkQuickActionFailed(_ref10) {
|
|
273
|
+
var trackSmartLinkQuickActionFailed = exports.trackSmartLinkQuickActionFailed = function trackSmartLinkQuickActionFailed(_ref10) {
|
|
292
274
|
var _SmartLinkActionTypeT4;
|
|
293
275
|
var smartLinkActionType = _ref10.smartLinkActionType,
|
|
294
276
|
attributes = (0, _objectWithoutProperties2.default)(_ref10, _excluded3);
|
|
@@ -301,8 +283,7 @@ var trackSmartLinkQuickActionFailed = function trackSmartLinkQuickActionFailed(_
|
|
|
301
283
|
})
|
|
302
284
|
};
|
|
303
285
|
};
|
|
304
|
-
exports.
|
|
305
|
-
var trackHoverCardResolutionStarted = function trackHoverCardResolutionStarted(_ref11) {
|
|
286
|
+
var trackHoverCardResolutionStarted = exports.trackHoverCardResolutionStarted = function trackHoverCardResolutionStarted(_ref11) {
|
|
306
287
|
var display = _ref11.display,
|
|
307
288
|
attributes = (0, _objectWithoutProperties2.default)(_ref11, _excluded4);
|
|
308
289
|
return {
|
|
@@ -314,8 +295,7 @@ var trackHoverCardResolutionStarted = function trackHoverCardResolutionStarted(_
|
|
|
314
295
|
})
|
|
315
296
|
};
|
|
316
297
|
};
|
|
317
|
-
exports.
|
|
318
|
-
var uiAuthEvent = function uiAuthEvent(_ref12) {
|
|
298
|
+
var uiAuthEvent = exports.uiAuthEvent = function uiAuthEvent(_ref12) {
|
|
319
299
|
var definitionId = _ref12.definitionId,
|
|
320
300
|
extensionKey = _ref12.extensionKey,
|
|
321
301
|
destinationProduct = _ref12.destinationProduct,
|
|
@@ -337,8 +317,7 @@ var uiAuthEvent = function uiAuthEvent(_ref12) {
|
|
|
337
317
|
})
|
|
338
318
|
};
|
|
339
319
|
};
|
|
340
|
-
exports.
|
|
341
|
-
var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_ref13) {
|
|
320
|
+
var uiAuthAlternateAccountEvent = exports.uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_ref13) {
|
|
342
321
|
var definitionId = _ref13.definitionId,
|
|
343
322
|
extensionKey = _ref13.extensionKey,
|
|
344
323
|
destinationProduct = _ref13.destinationProduct,
|
|
@@ -360,8 +339,7 @@ var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_ref13) {
|
|
|
360
339
|
})
|
|
361
340
|
};
|
|
362
341
|
};
|
|
363
|
-
exports.
|
|
364
|
-
var uiCardClickedEvent = function uiCardClickedEvent(_ref14) {
|
|
342
|
+
var uiCardClickedEvent = exports.uiCardClickedEvent = function uiCardClickedEvent(_ref14) {
|
|
365
343
|
var id = _ref14.id,
|
|
366
344
|
display = _ref14.display,
|
|
367
345
|
status = _ref14.status,
|
|
@@ -390,8 +368,7 @@ var uiCardClickedEvent = function uiCardClickedEvent(_ref14) {
|
|
|
390
368
|
})
|
|
391
369
|
};
|
|
392
370
|
};
|
|
393
|
-
exports.
|
|
394
|
-
var uiIframeDwelledEvent = function uiIframeDwelledEvent(_ref15) {
|
|
371
|
+
var uiIframeDwelledEvent = exports.uiIframeDwelledEvent = function uiIframeDwelledEvent(_ref15) {
|
|
395
372
|
var id = _ref15.id,
|
|
396
373
|
display = _ref15.display,
|
|
397
374
|
status = _ref15.status,
|
|
@@ -420,8 +397,7 @@ var uiIframeDwelledEvent = function uiIframeDwelledEvent(_ref15) {
|
|
|
420
397
|
})
|
|
421
398
|
};
|
|
422
399
|
};
|
|
423
|
-
exports.
|
|
424
|
-
var uiIframeFocusedEvent = function uiIframeFocusedEvent(_ref16) {
|
|
400
|
+
var uiIframeFocusedEvent = exports.uiIframeFocusedEvent = function uiIframeFocusedEvent(_ref16) {
|
|
425
401
|
var id = _ref16.id,
|
|
426
402
|
display = _ref16.display,
|
|
427
403
|
status = _ref16.status,
|
|
@@ -446,8 +422,7 @@ var uiIframeFocusedEvent = function uiIframeFocusedEvent(_ref16) {
|
|
|
446
422
|
})
|
|
447
423
|
};
|
|
448
424
|
};
|
|
449
|
-
exports.
|
|
450
|
-
var uiActionClickedEvent = function uiActionClickedEvent(_ref17) {
|
|
425
|
+
var uiActionClickedEvent = exports.uiActionClickedEvent = function uiActionClickedEvent(_ref17) {
|
|
451
426
|
var id = _ref17.id,
|
|
452
427
|
actionType = _ref17.actionType,
|
|
453
428
|
extensionKey = _ref17.extensionKey,
|
|
@@ -473,8 +448,7 @@ var uiActionClickedEvent = function uiActionClickedEvent(_ref17) {
|
|
|
473
448
|
})
|
|
474
449
|
};
|
|
475
450
|
};
|
|
476
|
-
exports.
|
|
477
|
-
var uiClosedAuthEvent = function uiClosedAuthEvent(_ref18) {
|
|
451
|
+
var uiClosedAuthEvent = exports.uiClosedAuthEvent = function uiClosedAuthEvent(_ref18) {
|
|
478
452
|
var display = _ref18.display,
|
|
479
453
|
extensionKey = _ref18.extensionKey,
|
|
480
454
|
definitionId = _ref18.definitionId,
|
|
@@ -495,8 +469,7 @@ var uiClosedAuthEvent = function uiClosedAuthEvent(_ref18) {
|
|
|
495
469
|
})
|
|
496
470
|
};
|
|
497
471
|
};
|
|
498
|
-
exports.
|
|
499
|
-
var screenAuthPopupEvent = function screenAuthPopupEvent(_ref19) {
|
|
472
|
+
var screenAuthPopupEvent = exports.screenAuthPopupEvent = function screenAuthPopupEvent(_ref19) {
|
|
500
473
|
var extensionKey = _ref19.extensionKey,
|
|
501
474
|
definitionId = _ref19.definitionId,
|
|
502
475
|
destinationProduct = _ref19.destinationProduct,
|
|
@@ -514,8 +487,7 @@ var screenAuthPopupEvent = function screenAuthPopupEvent(_ref19) {
|
|
|
514
487
|
})
|
|
515
488
|
};
|
|
516
489
|
};
|
|
517
|
-
exports.
|
|
518
|
-
var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref20) {
|
|
490
|
+
var uiRenderSuccessEvent = exports.uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref20) {
|
|
519
491
|
var display = _ref20.display,
|
|
520
492
|
status = _ref20.status,
|
|
521
493
|
extensionKey = _ref20.extensionKey,
|
|
@@ -540,8 +512,7 @@ var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref20) {
|
|
|
540
512
|
})
|
|
541
513
|
};
|
|
542
514
|
};
|
|
543
|
-
exports.
|
|
544
|
-
var uiRenderFailedEvent = function uiRenderFailedEvent(_ref21) {
|
|
515
|
+
var uiRenderFailedEvent = exports.uiRenderFailedEvent = function uiRenderFailedEvent(_ref21) {
|
|
545
516
|
var display = _ref21.display,
|
|
546
517
|
error = _ref21.error,
|
|
547
518
|
errorInfo = _ref21.errorInfo,
|
|
@@ -566,8 +537,7 @@ var uiRenderFailedEvent = function uiRenderFailedEvent(_ref21) {
|
|
|
566
537
|
})
|
|
567
538
|
};
|
|
568
539
|
};
|
|
569
|
-
exports.
|
|
570
|
-
var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref22) {
|
|
540
|
+
var uiHoverCardViewedEvent = exports.uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref22) {
|
|
571
541
|
var id = _ref22.id,
|
|
572
542
|
previewDisplay = _ref22.previewDisplay,
|
|
573
543
|
extensionKey = _ref22.extensionKey,
|
|
@@ -594,8 +564,7 @@ var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref22) {
|
|
|
594
564
|
})
|
|
595
565
|
};
|
|
596
566
|
};
|
|
597
|
-
exports.
|
|
598
|
-
var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref23) {
|
|
567
|
+
var uiHoverCardDismissedEvent = exports.uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref23) {
|
|
599
568
|
var id = _ref23.id,
|
|
600
569
|
previewDisplay = _ref23.previewDisplay,
|
|
601
570
|
hoverTime = _ref23.hoverTime,
|
|
@@ -624,8 +593,7 @@ var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref23) {
|
|
|
624
593
|
})
|
|
625
594
|
};
|
|
626
595
|
};
|
|
627
|
-
exports.
|
|
628
|
-
var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref24) {
|
|
596
|
+
var uiHoverCardOpenLinkClickedEvent = exports.uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref24) {
|
|
629
597
|
var id = _ref24.id,
|
|
630
598
|
previewDisplay = _ref24.previewDisplay,
|
|
631
599
|
extensionKey = _ref24.extensionKey,
|
|
@@ -651,8 +619,7 @@ var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_
|
|
|
651
619
|
})
|
|
652
620
|
};
|
|
653
621
|
};
|
|
654
|
-
exports.
|
|
655
|
-
var uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent() {
|
|
622
|
+
var uiLearnMoreLinkClickedEvent = exports.uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent() {
|
|
656
623
|
return {
|
|
657
624
|
action: 'clicked',
|
|
658
625
|
actionSubject: 'button',
|
|
@@ -661,8 +628,7 @@ var uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent() {
|
|
|
661
628
|
attributes: _objectSpread({}, context)
|
|
662
629
|
};
|
|
663
630
|
};
|
|
664
|
-
exports.
|
|
665
|
-
var chunkloadFailedEvent = function chunkloadFailedEvent(_ref25) {
|
|
631
|
+
var chunkloadFailedEvent = exports.chunkloadFailedEvent = function chunkloadFailedEvent(_ref25) {
|
|
666
632
|
var display = _ref25.display,
|
|
667
633
|
error = _ref25.error,
|
|
668
634
|
errorInfo = _ref25.errorInfo,
|
|
@@ -687,8 +653,7 @@ var chunkloadFailedEvent = function chunkloadFailedEvent(_ref25) {
|
|
|
687
653
|
})
|
|
688
654
|
};
|
|
689
655
|
};
|
|
690
|
-
exports.
|
|
691
|
-
var uiSmartLinkStatusLozengeButtonClicked = function uiSmartLinkStatusLozengeButtonClicked() {
|
|
656
|
+
var uiSmartLinkStatusLozengeButtonClicked = exports.uiSmartLinkStatusLozengeButtonClicked = function uiSmartLinkStatusLozengeButtonClicked() {
|
|
692
657
|
return {
|
|
693
658
|
action: 'clicked',
|
|
694
659
|
actionSubject: 'button',
|
|
@@ -697,8 +662,7 @@ var uiSmartLinkStatusLozengeButtonClicked = function uiSmartLinkStatusLozengeBut
|
|
|
697
662
|
attributes: _objectSpread({}, context)
|
|
698
663
|
};
|
|
699
664
|
};
|
|
700
|
-
exports.
|
|
701
|
-
var uiSmartLinkStatusListItemButtonClicked = function uiSmartLinkStatusListItemButtonClicked() {
|
|
665
|
+
var uiSmartLinkStatusListItemButtonClicked = exports.uiSmartLinkStatusListItemButtonClicked = function uiSmartLinkStatusListItemButtonClicked() {
|
|
702
666
|
return {
|
|
703
667
|
action: 'clicked',
|
|
704
668
|
actionSubject: 'button',
|
|
@@ -707,8 +671,7 @@ var uiSmartLinkStatusListItemButtonClicked = function uiSmartLinkStatusListItemB
|
|
|
707
671
|
attributes: _objectSpread({}, context)
|
|
708
672
|
};
|
|
709
673
|
};
|
|
710
|
-
exports.
|
|
711
|
-
var uiSmartLinkStatusOpenPreviewButtonClicked = function uiSmartLinkStatusOpenPreviewButtonClicked() {
|
|
674
|
+
var uiSmartLinkStatusOpenPreviewButtonClicked = exports.uiSmartLinkStatusOpenPreviewButtonClicked = function uiSmartLinkStatusOpenPreviewButtonClicked() {
|
|
712
675
|
return {
|
|
713
676
|
action: 'clicked',
|
|
714
677
|
actionSubject: 'button',
|
|
@@ -717,8 +680,7 @@ var uiSmartLinkStatusOpenPreviewButtonClicked = function uiSmartLinkStatusOpenPr
|
|
|
717
680
|
attributes: _objectSpread({}, context)
|
|
718
681
|
};
|
|
719
682
|
};
|
|
720
|
-
exports.
|
|
721
|
-
var uiServerActionClicked = function uiServerActionClicked(_ref26) {
|
|
683
|
+
var uiServerActionClicked = exports.uiServerActionClicked = function uiServerActionClicked(_ref26) {
|
|
722
684
|
var _SmartLinkActionTypeU2;
|
|
723
685
|
var smartLinkActionType = _ref26.smartLinkActionType;
|
|
724
686
|
return {
|
|
@@ -728,5 +690,4 @@ var uiServerActionClicked = function uiServerActionClicked(_ref26) {
|
|
|
728
690
|
eventType: 'ui',
|
|
729
691
|
attributes: _objectSpread({}, context)
|
|
730
692
|
};
|
|
731
|
-
};
|
|
732
|
-
exports.uiServerActionClicked = uiServerActionClicked;
|
|
693
|
+
};
|
|
@@ -14,14 +14,12 @@ var _analytics = require("./analytics");
|
|
|
14
14
|
var _useLinkClicked = require("../../state/analytics/useLinkClicked");
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
-
var buttonMap = new Map([[undefined, 'none'], [0, 'left'], [1, 'middle'], [2, 'right']]);
|
|
18
|
-
exports.
|
|
19
|
-
var getKeys = function getKeys(e) {
|
|
17
|
+
var buttonMap = exports.buttonMap = new Map([[undefined, 'none'], [0, 'left'], [1, 'middle'], [2, 'right']]);
|
|
18
|
+
var getKeys = exports.getKeys = function getKeys(e) {
|
|
20
19
|
return ['alt', 'ctrl', 'meta', 'shift'].filter(function (key) {
|
|
21
20
|
return e["".concat(key, "Key")] === true;
|
|
22
21
|
});
|
|
23
22
|
};
|
|
24
|
-
exports.getKeys = getKeys;
|
|
25
23
|
var isContentEditable = function isContentEditable(el) {
|
|
26
24
|
return el instanceof HTMLElement && el.isContentEditable;
|
|
27
25
|
};
|
|
@@ -97,7 +95,7 @@ var linkClickedEvent = function linkClickedEvent(_ref) {
|
|
|
97
95
|
}
|
|
98
96
|
};
|
|
99
97
|
};
|
|
100
|
-
var createLinkClickedPayload = function createLinkClickedPayload(event) {
|
|
98
|
+
var createLinkClickedPayload = exports.createLinkClickedPayload = function createLinkClickedPayload(event) {
|
|
101
99
|
// Through the `detail` property, we're able to determine if the event is (most likely) triggered via keyboard
|
|
102
100
|
// https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail
|
|
103
101
|
var isKeyboard = event.nativeEvent.detail === 0;
|
|
@@ -115,8 +113,7 @@ var createLinkClickedPayload = function createLinkClickedPayload(event) {
|
|
|
115
113
|
defaultPrevented: defaultPrevented
|
|
116
114
|
});
|
|
117
115
|
};
|
|
118
|
-
exports.
|
|
119
|
-
var fireLinkClickedEvent = function fireLinkClickedEvent(createAnalyticsEvent) {
|
|
116
|
+
var fireLinkClickedEvent = exports.fireLinkClickedEvent = function fireLinkClickedEvent(createAnalyticsEvent) {
|
|
120
117
|
return function (event) {
|
|
121
118
|
var overrides = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
122
119
|
var payload = createLinkClickedPayload(event);
|
|
@@ -127,7 +124,6 @@ var fireLinkClickedEvent = function fireLinkClickedEvent(createAnalyticsEvent) {
|
|
|
127
124
|
}
|
|
128
125
|
};
|
|
129
126
|
};
|
|
130
|
-
exports.fireLinkClickedEvent = fireLinkClickedEvent;
|
|
131
127
|
var getDisplayName = function getDisplayName(WrappedComponent) {
|
|
132
128
|
if (typeof WrappedComponent === 'string') {
|
|
133
129
|
return WrappedComponent;
|
|
@@ -178,7 +178,7 @@ var _performance = require("../performance");
|
|
|
178
178
|
var _analytics = require("./analytics");
|
|
179
179
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
180
180
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
181
|
-
var instrumentEvent = function instrumentEvent(_ref) {
|
|
181
|
+
var instrumentEvent = exports.instrumentEvent = function instrumentEvent(_ref) {
|
|
182
182
|
var id = _ref.id,
|
|
183
183
|
status = _ref.status,
|
|
184
184
|
extensionKey = _ref.extensionKey,
|
|
@@ -226,5 +226,4 @@ var instrumentEvent = function instrumentEvent(_ref) {
|
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
};
|
|
230
|
-
exports.instrumentEvent = instrumentEvent;
|
|
229
|
+
};
|
|
@@ -7,11 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.isFlexibleUiTitleBlock = exports.isFlexibleUiPreviewBlock = exports.isFlexibleUiFooterBlock = exports.isFlexibleUiElement = exports.isFlexibleUiCard = exports.isFlexibleUiBlock = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _blocks = _interopRequireWildcard(require("../view/FlexibleCard/components/blocks"));
|
|
11
|
+
var Blocks = _blocks;
|
|
11
12
|
var Elements = _interopRequireWildcard(require("../view/FlexibleCard/components/elements"));
|
|
12
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
var isFlexibleUiCard = function isFlexibleUiCard(children) {
|
|
15
|
+
var isFlexibleUiCard = exports.isFlexibleUiCard = function isFlexibleUiCard(children) {
|
|
15
16
|
if (children && _react.default.Children.toArray(children).some(function (child) {
|
|
16
17
|
return isFlexibleUiTitleBlock(child);
|
|
17
18
|
})) {
|
|
@@ -19,28 +20,22 @@ var isFlexibleUiCard = function isFlexibleUiCard(children) {
|
|
|
19
20
|
}
|
|
20
21
|
return false;
|
|
21
22
|
};
|
|
22
|
-
exports.
|
|
23
|
-
var isFlexibleUiBlock = function isFlexibleUiBlock(node) {
|
|
23
|
+
var isFlexibleUiBlock = exports.isFlexibleUiBlock = function isFlexibleUiBlock(node) {
|
|
24
24
|
return /*#__PURE__*/_react.default.isValidElement(node) && Object.values(Blocks).some(function (type) {
|
|
25
25
|
return type === node.type;
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var isFlexibleUiElement = function isFlexibleUiElement(node) {
|
|
28
|
+
var isFlexibleUiElement = exports.isFlexibleUiElement = function isFlexibleUiElement(node) {
|
|
30
29
|
return /*#__PURE__*/_react.default.isValidElement(node) && Object.values(Elements).some(function (type) {
|
|
31
30
|
return type === node.type;
|
|
32
31
|
});
|
|
33
32
|
};
|
|
34
|
-
exports.
|
|
35
|
-
|
|
36
|
-
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === Blocks.TitleBlock;
|
|
33
|
+
var isFlexibleUiTitleBlock = exports.isFlexibleUiTitleBlock = function isFlexibleUiTitleBlock(node) {
|
|
34
|
+
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _blocks.TitleBlock;
|
|
37
35
|
};
|
|
38
|
-
exports.
|
|
39
|
-
|
|
40
|
-
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === Blocks.PreviewBlock;
|
|
36
|
+
var isFlexibleUiPreviewBlock = exports.isFlexibleUiPreviewBlock = function isFlexibleUiPreviewBlock(node) {
|
|
37
|
+
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _blocks.PreviewBlock;
|
|
41
38
|
};
|
|
42
|
-
exports.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
exports.isFlexibleUiFooterBlock = isFlexibleUiFooterBlock;
|
|
39
|
+
var isFlexibleUiFooterBlock = exports.isFlexibleUiFooterBlock = function isFlexibleUiFooterBlock(node) {
|
|
40
|
+
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _blocks.FooterBlock;
|
|
41
|
+
};
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -14,15 +14,13 @@ var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
var isCardWithData = function isCardWithData(props) {
|
|
17
|
+
var isCardWithData = exports.isCardWithData = function isCardWithData(props) {
|
|
18
18
|
return !!props.data;
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var isSpecialEvent = function isSpecialEvent(evt) {
|
|
20
|
+
var isSpecialEvent = exports.isSpecialEvent = function isSpecialEvent(evt) {
|
|
22
21
|
return evt.isDefaultPrevented() && (isIframe() || isSpecialKey(evt) || isSpecialClick(evt));
|
|
23
22
|
};
|
|
24
|
-
exports.
|
|
25
|
-
var isIframe = function isIframe() {
|
|
23
|
+
var isIframe = exports.isIframe = function isIframe() {
|
|
26
24
|
return window.parent !== parent;
|
|
27
25
|
};
|
|
28
26
|
|
|
@@ -35,16 +33,13 @@ var isIframe = function isIframe() {
|
|
|
35
33
|
* On Windows it will be equivalent to opening a new tab, unless its the Window key that is held
|
|
36
34
|
* in which case typically only a standard clickthrough will occur, this is likely a small portion of events
|
|
37
35
|
*/
|
|
38
|
-
exports.
|
|
39
|
-
var isSpecialKey = function isSpecialKey(event) {
|
|
36
|
+
var isSpecialKey = exports.isSpecialKey = function isSpecialKey(event) {
|
|
40
37
|
return event.metaKey || event.ctrlKey;
|
|
41
38
|
};
|
|
42
|
-
exports.
|
|
43
|
-
var isSpecialClick = function isSpecialClick(event) {
|
|
39
|
+
var isSpecialClick = exports.isSpecialClick = function isSpecialClick(event) {
|
|
44
40
|
return event.button === 1;
|
|
45
41
|
};
|
|
46
|
-
exports.
|
|
47
|
-
var getIconForFileType = function getIconForFileType(fileMimeType) {
|
|
42
|
+
var getIconForFileType = exports.getIconForFileType = function getIconForFileType(fileMimeType) {
|
|
48
43
|
if (!fileMimeType) {
|
|
49
44
|
return;
|
|
50
45
|
}
|
|
@@ -74,8 +69,7 @@ var getIconForFileType = function getIconForFileType(fileMimeType) {
|
|
|
74
69
|
testId: "document-file-format-icon"
|
|
75
70
|
});
|
|
76
71
|
};
|
|
77
|
-
exports.
|
|
78
|
-
var getLabelForFileType = function getLabelForFileType(fileMimeType) {
|
|
72
|
+
var getLabelForFileType = exports.getLabelForFileType = function getLabelForFileType(fileMimeType) {
|
|
79
73
|
var icon = typeToIcon[fileMimeType.toLowerCase()];
|
|
80
74
|
if (!icon) {
|
|
81
75
|
return;
|
|
@@ -84,7 +78,6 @@ var getLabelForFileType = function getLabelForFileType(fileMimeType) {
|
|
|
84
78
|
label = _icon2[0];
|
|
85
79
|
return label;
|
|
86
80
|
};
|
|
87
|
-
exports.getLabelForFileType = getLabelForFileType;
|
|
88
81
|
var typeToIcon = {
|
|
89
82
|
'text/plain': ['Document', function () {
|
|
90
83
|
return Promise.resolve().then(function () {
|
|
@@ -338,7 +331,7 @@ var typeToIcon = {
|
|
|
338
331
|
});
|
|
339
332
|
}]
|
|
340
333
|
};
|
|
341
|
-
var getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
334
|
+
var getIframeSandboxAttribute = exports.getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
342
335
|
if (isTrusted) {
|
|
343
336
|
return undefined;
|
|
344
337
|
}
|
|
@@ -349,26 +342,22 @@ var getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
|
349
342
|
}
|
|
350
343
|
return sandboxPermissions;
|
|
351
344
|
};
|
|
352
|
-
exports.
|
|
353
|
-
var handleOnClick = function handleOnClick(handler) {
|
|
345
|
+
var handleOnClick = exports.handleOnClick = function handleOnClick(handler) {
|
|
354
346
|
return function (e) {
|
|
355
347
|
e.preventDefault();
|
|
356
348
|
e.stopPropagation();
|
|
357
349
|
handler();
|
|
358
350
|
};
|
|
359
351
|
};
|
|
360
|
-
exports.
|
|
361
|
-
var isIntersectionObserverSupported = function isIntersectionObserverSupported() {
|
|
352
|
+
var isIntersectionObserverSupported = exports.isIntersectionObserverSupported = function isIntersectionObserverSupported() {
|
|
362
353
|
return typeof IntersectionObserver !== 'undefined';
|
|
363
354
|
};
|
|
364
|
-
exports.
|
|
365
|
-
var sleep = function sleep(ms) {
|
|
355
|
+
var sleep = exports.sleep = function sleep(ms) {
|
|
366
356
|
return new Promise(function (resolve) {
|
|
367
357
|
return setTimeout(resolve, ms);
|
|
368
358
|
});
|
|
369
359
|
};
|
|
370
|
-
exports.
|
|
371
|
-
var importWithRetry = /*#__PURE__*/function () {
|
|
360
|
+
var importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
372
361
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(importFn) {
|
|
373
362
|
var retries,
|
|
374
363
|
interval,
|
|
@@ -406,8 +395,7 @@ var importWithRetry = /*#__PURE__*/function () {
|
|
|
406
395
|
return _ref.apply(this, arguments);
|
|
407
396
|
};
|
|
408
397
|
}();
|
|
409
|
-
exports.
|
|
410
|
-
var downloadUrl = /*#__PURE__*/function () {
|
|
398
|
+
var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
411
399
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(url) {
|
|
412
400
|
var isIE11, isSafari, iframeName, link, iframe;
|
|
413
401
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
@@ -447,8 +435,7 @@ var downloadUrl = /*#__PURE__*/function () {
|
|
|
447
435
|
return _ref2.apply(this, arguments);
|
|
448
436
|
};
|
|
449
437
|
}();
|
|
450
|
-
exports.
|
|
451
|
-
var openUrl = /*#__PURE__*/function () {
|
|
438
|
+
var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
452
439
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url) {
|
|
453
440
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
454
441
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -469,5 +456,4 @@ var openUrl = /*#__PURE__*/function () {
|
|
|
469
456
|
return function openUrl(_x3) {
|
|
470
457
|
return _ref3.apply(this, arguments);
|
|
471
458
|
};
|
|
472
|
-
}();
|
|
473
|
-
exports.openUrl = openUrl;
|
|
459
|
+
}();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.toMessage = void 0;
|
|
7
7
|
var _messages = require("../../messages");
|
|
8
|
-
var toMessage = function toMessage(defaultMessage, key) {
|
|
8
|
+
var toMessage = exports.toMessage = function toMessage(defaultMessage, key) {
|
|
9
9
|
try {
|
|
10
10
|
if (key !== undefined && key in _messages.messages) {
|
|
11
11
|
return _messages.messages[key];
|
|
@@ -14,5 +14,4 @@ var toMessage = function toMessage(defaultMessage, key) {
|
|
|
14
14
|
} catch (_unused) {
|
|
15
15
|
return defaultMessage;
|
|
16
16
|
}
|
|
17
|
-
};
|
|
18
|
-
exports.toMessage = toMessage;
|
|
17
|
+
};
|
package/dist/cjs/utils/jsonld.js
CHANGED
|
@@ -16,11 +16,10 @@ var emptyData = {
|
|
|
16
16
|
},
|
|
17
17
|
'@type': 'Object'
|
|
18
18
|
};
|
|
19
|
-
var getEmptyJsonLd = function getEmptyJsonLd() {
|
|
19
|
+
var getEmptyJsonLd = exports.getEmptyJsonLd = function getEmptyJsonLd() {
|
|
20
20
|
return emptyData;
|
|
21
21
|
};
|
|
22
|
-
exports.
|
|
23
|
-
var getUnauthorizedJsonLd = function getUnauthorizedJsonLd() {
|
|
22
|
+
var getUnauthorizedJsonLd = exports.getUnauthorizedJsonLd = function getUnauthorizedJsonLd() {
|
|
24
23
|
return {
|
|
25
24
|
meta: {
|
|
26
25
|
visibility: 'restricted',
|
|
@@ -31,8 +30,7 @@ var getUnauthorizedJsonLd = function getUnauthorizedJsonLd() {
|
|
|
31
30
|
data: _objectSpread({}, emptyData)
|
|
32
31
|
};
|
|
33
32
|
};
|
|
34
|
-
exports.
|
|
35
|
-
var getForbiddenJsonLd = function getForbiddenJsonLd() {
|
|
33
|
+
var getForbiddenJsonLd = exports.getForbiddenJsonLd = function getForbiddenJsonLd() {
|
|
36
34
|
return {
|
|
37
35
|
meta: {
|
|
38
36
|
visibility: 'restricted',
|
|
@@ -42,5 +40,4 @@ var getForbiddenJsonLd = function getForbiddenJsonLd() {
|
|
|
42
40
|
},
|
|
43
41
|
data: _objectSpread({}, emptyData)
|
|
44
42
|
};
|
|
45
|
-
};
|
|
46
|
-
exports.getForbiddenJsonLd = getForbiddenJsonLd;
|
|
43
|
+
};
|