@atlaskit/smart-card 34.7.0 → 34.8.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 +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/styledOld.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +7 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +37 -37
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-buttonOld.js +73 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.js +100 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/AutomationModalEmptyStateOld.js +93 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.compiled.css +9 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +33 -29
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/AutomationModalErrorStateOld.js +50 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.compiled.css +8 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.js +28 -23
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/AutomationModalExecutionStateOld.js +43 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.compiled.css +3 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.js +24 -13
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/AutomationModalHeaderOld.js +58 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.compiled.css +5 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +31 -20
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/AutomationModalRuleOld.js +69 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.compiled.css +7 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.js +29 -26
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/AutomationModalRuleListOld.js +32 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.js +11 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +11 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/ActionFooterOld.js +72 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +13 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +32 -36
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +23 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +12 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadataOld.js +46 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +14 -19
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +6 -7
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/utils.js +1 -0
- package/dist/cjs/view/InlineCard/ErroredView/InlineCardErroredViewOld.js +118 -0
- package/dist/cjs/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/ErroredView/index.js +76 -95
- package/dist/cjs/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.js +207 -0
- package/dist/cjs/view/InlineCard/ForbiddenView/index.compiled.css +3 -0
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +126 -176
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.js +226 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +29 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +231 -286
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled-emotion.js +12 -2
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +1 -4
- package/dist/cjs/view/InlineCard/ResolvingView/InlineCardResolvingViewOld.js +92 -0
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +48 -78
- package/dist/cjs/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.js +142 -0
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +42 -63
- package/dist/cjs/view/LinkUrl/LinkWarningModal/WarningModalOld.js +61 -0
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.compiled.css +2 -0
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +25 -20
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +3 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/EmptyState.compiled.css +12 -0
- package/dist/cjs/view/RelatedLinksModal/components/EmptyState.js +27 -25
- package/dist/cjs/view/RelatedLinksModal/components/EmptyStateOld.js +41 -0
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.compiled.css +1 -0
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -11
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.compiled.css +5 -1
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +4 -12
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.compiled.css +4 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +23 -23
- package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +2 -2
- package/dist/cjs/view/RelatedLinksModal/views/resolving/RelatedLinksResolvingViewOld.js +27 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolving/index.compiled.css +5 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolving/index.js +24 -14
- package/dist/cjs/view/common/Icon.compiled.css +6 -0
- package/dist/cjs/view/common/Icon.js +22 -46
- package/dist/cjs/view/common/IconOld.js +85 -0
- package/dist/cjs/view/common/ai-prism/AIPrismOld.js +58 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/AIGlowingBorderOld.js +61 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.compiled.css +13 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +67 -74
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-containerOld.js +253 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.compiled.css +7 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +32 -34
- package/dist/cjs/view/common/ai-prism/constants.js +6 -0
- package/dist/cjs/view/common/ai-prism/index.compiled.css +8 -0
- package/dist/cjs/view/common/ai-prism/index.js +28 -31
- package/dist/cjs/view/common/ai-summary/AISummaryOld.js +65 -0
- package/dist/cjs/view/common/ai-summary/index.compiled.css +8 -0
- package/dist/cjs/view/common/ai-summary/index.js +25 -20
- package/dist/cjs/view/common/ai-summary/ulist.compiled.css +2 -0
- package/dist/cjs/view/common/ai-summary/ulist.js +16 -14
- package/dist/cjs/view/common/ai-summary/ulistOld.js +29 -0
- package/dist/cjs/view/common/stop-propagation/StopPropagationOld.js +37 -0
- package/dist/cjs/view/common/stop-propagation/index.compiled.css +3 -0
- package/dist/cjs/view/common/stop-propagation/index.js +17 -21
- package/dist/cjs/view/common/utils.js +9 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/styledOld.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +7 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +35 -35
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-buttonOld.js +64 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.js +87 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/AutomationModalEmptyStateOld.js +89 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.compiled.css +9 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +22 -21
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/AutomationModalErrorStateOld.js +44 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.compiled.css +8 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.js +22 -20
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/AutomationModalExecutionStateOld.js +37 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.compiled.css +3 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.js +18 -10
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/AutomationModalHeaderOld.js +55 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.compiled.css +5 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +23 -15
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/AutomationModalRuleOld.js +65 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.compiled.css +7 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.js +22 -22
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/AutomationModalRuleListOld.js +25 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.js +10 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +10 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/ActionFooterOld.js +66 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +13 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +25 -32
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +21 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +10 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadataOld.js +41 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -0
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +7 -12
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +5 -6
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/utils.js +1 -0
- package/dist/es2019/view/InlineCard/ErroredView/InlineCardErroredViewOld.js +98 -0
- package/dist/es2019/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/ErroredView/index.js +76 -82
- package/dist/es2019/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.js +189 -0
- package/dist/es2019/view/InlineCard/ForbiddenView/index.compiled.css +3 -0
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +123 -165
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.js +203 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +29 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +178 -220
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled-emotion.js +11 -1
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +1 -4
- package/dist/es2019/view/InlineCard/ResolvingView/InlineCardResolvingViewOld.js +70 -0
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +47 -64
- package/dist/es2019/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.js +135 -0
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +42 -63
- package/dist/es2019/view/LinkUrl/LinkWarningModal/WarningModalOld.js +50 -0
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.compiled.css +2 -0
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +25 -19
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +3 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/EmptyState.compiled.css +12 -0
- package/dist/es2019/view/RelatedLinksModal/components/EmptyState.js +20 -21
- package/dist/es2019/view/RelatedLinksModal/components/EmptyStateOld.js +35 -0
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.compiled.css +1 -0
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -6
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.compiled.css +5 -1
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +4 -12
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.compiled.css +4 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +12 -15
- package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/views/resolving/RelatedLinksResolvingViewOld.js +18 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolving/index.compiled.css +5 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolving/index.js +19 -12
- package/dist/es2019/view/common/Icon.compiled.css +6 -0
- package/dist/es2019/view/common/Icon.js +21 -44
- package/dist/es2019/view/common/IconOld.js +76 -0
- package/dist/es2019/view/common/ai-prism/AIPrismOld.js +49 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/AIGlowingBorderOld.js +51 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.compiled.css +13 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +57 -71
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-containerOld.js +243 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.compiled.css +7 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +28 -32
- package/dist/es2019/view/common/ai-prism/constants.js +6 -0
- package/dist/es2019/view/common/ai-prism/index.compiled.css +8 -0
- package/dist/es2019/view/common/ai-prism/index.js +25 -30
- package/dist/es2019/view/common/ai-summary/AISummaryOld.js +55 -0
- package/dist/es2019/view/common/ai-summary/index.compiled.css +8 -0
- package/dist/es2019/view/common/ai-summary/index.js +24 -21
- package/dist/es2019/view/common/ai-summary/ulist.compiled.css +2 -0
- package/dist/es2019/view/common/ai-summary/ulist.js +16 -15
- package/dist/es2019/view/common/ai-summary/ulistOld.js +20 -0
- package/dist/es2019/view/common/stop-propagation/StopPropagationOld.js +28 -0
- package/dist/es2019/view/common/stop-propagation/index.compiled.css +3 -0
- package/dist/es2019/view/common/stop-propagation/index.js +17 -20
- package/dist/es2019/view/common/utils.js +9 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/styledOld.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +7 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +35 -35
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-buttonOld.js +63 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.js +88 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/AutomationModalEmptyStateOld.js +86 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.compiled.css +9 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +22 -21
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/AutomationModalErrorStateOld.js +43 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.compiled.css +8 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/main.js +22 -20
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/AutomationModalExecutionStateOld.js +36 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.compiled.css +3 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.js +18 -10
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/AutomationModalHeaderOld.js +51 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.compiled.css +5 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +23 -15
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/AutomationModalRuleOld.js +62 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.compiled.css +7 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.js +22 -22
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/AutomationModalRuleListOld.js +25 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.js +10 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +10 -2
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/ActionFooterOld.js +65 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +13 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +25 -32
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +21 -6
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +10 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadataOld.js +39 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -0
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +7 -12
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +5 -6
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -0
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -0
- package/dist/esm/view/InlineCard/ErroredView/InlineCardErroredViewOld.js +111 -0
- package/dist/esm/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/esm/view/InlineCard/ErroredView/index.js +76 -95
- package/dist/esm/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.js +200 -0
- package/dist/esm/view/InlineCard/ForbiddenView/index.compiled.css +3 -0
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +126 -176
- package/dist/esm/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.compiled.css +1 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.js +219 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +29 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +231 -286
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled-emotion.js +11 -1
- package/dist/esm/view/InlineCard/ResolvedView/index.js +1 -4
- package/dist/esm/view/InlineCard/ResolvingView/InlineCardResolvingViewOld.js +85 -0
- package/dist/esm/view/InlineCard/ResolvingView/index.js +49 -79
- package/dist/esm/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.js +135 -0
- package/dist/esm/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +42 -63
- package/dist/esm/view/LinkUrl/LinkWarningModal/WarningModalOld.js +50 -0
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.compiled.css +2 -0
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +25 -19
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +3 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/EmptyState.compiled.css +12 -0
- package/dist/esm/view/RelatedLinksModal/components/EmptyState.js +20 -21
- package/dist/esm/view/RelatedLinksModal/components/EmptyStateOld.js +34 -0
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.compiled.css +1 -0
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -6
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.compiled.css +5 -1
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +4 -12
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.compiled.css +4 -0
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +12 -15
- package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/views/resolving/RelatedLinksResolvingViewOld.js +20 -0
- package/dist/esm/view/RelatedLinksModal/views/resolving/index.compiled.css +5 -0
- package/dist/esm/view/RelatedLinksModal/views/resolving/index.js +19 -12
- package/dist/esm/view/common/Icon.compiled.css +6 -0
- package/dist/esm/view/common/Icon.js +21 -44
- package/dist/esm/view/common/IconOld.js +77 -0
- package/dist/esm/view/common/ai-prism/AIPrismOld.js +50 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/AIGlowingBorderOld.js +53 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.compiled.css +13 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +62 -72
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-containerOld.js +246 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.compiled.css +7 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +28 -32
- package/dist/esm/view/common/ai-prism/constants.js +6 -0
- package/dist/esm/view/common/ai-prism/index.compiled.css +8 -0
- package/dist/esm/view/common/ai-prism/index.js +25 -30
- package/dist/esm/view/common/ai-summary/AISummaryOld.js +57 -0
- package/dist/esm/view/common/ai-summary/index.compiled.css +8 -0
- package/dist/esm/view/common/ai-summary/index.js +24 -21
- package/dist/esm/view/common/ai-summary/ulist.compiled.css +2 -0
- package/dist/esm/view/common/ai-summary/ulist.js +16 -15
- package/dist/esm/view/common/ai-summary/ulistOld.js +23 -0
- package/dist/esm/view/common/stop-propagation/StopPropagationOld.js +27 -0
- package/dist/esm/view/common/stop-propagation/index.compiled.css +3 -0
- package/dist/esm/view/common/stop-propagation/index.js +17 -20
- package/dist/esm/view/common/utils.js +9 -0
- package/dist/types/common/ui/icons/utils.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types/state/hooks/use-response/index.d.ts +1 -1
- package/dist/types/utils/analytics/click.d.ts +1 -1
- package/dist/types/view/Card/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +2 -7
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-buttonOld.d.ts +12 -0
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/AutomationModalEmptyStateOld.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/error-state/AutomationModalErrorStateOld.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/AutomationModalExecutionStateOld.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/AutomationModalHeaderOld.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/AutomationModalRuleOld.d.ts +9 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.d.ts +5 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/AutomationModalRuleListOld.d.ts +8 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-block/action-footer/ActionFooterOld.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/action-block/action-footer/index.d.ts +5 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-block/action-footer/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-block/index.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/blocks/action-block/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +3 -3
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadataOld.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/utils.d.ts +2 -1
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types/view/InlineCard/ErroredView/InlineCardErroredViewOld.d.ts +26 -0
- package/dist/types/view/InlineCard/ErroredView/index.d.ts +5 -6
- package/dist/types/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.d.ts +33 -0
- package/dist/types/view/InlineCard/ForbiddenView/index.d.ts +5 -10
- package/dist/types/view/InlineCard/Frame/styled.d.ts +2 -2
- package/dist/types/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.d.ts +33 -0
- package/dist/types/view/InlineCard/IconAndTitleLayout/index.d.ts +3 -14
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +4 -0
- package/dist/types/view/InlineCard/ResolvingView/InlineCardResolvingViewOld.d.ts +21 -0
- package/dist/types/view/InlineCard/ResolvingView/index.d.ts +1 -3
- package/dist/types/view/InlineCard/ResolvingView/styled-emotion.d.ts +0 -2
- package/dist/types/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.d.ts +26 -0
- package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +5 -1
- package/dist/types/view/InlineCard/common/action-button/index.d.ts +7 -16
- package/dist/types/view/LinkUrl/LinkWarningModal/WarningModalOld.d.ts +15 -0
- package/dist/types/view/LinkUrl/LinkWarningModal/index.d.ts +2 -2
- package/dist/types/view/LinkUrl/LinkWarningModal/styled.d.ts +3 -0
- package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +3 -2
- package/dist/types/view/RelatedLinksModal/components/EmptyStateOld.d.ts +9 -0
- package/dist/types/view/RelatedLinksModal/views/resolving/RelatedLinksResolvingViewOld.d.ts +3 -0
- package/dist/types/view/common/Icon.d.ts +2 -2
- package/dist/types/view/common/IconOld.d.ts +21 -0
- package/dist/types/view/common/ai-prism/AIPrismOld.d.ts +8 -0
- package/dist/types/view/common/ai-prism/ai-glowing-border/AIGlowingBorderOld.d.ts +14 -0
- package/dist/types/view/common/ai-prism/ai-glowing-border/animated-svg-container.d.ts +2 -7
- package/dist/types/view/common/ai-prism/ai-glowing-border/animated-svg-containerOld.d.ts +9 -0
- package/dist/types/view/common/ai-prism/ai-glowing-border/index.d.ts +2 -12
- package/dist/types/view/common/ai-prism/ai-glowing-border/types.d.ts +16 -0
- package/dist/types/view/common/ai-prism/constants.d.ts +6 -0
- package/dist/types/view/common/ai-prism/index.d.ts +2 -6
- package/dist/types/view/common/ai-summary/AISummaryOld.d.ts +38 -0
- package/dist/types/view/common/ai-summary/index.d.ts +5 -22
- package/dist/types/view/common/ai-summary/ulist.d.ts +1 -2
- package/dist/types/view/common/ai-summary/ulistOld.d.ts +8 -0
- package/dist/types/view/common/stop-propagation/StopPropagationOld.d.ts +11 -0
- package/dist/types/view/common/stop-propagation/index.d.ts +1 -2
- package/dist/types/view/common/utils.d.ts +9 -0
- package/dist/types-ts4.5/common/ui/icons/utils.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-response/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +2 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-buttonOld.d.ts +12 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.d.ts +4 -0
- 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 -0
- 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 -0
- 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 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/execution-state-message/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/AutomationModalHeaderOld.d.ts +7 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/AutomationModalRuleOld.d.ts +9 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule/main.d.ts +5 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/AutomationModalRuleListOld.d.ts +8 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/rule-list/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/action-footer/ActionFooterOld.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/action-footer/index.d.ts +5 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/action-footer/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/index.d.ts +6 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.d.ts +3 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadataOld.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +2 -1
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/ErroredView/InlineCardErroredViewOld.d.ts +26 -0
- package/dist/types-ts4.5/view/InlineCard/ErroredView/index.d.ts +5 -6
- package/dist/types-ts4.5/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.d.ts +33 -0
- package/dist/types-ts4.5/view/InlineCard/ForbiddenView/index.d.ts +5 -10
- package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +2 -2
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/IconAndTitleLayoutOld.d.ts +33 -0
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/index.d.ts +3 -14
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +4 -0
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/InlineCardResolvingViewOld.d.ts +21 -0
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +1 -3
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled-emotion.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.d.ts +26 -0
- package/dist/types-ts4.5/view/InlineCard/UnauthorisedView/index.d.ts +5 -1
- package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +7 -16
- package/dist/types-ts4.5/view/LinkUrl/LinkWarningModal/WarningModalOld.d.ts +15 -0
- package/dist/types-ts4.5/view/LinkUrl/LinkWarningModal/index.d.ts +2 -2
- package/dist/types-ts4.5/view/LinkUrl/LinkWarningModal/styled.d.ts +3 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +3 -2
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyStateOld.d.ts +9 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolving/RelatedLinksResolvingViewOld.d.ts +3 -0
- package/dist/types-ts4.5/view/common/Icon.d.ts +2 -2
- package/dist/types-ts4.5/view/common/IconOld.d.ts +21 -0
- package/dist/types-ts4.5/view/common/ai-prism/AIPrismOld.d.ts +8 -0
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/AIGlowingBorderOld.d.ts +14 -0
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/animated-svg-container.d.ts +2 -7
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/animated-svg-containerOld.d.ts +9 -0
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/index.d.ts +2 -12
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/types.d.ts +16 -0
- package/dist/types-ts4.5/view/common/ai-prism/constants.d.ts +6 -0
- package/dist/types-ts4.5/view/common/ai-prism/index.d.ts +2 -6
- package/dist/types-ts4.5/view/common/ai-summary/AISummaryOld.d.ts +38 -0
- package/dist/types-ts4.5/view/common/ai-summary/index.d.ts +5 -22
- package/dist/types-ts4.5/view/common/ai-summary/ulist.d.ts +1 -2
- package/dist/types-ts4.5/view/common/ai-summary/ulistOld.d.ts +8 -0
- package/dist/types-ts4.5/view/common/stop-propagation/StopPropagationOld.d.ts +11 -0
- package/dist/types-ts4.5/view/common/stop-propagation/index.d.ts +1 -2
- package/dist/types-ts4.5/view/common/utils.d.ts +9 -0
- package/package.json +46 -46
|
@@ -3,69 +3,52 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
3
3
|
import Spinner from '@atlaskit/spinner';
|
|
4
4
|
import { Frame } from '../Frame';
|
|
5
5
|
import { IconAndTitleLayout, IconTitleWrapper } from '../IconAndTitleLayout';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
7
|
+
import { InlineCardResolvingViewOld } from './InlineCardResolvingViewOld';
|
|
8
8
|
import { SpinnerWrapperOldVisualRefresh } from './styled';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
size: 14
|
|
38
|
-
}))))));
|
|
39
|
-
} else {
|
|
40
|
-
return /*#__PURE__*/React.createElement(Frame, {
|
|
41
|
-
withoutBackground: true,
|
|
42
|
-
testId: testId,
|
|
43
|
-
onClick: onClick,
|
|
44
|
-
isSelected: isSelected,
|
|
45
|
-
truncateInline: truncateInline
|
|
46
|
-
}, /*#__PURE__*/React.createElement(IconTitleWrapperOld, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapperOld, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
47
|
-
className: "inline-resolving-spinner"
|
|
48
|
-
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
49
|
-
size: 14
|
|
50
|
-
})))));
|
|
51
|
-
}
|
|
52
|
-
} else {
|
|
53
|
-
return /*#__PURE__*/React.createElement(Frame, {
|
|
54
|
-
testId: testId,
|
|
55
|
-
onClick: onClick,
|
|
56
|
-
isSelected: isSelected,
|
|
57
|
-
link: url,
|
|
58
|
-
truncateInline: truncateInline
|
|
59
|
-
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
60
|
-
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
61
|
-
titleTextColor: titleTextColor
|
|
62
|
-
}, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
|
|
63
|
-
size: 14
|
|
64
|
-
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
65
|
-
className: "inline-resolving-spinner"
|
|
66
|
-
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
67
|
-
size: 14
|
|
68
|
-
})))));
|
|
69
|
-
}
|
|
9
|
+
const InlineCardResolvingViewNew = ({
|
|
10
|
+
url,
|
|
11
|
+
onClick,
|
|
12
|
+
isSelected,
|
|
13
|
+
inlinePreloaderStyle,
|
|
14
|
+
testId = 'inline-card-resolving-view',
|
|
15
|
+
titleTextColor,
|
|
16
|
+
resolvingPlaceholder,
|
|
17
|
+
truncateInline
|
|
18
|
+
}) => {
|
|
19
|
+
const renderSpinner = React.useCallback(() => fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
|
|
20
|
+
size: 14
|
|
21
|
+
}) :
|
|
22
|
+
/*#__PURE__*/
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
24
|
+
React.createElement(SpinnerWrapperOldVisualRefresh, {
|
|
25
|
+
className: "inline-resolving-spinner"
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
27
|
+
size: 14
|
|
28
|
+
})), []);
|
|
29
|
+
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
30
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
31
|
+
withoutBackground: true,
|
|
32
|
+
testId: testId,
|
|
33
|
+
onClick: onClick,
|
|
34
|
+
isSelected: isSelected,
|
|
35
|
+
truncateInline: truncateInline
|
|
36
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, renderSpinner())));
|
|
70
37
|
}
|
|
71
|
-
|
|
38
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
39
|
+
testId: testId,
|
|
40
|
+
onClick: onClick,
|
|
41
|
+
isSelected: isSelected,
|
|
42
|
+
link: url,
|
|
43
|
+
truncateInline: truncateInline
|
|
44
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
45
|
+
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
46
|
+
titleTextColor: titleTextColor
|
|
47
|
+
}, renderSpinner()));
|
|
48
|
+
};
|
|
49
|
+
export const InlineCardResolvingView = props => {
|
|
50
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
51
|
+
return /*#__PURE__*/React.createElement(InlineCardResolvingViewNew, props);
|
|
52
|
+
}
|
|
53
|
+
return /*#__PURE__*/React.createElement(InlineCardResolvingViewOld, props);
|
|
54
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
+
import ButtonOld from '@atlaskit/button';
|
|
5
|
+
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
6
|
+
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
9
|
+
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
10
|
+
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
|
+
import { HoverCard } from '../../HoverCard';
|
|
13
|
+
import { ActionButton } from '../common/action-button';
|
|
14
|
+
import { Frame } from '../Frame';
|
|
15
|
+
import { AKIconWrapper } from '../Icon';
|
|
16
|
+
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
17
|
+
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
18
|
+
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
19
|
+
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
20
|
+
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
21
|
+
const iconWrapperStyles = xcss({
|
|
22
|
+
marginRight: 'space.negative.025'
|
|
23
|
+
});
|
|
24
|
+
const fallbackUnauthorizedIcon = () => {
|
|
25
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
26
|
+
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
27
|
+
as: "span",
|
|
28
|
+
xcss: iconWrapperStyles
|
|
29
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
30
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
31
|
+
label: "error",
|
|
32
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
33
|
+
LEGACY_size: "small"
|
|
34
|
+
})) : /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
35
|
+
label: "error",
|
|
36
|
+
size: "small",
|
|
37
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
38
|
+
}));
|
|
39
|
+
} else {
|
|
40
|
+
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
as: "span",
|
|
42
|
+
xcss: iconWrapperStyles
|
|
43
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
+
label: "error",
|
|
46
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
+
LEGACY_size: "small"
|
|
48
|
+
})) : /*#__PURE__*/React.createElement(AKIconWrapperOld, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
49
|
+
label: "error",
|
|
50
|
+
size: "small",
|
|
51
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export const InlineCardUnauthorizedViewOld = ({
|
|
56
|
+
url,
|
|
57
|
+
id,
|
|
58
|
+
icon,
|
|
59
|
+
onAuthorise,
|
|
60
|
+
onClick,
|
|
61
|
+
isSelected,
|
|
62
|
+
testId = 'inline-card-unauthorized-view',
|
|
63
|
+
showHoverPreview = false,
|
|
64
|
+
truncateInline,
|
|
65
|
+
context
|
|
66
|
+
}) => {
|
|
67
|
+
const frameRef = React.useRef(null);
|
|
68
|
+
const {
|
|
69
|
+
fireEvent
|
|
70
|
+
} = useAnalyticsEvents();
|
|
71
|
+
const handleConnectAccount = React.useCallback(event => {
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
event.stopPropagation();
|
|
74
|
+
if (onAuthorise) {
|
|
75
|
+
fireEvent('track.applicationAccount.authStarted', {});
|
|
76
|
+
onAuthorise();
|
|
77
|
+
}
|
|
78
|
+
}, [fireEvent, onAuthorise]);
|
|
79
|
+
const renderActionButton = React.useCallback(() => {
|
|
80
|
+
const Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
81
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
82
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
83
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
84
|
+
component: ActionButton,
|
|
85
|
+
onClick: handleConnectAccount,
|
|
86
|
+
testId: "button-connect-account"
|
|
87
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
88
|
+
values: {
|
|
89
|
+
context
|
|
90
|
+
}
|
|
91
|
+
})));
|
|
92
|
+
}
|
|
93
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
94
|
+
spacing: "none",
|
|
95
|
+
component: IconStyledButtonOldVisualRefresh,
|
|
96
|
+
onClick: handleConnectAccount,
|
|
97
|
+
testId: "button-connect-account"
|
|
98
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
99
|
+
values: {
|
|
100
|
+
context
|
|
101
|
+
}
|
|
102
|
+
}))) : undefined;
|
|
103
|
+
} else {
|
|
104
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
105
|
+
spacing: "none",
|
|
106
|
+
component: IconStyledButtonOld,
|
|
107
|
+
onClick: handleConnectAccount,
|
|
108
|
+
testId: "button-connect-account"
|
|
109
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
110
|
+
values: {
|
|
111
|
+
context
|
|
112
|
+
}
|
|
113
|
+
}))) : undefined;
|
|
114
|
+
}
|
|
115
|
+
}, [handleConnectAccount, onAuthorise, context]);
|
|
116
|
+
const inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
117
|
+
testId: testId,
|
|
118
|
+
isSelected: isSelected,
|
|
119
|
+
ref: frameRef,
|
|
120
|
+
truncateInline: truncateInline
|
|
121
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
122
|
+
icon: icon ? icon : fallbackUnauthorizedIcon(),
|
|
123
|
+
title: url,
|
|
124
|
+
link: url,
|
|
125
|
+
onClick: onClick,
|
|
126
|
+
titleColor: `var(--ds-text-subtle, ${N500})`
|
|
127
|
+
}), renderActionButton());
|
|
128
|
+
if (onAuthorise && showHoverPreview) {
|
|
129
|
+
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
130
|
+
url: url,
|
|
131
|
+
id: id
|
|
132
|
+
}, inlineCardUnauthenticatedView);
|
|
133
|
+
}
|
|
134
|
+
return inlineCardUnauthenticatedView;
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
7
|
import ButtonOld from '@atlaskit/button';
|
|
5
8
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
6
9
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
7
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import { Box
|
|
11
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
12
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
10
13
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
11
14
|
import { messages } from '../../../messages';
|
|
@@ -13,46 +16,29 @@ import { HoverCard } from '../../HoverCard';
|
|
|
13
16
|
import { ActionButton } from '../common/action-button';
|
|
14
17
|
import { Frame } from '../Frame';
|
|
15
18
|
import { AKIconWrapper } from '../Icon';
|
|
16
|
-
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
17
19
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
18
20
|
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
19
|
-
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
20
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { InlineCardUnauthorizedViewOld } from './InlineCardUnauthorizedViewOld';
|
|
23
|
+
const styles = {
|
|
24
|
+
iconWrapper: "_2hwx1i6y"
|
|
25
|
+
};
|
|
24
26
|
const fallbackUnauthorizedIcon = () => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}));
|
|
39
|
-
} else {
|
|
40
|
-
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
41
|
-
as: "span",
|
|
42
|
-
xcss: iconWrapperStyles
|
|
43
|
-
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
-
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
-
label: "error",
|
|
46
|
-
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
-
LEGACY_size: "small"
|
|
48
|
-
})) : /*#__PURE__*/React.createElement(AKIconWrapperOld, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
49
|
-
label: "error",
|
|
50
|
-
size: "small",
|
|
51
|
-
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
27
|
+
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
as: "span",
|
|
29
|
+
xcss: styles.iconWrapper
|
|
30
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
31
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
32
|
+
label: "error",
|
|
33
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
34
|
+
LEGACY_size: "small"
|
|
35
|
+
})) : /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
36
|
+
label: "error",
|
|
37
|
+
size: "small",
|
|
38
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
39
|
+
}));
|
|
54
40
|
};
|
|
55
|
-
|
|
41
|
+
const InlineCardUnauthorizedViewNew = ({
|
|
56
42
|
url,
|
|
57
43
|
id,
|
|
58
44
|
icon,
|
|
@@ -78,40 +64,27 @@ export const InlineCardUnauthorizedView = ({
|
|
|
78
64
|
}, [fireEvent, onAuthorise]);
|
|
79
65
|
const renderActionButton = React.useCallback(() => {
|
|
80
66
|
const Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
81
|
-
if (fg('
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
component: ActionButton,
|
|
85
|
-
onClick: handleConnectAccount,
|
|
86
|
-
testId: "button-connect-account"
|
|
87
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
88
|
-
values: {
|
|
89
|
-
context
|
|
90
|
-
}
|
|
91
|
-
})));
|
|
92
|
-
}
|
|
93
|
-
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
94
|
-
spacing: "none",
|
|
95
|
-
component: IconStyledButtonOldVisualRefresh,
|
|
96
|
-
onClick: handleConnectAccount,
|
|
97
|
-
testId: "button-connect-account"
|
|
98
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
99
|
-
values: {
|
|
100
|
-
context
|
|
101
|
-
}
|
|
102
|
-
}))) : undefined;
|
|
103
|
-
} else {
|
|
104
|
-
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
105
|
-
spacing: "none",
|
|
106
|
-
component: IconStyledButtonOld,
|
|
67
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
68
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
69
|
+
component: ActionButton,
|
|
107
70
|
onClick: handleConnectAccount,
|
|
108
71
|
testId: "button-connect-account"
|
|
109
72
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
110
73
|
values: {
|
|
111
74
|
context
|
|
112
75
|
}
|
|
113
|
-
})))
|
|
76
|
+
})));
|
|
114
77
|
}
|
|
78
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
79
|
+
spacing: "none",
|
|
80
|
+
component: IconStyledButtonOldVisualRefresh,
|
|
81
|
+
onClick: handleConnectAccount,
|
|
82
|
+
testId: "button-connect-account"
|
|
83
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
84
|
+
values: {
|
|
85
|
+
context
|
|
86
|
+
}
|
|
87
|
+
}))) : undefined;
|
|
115
88
|
}, [handleConnectAccount, onAuthorise, context]);
|
|
116
89
|
const inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
117
90
|
testId: testId,
|
|
@@ -132,4 +105,10 @@ export const InlineCardUnauthorizedView = ({
|
|
|
132
105
|
}, inlineCardUnauthenticatedView);
|
|
133
106
|
}
|
|
134
107
|
return inlineCardUnauthenticatedView;
|
|
108
|
+
};
|
|
109
|
+
export const InlineCardUnauthorizedView = props => {
|
|
110
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
111
|
+
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedViewNew, props);
|
|
112
|
+
}
|
|
113
|
+
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedViewOld, props);
|
|
135
114
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
|
+
import { FormattedMessage, IntlProvider } from 'react-intl-next';
|
|
9
|
+
import Button from '@atlaskit/button/standard-button';
|
|
10
|
+
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
|
+
import { breakWordsCss } from './styled';
|
|
13
|
+
const WarningModalOld = props => {
|
|
14
|
+
const {
|
|
15
|
+
isOpen,
|
|
16
|
+
unsafeLinkText,
|
|
17
|
+
url,
|
|
18
|
+
onClose,
|
|
19
|
+
onContinue,
|
|
20
|
+
intl
|
|
21
|
+
} = props;
|
|
22
|
+
const content = jsx(ModalTransition, null, isOpen && jsx(Modal, {
|
|
23
|
+
onClose: onClose,
|
|
24
|
+
testId: "link-with-safety-warning"
|
|
25
|
+
}, jsx(ModalHeader, null, jsx(ModalTitle, {
|
|
26
|
+
appearance: "warning"
|
|
27
|
+
}, jsx(FormattedMessage, messages.check_this_link))), jsx(ModalBody, null, jsx("div", {
|
|
28
|
+
css: breakWordsCss
|
|
29
|
+
}, url && unsafeLinkText && jsx(FormattedMessage, _extends({}, messages.link_safety_warning_message, {
|
|
30
|
+
values: {
|
|
31
|
+
unsafeLinkText: unsafeLinkText,
|
|
32
|
+
a: () => jsx("a", {
|
|
33
|
+
href: url,
|
|
34
|
+
target: "_blank",
|
|
35
|
+
rel: "noopener noreferrer"
|
|
36
|
+
}, url)
|
|
37
|
+
}
|
|
38
|
+
})))), jsx(ModalFooter, null, jsx(Button, {
|
|
39
|
+
appearance: "subtle",
|
|
40
|
+
onClick: onClose
|
|
41
|
+
}, jsx(FormattedMessage, messages.go_back)), jsx(Button, {
|
|
42
|
+
appearance: "warning",
|
|
43
|
+
onClick: onContinue,
|
|
44
|
+
autoFocus: true
|
|
45
|
+
}, jsx(FormattedMessage, messages.continue)))));
|
|
46
|
+
return intl ? content : jsx(IntlProvider, {
|
|
47
|
+
locale: "en"
|
|
48
|
+
}, content);
|
|
49
|
+
};
|
|
50
|
+
export default WarningModalOld;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { jsx } from '@emotion/react';
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
6
|
import { FormattedMessage, injectIntl, IntlProvider } from 'react-intl-next';
|
|
9
7
|
import Button from '@atlaskit/button/standard-button';
|
|
10
8
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { messages } from '../../../messages';
|
|
12
|
-
import
|
|
13
|
-
const
|
|
11
|
+
import WarningModalOld from './WarningModalOld';
|
|
12
|
+
const breakWordsCss = null;
|
|
13
|
+
const WarningModalNew = props => {
|
|
14
14
|
const {
|
|
15
15
|
isOpen,
|
|
16
16
|
unsafeLinkText,
|
|
@@ -19,34 +19,40 @@ const WarningModal = props => {
|
|
|
19
19
|
onContinue,
|
|
20
20
|
intl
|
|
21
21
|
} = props;
|
|
22
|
-
const content =
|
|
22
|
+
const content = /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
|
|
23
23
|
onClose: onClose,
|
|
24
24
|
testId: "link-with-safety-warning"
|
|
25
|
-
},
|
|
25
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
26
26
|
appearance: "warning"
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
}, url && unsafeLinkText &&
|
|
27
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.check_this_link))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
className: ax(["_o5726vc6 _1nmz9jpi"])
|
|
29
|
+
}, url && unsafeLinkText && /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.link_safety_warning_message, {
|
|
30
30
|
values: {
|
|
31
31
|
unsafeLinkText: unsafeLinkText,
|
|
32
|
-
a: () =>
|
|
32
|
+
a: () => /*#__PURE__*/React.createElement("a", {
|
|
33
33
|
href: url,
|
|
34
34
|
target: "_blank",
|
|
35
35
|
rel: "noopener noreferrer"
|
|
36
36
|
}, url)
|
|
37
37
|
}
|
|
38
|
-
})))),
|
|
38
|
+
})))), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
|
|
39
39
|
appearance: "subtle",
|
|
40
40
|
onClick: onClose
|
|
41
|
-
},
|
|
41
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.go_back)), /*#__PURE__*/React.createElement(Button, {
|
|
42
42
|
appearance: "warning",
|
|
43
43
|
onClick: onContinue,
|
|
44
44
|
autoFocus: true
|
|
45
|
-
},
|
|
46
|
-
return intl ? content :
|
|
45
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.continue)))));
|
|
46
|
+
return intl ? content : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
47
47
|
locale: "en"
|
|
48
48
|
}, content);
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
const Component = props => {
|
|
51
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
52
|
+
return /*#__PURE__*/React.createElement(WarningModalNew, props);
|
|
53
|
+
}
|
|
54
|
+
return /*#__PURE__*/React.createElement(WarningModalOld, props);
|
|
55
|
+
};
|
|
56
|
+
export default injectIntl(Component, {
|
|
51
57
|
enforceContext: false
|
|
52
58
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated remove on FF clean up bandicoots-compiled-migration-smartcard
|
|
6
|
+
*/
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
8
|
export const breakWordsCss = css({
|
|
6
9
|
whiteSpace: 'pre-line',
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "34.
|
|
13
|
+
packageVersion: "34.8.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}._18u01ejb{margin-left:var(--ds-space-300,24px)}
|
|
3
|
+
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
4
|
+
._1bah1h6o{justify-content:center}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
6
|
+
._2hwx1ejb{margin-right:var(--ds-space-300,24px)}
|
|
7
|
+
._2lx21bp4{flex-direction:column}
|
|
8
|
+
._4cvr1h6o{align-items:center}
|
|
9
|
+
._4t3i1osq{height:100%}
|
|
10
|
+
._otyr1ejb{margin-bottom:var(--ds-space-300,24px)}
|
|
11
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
12
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
/* EmptyState.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./EmptyState.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import Heading from '@atlaskit/heading';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
marginLeft: 'space.300',
|
|
12
|
-
marginRight: 'space.300',
|
|
13
|
-
textAlign: 'center'
|
|
14
|
-
});
|
|
15
|
-
const descriptionStyles = xcss({
|
|
16
|
-
marginTop: 'space.0',
|
|
17
|
-
marginBottom: 'space.300',
|
|
18
|
-
color: 'color.text'
|
|
19
|
-
});
|
|
20
|
-
export const EmptyState = ({
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { EmptyStateOld } from './EmptyStateOld';
|
|
9
|
+
const styles = {
|
|
10
|
+
emptyState: "_zulpu2gc _4cvr1h6o _1e0c1txw _2lx21bp4 _4t3i1osq _1bah1h6o _18u01ejb _2hwx1ejb _y3gn1h6o",
|
|
11
|
+
description: "_19pkze3t _otyr1ejb _syaz1fxt"
|
|
12
|
+
};
|
|
13
|
+
export const EmptyStateNew = ({
|
|
21
14
|
testId,
|
|
22
15
|
header,
|
|
23
16
|
description,
|
|
24
17
|
renderImage
|
|
25
18
|
}) => {
|
|
26
19
|
return /*#__PURE__*/React.createElement(Box, {
|
|
27
|
-
xcss:
|
|
20
|
+
xcss: styles.emptyState,
|
|
28
21
|
testId: testId
|
|
29
22
|
}, renderImage === null || renderImage === void 0 ? void 0 : renderImage(), /*#__PURE__*/React.createElement(Heading, {
|
|
30
23
|
size: "small"
|
|
31
24
|
}, header), description && /*#__PURE__*/React.createElement(Box, {
|
|
32
25
|
as: "p",
|
|
33
|
-
xcss:
|
|
26
|
+
xcss: styles.description
|
|
34
27
|
}, description));
|
|
28
|
+
};
|
|
29
|
+
export const EmptyState = props => {
|
|
30
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
31
|
+
return /*#__PURE__*/React.createElement(EmptyStateNew, props);
|
|
32
|
+
}
|
|
33
|
+
return /*#__PURE__*/React.createElement(EmptyStateOld, props);
|
|
35
34
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Heading from '@atlaskit/heading';
|
|
3
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
|
+
const emptyStateStyles = xcss({
|
|
5
|
+
alignItems: 'center',
|
|
6
|
+
display: 'flex',
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
gap: 'space.100',
|
|
9
|
+
height: '100%',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
marginLeft: 'space.300',
|
|
12
|
+
marginRight: 'space.300',
|
|
13
|
+
textAlign: 'center'
|
|
14
|
+
});
|
|
15
|
+
const descriptionStyles = xcss({
|
|
16
|
+
marginTop: 'space.0',
|
|
17
|
+
marginBottom: 'space.300',
|
|
18
|
+
color: 'color.text'
|
|
19
|
+
});
|
|
20
|
+
export const EmptyStateOld = ({
|
|
21
|
+
testId,
|
|
22
|
+
header,
|
|
23
|
+
description,
|
|
24
|
+
renderImage
|
|
25
|
+
}) => {
|
|
26
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
27
|
+
xcss: emptyStateStyles,
|
|
28
|
+
testId: testId
|
|
29
|
+
}, renderImage === null || renderImage === void 0 ? void 0 : renderImage(), /*#__PURE__*/React.createElement(Heading, {
|
|
30
|
+
size: "small"
|
|
31
|
+
}, header), description && /*#__PURE__*/React.createElement(Box, {
|
|
32
|
+
as: "p",
|
|
33
|
+
xcss: descriptionStyles
|
|
34
|
+
}, description));
|
|
35
|
+
};
|