@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
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["onClick"];
|
|
2
4
|
/** @jsx jsx */
|
|
3
5
|
import { jsx } from '@emotion/react';
|
|
4
6
|
import Action from '../action';
|
|
@@ -6,13 +8,35 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
6
8
|
import { messages } from '../../../../../messages';
|
|
7
9
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
8
10
|
import RelatedLinksActionIcon from './related-links-action-icon';
|
|
9
|
-
|
|
11
|
+
import { lazy, useCallback } from 'react';
|
|
12
|
+
import { useSmartLinkModal } from '../../../../../state/modal';
|
|
13
|
+
var RelatedLinksModal = /*#__PURE__*/lazy(function () {
|
|
14
|
+
return import( /* webpackChunkName: "@atlaskit-internal_smartcard-RelatedLinksModal" */'../../../../RelatedLinksModal');
|
|
15
|
+
});
|
|
16
|
+
var ViewRelatedLinksAction = function ViewRelatedLinksAction(_ref) {
|
|
10
17
|
var _context$actions;
|
|
18
|
+
var onClickCallback = _ref.onClick,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
var modal = useSmartLinkModal();
|
|
11
21
|
var context = useFlexibleUiContext();
|
|
12
22
|
var actionData = context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions.ViewRelatedLinksAction;
|
|
23
|
+
var onClick = useCallback(function () {
|
|
24
|
+
var url = actionData === null || actionData === void 0 ? void 0 : actionData.url;
|
|
25
|
+
if (url) {
|
|
26
|
+
modal.open(jsx(RelatedLinksModal, {
|
|
27
|
+
url: url,
|
|
28
|
+
showModal: true,
|
|
29
|
+
onClose: function onClose() {
|
|
30
|
+
return modal.close();
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
35
|
+
}, [actionData === null || actionData === void 0 ? void 0 : actionData.url, modal, onClickCallback]);
|
|
13
36
|
return actionData ? jsx(Action, _extends({
|
|
14
37
|
content: jsx(FormattedMessage, messages.related_links_view_related_urls),
|
|
15
38
|
icon: jsx(RelatedLinksActionIcon, null),
|
|
39
|
+
onClick: onClick,
|
|
16
40
|
testId: "smart-action-view-related-links-action",
|
|
17
41
|
ariaLabel: "View most recent pages or content types coming from or found on this link"
|
|
18
42
|
}, props)) : null;
|
|
@@ -77,7 +77,9 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
77
77
|
},
|
|
78
78
|
onError: onError,
|
|
79
79
|
onLoadingChange: onLoadingChange,
|
|
80
|
-
size: size
|
|
80
|
+
size: size
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
82
|
+
,
|
|
81
83
|
xcss: xcss({
|
|
82
84
|
paddingInline: padding
|
|
83
85
|
}),
|
|
@@ -22,8 +22,10 @@ import { di } from 'react-magnetic-di';
|
|
|
22
22
|
var styles = css({
|
|
23
23
|
display: 'inline-flex',
|
|
24
24
|
lineHeight: '1rem',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
26
|
'> div': {
|
|
26
27
|
alignItems: 'center',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
29
|
'button:focus-visible': {
|
|
28
30
|
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
29
31
|
}
|
|
@@ -20,6 +20,7 @@ var tooltipMsgStyles = xcss({
|
|
|
20
20
|
});
|
|
21
21
|
var 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/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -36,10 +36,13 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
36
36
|
}, [storageClient, discovered]);
|
|
37
37
|
var component = useMemo(function () {
|
|
38
38
|
if (!discovered) {
|
|
39
|
-
return
|
|
40
|
-
css
|
|
41
|
-
"
|
|
42
|
-
|
|
39
|
+
return (
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
41
|
+
jsx("span", {
|
|
42
|
+
css: getPulseStyles(),
|
|
43
|
+
"data-testid": "".concat(testId, "-discovery")
|
|
44
|
+
}, children)
|
|
45
|
+
);
|
|
43
46
|
}
|
|
44
47
|
}, [children, discovered, testId]);
|
|
45
48
|
return component !== null && component !== void 0 ? component : children;
|
|
@@ -145,7 +145,9 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
145
145
|
*/,
|
|
146
146
|
overrideCss: css({
|
|
147
147
|
overflow: 'visible'
|
|
148
|
-
},
|
|
148
|
+
},
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
150
|
+
props.overrideCss)
|
|
149
151
|
}), status === 'done' && /*#__PURE__*/React.createElement(AIEventSummaryViewed, {
|
|
150
152
|
fromCache: isSummarisedOnMountRef.current
|
|
151
153
|
}), /*#__PURE__*/React.createElement(MotionWrapper, {
|
|
@@ -34,6 +34,7 @@ var Block = function Block(_ref) {
|
|
|
34
34
|
onRender && onRender();
|
|
35
35
|
}, [onRender]);
|
|
36
36
|
return jsx("div", {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
37
38
|
css: [getBlockStyles(direction, size), overrideCss],
|
|
38
39
|
"data-smart-block": true,
|
|
39
40
|
"data-testid": testId,
|
|
@@ -28,17 +28,23 @@ var getGapStyles = function getGapStyles(size, align) {
|
|
|
28
28
|
var gap = getGapSize(size);
|
|
29
29
|
if (align === SmartLinkAlignment.Right) {
|
|
30
30
|
return css({
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
32
|
'> span': {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
34
|
marginLeft: "".concat(gap, "rem")
|
|
33
35
|
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
37
|
'> span:first-child': {
|
|
35
38
|
marginLeft: 'initial'
|
|
36
39
|
}
|
|
37
40
|
});
|
|
38
41
|
}
|
|
39
42
|
return css({
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
44
|
'> span': {
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
46
|
marginRight: "".concat(gap, "rem"),
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
42
48
|
'&:last-child': {
|
|
43
49
|
marginRight: 'initial'
|
|
44
50
|
}
|
|
@@ -51,9 +57,19 @@ var getHorizontalDirectionStyles = function getHorizontalDirectionStyles(size, a
|
|
|
51
57
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\tdisplay: block;\n\t\tvertical-align: middle;\n\t\t", "\n\n\t\t> span, > div {\n\t\t\tvertical-align: middle;\n\n\t\t\t&[data-smart-element-date-time],\n\t\t\t&[data-smart-element-text] {\n\t\t\t\t// Show all/wrapped/truncated\n\t\t\t\tdisplay: inline;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t"])), getTruncateStyles(1, lineHeight + 'rem'), getGapStyles(size, align));
|
|
52
58
|
};
|
|
53
59
|
export var getElementGroupStyles = function getElementGroupStyles(direction, size, align, width, position) {
|
|
54
|
-
return css(
|
|
60
|
+
return css(
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
62
|
+
getBaseStyles(direction, size),
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
|
+
getAlignmentStyles(align), {
|
|
55
65
|
minWidth: '10%'
|
|
56
|
-
},
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
68
|
+
width === SmartLinkWidth.Flexible ? "flex: 1 3;" : '',
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
70
|
+
direction === SmartLinkDirection.Horizontal ? getHorizontalDirectionStyles(size, align) : '',
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
72
|
+
position === SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
|
|
57
73
|
};
|
|
58
74
|
|
|
59
75
|
/**
|
|
@@ -79,6 +95,7 @@ var ElementGroup = function ElementGroup(_ref) {
|
|
|
79
95
|
_ref$position = _ref.position,
|
|
80
96
|
position = _ref$position === void 0 ? SmartLinkPosition.Center : _ref$position;
|
|
81
97
|
return jsx("div", {
|
|
98
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
82
99
|
css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
|
|
83
100
|
"data-smart-element-group": true,
|
|
84
101
|
"data-testid": testId
|
|
@@ -18,8 +18,11 @@ var getElementGroupStyles = function getElementGroupStyles(size, maxLines) {
|
|
|
18
18
|
// sides so they line up nicely.
|
|
19
19
|
var lineHeight = getMaxLineHeight(size);
|
|
20
20
|
return css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
22
|
lineHeight: "".concat(lineHeight, "rem")
|
|
22
|
-
},
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
+
getTruncateStyles(maxLines, lineHeight + 'rem'));
|
|
23
26
|
};
|
|
24
27
|
var getMaxLines = function getMaxLines(maxLines) {
|
|
25
28
|
if (maxLines > MAXIMUM_MAX_LINES) {
|
|
@@ -36,9 +36,11 @@ var getPreviewBlockStyles = function getPreviewBlockStyles(placement, ignoreCont
|
|
|
36
36
|
return css({
|
|
37
37
|
marginLeft: 'calc(var(--container-gap-left) * -1)',
|
|
38
38
|
marginRight: 'calc(var(--container-gap-right) * -1)',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
39
40
|
'&:first-of-type': {
|
|
40
41
|
marginTop: 'calc(var(--container-padding) * -1)'
|
|
41
42
|
},
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
42
44
|
'&:last-of-type': {
|
|
43
45
|
marginBottom: 'calc(var(--container-padding) * -1)'
|
|
44
46
|
}
|
|
@@ -66,6 +68,7 @@ var PreviewBlockResolvedView = function PreviewBlockResolvedView(_ref) {
|
|
|
66
68
|
styles = _useState2[0],
|
|
67
69
|
setStyles = _useState2[1];
|
|
68
70
|
var updateStyles = useCallback(function () {
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
69
72
|
setStyles(css(getPreviewBlockStyles(placement, ignoreContainerPadding), overrideCss));
|
|
70
73
|
}, [ignoreContainerPadding, overrideCss, placement]);
|
|
71
74
|
useEffect(function () {
|
|
@@ -12,6 +12,7 @@ import { getLinkLineHeight, getLinkSizeStyles, getTruncateStyles } from '../../.
|
|
|
12
12
|
import ElementGroup from '../../element-group';
|
|
13
13
|
var actionStyles = css({
|
|
14
14
|
cursor: 'pointer',
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
15
16
|
':hover': {
|
|
16
17
|
color: "var(--ds-text-subtle, #8993A4)",
|
|
17
18
|
textDecoration: 'underline'
|
|
@@ -22,8 +23,15 @@ var getMessageStyles = function getMessageStyles(size, hasAction) {
|
|
|
22
23
|
return css({
|
|
23
24
|
flex: '1 1 auto',
|
|
24
25
|
justifyContent: 'flex-end'
|
|
25
|
-
},
|
|
26
|
+
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
+
hasAction ? actionStyles : '',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
|
+
sizeStyles,
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
getTruncateStyles(1, getLinkLineHeight(size)), {
|
|
26
33
|
color: "var(--ds-text-disabled, #6B778C)",
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
27
35
|
':focus': {
|
|
28
36
|
outline: "var(--ds-border-focused, #388BFF)".concat(" solid 2px")
|
|
29
37
|
}
|
|
@@ -63,7 +71,9 @@ var TitleBlockErroredView = function TitleBlockErroredView(_ref) {
|
|
|
63
71
|
align: SmartLinkAlignment.Right
|
|
64
72
|
}, jsx("span", {
|
|
65
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
66
|
-
className: hasAction ? 'has-action' : ''
|
|
74
|
+
className: hasAction ? 'has-action' : ''
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
76
|
+
,
|
|
67
77
|
css: getMessageStyles(size, hasAction),
|
|
68
78
|
onClick: onClick,
|
|
69
79
|
"data-testid": "".concat(testId, "-errored-view-message"),
|
|
@@ -14,9 +14,11 @@ import { Title } from '../../elements';
|
|
|
14
14
|
var getActionStyles = function getActionStyles(showOnHover, isOpen) {
|
|
15
15
|
if (showOnHover && !isOpen) {
|
|
16
16
|
return css({
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
18
|
'.actions-button-group': {
|
|
18
19
|
opacity: 0
|
|
19
20
|
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
22
|
'&:hover .actions-button-group, .actions-button-group:focus-within': {
|
|
21
23
|
opacity: 1
|
|
22
24
|
}
|
|
@@ -95,6 +97,7 @@ var TitleBlock = function TitleBlock(_ref) {
|
|
|
95
97
|
onDropdownOpenChange: onDropdownOpenChange
|
|
96
98
|
});
|
|
97
99
|
var actionStyles = getActionStyles(showActionOnHover, actionDropdownOpen);
|
|
100
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
98
101
|
var combinedCss = css(actionStyles, overrideCss);
|
|
99
102
|
var overrideText = !!text ? {
|
|
100
103
|
text: text
|
|
@@ -27,7 +27,9 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
27
27
|
var iconStyles = getIconSizeStyles(iconWidth);
|
|
28
28
|
return jsx(Block, _extends({}, blockProps, {
|
|
29
29
|
testId: "".concat(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": "".concat(testId, "-icon")
|
|
33
35
|
}, jsx(LoadingSkeleton, {
|
|
@@ -54,24 +54,29 @@ export var getBaseStyles = function getBaseStyles(direction, size) {
|
|
|
54
54
|
return css({
|
|
55
55
|
alignItems: 'center',
|
|
56
56
|
display: 'flex',
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
57
58
|
gap: "".concat(getGapSize(size), "rem"),
|
|
58
59
|
lineHeight: '1rem',
|
|
59
60
|
minWidth: 0,
|
|
60
61
|
overflow: 'hidden'
|
|
61
|
-
},
|
|
62
|
+
},
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
|
+
getDirectionStyles(direction), {
|
|
62
65
|
'&:empty': {
|
|
63
66
|
display: 'none'
|
|
64
67
|
},
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
65
69
|
'& > *': {
|
|
66
70
|
minWidth: 0
|
|
67
71
|
},
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
73
|
'& > [data-fit-to-content]': {
|
|
69
74
|
minWidth: 'fit-content'
|
|
70
75
|
}
|
|
71
76
|
});
|
|
72
77
|
};
|
|
73
78
|
|
|
74
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
79
|
+
// 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
|
|
75
80
|
export var highlightRemoveStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\toutline: none !important;\n\toutline-color: inherit;\n\tcolor: inherit;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-touch-callout: none;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n"])));
|
|
76
81
|
var isActionGroup = function isActionGroup(node) {
|
|
77
82
|
return /*#__PURE__*/React.isValidElement(node) && node.type === ActionGroup;
|
|
@@ -14,7 +14,9 @@ var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
var styles = css({
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
18
|
width: "".concat(width, "rem"),
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
20
|
height: "".concat(height, "rem"),
|
|
19
21
|
borderRadius: '2px',
|
|
20
22
|
userSelect: 'none',
|
|
@@ -49,6 +49,7 @@ var getPadding = function getPadding(size) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
var clickableContainerStyles = css({
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
53
|
'a, button, .has-action': {
|
|
53
54
|
position: 'relative',
|
|
54
55
|
zIndex: 1
|
|
@@ -60,12 +61,20 @@ var getContainerPaddingStyles = function getContainerPaddingStyles(size, hidePad
|
|
|
60
61
|
var previewOnLeft = childrenOptions.previewOnLeft,
|
|
61
62
|
previewOnRight = childrenOptions.previewOnRight;
|
|
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) + ".concat(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) + ".concat(gap, ");") : '');
|
|
69
78
|
};
|
|
70
79
|
var getChildrenOptions = function getChildrenOptions(children, context) {
|
|
71
80
|
var options = {};
|
|
@@ -182,6 +191,7 @@ var Container = function Container(_ref3) {
|
|
|
182
191
|
// unresolved link (unauthorized, forbidden, not found, etc.)
|
|
183
192
|
var canShowAuthTooltip = showAuthTooltip && status === 'unauthorized' && retry !== undefined;
|
|
184
193
|
var container = jsx("div", {
|
|
194
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
185
195
|
css: getContainerStyles(size, hideBackground, hideElevation, hidePadding, clickableContainer, childrenOptions),
|
|
186
196
|
"data-smart-link-container": true,
|
|
187
197
|
"data-testid": testId
|
|
@@ -14,6 +14,7 @@ var 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 @@ var 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 @@ var AtlaskitBadge = function AtlaskitBadge(_ref) {
|
|
|
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,
|
|
@@ -17,6 +17,7 @@ var MAX_COUNT = 4;
|
|
|
17
17
|
var getStyles = function getStyles(size) {
|
|
18
18
|
var styles = css({
|
|
19
19
|
display: 'inline-flex',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
21
|
ul: {
|
|
21
22
|
marginRight: "var(--ds-space-100, 0.5rem)",
|
|
22
23
|
marginTop: 0
|
|
@@ -96,6 +97,7 @@ var AvatarGroup = function AvatarGroup(_ref) {
|
|
|
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,
|
|
@@ -15,7 +15,7 @@ var badgeStyles = css({
|
|
|
15
15
|
minWidth: 'fit-content'
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
19
19
|
var iconStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tcolor: ", ";\n\tline-height: 0;\n\tvertical-align: middle;\n\t", "\n\timg,\n span,\n svg {\n\t\tline-height: 0;\n\t\tvertical-align: middle;\n\t}\n"])), "var(--ds-icon-subtle, #626F86)", getIconSizeStyles('1rem'));
|
|
20
20
|
var labelStyles = css({
|
|
21
21
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
@@ -82,6 +82,7 @@ var Badge = function Badge(_ref) {
|
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
84
84
|
return jsx("span", {
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
85
86
|
css: [badgeStyles, overrideCss],
|
|
86
87
|
"data-fit-to-content": true,
|
|
87
88
|
"data-smart-element": name,
|
|
@@ -10,7 +10,9 @@ var 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
|
var typeToDescriptorMap = {
|
|
15
17
|
created: {
|
|
16
18
|
relative: messages.created_on_relative,
|
|
@@ -68,6 +70,7 @@ var DateTime = function DateTime(_ref) {
|
|
|
68
70
|
});
|
|
69
71
|
}
|
|
70
72
|
return jsx("span", {
|
|
73
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
71
74
|
css: [styles, overrideCss],
|
|
72
75
|
"data-separator": true,
|
|
73
76
|
"data-smart-element": name,
|
|
@@ -21,21 +21,30 @@ var getPositionStyles = function getPositionStyles(position) {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
var getIconStyles = function getIconStyles(position, width) {
|
|
24
|
-
return
|
|
24
|
+
return (
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
|
+
css(getPositionStyles(position), getIconSizeStyles(width))
|
|
27
|
+
);
|
|
25
28
|
};
|
|
26
29
|
var getCustomRenderStyles = function getCustomRenderStyles(value) {
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
css(getTruncateStyles(1, value), {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
|
+
lineHeight: value,
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
|
+
fontSize: value,
|
|
37
|
+
textAlign: 'center',
|
|
38
|
+
textOverflow: 'clip',
|
|
39
|
+
WebkitBoxOrient: 'unset',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
|
+
span: {
|
|
42
|
+
margin: 0,
|
|
43
|
+
padding: 0,
|
|
44
|
+
verticalAlign: 'baseline'
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
);
|
|
39
48
|
};
|
|
40
49
|
var renderAtlaskitIcon = function renderAtlaskitIcon(icon, label, testId) {
|
|
41
50
|
if (icon) {
|
|
@@ -18,6 +18,7 @@ var getThemeStyles = function 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 @@ var getThemeStyles = function 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 @@ var getThemeStyles = function 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 @@ var getAnchorStyles = function getAnchorStyles(size, theme, maxLines, hasSpace)
|
|
|
57
62
|
var 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
|
var getMaxLines = function getMaxLines(maxLines) {
|
|
63
74
|
if (maxLines > MAXIMUM_MAX_LINES) {
|
|
@@ -104,6 +115,7 @@ var Link = function Link(_ref) {
|
|
|
104
115
|
return text ? hasWhiteSpace(text) : false;
|
|
105
116
|
}, [text]);
|
|
106
117
|
var anchor = jsx("a", _extends({
|
|
118
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
107
119
|
css: [getAnchorStyles(size, theme, getMaxLines(maxLines), hasSpace), overrideCss],
|
|
108
120
|
"data-smart-element": name,
|
|
109
121
|
"data-smart-element-link": true,
|
|
@@ -43,6 +43,7 @@ var Lozenge = function Lozenge(_ref) {
|
|
|
43
43
|
testId: "".concat(testId, "-lozenge")
|
|
44
44
|
}, text);
|
|
45
45
|
return jsx("span", {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
46
47
|
css: [styles, overrideCss],
|
|
47
48
|
"data-fit-to-content": true,
|
|
48
49
|
"data-smart-element": name,
|
|
@@ -50,7 +50,9 @@ var LozengeActionError = function LozengeActionError(_ref) {
|
|
|
50
50
|
}), jsx("span", {
|
|
51
51
|
css: textStyles(maxLineNumber),
|
|
52
52
|
"data-testid": "".concat(testId, "-error-message")
|
|
53
|
-
}, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ?
|
|
53
|
+
}, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ?
|
|
54
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
55
|
+
jsx("div", {
|
|
54
56
|
css: linkStyles
|
|
55
57
|
}, jsx("a", {
|
|
56
58
|
target: "_blank",
|
|
@@ -58,11 +60,14 @@ var LozengeActionError = function LozengeActionError(_ref) {
|
|
|
58
60
|
onClick: handlePreviewOpen
|
|
59
61
|
}, jsx(FormattedMessage, messages.open_issue_in_jira))) : null);
|
|
60
62
|
}, [errorMessage, handlePreviewOpen, isPreviewAvailable, maxLineNumber, testId]);
|
|
61
|
-
return
|
|
62
|
-
css
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
return (
|
|
64
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
65
|
+
jsx("span", {
|
|
66
|
+
css: dropdownItemGroupStyles,
|
|
67
|
+
"data-testid": "".concat(testId, "-error-item-group")
|
|
68
|
+
}, jsx(DropdownItemGroup, null, jsx(DropdownItem, {
|
|
69
|
+
testId: "".concat(testId, "-error")
|
|
70
|
+
}, content)))
|
|
71
|
+
);
|
|
67
72
|
};
|
|
68
73
|
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 var 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 @@ var 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 var 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, ".concat(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 var linkStyles = css(sharedBlockStyles, {
|
|
32
40
|
cursor: 'pointer',
|
|
33
41
|
fontSize: '0.875rem',
|
|
@@ -39,5 +47,7 @@ export var textStyles = function textStyles(maxLines) {
|
|
|
39
47
|
return css({
|
|
40
48
|
lineHeight: '1rem',
|
|
41
49
|
whiteSpace: 'normal'
|
|
42
|
-
},
|
|
50
|
+
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
|
+
getTruncateStyles(maxLines));
|
|
43
53
|
};
|