@atlaskit/smart-card 27.5.4 → 27.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/compass.yml +0 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/Action.js +5 -3
- package/dist/cjs/view/BlockCard/components/ActionList.js +7 -5
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/cjs/view/BlockCard/components/Content.js +2 -1
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +8 -7
- package/dist/cjs/view/BlockCard/components/Emoji.js +11 -8
- package/dist/cjs/view/BlockCard/components/Frame.js +7 -1
- package/dist/cjs/view/BlockCard/components/Link.js +5 -4
- package/dist/cjs/view/BlockCard/components/Name.js +22 -16
- package/dist/cjs/view/BlockCard/components/Provider.js +25 -19
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +7 -4
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +5 -4
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +7 -6
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/cjs/view/BlockCard/views/styled.js +2 -1
- package/dist/cjs/view/EmbedCard/components/Frame.js +11 -10
- package/dist/cjs/view/EmbedCard/components/styled.js +47 -24
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +16 -14
- package/dist/cjs/view/EmbedCard/views/unresolved-view/styled.js +10 -0
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +30 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +22 -13
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +10 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +12 -0
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +31 -28
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +7 -0
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/cjs/view/HoverCard/styled.js +16 -7
- package/dist/cjs/view/InlineCard/Frame/styled.js +2 -2
- package/dist/cjs/view/InlineCard/Icon.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/cjs/view/InlineCard/styled.js +7 -4
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/index.js +20 -0
- package/dist/cjs/view/RelatedLinksModal/types.js +1 -0
- package/dist/cjs/view/common/Byline.js +5 -1
- package/dist/cjs/view/common/Icon.js +8 -1
- package/dist/cjs/view/common/Metadata.js +18 -15
- package/dist/cjs/view/common/MetadataList.js +11 -9
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/cjs/view/common/ai-prism/index.js +4 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +6 -4
- package/dist/es2019/view/BlockCard/components/ActionList.js +8 -6
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/es2019/view/BlockCard/components/Content.js +2 -1
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +9 -8
- package/dist/es2019/view/BlockCard/components/Emoji.js +12 -9
- package/dist/es2019/view/BlockCard/components/Frame.js +7 -1
- package/dist/es2019/view/BlockCard/components/Link.js +6 -5
- package/dist/es2019/view/BlockCard/components/Name.js +33 -25
- package/dist/es2019/view/BlockCard/components/Provider.js +26 -20
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +8 -5
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +6 -5
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +8 -7
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/es2019/view/BlockCard/views/styled.js +2 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +12 -11
- package/dist/es2019/view/EmbedCard/components/styled.js +47 -22
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +17 -15
- package/dist/es2019/view/EmbedCard/views/unresolved-view/styled.js +11 -0
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +20 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +11 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +12 -0
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +29 -26
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +8 -0
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/es2019/view/HoverCard/styled.js +11 -3
- package/dist/es2019/view/InlineCard/Frame/styled.js +5 -2
- package/dist/es2019/view/InlineCard/Icon.js +2 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/es2019/view/InlineCard/styled.js +7 -4
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +2 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/index.js +14 -0
- package/dist/es2019/view/RelatedLinksModal/types.js +0 -0
- package/dist/es2019/view/common/Byline.js +5 -1
- package/dist/es2019/view/common/Icon.js +8 -1
- package/dist/es2019/view/common/Metadata.js +19 -16
- package/dist/es2019/view/common/MetadataList.js +12 -10
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/es2019/view/common/ai-prism/index.js +4 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +6 -4
- package/dist/esm/view/BlockCard/components/ActionList.js +8 -6
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/esm/view/BlockCard/components/Content.js +2 -1
- package/dist/esm/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/esm/view/BlockCard/components/ContentHeader.js +9 -8
- package/dist/esm/view/BlockCard/components/Emoji.js +12 -9
- package/dist/esm/view/BlockCard/components/Frame.js +7 -1
- package/dist/esm/view/BlockCard/components/Link.js +6 -5
- package/dist/esm/view/BlockCard/components/Name.js +23 -17
- package/dist/esm/view/BlockCard/components/Provider.js +26 -20
- package/dist/esm/view/BlockCard/components/Thumbnail.js +8 -5
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +6 -5
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/esm/view/BlockCard/views/ResolvingView.js +8 -7
- package/dist/esm/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/esm/view/BlockCard/views/styled.js +2 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +12 -11
- package/dist/esm/view/EmbedCard/components/styled.js +47 -24
- package/dist/esm/view/EmbedCard/views/ErroredView.js +17 -15
- package/dist/esm/view/EmbedCard/views/unresolved-view/styled.js +11 -0
- package/dist/esm/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +25 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +22 -13
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +11 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +12 -0
- package/dist/esm/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +31 -28
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +8 -0
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/esm/view/HoverCard/styled.js +16 -7
- package/dist/esm/view/InlineCard/Frame/styled.js +2 -2
- package/dist/esm/view/InlineCard/Icon.js +2 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/esm/view/InlineCard/styled.js +7 -4
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +2 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/index.js +13 -0
- package/dist/esm/view/RelatedLinksModal/types.js +0 -0
- package/dist/esm/view/common/Byline.js +5 -1
- package/dist/esm/view/common/Icon.js +8 -1
- package/dist/esm/view/common/Metadata.js +19 -16
- package/dist/esm/view/common/MetadataList.js +12 -10
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/esm/view/common/ai-prism/index.js +4 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types/view/RelatedLinksModal/types.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +5 -0
- package/package.json +183 -191
|
@@ -6,13 +6,32 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
6
6
|
import { messages } from '../../../../../messages';
|
|
7
7
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
8
8
|
import RelatedLinksActionIcon from './related-links-action-icon';
|
|
9
|
-
|
|
9
|
+
import { lazy, useCallback } from 'react';
|
|
10
|
+
import { useSmartLinkModal } from '../../../../../state/modal';
|
|
11
|
+
const RelatedLinksModal = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-internal_smartcard-RelatedLinksModal" */'../../../../RelatedLinksModal'));
|
|
12
|
+
const ViewRelatedLinksAction = ({
|
|
13
|
+
onClick: onClickCallback,
|
|
14
|
+
...props
|
|
15
|
+
}) => {
|
|
10
16
|
var _context$actions;
|
|
17
|
+
const modal = useSmartLinkModal();
|
|
11
18
|
const context = useFlexibleUiContext();
|
|
12
19
|
const actionData = context === null || context === void 0 ? void 0 : (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions.ViewRelatedLinksAction;
|
|
20
|
+
const onClick = useCallback(() => {
|
|
21
|
+
const url = actionData === null || actionData === void 0 ? void 0 : actionData.url;
|
|
22
|
+
if (url) {
|
|
23
|
+
modal.open(jsx(RelatedLinksModal, {
|
|
24
|
+
url: url,
|
|
25
|
+
showModal: true,
|
|
26
|
+
onClose: () => modal.close()
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback();
|
|
30
|
+
}, [actionData === null || actionData === void 0 ? void 0 : actionData.url, modal, onClickCallback]);
|
|
13
31
|
return actionData ? jsx(Action, _extends({
|
|
14
32
|
content: jsx(FormattedMessage, messages.related_links_view_related_urls),
|
|
15
33
|
icon: jsx(RelatedLinksActionIcon, null),
|
|
34
|
+
onClick: onClick,
|
|
16
35
|
testId: "smart-action-view-related-links-action",
|
|
17
36
|
ariaLabel: "View most recent pages or content types coming from or found on this link"
|
|
18
37
|
}, props)) : null;
|
|
@@ -68,7 +68,9 @@ const ActionBlock = ({
|
|
|
68
68
|
onClick: () => onClick(name),
|
|
69
69
|
onError: onError,
|
|
70
70
|
onLoadingChange: onLoadingChange,
|
|
71
|
-
size: size
|
|
71
|
+
size: size
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
73
|
+
,
|
|
72
74
|
xcss: xcss({
|
|
73
75
|
paddingInline: padding
|
|
74
76
|
}),
|
|
@@ -19,8 +19,10 @@ import { di } from 'react-magnetic-di';
|
|
|
19
19
|
const styles = css({
|
|
20
20
|
display: 'inline-flex',
|
|
21
21
|
lineHeight: '1rem',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
23
|
'> div': {
|
|
23
24
|
alignItems: 'center',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
26
|
'button:focus-visible': {
|
|
25
27
|
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
26
28
|
}
|
|
@@ -20,6 +20,7 @@ const tooltipMsgStyles = xcss({
|
|
|
20
20
|
});
|
|
21
21
|
const iconTooltipLinkStyles = css({
|
|
22
22
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
24
|
'&:link, :visited': {
|
|
24
25
|
color: "var(--ds-text-subtlest, #626F86)"
|
|
25
26
|
},
|
package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -33,10 +33,13 @@ const FeatureDiscovery = ({
|
|
|
33
33
|
}, [storageClient, discovered]);
|
|
34
34
|
const component = useMemo(() => {
|
|
35
35
|
if (!discovered) {
|
|
36
|
-
return
|
|
37
|
-
css
|
|
38
|
-
"
|
|
39
|
-
|
|
36
|
+
return (
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
38
|
+
jsx("span", {
|
|
39
|
+
css: getPulseStyles(),
|
|
40
|
+
"data-testid": `${testId}-discovery`
|
|
41
|
+
}, children)
|
|
42
|
+
);
|
|
40
43
|
}
|
|
41
44
|
}, [children, discovered, testId]);
|
|
42
45
|
return component !== null && component !== void 0 ? component : children;
|
|
@@ -147,7 +147,9 @@ const AISummaryBlockResolvedView = props => {
|
|
|
147
147
|
*/,
|
|
148
148
|
overrideCss: css({
|
|
149
149
|
overflow: 'visible'
|
|
150
|
-
},
|
|
150
|
+
},
|
|
151
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
152
|
+
props.overrideCss)
|
|
151
153
|
}), status === 'done' && /*#__PURE__*/React.createElement(AIEventSummaryViewed, {
|
|
152
154
|
fromCache: isSummarisedOnMountRef.current
|
|
153
155
|
}), /*#__PURE__*/React.createElement(MotionWrapper, {
|
|
@@ -46,6 +46,7 @@ const Block = ({
|
|
|
46
46
|
onRender && onRender();
|
|
47
47
|
}, [onRender]);
|
|
48
48
|
return jsx("div", {
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
49
50
|
css: [getBlockStyles(direction, size), overrideCss],
|
|
50
51
|
"data-smart-block": true,
|
|
51
52
|
"data-testid": testId,
|
|
@@ -26,17 +26,23 @@ const getGapStyles = (size, align) => {
|
|
|
26
26
|
const gap = getGapSize(size);
|
|
27
27
|
if (align === SmartLinkAlignment.Right) {
|
|
28
28
|
return css({
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
30
|
'> span': {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
32
|
marginLeft: `${gap}rem`
|
|
31
33
|
},
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
35
|
'> span:first-child': {
|
|
33
36
|
marginLeft: 'initial'
|
|
34
37
|
}
|
|
35
38
|
});
|
|
36
39
|
}
|
|
37
40
|
return css({
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
42
|
'> span': {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
44
|
marginRight: `${gap}rem`,
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
40
46
|
'&:last-child': {
|
|
41
47
|
marginRight: 'initial'
|
|
42
48
|
}
|
|
@@ -64,9 +70,19 @@ const getHorizontalDirectionStyles = (size, align) => {
|
|
|
64
70
|
${getGapStyles(size, align)}
|
|
65
71
|
`;
|
|
66
72
|
};
|
|
67
|
-
export const getElementGroupStyles = (direction, size, align, width, position) => css(
|
|
73
|
+
export const getElementGroupStyles = (direction, size, align, width, position) => css(
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
75
|
+
getBaseStyles(direction, size),
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
|
+
getAlignmentStyles(align), {
|
|
68
78
|
minWidth: '10%'
|
|
69
|
-
},
|
|
79
|
+
},
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
81
|
+
width === SmartLinkWidth.Flexible ? `flex: 1 3;` : '',
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
83
|
+
direction === SmartLinkDirection.Horizontal ? getHorizontalDirectionStyles(size, align) : '',
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
85
|
+
position === SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
|
|
70
86
|
|
|
71
87
|
/**
|
|
72
88
|
* Creates a group of Action components. Accepts an array of Actions, in addition to some styling
|
|
@@ -85,6 +101,7 @@ const ElementGroup = ({
|
|
|
85
101
|
width = SmartLinkWidth.FitToContent,
|
|
86
102
|
position = SmartLinkPosition.Center
|
|
87
103
|
}) => jsx("div", {
|
|
104
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
88
105
|
css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
|
|
89
106
|
"data-smart-element-group": true,
|
|
90
107
|
"data-testid": testId
|
|
@@ -16,8 +16,11 @@ const getElementGroupStyles = (size, maxLines) => {
|
|
|
16
16
|
// sides so they line up nicely.
|
|
17
17
|
const lineHeight = getMaxLineHeight(size);
|
|
18
18
|
return css({
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
20
|
lineHeight: `${lineHeight}rem`
|
|
20
|
-
},
|
|
21
|
+
},
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
+
getTruncateStyles(maxLines, lineHeight + 'rem'));
|
|
21
24
|
};
|
|
22
25
|
const getMaxLines = maxLines => {
|
|
23
26
|
if (maxLines > MAXIMUM_MAX_LINES) {
|
|
@@ -47,9 +47,11 @@ const getPreviewBlockStyles = (placement, ignoreContainerPadding) => {
|
|
|
47
47
|
return css({
|
|
48
48
|
marginLeft: 'calc(var(--container-gap-left) * -1)',
|
|
49
49
|
marginRight: 'calc(var(--container-gap-right) * -1)',
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
50
51
|
'&:first-of-type': {
|
|
51
52
|
marginTop: 'calc(var(--container-padding) * -1)'
|
|
52
53
|
},
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
53
55
|
'&:last-of-type': {
|
|
54
56
|
marginBottom: 'calc(var(--container-padding) * -1)'
|
|
55
57
|
}
|
|
@@ -74,6 +76,7 @@ const PreviewBlockResolvedView = ({
|
|
|
74
76
|
}) => {
|
|
75
77
|
const [styles, setStyles] = useState(overrideCss);
|
|
76
78
|
const updateStyles = useCallback(() => {
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
80
|
setStyles(css(getPreviewBlockStyles(placement, ignoreContainerPadding), overrideCss));
|
|
78
81
|
}, [ignoreContainerPadding, overrideCss, placement]);
|
|
79
82
|
useEffect(() => {
|
|
@@ -10,6 +10,7 @@ import { getLinkLineHeight, getLinkSizeStyles, getTruncateStyles } from '../../.
|
|
|
10
10
|
import ElementGroup from '../../element-group';
|
|
11
11
|
const actionStyles = css({
|
|
12
12
|
cursor: 'pointer',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
13
14
|
':hover': {
|
|
14
15
|
color: "var(--ds-text-subtle, #8993A4)",
|
|
15
16
|
textDecoration: 'underline'
|
|
@@ -20,8 +21,15 @@ const getMessageStyles = (size, hasAction) => {
|
|
|
20
21
|
return css({
|
|
21
22
|
flex: '1 1 auto',
|
|
22
23
|
justifyContent: 'flex-end'
|
|
23
|
-
},
|
|
24
|
+
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
|
+
hasAction ? actionStyles : '',
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
+
sizeStyles,
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
|
+
getTruncateStyles(1, getLinkLineHeight(size)), {
|
|
24
31
|
color: "var(--ds-text-disabled, #6B778C)",
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
25
33
|
':focus': {
|
|
26
34
|
outline: `${"var(--ds-border-focused, #388BFF)"} solid 2px`
|
|
27
35
|
}
|
|
@@ -64,7 +72,9 @@ const TitleBlockErroredView = ({
|
|
|
64
72
|
align: SmartLinkAlignment.Right
|
|
65
73
|
}, jsx("span", {
|
|
66
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
|
-
className: hasAction ? 'has-action' : ''
|
|
75
|
+
className: hasAction ? 'has-action' : ''
|
|
76
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
77
|
+
,
|
|
68
78
|
css: getMessageStyles(size, hasAction),
|
|
69
79
|
onClick: onClick,
|
|
70
80
|
"data-testid": `${testId}-errored-view-message`,
|
|
@@ -11,9 +11,11 @@ import { Title } from '../../elements';
|
|
|
11
11
|
const getActionStyles = (showOnHover, isOpen) => {
|
|
12
12
|
if (showOnHover && !isOpen) {
|
|
13
13
|
return css({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
15
|
'.actions-button-group': {
|
|
15
16
|
opacity: 0
|
|
16
17
|
},
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
19
|
'&:hover .actions-button-group, .actions-button-group:focus-within': {
|
|
18
20
|
opacity: 1
|
|
19
21
|
}
|
|
@@ -86,6 +88,7 @@ const TitleBlock = ({
|
|
|
86
88
|
onDropdownOpenChange: onDropdownOpenChange
|
|
87
89
|
});
|
|
88
90
|
const actionStyles = getActionStyles(showActionOnHover, actionDropdownOpen);
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
89
92
|
const combinedCss = css(actionStyles, overrideCss);
|
|
90
93
|
const overrideText = !!text ? {
|
|
91
94
|
text
|
|
@@ -27,7 +27,9 @@ const TitleBlockResolvingView = ({
|
|
|
27
27
|
const iconStyles = getIconSizeStyles(iconWidth);
|
|
28
28
|
return jsx(Block, _extends({}, blockProps, {
|
|
29
29
|
testId: `${testId}-resolving-view`
|
|
30
|
-
}), !hideIcon &&
|
|
30
|
+
}), !hideIcon &&
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
32
|
+
jsx("span", {
|
|
31
33
|
css: iconStyles,
|
|
32
34
|
"data-testid": `${testId}-icon`
|
|
33
35
|
}, jsx(LoadingSkeleton, {
|
|
@@ -82,23 +82,28 @@ export const getGapSize = size => {
|
|
|
82
82
|
export const getBaseStyles = (direction, size) => css({
|
|
83
83
|
alignItems: 'center',
|
|
84
84
|
display: 'flex',
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
85
86
|
gap: `${getGapSize(size)}rem`,
|
|
86
87
|
lineHeight: '1rem',
|
|
87
88
|
minWidth: 0,
|
|
88
89
|
overflow: 'hidden'
|
|
89
|
-
},
|
|
90
|
+
},
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
92
|
+
getDirectionStyles(direction), {
|
|
90
93
|
'&:empty': {
|
|
91
94
|
display: 'none'
|
|
92
95
|
},
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
93
97
|
'& > *': {
|
|
94
98
|
minWidth: 0
|
|
95
99
|
},
|
|
100
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
96
101
|
'& > [data-fit-to-content]': {
|
|
97
102
|
minWidth: 'fit-content'
|
|
98
103
|
}
|
|
99
104
|
});
|
|
100
105
|
|
|
101
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
106
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
102
107
|
export const highlightRemoveStyles = css`
|
|
103
108
|
outline: none !important;
|
|
104
109
|
outline-color: inherit;
|
|
@@ -15,7 +15,9 @@ const LoadingSkeleton = ({
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
const styles = css({
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
19
|
width: `${width}rem`,
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
21
|
height: `${height}rem`,
|
|
20
22
|
borderRadius: '2px',
|
|
21
23
|
userSelect: 'none',
|
|
@@ -47,6 +47,7 @@ const getPadding = size => {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
const clickableContainerStyles = css({
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
50
51
|
'a, button, .has-action': {
|
|
51
52
|
position: 'relative',
|
|
52
53
|
zIndex: 1
|
|
@@ -60,12 +61,20 @@ const getContainerPaddingStyles = (size, hidePadding, childrenOptions) => {
|
|
|
60
61
|
previewOnRight
|
|
61
62
|
} = childrenOptions;
|
|
62
63
|
return css({
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
63
65
|
'--container-padding': padding,
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
67
|
'--container-gap-left': previewOnLeft ? gap : padding,
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
69
|
'--container-gap-right': previewOnRight ? gap : padding,
|
|
66
70
|
'--preview-block-width': '30%',
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
67
72
|
padding: padding
|
|
68
|
-
},
|
|
73
|
+
},
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
75
|
+
previewOnLeft ? `padding-left: calc(var(--preview-block-width) + ${gap});` : '',
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
|
+
previewOnRight ? `padding-right: calc(var(--preview-block-width) + ${gap});` : '');
|
|
69
78
|
};
|
|
70
79
|
const getChildrenOptions = (children, context) => {
|
|
71
80
|
let options = {};
|
|
@@ -192,6 +201,7 @@ const Container = ({
|
|
|
192
201
|
// unresolved link (unauthorized, forbidden, not found, etc.)
|
|
193
202
|
const canShowAuthTooltip = showAuthTooltip && status === 'unauthorized' && retry !== undefined;
|
|
194
203
|
const container = jsx("div", {
|
|
204
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
195
205
|
css: getContainerStyles(size, hideBackground, hideElevation, hidePadding, clickableContainer, childrenOptions),
|
|
196
206
|
"data-smart-link-container": true,
|
|
197
207
|
"data-testid": testId
|
|
@@ -14,6 +14,7 @@ const styles = css({
|
|
|
14
14
|
whiteSpace: 'nowrap',
|
|
15
15
|
// Needs a heightened specificity to trump other anchor.
|
|
16
16
|
// Stack it under all other links in the post text.
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
18
|
'a&.layered-link': {
|
|
18
19
|
position: 'absolute',
|
|
19
20
|
zIndex: 0
|
|
@@ -28,7 +29,9 @@ const styles = css({
|
|
|
28
29
|
// iterations of the second element, that are following the first element
|
|
29
30
|
// (though not necessarily immediately), and are children of the same parent
|
|
30
31
|
// element.
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
33
|
'&:hover ~ *': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
35
|
'.actions-button-group': {
|
|
33
36
|
opacity: 1
|
|
34
37
|
}
|
|
@@ -23,6 +23,7 @@ const AtlaskitBadge = ({
|
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
return jsx("span", {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
26
27
|
css: [badgeStyles, overrideCss],
|
|
27
28
|
"data-fit-to-content": true,
|
|
28
29
|
"data-smart-element": name,
|
|
@@ -12,6 +12,7 @@ const MAX_COUNT = 4;
|
|
|
12
12
|
const getStyles = size => {
|
|
13
13
|
const styles = css({
|
|
14
14
|
display: 'inline-flex',
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
16
|
ul: {
|
|
16
17
|
marginRight: "var(--ds-space-100, 0.5rem)",
|
|
17
18
|
marginTop: 0
|
|
@@ -96,6 +97,7 @@ const AvatarGroup = ({
|
|
|
96
97
|
return null;
|
|
97
98
|
}
|
|
98
99
|
return jsx("span", {
|
|
100
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
99
101
|
css: [getStyles(size), overrideCss],
|
|
100
102
|
"data-fit-to-content": true,
|
|
101
103
|
"data-smart-element": name,
|
|
@@ -12,7 +12,7 @@ const badgeStyles = css({
|
|
|
12
12
|
minWidth: 'fit-content'
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
16
16
|
const iconStyles = css`
|
|
17
17
|
color: ${"var(--ds-icon-subtle, #626F86)"};
|
|
18
18
|
line-height: 0;
|
|
@@ -101,6 +101,7 @@ const Badge = ({
|
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
103
103
|
return jsx("span", {
|
|
104
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
104
105
|
css: [badgeStyles, overrideCss],
|
|
105
106
|
"data-fit-to-content": true,
|
|
106
107
|
"data-smart-element": name,
|
|
@@ -10,7 +10,9 @@ const styles = css({
|
|
|
10
10
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
11
11
|
fontSize: '0.75rem',
|
|
12
12
|
lineHeight: '1rem'
|
|
13
|
-
},
|
|
13
|
+
},
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
getTruncateStyles(1));
|
|
14
16
|
const typeToDescriptorMap = {
|
|
15
17
|
created: {
|
|
16
18
|
relative: messages.created_on_relative,
|
|
@@ -70,6 +72,7 @@ const DateTime = ({
|
|
|
70
72
|
});
|
|
71
73
|
}
|
|
72
74
|
return jsx("span", {
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
73
76
|
css: [styles, overrideCss],
|
|
74
77
|
"data-separator": true,
|
|
75
78
|
"data-smart-element": name,
|
|
@@ -20,13 +20,20 @@ const getPositionStyles = position => {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
const getIconStyles = (position, width) =>
|
|
24
|
-
|
|
23
|
+
const getIconStyles = (position, width) =>
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
+
css(getPositionStyles(position), getIconSizeStyles(width));
|
|
26
|
+
const getCustomRenderStyles = value =>
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
+
css(getTruncateStyles(1, value), {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
30
|
lineHeight: value,
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
32
|
fontSize: value,
|
|
27
33
|
textAlign: 'center',
|
|
28
34
|
textOverflow: 'clip',
|
|
29
35
|
WebkitBoxOrient: 'unset',
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
37
|
span: {
|
|
31
38
|
margin: 0,
|
|
32
39
|
padding: 0,
|
|
@@ -18,6 +18,7 @@ const getThemeStyles = theme => {
|
|
|
18
18
|
// We are being specifc with the CSS selectors to ensure that Confluence overrides
|
|
19
19
|
// do not affect our internal Smart Card styles
|
|
20
20
|
return css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
21
22
|
'a&': {
|
|
22
23
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
23
24
|
'&:active, &:visited, &:focus, &:hover': {
|
|
@@ -31,9 +32,11 @@ const getThemeStyles = theme => {
|
|
|
31
32
|
case SmartLinkTheme.Black:
|
|
32
33
|
return css({
|
|
33
34
|
color: "var(--ds-text-subtle, #44546F)",
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
36
|
':active': {
|
|
35
37
|
color: "var(--ds-text, #172B4D)"
|
|
36
38
|
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
37
40
|
':hover': {
|
|
38
41
|
color: "var(--ds-text-subtle, #44546F)",
|
|
39
42
|
textDecoration: 'underline'
|
|
@@ -43,9 +46,11 @@ const getThemeStyles = theme => {
|
|
|
43
46
|
default:
|
|
44
47
|
return css({
|
|
45
48
|
color: "var(--ds-link, #0C66E4)",
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
46
50
|
':active': {
|
|
47
51
|
color: "var(--ds-link-pressed, #0055CC)"
|
|
48
52
|
},
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
49
54
|
':hover': {
|
|
50
55
|
color: "var(--ds-link, #0C66E4)",
|
|
51
56
|
textDecoration: 'underline'
|
|
@@ -57,7 +62,13 @@ const getAnchorStyles = (size, theme, maxLines, hasSpace) => {
|
|
|
57
62
|
const sizeStyles = getLinkSizeStyles(size);
|
|
58
63
|
return css({
|
|
59
64
|
flex: '1 1 auto'
|
|
60
|
-
},
|
|
65
|
+
},
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
67
|
+
sizeStyles,
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
69
|
+
getTruncateStyles(maxLines, getLinkLineHeight(size), hasSpace ? 'break-word' : 'break-all'),
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
71
|
+
getThemeStyles(theme));
|
|
61
72
|
};
|
|
62
73
|
const getMaxLines = maxLines => {
|
|
63
74
|
if (maxLines > MAXIMUM_MAX_LINES) {
|
|
@@ -96,6 +107,7 @@ const Link = ({
|
|
|
96
107
|
const onMouseDown = useMouseDownEvent();
|
|
97
108
|
const hasSpace = useMemo(() => text ? hasWhiteSpace(text) : false, [text]);
|
|
98
109
|
const anchor = jsx("a", _extends({
|
|
110
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
99
111
|
css: [getAnchorStyles(size, theme, getMaxLines(maxLines), hasSpace), overrideCss],
|
|
100
112
|
"data-smart-element": name,
|
|
101
113
|
"data-smart-element-link": true,
|
|
@@ -42,6 +42,7 @@ const Lozenge = ({
|
|
|
42
42
|
testId: `${testId}-lozenge`
|
|
43
43
|
}, text);
|
|
44
44
|
return jsx("span", {
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
45
46
|
css: [styles, overrideCss],
|
|
46
47
|
"data-fit-to-content": true,
|
|
47
48
|
"data-smart-element": name,
|
|
@@ -48,7 +48,9 @@ const LozengeActionError = ({
|
|
|
48
48
|
}), jsx("span", {
|
|
49
49
|
css: textStyles(maxLineNumber),
|
|
50
50
|
"data-testid": `${testId}-error-message`
|
|
51
|
-
}, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ?
|
|
51
|
+
}, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ?
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
53
|
+
jsx("div", {
|
|
52
54
|
css: linkStyles
|
|
53
55
|
}, jsx("a", {
|
|
54
56
|
target: "_blank",
|
|
@@ -56,11 +58,14 @@ const LozengeActionError = ({
|
|
|
56
58
|
onClick: handlePreviewOpen
|
|
57
59
|
}, jsx(FormattedMessage, messages.open_issue_in_jira))) : null);
|
|
58
60
|
}, [errorMessage, handlePreviewOpen, isPreviewAvailable, maxLineNumber, testId]);
|
|
59
|
-
return
|
|
60
|
-
css
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
return (
|
|
62
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
63
|
+
jsx("span", {
|
|
64
|
+
css: dropdownItemGroupStyles,
|
|
65
|
+
"data-testid": `${testId}-error-item-group`
|
|
66
|
+
}, jsx(DropdownItemGroup, null, jsx(DropdownItem, {
|
|
67
|
+
testId: `${testId}-error`
|
|
68
|
+
}, content)))
|
|
69
|
+
);
|
|
65
70
|
};
|
|
66
71
|
export default LozengeActionError;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N800 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { getTruncateStyles } from '../../../../utils';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
4
6
|
export const dropdownItemGroupStyles = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
5
8
|
button: {
|
|
6
9
|
width: '220px',
|
|
7
10
|
'&:hover': {
|
|
@@ -19,15 +22,20 @@ const sharedBlockStyles = css({
|
|
|
19
22
|
flexDirection: 'row',
|
|
20
23
|
alignItems: 'center'
|
|
21
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
27
|
export const contentStyles = css(sharedBlockStyles, {
|
|
23
28
|
marginTop: "var(--ds-space-025, 2px)",
|
|
24
29
|
alignItems: 'flex-start',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
31
|
'> span, > div': {
|
|
26
32
|
fontSize: '0.875rem',
|
|
27
33
|
lineHeight: '1.25rem',
|
|
28
34
|
color: `var(--ds-text, ${N800})`
|
|
29
35
|
}
|
|
30
36
|
});
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
39
|
export const linkStyles = css(sharedBlockStyles, {
|
|
32
40
|
cursor: 'pointer',
|
|
33
41
|
fontSize: '0.875rem',
|
|
@@ -38,4 +46,6 @@ export const linkStyles = css(sharedBlockStyles, {
|
|
|
38
46
|
export const textStyles = maxLines => css({
|
|
39
47
|
lineHeight: '1rem',
|
|
40
48
|
whiteSpace: 'normal'
|
|
41
|
-
},
|
|
49
|
+
},
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
|
+
getTruncateStyles(maxLines));
|
|
@@ -9,7 +9,7 @@ const LozengeActionItemsGroup = ({
|
|
|
9
9
|
testId,
|
|
10
10
|
onClick
|
|
11
11
|
}) =>
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
13
|
jsx("span", {
|
|
14
14
|
css: dropdownItemGroupStyles,
|
|
15
15
|
"data-testid": `${testId}-item-group`
|
|
@@ -28,6 +28,7 @@ const LozengeActionTrigger = ({
|
|
|
28
28
|
return jsx("button", _extends({
|
|
29
29
|
type: "button"
|
|
30
30
|
}, props, {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
31
32
|
css: triggerButtonStyles,
|
|
32
33
|
"data-action-open": isOpen,
|
|
33
34
|
"data-testid": `${testId}--trigger`,
|