@atlaskit/smart-card 40.8.1 → 40.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/messages.js +30 -0
- package/dist/cjs/state/helpers.js +10 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +4 -3
- package/dist/cjs/view/EmbedCard/components/ErrorFrame.compiled.css +1 -1
- package/dist/cjs/view/EmbedCard/components/ErrorFrame.js +2 -2
- package/dist/cjs/view/EmbedCard/components/Frame.compiled.css +1 -1
- package/dist/cjs/view/EmbedCard/components/Frame.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +3 -2
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/utils.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/messages.js +30 -0
- package/dist/es2019/state/helpers.js +9 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +5 -4
- package/dist/es2019/view/EmbedCard/components/ErrorFrame.compiled.css +1 -1
- package/dist/es2019/view/EmbedCard/components/ErrorFrame.js +2 -2
- package/dist/es2019/view/EmbedCard/components/Frame.compiled.css +1 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/utils.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/messages.js +30 -0
- package/dist/esm/state/helpers.js +9 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +5 -4
- package/dist/esm/view/EmbedCard/components/ErrorFrame.compiled.css +1 -1
- package/dist/esm/view/EmbedCard/components/ErrorFrame.js +2 -2
- package/dist/esm/view/EmbedCard/components/Frame.compiled.css +1 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +3 -2
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/utils.js +3 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/__fixtures__/atlas-project.d.ts +1 -1
- package/dist/types/__fixtures__/dropbox-file.d.ts +1 -1
- package/dist/types/common/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types/common/analytics/generated/use-analytics-events.d.ts +2 -1
- package/dist/types/common/ui/icons/angle-brackets-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/audio-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/blog-icon.d.ts +2 -3
- package/dist/types/common/ui/icons/chart-bar-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/file-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/folder-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/generic-error-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/image-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/list-bullet-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/live-document-icon.d.ts +2 -3
- package/dist/types/common/ui/icons/page-icon.d.ts +0 -1
- package/dist/types/common/ui/icons/utils.d.ts +2 -2
- package/dist/types/common/ui/icons/video-icon.d.ts +0 -1
- package/dist/types/extractors/common/context/extractAccessContext.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/index.d.ts +8 -9
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/analytics/useLinkClicked.d.ts +11 -3
- package/dist/types/state/config/index.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/index.d.ts +0 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +0 -1
- package/dist/types/state/helpers.d.ts +2 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +0 -1
- package/dist/types/state/renderers/index.d.ts +1 -1
- package/dist/types/utils/__mocks__/shouldSample.d.ts +0 -1
- package/dist/types/utils/analytics/SmartLinkAnalyticsContext.d.ts +1 -1
- package/dist/types/utils/analytics/click.d.ts +2 -2
- package/dist/types/utils/mocks.d.ts +7 -7
- package/dist/types/view/BlockCard/types.d.ts +0 -1
- package/dist/types/view/BlockCard/views/ErroredView.d.ts +0 -1
- package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +0 -1
- package/dist/types/view/BlockCard/views/NotFoundView.d.ts +0 -1
- package/dist/types/view/BlockCard/views/ResolvedView.d.ts +0 -1
- package/dist/types/view/BlockCard/views/UnauthorisedView.d.ts +0 -1
- package/dist/types/view/BlockCard/views/unresolved-view/index.d.ts +0 -1
- package/dist/types/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.d.ts +0 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +0 -1
- package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +0 -1
- package/dist/types/view/EmbedCard/components/IFrame.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/styled.d.ts +0 -1
- package/dist/types/view/EmbedCard/views/ErroredView.d.ts +0 -1
- package/dist/types/view/EmbedCard/views/unresolved-view/index.d.ts +0 -1
- package/dist/types/view/EmbedModal/components/embed-content/index.d.ts +0 -1
- package/dist/types/view/EmbedModal/components/link-info/index.d.ts +0 -1
- package/dist/types/view/EmbedModal/components/link-info/link-info-button/types.d.ts +0 -1
- package/dist/types/view/EmbedModal/index.d.ts +2 -21
- package/dist/types/view/FlexibleCard/components/actions/action/action-button/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-dropdown-item/types.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +2 -8
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/unresolved-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/action-block/action-footer/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-block/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +3 -3
- package/dist/types/view/FlexibleCard/components/blocks/action-group/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/block/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/footer-block/resolved/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/title-block/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/common/ai-summary/ai-event-error-viewed.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/image-icon/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/common/image-icon/types.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/container/layered-link/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/container/layered-link/types.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/applied-to-components-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/assigned-to-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/assigned-to-group-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/author-group-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/checklist-progress-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/collaborator-group-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/comment-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +7 -7
- package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +1 -2
- package/dist/types/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +12 -13
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/type.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/types.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/created-by-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/created-on-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/due-on-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/latest-commit-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/link-icon-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/location-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/media-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/modified-by-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/modified-on-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/owned-by-group-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/priority-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/provider-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/react-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/read-time-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/sent-on-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/snippet-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/source-branch-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/state-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/story-points-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/subscriber-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/target-branch-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/team-member-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/title-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/user-attributes-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/view-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/elements/vote-count-element/index.d.ts +0 -1
- package/dist/types/view/FlexibleCard/types.d.ts +0 -1
- package/dist/types/view/HoverCard/components/ContentContainer.d.ts +0 -1
- package/dist/types/view/HoverCard/components/views/forbidden/index.d.ts +0 -1
- package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +0 -1
- package/dist/types/view/HoverCard/components/views/resolving/index.d.ts +0 -1
- package/dist/types/view/HoverCard/components/views/unauthorised/index.d.ts +0 -1
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -1
- package/dist/types/view/InlineCard/common/action-button/index.d.ts +0 -1
- package/dist/types/view/InlineCard/common/inline-lozenge/index.d.ts +0 -1
- package/dist/types/view/LinkUrl/LinkWarningModal/index.d.ts +0 -1
- package/dist/types/view/LinkUrl/types.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/views/errored/error-svg/search-no-result/index.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/views/resolving/index.d.ts +0 -1
- package/dist/types/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +0 -1
- package/dist/types/view/common/ai-prism/ai-glowing-border/animated-svg-container.d.ts +0 -1
- package/dist/types/view/common/ai-prism/ai-glowing-border/index.d.ts +0 -1
- package/dist/types/view/common/ai-prism/index.d.ts +0 -1
- package/dist/types/view/common/ai-summary/index.d.ts +0 -1
- package/dist/types/view/common/render-svg.d.ts +0 -1
- package/dist/types/view/types.d.ts +0 -1
- package/dist/types-ts4.5/__fixtures__/atlas-project.d.ts +1 -1
- package/dist/types-ts4.5/__fixtures__/dropbox-file.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/use-analytics-events.d.ts +2 -1
- package/dist/types-ts4.5/common/ui/icons/angle-brackets-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/audio-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/blog-icon.d.ts +2 -3
- package/dist/types-ts4.5/common/ui/icons/chart-bar-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/file-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/folder-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/generic-error-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/image-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/list-bullet-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/live-document-icon.d.ts +2 -3
- package/dist/types-ts4.5/common/ui/icons/page-icon.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/icons/utils.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/icons/video-icon.d.ts +0 -1
- package/dist/types-ts4.5/extractors/common/context/extractAccessContext.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/index.d.ts +8 -9
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useLinkClicked.d.ts +11 -3
- package/dist/types-ts4.5/state/config/index.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +0 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +0 -1
- package/dist/types-ts4.5/state/helpers.d.ts +2 -0
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +0 -1
- package/dist/types-ts4.5/state/renderers/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/__mocks__/shouldSample.d.ts +0 -1
- package/dist/types-ts4.5/utils/analytics/SmartLinkAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/click.d.ts +2 -2
- package/dist/types-ts4.5/utils/mocks.d.ts +7 -7
- package/dist/types-ts4.5/view/BlockCard/types.d.ts +0 -1
- package/dist/types-ts4.5/view/BlockCard/views/ErroredView.d.ts +0 -1
- package/dist/types-ts4.5/view/BlockCard/views/ForbiddenView.d.ts +0 -1
- package/dist/types-ts4.5/view/BlockCard/views/NotFoundView.d.ts +0 -1
- package/dist/types-ts4.5/view/BlockCard/views/ResolvedView.d.ts +0 -1
- package/dist/types-ts4.5/view/BlockCard/views/UnauthorisedView.d.ts +0 -1
- package/dist/types-ts4.5/view/BlockCard/views/unresolved-view/index.d.ts +0 -1
- package/dist/types-ts4.5/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.d.ts +0 -1
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrame.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedCard/components/IFrame.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedCard/views/ErroredView.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedCard/views/unresolved-view/index.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedModal/components/embed-content/index.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/index.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/link-info-button/types.d.ts +0 -1
- package/dist/types-ts4.5/view/EmbedModal/index.d.ts +2 -25
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-button/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-dropdown-item/types.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +2 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/unresolved-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/action-footer/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +3 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/resolved/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/ai-summary/ai-event-error-viewed.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/types.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/container/layered-link/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/container/layered-link/types.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/applied-to-components-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/assigned-to-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/assigned-to-group-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/author-group-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/checklist-progress-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/collaborator-group-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/comment-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +7 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +1 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +12 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/type.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/types.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/created-by-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/created-on-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/due-on-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/latest-commit-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/link-icon-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/location-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/media-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/modified-by-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/modified-on-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-group-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/priority-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/provider-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/react-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/read-time-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/sent-on-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/snippet-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/source-branch-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/state-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/story-points-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/subscriber-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/target-branch-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/team-member-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/title-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/user-attributes-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/view-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/vote-count-element/index.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/ContentContainer.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/forbidden/index.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/resolving/index.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/index.d.ts +0 -1
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -1
- package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +0 -1
- package/dist/types-ts4.5/view/InlineCard/common/inline-lozenge/index.d.ts +0 -1
- package/dist/types-ts4.5/view/LinkUrl/LinkWarningModal/index.d.ts +0 -1
- package/dist/types-ts4.5/view/LinkUrl/types.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/search-no-result/index.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolving/index.d.ts +0 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +0 -1
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/animated-svg-container.d.ts +0 -1
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/index.d.ts +0 -1
- package/dist/types-ts4.5/view/common/ai-prism/index.d.ts +0 -1
- package/dist/types-ts4.5/view/common/ai-summary/index.d.ts +0 -1
- package/dist/types-ts4.5/view/common/render-svg.d.ts +0 -1
- package/dist/types-ts4.5/view/types.d.ts +0 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 40.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e8b2481cab6c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8b2481cab6c0) -
|
|
8
|
+
Add third party ARI to analytics emission
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 40.8.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
|
|
16
|
+
[`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
|
|
17
|
+
Internal changes to how border radius values are applied. No visual change.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 40.8.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -784,5 +784,35 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
784
784
|
id: 'fabric.linking.user_attributes',
|
|
785
785
|
defaultMessage: '{context}',
|
|
786
786
|
description: 'Displays user attributes like role, department, location, and pronouns'
|
|
787
|
+
},
|
|
788
|
+
follow_project_descriptionGalaxia: {
|
|
789
|
+
id: 'fabric.linking.follow_project_description-galaxia',
|
|
790
|
+
defaultMessage: 'Follow to get notifications on this space',
|
|
791
|
+
description: 'Description on what Follow does'
|
|
792
|
+
},
|
|
793
|
+
follow_projectGalaxia: {
|
|
794
|
+
id: 'fabric.linking.follow_project-galaxia',
|
|
795
|
+
defaultMessage: 'Follow space',
|
|
796
|
+
description: 'Click to follow a project.'
|
|
797
|
+
},
|
|
798
|
+
follow_project_errorGalaxia: {
|
|
799
|
+
id: 'fabric.linking.follow_project_error-galaxia',
|
|
800
|
+
defaultMessage: 'We encountered an error while trying to follow the space. Check your connection or refresh the page and try again.',
|
|
801
|
+
description: 'Shown when an unknown error occurs when following an Atlas project'
|
|
802
|
+
},
|
|
803
|
+
unfollow_project_descriptionGalaxia: {
|
|
804
|
+
id: 'fabric.linking.unfollow_project_description-galaxia',
|
|
805
|
+
defaultMessage: 'Unfollow to stop receiving space notifications',
|
|
806
|
+
description: 'Description on what Unfollow does'
|
|
807
|
+
},
|
|
808
|
+
unfollow_projectGalaxia: {
|
|
809
|
+
id: 'fabric.linking.unfollow_project-galaxia',
|
|
810
|
+
defaultMessage: 'Unfollow space',
|
|
811
|
+
description: 'Click to unfollow a project.'
|
|
812
|
+
},
|
|
813
|
+
unfollow_project_errorGalaxia: {
|
|
814
|
+
id: 'fabric.linking.unfollow_project_error-galaxia',
|
|
815
|
+
defaultMessage: 'We encountered an error while trying to unfollow the space. Check your connection or refresh the page and try again.',
|
|
816
|
+
description: 'Shown when an unknown error occurs when unfollowing an Atlas project'
|
|
787
817
|
}
|
|
788
818
|
});
|
|
@@ -4,8 +4,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.isVisible = exports.isFinalState = exports.isAccessible = exports.hasResolved = exports.hasAuthScopeOverrides = exports.getSubproduct = exports.getStatusDetails = exports.getServices = exports.getResourceType = exports.getProduct = exports.getObjectName = exports.getObjectIconUrl = exports.getObjectAri = exports.getExtensionKey = exports.getDefinitionId = exports.getDatasources = exports.getClickUrl = exports.getCanBeDatasource = exports.getByDefinitionId = void 0;
|
|
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.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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
10
|
var _extractVisitUrl = require("../extractors/common/primitives/extractVisitUrl");
|
|
10
11
|
var getByDefinitionId = exports.getByDefinitionId = function getByDefinitionId(definitionId, store) {
|
|
11
12
|
var urls = Object.keys(store);
|
|
@@ -34,6 +35,14 @@ var getExtensionKey = exports.getExtensionKey = function getExtensionKey(details
|
|
|
34
35
|
var getObjectAri = exports.getObjectAri = function getObjectAri(details) {
|
|
35
36
|
return (details === null || details === void 0 ? void 0 : details.data) && 'atlassian:ari' in details.data && details.data['atlassian:ari'] || undefined;
|
|
36
37
|
};
|
|
38
|
+
var getThirdPartyARI = exports.getThirdPartyARI = function getThirdPartyARI(details) {
|
|
39
|
+
if ((0, _platformFeatureFlags.fg)('platform_smartlink_3pclick_analytics')) {
|
|
40
|
+
if (details !== null && details !== void 0 && details.entityData && 'thirdPartyAri' in details.entityData && details.entityData.thirdPartyAri) {
|
|
41
|
+
return details.entityData.thirdPartyAri;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return undefined;
|
|
45
|
+
};
|
|
37
46
|
var getObjectName = exports.getObjectName = function getObjectName(details) {
|
|
38
47
|
return (details === null || details === void 0 ? void 0 : details.data) && 'name' in details.data && details.data.name || undefined;
|
|
39
48
|
};
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "40.8.
|
|
14
|
+
packageVersion: "40.8.2"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -68,6 +68,7 @@ function Component(_ref) {
|
|
|
68
68
|
isPreviewPanelAvailable = _useSmartLink.isPreviewPanelAvailable,
|
|
69
69
|
openPreviewPanel = _useSmartLink.openPreviewPanel;
|
|
70
70
|
var ari = (0, _helpers.getObjectAri)(state.details);
|
|
71
|
+
var thirdPartyARI = (0, _helpers.getThirdPartyARI)(state.details);
|
|
71
72
|
var name = (0, _helpers.getObjectName)(state.details);
|
|
72
73
|
var definitionId = (0, _helpers.getDefinitionId)(state.details);
|
|
73
74
|
var extensionKey = (0, _helpers.getExtensionKey)(state.details);
|
|
@@ -91,7 +92,7 @@ function Component(_ref) {
|
|
|
91
92
|
isModifierKeyPressed: isModifierKeyPressed
|
|
92
93
|
});
|
|
93
94
|
if ((0, _platformFeatureFlags.fg)('platform_smartlink_3pclick_analytics')) {
|
|
94
|
-
if (
|
|
95
|
+
if (thirdPartyARI && thirdPartyARI.startsWith(thirdPartyARIPrefix)) {
|
|
95
96
|
var sourceURL = window.location.href;
|
|
96
97
|
var clickURL = (0, _helpers.getClickUrl)(url, state.details);
|
|
97
98
|
if (clickURL === url) {
|
|
@@ -107,7 +108,7 @@ function Component(_ref) {
|
|
|
107
108
|
},
|
|
108
109
|
nonPrivacySafeAttributes: {
|
|
109
110
|
sourceURL: sourceURL,
|
|
110
|
-
thirdPartyARI:
|
|
111
|
+
thirdPartyARI: thirdPartyARI
|
|
111
112
|
}
|
|
112
113
|
});
|
|
113
114
|
smartlinkClickAnalyticsEvent.fire('media');
|
|
@@ -153,7 +154,7 @@ function Component(_ref) {
|
|
|
153
154
|
}
|
|
154
155
|
(0, _click.fireLinkClickedEvent)(createAnalyticsEvent)(event);
|
|
155
156
|
}
|
|
156
|
-
}, [fireEvent, id, isFlexibleUi, appearance, definitionId, onClick, url, state.details, ari, name, isPreviewPanelAvailable, openPreviewPanel, createAnalyticsEvent]);
|
|
157
|
+
}, [fireEvent, id, isFlexibleUi, appearance, definitionId, onClick, url, state.details, ari, name, isPreviewPanelAvailable, openPreviewPanel, createAnalyticsEvent, thirdPartyARI]);
|
|
157
158
|
var handleAuthorize = (0, _react.useCallback)(function () {
|
|
158
159
|
return actions.authorize(appearance);
|
|
159
160
|
}, [actions, appearance]);
|
|
@@ -37,7 +37,7 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
37
37
|
"data-testid": testId
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
39
|
,
|
|
40
|
-
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "
|
|
40
|
+
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "_2rkosqtm _1h6d7a2i _1dqonqa1 _189eyh40" : "_2rko1lya _1h6d1j28 _1dqonqa1 _189eyh40", "_1reo15vq _18m915vq _1bah1yb4 _16qs1mq7", className]),
|
|
41
41
|
"data-trello-do-not-use-override": testId,
|
|
42
42
|
style: {
|
|
43
43
|
"--_1irqcwi": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20A, ")")),
|
|
@@ -63,7 +63,7 @@ var CompactFrame = exports.CompactFrame = function CompactFrame(_ref2) {
|
|
|
63
63
|
"data-testid": testId
|
|
64
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
65
65
|
,
|
|
66
|
-
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "
|
|
66
|
+
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "_2rkosqtm _1h6d7a2i _1dqonqa1 _189eyh40", !isSelected && "_2rko1lya", "_1bah1h6o _4cvr1h6o _bfhkkq2v", inheritDimensions ? "_4t3i1osq" : "_4t3i1ylp", "_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq", className]),
|
|
67
67
|
style: {
|
|
68
68
|
"--_6j4ewu": (0, _runtime.ix)("var(--ds-background-neutral-hovered, ".concat(_colors.N30A, ")")),
|
|
69
69
|
"--_d9gj9p": (0, _runtime.ix)("var(--ds-border-selected, ".concat(_colors.B200, ")")),
|
|
@@ -124,6 +124,6 @@ var Frame = exports.Frame = /*#__PURE__*/_react.default.forwardRef(function (_re
|
|
|
124
124
|
},
|
|
125
125
|
sandbox: (0, _utils.getIframeSandboxAttribute)(isTrusted),
|
|
126
126
|
title: title,
|
|
127
|
-
className: (0, _runtime.ax)(["_19itidpf _1reo15vq _18m915vq
|
|
127
|
+
className: (0, _runtime.ax)(["_19itidpf _1reo15vq _18m915vq _2rkosqtm _154iidpf _1ltvidpf _1bsb1osq _4t3i1osq _kqswh2mm"])
|
|
128
128
|
}));
|
|
129
129
|
});
|
|
@@ -10,6 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
13
14
|
var _constants = require("../../../../../constants");
|
|
14
15
|
var _messages = require("../../../../../messages");
|
|
15
16
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
@@ -59,11 +60,11 @@ var FollowAction = function FollowAction(props) {
|
|
|
59
60
|
data = (0, _objectWithoutProperties2.default)(actionData, _excluded);
|
|
60
61
|
var isStackItem = props.as === 'stack-item';
|
|
61
62
|
var message = value ? _messages.messages.follow : _messages.messages.unfollow;
|
|
62
|
-
var projectMessage = value ? _messages.messages.follow_project : _messages.messages.unfollow_project;
|
|
63
|
+
var projectMessage = value ? _featureGateJsClient.default.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? _messages.messages.follow_projectGalaxia : _messages.messages.follow_project : _featureGateJsClient.default.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? _messages.messages.unfollow_projectGalaxia : _messages.messages.unfollow_project;
|
|
63
64
|
var goalMessage = value ? _messages.messages.follow_goal : _messages.messages.unfollow_goal;
|
|
64
65
|
var stackMessage = isProject ? projectMessage : goalMessage;
|
|
65
66
|
var label = isStackItem ? stackMessage : message;
|
|
66
|
-
var projectTooltipMessage = value ? _messages.messages.follow_project_description : _messages.messages.unfollow_project_description;
|
|
67
|
+
var projectTooltipMessage = value ? _featureGateJsClient.default.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? _messages.messages.follow_project_descriptionGalaxia : _messages.messages.follow_project_description : _featureGateJsClient.default.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? _messages.messages.unfollow_project_descriptionGalaxia : _messages.messages.unfollow_project_description;
|
|
67
68
|
var goalTooltipMessage = value ? _messages.messages.follow_goal_description : _messages.messages.unfollow_goal_description;
|
|
68
69
|
var stackTooltipMessage = isProject ? projectTooltipMessage : goalTooltipMessage;
|
|
69
70
|
var tooltipMessage = isStackItem ? stackTooltipMessage : message;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.getFollowActionErrorMessage = void 0;
|
|
8
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
7
9
|
var _messages = require("../../../../../messages");
|
|
8
10
|
var getFollowActionErrorMessage = exports.getFollowActionErrorMessage = function getFollowActionErrorMessage() {
|
|
9
11
|
var isProject = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
10
12
|
var isFollow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11
13
|
if (isProject && isFollow) {
|
|
12
|
-
return _messages.messages.follow_project_error;
|
|
14
|
+
return _featureGateJsClient.default.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? _messages.messages.follow_project_errorGalaxia : _messages.messages.follow_project_error;
|
|
13
15
|
}
|
|
14
16
|
if (isProject && !isFollow) {
|
|
15
|
-
return _messages.messages.unfollow_project_error;
|
|
17
|
+
return _featureGateJsClient.default.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? _messages.messages.unfollow_project_errorGalaxia : _messages.messages.unfollow_project_error;
|
|
16
18
|
}
|
|
17
19
|
if (!isProject && isFollow) {
|
|
18
20
|
return _messages.messages.follow_goal_error;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}._16qs10kv{box-shadow:var(--_zsb6fb)}
|
|
3
3
|
._1e0c116y{display:inline-flex}
|
|
4
4
|
._1o511hrf{animation-fill-mode:both}
|
|
5
5
|
._1pgl1trn{animation-timing-function:cubic-bezier(.5,0,0,1)}
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -59,7 +59,7 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
59
59
|
if (!discovered) {
|
|
60
60
|
return /*#__PURE__*/React.createElement("span", {
|
|
61
61
|
"data-testid": "".concat(testId, "-discovery"),
|
|
62
|
-
className: (0, _runtime.ax)(["
|
|
62
|
+
className: (0, _runtime.ax)(["_2rkosqtm _1e0c116y _16qs10kv _j7hq8j16 _5sagymdr _1pgl1trn _ju251doz _1o511hrf _tip8cs5v"]),
|
|
63
63
|
style: {
|
|
64
64
|
"--_zsb6fb": (0, _runtime.ix)("0 0 0 0 ".concat("var(--ds-border-discovery, #8270DB)"))
|
|
65
65
|
}
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "40.8.
|
|
22
|
+
packageVersion: "40.8.2",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
package/dist/es2019/messages.js
CHANGED
|
@@ -778,5 +778,35 @@ export const messages = defineMessages({
|
|
|
778
778
|
id: 'fabric.linking.user_attributes',
|
|
779
779
|
defaultMessage: '{context}',
|
|
780
780
|
description: 'Displays user attributes like role, department, location, and pronouns'
|
|
781
|
+
},
|
|
782
|
+
follow_project_descriptionGalaxia: {
|
|
783
|
+
id: 'fabric.linking.follow_project_description-galaxia',
|
|
784
|
+
defaultMessage: 'Follow to get notifications on this space',
|
|
785
|
+
description: 'Description on what Follow does'
|
|
786
|
+
},
|
|
787
|
+
follow_projectGalaxia: {
|
|
788
|
+
id: 'fabric.linking.follow_project-galaxia',
|
|
789
|
+
defaultMessage: 'Follow space',
|
|
790
|
+
description: 'Click to follow a project.'
|
|
791
|
+
},
|
|
792
|
+
follow_project_errorGalaxia: {
|
|
793
|
+
id: 'fabric.linking.follow_project_error-galaxia',
|
|
794
|
+
defaultMessage: 'We encountered an error while trying to follow the space. Check your connection or refresh the page and try again.',
|
|
795
|
+
description: 'Shown when an unknown error occurs when following an Atlas project'
|
|
796
|
+
},
|
|
797
|
+
unfollow_project_descriptionGalaxia: {
|
|
798
|
+
id: 'fabric.linking.unfollow_project_description-galaxia',
|
|
799
|
+
defaultMessage: 'Unfollow to stop receiving space notifications',
|
|
800
|
+
description: 'Description on what Unfollow does'
|
|
801
|
+
},
|
|
802
|
+
unfollow_projectGalaxia: {
|
|
803
|
+
id: 'fabric.linking.unfollow_project-galaxia',
|
|
804
|
+
defaultMessage: 'Unfollow space',
|
|
805
|
+
description: 'Click to unfollow a project.'
|
|
806
|
+
},
|
|
807
|
+
unfollow_project_errorGalaxia: {
|
|
808
|
+
id: 'fabric.linking.unfollow_project_error-galaxia',
|
|
809
|
+
defaultMessage: 'We encountered an error while trying to unfollow the space. Check your connection or refresh the page and try again.',
|
|
810
|
+
description: 'Shown when an unknown error occurs when unfollowing an Atlas project'
|
|
781
811
|
}
|
|
782
812
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { extractVisitUrl } from '../extractors/common/primitives/extractVisitUrl';
|
|
2
3
|
export const getByDefinitionId = (definitionId, store) => {
|
|
3
4
|
const urls = Object.keys(store);
|
|
@@ -26,6 +27,14 @@ export const getExtensionKey = details => {
|
|
|
26
27
|
return details === null || details === void 0 ? void 0 : (_details$meta2 = details.meta) === null || _details$meta2 === void 0 ? void 0 : _details$meta2.key;
|
|
27
28
|
};
|
|
28
29
|
export const getObjectAri = details => (details === null || details === void 0 ? void 0 : details.data) && 'atlassian:ari' in details.data && details.data['atlassian:ari'] || undefined;
|
|
30
|
+
export const getThirdPartyARI = details => {
|
|
31
|
+
if (fg('platform_smartlink_3pclick_analytics')) {
|
|
32
|
+
if (details !== null && details !== void 0 && details.entityData && 'thirdPartyAri' in details.entityData && details.entityData.thirdPartyAri) {
|
|
33
|
+
return details.entityData.thirdPartyAri;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return undefined;
|
|
37
|
+
};
|
|
29
38
|
export const getObjectName = details => (details === null || details === void 0 ? void 0 : details.data) && 'name' in details.data && details.data.name || undefined;
|
|
30
39
|
export const getObjectIconUrl = details => {
|
|
31
40
|
if (details !== null && details !== void 0 && details.data && 'icon' in details.data && details.data.icon) {
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "40.8.
|
|
5
|
+
packageVersion: "40.8.2"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -5,7 +5,7 @@ import { useAnalyticsEvents } from '../../common/analytics/generated/use-analyti
|
|
|
5
5
|
import { CardDisplay } from '../../constants';
|
|
6
6
|
import { useSmartLink } from '../../state';
|
|
7
7
|
import { succeedUfoExperience } from '../../state/analytics';
|
|
8
|
-
import { getClickUrl, getDefinitionId, getExtensionKey, getObjectAri, getObjectIconUrl, getObjectName, getResourceType, getServices, isFinalState } from '../../state/helpers';
|
|
8
|
+
import { getClickUrl, getDefinitionId, getExtensionKey, getObjectAri, getObjectIconUrl, getObjectName, getResourceType, getServices, getThirdPartyARI, isFinalState } from '../../state/helpers';
|
|
9
9
|
import { SmartLinkModalProvider } from '../../state/modal';
|
|
10
10
|
import { isSpecialClick, isSpecialEvent, isSpecialKey } from '../../utils';
|
|
11
11
|
import { combineActionOptions } from '../../utils/actions/combine-action-options';
|
|
@@ -63,6 +63,7 @@ function Component({
|
|
|
63
63
|
openPreviewPanel
|
|
64
64
|
} = useSmartLink(id, url);
|
|
65
65
|
const ari = getObjectAri(state.details);
|
|
66
|
+
const thirdPartyARI = getThirdPartyARI(state.details);
|
|
66
67
|
const name = getObjectName(state.details);
|
|
67
68
|
const definitionId = getDefinitionId(state.details);
|
|
68
69
|
const extensionKey = getExtensionKey(state.details);
|
|
@@ -84,7 +85,7 @@ function Component({
|
|
|
84
85
|
isModifierKeyPressed
|
|
85
86
|
});
|
|
86
87
|
if (fg('platform_smartlink_3pclick_analytics')) {
|
|
87
|
-
if (
|
|
88
|
+
if (thirdPartyARI && thirdPartyARI.startsWith(thirdPartyARIPrefix)) {
|
|
88
89
|
const sourceURL = window.location.href;
|
|
89
90
|
const clickURL = getClickUrl(url, state.details);
|
|
90
91
|
if (clickURL === url) {
|
|
@@ -100,7 +101,7 @@ function Component({
|
|
|
100
101
|
},
|
|
101
102
|
nonPrivacySafeAttributes: {
|
|
102
103
|
sourceURL: sourceURL,
|
|
103
|
-
thirdPartyARI:
|
|
104
|
+
thirdPartyARI: thirdPartyARI
|
|
104
105
|
}
|
|
105
106
|
});
|
|
106
107
|
smartlinkClickAnalyticsEvent.fire('media');
|
|
@@ -146,7 +147,7 @@ function Component({
|
|
|
146
147
|
}
|
|
147
148
|
fireLinkClickedEvent(createAnalyticsEvent)(event);
|
|
148
149
|
}
|
|
149
|
-
}, [fireEvent, id, isFlexibleUi, appearance, definitionId, onClick, url, state.details, ari, name, isPreviewPanelAvailable, openPreviewPanel, createAnalyticsEvent]);
|
|
150
|
+
}, [fireEvent, id, isFlexibleUi, appearance, definitionId, onClick, url, state.details, ari, name, isPreviewPanelAvailable, openPreviewPanel, createAnalyticsEvent, thirdPartyARI]);
|
|
150
151
|
const handleAuthorize = useCallback(() => actions.authorize(appearance), [actions, appearance]);
|
|
151
152
|
const handleRetry = useCallback(() => {
|
|
152
153
|
actions.reload();
|
|
@@ -28,7 +28,7 @@ export const ExpandedFrame = ({
|
|
|
28
28
|
"data-testid": testId
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
30
|
,
|
|
31
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3h3i3 _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "
|
|
31
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3h3i3 _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "_2rkosqtm _1h6d1can _1dqonqa1 _189eyh40" : "_2rko1lya _1h6d1j28 _1dqonqa1 _189eyh40", "_1reo15vq _18m915vq _1bah1yb4 _16qsy59s", className]),
|
|
32
32
|
"data-trello-do-not-use-override": testId
|
|
33
33
|
}, children);
|
|
34
34
|
};
|
|
@@ -50,6 +50,6 @@ export const CompactFrame = ({
|
|
|
50
50
|
"data-testid": testId
|
|
51
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
52
52
|
,
|
|
53
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr317ks", isSelected && "
|
|
53
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr317ks", isSelected && "_2rkosqtm _1h6d1can _1dqonqa1 _189eyh40", !isSelected && "_2rko1lya", "_1bah1h6o _4cvr1h6o _bfhk1j54", inheritDimensions ? "_4t3i1osq" : "_4t3i1ylp", "_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq", className])
|
|
54
54
|
}, children);
|
|
55
55
|
};
|
|
@@ -96,6 +96,6 @@ export const Frame = /*#__PURE__*/React.forwardRef(({
|
|
|
96
96
|
},
|
|
97
97
|
sandbox: getIframeSandboxAttribute(isTrusted),
|
|
98
98
|
title: title,
|
|
99
|
-
className: ax(["_19itidpf _1reo15vq _18m915vq
|
|
99
|
+
className: ax(["_19itidpf _1reo15vq _18m915vq _2rkosqtm _154iidpf _1ltvidpf _1bsb1osq _4t3i1osq _kqswh2mm"])
|
|
100
100
|
}));
|
|
101
101
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
4
5
|
import { ActionName } from '../../../../../constants';
|
|
5
6
|
import { messages } from '../../../../../messages';
|
|
6
7
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -40,11 +41,11 @@ const FollowAction = props => {
|
|
|
40
41
|
} = actionData;
|
|
41
42
|
const isStackItem = props.as === 'stack-item';
|
|
42
43
|
const message = value ? messages.follow : messages.unfollow;
|
|
43
|
-
const projectMessage = value ? messages.follow_project : messages.unfollow_project;
|
|
44
|
+
const projectMessage = value ? FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.follow_projectGalaxia : messages.follow_project : FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.unfollow_projectGalaxia : messages.unfollow_project;
|
|
44
45
|
const goalMessage = value ? messages.follow_goal : messages.unfollow_goal;
|
|
45
46
|
const stackMessage = isProject ? projectMessage : goalMessage;
|
|
46
47
|
const label = isStackItem ? stackMessage : message;
|
|
47
|
-
const projectTooltipMessage = value ? messages.follow_project_description : messages.unfollow_project_description;
|
|
48
|
+
const projectTooltipMessage = value ? FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.follow_project_descriptionGalaxia : messages.follow_project_description : FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.unfollow_project_descriptionGalaxia : messages.unfollow_project_description;
|
|
48
49
|
const goalTooltipMessage = value ? messages.follow_goal_description : messages.unfollow_goal_description;
|
|
49
50
|
const stackTooltipMessage = isProject ? projectTooltipMessage : goalTooltipMessage;
|
|
50
51
|
const tooltipMessage = isStackItem ? stackTooltipMessage : message;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
1
2
|
import { messages } from '../../../../../messages';
|
|
2
3
|
export const getFollowActionErrorMessage = (isProject = false, isFollow = false) => {
|
|
3
4
|
if (isProject && isFollow) {
|
|
4
|
-
return messages.follow_project_error;
|
|
5
|
+
return FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.follow_project_errorGalaxia : messages.follow_project_error;
|
|
5
6
|
}
|
|
6
7
|
if (isProject && !isFollow) {
|
|
7
|
-
return messages.unfollow_project_error;
|
|
8
|
+
return FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.unfollow_project_errorGalaxia : messages.unfollow_project_error;
|
|
8
9
|
}
|
|
9
10
|
if (!isProject && isFollow) {
|
|
10
11
|
return messages.follow_goal_error;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}._16qslqk2{box-shadow:0 0 0 0 var(--ds-border-discovery,#8270db)}
|
|
3
3
|
._1e0c116y{display:inline-flex}
|
|
4
4
|
._1o511hrf{animation-fill-mode:both}
|
|
5
5
|
._1pgl1trn{animation-timing-function:cubic-bezier(.5,0,0,1)}
|
package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -50,7 +50,7 @@ const FeatureDiscovery = ({
|
|
|
50
50
|
if (!discovered) {
|
|
51
51
|
return /*#__PURE__*/React.createElement("span", {
|
|
52
52
|
"data-testid": `${testId}-discovery`,
|
|
53
|
-
className: ax(["
|
|
53
|
+
className: ax(["_2rkosqtm _1e0c116y _16qslqk2 _j7hq8j16 _5sagymdr _1pgl1trn _ju251doz _1o511hrf _tip8cs5v"])
|
|
54
54
|
}, children);
|
|
55
55
|
}
|
|
56
56
|
}, [children, discovered, testId]);
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "40.8.
|
|
12
|
+
packageVersion: "40.8.2",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const Anchor = withLinkClickedEvent('a');
|
package/dist/esm/messages.js
CHANGED
|
@@ -778,5 +778,35 @@ export var messages = defineMessages({
|
|
|
778
778
|
id: 'fabric.linking.user_attributes',
|
|
779
779
|
defaultMessage: '{context}',
|
|
780
780
|
description: 'Displays user attributes like role, department, location, and pronouns'
|
|
781
|
+
},
|
|
782
|
+
follow_project_descriptionGalaxia: {
|
|
783
|
+
id: 'fabric.linking.follow_project_description-galaxia',
|
|
784
|
+
defaultMessage: 'Follow to get notifications on this space',
|
|
785
|
+
description: 'Description on what Follow does'
|
|
786
|
+
},
|
|
787
|
+
follow_projectGalaxia: {
|
|
788
|
+
id: 'fabric.linking.follow_project-galaxia',
|
|
789
|
+
defaultMessage: 'Follow space',
|
|
790
|
+
description: 'Click to follow a project.'
|
|
791
|
+
},
|
|
792
|
+
follow_project_errorGalaxia: {
|
|
793
|
+
id: 'fabric.linking.follow_project_error-galaxia',
|
|
794
|
+
defaultMessage: 'We encountered an error while trying to follow the space. Check your connection or refresh the page and try again.',
|
|
795
|
+
description: 'Shown when an unknown error occurs when following an Atlas project'
|
|
796
|
+
},
|
|
797
|
+
unfollow_project_descriptionGalaxia: {
|
|
798
|
+
id: 'fabric.linking.unfollow_project_description-galaxia',
|
|
799
|
+
defaultMessage: 'Unfollow to stop receiving space notifications',
|
|
800
|
+
description: 'Description on what Unfollow does'
|
|
801
|
+
},
|
|
802
|
+
unfollow_projectGalaxia: {
|
|
803
|
+
id: 'fabric.linking.unfollow_project-galaxia',
|
|
804
|
+
defaultMessage: 'Unfollow space',
|
|
805
|
+
description: 'Click to unfollow a project.'
|
|
806
|
+
},
|
|
807
|
+
unfollow_project_errorGalaxia: {
|
|
808
|
+
id: 'fabric.linking.unfollow_project_error-galaxia',
|
|
809
|
+
defaultMessage: 'We encountered an error while trying to unfollow the space. Check your connection or refresh the page and try again.',
|
|
810
|
+
description: 'Shown when an unknown error occurs when unfollowing an Atlas project'
|
|
781
811
|
}
|
|
782
812
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { extractVisitUrl } from '../extractors/common/primitives/extractVisitUrl';
|
|
3
4
|
export var getByDefinitionId = function getByDefinitionId(definitionId, store) {
|
|
4
5
|
var urls = Object.keys(store);
|
|
@@ -27,6 +28,14 @@ export var getExtensionKey = function getExtensionKey(details) {
|
|
|
27
28
|
export var getObjectAri = function getObjectAri(details) {
|
|
28
29
|
return (details === null || details === void 0 ? void 0 : details.data) && 'atlassian:ari' in details.data && details.data['atlassian:ari'] || undefined;
|
|
29
30
|
};
|
|
31
|
+
export var getThirdPartyARI = function getThirdPartyARI(details) {
|
|
32
|
+
if (fg('platform_smartlink_3pclick_analytics')) {
|
|
33
|
+
if (details !== null && details !== void 0 && details.entityData && 'thirdPartyAri' in details.entityData && details.entityData.thirdPartyAri) {
|
|
34
|
+
return details.entityData.thirdPartyAri;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
};
|
|
30
39
|
export var getObjectName = function getObjectName(details) {
|
|
31
40
|
return (details === null || details === void 0 ? void 0 : details.data) && 'name' in details.data && details.data.name || undefined;
|
|
32
41
|
};
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "40.8.
|
|
7
|
+
packageVersion: "40.8.2"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -5,7 +5,7 @@ import { useAnalyticsEvents } from '../../common/analytics/generated/use-analyti
|
|
|
5
5
|
import { CardDisplay } from '../../constants';
|
|
6
6
|
import { useSmartLink } from '../../state';
|
|
7
7
|
import { succeedUfoExperience } from '../../state/analytics';
|
|
8
|
-
import { getClickUrl, getDefinitionId, getExtensionKey, getObjectAri, getObjectIconUrl, getObjectName, getResourceType, getServices, isFinalState } from '../../state/helpers';
|
|
8
|
+
import { getClickUrl, getDefinitionId, getExtensionKey, getObjectAri, getObjectIconUrl, getObjectName, getResourceType, getServices, getThirdPartyARI, isFinalState } from '../../state/helpers';
|
|
9
9
|
import { SmartLinkModalProvider } from '../../state/modal';
|
|
10
10
|
import { isSpecialClick, isSpecialEvent, isSpecialKey } from '../../utils';
|
|
11
11
|
import { combineActionOptions } from '../../utils/actions/combine-action-options';
|
|
@@ -59,6 +59,7 @@ function Component(_ref) {
|
|
|
59
59
|
isPreviewPanelAvailable = _useSmartLink.isPreviewPanelAvailable,
|
|
60
60
|
openPreviewPanel = _useSmartLink.openPreviewPanel;
|
|
61
61
|
var ari = getObjectAri(state.details);
|
|
62
|
+
var thirdPartyARI = getThirdPartyARI(state.details);
|
|
62
63
|
var name = getObjectName(state.details);
|
|
63
64
|
var definitionId = getDefinitionId(state.details);
|
|
64
65
|
var extensionKey = getExtensionKey(state.details);
|
|
@@ -82,7 +83,7 @@ function Component(_ref) {
|
|
|
82
83
|
isModifierKeyPressed: isModifierKeyPressed
|
|
83
84
|
});
|
|
84
85
|
if (fg('platform_smartlink_3pclick_analytics')) {
|
|
85
|
-
if (
|
|
86
|
+
if (thirdPartyARI && thirdPartyARI.startsWith(thirdPartyARIPrefix)) {
|
|
86
87
|
var sourceURL = window.location.href;
|
|
87
88
|
var clickURL = getClickUrl(url, state.details);
|
|
88
89
|
if (clickURL === url) {
|
|
@@ -98,7 +99,7 @@ function Component(_ref) {
|
|
|
98
99
|
},
|
|
99
100
|
nonPrivacySafeAttributes: {
|
|
100
101
|
sourceURL: sourceURL,
|
|
101
|
-
thirdPartyARI:
|
|
102
|
+
thirdPartyARI: thirdPartyARI
|
|
102
103
|
}
|
|
103
104
|
});
|
|
104
105
|
smartlinkClickAnalyticsEvent.fire('media');
|
|
@@ -144,7 +145,7 @@ function Component(_ref) {
|
|
|
144
145
|
}
|
|
145
146
|
fireLinkClickedEvent(createAnalyticsEvent)(event);
|
|
146
147
|
}
|
|
147
|
-
}, [fireEvent, id, isFlexibleUi, appearance, definitionId, onClick, url, state.details, ari, name, isPreviewPanelAvailable, openPreviewPanel, createAnalyticsEvent]);
|
|
148
|
+
}, [fireEvent, id, isFlexibleUi, appearance, definitionId, onClick, url, state.details, ari, name, isPreviewPanelAvailable, openPreviewPanel, createAnalyticsEvent, thirdPartyARI]);
|
|
148
149
|
var handleAuthorize = useCallback(function () {
|
|
149
150
|
return actions.authorize(appearance);
|
|
150
151
|
}, [actions, appearance]);
|
|
@@ -30,7 +30,7 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
30
30
|
"data-testid": testId
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
32
32
|
,
|
|
33
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "
|
|
33
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "_2rkosqtm _1h6d7a2i _1dqonqa1 _189eyh40" : "_2rko1lya _1h6d1j28 _1dqonqa1 _189eyh40", "_1reo15vq _18m915vq _1bah1yb4 _16qs1mq7", className]),
|
|
34
34
|
"data-trello-do-not-use-override": testId,
|
|
35
35
|
style: {
|
|
36
36
|
"--_1irqcwi": ix("var(--ds-background-neutral-subtle-hovered, ".concat(N20A, ")")),
|
|
@@ -56,7 +56,7 @@ export var CompactFrame = function CompactFrame(_ref2) {
|
|
|
56
56
|
"data-testid": testId
|
|
57
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
58
|
,
|
|
59
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "
|
|
59
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "_2rkosqtm _1h6d7a2i _1dqonqa1 _189eyh40", !isSelected && "_2rko1lya", "_1bah1h6o _4cvr1h6o _bfhkkq2v", inheritDimensions ? "_4t3i1osq" : "_4t3i1ylp", "_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq", className]),
|
|
60
60
|
style: {
|
|
61
61
|
"--_6j4ewu": ix("var(--ds-background-neutral-hovered, ".concat(N30A, ")")),
|
|
62
62
|
"--_d9gj9p": ix("var(--ds-border-selected, ".concat(B200, ")")),
|