@atlaskit/smart-card 34.10.1 → 34.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +61 -7
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +5 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +6 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +11 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +23 -1
- package/dist/cjs/view/FlexibleCard/components/container/index.js +72 -6
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +3 -2
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +3 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/index.compiled.css +2 -0
- package/dist/cjs/view/common/ai-summary/index.js +2 -1
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +61 -6
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +5 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +6 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +11 -2
- package/dist/es2019/view/FlexibleCard/components/container/index.compiled.css +23 -1
- package/dist/es2019/view/FlexibleCard/components/container/index.js +71 -6
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +3 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/index.compiled.css +2 -0
- package/dist/es2019/view/common/ai-summary/index.js +2 -1
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +61 -6
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +5 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +4 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +6 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +11 -2
- package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +23 -1
- package/dist/esm/view/FlexibleCard/components/container/index.js +72 -6
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +3 -2
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +3 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/index.compiled.css +2 -0
- package/dist/esm/view/common/ai-summary/index.js +2 -1
- package/dist/types/extractors/common/__mocks__/withIntl.d.ts +1 -1
- package/dist/types/ssr.d.ts +2 -2
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +1 -1
- package/dist/types/state/modal/index.d.ts +1 -1
- package/dist/types/utils/actions/to-action.d.ts +2 -2
- package/dist/types/utils/analytics/LinkAnalyticsContext.d.ts +1 -1
- package/dist/types/utils/analytics/SmartLinkAnalyticsContext.d.ts +1 -1
- package/dist/types/utils/test-utils.d.ts +2 -2
- package/dist/types/view/BlockCard/index.d.ts +2 -2
- package/dist/types/view/BlockCard/views/ResolvedViewOld.d.ts +2 -2
- package/dist/types/view/BlockCard/views/unresolved-view/UnresolvedViewOld.d.ts +2 -2
- package/dist/types/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +2 -2
- package/dist/types/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.d.ts +2 -2
- package/dist/types/view/CardWithUrl/component-lazy/LoadingCardLink.d.ts +2 -2
- package/dist/types/view/CardWithUrl/component-lazy/index.d.ts +2 -2
- package/dist/types/view/CardWithUrl/component.d.ts +2 -2
- package/dist/types/view/CardWithUrl/loader.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/IFrame.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/ImageIcon.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/styledOld.d.ts +17 -17
- package/dist/types/view/EmbedCard/views/forbidden-view/forbidden-svg/index.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/forbidden-view/index.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/not-found-view/index.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/not-found-view/not-found-svg/index.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/unauthorized-view/index.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/unauthorized-view/unauthorized-svg/index.d.ts +2 -2
- package/dist/types/view/EmbedModal/components/analytics/index.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/error-boundary/index.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/link-info/link-info-button/index.d.ts +2 -2
- package/dist/types/view/EmbedModal/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-dropdown-item/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-buttonOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/action/server-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/boolean-prompt/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/number-prompt/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/select-prompt/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/text-prompt/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/body/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/AutomationModalEmptyStateOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/empty-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/AutomationModalErrorStateOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/error-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/AutomationModalExecutionStateOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/AutomationModalHeaderOld.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/AutomationModalRuleOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/AutomationModalRuleListOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/manual-triggers-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/copy-link-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/delete-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/download-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/edit-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/follow-action/goal-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/follow-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/follow-action/projects-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/preview-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/action-block/action-footer/ActionFooterOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadataOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/AISummaryBlockResolvedViewOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/footer-block/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/footer-block/resolved/FooterBlockResolvedViewOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/metadata-block/MetadataBlockOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/common/image-icon/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/common/motion-wrapper/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/container/hover-card-control/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/error-boundary/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/preview/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/utils.d.ts +2 -2
- package/dist/types/view/FlexibleCard/index.d.ts +2 -2
- package/dist/types/view/HoverCard/components/HoverCardComponent.d.ts +2 -2
- package/dist/types/view/HoverCard/components/HoverCardContentOld.d.ts +2 -2
- package/dist/types/view/HoverCard/components/ImagePreview.d.ts +2 -2
- package/dist/types/view/HoverCard/components/ImagePreviewOld.d.ts +2 -2
- package/dist/types/view/HoverCard/components/views/forbidden/HoverCardForbiddenViewOld.d.ts +2 -2
- package/dist/types/view/HoverCard/components/views/resolved/HoverCardResolvedViewOld.d.ts +2 -2
- package/dist/types/view/HoverCard/components/views/unauthorised/HoverCardUnauthorisedViewOld.d.ts +2 -2
- package/dist/types/view/HoverCard/index.d.ts +3 -3
- package/dist/types/view/InlineCard/ErroredView/InlineCardErroredViewOld.d.ts +2 -2
- package/dist/types/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.d.ts +3 -3
- package/dist/types/view/InlineCard/Frame/styled-emotion.d.ts +2 -2
- package/dist/types/view/InlineCard/Icon-emotion.d.ts +3 -3
- package/dist/types/view/InlineCard/Icon.d.ts +1 -1
- package/dist/types/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.d.ts +1 -1
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +9 -9
- package/dist/types/view/InlineCard/ResolvedView/index.d.ts +2 -2
- package/dist/types/view/InlineCard/ResolvingView/InlineCardResolvingViewOld.d.ts +1 -1
- package/dist/types/view/InlineCard/ResolvingView/index.d.ts +1 -1
- package/dist/types/view/InlineCard/ResolvingView/styled-emotion.d.ts +1 -1
- package/dist/types/view/InlineCard/index.d.ts +2 -2
- package/dist/types/view/InlineCard/styled-emotion.d.ts +3 -3
- package/dist/types/view/InlineCard/utils/withFrameStyleControl.d.ts +1 -1
- package/dist/types/view/LinkView/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/EmptyStateOld.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/index.d.ts +2 -2
- package/dist/types/view/RelatedLinksModal/views/errored/index.d.ts +2 -2
- package/dist/types/view/RelatedLinksModal/views/resolved/index.d.ts +2 -2
- package/dist/types/view/RelatedLinksModal/views/resolving/RelatedLinksResolvingViewOld.d.ts +2 -2
- package/dist/types/view/RelatedLinksModal/views/unavailable/index.d.ts +2 -2
- package/dist/types/view/common/UnauthorisedViewContent.d.ts +2 -2
- package/dist/types/view/common/ai-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/extractors/common/__mocks__/withIntl.d.ts +1 -1
- package/dist/types-ts4.5/ssr.d.ts +2 -2
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +1 -1
- package/dist/types-ts4.5/state/modal/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/actions/to-action.d.ts +2 -2
- package/dist/types-ts4.5/utils/analytics/LinkAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/SmartLinkAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/utils/test-utils.d.ts +2 -2
- package/dist/types-ts4.5/view/BlockCard/index.d.ts +2 -2
- package/dist/types-ts4.5/view/BlockCard/views/ResolvedViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/BlockCard/views/unresolved-view/UnresolvedViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +2 -2
- package/dist/types-ts4.5/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.d.ts +2 -2
- package/dist/types-ts4.5/view/CardWithUrl/component-lazy/LoadingCardLink.d.ts +2 -2
- package/dist/types-ts4.5/view/CardWithUrl/component-lazy/index.d.ts +2 -2
- package/dist/types-ts4.5/view/CardWithUrl/component.d.ts +2 -2
- package/dist/types-ts4.5/view/CardWithUrl/loader.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/components/IFrame.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/components/ImageIcon.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/components/styledOld.d.ts +17 -17
- package/dist/types-ts4.5/view/EmbedCard/views/forbidden-view/forbidden-svg/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/forbidden-view/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/not-found-view/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/not-found-view/not-found-svg/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/unauthorized-view/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/unauthorized-view/unauthorized-svg/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedModal/components/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/error-boundary/index.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/link-info-button/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedModal/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-dropdown-item/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-buttonOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/server-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/boolean-prompt/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/number-prompt/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/select-prompt/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/text-prompt/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/body/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/AutomationModalEmptyStateOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/empty-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/AutomationModalErrorStateOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/error-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/AutomationModalExecutionStateOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/AutomationModalHeaderOld.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/AutomationModalRuleOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/AutomationModalRuleListOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/manual-triggers-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/copy-link-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/delete-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/download-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/edit-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/follow-action/goal-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/follow-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/follow-action/projects-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/preview-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/action-footer/ActionFooterOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadataOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/AISummaryBlockResolvedViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/resolved/FooterBlockResolvedViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/metadata-block/MetadataBlockOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/common/motion-wrapper/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/error-boundary/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/preview/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/index.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/HoverCardComponent.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/HoverCardContentOld.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/ImagePreview.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/ImagePreviewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/views/forbidden/HoverCardForbiddenViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/HoverCardResolvedViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/HoverCardUnauthorisedViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/index.d.ts +3 -3
- package/dist/types-ts4.5/view/InlineCard/ErroredView/InlineCardErroredViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.d.ts +3 -3
- package/dist/types-ts4.5/view/InlineCard/Frame/styled-emotion.d.ts +2 -2
- package/dist/types-ts4.5/view/InlineCard/Icon-emotion.d.ts +3 -3
- package/dist/types-ts4.5/view/InlineCard/Icon.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +9 -9
- package/dist/types-ts4.5/view/InlineCard/ResolvedView/index.d.ts +2 -2
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/InlineCardResolvingViewOld.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled-emotion.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/index.d.ts +2 -2
- package/dist/types-ts4.5/view/InlineCard/styled-emotion.d.ts +3 -3
- package/dist/types-ts4.5/view/InlineCard/utils/withFrameStyleControl.d.ts +1 -1
- package/dist/types-ts4.5/view/LinkView/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyStateOld.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/index.d.ts +2 -2
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/index.d.ts +2 -2
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/index.d.ts +2 -2
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolving/RelatedLinksResolvingViewOld.d.ts +2 -2
- package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/index.d.ts +2 -2
- package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +2 -2
- package/dist/types-ts4.5/view/common/ai-icon/index.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 34.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110748](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110748)
|
|
8
|
+
[`a3f7f14d75b3c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3f7f14d75b3c) -
|
|
9
|
+
[ux] Update inline card icons
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 34.10.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#109758](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109758)
|
|
17
|
+
[`1a1900f9bf95b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1a1900f9bf95b) -
|
|
18
|
+
[ux] Update flexible card tokens
|
|
19
|
+
|
|
3
20
|
## 34.10.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -12,10 +12,64 @@ var _3 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/presenta
|
|
|
12
12
|
var _4 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/spreadsheet/16"));
|
|
13
13
|
var _pageLiveDoc = _interopRequireDefault(require("@atlaskit/icon-lab/core/page-live-doc"));
|
|
14
14
|
var _5 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/blog/16"));
|
|
15
|
+
var _fileDocumentFilled = _interopRequireDefault(require("@atlaskit/icon/core/migration/file--document-filled"));
|
|
15
16
|
var _pageDocumentFilled = _interopRequireDefault(require("@atlaskit/icon/core/migration/page--document-filled"));
|
|
16
17
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
|
+
var _blogIcon = _interopRequireDefault(require("../../../common/ui/icons/blog-icon"));
|
|
20
|
+
var _chartBarIcon = _interopRequireDefault(require("../../../common/ui/icons/chart-bar-icon"));
|
|
21
|
+
var _fileIcon = _interopRequireDefault(require("../../../common/ui/icons/file-icon"));
|
|
22
|
+
var _listBulletIcon = _interopRequireDefault(require("../../../common/ui/icons/list-bullet-icon"));
|
|
23
|
+
var _pageIcon = _interopRequireDefault(require("../../../common/ui/icons/page-icon"));
|
|
17
24
|
var _utils = require("../../../utils");
|
|
18
25
|
var _prioritiseIcon = require("./prioritiseIcon");
|
|
26
|
+
// TODO Delete this and rename BlogIconNew to BlogIcon when cleaning platform-smart-card-icon-migration
|
|
27
|
+
var BlogIcon = function BlogIcon(props) {
|
|
28
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_blogIcon.default, props);
|
|
30
|
+
}
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_5.default, props);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// TODO Delete this and rename FileIconNew to FileIcon when cleaning platform-smart-card-icon-migration
|
|
35
|
+
var FileIcon = function FileIcon(props) {
|
|
36
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(_fileIcon.default, props);
|
|
38
|
+
}
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_2.default, props);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// TODO Delete this and rename DocumentIconNew to DocumentIcon when cleaning platform-smart-card-icon-migration
|
|
43
|
+
var DocumentIcon = function DocumentIcon(props) {
|
|
44
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_pageIcon.default, props);
|
|
46
|
+
}
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_.default, props);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// TODO Delete this and rename PresentationIconNew to PresentationIcon when cleaning platform-smart-card-icon-migration
|
|
51
|
+
var PresentationIcon = function PresentationIcon(props) {
|
|
52
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_chartBarIcon.default, props);
|
|
54
|
+
}
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_3.default, props);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// TODO Delete this and rename SpreadsheetIconNew to SpreadsheetIcon when cleaning platform-smart-card-icon-migration
|
|
59
|
+
var SpreadsheetIcon = function SpreadsheetIcon(props) {
|
|
60
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_listBulletIcon.default, props);
|
|
62
|
+
}
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(_4.default, props);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// TODO Delete this and rename DocumentFilledIconNew to DocumentFilledIcon when cleaning platform-smart-card-icon-migration
|
|
67
|
+
var DocumentFilledIcon = function DocumentFilledIcon(props) {
|
|
68
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_fileDocumentFilled.default, props);
|
|
70
|
+
}
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_pageDocumentFilled.default, props);
|
|
72
|
+
};
|
|
19
73
|
/**
|
|
20
74
|
* Extracts an icon for a document pbject
|
|
21
75
|
*
|
|
@@ -42,35 +96,35 @@ var documentFileFormatToIcon = function documentFileFormatToIcon(opts) {
|
|
|
42
96
|
var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
43
97
|
switch (type) {
|
|
44
98
|
case 'schema:BlogPosting':
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(BlogIcon, {
|
|
46
100
|
label: opts.title || 'blog',
|
|
47
101
|
testId: "blog-icon"
|
|
48
102
|
});
|
|
49
103
|
case 'schema:DigitalDocument':
|
|
50
104
|
return digitalDocumentToIcon(opts);
|
|
51
105
|
case 'schema:TextDigitalDocument':
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
106
|
+
return /*#__PURE__*/_react.default.createElement(DocumentIcon, {
|
|
53
107
|
label: opts.title || 'document',
|
|
54
108
|
testId: "document-icon"
|
|
55
109
|
});
|
|
56
110
|
case 'schema:PresentationDigitalDocument':
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
111
|
+
return /*#__PURE__*/_react.default.createElement(PresentationIcon, {
|
|
58
112
|
label: opts.title || 'presentation',
|
|
59
113
|
testId: "presentation-icon"
|
|
60
114
|
});
|
|
61
115
|
case 'schema:SpreadsheetDigitalDocument':
|
|
62
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
116
|
+
return /*#__PURE__*/_react.default.createElement(SpreadsheetIcon, {
|
|
63
117
|
label: opts.title || 'spreadsheet',
|
|
64
118
|
testId: "spreadsheet-icon"
|
|
65
119
|
});
|
|
66
120
|
case 'atlassian:Template':
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
121
|
+
return /*#__PURE__*/_react.default.createElement(DocumentFilledIcon, {
|
|
68
122
|
color: "currentColor",
|
|
69
123
|
label: opts.title || 'template',
|
|
70
124
|
testId: "document-filled-icon"
|
|
71
125
|
});
|
|
72
126
|
case 'atlassian:UndefinedLink':
|
|
73
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
127
|
+
return /*#__PURE__*/_react.default.createElement(DocumentIcon, {
|
|
74
128
|
label: opts.title || 'undefinedLink',
|
|
75
129
|
testId: "document-icon"
|
|
76
130
|
});
|
|
@@ -93,7 +147,7 @@ var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
|
|
|
93
147
|
testId: "live-doc-icon"
|
|
94
148
|
});
|
|
95
149
|
} else {
|
|
96
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
150
|
+
return /*#__PURE__*/_react.default.createElement(FileIcon, {
|
|
97
151
|
label: opts.title || 'file',
|
|
98
152
|
testId: "file-icon"
|
|
99
153
|
});
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "34.10.
|
|
14
|
+
packageVersion: "34.10.3"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -31,8 +31,11 @@ var iconSizeStyleMap = {
|
|
|
31
31
|
'1rem': "_16jlidpf _1o9zidpf _i0dl1wug _4t3i1j6v _1tke1j6v _c71l1j6v _1bsb1j6v _1ul91j6v _p12f1j6v _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna71j6v _1xjx1j6v _17521j6v _qci81j6v _15iz1j6v _erub1j6v _19l31j6v _1pr21j6v _1u5t1j6v _mezj1j6v _e2oo1j6v _w8l51j6v _1rg21j6v _q7cv1j6v _xwbj1j6v _rtys1j6v _b8nk1j6v _4x201j6v",
|
|
32
32
|
'20px': "_16jlidpf _1o9zidpf _i0dl1wug _4t3igktf _1tkegktf _c71lgktf _1bsbgktf _1ul9gktf _p12fgktf _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna7gktf _1xjxgktf _1752gktf _qci8gktf _15izgktf _erubgktf _19l3gktf _1pr2gktf _1u5tgktf _mezjgktf _e2oogktf _w8l5gktf _1rg2gktf _q7cvgktf _xwbjgktf _rtysgktf _b8nkgktf _4x20gktf"
|
|
33
33
|
};
|
|
34
|
+
|
|
35
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
36
|
+
var stackItemIconStylesOld = null;
|
|
37
|
+
var stackItemIconStylesCompiled = null;
|
|
34
38
|
var stackItemIconStyles = null;
|
|
35
|
-
var newStackItemIconStyles = null;
|
|
36
39
|
var iconStyleMap = {
|
|
37
40
|
true: "_syaz2oi6",
|
|
38
41
|
false: "_syazwdcn"
|
|
@@ -51,7 +54,7 @@ var ActionIconNew = function ActionIconNew(_ref) {
|
|
|
51
54
|
}
|
|
52
55
|
return /*#__PURE__*/React.createElement("span", {
|
|
53
56
|
"data-testid": "".concat(testId, "-icon"),
|
|
54
|
-
className: (0, _runtime.ax)([iconStyleMap[isDisabled ? 'true' : 'false'], "_1e0c1o8l"])
|
|
57
|
+
className: (0, _runtime.ax)([iconStyleMap[isDisabled ? 'true' : 'false'], (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_1e0c116y" : "_1e0c1o8l"])
|
|
55
58
|
}, icon);
|
|
56
59
|
};
|
|
57
60
|
var ActionIcon = function ActionIcon(props) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
._kkk2n7od{all:unset}.
|
|
2
|
+
._kkk2n7od{all:unset}._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
|
+
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
4
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
4
5
|
._1bsb1osq{width:100%}
|
|
5
6
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -24,6 +24,9 @@ var styles = {
|
|
|
24
24
|
button: "_kkk2n7od _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _irr3166n _1di61dty",
|
|
25
25
|
content: "_11c8qk37 _syaz1fxt"
|
|
26
26
|
};
|
|
27
|
+
var contentStyles = {
|
|
28
|
+
content: "_11c81vlj _syaz1fxt"
|
|
29
|
+
};
|
|
27
30
|
var ActionButtonNew = function ActionButtonNew(_ref) {
|
|
28
31
|
var content = _ref.content,
|
|
29
32
|
iconOption = _ref.icon,
|
|
@@ -61,7 +64,7 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
|
|
|
61
64
|
grow: "fill",
|
|
62
65
|
space: space
|
|
63
66
|
}, icon, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
64
|
-
xcss: styles.content
|
|
67
|
+
xcss: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? contentStyles.content : styles.content
|
|
65
68
|
}, content)));
|
|
66
69
|
};
|
|
67
70
|
var ActionButton = function ActionButton(props) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
._16jlkb7n{flex-grow:1}
|
|
2
2
|
._18u01ivi{margin-left:calc(var(--container-gap-left)*-1)}
|
|
3
|
+
._1bsb129b{width:calc(100% + var(--container-gap-left) + var(--container-gap-right))}
|
|
3
4
|
._1bsb1osq{width:100%}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
5
6
|
._2hwxc10g{margin-right:calc(var(--container-gap-right)*-1)}
|
|
@@ -21,6 +21,8 @@ var _actionFooter = require("./action-footer");
|
|
|
21
21
|
var _ActionBlockOld = _interopRequireDefault(require("./ActionBlockOld"));
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
25
|
+
var ignoreContainerPaddingStylesOld = null;
|
|
24
26
|
var ignoreContainerPaddingStyles = null;
|
|
25
27
|
var DEFAULT_SORT_ORDER = ['PreviewAction', 'CopyLinkAction', 'AISummaryAction'];
|
|
26
28
|
var sort = function sort(a, b) {
|
|
@@ -110,7 +112,7 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
110
112
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
111
113
|
ref: blockRef,
|
|
112
114
|
"data-testid": testId,
|
|
113
|
-
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g"])
|
|
115
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g" : "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g"])
|
|
114
116
|
}, actions, /*#__PURE__*/React.createElement(_actionFooter.ActionFooter, {
|
|
115
117
|
message: message,
|
|
116
118
|
testId: testId
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
._zulp147b{gap:var(--ds-space-250,1.25rem)}
|
|
3
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
4
|
._zulp1e9d{gap:var(--ds-space-200,1rem)}
|
|
4
5
|
._zulpcxkx{gap:var(--ds-space-100,.5rem)}
|
|
5
|
-
._zulppdf9{gap:var(--ds-space-050,.25rem)}
|
|
6
|
+
._zulppdf9{gap:var(--ds-space-050,.25rem)}
|
|
7
|
+
._zulppxbi{gap:var(--ds-space-200,1pc)}
|
|
8
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
9
|
+
._zulpv47k{gap:var(--ds-space-250,20px)}._16jlkb7n{flex-grow:1}
|
|
6
10
|
._18m915vq{overflow-y:hidden}
|
|
7
11
|
._1aaynkob >div, ._15tynkob >span{vertical-align:middle}
|
|
8
12
|
._1bah1y6m{justify-content:flex-start}
|
|
@@ -44,6 +48,7 @@
|
|
|
44
48
|
._s7n4nkob{vertical-align:middle}
|
|
45
49
|
._sudp1e54{-webkit-box-orient:vertical}
|
|
46
50
|
._vwz41j6v{line-height:1rem}
|
|
51
|
+
._vwz47vkz{line-height:1pc}
|
|
47
52
|
._y3gn1e5h{text-align:left}
|
|
48
53
|
._y3gnusic{text-align:right}
|
|
49
54
|
@supports not (-webkit-line-clamp:1){._102k1k8s{max-height:1.5rem}._102k1m1q{max-height:1.75rem}}
|
|
@@ -21,12 +21,20 @@ var alignmentStyleMap = {
|
|
|
21
21
|
right: "_1dthh9n0 _r291h9n0 _1bahesu3 _y3gnusic",
|
|
22
22
|
left: "_1dthv2br _r291v2br _1bah1y6m _y3gn1e5h"
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
26
|
+
var baseStyleBySizeOld = {
|
|
25
27
|
xlarge: "_zulp147b _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v",
|
|
26
28
|
large: "_zulp1e9d _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v",
|
|
27
29
|
medium: "_zulpcxkx _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v",
|
|
28
30
|
small: "_zulppdf9 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v"
|
|
29
31
|
};
|
|
32
|
+
var baseStyleBySize = {
|
|
33
|
+
xlarge: "_zulpv47k _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz47vkz",
|
|
34
|
+
large: "_zulppxbi _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz47vkz",
|
|
35
|
+
medium: "_zulpu2gc _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz47vkz",
|
|
36
|
+
small: "_zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz47vkz"
|
|
37
|
+
};
|
|
30
38
|
var baseStyleByDirection = {
|
|
31
39
|
horizontal: "_2lx2vrvc _4cvr1h6o",
|
|
32
40
|
vertical: "_2lx21bp4 _4cvr1y6m"
|
|
@@ -83,12 +91,13 @@ var ElementGroupNew = function ElementGroupNew(_ref) {
|
|
|
83
91
|
_ref$position = _ref.position,
|
|
84
92
|
position = _ref$position === void 0 ? _constants.SmartLinkPosition.Center : _ref$position,
|
|
85
93
|
className = _ref.className;
|
|
94
|
+
var isHorizontal = direction === _constants.SmartLinkDirection.Horizontal;
|
|
86
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
87
96
|
"data-smart-element-group": true,
|
|
88
97
|
"data-testid": testId
|
|
89
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
90
99
|
,
|
|
91
|
-
className: (0, _runtime.ax)([baseStyleBySize[size], baseStyleByDirection[direction], "_fiawglyw _1ouwidpf _f6ju1ns9", alignmentStyleMap[align], "_1ul99by0", widthStyle[width],
|
|
100
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? baseStyleBySize[size] : baseStyleBySizeOld[size], baseStyleByDirection[direction], "_fiawglyw _1ouwidpf _f6ju1ns9", alignmentStyleMap[align], "_1ul99by0", widthStyle[width], isHorizontal && "_1reo15vq _18m915vq _1e0c1ule _s7n4nkob _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _1aaynkob _15tynkob _1iu61nu9 _166k1nu9 _1div1nu9 _bmfb1nu9", isHorizontal && horizontalStyleByHeight[size], isHorizontal && align === _constants.SmartLinkAlignment.Left && gapStylesLeft[size], isHorizontal && align === _constants.SmartLinkAlignment.Right && gapStylesRight[size], positionStyle[position], className])
|
|
92
101
|
}, (0, _utils.renderChildren)(children, size));
|
|
93
102
|
};
|
|
94
103
|
var ElementGroup = function ElementGroup(props) {
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
._19itn8v0{border:var(--_vzvmm2)}
|
|
3
|
+
._19itpp12{border:var(--_18x9sjc)}
|
|
3
4
|
._1yt418y6{padding:var(--_1xumd0e)}
|
|
5
|
+
._2rkob7nn{border-radius:var(--ds-border-radius-300,9pt)}
|
|
4
6
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
7
|
+
._zulp1bpf{gap:var(--ds-space-100,8px) 0}
|
|
5
8
|
._zulp1jvo{gap:1.25rem 0}
|
|
6
9
|
._zulp1qos{gap:.5rem 0}
|
|
7
10
|
._zulpfzsm{gap:.25rem 0}
|
|
8
|
-
._zulph3jc{gap:1rem 0}
|
|
11
|
+
._zulph3jc{gap:1rem 0}
|
|
12
|
+
._zulpr2fv{gap:var(--ds-space-250,20px) 0}
|
|
13
|
+
._zulpswc3{gap:var(--ds-space-050,4px) 0}
|
|
14
|
+
._zulpzu5n{gap:var(--ds-space-200,1pc) 0}._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
9
15
|
._19bv15sf{padding-left:calc(var(--preview-block-width) + 1.25rem)}
|
|
16
|
+
._19bv16ru{padding-left:calc(var(--preview-block-width) + var(--ds-space-250, 20px))}
|
|
17
|
+
._19bv1g7w{padding-left:calc(var(--preview-block-width) + var(--ds-space-200, 1pc))}
|
|
10
18
|
._19bv1ltm{padding-left:calc(var(--preview-block-width) + .25rem)}
|
|
19
|
+
._19bv1ugb{padding-left:calc(var(--preview-block-width) + var(--ds-space-050, 4px))}
|
|
11
20
|
._19bvf557{padding-left:calc(var(--preview-block-width) + 1rem)}
|
|
21
|
+
._19bvlbes{padding-left:calc(var(--preview-block-width) + var(--ds-space-100, 8px))}
|
|
12
22
|
._19bvqox2{padding-left:calc(var(--preview-block-width) + .5rem)}
|
|
13
23
|
._19pkv77o{margin-top:var(--ds-space-025,2px)}
|
|
14
24
|
._1e0c1txw{display:flex}
|
|
@@ -16,11 +26,15 @@
|
|
|
16
26
|
._1reo15vq{overflow-x:hidden}
|
|
17
27
|
._1t4ckb7n .has-action, ._1nxdkb7n a, ._xnbykb7n button{z-index:1}
|
|
18
28
|
._1ul9idpf{min-width:0}
|
|
29
|
+
._1yob1b66{--container-gap-right:var(--ds-space-050,4px)}
|
|
30
|
+
._1yob1eak{--container-gap-right:var(--ds-space-200,16px)}
|
|
19
31
|
._1yob1j6v{--container-gap-right:1rem}
|
|
20
32
|
._1yob1k92{--container-gap-right:1.25rem}
|
|
21
33
|
._1yob1kwk{--container-gap-right:.5rem}
|
|
22
34
|
._1yob1wow{--container-gap-right:var(--_12k13bg)}
|
|
23
35
|
._1yob6mu8{--container-gap-right:.25rem}
|
|
36
|
+
._1yobu2gc{--container-gap-right:var(--ds-space-100,8px)}
|
|
37
|
+
._1yobv47k{--container-gap-right:var(--ds-space-250,20px)}
|
|
24
38
|
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
25
39
|
._2lx21bp4{flex-direction:column}
|
|
26
40
|
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
@@ -30,12 +44,20 @@
|
|
|
30
44
|
._otyrv77o{margin-bottom:var(--ds-space-025,2px)}
|
|
31
45
|
._r37x1r5k{--preview-block-width:30%}
|
|
32
46
|
._u5f315sf{padding-right:calc(var(--preview-block-width) + 1.25rem)}
|
|
47
|
+
._u5f316ru{padding-right:calc(var(--preview-block-width) + var(--ds-space-250, 20px))}
|
|
48
|
+
._u5f31g7w{padding-right:calc(var(--preview-block-width) + var(--ds-space-200, 1pc))}
|
|
33
49
|
._u5f31ltm{padding-right:calc(var(--preview-block-width) + .25rem)}
|
|
50
|
+
._u5f31ugb{padding-right:calc(var(--preview-block-width) + var(--ds-space-050, 4px))}
|
|
34
51
|
._u5f3f557{padding-right:calc(var(--preview-block-width) + 1rem)}
|
|
52
|
+
._u5f3lbes{padding-right:calc(var(--preview-block-width) + var(--ds-space-100, 8px))}
|
|
35
53
|
._u5f3qox2{padding-right:calc(var(--preview-block-width) + .5rem)}
|
|
36
54
|
._y5vk167t{--container-gap-left:var(--_73mooq)}
|
|
55
|
+
._y5vk1b66{--container-gap-left:var(--ds-space-050,4px)}
|
|
56
|
+
._y5vk1eak{--container-gap-left:var(--ds-space-200,16px)}
|
|
37
57
|
._y5vk1j6v{--container-gap-left:1rem}
|
|
38
58
|
._y5vk1k92{--container-gap-left:1.25rem}
|
|
39
59
|
._y5vk1kwk{--container-gap-left:.5rem}
|
|
40
60
|
._y5vk6mu8{--container-gap-left:.25rem}
|
|
61
|
+
._y5vku2gc{--container-gap-left:var(--ds-space-100,8px)}
|
|
62
|
+
._y5vkv47k{--container-gap-left:var(--ds-space-250,20px)}
|
|
41
63
|
._1v7y1i6y .has-action:focus, ._ufn21i6y a:focus{outline-offset:var(--ds-space-negative-025,-2px)}
|
|
@@ -100,15 +100,29 @@ var getLayeredLink = function getLayeredLink(testId, context, children, onClick)
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
var baseStyleCommon = null;
|
|
103
|
-
|
|
103
|
+
|
|
104
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
105
|
+
var backgroundStyleOld = null;
|
|
106
|
+
var backgroundStyles = null;
|
|
107
|
+
|
|
108
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
109
|
+
var elevationStylesOld = null;
|
|
104
110
|
var elevationStyles = null;
|
|
105
111
|
var clickableContainerStyles = null;
|
|
106
|
-
|
|
112
|
+
|
|
113
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
114
|
+
var gapStyleMapOld = {
|
|
107
115
|
xlarge: "_zulp1jvo",
|
|
108
116
|
large: "_zulph3jc",
|
|
109
117
|
medium: "_zulp1qos",
|
|
110
118
|
small: "_zulpfzsm"
|
|
111
119
|
};
|
|
120
|
+
var gapStyleMap = {
|
|
121
|
+
xlarge: "_zulpr2fv",
|
|
122
|
+
large: "_zulpzu5n",
|
|
123
|
+
medium: "_zulp1bpf",
|
|
124
|
+
small: "_zulpswc3"
|
|
125
|
+
};
|
|
112
126
|
|
|
113
127
|
/**
|
|
114
128
|
* Get container padding based on smart link size
|
|
@@ -116,6 +130,19 @@ var gapStyleMap = {
|
|
|
116
130
|
* at view/FlexibleCard/components/utils.tsx
|
|
117
131
|
*/
|
|
118
132
|
var getPadding = function getPadding(size) {
|
|
133
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
134
|
+
switch (size) {
|
|
135
|
+
case _constants.SmartLinkSize.XLarge:
|
|
136
|
+
return "var(--ds-space-300, 24px)";
|
|
137
|
+
case _constants.SmartLinkSize.Large:
|
|
138
|
+
return "var(--ds-space-250, 20px)";
|
|
139
|
+
case _constants.SmartLinkSize.Medium:
|
|
140
|
+
return "var(--ds-space-200, 16px)";
|
|
141
|
+
case _constants.SmartLinkSize.Small:
|
|
142
|
+
default:
|
|
143
|
+
return "var(--ds-space-100, 8px)";
|
|
144
|
+
}
|
|
145
|
+
}
|
|
119
146
|
switch (size) {
|
|
120
147
|
case _constants.SmartLinkSize.XLarge:
|
|
121
148
|
return '1.5rem';
|
|
@@ -129,6 +156,19 @@ var getPadding = function getPadding(size) {
|
|
|
129
156
|
}
|
|
130
157
|
};
|
|
131
158
|
var getGap = function getGap(size) {
|
|
159
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
160
|
+
switch (size) {
|
|
161
|
+
case _constants.SmartLinkSize.XLarge:
|
|
162
|
+
return "var(--ds-space-250, 1.25rem)";
|
|
163
|
+
case _constants.SmartLinkSize.Large:
|
|
164
|
+
return "var(--ds-space-200, 1rem)";
|
|
165
|
+
case _constants.SmartLinkSize.Medium:
|
|
166
|
+
return "var(--ds-space-100, .5rem)";
|
|
167
|
+
case _constants.SmartLinkSize.Small:
|
|
168
|
+
default:
|
|
169
|
+
return "var(--ds-space-050, .25rem)";
|
|
170
|
+
}
|
|
171
|
+
}
|
|
132
172
|
switch (size) {
|
|
133
173
|
case _constants.SmartLinkSize.XLarge:
|
|
134
174
|
return '1.25rem';
|
|
@@ -141,18 +181,34 @@ var getGap = function getGap(size) {
|
|
|
141
181
|
return '.25rem';
|
|
142
182
|
}
|
|
143
183
|
};
|
|
144
|
-
|
|
184
|
+
|
|
185
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
186
|
+
var previewOnLeftStyleMapOld = {
|
|
145
187
|
xlarge: "_19bv15sf _y5vk1k92",
|
|
146
188
|
large: "_19bvf557 _y5vk1j6v",
|
|
147
189
|
medium: "_19bvqox2 _y5vk1kwk",
|
|
148
190
|
small: "_19bv1ltm _y5vk6mu8"
|
|
149
191
|
};
|
|
150
|
-
var
|
|
192
|
+
var previewOnLeftStyleMap = {
|
|
193
|
+
xlarge: "_19bv16ru _y5vkv47k",
|
|
194
|
+
large: "_19bv1g7w _y5vk1eak",
|
|
195
|
+
medium: "_19bvlbes _y5vku2gc",
|
|
196
|
+
small: "_19bv1ugb _y5vk1b66"
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
200
|
+
var previewOnRightStyleMapOld = {
|
|
151
201
|
xlarge: "_u5f315sf _1yob1k92",
|
|
152
202
|
large: "_u5f3f557 _1yob1j6v",
|
|
153
203
|
medium: "_u5f3qox2 _1yob1kwk",
|
|
154
204
|
small: "_u5f31ltm _1yob6mu8"
|
|
155
205
|
};
|
|
206
|
+
var previewOnRightStyleMap = {
|
|
207
|
+
xlarge: "_u5f316ru _1yobv47k",
|
|
208
|
+
large: "_u5f31g7w _1yob1eak",
|
|
209
|
+
medium: "_u5f3lbes _1yobu2gc",
|
|
210
|
+
small: "_u5f31ugb _1yob1b66"
|
|
211
|
+
};
|
|
156
212
|
|
|
157
213
|
/**
|
|
158
214
|
* A container is a hidden component that build the Flexible Smart Link.
|
|
@@ -196,10 +252,20 @@ var ContainerNew = function ContainerNew(_ref3) {
|
|
|
196
252
|
// unresolved link (unauthorized, forbidden, not found, etc.)
|
|
197
253
|
var canShowAuthTooltip = showHoverPreview && status === 'unauthorized' && retry !== undefined;
|
|
198
254
|
var containerPaddingStyles = null;
|
|
199
|
-
var container = /*#__PURE__*/_react.default.createElement("div", {
|
|
255
|
+
var container = (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement("div", {
|
|
256
|
+
"data-smart-link-container": true,
|
|
257
|
+
"data-testid": testId,
|
|
258
|
+
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19itpp12 _2rkob7nn _19pkv77o _2hwxv77o _otyrv77o _18u0v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
|
|
259
|
+
style: {
|
|
260
|
+
"--_1xumd0e": (0, _runtime.ix)(padding),
|
|
261
|
+
"--_73mooq": (0, _runtime.ix)(previewOnLeft ? gap : padding),
|
|
262
|
+
"--_12k13bg": (0, _runtime.ix)(previewOnRight ? gap : padding),
|
|
263
|
+
"--_18x9sjc": (0, _runtime.ix)("1px solid ".concat("var(--ds-border, #091E4224)"))
|
|
264
|
+
}
|
|
265
|
+
}, clickableContainer ? getLayeredLink(testId, context, children, onClick) : null, renderChildren(children, size, theme, status, retry, onClick)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
200
266
|
"data-smart-link-container": true,
|
|
201
267
|
"data-testid": testId,
|
|
202
|
-
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y",
|
|
268
|
+
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMapOld[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMapOld[size], previewOnRight && previewOnRightStyleMapOld[size], !hideElevation && "_19itn8v0 _2rkopd34 _19pkv77o _2hwxv77o _otyrv77o _18u0v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
|
|
203
269
|
style: {
|
|
204
270
|
"--_1xumd0e": (0, _runtime.ix)(padding),
|
|
205
271
|
"--_73mooq": (0, _runtime.ix)(previewOnLeft ? gap : padding),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._16jlidpf{flex-grow:0}
|
|
3
4
|
._19bv1xvx{padding-left:var(--ds-space-025,.125rem)}
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
._rtys1j6v img, ._b8nk1j6v span, ._4x201j6v svg{max-width:1rem}
|
|
26
27
|
._s7n4nkob{vertical-align:middle}
|
|
27
28
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
29
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
28
30
|
._syaz1oju{color:var(--ds-icon-subtle,#626f86)}
|
|
29
31
|
._uhasidpf svg{padding-right:0}
|
|
30
32
|
._vwz4idpf{line-height:0}
|
|
@@ -21,8 +21,9 @@ var _messageMapper;
|
|
|
21
21
|
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
22
22
|
var badgeStyles = null;
|
|
23
23
|
var iconStyles = null;
|
|
24
|
-
// ${getIconSizeStyles('1rem')}
|
|
25
24
|
|
|
25
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
26
|
+
var labelStylesOld = null;
|
|
26
27
|
var labelStyles = null;
|
|
27
28
|
var messageMapper = (_messageMapper = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_messageMapper, _constants.IconType.PriorityBlocker, _messages.messages.priority_blocker), _constants.IconType.PriorityCritical, _messages.messages.priority_critical), _constants.IconType.PriorityHigh, _messages.messages.priority_high), _constants.IconType.PriorityHighest, _messages.messages.priority_highest), _constants.IconType.PriorityLow, _messages.messages.priority_low), _constants.IconType.PriorityLowest, _messages.messages.priority_lowest), _constants.IconType.PriorityMajor, _messages.messages.priority_major), _constants.IconType.PriorityMedium, _messages.messages.priority_medium), _constants.IconType.PriorityMinor, _messages.messages.priority_minor), _constants.IconType.PriorityTrivial, _messages.messages.priority_trivial), (0, _defineProperty2.default)(_messageMapper, _constants.IconType.PriorityUndefined, _messages.messages.priority_undefined));
|
|
28
29
|
var getFormattedMessageFromIcon = function getFormattedMessageFromIcon(icon) {
|
|
@@ -93,7 +94,7 @@ var BadgeNew = function BadgeNew(_ref) {
|
|
|
93
94
|
className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug _syaz1oju _vwz4idpf _s7n4nkob _4t3i1j6v _1tke1j6v _c71l1j6v _1bsb1j6v _1ul91j6v _p12f1j6v _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna71j6v _1xjx1j6v _17521j6v _qci81j6v _15iz1j6v _erub1j6v _19l31j6v _1pr21j6v _1u5t1j6v _mezj1j6v _e2oo1j6v _w8l51j6v _1rg21j6v _q7cv1j6v _xwbj1j6v _rtys1j6v _b8nk1j6v _4x201j6v _1jtnidpf _13t3idpf _rm9uidpf _rtqbnkob _e4kmnkob _z239nkob"])
|
|
94
95
|
}, badgeIcon), /*#__PURE__*/_react.default.createElement("span", {
|
|
95
96
|
"data-testid": "".concat(testId, "-label"),
|
|
96
|
-
className: (0, _runtime.ax)(["_11c8qk37 _syaz131l _19bv1xvx _s7n4nkob"])
|
|
97
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_11c81vlj _syaz1gjq _19bv1xvx _s7n4nkob" : "_11c8qk37 _syaz131l _19bv1xvx _s7n4nkob"])
|
|
97
98
|
}, formattedMessageOrLabel));
|
|
98
99
|
};
|
|
99
100
|
var Badge = function Badge(props) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._18m915vq{overflow-y:hidden}
|
|
3
4
|
._1bto1l2s{text-overflow:ellipsis}
|
|
@@ -7,4 +8,5 @@
|
|
|
7
8
|
._1yyjkb7n{-webkit-line-clamp:1}
|
|
8
9
|
._sudp1e54{-webkit-box-orient:vertical}
|
|
9
10
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
11
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
10
12
|
@supports not (-webkit-line-clamp:1){._102k1j6v{max-height:1rem}}
|
|
@@ -18,6 +18,8 @@ var _messages = require("../../../../../messages");
|
|
|
18
18
|
var _DateTimeOld = _interopRequireDefault(require("./DateTimeOld"));
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
22
|
+
var stylesOld = null;
|
|
21
23
|
var styles = null;
|
|
22
24
|
var typeToDescriptorMap = {
|
|
23
25
|
created: {
|
|
@@ -82,7 +84,7 @@ var DateTimeNew = function DateTimeNew(_ref) {
|
|
|
82
84
|
"data-testid": testId
|
|
83
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
84
86
|
,
|
|
85
|
-
className: (0, _runtime.ax)(["_11c8qk37 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", className])
|
|
87
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_11c81vlj _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v" : "_11c8qk37 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", className])
|
|
86
88
|
}, text ? "".concat(text, " ").concat(context) : /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, typeToDescriptorMap[type][typeVariant], {
|
|
87
89
|
values: {
|
|
88
90
|
context: context
|
|
@@ -21,6 +21,9 @@ var _excluded = ["content", "maxLines", "className"];
|
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
var SNIPPET_DEFAULT_MAX_LINES = 3;
|
|
24
|
+
|
|
25
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
26
|
+
var snippetBaseStyleOld = null;
|
|
24
27
|
var snippetBaseStyle = null;
|
|
25
28
|
var SnippetElementNew = function SnippetElementNew() {
|
|
26
29
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -34,7 +37,7 @@ var SnippetElementNew = function SnippetElementNew() {
|
|
|
34
37
|
content: overrideContent !== null && overrideContent !== void 0 ? overrideContent : context === null || context === void 0 ? void 0 : context.snippet,
|
|
35
38
|
maxLines: maxLines,
|
|
36
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
37
|
-
className: (0, _runtime.ax)(["_syaz1fxt _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className])
|
|
40
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_syaz1fxt _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv" : "_syaz1fxt _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className])
|
|
38
41
|
}, props));
|
|
39
42
|
};
|
|
40
43
|
var SnippetElement = function SnippetElement() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._18m915vq{overflow-y:hidden}
|
|
3
4
|
._1bto1l2s{text-overflow:ellipsis}
|
|
@@ -8,4 +9,5 @@
|
|
|
8
9
|
._o5724jg8{white-space:normal}
|
|
9
10
|
._sudp1e54{-webkit-box-orient:vertical}
|
|
10
11
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
12
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
11
13
|
@supports not (-webkit-line-clamp:1){._102klxil{max-height:var(--_ohw86c)}}
|
|
@@ -15,6 +15,8 @@ var _utils = require("../../utils");
|
|
|
15
15
|
var _TextOld = _interopRequireDefault(require("./TextOld"));
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
19
|
+
var baseStyleOld = null;
|
|
18
20
|
var baseStyle = null;
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -43,7 +45,7 @@ var TextNew = function TextNew(_ref) {
|
|
|
43
45
|
"data-testid": testId
|
|
44
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
45
47
|
,
|
|
46
|
-
className: (0, _runtime.ax)(["_11c8qk37 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102klxil", className]),
|
|
48
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_11c81vlj _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54" : "_11c8qk37 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102klxil", className]),
|
|
47
49
|
style: {
|
|
48
50
|
"--_1erfju8": (0, _runtime.ix)(maxLines),
|
|
49
51
|
"--_ohw86c": (0, _runtime.ix)("calc(".concat(maxLines, " * 1rem)"))
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "34.10.
|
|
23
|
+
packageVersion: "34.10.3",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._181u1kdv{-webkit-user-select:text}
|
|
3
4
|
._1nmz1hna{word-break:break-word}
|
|
4
5
|
._1rkw1kdv{-moz-user-select:text}
|
|
5
6
|
._o5724jg8{white-space:normal}
|
|
6
7
|
._slp31hna{word-wrap:break-word}
|
|
8
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
7
9
|
._te171kdv{-ms-user-select:text}
|
|
8
10
|
._uizt1kdv{-webkit-user-select:text;-ms-user-select:text;user-select:text}
|