@atlaskit/smart-card 45.17.28 → 45.18.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 +33 -0
- package/dist/cjs/common/analytics/generated/use-analytics-events.js +2 -2
- package/dist/cjs/common/ui/icons/priority-blocker-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-critical-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-high-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-highest-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-low-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-lowest-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-major-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-medium-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-minor-icon.js +2 -2
- package/dist/cjs/common/ui/icons/priority-trivial-icon.js +2 -2
- package/dist/cjs/common/ui/icons/utils.js +4 -4
- package/dist/cjs/extractors/action/extract-invoke-copy-link-action.js +2 -2
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +2 -2
- package/dist/cjs/extractors/action/extract-invoke-preview-action.js +16 -11
- package/dist/cjs/extractors/action/extract-invoke-view-action.js +4 -4
- package/dist/cjs/extractors/common/context/index.js +10 -6
- package/dist/cjs/extractors/common/icon/extractIcon.js +10 -8
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +5 -5
- package/dist/cjs/extractors/common/icon/extractIconFromTask.js +2 -2
- package/dist/cjs/extractors/common/lozenge/extractLozenge.js +2 -2
- package/dist/cjs/extractors/common/lozenge/extractTaskType.js +2 -2
- package/dist/cjs/extractors/common/primitives/extractSummary.js +4 -3
- package/dist/cjs/extractors/embed/index.js +8 -5
- package/dist/cjs/extractors/flexible/actions/extract-follow-action.js +7 -6
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +4 -4
- package/dist/cjs/extractors/flexible/actions/extract-view-related-links-action.js +2 -2
- package/dist/cjs/extractors/flexible/actions/index.js +3 -3
- package/dist/cjs/extractors/flexible/collaboratorGroup/index.js +4 -3
- package/dist/cjs/extractors/flexible/extract-link-title.js +4 -3
- package/dist/cjs/extractors/flexible/extract-preview.js +6 -4
- package/dist/cjs/extractors/flexible/extract-priority.js +2 -2
- package/dist/cjs/extractors/flexible/extract-provider.js +2 -2
- package/dist/cjs/extractors/flexible/extract-state.js +6 -6
- package/dist/cjs/extractors/flexible/icon/extract-document-type-icon.js +4 -4
- package/dist/cjs/extractors/flexible/icon/extract-file-formatIcon.js +2 -2
- package/dist/cjs/extractors/flexible/icon/extract-jira-task-icon.js +2 -2
- package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +8 -8
- package/dist/cjs/extractors/flexible/icon/extract-provider-icon.js +8 -5
- package/dist/cjs/extractors/flexible/icon/extract-url-icon.js +2 -2
- package/dist/cjs/extractors/flexible/icon/index.js +6 -12
- package/dist/cjs/extractors/flexible/index.js +23 -15
- package/dist/cjs/extractors/flexible/utils.js +19 -13
- package/dist/cjs/extractors/inline/index.js +18 -14
- package/dist/cjs/ssr.js +4 -4
- package/dist/cjs/state/actions/index.js +12 -11
- package/dist/cjs/state/analytics/ufoExperiences.js +12 -11
- package/dist/cjs/state/analytics/useDispatchAnalytics.js +2 -2
- package/dist/cjs/state/analytics/useLinkClicked.js +2 -2
- package/dist/cjs/state/helpers.js +3 -3
- package/dist/cjs/state/hooks/use-ai-summary-action/index.js +4 -3
- package/dist/cjs/state/hooks/use-destination-url/index.js +2 -2
- package/dist/cjs/state/hooks/use-embed-rovo-actions-footer-experiment/index.js +3 -3
- package/dist/cjs/state/hooks/use-incoming-outgoing-links/index.js +2 -2
- package/dist/cjs/state/hooks/use-inline-tailored-action-experiment/index.js +2 -2
- package/dist/cjs/state/hooks/use-resolve/index.js +7 -6
- package/dist/cjs/state/hooks/use-response/index.js +2 -2
- package/dist/cjs/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +2 -2
- package/dist/cjs/state/hooks/usePrefetch.js +2 -2
- package/dist/cjs/state/hooks/useSmartLink.js +3 -3
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +4 -4
- package/dist/cjs/utils/analytics/LinkAnalyticsContext.js +2 -2
- package/dist/cjs/utils/analytics/SmartLinkAnalyticsContext.js +4 -4
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +14 -14
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +4 -4
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +2 -2
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -2
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +8 -8
- package/dist/cjs/view/Card/index.js +3 -2
- package/dist/cjs/view/CardWithUrl/component.js +14 -14
- package/dist/cjs/view/CardWithUrl/experiment-meta-event-attributes/index.js +4 -4
- package/dist/cjs/view/CardWithUrl/loader.js +2 -2
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +2 -2
- package/dist/cjs/view/EmbedCard/components/Frame.js +4 -4
- package/dist/cjs/view/EmbedCard/components/IFrame.js +2 -2
- package/dist/cjs/view/EmbedCard/components/carousel/CarouselSlide.js +5 -5
- package/dist/cjs/view/EmbedCard/components/rovo-actions-footer/index.js +4 -4
- package/dist/cjs/view/EmbedCard/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -2
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +6 -10
- package/dist/cjs/view/EmbedCard/views/forbidden-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +7 -6
- package/dist/cjs/view/EmbedModal/components/link-info/link-info-button/index.js +4 -4
- package/dist/cjs/view/EmbedModal/index.js +5 -3
- package/dist/cjs/view/EmbedModal/utils.js +3 -3
- package/dist/cjs/view/Flag/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +14 -11
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/boolean-prompt/main.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +13 -9
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/number-prompt/main.js +9 -7
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.js +7 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/select-prompt/main.js +8 -6
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/text-prompt/main.js +7 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +7 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.js +8 -9
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +5 -4
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/utils.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +9 -9
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +7 -7
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-link-element/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +7 -7
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/error-boundary/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +5 -4
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +5 -4
- package/dist/cjs/view/FlexibleCard/components/elements/link-icon-element/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/state-element/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/utils.js +6 -6
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +4 -4
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +20 -18
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +6 -6
- package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +7 -7
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +2 -2
- package/dist/cjs/view/HoverCard/index.js +2 -2
- package/dist/cjs/view/HoverCard/utils.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +47 -91
- package/dist/cjs/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -2
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +4 -4
- package/dist/cjs/view/InlineCard/ResolvedView/renderLozenge.js +2 -2
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +8 -8
- package/dist/cjs/view/InlineCard/common/action-button/index.js +3 -3
- package/dist/cjs/view/InlineCard/common/inline-lozenge/index.js +5 -5
- package/dist/cjs/view/InlineCard/common/rovo-actions-cta/index.js +2 -2
- package/dist/cjs/view/InlineCard/common/rovo-post-auth-actions-modal/index.js +1 -1
- package/dist/cjs/view/InlineCard/index.js +6 -6
- package/dist/cjs/view/LinkUrl/Hyperlink/index.js +1 -1
- package/dist/cjs/view/LinkUrl/HyperlinkResolver/index.js +3 -3
- package/dist/cjs/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.js +2 -2
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +12 -7
- package/dist/cjs/view/LinkUrl/index.js +3 -3
- package/dist/cjs/view/RelatedLinksModal/components/EmptyState.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -5
- package/dist/cjs/view/RelatedLinksModal/index.js +2 -2
- package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +3 -3
- package/dist/cjs/view/RelatedLinksModal/views/resolving/index.js +1 -1
- package/dist/cjs/view/SmartLinkEvents/useSmartLinkEvents.js +2 -2
- package/dist/cjs/view/common/UnauthorisedViewContent.js +3 -3
- package/dist/cjs/view/common/ai-summary/ai-footer/index.js +1 -1
- package/dist/cjs/view/common/image-icon/index.js +3 -3
- package/dist/es2019/common/analytics/generated/use-analytics-events.js +1 -1
- package/dist/es2019/common/ui/icons/priority-blocker-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-critical-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-high-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-highest-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-low-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-lowest-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-major-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-medium-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-minor-icon.js +1 -1
- package/dist/es2019/common/ui/icons/priority-trivial-icon.js +1 -1
- package/dist/es2019/common/ui/icons/utils.js +2 -2
- package/dist/es2019/extractors/action/extract-invoke-copy-link-action.js +1 -1
- package/dist/es2019/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/es2019/extractors/action/extract-invoke-preview-action.js +7 -2
- package/dist/es2019/extractors/action/extract-invoke-view-action.js +2 -2
- package/dist/es2019/extractors/common/context/index.js +5 -1
- package/dist/es2019/extractors/common/icon/extractIcon.js +4 -2
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +2 -2
- package/dist/es2019/extractors/common/icon/extractIconFromTask.js +1 -1
- package/dist/es2019/extractors/common/lozenge/extractLozenge.js +1 -1
- package/dist/es2019/extractors/common/lozenge/extractTaskType.js +1 -1
- package/dist/es2019/extractors/common/primitives/extractSummary.js +2 -1
- package/dist/es2019/extractors/embed/index.js +4 -1
- package/dist/es2019/extractors/flexible/actions/extract-follow-action.js +3 -2
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +2 -2
- package/dist/es2019/extractors/flexible/actions/extract-view-related-links-action.js +1 -1
- package/dist/es2019/extractors/flexible/actions/index.js +1 -1
- package/dist/es2019/extractors/flexible/collaboratorGroup/index.js +2 -1
- package/dist/es2019/extractors/flexible/extract-link-title.js +2 -1
- package/dist/es2019/extractors/flexible/extract-preview.js +3 -1
- package/dist/es2019/extractors/flexible/extract-priority.js +1 -1
- package/dist/es2019/extractors/flexible/extract-provider.js +1 -1
- package/dist/es2019/extractors/flexible/extract-state.js +2 -2
- package/dist/es2019/extractors/flexible/icon/extract-document-type-icon.js +2 -2
- package/dist/es2019/extractors/flexible/icon/extract-file-formatIcon.js +1 -1
- package/dist/es2019/extractors/flexible/icon/extract-jira-task-icon.js +1 -1
- package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +2 -2
- package/dist/es2019/extractors/flexible/icon/extract-provider-icon.js +4 -1
- package/dist/es2019/extractors/flexible/icon/extract-url-icon.js +1 -1
- package/dist/es2019/extractors/flexible/icon/index.js +6 -12
- package/dist/es2019/extractors/flexible/index.js +10 -2
- package/dist/es2019/extractors/flexible/utils.js +7 -1
- package/dist/es2019/extractors/inline/index.js +11 -7
- package/dist/es2019/ssr.js +2 -2
- package/dist/es2019/state/actions/index.js +4 -3
- package/dist/es2019/state/analytics/ufoExperiences.js +2 -1
- package/dist/es2019/state/analytics/useDispatchAnalytics.js +1 -1
- package/dist/es2019/state/analytics/useLinkClicked.js +1 -1
- package/dist/es2019/state/helpers.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary-action/index.js +2 -1
- package/dist/es2019/state/hooks/use-destination-url/index.js +1 -1
- package/dist/es2019/state/hooks/use-embed-rovo-actions-footer-experiment/index.js +1 -1
- package/dist/es2019/state/hooks/use-incoming-outgoing-links/index.js +1 -1
- package/dist/es2019/state/hooks/use-inline-tailored-action-experiment/index.js +1 -1
- package/dist/es2019/state/hooks/use-resolve/index.js +4 -3
- package/dist/es2019/state/hooks/use-response/index.js +1 -1
- package/dist/es2019/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/es2019/state/hooks/usePrefetch.js +1 -1
- package/dist/es2019/state/hooks/useSmartLink.js +1 -1
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +1 -1
- package/dist/es2019/utils/analytics/LinkAnalyticsContext.js +1 -1
- package/dist/es2019/utils/analytics/SmartLinkAnalyticsContext.js +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +2 -2
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +3 -3
- package/dist/es2019/view/Card/index.js +2 -1
- package/dist/es2019/view/CardWithUrl/component.js +3 -3
- package/dist/es2019/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/es2019/view/CardWithUrl/loader.js +1 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +1 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +1 -1
- package/dist/es2019/view/EmbedCard/components/IFrame.js +1 -1
- package/dist/es2019/view/EmbedCard/components/carousel/CarouselSlide.js +2 -2
- package/dist/es2019/view/EmbedCard/components/rovo-actions-footer/index.js +2 -2
- package/dist/es2019/view/EmbedCard/index.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +5 -9
- package/dist/es2019/view/EmbedCard/views/forbidden-view/index.js +1 -1
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/index.js +1 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +4 -3
- package/dist/es2019/view/EmbedModal/components/link-info/link-info-button/index.js +2 -2
- package/dist/es2019/view/EmbedModal/index.js +3 -1
- package/dist/es2019/view/EmbedModal/utils.js +1 -1
- package/dist/es2019/view/Flag/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +6 -3
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/boolean-prompt/main.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +9 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/number-prompt/main.js +5 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.js +5 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/select-prompt/main.js +5 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/text-prompt/main.js +5 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +4 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/error-boundary/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/elements/link-icon-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/state-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/utils.js +2 -2
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +2 -2
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +5 -3
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +1 -1
- package/dist/es2019/view/HoverCard/index.js +1 -1
- package/dist/es2019/view/HoverCard/utils.js +1 -1
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +42 -84
- package/dist/es2019/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +1 -1
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +2 -2
- package/dist/es2019/view/InlineCard/ResolvedView/renderLozenge.js +1 -1
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +5 -5
- package/dist/es2019/view/InlineCard/common/action-button/index.js +2 -2
- package/dist/es2019/view/InlineCard/common/inline-lozenge/index.js +2 -2
- package/dist/es2019/view/InlineCard/common/rovo-actions-cta/index.js +1 -1
- package/dist/es2019/view/InlineCard/common/rovo-post-auth-actions-modal/index.js +1 -1
- package/dist/es2019/view/InlineCard/index.js +2 -2
- package/dist/es2019/view/LinkUrl/Hyperlink/index.js +1 -1
- package/dist/es2019/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/es2019/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.js +1 -1
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +7 -2
- package/dist/es2019/view/LinkUrl/index.js +2 -2
- package/dist/es2019/view/RelatedLinksModal/components/EmptyState.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +7 -2
- package/dist/es2019/view/RelatedLinksModal/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/views/resolving/index.js +1 -1
- package/dist/es2019/view/SmartLinkEvents/useSmartLinkEvents.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +1 -1
- package/dist/es2019/view/common/ai-summary/ai-footer/index.js +1 -1
- package/dist/es2019/view/common/image-icon/index.js +1 -1
- package/dist/esm/common/analytics/generated/use-analytics-events.js +1 -1
- package/dist/esm/common/ui/icons/priority-blocker-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-critical-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-high-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-highest-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-low-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-lowest-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-major-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-medium-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-minor-icon.js +1 -1
- package/dist/esm/common/ui/icons/priority-trivial-icon.js +1 -1
- package/dist/esm/common/ui/icons/utils.js +2 -2
- package/dist/esm/extractors/action/extract-invoke-copy-link-action.js +1 -1
- package/dist/esm/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/esm/extractors/action/extract-invoke-preview-action.js +7 -2
- package/dist/esm/extractors/action/extract-invoke-view-action.js +2 -2
- package/dist/esm/extractors/common/context/index.js +5 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +4 -2
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +2 -2
- package/dist/esm/extractors/common/icon/extractIconFromTask.js +1 -1
- package/dist/esm/extractors/common/lozenge/extractLozenge.js +1 -1
- package/dist/esm/extractors/common/lozenge/extractTaskType.js +1 -1
- package/dist/esm/extractors/common/primitives/extractSummary.js +2 -1
- package/dist/esm/extractors/embed/index.js +4 -1
- package/dist/esm/extractors/flexible/actions/extract-follow-action.js +3 -2
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +2 -2
- package/dist/esm/extractors/flexible/actions/extract-view-related-links-action.js +1 -1
- package/dist/esm/extractors/flexible/actions/index.js +1 -1
- package/dist/esm/extractors/flexible/collaboratorGroup/index.js +2 -1
- package/dist/esm/extractors/flexible/extract-link-title.js +2 -1
- package/dist/esm/extractors/flexible/extract-preview.js +3 -1
- package/dist/esm/extractors/flexible/extract-priority.js +1 -1
- package/dist/esm/extractors/flexible/extract-provider.js +1 -1
- package/dist/esm/extractors/flexible/extract-state.js +2 -2
- package/dist/esm/extractors/flexible/icon/extract-document-type-icon.js +2 -2
- package/dist/esm/extractors/flexible/icon/extract-file-formatIcon.js +1 -1
- package/dist/esm/extractors/flexible/icon/extract-jira-task-icon.js +1 -1
- package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +2 -2
- package/dist/esm/extractors/flexible/icon/extract-provider-icon.js +4 -1
- package/dist/esm/extractors/flexible/icon/extract-url-icon.js +1 -1
- package/dist/esm/extractors/flexible/icon/index.js +6 -12
- package/dist/esm/extractors/flexible/index.js +10 -2
- package/dist/esm/extractors/flexible/utils.js +7 -1
- package/dist/esm/extractors/inline/index.js +11 -7
- package/dist/esm/ssr.js +2 -2
- package/dist/esm/state/actions/index.js +4 -3
- package/dist/esm/state/analytics/ufoExperiences.js +2 -1
- package/dist/esm/state/analytics/useDispatchAnalytics.js +1 -1
- package/dist/esm/state/analytics/useLinkClicked.js +1 -1
- package/dist/esm/state/helpers.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary-action/index.js +2 -1
- package/dist/esm/state/hooks/use-destination-url/index.js +1 -1
- package/dist/esm/state/hooks/use-embed-rovo-actions-footer-experiment/index.js +1 -1
- package/dist/esm/state/hooks/use-incoming-outgoing-links/index.js +1 -1
- package/dist/esm/state/hooks/use-inline-tailored-action-experiment/index.js +1 -1
- package/dist/esm/state/hooks/use-resolve/index.js +5 -4
- package/dist/esm/state/hooks/use-response/index.js +1 -1
- package/dist/esm/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/esm/state/hooks/usePrefetch.js +1 -1
- package/dist/esm/state/hooks/useSmartLink.js +1 -1
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +1 -1
- package/dist/esm/utils/analytics/LinkAnalyticsContext.js +1 -1
- package/dist/esm/utils/analytics/SmartLinkAnalyticsContext.js +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +2 -2
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +3 -3
- package/dist/esm/view/Card/index.js +2 -1
- package/dist/esm/view/CardWithUrl/component.js +3 -3
- package/dist/esm/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/esm/view/CardWithUrl/loader.js +1 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +1 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +1 -1
- package/dist/esm/view/EmbedCard/components/IFrame.js +1 -1
- package/dist/esm/view/EmbedCard/components/carousel/CarouselSlide.js +2 -2
- package/dist/esm/view/EmbedCard/components/rovo-actions-footer/index.js +2 -2
- package/dist/esm/view/EmbedCard/index.js +1 -1
- package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +5 -9
- package/dist/esm/view/EmbedCard/views/forbidden-view/index.js +1 -1
- package/dist/esm/view/EmbedCard/views/unauthorized-view/index.js +1 -1
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +4 -3
- package/dist/esm/view/EmbedModal/components/link-info/link-info-button/index.js +2 -2
- package/dist/esm/view/EmbedModal/index.js +3 -1
- package/dist/esm/view/EmbedModal/utils.js +1 -1
- package/dist/esm/view/Flag/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +6 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/boolean-prompt/main.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +9 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/number-prompt/main.js +5 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.js +5 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/select-prompt/main.js +5 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/text-prompt/main.js +5 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +4 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.js +3 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +3 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.js +3 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/error-boundary/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +3 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +3 -2
- package/dist/esm/view/FlexibleCard/components/elements/link-icon-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/state-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/index.js +1 -1
- package/dist/esm/view/FlexibleCard/utils.js +2 -2
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +2 -2
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +5 -3
- package/dist/esm/view/HoverCard/components/views/forbidden/index.js +3 -3
- package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +3 -3
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +1 -1
- package/dist/esm/view/HoverCard/index.js +1 -1
- package/dist/esm/view/HoverCard/utils.js +1 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +47 -91
- package/dist/esm/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +1 -1
- package/dist/esm/view/InlineCard/ResolvedView/index.js +2 -2
- package/dist/esm/view/InlineCard/ResolvedView/renderLozenge.js +1 -1
- package/dist/esm/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +5 -5
- package/dist/esm/view/InlineCard/common/action-button/index.js +2 -2
- package/dist/esm/view/InlineCard/common/inline-lozenge/index.js +2 -2
- package/dist/esm/view/InlineCard/common/rovo-actions-cta/index.js +1 -1
- package/dist/esm/view/InlineCard/common/rovo-post-auth-actions-modal/index.js +1 -1
- package/dist/esm/view/InlineCard/index.js +2 -2
- package/dist/esm/view/LinkUrl/Hyperlink/index.js +1 -1
- package/dist/esm/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/esm/view/LinkUrl/LinkWarningModal/hooks/use-link-warning-modal.js +1 -1
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +7 -2
- package/dist/esm/view/LinkUrl/index.js +2 -2
- package/dist/esm/view/RelatedLinksModal/components/EmptyState.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +7 -2
- package/dist/esm/view/RelatedLinksModal/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/views/resolving/index.js +1 -1
- package/dist/esm/view/SmartLinkEvents/useSmartLinkEvents.js +1 -1
- package/dist/esm/view/common/UnauthorisedViewContent.js +1 -1
- package/dist/esm/view/common/ai-summary/ai-footer/index.js +1 -1
- package/dist/esm/view/common/image-icon/index.js +1 -1
- package/dist/types/common/ui/icons/types.d.ts +2 -2
- package/dist/types/common/ui/icons/utils.d.ts +1 -2
- package/dist/types/extractors/action/types.d.ts +1 -1
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +1 -1
- package/dist/types/extractors/common/actions/extractActions.d.ts +1 -1
- package/dist/types/extractors/common/actions/types.d.ts +1 -1
- package/dist/types/extractors/common/context/extractAccessContext.d.ts +2 -2
- package/dist/types/extractors/common/context/index.d.ts +3 -3
- package/dist/types/extractors/common/download/extractDownloadUrl.d.ts +1 -1
- package/dist/types/extractors/common/icon/extractFileFormat.d.ts +1 -1
- package/dist/types/extractors/common/icon/extractIcon.d.ts +2 -2
- package/dist/types/extractors/common/icon/priority.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractLozenge.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractTag.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractTaskStatus.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractTaskType.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/types.d.ts +2 -2
- package/dist/types/extractors/common/meta/extractIsSupportTheming.d.ts +1 -1
- package/dist/types/extractors/common/meta/extractIsTrusted.d.ts +1 -1
- package/dist/types/extractors/common/primitives/extractSummary.d.ts +2 -2
- package/dist/types/extractors/common/primitives/extractTitleTextColor.d.ts +1 -1
- package/dist/types/extractors/common/primitives/extractVisitUrl.d.ts +1 -1
- package/dist/types/extractors/common/title-prefix/extractTitlePrefix.d.ts +1 -1
- package/dist/types/extractors/embed/index.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-automation-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-follow-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-rovo-chat-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-view-related-links-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/index.d.ts +1 -1
- package/dist/types/extractors/flexible/collaboratorGroup/index.d.ts +2 -2
- package/dist/types/extractors/flexible/extract-link-title.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-placeholder-data.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-preview.d.ts +2 -2
- package/dist/types/extractors/flexible/extract-priority.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-provider.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-server-action.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-state.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-document-type-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-icon-renderer.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-provider-icon.d.ts +2 -2
- package/dist/types/extractors/flexible/icon/extract-url-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/index.d.ts +2 -2
- package/dist/types/extractors/flexible/latest-commit/index.d.ts +1 -1
- package/dist/types/extractors/flexible/utils.d.ts +3 -3
- package/dist/types/extractors/inline/index.d.ts +1 -1
- package/dist/types/model/invoke-handler.d.ts +1 -1
- package/dist/types/ssr.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +1 -1
- package/dist/types/state/analytics/ufoExperiences.d.ts +1 -1
- package/dist/types/state/analytics/useLinkClicked.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +1 -1
- package/dist/types/state/helpers.d.ts +2 -2
- package/dist/types/state/hooks/use-action-flags/index.d.ts +2 -2
- package/dist/types/state/hooks/use-ai-summary-action/index.d.ts +1 -1
- package/dist/types/state/hooks/use-invoke/utils.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
- package/dist/types/state/hooks/use-response/index.d.ts +1 -1
- package/dist/types/state/hooks/use-smart-link-cross-product-url-wrapper/index.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +1 -1
- package/dist/types/types.d.ts +2 -2
- package/dist/types/utils/ai-summary.d.ts +1 -1
- package/dist/types/utils/analytics/analytics.d.ts +1 -1
- package/dist/types/utils/analytics/click.d.ts +3 -2
- package/dist/types/utils/jsonld.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +44 -44
- package/dist/types/utils/should-data-export.d.ts +1 -1
- package/dist/types/view/BlockCard/views/utils/index.d.ts +1 -1
- package/dist/types/view/Card/index.d.ts +2 -1
- package/dist/types/view/Card/types.d.ts +2 -2
- package/dist/types/view/CardWithUrl/types.d.ts +2 -2
- package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/link-info/link-info-button/index.d.ts +1 -1
- package/dist/types/view/Flag/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/follow-action/goal-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/follow-action/projects-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-group/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/type.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +5 -5
- package/dist/types/view/FlexibleCard/utils.d.ts +1 -1
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types/view/HoverCard/types.d.ts +2 -2
- package/dist/types/view/HoverCard/utils.d.ts +1 -1
- package/dist/types/view/InlineCard/common/inline-lozenge/index.d.ts +2 -1
- package/dist/types/view/LinkUrl/Hyperlink/index.d.ts +1 -1
- package/dist/types/view/LinkUrl/index.d.ts +1 -1
- package/dist/types/view/types.d.ts +1 -1
- package/package.json +52 -51
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-false.png +0 -3
- /package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/{inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-true.png → inline-card-unauthorised-with-social-proof-in-narrow-container--default.png} +0 -0
- /package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/{inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-true.png → inline-card-unauthorised-with-social-proof-in-narrow-container--default.png} +0 -0
- /package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/{inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-true.png → inline-card-unauthorised-with-social-proof-in-narrow-container--default.png} +0 -0
|
@@ -7,8 +7,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var _extractPersonOwnedBy = require("@atlaskit/link-extractors/extract-person-owned-by");
|
|
11
|
+
var _extractSmartLinkAri = require("@atlaskit/link-extractors/extract-smart-link-ari");
|
|
12
|
+
var _extractSmartLinkAuthorGroup = require("@atlaskit/link-extractors/extract-smart-link-author-group");
|
|
13
|
+
var _extractSmartLinkCreatedBy = require("@atlaskit/link-extractors/extract-smart-link-created-by");
|
|
14
|
+
var _extractSmartLinkCreatedOn = require("@atlaskit/link-extractors/extract-smart-link-created-on");
|
|
15
|
+
var _extractSmartLinkModifiedBy = require("@atlaskit/link-extractors/extract-smart-link-modified-by");
|
|
16
|
+
var _extractSmartLinkModifiedOn = require("@atlaskit/link-extractors/extract-smart-link-modified-on");
|
|
17
|
+
var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link-url");
|
|
18
|
+
var _extractType = require("@atlaskit/link-extractors/extract-type");
|
|
19
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
20
|
var _extractSummary = require("../common/primitives/extractSummary");
|
|
13
21
|
var _actions = require("./actions");
|
|
14
22
|
var _collaboratorGroup = require("./collaboratorGroup");
|
|
@@ -50,7 +58,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
50
58
|
}
|
|
51
59
|
var data = response.data;
|
|
52
60
|
var meta = response.meta;
|
|
53
|
-
var url = (0,
|
|
61
|
+
var url = (0, _extractSmartLinkUrl.extractSmartLinkUrl)(response);
|
|
54
62
|
return {
|
|
55
63
|
actions: (0, _actions.extractFlexibleCardActions)(_objectSpread(_objectSpread({
|
|
56
64
|
actionOptions: actionOptions,
|
|
@@ -65,45 +73,45 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
65
73
|
url: props.url,
|
|
66
74
|
// Use the original URL in edge cases, such as short links for AI summary and copy link actions.
|
|
67
75
|
isPreviewPanelAvailable: isPreviewPanelAvailable
|
|
68
|
-
}, (0,
|
|
76
|
+
}, (0, _fg.fg)('preview_panel_unit_check') ? {
|
|
69
77
|
isPreviewRestricted: isPreviewRestricted
|
|
70
78
|
} : undefined), {}, {
|
|
71
79
|
openPreviewPanel: openPreviewPanel
|
|
72
|
-
}, (0,
|
|
80
|
+
}, (0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? {
|
|
73
81
|
transformUrl: transformUrl
|
|
74
82
|
} : undefined)),
|
|
75
83
|
appliedToComponentsCount: (0, _utils.extractAppliedToComponentsCount)(data),
|
|
76
84
|
assignedToGroup: (0, _utils.extractPersonAssignedToAsArray)(data),
|
|
77
85
|
attachmentCount: (0, _utils.extractAttachmentCount)(data),
|
|
78
|
-
authorGroup: (0,
|
|
79
|
-
ownedByGroup: (0,
|
|
86
|
+
authorGroup: (0, _extractSmartLinkAuthorGroup.extractSmartLinkAuthorGroup)(response),
|
|
87
|
+
ownedByGroup: (0, _extractPersonOwnedBy.extractPersonOwnedBy)(data),
|
|
80
88
|
collaboratorGroup: (0, _collaboratorGroup.extractPersonsUpdatedBy)(data),
|
|
81
89
|
commentCount: (0, _utils.extractSmartLinkCommentCount)(response),
|
|
82
90
|
viewCount: (0, _utils.extractViewCount)(data),
|
|
83
91
|
reactCount: (0, _utils.extractSmartLinkReactCount)(response),
|
|
84
92
|
voteCount: (0, _utils.extractVoteCount)(data),
|
|
85
93
|
checklistProgress: (0, _utils.extractChecklistProgress)(data),
|
|
86
|
-
createdBy: (0,
|
|
94
|
+
createdBy: (0, _extractSmartLinkCreatedBy.extractSmartLinkCreatedBy)(response),
|
|
87
95
|
ownedBy: (0, _utils.extractOwnedBy)(data),
|
|
88
96
|
assignedTo: (0, _utils.extractAssignedTo)(data),
|
|
89
|
-
createdOn: (0,
|
|
97
|
+
createdOn: (0, _extractSmartLinkCreatedOn.extractSmartLinkCreatedOn)(response),
|
|
90
98
|
dueOn: (0, _utils.extractDueOn)(data),
|
|
91
99
|
latestCommit: (0, _latestCommit.extractLatestCommit)(data),
|
|
92
100
|
linkIcon: (0, _icon.extractSmartLinkIcon)(response),
|
|
93
101
|
linkTitle: (0, _extractLinkTitle.default)(status, props.url, response, onClick, onAuxClick, onContextMenu),
|
|
94
102
|
location: (0, _utils.extractLocation)(data),
|
|
95
|
-
modifiedBy: (0,
|
|
96
|
-
modifiedOn: (0,
|
|
103
|
+
modifiedBy: (0, _extractSmartLinkModifiedBy.extractSmartLinkModifiedBy)(response),
|
|
104
|
+
modifiedOn: (0, _extractSmartLinkModifiedOn.extractSmartLinkModifiedOn)(response),
|
|
97
105
|
preview: (0, _extractPreview.extractSmartLinkPreviewImage)(response),
|
|
98
106
|
priority: (0, _extractPriority.default)(data),
|
|
99
|
-
provider: (0,
|
|
107
|
+
provider: (0, _fg.fg)('platform_sl_google_rebrand') ? (0, _extractProvider.default)(response) : (0, _extractProviderIcon.extractSmartLinkProviderIcon)(response),
|
|
100
108
|
programmingLanguage: (0, _utils.extractProgrammingLanguage)(data),
|
|
101
109
|
readTime: (0, _utils.extractReadTime)(data),
|
|
102
110
|
sentOn: (0, _utils.extractSmartLinkSentOn)(response),
|
|
103
111
|
snippet: (0, _extractSummary.extractSmartLinkSummary)(response) || undefined,
|
|
104
112
|
// Explicitly set here to remove an empty string
|
|
105
113
|
sourceBranch: (0, _utils.extractSourceBranch)(data),
|
|
106
|
-
state: (0, _extractState.default)(response, actionOptions, id, appearance, origin, fireEvent, resolve, isPreviewPanelAvailable, openPreviewPanel, (0,
|
|
114
|
+
state: (0, _extractState.default)(response, actionOptions, id, appearance, origin, fireEvent, resolve, isPreviewPanelAvailable, openPreviewPanel, (0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? transformUrl : undefined, (0, _fg.fg)('preview_panel_unit_check') ? isPreviewRestricted : undefined),
|
|
107
115
|
subscriberCount: (0, _utils.extractSubscriberCount)(data),
|
|
108
116
|
subTasksProgress: (0, _utils.extractSubTasksProgress)(data),
|
|
109
117
|
storyPoints: (0, _utils.extractStoryPoints)(data),
|
|
@@ -111,8 +119,8 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
111
119
|
userAttributes: (0, _utils.extractUserAttributes)(data),
|
|
112
120
|
teamMemberCount: (0, _utils.extractTeamMemberCount)(data),
|
|
113
121
|
url: url,
|
|
114
|
-
ari: (0,
|
|
115
|
-
type: (0,
|
|
122
|
+
ari: (0, _extractSmartLinkAri.extractSmartLinkAri)(response),
|
|
123
|
+
type: (0, _extractType.extractType)(data),
|
|
116
124
|
meta: {
|
|
117
125
|
objectId: (0, _utils.extractMetaObjectId)(meta),
|
|
118
126
|
resourceType: (0, _utils.extractMetaResourceType)(meta),
|
|
@@ -6,7 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.extractVoteCount = exports.extractViewCount = exports.extractUserAttributes = exports.extractTeamMemberCount = exports.extractTargetBranch = exports.extractSubscriberCount = exports.extractSubTasksProgress = exports.extractStoryPoints = exports.extractSourceBranch = exports.extractSmartLinkSentOn = exports.extractSmartLinkReactCount = exports.extractSmartLinkCommentCount = exports.extractSentOn = exports.extractReadTime = exports.extractReactCount = exports.extractProgrammingLanguage = exports.extractPersonAssignedToAsArray = exports.extractOwnedBy = exports.extractModifiedBy = exports.extractMetaTenantId = exports.extractMetaResourceType = exports.extractMetaObjectId = exports.extractLocation = exports.extractHostName = exports.extractDueOn = exports.extractCreatedBy = exports.extractCommentCount = exports.extractChecklistProgress = exports.extractAttachmentCount = exports.extractAssignedTo = exports.extractAppliedToComponentsCount = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var
|
|
9
|
+
var _extractEntity2 = require("@atlaskit/link-extractors/extract-entity");
|
|
10
|
+
var _extractPersonAssignedTo = require("@atlaskit/link-extractors/extract-person-assigned-to");
|
|
11
|
+
var _extractPersonCreatedBy = require("@atlaskit/link-extractors/extract-person-created-by");
|
|
12
|
+
var _extractPersonOwnedBy = require("@atlaskit/link-extractors/extract-person-owned-by");
|
|
13
|
+
var _extractPersonUpdatedBy = require("@atlaskit/link-extractors/extract-person-updated-by");
|
|
14
|
+
var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link-url");
|
|
15
|
+
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
10
16
|
var extractLinkName = function extractLinkName(link) {
|
|
11
17
|
if (link && (0, _typeof2.default)(link) === 'object' && link['@type'] === 'Link') {
|
|
12
18
|
return link.name;
|
|
@@ -26,8 +32,8 @@ var extractSmartLinkCommentCount = exports.extractSmartLinkCommentCount = functi
|
|
|
26
32
|
if (!response || !response.data) {
|
|
27
33
|
return undefined;
|
|
28
34
|
}
|
|
29
|
-
if ((0,
|
|
30
|
-
var entity = (0,
|
|
35
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
36
|
+
var entity = (0, _extractEntity2.extractEntity)(response);
|
|
31
37
|
return entity && 'commentCount' in entity && typeof entity.commentCount === 'number' ? entity === null || entity === void 0 ? void 0 : entity.commentCount : undefined;
|
|
32
38
|
}
|
|
33
39
|
return (response === null || response === void 0 ? void 0 : response.data) && extractCommentCount(response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -52,8 +58,8 @@ var extractSmartLinkReactCount = exports.extractSmartLinkReactCount = function e
|
|
|
52
58
|
if (!response || !response.data) {
|
|
53
59
|
return undefined;
|
|
54
60
|
}
|
|
55
|
-
if ((0,
|
|
56
|
-
var entity = (0,
|
|
61
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
62
|
+
var entity = (0, _extractEntity2.extractEntity)(response);
|
|
57
63
|
var reactions = entity && 'reactions' in entity && Array.isArray(entity.reactions) ? entity.reactions : undefined;
|
|
58
64
|
return reactions === null || reactions === void 0 ? void 0 : reactions.reduce(function (total, reaction) {
|
|
59
65
|
return total + (reaction === null || reaction === void 0 ? void 0 : reaction.total);
|
|
@@ -65,29 +71,29 @@ var extractVoteCount = exports.extractVoteCount = function extractVoteCount(data
|
|
|
65
71
|
return extractValue(data, 'atlassian:voteCount');
|
|
66
72
|
};
|
|
67
73
|
var extractOwnedBy = exports.extractOwnedBy = function extractOwnedBy(data) {
|
|
68
|
-
var persons = (0,
|
|
74
|
+
var persons = (0, _extractPersonOwnedBy.extractPersonOwnedBy)(data);
|
|
69
75
|
if (persons && persons.length) {
|
|
70
76
|
return persons[0].name;
|
|
71
77
|
}
|
|
72
78
|
};
|
|
73
79
|
var extractAssignedTo = exports.extractAssignedTo = function extractAssignedTo(data) {
|
|
74
|
-
var person = (0,
|
|
80
|
+
var person = (0, _extractPersonAssignedTo.extractPersonAssignedTo)(data);
|
|
75
81
|
if (person) {
|
|
76
82
|
return person.name;
|
|
77
83
|
}
|
|
78
84
|
};
|
|
79
85
|
var extractPersonAssignedToAsArray = exports.extractPersonAssignedToAsArray = function extractPersonAssignedToAsArray(data) {
|
|
80
|
-
var person = (0,
|
|
86
|
+
var person = (0, _extractPersonAssignedTo.extractPersonAssignedTo)(data);
|
|
81
87
|
return person ? [person] : undefined;
|
|
82
88
|
};
|
|
83
89
|
var extractCreatedBy = exports.extractCreatedBy = function extractCreatedBy(data) {
|
|
84
|
-
var persons = (0,
|
|
90
|
+
var persons = (0, _extractPersonCreatedBy.extractPersonCreatedBy)(data);
|
|
85
91
|
if (persons && persons.length) {
|
|
86
92
|
return persons[0].name;
|
|
87
93
|
}
|
|
88
94
|
};
|
|
89
95
|
var extractModifiedBy = exports.extractModifiedBy = function extractModifiedBy(data) {
|
|
90
|
-
var person = (0,
|
|
96
|
+
var person = (0, _extractPersonUpdatedBy.extractPersonUpdatedBy)(data);
|
|
91
97
|
if (person) {
|
|
92
98
|
return person.name;
|
|
93
99
|
}
|
|
@@ -147,9 +153,9 @@ var extractSmartLinkSentOn = exports.extractSmartLinkSentOn = function extractSm
|
|
|
147
153
|
if (!response || !response.data) {
|
|
148
154
|
return undefined;
|
|
149
155
|
}
|
|
150
|
-
if ((0,
|
|
156
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
151
157
|
var _extractEntity;
|
|
152
|
-
return (_extractEntity = (0,
|
|
158
|
+
return (_extractEntity = (0, _extractEntity2.extractEntity)(response)) === null || _extractEntity === void 0 ? void 0 : _extractEntity.createdAt;
|
|
153
159
|
}
|
|
154
160
|
return (response === null || response === void 0 ? void 0 : response.data) && extractSentOn(response === null || response === void 0 ? void 0 : response.data);
|
|
155
161
|
};
|
|
@@ -167,7 +173,7 @@ var extractMetaTenantId = exports.extractMetaTenantId = function extractMetaTena
|
|
|
167
173
|
};
|
|
168
174
|
var extractHostName = exports.extractHostName = function extractHostName(response) {
|
|
169
175
|
try {
|
|
170
|
-
var url = (0,
|
|
176
|
+
var url = (0, _extractSmartLinkUrl.extractSmartLinkUrl)(response);
|
|
171
177
|
var hostName = url ? new URL(url).hostname : undefined;
|
|
172
178
|
return hostName;
|
|
173
179
|
} catch (_unused) {
|
|
@@ -4,9 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractInlineProps = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractEntityIcon = require("@atlaskit/link-extractors/extract-entity-icon");
|
|
8
|
+
var _extractEntityProvider = require("@atlaskit/link-extractors/extract-entity-provider");
|
|
9
|
+
var _extractProvider = require("@atlaskit/link-extractors/extract-provider");
|
|
10
|
+
var _extractSmartLinkTitle = require("@atlaskit/link-extractors/extract-smart-link-title");
|
|
11
|
+
var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link-url");
|
|
12
|
+
var _extractType = require("@atlaskit/link-extractors/extract-type");
|
|
13
|
+
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
8
14
|
var _extractSmartLinkInlineIcon = require("@atlaskit/link-extractors/extract-smart-link-inline-icon");
|
|
9
|
-
var
|
|
15
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
16
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
17
|
var _jsonld = require("../../utils/jsonld");
|
|
12
18
|
var _icon = require("../common/icon");
|
|
@@ -16,10 +22,10 @@ var _titlePrefix = require("../common/title-prefix");
|
|
|
16
22
|
var _constants = require("../constants");
|
|
17
23
|
var extractInlineIcon = function extractInlineIcon(jsonLd) {
|
|
18
24
|
var showIconLabel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
19
|
-
var provider = (0,
|
|
25
|
+
var provider = (0, _extractProvider.extractProvider)(jsonLd);
|
|
20
26
|
if (provider && provider.id) {
|
|
21
27
|
if (provider.id === _constants.CONFLUENCE_GENERATOR_ID || provider.id === _constants.JIRA_GENERATOR_ID) {
|
|
22
|
-
if ((0,
|
|
28
|
+
if ((0, _fg.fg)('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
23
29
|
var icon = (0, _icon.extractIcon)(jsonLd, 'type', showIconLabel);
|
|
24
30
|
if (provider.id === _constants.JIRA_GENERATOR_ID && typeof icon === 'string') {
|
|
25
31
|
var _extractTaskType;
|
|
@@ -41,14 +47,12 @@ var extractInlineIcon = function extractInlineIcon(jsonLd) {
|
|
|
41
47
|
*/
|
|
42
48
|
var extractSmartLinkInlineIcon = function extractSmartLinkInlineIcon(response) {
|
|
43
49
|
var showLabel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
44
|
-
if ((0,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return [entityIcon.url, entityIcon.label];
|
|
49
|
-
}
|
|
50
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
51
|
+
var entityIcon = (0, _extractEntityIcon.extractEntityIcon)(response);
|
|
52
|
+
if (entityIcon) {
|
|
53
|
+
return [entityIcon.url, entityIcon.label];
|
|
50
54
|
}
|
|
51
|
-
var provider = (0,
|
|
55
|
+
var provider = (0, _extractEntityProvider.extractEntityProvider)(response);
|
|
52
56
|
if (provider) {
|
|
53
57
|
return provider.icon;
|
|
54
58
|
}
|
|
@@ -59,13 +63,13 @@ var extractInlineProps = exports.extractInlineProps = function extractInlineProp
|
|
|
59
63
|
var showLabel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
60
64
|
var jsonLd = (response === null || response === void 0 ? void 0 : response.data) || (0, _jsonld.getEmptyJsonLd)();
|
|
61
65
|
return {
|
|
62
|
-
link: (0,
|
|
63
|
-
title: (0,
|
|
66
|
+
link: (0, _extractSmartLinkUrl.extractSmartLinkUrl)(response),
|
|
67
|
+
title: (0, _extractSmartLinkTitle.extractSmartLinkTitle)(response, removeTextHighlightingFromTitle),
|
|
64
68
|
icon: (0, _expValEquals.expValEquals)('confluence_1p_and_3p_connection_byline_experiment', 'isEnabled', true) ? (0, _extractSmartLinkInlineIcon.extractSmartLinkInlineIcon)(response, showLabel) : extractSmartLinkInlineIcon(response, showLabel),
|
|
65
69
|
// As we migrate to support more entities we can incorporate these fields
|
|
66
70
|
lozenge: (0, _lozenge.extractLozenge)(jsonLd),
|
|
67
71
|
titleTextColor: (0, _primitives.extractTitleTextColor)(jsonLd),
|
|
68
72
|
titlePrefix: (0, _titlePrefix.extractTitlePrefix)(jsonLd, renderers, 'inline'),
|
|
69
|
-
type: (0,
|
|
73
|
+
type: (0, _extractType.extractType)(jsonLd)
|
|
70
74
|
};
|
|
71
75
|
};
|
package/dist/cjs/ssr.js
CHANGED
|
@@ -10,8 +10,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var _AnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/AnalyticsContext"));
|
|
14
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
15
|
var _analytics = require("./utils/analytics/analytics");
|
|
16
16
|
var _flexible = require("./utils/flexible");
|
|
17
17
|
var _cardErrorBoundary = _interopRequireDefault(require("./view/CardWithUrl/card-error-boundary"));
|
|
@@ -33,12 +33,12 @@ var CardSSR = exports.CardSSR = function CardSSR(props) {
|
|
|
33
33
|
// FlexibleCards always need full ORS data regardless of appearance prop,
|
|
34
34
|
// because they render custom blocks (TitleBlock etc.) requiring a complete response.
|
|
35
35
|
// Override appearance to 'block' for FlexibleCards when FG is enabled.
|
|
36
|
-
var effectiveAppearance = (0, _flexible.isFlexibleUiCard)(props.children, props.ui) && (0,
|
|
36
|
+
var effectiveAppearance = (0, _flexible.isFlexibleUiCard)(props.children, props.ui) && (0, _fg.fg)('platform_smartlink_inline_resolve_optimization') ? 'block' : props.appearance;
|
|
37
37
|
var propsWithId = _objectSpread(_objectSpread({}, props), {}, {
|
|
38
38
|
id: id,
|
|
39
39
|
appearance: effectiveAppearance
|
|
40
40
|
});
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_AnalyticsContext.default, {
|
|
42
42
|
data: _analytics.context
|
|
43
43
|
}, /*#__PURE__*/_react.default.createElement(_cardErrorBoundary.default, propsWithId, /*#__PURE__*/_react.default.createElement(_component.CardWithUrl, propsWithId)));
|
|
44
44
|
};
|
|
@@ -8,11 +8,12 @@ exports.useSmartCardActions = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _react = require("react");
|
|
11
|
-
var
|
|
11
|
+
var _extractSmartLinkProvider = require("@atlaskit/link-extractors/extract-smart-link-provider");
|
|
12
|
+
var _extractSmartLinkTitle = require("@atlaskit/link-extractors/extract-smart-link-title");
|
|
12
13
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
13
14
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
14
|
-
var
|
|
15
|
-
var
|
|
15
|
+
var _auth = require("@atlaskit/outbound-auth-flow-client/auth");
|
|
16
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
17
|
var _postMessageToPubsub = require("@atlaskit/rovo-triggers/post-message-to-pubsub");
|
|
17
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
19
|
var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
|
|
@@ -175,7 +176,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
175
176
|
// mounts while registration is in-flight. This matches pre-PR behaviour.
|
|
176
177
|
setMetadataStatus('pending');
|
|
177
178
|
}
|
|
178
|
-
if ((0,
|
|
179
|
+
if ((0, _fg.fg)('platform_smartlink_inline_resolve_optimization')) {
|
|
179
180
|
return resolveNew({
|
|
180
181
|
url: url,
|
|
181
182
|
appearance: appearance
|
|
@@ -187,7 +188,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
187
188
|
var _getSmartLinkState2 = getSmartLinkState(),
|
|
188
189
|
details = _getSmartLinkState2.details;
|
|
189
190
|
var definitionId = (0, _helpers.getDefinitionId)(details);
|
|
190
|
-
if ((0,
|
|
191
|
+
if ((0, _fg.fg)('platform_smartlink_inline_resolve_optimization')) {
|
|
191
192
|
if (definitionId) {
|
|
192
193
|
(0, _helpers.getByDefinitionId)(definitionId, getState()).map(function (reloadUrl) {
|
|
193
194
|
return resolveNew({
|
|
@@ -224,10 +225,10 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
224
225
|
var loadMetadata = (0, _react.useCallback)(function () {
|
|
225
226
|
var _getSmartLinkState3 = getSmartLinkState(),
|
|
226
227
|
metadataStatus = _getSmartLinkState3.metadataStatus;
|
|
227
|
-
var needsBlockData = metadataStatus === undefined || metadataStatus === 'pending' && (0,
|
|
228
|
+
var needsBlockData = metadataStatus === undefined || metadataStatus === 'pending' && (0, _fg.fg)('platform_smartlink_inline_resolve_optimization');
|
|
228
229
|
if (needsBlockData) {
|
|
229
230
|
setMetadataStatus('pending');
|
|
230
|
-
if ((0,
|
|
231
|
+
if ((0, _fg.fg)('platform_smartlink_inline_resolve_optimization')) {
|
|
231
232
|
// Always request 'block' appearance for hover card metadata to get full data
|
|
232
233
|
return resolveNew({
|
|
233
234
|
url: url,
|
|
@@ -263,7 +264,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
263
264
|
fireEvent('screen.consentModal.viewed', {
|
|
264
265
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
265
266
|
});
|
|
266
|
-
(0,
|
|
267
|
+
(0, _auth.auth)(services[0].url).then(function () {
|
|
267
268
|
fireEvent('track.applicationAccount.connected', {
|
|
268
269
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
269
270
|
});
|
|
@@ -278,14 +279,14 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
278
279
|
// Post-auth Chat onboarding: auto-open Rovo Chat mini-modal with the
|
|
279
280
|
// authed 3P link as context, for supported providers (e.g. Google Drive).
|
|
280
281
|
// Provider eligibility is derived from the pre-auth SmartLink state.
|
|
281
|
-
var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && (0,
|
|
282
|
+
var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && (0, _fg.fg)('platform_sl_3p_post_auth_chat_open_fg') && (0, _rovo.getIsRovoChatEnabled)(rovoOptionsRef.current);
|
|
282
283
|
|
|
283
284
|
// Experiment check: fires exposure for both control and treatment.
|
|
284
285
|
// Only reached after eligibility preconditions + kill switch pass, so
|
|
285
286
|
// exposure is counted for the triggered eligible pool.
|
|
286
287
|
var isPostAuthChatTreatment = isEligibleForPostAuthChat && (0, _expValEquals.expValEquals)('platform_sl_3p_post_auth_chat_open_exp', 'isEnabled', true);
|
|
287
288
|
if (status === 'unauthorized' && !isPostAuthChatTreatment) {
|
|
288
|
-
var provider = (0,
|
|
289
|
+
var provider = (0, _extractSmartLinkProvider.extractSmartLinkProvider)(details);
|
|
289
290
|
flags.showConnectFlag({
|
|
290
291
|
id: "smart-link-connect-success-".concat(extensionKey),
|
|
291
292
|
provider: provider
|
|
@@ -293,7 +294,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
293
294
|
}
|
|
294
295
|
reload();
|
|
295
296
|
if (isPostAuthChatTreatment) {
|
|
296
|
-
sendPostAuthChatOpenMessage(url, (0,
|
|
297
|
+
sendPostAuthChatOpenMessage(url, (0, _extractSmartLinkTitle.extractSmartLinkTitle)(details));
|
|
297
298
|
}
|
|
298
299
|
}, function (err) {
|
|
299
300
|
var _err$type;
|
|
@@ -4,33 +4,34 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.succeedUfoExperience = exports.startUfoExperience = exports.failUfoExperience = exports.addMetadataToExperience = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _concurrentExperience = require("@atlaskit/ufo/concurrent-experience");
|
|
8
|
+
var _experienceTypes = require("@atlaskit/ufo/experience-types");
|
|
8
9
|
var inlineExperience = {
|
|
9
10
|
platform: {
|
|
10
11
|
component: 'smart-links'
|
|
11
12
|
},
|
|
12
|
-
type:
|
|
13
|
-
performanceType:
|
|
13
|
+
type: _experienceTypes.ExperienceTypes.Experience,
|
|
14
|
+
performanceType: _experienceTypes.ExperiencePerformanceTypes.InlineResult
|
|
14
15
|
};
|
|
15
16
|
var renderExperience = {
|
|
16
17
|
platform: {
|
|
17
18
|
component: 'smart-links'
|
|
18
19
|
},
|
|
19
|
-
type:
|
|
20
|
-
performanceType:
|
|
20
|
+
type: _experienceTypes.ExperienceTypes.Load,
|
|
21
|
+
performanceType: _experienceTypes.ExperiencePerformanceTypes.PageSegmentLoad
|
|
21
22
|
};
|
|
22
23
|
var aiExperience = {
|
|
23
24
|
platform: {
|
|
24
25
|
component: 'smart-links'
|
|
25
26
|
},
|
|
26
|
-
type:
|
|
27
|
-
performanceType:
|
|
27
|
+
type: _experienceTypes.ExperienceTypes.Experience,
|
|
28
|
+
performanceType: _experienceTypes.ExperiencePerformanceTypes.InlineResult
|
|
28
29
|
};
|
|
29
30
|
var ufoExperiences = {
|
|
30
|
-
'smart-link-rendered': new
|
|
31
|
-
'smart-link-authenticated': new
|
|
32
|
-
'smart-link-action-invocation': new
|
|
33
|
-
'smart-link-ai-summary': new
|
|
31
|
+
'smart-link-rendered': new _concurrentExperience.ConcurrentExperience('smart-link-rendered', renderExperience),
|
|
32
|
+
'smart-link-authenticated': new _concurrentExperience.ConcurrentExperience('smart-link-authenticated', inlineExperience),
|
|
33
|
+
'smart-link-action-invocation': new _concurrentExperience.ConcurrentExperience('smart-link-action-invocation', inlineExperience),
|
|
34
|
+
'smart-link-ai-summary': new _concurrentExperience.ConcurrentExperience('smart-link-ai-summary', aiExperience)
|
|
34
35
|
};
|
|
35
36
|
var startUfoExperience = exports.startUfoExperience = function startUfoExperience(experienceName, id, properties) {
|
|
36
37
|
var experience = ufoExperiences[experienceName].getInstance(id);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useDispatchAnalytics = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
9
9
|
var _analytics = require("../../utils/analytics");
|
|
10
10
|
/**
|
|
11
11
|
* Hook designed to use a handler if provided (ideally not)
|
|
@@ -15,7 +15,7 @@ var _analytics = require("../../utils/analytics");
|
|
|
15
15
|
* In future, potentially use this hook to feature flag the channel we are dispatching to
|
|
16
16
|
*/
|
|
17
17
|
var useDispatchAnalytics = exports.useDispatchAnalytics = function useDispatchAnalytics(handler) {
|
|
18
|
-
var _useAnalyticsEvents = (0,
|
|
18
|
+
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
19
19
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
20
20
|
return {
|
|
21
21
|
dispatchAnalytics: (0, _react.useMemo)(function () {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useMouseDownEvent = exports.useLinkClicked = exports.ClickButton = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
9
9
|
var _click = require("../../utils/analytics/click");
|
|
10
10
|
var ClickButton = exports.ClickButton = /*#__PURE__*/function (ClickButton) {
|
|
11
11
|
ClickButton[ClickButton["Left"] = 0] = "Left";
|
|
@@ -14,7 +14,7 @@ var ClickButton = exports.ClickButton = /*#__PURE__*/function (ClickButton) {
|
|
|
14
14
|
return ClickButton;
|
|
15
15
|
}({});
|
|
16
16
|
var useLinkClicked = exports.useLinkClicked = function useLinkClicked(handler, predicate) {
|
|
17
|
-
var _useAnalyticsEvents = (0,
|
|
17
|
+
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
18
18
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
19
19
|
return (0, _react.useCallback)(function () {
|
|
20
20
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.isVisible = exports.isFinalState = exports.isAccessible = exports.hasResolved = exports.hasAuthScopeOverrides = exports.getThirdPartyARI = exports.getSubproduct = exports.getStatusDetails = exports.getServices = exports.getResourceType = exports.getProduct = exports.getObjectName = exports.getObjectIconUrl = exports.getObjectAri = exports.getFirstPartyIdentifier = exports.getExtensionKey = exports.getDefinitionId = exports.getDatasources = exports.getClickUrl = exports.getCanBeDatasource = exports.getByDefinitionId = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var
|
|
9
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
10
|
var _extractVisitUrl = require("../extractors/common/primitives/extractVisitUrl");
|
|
11
11
|
var getByDefinitionId = exports.getByDefinitionId = function getByDefinitionId(definitionId, store) {
|
|
12
12
|
var urls = Object.keys(store);
|
|
@@ -40,7 +40,7 @@ var getObjectAri = exports.getObjectAri = function getObjectAri(details) {
|
|
|
40
40
|
return (details === null || details === void 0 ? void 0 : details.data) && 'atlassian:ari' in details.data && details.data['atlassian:ari'] || undefined;
|
|
41
41
|
};
|
|
42
42
|
var getThirdPartyARI = exports.getThirdPartyARI = function getThirdPartyARI(details) {
|
|
43
|
-
if ((0,
|
|
43
|
+
if ((0, _fg.fg)('platform_smartlink_3pclick_analytics')) {
|
|
44
44
|
if (details !== null && details !== void 0 && details.entityData && 'thirdPartyAri' in details.entityData && details.entityData.thirdPartyAri) {
|
|
45
45
|
return details.entityData.thirdPartyAri;
|
|
46
46
|
}
|
|
@@ -54,7 +54,7 @@ var getThirdPartyARI = exports.getThirdPartyARI = function getThirdPartyARI(deta
|
|
|
54
54
|
return undefined;
|
|
55
55
|
};
|
|
56
56
|
var getFirstPartyIdentifier = exports.getFirstPartyIdentifier = function getFirstPartyIdentifier() {
|
|
57
|
-
if (!(0,
|
|
57
|
+
if (!(0, _fg.fg)('platform_smartlink_3pclick_analytics')) {
|
|
58
58
|
return undefined;
|
|
59
59
|
}
|
|
60
60
|
var product = getProductFromWindowURL();
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _extractAri = require("@atlaskit/link-extractors/extract-ari");
|
|
9
|
+
var _extractLink = require("@atlaskit/link-extractors/extract-link");
|
|
9
10
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
10
11
|
var _analytics = require("../../analytics");
|
|
11
12
|
var _store = require("../../store");
|
|
@@ -22,8 +23,8 @@ var useAISummaryAction = function useAISummaryAction(url) {
|
|
|
22
23
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
23
24
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
24
25
|
var data = (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data;
|
|
25
|
-
var ari = data && (0,
|
|
26
|
-
var dataUrl = data && (0,
|
|
26
|
+
var ari = data && (0, _extractAri.extractAri)(data);
|
|
27
|
+
var dataUrl = data && (0, _extractLink.extractLink)(data) || '';
|
|
27
28
|
var onStart = (0, _react.useCallback)(function (id) {
|
|
28
29
|
(0, _analytics.startUfoExperience)(EXPERIENCE_NAME, id);
|
|
29
30
|
}, []);
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useDestinationUrl = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _functionWithFg = require("@atlaskit/platform-feature-flags-react/function-with-fg");
|
|
8
8
|
var _helpers = require("../../helpers");
|
|
9
9
|
var _store = require("../../store");
|
|
10
10
|
var _useSmartLinkCrossProductUrlWrapper = require("../use-smart-link-cross-product-url-wrapper");
|
|
@@ -34,6 +34,6 @@ var useDestinationUrlImplementation = function useDestinationUrlImplementation(u
|
|
|
34
34
|
var resolvedUrl = (0, _helpers.getClickUrl)(url, state.details);
|
|
35
35
|
return appendCrossProductAnalyticsParams(resolvedUrl);
|
|
36
36
|
};
|
|
37
|
-
var useDestinationUrl = exports.useDestinationUrl = (0,
|
|
37
|
+
var useDestinationUrl = exports.useDestinationUrl = (0, _functionWithFg.functionWithFG)('platform_smartlink_xpc_url_wrapping', useDestinationUrlImplementation, function (url) {
|
|
38
38
|
return url;
|
|
39
39
|
});
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.isEmbedRovoActionsFooterExperimentEnabled = exports.getEmbedRovoActionsFooterExperimentMeta = exports.default = exports.EMBED_ROVO_ACTIONS_FOOTER_EXPERIMENT_KEY = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
var
|
|
10
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
11
11
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
12
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
13
13
|
var _rovo = require("../../../utils/rovo");
|
|
@@ -22,10 +22,10 @@ var NOT_ENABLED_RESULT = {
|
|
|
22
22
|
isEnabled: false
|
|
23
23
|
};
|
|
24
24
|
var isEmbedRovoActionsFooterExperimentEnabled = exports.isEmbedRovoActionsFooterExperimentEnabled = function isEmbedRovoActionsFooterExperimentEnabled(product) {
|
|
25
|
-
return product === 'CONFLUENCE' && (0,
|
|
25
|
+
return product === 'CONFLUENCE' && (0, _fg.fg)('platform_sl_3p_auth_rovo_embed_footer_kill_switch') && (0, _expValEquals.expValEquals)(EMBED_ROVO_ACTIONS_FOOTER_EXPERIMENT_KEY, 'isEnabled', true);
|
|
26
26
|
};
|
|
27
27
|
var isEmbedRovoActionsFooterKillSwitchEnabled = function isEmbedRovoActionsFooterKillSwitchEnabled(product) {
|
|
28
|
-
return product === 'CONFLUENCE' && (0,
|
|
28
|
+
return product === 'CONFLUENCE' && (0, _fg.fg)('platform_sl_3p_auth_rovo_embed_footer_kill_switch');
|
|
29
29
|
};
|
|
30
30
|
var isEmbedRovoActionsFooterExperimentEnabledNoExposure = function isEmbedRovoActionsFooterExperimentEnabledNoExposure(product) {
|
|
31
31
|
return isEmbedRovoActionsFooterKillSwitchEnabled(product) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)(EMBED_ROVO_ACTIONS_FOOTER_EXPERIMENT_KEY, 'isEnabled', true);
|
|
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
12
|
-
var
|
|
12
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
13
|
var _currentSiteCloudId = require("../../services/current-site-cloud-id");
|
|
14
14
|
var _query = require("./query");
|
|
15
15
|
/**
|
|
@@ -79,7 +79,7 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
79
79
|
}
|
|
80
80
|
return _context3.abrupt("return", match[2]);
|
|
81
81
|
case 1:
|
|
82
|
-
if (!(0,
|
|
82
|
+
if (!(0, _fg.fg)('platform_sl_incoming_outgoing_tenant_info_killswitch')) {
|
|
83
83
|
_context3.next = 3;
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
9
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
10
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
11
|
var _rovo = require("../../../utils/rovo");
|
|
12
12
|
var _helpers = require("../../helpers");
|
|
@@ -46,7 +46,7 @@ var useInlineTailoredActionExperiment = function useInlineTailoredActionExperime
|
|
|
46
46
|
if (!extensionKey || !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
47
47
|
return NOT_ENABLED_RESULT;
|
|
48
48
|
}
|
|
49
|
-
var isEnabled = (0,
|
|
49
|
+
var isEnabled = (0, _fg.fg)('platform_sl_3p_auth_inline_tailored_cta_killswitch') && (0, _expValEquals.expValEquals)('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
50
50
|
return {
|
|
51
51
|
isEnabled: isEnabled
|
|
52
52
|
};
|
|
@@ -8,9 +8,9 @@ exports.default = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _react = require("react");
|
|
11
|
-
var
|
|
11
|
+
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
12
12
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
13
|
-
var
|
|
13
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _constants = require("../../../constants");
|
|
15
15
|
var _analytics = require("../../analytics");
|
|
16
16
|
var _useResponse2 = _interopRequireDefault(require("../use-response"));
|
|
@@ -28,7 +28,7 @@ var useResolve = function useResolve() {
|
|
|
28
28
|
handleResolvedLinkError = _useResponse.handleResolvedLinkError;
|
|
29
29
|
return (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
30
30
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(params) {
|
|
31
|
-
var url, _params$isReloading, isReloading, _params$isMetadataReq, isMetadataRequest, _params$id, id, appearance, _ref2, details, hasData, metadataStatus;
|
|
31
|
+
var url, _params$isReloading, isReloading, _params$isMetadataReq, isMetadataRequest, _params$id, id, appearance, _ref2, details, hasData, shouldForceFetch, metadataStatus;
|
|
32
32
|
return _regenerator.default.wrap(function (_context) {
|
|
33
33
|
while (1) switch (_context.prev = _context.next) {
|
|
34
34
|
case 0:
|
|
@@ -37,13 +37,14 @@ var useResolve = function useResolve() {
|
|
|
37
37
|
status: _constants.SmartLinkStatus.Pending,
|
|
38
38
|
details: undefined
|
|
39
39
|
}, details = _ref2.details;
|
|
40
|
-
hasData = !!(details && details.data || (0,
|
|
40
|
+
hasData = !!(details && details.data || (0, _isEntityPresent.isEntityPresent)(details));
|
|
41
41
|
if (!(isReloading || !hasData || isMetadataRequest)) {
|
|
42
42
|
_context.next = 1;
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
shouldForceFetch = isReloading || isMetadataRequest && appearance === 'block' && (0, _fg.fg)('platform_smartlink_inline_resolve_optimization');
|
|
46
|
+
metadataStatus = appearance === 'inline' && !isMetadataRequest && (0, _fg.fg)('platform_smartlink_inline_resolve_optimization') ? 'pending' : undefined;
|
|
47
|
+
return _context.abrupt("return", connections.client.fetchData(url, shouldForceFetch, appearance).then(function (response) {
|
|
47
48
|
return handleResolvedLinkResponse(url, response, isReloading, isMetadataRequest, metadataStatus);
|
|
48
49
|
}).catch(function (error) {
|
|
49
50
|
return handleResolvedLinkError(url, error, undefined, isMetadataRequest);
|