@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
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractTaskType = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractUrlFromIconJsonLd = require("@atlaskit/link-extractors/extract-url-from-icon-json-ld");
|
|
8
8
|
var extractTaskType = exports.extractTaskType = function extractTaskType(jsonLd) {
|
|
9
9
|
// TODO: Remove once Jira migrate to the correct type.
|
|
10
10
|
var taskType = jsonLd['atlassian:taskType'] || jsonLd.taskType;
|
|
@@ -21,7 +21,7 @@ var extractTaskType = exports.extractTaskType = function extractTaskType(jsonLd)
|
|
|
21
21
|
return {
|
|
22
22
|
id: taskType['@id'],
|
|
23
23
|
name: taskType.name,
|
|
24
|
-
icon: taskType.icon && (0,
|
|
24
|
+
icon: taskType.icon && (0, _extractUrlFromIconJsonLd.extractUrlFromIconJsonLd)(taskType.icon)
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractSummary = exports.extractSmartLinkSummary = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractEntity2 = require("@atlaskit/link-extractors/extract-entity");
|
|
8
|
+
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
8
9
|
/**
|
|
9
10
|
* Return link summary
|
|
10
11
|
*/
|
|
@@ -19,9 +20,9 @@ var extractSummary = exports.extractSummary = function extractSummary(jsonLd) {
|
|
|
19
20
|
* Return link summary
|
|
20
21
|
*/
|
|
21
22
|
var extractSmartLinkSummary = exports.extractSmartLinkSummary = function extractSmartLinkSummary(response) {
|
|
22
|
-
if ((0,
|
|
23
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
23
24
|
var _extractEntity;
|
|
24
|
-
return (_extractEntity = (0,
|
|
25
|
+
return (_extractEntity = (0, _extractEntity2.extractEntity)(response)) === null || _extractEntity === void 0 ? void 0 : _extractEntity.description;
|
|
25
26
|
}
|
|
26
27
|
return (response === null || response === void 0 ? void 0 : response.data) && extractSummary(response.data);
|
|
27
28
|
};
|
|
@@ -4,7 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractEmbedProps = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractSmartLinkEmbed = require("@atlaskit/link-extractors/extract-smart-link-embed");
|
|
8
|
+
var _extractSmartLinkTitle = require("@atlaskit/link-extractors/extract-smart-link-title");
|
|
9
|
+
var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link-url");
|
|
10
|
+
var _extractType = require("@atlaskit/link-extractors/extract-type");
|
|
8
11
|
var _jsonld = require("../../utils/jsonld");
|
|
9
12
|
var _context = require("../common/context");
|
|
10
13
|
var _extractIsSupportTheming = require("../common/meta/extractIsSupportTheming");
|
|
@@ -13,12 +16,12 @@ var extractEmbedProps = exports.extractEmbedProps = function extractEmbedProps(r
|
|
|
13
16
|
var meta = response === null || response === void 0 ? void 0 : response.meta;
|
|
14
17
|
var jsonLd = (response === null || response === void 0 ? void 0 : response.data) || (0, _jsonld.getEmptyJsonLd)();
|
|
15
18
|
return {
|
|
16
|
-
link: (0,
|
|
17
|
-
title: (0,
|
|
19
|
+
link: (0, _extractSmartLinkUrl.extractSmartLinkUrl)(response) || '',
|
|
20
|
+
title: (0, _extractSmartLinkTitle.extractSmartLinkTitle)(response),
|
|
18
21
|
context: (0, _context.extractSmartLinkContext)(response),
|
|
19
|
-
preview: (0,
|
|
22
|
+
preview: (0, _extractSmartLinkEmbed.extractSmartLinkEmbed)(response, iframeUrlType),
|
|
20
23
|
isTrusted: (0, _extractIsTrusted.extractIsTrusted)(meta),
|
|
21
24
|
isSupportTheming: (0, _extractIsSupportTheming.extractIsSupportTheming)(meta),
|
|
22
|
-
type: (0,
|
|
25
|
+
type: (0, _extractType.extractType)(jsonLd)
|
|
23
26
|
};
|
|
24
27
|
};
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _extractLink = require("@atlaskit/link-extractors/extract-link");
|
|
9
|
+
var _extractType = require("@atlaskit/link-extractors/extract-type");
|
|
10
|
+
var _smartLinkActions = require("@atlaskit/linking-types/smart-link-actions");
|
|
10
11
|
var _constants = require("../../../constants");
|
|
11
12
|
var _helpers = require("../../../state/helpers");
|
|
12
13
|
var _canShowAction = require("../../../utils/actions/can-show-action");
|
|
@@ -19,7 +20,7 @@ var extractFollowAction = function extractFollowAction(response, actionOptions,
|
|
|
19
20
|
var extensionKey = (0, _helpers.getExtensionKey)(response);
|
|
20
21
|
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
21
22
|
var actions = (0, _extractServerAction.default)(data);
|
|
22
|
-
var type = (0,
|
|
23
|
+
var type = (0, _extractType.extractType)(data);
|
|
23
24
|
var isProject = type === null || type === void 0 ? void 0 : type.includes('atlassian:Project');
|
|
24
25
|
if (!extensionKey || actions.length === 0) {
|
|
25
26
|
return;
|
|
@@ -28,14 +29,14 @@ var extractFollowAction = function extractFollowAction(response, actionOptions,
|
|
|
28
29
|
if ((item === null || item === void 0 ? void 0 : item.name) === 'UpdateAction') {
|
|
29
30
|
var _dataUpdateAction;
|
|
30
31
|
var actionName = item === null || item === void 0 || (_dataUpdateAction = item.dataUpdateAction) === null || _dataUpdateAction === void 0 ? void 0 : _dataUpdateAction.name;
|
|
31
|
-
return actionName ===
|
|
32
|
+
return actionName === _smartLinkActions.SmartLinkActionType.FollowEntityAction || actionName === _smartLinkActions.SmartLinkActionType.UnfollowEntityAction;
|
|
32
33
|
}
|
|
33
34
|
return false;
|
|
34
35
|
});
|
|
35
36
|
if (!action || !action.resourceIdentifiers) {
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
var url = (0,
|
|
39
|
+
var url = (0, _extractLink.extractLink)(data);
|
|
39
40
|
var reload = url ? {
|
|
40
41
|
id: id,
|
|
41
42
|
url: url
|
|
@@ -50,7 +51,7 @@ var extractFollowAction = function extractFollowAction(response, actionOptions,
|
|
|
50
51
|
providerKey: extensionKey,
|
|
51
52
|
reload: reload
|
|
52
53
|
},
|
|
53
|
-
value: actionType ===
|
|
54
|
+
value: actionType === _smartLinkActions.SmartLinkActionType.FollowEntityAction,
|
|
54
55
|
isProject: isProject
|
|
55
56
|
};
|
|
56
57
|
};
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link-url");
|
|
8
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
9
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
10
10
|
var _constants = require("../../../constants");
|
|
11
11
|
var _helpers = require("../../../state/helpers");
|
|
@@ -30,12 +30,12 @@ var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
var extensionKey = (0, _helpers.getExtensionKey)(response);
|
|
33
|
-
var isInlineExperimentEnabled = (0,
|
|
33
|
+
var isInlineExperimentEnabled = (0, _fg.fg)('platform_sl_3p_auth_inline_tailored_cta_killswitch') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
34
34
|
var is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && (rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.product) === 'CONFLUENCE';
|
|
35
35
|
var is3PEmbedPostAuthActionsEnabled = isEmbedRovoActionsFooterExperimentEnabled === true;
|
|
36
36
|
var isSupportedFeature = is3PBlockPostAuthActionsEnabled || isInlineExperimentEnabled || is3PEmbedPostAuthActionsEnabled;
|
|
37
37
|
var isOptIn = (actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
38
|
-
var url = (0,
|
|
38
|
+
var url = (0, _extractSmartLinkUrl.extractSmartLinkUrl)(response);
|
|
39
39
|
return isSupportedFeature && isOptIn ? {
|
|
40
40
|
invokeAction: {
|
|
41
41
|
actionSubjectId: 'rovoChatPrompt',
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractViewRelatedLinksAction = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractSmartLinkAri = require("@atlaskit/link-extractors/extract-smart-link-ari");
|
|
8
8
|
var extractViewRelatedLinksAction = exports.extractViewRelatedLinksAction = function extractViewRelatedLinksAction(response) {
|
|
9
9
|
var _response$meta;
|
|
10
10
|
if (!(response !== null && response !== void 0 && (_response$meta = response.meta) !== null && _response$meta !== void 0 && (_response$meta = _response$meta.supportedFeature) !== null && _response$meta !== void 0 && _response$meta.includes('RelatedLinks'))) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
|
-
var ari = (0,
|
|
13
|
+
var ari = (0, _extractSmartLinkAri.extractSmartLinkAri)(response);
|
|
14
14
|
if (!ari) {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.extractFlexibleCardActions = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
10
|
var _constants = require("../../../constants");
|
|
11
11
|
var _extractAiSummaryAction = require("./extract-ai-summary-action");
|
|
12
12
|
var _extractAutomationAction = require("./extract-automation-action");
|
|
@@ -51,11 +51,11 @@ var extractFlexibleCardActions = exports.extractFlexibleCardActions = function e
|
|
|
51
51
|
origin: origin,
|
|
52
52
|
response: response,
|
|
53
53
|
isPreviewPanelAvailable: isPreviewPanelAvailable
|
|
54
|
-
}, (0,
|
|
54
|
+
}, (0, _fg.fg)('preview_panel_unit_check') ? {
|
|
55
55
|
isPreviewRestricted: isPreviewRestricted
|
|
56
56
|
} : undefined), {}, {
|
|
57
57
|
openPreviewPanel: openPreviewPanel
|
|
58
|
-
}, (0,
|
|
58
|
+
}, (0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? {
|
|
59
59
|
transformUrl: transformUrl
|
|
60
60
|
} : undefined))), _constants.ActionName.AutomationAction, (0, _extractAutomationAction.extractAutomationAction)(response)), _constants.InternalActionName.AISummaryAction, (0, _extractAiSummaryAction.extractAISummaryAction)(response, url, actionOptions, aiSummaryConfig)), _constants.ActionName.RovoChatAction, (0, _extractRovoChatAction.default)({
|
|
61
61
|
actionOptions: actionOptions,
|
|
@@ -4,17 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractPersonsUpdatedBy = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractMembers = require("@atlaskit/link-extractors/extract-members");
|
|
8
|
+
var _extractPersonFromJsonLd = require("@atlaskit/link-extractors/extract-person-from-json-ld");
|
|
8
9
|
var extractPersonsUpdatedBy = exports.extractPersonsUpdatedBy = function extractPersonsUpdatedBy(jsonLd) {
|
|
9
10
|
if (jsonLd['@type'] === 'atlassian:Project') {
|
|
10
|
-
var members = (0,
|
|
11
|
+
var members = (0, _extractMembers.extractMembers)(jsonLd);
|
|
11
12
|
if (members && members.length !== 0) {
|
|
12
13
|
return members;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
var updatedBy = jsonLd['atlassian:updatedBy'];
|
|
16
17
|
if (updatedBy) {
|
|
17
|
-
var extractedPersons = (0,
|
|
18
|
+
var extractedPersons = (0, _extractPersonFromJsonLd.extractPersonFromJsonLd)(updatedBy);
|
|
18
19
|
return extractedPersons ? [extractedPersons] : undefined;
|
|
19
20
|
}
|
|
20
21
|
};
|
|
@@ -4,13 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractSmartLinkTitle = require("@atlaskit/link-extractors/extract-smart-link-title");
|
|
8
|
+
var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link-url");
|
|
8
9
|
var _constants = require("../../constants");
|
|
9
10
|
var extractLinkTitle = function extractLinkTitle(status, propUrl, response, onClick, onAuxClick, onContextMenu) {
|
|
10
11
|
var _ref;
|
|
11
|
-
var responseUrl = (0,
|
|
12
|
+
var responseUrl = (0, _extractSmartLinkUrl.extractSmartLinkUrl)(response);
|
|
12
13
|
var url = status === _constants.SmartLinkStatus.Resolved ? responseUrl !== null && responseUrl !== void 0 ? responseUrl : propUrl : propUrl;
|
|
13
|
-
var name = (0,
|
|
14
|
+
var name = (0, _extractSmartLinkTitle.extractSmartLinkTitle)(response);
|
|
14
15
|
var text = status === _constants.SmartLinkStatus.Resolved ? (_ref = name !== null && name !== void 0 ? name : responseUrl) !== null && _ref !== void 0 ? _ref : propUrl : propUrl;
|
|
15
16
|
return {
|
|
16
17
|
onClick: onClick,
|
|
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractSmartLinkPreviewImage = exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractEntity = require("@atlaskit/link-extractors/extract-entity");
|
|
8
|
+
var _extractImage = require("@atlaskit/link-extractors/extract-image");
|
|
9
|
+
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
8
10
|
var _constants = require("../../constants");
|
|
9
11
|
var extractPreview = function extractPreview(data) {
|
|
10
12
|
if (!data) {
|
|
11
13
|
return undefined;
|
|
12
14
|
}
|
|
13
|
-
var url = (0,
|
|
15
|
+
var url = (0, _extractImage.extractImage)(data);
|
|
14
16
|
return url ? {
|
|
15
17
|
type: _constants.MediaType.Image,
|
|
16
18
|
url: url
|
|
@@ -24,9 +26,9 @@ var extractSmartLinkPreviewImage = exports.extractSmartLinkPreviewImage = functi
|
|
|
24
26
|
if (!response || !(response !== null && response !== void 0 && response.data)) {
|
|
25
27
|
return undefined;
|
|
26
28
|
}
|
|
27
|
-
if ((0,
|
|
29
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
28
30
|
var _entity$thumbnail;
|
|
29
|
-
var entity = (0,
|
|
31
|
+
var entity = (0, _extractEntity.extractEntity)(response);
|
|
30
32
|
var url = entity === null || entity === void 0 || (_entity$thumbnail = entity.thumbnail) === null || _entity$thumbnail === void 0 ? void 0 : _entity$thumbnail.externalUrl;
|
|
31
33
|
return url ? {
|
|
32
34
|
type: _constants.MediaType.Image,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractUrlFromIconJsonLd = require("@atlaskit/link-extractors/extract-url-from-icon-json-ld");
|
|
8
8
|
var _constants = require("../../constants");
|
|
9
9
|
var priorityMapper = {
|
|
10
10
|
blocker: _constants.IconType.PriorityBlocker,
|
|
@@ -33,7 +33,7 @@ var extractPriority = function extractPriority(data) {
|
|
|
33
33
|
} else if (priority['@type'] === 'Object') {
|
|
34
34
|
return {
|
|
35
35
|
label: priority.name,
|
|
36
|
-
url: priority.icon && (0,
|
|
36
|
+
url: priority.icon && (0, _extractUrlFromIconJsonLd.extractUrlFromIconJsonLd)(priority.icon)
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractSmartLinkProvider = require("@atlaskit/link-extractors/extract-smart-link-provider");
|
|
8
8
|
var _constants = require("../../constants");
|
|
9
9
|
var _constants2 = require("../constants");
|
|
10
10
|
var extractProvider = function extractProvider(response) {
|
|
11
|
-
var provider = (0,
|
|
11
|
+
var provider = (0, _extractSmartLinkProvider.extractSmartLinkProvider)(response);
|
|
12
12
|
if (!provider) {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _extractLink = require("@atlaskit/link-extractors/extract-link");
|
|
10
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
11
11
|
var _constants = require("../../constants");
|
|
12
12
|
var _helpers = require("../../state/helpers");
|
|
13
13
|
var _canShowAction = require("../../utils/actions/can-show-action");
|
|
@@ -44,7 +44,7 @@ var extractAction = function extractAction(response, id, actionOptions, appearan
|
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
var read = toInvokeRequest(extensionKey, action.resourceIdentifiers, (_action$dataRetrieval = action.dataRetrievalAction) === null || _action$dataRetrieval === void 0 ? void 0 : _action$dataRetrieval.name);
|
|
47
|
-
var url = (0,
|
|
47
|
+
var url = (0, _extractLink.extractLink)(data);
|
|
48
48
|
var invokePreviewAction = response ? (_extractInvokePreview = (0, _extractInvokePreviewAction.extractInvokePreviewAction)(_objectSpread(_objectSpread({
|
|
49
49
|
actionOptions: actionOptions,
|
|
50
50
|
appearance: appearance,
|
|
@@ -59,11 +59,11 @@ var extractAction = function extractAction(response, id, actionOptions, appearan
|
|
|
59
59
|
origin: origin,
|
|
60
60
|
response: response,
|
|
61
61
|
isPreviewPanelAvailable: isPreviewPanelAvailable
|
|
62
|
-
}, (0,
|
|
62
|
+
}, (0, _fg.fg)('preview_panel_unit_check') ? {
|
|
63
63
|
isPreviewRestricted: isPreviewRestricted
|
|
64
64
|
} : undefined), {}, {
|
|
65
65
|
openPreviewPanel: openPreviewPanel
|
|
66
|
-
}, (0,
|
|
66
|
+
}, (0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? {
|
|
67
67
|
transformUrl: transformUrl
|
|
68
68
|
} : undefined))) === null || _extractInvokePreview === void 0 ? void 0 : _extractInvokePreview.invokeAction : undefined;
|
|
69
69
|
var details = {
|
|
@@ -88,7 +88,7 @@ var extractState = function extractState(response, actionOptions, id, appearance
|
|
|
88
88
|
if (!(0, _canShowAction.canShowAction)(_constants.CardAction.ChangeStatusAction, actionOptions)) {
|
|
89
89
|
return lozenge;
|
|
90
90
|
}
|
|
91
|
-
var action = extractAction(response, id, actionOptions, appearance, origin, fireEvent, resolve, isPreviewPanelAvailable, openPreviewPanel, (0,
|
|
91
|
+
var action = extractAction(response, id, actionOptions, 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);
|
|
92
92
|
return _objectSpread(_objectSpread({}, lozenge), {}, {
|
|
93
93
|
action: action
|
|
94
94
|
});
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _isConfluenceGenerator = require("@atlaskit/link-extractors/is-confluence-generator");
|
|
8
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
9
|
var _constants = require("../../../constants");
|
|
10
10
|
/**
|
|
11
11
|
* Computes the relevant icon for a document type.
|
|
@@ -24,7 +24,7 @@ var _constants = require("../../../constants");
|
|
|
24
24
|
*/
|
|
25
25
|
var extractDocumentTypeIcon = function extractDocumentTypeIcon(documentType, label, providerId) {
|
|
26
26
|
var getLabel = function getLabel(hardcodedLabel) {
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? hardcodedLabel : label;
|
|
28
28
|
};
|
|
29
29
|
switch (documentType) {
|
|
30
30
|
case 'schema:BlogPosting':
|
|
@@ -33,7 +33,7 @@ var extractDocumentTypeIcon = function extractDocumentTypeIcon(documentType, lab
|
|
|
33
33
|
label: getLabel('blog')
|
|
34
34
|
};
|
|
35
35
|
case 'schema:DigitalDocument':
|
|
36
|
-
if (providerId && (0,
|
|
36
|
+
if (providerId && (0, _isConfluenceGenerator.isConfluenceGenerator)(providerId)) {
|
|
37
37
|
return {
|
|
38
38
|
icon: _constants.IconType.LiveDocument,
|
|
39
39
|
label: getLabel('live document')
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
8
8
|
var _constants = require("../../../constants");
|
|
9
9
|
var extractFileFormatIcon = function extractFileFormatIcon(fileFormat) {
|
|
10
10
|
var getIconDescriptor = function getIconDescriptor(icon, label) {
|
|
11
|
-
return (0,
|
|
11
|
+
return (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? {
|
|
12
12
|
icon: icon,
|
|
13
13
|
label: label
|
|
14
14
|
} : {
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
8
8
|
var _constants = require("../../../constants");
|
|
9
9
|
var extractJiraTaskIcon = function extractJiraTaskIcon(taskType, label) {
|
|
10
10
|
var getLabel = function getLabel(hardcodedLabel) {
|
|
11
|
-
return (0,
|
|
11
|
+
return (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? hardcodedLabel : label || 'Task';
|
|
12
12
|
};
|
|
13
13
|
switch (taskType) {
|
|
14
14
|
case 'JiraBug':
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _extractTitle = require("@atlaskit/link-extractors/extract-title");
|
|
9
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
10
|
var _constants = require("../../../constants");
|
|
11
11
|
var _icon = require("../../common/icon");
|
|
12
12
|
var _priority = require("../../common/icon/priority");
|
|
@@ -66,13 +66,13 @@ function chooseIcon(_ref2) {
|
|
|
66
66
|
var providerId = (_data$generator = data.generator) === null || _data$generator === void 0 ? void 0 : _data$generator['@id'];
|
|
67
67
|
var fileFormat = data === null || data === void 0 ? void 0 : data['schema:fileFormat'];
|
|
68
68
|
var fileFormatIcon = (0, _extractFileFormatIcon.default)(fileFormat);
|
|
69
|
-
if ((0,
|
|
69
|
+
if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
|
|
70
70
|
var iconDescriptor = typeToIconDescriptor({
|
|
71
71
|
type: type,
|
|
72
72
|
providerId: providerId,
|
|
73
73
|
data: data
|
|
74
74
|
});
|
|
75
|
-
var documentTitle = (0,
|
|
75
|
+
var documentTitle = (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? undefined : (0, _extractTitle.extractTitle)(data);
|
|
76
76
|
var extractedDocumentTypeIcon = (0, _extractDocumentTypeIcon.default)(type, documentTitle, providerId);
|
|
77
77
|
var documentTypeIcon = iconDescriptor || extractedDocumentTypeIcon;
|
|
78
78
|
var urlIconNew = (0, _extractUrlIcon.default)(data.icon, documentTypeIcon === null || documentTypeIcon === void 0 ? void 0 : documentTypeIcon.label);
|
|
@@ -103,7 +103,7 @@ function typeToIconDescriptor(_ref3) {
|
|
|
103
103
|
providerId = _ref3.providerId,
|
|
104
104
|
data = _ref3.data;
|
|
105
105
|
var descriptorLabel = function descriptorLabel(semantic) {
|
|
106
|
-
return (0,
|
|
106
|
+
return (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? semantic : label;
|
|
107
107
|
};
|
|
108
108
|
switch (type) {
|
|
109
109
|
case 'atlassian:Goal':
|
|
@@ -139,7 +139,7 @@ function typeToIconDescriptor(_ref3) {
|
|
|
139
139
|
label: descriptorLabel('repository')
|
|
140
140
|
};
|
|
141
141
|
case 'atlassian:Task':
|
|
142
|
-
if ((0,
|
|
142
|
+
if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
|
|
143
143
|
var taskIconDescriptor = {
|
|
144
144
|
icon: _constants.IconType.Task,
|
|
145
145
|
label: descriptorLabel('task')
|
|
@@ -174,7 +174,7 @@ function typeToIconDescriptor(_ref3) {
|
|
|
174
174
|
* Return the icon object given a JSON-LD data object.
|
|
175
175
|
*/
|
|
176
176
|
var extractJsonldDataIcon = function extractJsonldDataIcon(data) {
|
|
177
|
-
if ((0,
|
|
177
|
+
if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
|
|
178
178
|
var type = extractType(data);
|
|
179
179
|
var providerIcon = (0, _extractProviderIcon.default)(data);
|
|
180
180
|
return chooseIcon({
|
|
@@ -183,7 +183,7 @@ var extractJsonldDataIcon = function extractJsonldDataIcon(data) {
|
|
|
183
183
|
providerIcon: providerIcon
|
|
184
184
|
});
|
|
185
185
|
} else {
|
|
186
|
-
var label = (0,
|
|
186
|
+
var label = (0, _extractTitle.extractTitle)(data);
|
|
187
187
|
var _type = extractType(data);
|
|
188
188
|
var urlIcon = (0, _extractUrlIcon.default)(data.icon, label);
|
|
189
189
|
var _providerIcon = (0, _extractProviderIcon.default)(data);
|
|
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.extractSmartLinkProviderIcon = exports.default = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _extractEntity2 = require("@atlaskit/link-extractors/extract-entity");
|
|
9
|
+
var _extractEntityProvider = require("@atlaskit/link-extractors/extract-entity-provider");
|
|
10
|
+
var _extractTitle = require("@atlaskit/link-extractors/extract-title");
|
|
11
|
+
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
9
12
|
var _constants = require("../../../constants");
|
|
10
13
|
var _constants2 = require("../../constants");
|
|
11
14
|
var _extractUrlIcon = _interopRequireDefault(require("./extract-url-icon"));
|
|
@@ -26,7 +29,7 @@ var extractProviderIcon = function extractProviderIcon(data) {
|
|
|
26
29
|
var generator = data.generator;
|
|
27
30
|
var provider = generator === null || generator === void 0 ? void 0 : generator['@id'];
|
|
28
31
|
var icon = generator === null || generator === void 0 ? void 0 : generator.icon;
|
|
29
|
-
var label = (generator === null || generator === void 0 ? void 0 : generator.name) || (0,
|
|
32
|
+
var label = (generator === null || generator === void 0 ? void 0 : generator.name) || (0, _extractTitle.extractTitle)(data);
|
|
30
33
|
if (provider === _constants2.CONFLUENCE_GENERATOR_ID) {
|
|
31
34
|
return {
|
|
32
35
|
icon: _constants.IconType.Confluence,
|
|
@@ -50,8 +53,8 @@ var extractSmartLinkProviderIcon = exports.extractSmartLinkProviderIcon = functi
|
|
|
50
53
|
if (!response || !(response !== null && response !== void 0 && response.data)) {
|
|
51
54
|
return undefined;
|
|
52
55
|
}
|
|
53
|
-
if ((0,
|
|
54
|
-
var provider = (0,
|
|
56
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
57
|
+
var provider = (0, _extractEntityProvider.extractEntityProvider)(response);
|
|
55
58
|
if (!provider) {
|
|
56
59
|
return undefined;
|
|
57
60
|
}
|
|
@@ -73,7 +76,7 @@ var extractSmartLinkProviderIcon = exports.extractSmartLinkProviderIcon = functi
|
|
|
73
76
|
return undefined;
|
|
74
77
|
}
|
|
75
78
|
return {
|
|
76
|
-
label: generator.name || ((_extractEntity = (0,
|
|
79
|
+
label: generator.name || ((_extractEntity = (0, _extractEntity2.extractEntity)(response)) === null || _extractEntity === void 0 ? void 0 : _extractEntity.displayName),
|
|
77
80
|
url: (_generator$icon = generator.icon) === null || _generator$icon === void 0 ? void 0 : _generator$icon.url
|
|
78
81
|
};
|
|
79
82
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _extractUrlFromIconJsonLd = require("@atlaskit/link-extractors/extract-url-from-icon-json-ld");
|
|
8
8
|
/**
|
|
9
9
|
* Extracts the URL icon from the given icon or link object.
|
|
10
10
|
*
|
|
@@ -13,7 +13,7 @@ var _linkExtractors = require("@atlaskit/link-extractors");
|
|
|
13
13
|
* @returns IconDescriptor, which will contain label and url, or undefined
|
|
14
14
|
*/
|
|
15
15
|
var extractUrlIcon = function extractUrlIcon(icon, label) {
|
|
16
|
-
var url = icon && (0,
|
|
16
|
+
var url = icon && (0, _extractUrlFromIconJsonLd.extractUrlFromIconJsonLd)(icon);
|
|
17
17
|
return url ? {
|
|
18
18
|
label: label,
|
|
19
19
|
url: url
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.extractSmartLinkIcon = exports.extractLinkIcon = exports.extractErrorIcon = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _extractEntityIcon = require("@atlaskit/link-extractors/extract-entity-icon");
|
|
10
|
+
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
11
11
|
var _constants = require("../../../constants");
|
|
12
12
|
var _extractIconRenderer = _interopRequireDefault(require("./extract-icon-renderer"));
|
|
13
13
|
var _extractJsonldDataIcon = _interopRequireDefault(require("./extract-jsonld-data-icon"));
|
|
@@ -63,16 +63,10 @@ var extractSmartLinkIcon = exports.extractSmartLinkIcon = function extractSmartL
|
|
|
63
63
|
if (!response || !(response !== null && response !== void 0 && response.data)) {
|
|
64
64
|
return undefined;
|
|
65
65
|
}
|
|
66
|
-
if ((0,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return entityIcon;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
if ((0, _linkExtractors.isEntityPresent)(response)) {
|
|
75
|
-
return (0, _linkExtractors.extractEntityIcon)(response);
|
|
66
|
+
if ((0, _isEntityPresent.isEntityPresent)(response)) {
|
|
67
|
+
var entityIcon = (0, _extractEntityIcon.extractEntityIcon)(response);
|
|
68
|
+
if (entityIcon) {
|
|
69
|
+
return entityIcon;
|
|
76
70
|
}
|
|
77
71
|
}
|
|
78
72
|
return extractLinkIcon(response, renderers);
|