@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
|
@@ -115,6 +115,6 @@ export var Frame = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef) {
|
|
|
115
115
|
},
|
|
116
116
|
sandbox: getIframeSandboxAttribute(isTrusted),
|
|
117
117
|
title: title,
|
|
118
|
-
className: ax(["_19itidpf _1reo15vq _18m915vq
|
|
118
|
+
className: ax(["_19itidpf _1reo15vq _18m915vq _2rkosqtm _154iidpf _1ltvidpf _1bsb1osq _4t3i1osq _kqswh2mm"])
|
|
119
119
|
}));
|
|
120
120
|
});
|
|
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["value", "isProject"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
6
7
|
import { ActionName } from '../../../../../constants';
|
|
7
8
|
import { messages } from '../../../../../messages';
|
|
8
9
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -46,11 +47,11 @@ var FollowAction = function FollowAction(props) {
|
|
|
46
47
|
data = _objectWithoutProperties(actionData, _excluded);
|
|
47
48
|
var isStackItem = props.as === 'stack-item';
|
|
48
49
|
var message = value ? messages.follow : messages.unfollow;
|
|
49
|
-
var projectMessage = value ? messages.follow_project : messages.unfollow_project;
|
|
50
|
+
var 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;
|
|
50
51
|
var goalMessage = value ? messages.follow_goal : messages.unfollow_goal;
|
|
51
52
|
var stackMessage = isProject ? projectMessage : goalMessage;
|
|
52
53
|
var label = isStackItem ? stackMessage : message;
|
|
53
|
-
var projectTooltipMessage = value ? messages.follow_project_description : messages.unfollow_project_description;
|
|
54
|
+
var 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;
|
|
54
55
|
var goalTooltipMessage = value ? messages.follow_goal_description : messages.unfollow_goal_description;
|
|
55
56
|
var stackTooltipMessage = isProject ? projectTooltipMessage : goalTooltipMessage;
|
|
56
57
|
var tooltipMessage = isStackItem ? stackTooltipMessage : message;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
1
2
|
import { messages } from '../../../../../messages';
|
|
2
3
|
export var getFollowActionErrorMessage = function getFollowActionErrorMessage() {
|
|
3
4
|
var isProject = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
4
5
|
var isFollow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
5
6
|
if (isProject && isFollow) {
|
|
6
|
-
return messages.follow_project_error;
|
|
7
|
+
return FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.follow_project_errorGalaxia : messages.follow_project_error;
|
|
7
8
|
}
|
|
8
9
|
if (isProject && !isFollow) {
|
|
9
|
-
return messages.unfollow_project_error;
|
|
10
|
+
return FeatureGates.getExperimentValue('project-terminology-refresh', 'isEnabled', false) ? messages.unfollow_project_errorGalaxia : messages.unfollow_project_error;
|
|
10
11
|
}
|
|
11
12
|
if (!isProject && isFollow) {
|
|
12
13
|
return 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/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -51,7 +51,7 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
51
51
|
if (!discovered) {
|
|
52
52
|
return /*#__PURE__*/React.createElement("span", {
|
|
53
53
|
"data-testid": "".concat(testId, "-discovery"),
|
|
54
|
-
className: ax(["
|
|
54
|
+
className: ax(["_2rkosqtm _1e0c116y _16qs10kv _j7hq8j16 _5sagymdr _1pgl1trn _ju251doz _1o511hrf _tip8cs5v"]),
|
|
55
55
|
style: {
|
|
56
56
|
"--_zsb6fb": ix("0 0 0 0 ".concat("var(--ds-border-discovery, #8270DB)"))
|
|
57
57
|
}
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "40.8.
|
|
15
|
+
packageVersion: "40.8.2",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -23,5 +23,5 @@ type EventPayload<K extends EventKey> = {
|
|
|
23
23
|
actionSubjectId?: string;
|
|
24
24
|
attributes?: AnalyticsEventAttributes[K];
|
|
25
25
|
};
|
|
26
|
-
declare const createEventPayload: <K extends
|
|
26
|
+
declare const createEventPayload: <K extends EventKey>(eventKey: K, ...[attributes]: EventPayloadAttributes<K>) => ScreenEventPayload<K> | EventPayload<K>;
|
|
27
27
|
export default createEventPayload;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EventKey } from './analytics.types';
|
|
1
2
|
export declare const useAnalyticsEvents: () => {
|
|
2
|
-
fireEvent: <K extends
|
|
3
|
+
fireEvent: <K extends EventKey>(eventKey: K, ...params: undefined extends import("./analytics.types").AnalyticsEventAttributes[K] ? [param?: import("./analytics.types").AnalyticsEventAttributes[K] | undefined] : [param: import("./analytics.types").AnalyticsEventAttributes[K]]) => void;
|
|
3
4
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const BlogIconWithColor: import("react").FC<{
|
|
3
2
|
label: string;
|
|
4
|
-
testId?: string
|
|
3
|
+
testId?: string;
|
|
5
4
|
} & {
|
|
6
|
-
size?: import("../../..").SmartLinkSize
|
|
5
|
+
size?: import("../../..").SmartLinkSize;
|
|
7
6
|
}>;
|
|
8
7
|
export default BlogIconWithColor;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const LiveDocumentIconWithColor: import("react").FC<{
|
|
3
2
|
label: string;
|
|
4
|
-
testId?: string
|
|
3
|
+
testId?: string;
|
|
5
4
|
} & {
|
|
6
|
-
size?: import("../../..").SmartLinkSize
|
|
5
|
+
size?: import("../../..").SmartLinkSize;
|
|
7
6
|
}>;
|
|
8
7
|
export default LiveDocumentIconWithColor;
|
|
@@ -2,7 +2,7 @@ import React, { type ComponentPropsWithoutRef, type ComponentType } from 'react'
|
|
|
2
2
|
import { IconTile } from '@atlaskit/icon';
|
|
3
3
|
import { SmartLinkSize } from '../../../constants';
|
|
4
4
|
import type { AtlaskitIconTileProps } from './types';
|
|
5
|
-
export declare const transformSmartLinkSizeToIconTileSize: (size?: SmartLinkSize) => "
|
|
5
|
+
export declare const transformSmartLinkSizeToIconTileSize: (size?: SmartLinkSize) => "24" | "16";
|
|
6
6
|
type IconProps = {
|
|
7
7
|
label: string;
|
|
8
8
|
testId?: string;
|
|
@@ -11,5 +11,5 @@ export declare const renderIconPerSize: (IconSmall: ComponentType<IconProps>, Ic
|
|
|
11
11
|
size?: SmartLinkSize;
|
|
12
12
|
}>;
|
|
13
13
|
type IconTileProps = ComponentPropsWithoutRef<typeof IconTile>;
|
|
14
|
-
export declare const renderIconTile: (Icon: IconTileProps[
|
|
14
|
+
export declare const renderIconTile: (Icon: IconTileProps["icon"], appearance: IconTileProps["appearance"], LegacyIcon?: ComponentType<AtlaskitIconTileProps>) => React.FC<AtlaskitIconTileProps>;
|
|
15
15
|
export {};
|
|
@@ -5,5 +5,5 @@ export declare const extractRequestAccessContextImproved: ({ jsonLd, url, produc
|
|
|
5
5
|
jsonLd: JsonLd.Meta.BaseMeta;
|
|
6
6
|
url: string;
|
|
7
7
|
product: string;
|
|
8
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent
|
|
8
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
9
9
|
}) => RequestAccessContextProps;
|
|
@@ -2,4 +2,4 @@ import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
|
2
2
|
import { type AISummaryActionData } from '../../../state/flexible-ui-context/types';
|
|
3
3
|
import { type AISummaryConfig } from '../../../state/hooks/use-ai-summary-config/types';
|
|
4
4
|
import { type CardActionOptions } from '../../../view/Card/types';
|
|
5
|
-
export declare const extractAISummaryAction: (response: JsonLd.Response, url?: string, actionOptions?: CardActionOptions, aiSummaryConfig?: Pick<AISummaryConfig,
|
|
5
|
+
export declare const extractAISummaryAction: (response: JsonLd.Response, url?: string, actionOptions?: CardActionOptions, aiSummaryConfig?: Pick<AISummaryConfig, "isAdminHubAIEnabled">) => AISummaryActionData | undefined;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
2
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
3
|
import type { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
5
4
|
import { IconType, SmartLinkStatus } from '../../../constants';
|
|
6
5
|
export declare const extractLinkIcon: (response: JsonLd.Response, renderers?: CardProviderRenderers) => {
|
|
7
|
-
render: (() =>
|
|
8
|
-
icon?: IconType
|
|
9
|
-
label?: string
|
|
10
|
-
url?: string
|
|
6
|
+
render: (() => React.ReactNode) | undefined;
|
|
7
|
+
icon?: IconType;
|
|
8
|
+
label?: string;
|
|
9
|
+
url?: string;
|
|
11
10
|
};
|
|
12
11
|
export declare const extractErrorIcon: (response?: JsonLd.Response, status?: SmartLinkStatus) => {
|
|
13
12
|
icon: IconType | undefined;
|
|
@@ -20,10 +19,10 @@ export declare const extractErrorIcon: (response?: JsonLd.Response, status?: Sma
|
|
|
20
19
|
* Should be moved to link-extractors when jsonLd is deprecated
|
|
21
20
|
*/
|
|
22
21
|
export declare const extractSmartLinkIcon: (response?: SmartLinkResponse, renderers?: CardProviderRenderers) => {
|
|
23
|
-
render: (() =>
|
|
24
|
-
icon?: IconType
|
|
25
|
-
label?: string
|
|
26
|
-
url?: string
|
|
22
|
+
render: (() => React.ReactNode) | undefined;
|
|
23
|
+
icon?: IconType;
|
|
24
|
+
label?: string;
|
|
25
|
+
url?: string;
|
|
27
26
|
} | {
|
|
28
27
|
url: string | undefined;
|
|
29
28
|
label: string | undefined;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project_descriptionGalaxia' | 'follow_project' | 'follow_projectGalaxia' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_projectGalaxia' | 'unfollow_project' | 'unfollow_projectGalaxia' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LinkProps } from '@atlaskit/link';
|
|
2
2
|
export declare enum ClickButton {
|
|
3
3
|
Left = 0,
|
|
4
4
|
Middle = 1,
|
|
5
5
|
Right = 2
|
|
6
6
|
}
|
|
7
|
-
export declare const useLinkClicked: <T extends
|
|
8
|
-
|
|
7
|
+
export declare const useLinkClicked: <T extends Exclude<LinkProps["onClick"], undefined>>(
|
|
8
|
+
/**
|
|
9
|
+
* Handler to
|
|
10
|
+
*/
|
|
11
|
+
handler?: T,
|
|
12
|
+
/**
|
|
13
|
+
* Filter which mouse events should trigger the link clicked event
|
|
14
|
+
*/
|
|
15
|
+
predicate?: (event: React.MouseEvent) => boolean) => (...args: Parameters<T>) => void;
|
|
16
|
+
export declare const useMouseDownEvent: <T extends React.MouseEventHandler>(onMouseDown?: T) => (...args: Parameters<T>) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type CardContext } from '@atlaskit/link-provider';
|
|
2
|
-
export declare const useSmartLinkConfig: () => CardContext[
|
|
2
|
+
export declare const useSmartLinkConfig: () => CardContext["config"] | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type LinkPerson } from '@atlaskit/link-extractors';
|
|
3
2
|
import { type ActionName, type IconType, type InternalActionName, type MediaType } from '../../constants';
|
|
4
3
|
import { type LinkLozenge } from '../../extractors/common/lozenge/types';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type DatasourceResolveResponse, type JsonLdDatasourceResponse } from '@atlaskit/link-client-extension';
|
|
3
3
|
import { type CardStore, type CardType } from '@atlaskit/linking-common';
|
|
4
|
+
import { type SmartLinkResponse } from '@atlaskit/linking-types';
|
|
4
5
|
import { type DestinationProduct, type DestinationSubproduct } from '../utils/analytics/types';
|
|
5
6
|
export declare const getByDefinitionId: (definitionId: string | undefined, store: CardStore) => string[];
|
|
6
7
|
export declare const getClickUrl: (url: string, jsonLd?: JsonLd.Response) => string;
|
|
7
8
|
export declare const getDefinitionId: (details?: JsonLd.Response) => string | undefined;
|
|
8
9
|
export declare const getExtensionKey: (details?: JsonLd.Response) => string | undefined;
|
|
9
10
|
export declare const getObjectAri: (details?: JsonLd.Response) => string | undefined;
|
|
11
|
+
export declare const getThirdPartyARI: (details?: SmartLinkResponse) => string | undefined;
|
|
10
12
|
export declare const getObjectName: (details?: JsonLd.Response) => string | undefined;
|
|
11
13
|
export declare const getObjectIconUrl: (details?: JsonLd.Response) => string | undefined;
|
|
12
14
|
export declare const getResourceType: (details?: JsonLd.Response) => string | undefined;
|
|
@@ -4,7 +4,7 @@ export declare function useSmartLink(id: string, url: string): {
|
|
|
4
4
|
register: () => Promise<void>;
|
|
5
5
|
reload: () => void;
|
|
6
6
|
authorize: (appearance: import("../../view/Card/types").CardInnerAppearance) => void;
|
|
7
|
-
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<
|
|
7
|
+
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<import("@atlaskit/json-ld-types").JsonLd.Response | void>;
|
|
8
8
|
loadMetadata: () => Promise<void> | undefined;
|
|
9
9
|
};
|
|
10
10
|
config: import("@atlaskit/link-provider").CardAuthFlowOpts | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type CardContext } from '@atlaskit/link-provider';
|
|
2
|
-
export declare const useSmartLinkRenderers: () => CardContext[
|
|
2
|
+
export declare const useSmartLinkRenderers: () => CardContext["renderers"] | undefined;
|
|
@@ -19,7 +19,7 @@ type SmartLinkAnalyticsContextType = {
|
|
|
19
19
|
* Provides an analytics context data to supply attributes to events based on a URL
|
|
20
20
|
* and the link state in the store
|
|
21
21
|
*/
|
|
22
|
-
export declare const useSmartLinkAnalyticsContext: ({ display, id, source, url, }: Exclude<SmartLinkAnalyticsContextProps,
|
|
22
|
+
export declare const useSmartLinkAnalyticsContext: ({ display, id, source, url, }: Exclude<SmartLinkAnalyticsContextProps, "children">) => SmartLinkAnalyticsContextType | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Provides an analytics context to supply attributes to events based on a URL
|
|
25
25
|
* and the link state in the store
|
|
@@ -11,9 +11,9 @@ export declare const createLinkClickedPayload: (event: React.MouseEvent) => Anal
|
|
|
11
11
|
type DeepPartial<T> = T extends object ? {
|
|
12
12
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
13
13
|
} : T;
|
|
14
|
-
export declare const fireLinkClickedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => (event: React.MouseEvent, overrides?: DeepPartial<Omit<GasPayload,
|
|
14
|
+
export declare const fireLinkClickedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => ((event: React.MouseEvent, overrides?: DeepPartial<Omit<GasPayload, "attributes"> & {
|
|
15
15
|
attributes: UiLinkClickedEventProps;
|
|
16
|
-
}>) => void;
|
|
16
|
+
}>) => void);
|
|
17
17
|
export declare function withLinkClickedEvent<Component extends Extract<React.ElementType, 'a'> | React.ComponentType<LinkProps>>(WrappedComponent: Component): {
|
|
18
18
|
(props: LinkProps): React.ReactElement<LinkProps, string | React.JSXElementConstructor<any>>;
|
|
19
19
|
displayName: string;
|
|
@@ -10,15 +10,15 @@ export declare const mockGenerator: {
|
|
|
10
10
|
'@id': string;
|
|
11
11
|
name: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const mockByUrl: (url: string) => JsonLd.Response
|
|
13
|
+
export declare const mockByUrl: (url: string) => JsonLd.Response;
|
|
14
14
|
export declare const mocks: {
|
|
15
|
-
success: JsonLd.Response
|
|
15
|
+
success: JsonLd.Response;
|
|
16
16
|
entityDataSuccess: SmartLinkResponse;
|
|
17
|
-
notFound: JsonLd.Response
|
|
18
|
-
forbidden: JsonLd.Response
|
|
19
|
-
forbiddenWithNoAuth: JsonLd.Response
|
|
20
|
-
unauthorized: JsonLd.Response
|
|
21
|
-
unauthorizedWithNoAuth: JsonLd.Response
|
|
17
|
+
notFound: JsonLd.Response;
|
|
18
|
+
forbidden: JsonLd.Response;
|
|
19
|
+
forbiddenWithNoAuth: JsonLd.Response;
|
|
20
|
+
unauthorized: JsonLd.Response;
|
|
21
|
+
unauthorizedWithNoAuth: JsonLd.Response;
|
|
22
22
|
actionSuccess: {
|
|
23
23
|
meta: {
|
|
24
24
|
visibility: string;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
/// <reference types="react" />
|
|
6
5
|
import { type UnresolvedViewProps } from './types';
|
|
7
6
|
declare const UnresolvedView: ({ actions, cardState, children, onAuthorize, onClick, onError, showPreview, testId, title, url, }: UnresolvedViewProps) => JSX.Element;
|
|
8
7
|
export default UnresolvedView;
|
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { type CardAppearance, type CardPlatform, type CardProps } from './types';
|
|
4
4
|
export declare const Card: React.ForwardRefExoticComponent<Omit<Omit<Omit<CardProps & WrappedComponentProps, "intl"> & {
|
|
5
|
-
forwardedRef?: React.Ref<any
|
|
5
|
+
forwardedRef?: React.Ref<any>;
|
|
6
6
|
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
7
7
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -6,5 +6,5 @@ interface IFrameProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* Iframe element isolated for DI purposes
|
|
8
8
|
*/
|
|
9
|
-
export declare const IFrame: ({ childRef, className, ...props }: React.ComponentProps<
|
|
9
|
+
export declare const IFrame: ({ childRef, className, ...props }: React.ComponentProps<"iframe"> & IFrameProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { UnresolvedViewProps } from './types';
|
|
3
2
|
declare const UnresolvedView: ({ button, description, frameStyle, icon: iconUrlOrElement, image: imageUrlOrElement, inheritDimensions, isSelected, onClick, testId, text, title, url, }: UnresolvedViewProps) => JSX.Element;
|
|
4
3
|
export default UnresolvedView;
|
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const _default: (props:
|
|
4
|
-
fireEvent?: (<K extends keyof import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes>(eventKey: K, ...params_1: undefined extends import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes[K] ? [param?: import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes[K] | undefined] : [param: import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes[K]]) => void) | undefined;
|
|
5
|
-
invokeDownloadAction?: import("../../state/hooks/use-invoke-client-action/types").InvokeClientActionProps | undefined;
|
|
6
|
-
invokeViewAction?: import("../../state/hooks/use-invoke-client-action/types").InvokeClientActionProps | undefined;
|
|
7
|
-
iframeName: string;
|
|
8
|
-
isTrusted?: boolean | undefined;
|
|
9
|
-
isSupportTheming?: boolean | undefined;
|
|
10
|
-
linkIcon?: import("../../state/flexible-ui-context/types").Icon | undefined;
|
|
11
|
-
onClose: (context: import("./types").EmbedModalContext) => void;
|
|
12
|
-
onOpen?: ((context: import("./types").EmbedModalContext) => void) | undefined;
|
|
13
|
-
onOpenFailed?: ((error: Error, errorInfo: React.ErrorInfo) => void) | undefined;
|
|
14
|
-
onResize?: ((context: import("./types").EmbedModalContext) => void) | undefined;
|
|
15
|
-
providerName?: string | undefined;
|
|
16
|
-
showModal?: boolean | undefined;
|
|
17
|
-
size?: EmbedModalSize | undefined;
|
|
18
|
-
src?: string | undefined;
|
|
19
|
-
testId?: string | undefined;
|
|
20
|
-
title?: string | undefined;
|
|
21
|
-
url?: string | undefined;
|
|
22
|
-
} & import("./components/analytics/types").WithAnalytics) => React.JSX.Element;
|
|
2
|
+
import { type EmbedModalProps } from './types';
|
|
3
|
+
declare const _default: (props: EmbedModalProps & import("./components/analytics/types").WithAnalytics) => React.JSX.Element;
|
|
23
4
|
export default _default;
|