@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
package/dist/esm/view/FlexibleCard/components/actions/automation-action/AutomationActionOld.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React, { lazy, useCallback } from 'react';
|
|
3
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
4
|
+
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
5
|
+
import { Text } from '@atlaskit/primitives';
|
|
6
|
+
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
7
|
+
import { ActionName } from '../../../../../constants';
|
|
8
|
+
import { messages } from '../../../../../messages';
|
|
9
|
+
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
10
|
+
import { useSmartLinkModal } from '../../../../../state/modal';
|
|
11
|
+
import Action from '../action';
|
|
12
|
+
import AutomationManualTriggersGlyph from './manual-triggers-icon';
|
|
13
|
+
import { getModalContent } from './utils';
|
|
14
|
+
var AutomationModal = /*#__PURE__*/lazy(function () {
|
|
15
|
+
return import( /* webpackChunkName: "@atlaskit-internal_smart-card-automation-modal" */'./automation-manual-triggers/manual-triggers-modal');
|
|
16
|
+
});
|
|
17
|
+
var AutomationActionOld = function AutomationActionOld(props) {
|
|
18
|
+
var _context$actions;
|
|
19
|
+
var _useIntl = useIntl(),
|
|
20
|
+
formatMessage = _useIntl.formatMessage;
|
|
21
|
+
var modal = useSmartLinkModal();
|
|
22
|
+
var onClickCallback = props.onClick;
|
|
23
|
+
var context = useFlexibleUiContext();
|
|
24
|
+
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
25
|
+
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
26
|
+
var automationActionData = context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[ActionName.AutomationAction];
|
|
27
|
+
var automationActionOnClick = useCallback(function (automationActionData) {
|
|
28
|
+
var product = automationActionData.product,
|
|
29
|
+
resourceType = automationActionData.resourceType,
|
|
30
|
+
baseAutomationUrl = automationActionData.baseAutomationUrl,
|
|
31
|
+
objectAri = automationActionData.objectAri,
|
|
32
|
+
siteAri = automationActionData.siteAri,
|
|
33
|
+
canManageAutomation = automationActionData.canManageAutomation,
|
|
34
|
+
analyticsSource = automationActionData.analyticsSource,
|
|
35
|
+
objectName = automationActionData.objectName;
|
|
36
|
+
fireEvent('ui.button.clicked.automationAction', {});
|
|
37
|
+
var _ref = getModalContent(product, resourceType) || {},
|
|
38
|
+
modalTitle = _ref.modalTitle,
|
|
39
|
+
modalDescription = _ref.modalDescription;
|
|
40
|
+
var automationModalTitle = modalTitle ? /*#__PURE__*/React.createElement(FormattedMessage, modalTitle) : undefined;
|
|
41
|
+
var automationModalDescription = modalDescription ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, modalDescription, {
|
|
42
|
+
values: {
|
|
43
|
+
name: objectName,
|
|
44
|
+
b: function b(chunks) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(Text, {
|
|
46
|
+
as: "strong"
|
|
47
|
+
}, chunks);
|
|
48
|
+
},
|
|
49
|
+
br: /*#__PURE__*/React.createElement("br", null)
|
|
50
|
+
}
|
|
51
|
+
})) : undefined;
|
|
52
|
+
modal.open( /*#__PURE__*/React.createElement(AutomationModal, {
|
|
53
|
+
baseAutomationUrl: baseAutomationUrl,
|
|
54
|
+
objectAri: objectAri,
|
|
55
|
+
siteAri: siteAri,
|
|
56
|
+
canManageAutomation: canManageAutomation,
|
|
57
|
+
analyticsSource: analyticsSource,
|
|
58
|
+
modalTitle: automationModalTitle,
|
|
59
|
+
modalDescription: automationModalDescription,
|
|
60
|
+
onClose: function onClose() {
|
|
61
|
+
return modal.close();
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
65
|
+
}, [modal, onClickCallback, fireEvent]);
|
|
66
|
+
if (!automationActionData) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
var automationActionTitle = /*#__PURE__*/React.createElement(FormattedMessage, messages.automation_action_title);
|
|
70
|
+
var automationActionTooltip = /*#__PURE__*/React.createElement(FormattedMessage, messages.automation_action_tooltip);
|
|
71
|
+
var automationActionIconLabel = formatMessage(messages.automation_action_icon_label);
|
|
72
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Action, _extends({
|
|
73
|
+
content: automationActionTitle,
|
|
74
|
+
icon: /*#__PURE__*/React.createElement(AutomationIcon, {
|
|
75
|
+
spacing: "spacious",
|
|
76
|
+
LEGACY_fallbackIcon: AutomationManualTriggersGlyph,
|
|
77
|
+
color: "currentColor",
|
|
78
|
+
label: automationActionIconLabel
|
|
79
|
+
}),
|
|
80
|
+
testId: "smart-action-automation-action",
|
|
81
|
+
tooltipMessage: automationActionTooltip
|
|
82
|
+
}, props, {
|
|
83
|
+
onClick: function onClick() {
|
|
84
|
+
return automationActionOnClick(automationActionData);
|
|
85
|
+
}
|
|
86
|
+
})));
|
|
87
|
+
};
|
|
88
|
+
export default AutomationActionOld;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defineMessages, FormattedMessage, useIntl } from 'react-intl-next';
|
|
3
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
+
import Button from '@atlaskit/button';
|
|
5
|
+
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
6
|
+
import { useAutomationMenu } from '../../menu-context';
|
|
7
|
+
import EmptyIcon from './empty-icon';
|
|
8
|
+
var i18n = defineMessages({
|
|
9
|
+
defaultEmptyStateAdminDesc: {
|
|
10
|
+
id: 'automation-menu.modal.empty.automations.admin.description',
|
|
11
|
+
defaultMessage: 'Use the manual trigger to populate a menu of selections that anyone, or people you specify, can apply as one-click automations.',
|
|
12
|
+
description: 'A description shown in the automation menu when the rule list is empty for an admin.'
|
|
13
|
+
},
|
|
14
|
+
defaultEmptyStateDesc: {
|
|
15
|
+
id: 'automation-menu.modal.empty.automations.user.description',
|
|
16
|
+
defaultMessage: 'Admins haven’t configured any manually triggered automations yet.',
|
|
17
|
+
description: 'A description shown in the automation menu when the rule list is empty for a user.'
|
|
18
|
+
},
|
|
19
|
+
learnMoreLink: {
|
|
20
|
+
id: 'automation-menu.empty-state.learn-more.link',
|
|
21
|
+
defaultMessage: 'Learn more about the manual trigger',
|
|
22
|
+
description: 'The text of a link that takes a user to the documentation for manually triggered rules in Automation for Confluence.'
|
|
23
|
+
},
|
|
24
|
+
emptyAutomationListImageAlt: {
|
|
25
|
+
id: 'automation-menu.empty-state.image.alt',
|
|
26
|
+
defaultMessage: 'Empty automation list icon',
|
|
27
|
+
description: 'Alternative text for the image that renders when the automation list is empty.'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var emptyStateStyles = xcss({
|
|
31
|
+
paddingLeft: 'space.300',
|
|
32
|
+
paddingRight: 'space.300',
|
|
33
|
+
marginTop: 'space.500'
|
|
34
|
+
});
|
|
35
|
+
var imageStyles = xcss({
|
|
36
|
+
marginTop: 'space.050',
|
|
37
|
+
marginBottom: 'space.300',
|
|
38
|
+
width: '160px',
|
|
39
|
+
height: '156px'
|
|
40
|
+
});
|
|
41
|
+
var descriptionStyles = xcss({
|
|
42
|
+
width: '360px',
|
|
43
|
+
textAlign: 'center'
|
|
44
|
+
});
|
|
45
|
+
export var AutomationModalEmptyStateOld = function AutomationModalEmptyStateOld() {
|
|
46
|
+
var _useIntl = useIntl(),
|
|
47
|
+
formatMessage = _useIntl.formatMessage;
|
|
48
|
+
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
49
|
+
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
50
|
+
var _useAutomationMenu = useAutomationMenu(),
|
|
51
|
+
canManageAutomation = _useAutomationMenu.canManageAutomation,
|
|
52
|
+
analyticsSource = _useAutomationMenu.analyticsSource,
|
|
53
|
+
emptyStateDescription = _useAutomationMenu.emptyStateDescription,
|
|
54
|
+
emptyStateAdminDescription = _useAutomationMenu.emptyStateAdminDescription;
|
|
55
|
+
var emptyStateDesc = emptyStateDescription !== null && emptyStateDescription !== void 0 ? emptyStateDescription : /*#__PURE__*/React.createElement(FormattedMessage, i18n.defaultEmptyStateDesc);
|
|
56
|
+
var adminEmptyStateDesc = emptyStateAdminDescription !== null && emptyStateAdminDescription !== void 0 ? emptyStateAdminDescription : /*#__PURE__*/React.createElement(FormattedMessage, i18n.defaultEmptyStateAdminDesc);
|
|
57
|
+
var displayedEmptyStateDesc = canManageAutomation ? adminEmptyStateDesc : emptyStateDesc;
|
|
58
|
+
return /*#__PURE__*/React.createElement(Stack, {
|
|
59
|
+
xcss: emptyStateStyles,
|
|
60
|
+
alignInline: "center",
|
|
61
|
+
alignBlock: "center",
|
|
62
|
+
grow: "fill"
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
64
|
+
xcss: imageStyles
|
|
65
|
+
}, /*#__PURE__*/React.createElement(EmptyIcon, {
|
|
66
|
+
alt: formatMessage(i18n.emptyAutomationListImageAlt)
|
|
67
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
68
|
+
xcss: descriptionStyles
|
|
69
|
+
}, displayedEmptyStateDesc, canManageAutomation && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
70
|
+
appearance: "link",
|
|
71
|
+
spacing: "none",
|
|
72
|
+
href: "https://www.atlassian.com/platform/automation",
|
|
73
|
+
target: "_blank",
|
|
74
|
+
onClick: function onClick() {
|
|
75
|
+
createAnalyticsEvent({
|
|
76
|
+
type: 'sendUIEvent',
|
|
77
|
+
data: {
|
|
78
|
+
action: 'clicked',
|
|
79
|
+
actionSubject: 'link',
|
|
80
|
+
actionSubjectId: 'learnMore',
|
|
81
|
+
source: analyticsSource
|
|
82
|
+
}
|
|
83
|
+
}).fire();
|
|
84
|
+
}
|
|
85
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, i18n.learnMoreLink)))));
|
|
86
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
2
|
+
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
3
|
+
._19pk1jfw{margin-top:var(--ds-space-500,40px)}
|
|
4
|
+
._1bsb1gwv{width:360px}
|
|
5
|
+
._1bsb1lit{width:10pc}
|
|
6
|
+
._4t3iplmo{height:156px}
|
|
7
|
+
._otyr1ejb{margin-bottom:var(--ds-space-300,24px)}
|
|
8
|
+
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
9
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./main.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl-next';
|
|
3
6
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
7
|
import Button from '@atlaskit/button';
|
|
5
|
-
import {
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { Box, Stack } from '@atlaskit/primitives/compiled';
|
|
6
10
|
import { useAutomationMenu } from '../../menu-context';
|
|
11
|
+
import { AutomationModalEmptyStateOld } from './AutomationModalEmptyStateOld';
|
|
7
12
|
import EmptyIcon from './empty-icon';
|
|
13
|
+
var styles = {
|
|
14
|
+
emptyState: "_19bv1ejb _u5f31ejb _19pk1jfw",
|
|
15
|
+
image: "_19pk1b66 _otyr1ejb _1bsb1lit _4t3iplmo",
|
|
16
|
+
description: "_1bsb1gwv _y3gn1h6o"
|
|
17
|
+
};
|
|
8
18
|
var i18n = defineMessages({
|
|
9
19
|
defaultEmptyStateAdminDesc: {
|
|
10
20
|
id: 'automation-menu.modal.empty.automations.admin.description',
|
|
@@ -27,22 +37,7 @@ var i18n = defineMessages({
|
|
|
27
37
|
description: 'Alternative text for the image that renders when the automation list is empty.'
|
|
28
38
|
}
|
|
29
39
|
});
|
|
30
|
-
var
|
|
31
|
-
paddingLeft: 'space.300',
|
|
32
|
-
paddingRight: 'space.300',
|
|
33
|
-
marginTop: 'space.500'
|
|
34
|
-
});
|
|
35
|
-
var imageStyles = xcss({
|
|
36
|
-
marginTop: 'space.050',
|
|
37
|
-
marginBottom: 'space.300',
|
|
38
|
-
width: '160px',
|
|
39
|
-
height: '156px'
|
|
40
|
-
});
|
|
41
|
-
var descriptionStyles = xcss({
|
|
42
|
-
width: '360px',
|
|
43
|
-
textAlign: 'center'
|
|
44
|
-
});
|
|
45
|
-
export var AutomationModalEmptyState = function AutomationModalEmptyState() {
|
|
40
|
+
var AutomationModalEmptyStateNew = function AutomationModalEmptyStateNew() {
|
|
46
41
|
var _useIntl = useIntl(),
|
|
47
42
|
formatMessage = _useIntl.formatMessage;
|
|
48
43
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
@@ -56,16 +51,16 @@ export var AutomationModalEmptyState = function AutomationModalEmptyState() {
|
|
|
56
51
|
var adminEmptyStateDesc = emptyStateAdminDescription !== null && emptyStateAdminDescription !== void 0 ? emptyStateAdminDescription : /*#__PURE__*/React.createElement(FormattedMessage, i18n.defaultEmptyStateAdminDesc);
|
|
57
52
|
var displayedEmptyStateDesc = canManageAutomation ? adminEmptyStateDesc : emptyStateDesc;
|
|
58
53
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
59
|
-
xcss:
|
|
54
|
+
xcss: styles.emptyState,
|
|
60
55
|
alignInline: "center",
|
|
61
56
|
alignBlock: "center",
|
|
62
57
|
grow: "fill"
|
|
63
58
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
64
|
-
xcss:
|
|
59
|
+
xcss: styles.image
|
|
65
60
|
}, /*#__PURE__*/React.createElement(EmptyIcon, {
|
|
66
61
|
alt: formatMessage(i18n.emptyAutomationListImageAlt)
|
|
67
62
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
68
|
-
xcss:
|
|
63
|
+
xcss: styles.description
|
|
69
64
|
}, displayedEmptyStateDesc, canManageAutomation && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
70
65
|
appearance: "link",
|
|
71
66
|
spacing: "none",
|
|
@@ -83,4 +78,10 @@ export var AutomationModalEmptyState = function AutomationModalEmptyState() {
|
|
|
83
78
|
}).fire();
|
|
84
79
|
}
|
|
85
80
|
}, /*#__PURE__*/React.createElement(FormattedMessage, i18n.learnMoreLink)))));
|
|
81
|
+
};
|
|
82
|
+
export var AutomationModalEmptyState = function AutomationModalEmptyState() {
|
|
83
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
84
|
+
return /*#__PURE__*/React.createElement(AutomationModalEmptyStateNew, null);
|
|
85
|
+
}
|
|
86
|
+
return /*#__PURE__*/React.createElement(AutomationModalEmptyStateOld, null);
|
|
86
87
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defineMessages, useIntl } from 'react-intl-next';
|
|
3
|
+
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
4
|
+
import ErrorIcon from './error-icon';
|
|
5
|
+
var i18n = defineMessages({
|
|
6
|
+
errorDescription: {
|
|
7
|
+
id: 'automation-menu.modal.error.description',
|
|
8
|
+
defaultMessage: 'This is taking awhile to load. Try refreshing the page.',
|
|
9
|
+
description: "Description for the error section shown when rules can't be fetched"
|
|
10
|
+
},
|
|
11
|
+
errorIconLabel: {
|
|
12
|
+
id: 'automation-menu.modal.error.image.alt',
|
|
13
|
+
defaultMessage: 'Error icon',
|
|
14
|
+
description: 'Alternative text for the image that renders when there is an error.'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var errorStateStyles = xcss({
|
|
18
|
+
textAlign: 'center',
|
|
19
|
+
marginTop: 'space.500'
|
|
20
|
+
});
|
|
21
|
+
var imageContainerStyles = xcss({
|
|
22
|
+
display: 'block',
|
|
23
|
+
maxWidth: '116px',
|
|
24
|
+
maxHeight: '156px',
|
|
25
|
+
marginBottom: 'space.300',
|
|
26
|
+
marginTop: 'space.050'
|
|
27
|
+
});
|
|
28
|
+
var descriptionStyles = xcss({
|
|
29
|
+
maxWidth: '360px'
|
|
30
|
+
});
|
|
31
|
+
export var AutomationModalErrorStateOld = function AutomationModalErrorStateOld() {
|
|
32
|
+
var _useIntl = useIntl(),
|
|
33
|
+
formatMessage = _useIntl.formatMessage;
|
|
34
|
+
return /*#__PURE__*/React.createElement(Stack, {
|
|
35
|
+
xcss: errorStateStyles,
|
|
36
|
+
alignInline: "center",
|
|
37
|
+
alignBlock: "center"
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
xcss: imageContainerStyles
|
|
40
|
+
}, /*#__PURE__*/React.createElement(ErrorIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
xcss: descriptionStyles
|
|
42
|
+
}, formatMessage(i18n.errorDescription)));
|
|
43
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
2
|
+
._19pk1jfw{margin-top:var(--ds-space-500,40px)}
|
|
3
|
+
._1e0c1ule{display:block}
|
|
4
|
+
._c71lplmo{max-height:156px}
|
|
5
|
+
._otyr1ejb{margin-bottom:var(--ds-space-300,24px)}
|
|
6
|
+
._p12f1gwv{max-width:360px}
|
|
7
|
+
._p12f7iqz{max-width:87pt}
|
|
8
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./main.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
3
|
-
import {
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { Box, Stack } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { AutomationModalErrorStateOld } from './AutomationModalErrorStateOld';
|
|
4
9
|
import ErrorIcon from './error-icon';
|
|
10
|
+
var styles = {
|
|
11
|
+
errorState: "_y3gn1h6o _19pk1jfw",
|
|
12
|
+
imageContainer: "_1e0c1ule _p12f7iqz _c71lplmo _otyr1ejb _19pk1b66",
|
|
13
|
+
description: "_p12f1gwv"
|
|
14
|
+
};
|
|
5
15
|
var i18n = defineMessages({
|
|
6
16
|
errorDescription: {
|
|
7
17
|
id: 'automation-menu.modal.error.description',
|
|
@@ -14,30 +24,22 @@ var i18n = defineMessages({
|
|
|
14
24
|
description: 'Alternative text for the image that renders when there is an error.'
|
|
15
25
|
}
|
|
16
26
|
});
|
|
17
|
-
var
|
|
18
|
-
textAlign: 'center',
|
|
19
|
-
marginTop: 'space.500'
|
|
20
|
-
});
|
|
21
|
-
var imageContainerStyles = xcss({
|
|
22
|
-
display: 'block',
|
|
23
|
-
maxWidth: '116px',
|
|
24
|
-
maxHeight: '156px',
|
|
25
|
-
marginBottom: 'space.300',
|
|
26
|
-
marginTop: 'space.050'
|
|
27
|
-
});
|
|
28
|
-
var descriptionStyles = xcss({
|
|
29
|
-
maxWidth: '360px'
|
|
30
|
-
});
|
|
31
|
-
export var AutomationModalErrorState = function AutomationModalErrorState() {
|
|
27
|
+
var AutomationModalErrorStateNew = function AutomationModalErrorStateNew() {
|
|
32
28
|
var _useIntl = useIntl(),
|
|
33
29
|
formatMessage = _useIntl.formatMessage;
|
|
34
30
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
35
|
-
xcss:
|
|
31
|
+
xcss: styles.errorState,
|
|
36
32
|
alignInline: "center",
|
|
37
33
|
alignBlock: "center"
|
|
38
34
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
39
|
-
xcss:
|
|
35
|
+
xcss: styles.imageContainer
|
|
40
36
|
}, /*#__PURE__*/React.createElement(ErrorIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
41
|
-
xcss:
|
|
37
|
+
xcss: styles.description
|
|
42
38
|
}, formatMessage(i18n.errorDescription)));
|
|
39
|
+
};
|
|
40
|
+
export var AutomationModalErrorState = function AutomationModalErrorState() {
|
|
41
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
42
|
+
return /*#__PURE__*/React.createElement(AutomationModalErrorStateNew, null);
|
|
43
|
+
}
|
|
44
|
+
return /*#__PURE__*/React.createElement(AutomationModalErrorStateOld, null);
|
|
43
45
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
3
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
|
+
import SectionMessage from '@atlaskit/section-message';
|
|
5
|
+
import { useAutomationMenu } from '../../menu-context';
|
|
6
|
+
var i18n = defineMessages({
|
|
7
|
+
ruleExecutionSuccessMessage: {
|
|
8
|
+
id: 'automation-menu.success-state.message',
|
|
9
|
+
defaultMessage: 'Your automation is in progress',
|
|
10
|
+
description: 'Message that is displayed when a users automation rule has been successfully queued.'
|
|
11
|
+
},
|
|
12
|
+
ruleExecutionErrorMessage: {
|
|
13
|
+
id: 'automation-menu.modal.error.description',
|
|
14
|
+
defaultMessage: 'Oops we ran into a problem',
|
|
15
|
+
description: "Description for the error section shown when rules can't be executed"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var messageStyling = xcss({
|
|
19
|
+
marginInline: 'space.300',
|
|
20
|
+
marginTop: 'space.100',
|
|
21
|
+
// The ModalFooter comes with a lot of built in margin, want to nudge the error message in to the footer a bit
|
|
22
|
+
marginBottom: 'space.negative.100'
|
|
23
|
+
});
|
|
24
|
+
export var AutomationModalExecutionStateOld = function AutomationModalExecutionStateOld() {
|
|
25
|
+
var _useAutomationMenu = useAutomationMenu(),
|
|
26
|
+
ruleExecutionState = _useAutomationMenu.ruleExecutionState;
|
|
27
|
+
if (ruleExecutionState === 'FAILURE') {
|
|
28
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
29
|
+
xcss: messageStyling
|
|
30
|
+
}, /*#__PURE__*/React.createElement(SectionMessage, {
|
|
31
|
+
appearance: "error"
|
|
32
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, i18n.ruleExecutionErrorMessage)));
|
|
33
|
+
} else {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./main.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
3
|
-
import {
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
4
8
|
import SectionMessage from '@atlaskit/section-message';
|
|
5
9
|
import { useAutomationMenu } from '../../menu-context';
|
|
10
|
+
import { AutomationModalExecutionStateOld } from './AutomationModalExecutionStateOld';
|
|
11
|
+
var styles = {
|
|
12
|
+
messageStyling: "_195g1ejb _19pku2gc _otyrx0bf"
|
|
13
|
+
};
|
|
6
14
|
var i18n = defineMessages({
|
|
7
15
|
ruleExecutionSuccessMessage: {
|
|
8
16
|
id: 'automation-menu.success-state.message',
|
|
@@ -15,22 +23,22 @@ var i18n = defineMessages({
|
|
|
15
23
|
description: "Description for the error section shown when rules can't be executed"
|
|
16
24
|
}
|
|
17
25
|
});
|
|
18
|
-
var
|
|
19
|
-
marginInline: 'space.300',
|
|
20
|
-
marginTop: 'space.100',
|
|
21
|
-
// The ModalFooter comes with a lot of built in margin, want to nudge the error message in to the footer a bit
|
|
22
|
-
marginBottom: 'space.negative.100'
|
|
23
|
-
});
|
|
24
|
-
export var AutomationModalExecutionState = function AutomationModalExecutionState() {
|
|
26
|
+
var AutomationModalExecutionStateNew = function AutomationModalExecutionStateNew() {
|
|
25
27
|
var _useAutomationMenu = useAutomationMenu(),
|
|
26
28
|
ruleExecutionState = _useAutomationMenu.ruleExecutionState;
|
|
27
29
|
if (ruleExecutionState === 'FAILURE') {
|
|
28
30
|
return /*#__PURE__*/React.createElement(Box, {
|
|
29
|
-
xcss: messageStyling
|
|
31
|
+
xcss: styles.messageStyling
|
|
30
32
|
}, /*#__PURE__*/React.createElement(SectionMessage, {
|
|
31
33
|
appearance: "error"
|
|
32
34
|
}, /*#__PURE__*/React.createElement(FormattedMessage, i18n.ruleExecutionErrorMessage)));
|
|
33
35
|
} else {
|
|
34
36
|
return null;
|
|
35
37
|
}
|
|
38
|
+
};
|
|
39
|
+
export var AutomationModalExecutionState = function AutomationModalExecutionState() {
|
|
40
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
41
|
+
return /*#__PURE__*/React.createElement(AutomationModalExecutionStateNew, null);
|
|
42
|
+
}
|
|
43
|
+
return /*#__PURE__*/React.createElement(AutomationModalExecutionStateOld, null);
|
|
36
44
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defineMessages, useIntl } from 'react-intl-next';
|
|
3
|
+
import Heading from '@atlaskit/heading';
|
|
4
|
+
import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
|
|
5
|
+
import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
|
|
6
|
+
import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
|
|
7
|
+
import { G50 } from '@atlaskit/theme/colors';
|
|
8
|
+
import { useAutomationMenu } from '../../menu-context';
|
|
9
|
+
var i18n = defineMessages({
|
|
10
|
+
modalHeaderIconLabel: {
|
|
11
|
+
id: 'automation-menu.modal.header.icon.label',
|
|
12
|
+
defaultMessage: 'Automation modal header icon',
|
|
13
|
+
description: 'A label for the icon in the header of the automation modal.'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
var iconStyle = xcss({
|
|
17
|
+
marginRight: 'space.150',
|
|
18
|
+
backgroundColor: 'color.background.accent.green.subtlest',
|
|
19
|
+
borderRadius: 'border.radius'
|
|
20
|
+
});
|
|
21
|
+
var modalDescriptionStyle = xcss({
|
|
22
|
+
marginTop: 'space.150'
|
|
23
|
+
});
|
|
24
|
+
export var AutomationModalHeaderOld = function AutomationModalHeaderOld(_ref) {
|
|
25
|
+
var modalTitle = _ref.modalTitle,
|
|
26
|
+
modalDescription = _ref.modalDescription;
|
|
27
|
+
var _useIntl = useIntl(),
|
|
28
|
+
formatMessage = _useIntl.formatMessage;
|
|
29
|
+
var _useAutomationMenu = useAutomationMenu(),
|
|
30
|
+
initialised = _useAutomationMenu.initialised,
|
|
31
|
+
rules = _useAutomationMenu.rules;
|
|
32
|
+
var _useModal = useModal(),
|
|
33
|
+
titleId = _useModal.titleId;
|
|
34
|
+
var showDescription = initialised && rules.length > 0 && !!modalDescription;
|
|
35
|
+
return /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Inline, {
|
|
36
|
+
alignBlock: "center"
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
38
|
+
xcss: iconStyle,
|
|
39
|
+
paddingInline: "space.050",
|
|
40
|
+
paddingBlock: "space.025"
|
|
41
|
+
}, /*#__PURE__*/React.createElement(LegacyManualTriggerIcon, {
|
|
42
|
+
size: "small",
|
|
43
|
+
label: formatMessage(i18n.modalHeaderIconLabel),
|
|
44
|
+
primaryColor: "var(--ds-icon-accent-green, ".concat(G50, ")")
|
|
45
|
+
})), /*#__PURE__*/React.createElement(Heading, {
|
|
46
|
+
size: "medium",
|
|
47
|
+
id: titleId
|
|
48
|
+
}, modalTitle)), showDescription && /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
xcss: modalDescriptionStyle
|
|
50
|
+
}, modalDescription)));
|
|
51
|
+
};
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./main.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
3
6
|
import Heading from '@atlaskit/heading';
|
|
4
7
|
import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
|
|
5
8
|
import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
|
|
6
|
-
import {
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
7
11
|
import { G50 } from '@atlaskit/theme/colors';
|
|
8
12
|
import { useAutomationMenu } from '../../menu-context';
|
|
13
|
+
import { AutomationModalHeaderOld } from './AutomationModalHeaderOld';
|
|
14
|
+
var styles = {
|
|
15
|
+
iconStyle: "_2rkoglpi _18zr1b66 _1rjcv77o _2hwxutpp",
|
|
16
|
+
modalDescriptionStyle: "_19pkutpp"
|
|
17
|
+
};
|
|
9
18
|
var i18n = defineMessages({
|
|
10
19
|
modalHeaderIconLabel: {
|
|
11
20
|
id: 'automation-menu.modal.header.icon.label',
|
|
@@ -13,15 +22,7 @@ var i18n = defineMessages({
|
|
|
13
22
|
description: 'A label for the icon in the header of the automation modal.'
|
|
14
23
|
}
|
|
15
24
|
});
|
|
16
|
-
var
|
|
17
|
-
marginRight: 'space.150',
|
|
18
|
-
backgroundColor: 'color.background.accent.green.subtlest',
|
|
19
|
-
borderRadius: 'border.radius'
|
|
20
|
-
});
|
|
21
|
-
var modalDescriptionStyle = xcss({
|
|
22
|
-
marginTop: 'space.150'
|
|
23
|
-
});
|
|
24
|
-
export var AutomationModalHeader = function AutomationModalHeader(_ref) {
|
|
25
|
+
var AutomationModalHeaderNew = function AutomationModalHeaderNew(_ref) {
|
|
25
26
|
var modalTitle = _ref.modalTitle,
|
|
26
27
|
modalDescription = _ref.modalDescription;
|
|
27
28
|
var _useIntl = useIntl(),
|
|
@@ -35,9 +36,10 @@ export var AutomationModalHeader = function AutomationModalHeader(_ref) {
|
|
|
35
36
|
return /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Inline, {
|
|
36
37
|
alignBlock: "center"
|
|
37
38
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
38
|
-
xcss: iconStyle
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
xcss: styles.iconStyle
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
41
|
+
,
|
|
42
|
+
backgroundColor: "color.background.accent.green.subtlest"
|
|
41
43
|
}, /*#__PURE__*/React.createElement(LegacyManualTriggerIcon, {
|
|
42
44
|
size: "small",
|
|
43
45
|
label: formatMessage(i18n.modalHeaderIconLabel),
|
|
@@ -46,6 +48,12 @@ export var AutomationModalHeader = function AutomationModalHeader(_ref) {
|
|
|
46
48
|
size: "medium",
|
|
47
49
|
id: titleId
|
|
48
50
|
}, modalTitle)), showDescription && /*#__PURE__*/React.createElement(Box, {
|
|
49
|
-
xcss: modalDescriptionStyle
|
|
51
|
+
xcss: styles.modalDescriptionStyle
|
|
50
52
|
}, modalDescription)));
|
|
53
|
+
};
|
|
54
|
+
export var AutomationModalHeader = function AutomationModalHeader(props) {
|
|
55
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
56
|
+
return /*#__PURE__*/React.createElement(AutomationModalHeaderNew, props);
|
|
57
|
+
}
|
|
58
|
+
return /*#__PURE__*/React.createElement(AutomationModalHeaderOld, props);
|
|
51
59
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
+
import { ButtonItem } from '@atlaskit/menu';
|
|
4
|
+
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
5
|
+
import Spinner from '@atlaskit/spinner';
|
|
6
|
+
import { useAutomationMenu } from '../../menu-context';
|
|
7
|
+
var ruleButtonStyle = xcss({
|
|
8
|
+
borderColor: 'color.border',
|
|
9
|
+
borderStyle: 'solid',
|
|
10
|
+
borderWidth: 'border.width',
|
|
11
|
+
borderRadius: 'border.radius'
|
|
12
|
+
});
|
|
13
|
+
var selectedRuleButtonStyle = xcss({
|
|
14
|
+
backgroundColor: 'color.background.accent.blue.subtlest',
|
|
15
|
+
borderColor: 'color.border.accent.blue',
|
|
16
|
+
borderStyle: 'solid',
|
|
17
|
+
borderWidth: 'border.width.outline',
|
|
18
|
+
borderRadius: 'border.radius'
|
|
19
|
+
});
|
|
20
|
+
var ruleNameStyle = xcss({
|
|
21
|
+
// Using this to increase the height of the button itself.
|
|
22
|
+
height: '28px'
|
|
23
|
+
});
|
|
24
|
+
export var AutomationModalRuleOld = function AutomationModalRuleOld(_ref) {
|
|
25
|
+
var rule = _ref.rule,
|
|
26
|
+
selectedRule = _ref.selectedRule,
|
|
27
|
+
setSelectedRule = _ref.setSelectedRule;
|
|
28
|
+
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
29
|
+
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
30
|
+
var _useAutomationMenu = useAutomationMenu(),
|
|
31
|
+
analyticsSource = _useAutomationMenu.analyticsSource,
|
|
32
|
+
invokingRuleId = _useAutomationMenu.invokingRuleId;
|
|
33
|
+
var isSelectedRule = (selectedRule === null || selectedRule === void 0 ? void 0 : selectedRule.id) === rule.id;
|
|
34
|
+
var isExecuting = rule.id === invokingRuleId;
|
|
35
|
+
var ruleOnClick = function ruleOnClick() {
|
|
36
|
+
createAnalyticsEvent({
|
|
37
|
+
type: 'sendUIEvent',
|
|
38
|
+
data: {
|
|
39
|
+
action: 'clicked',
|
|
40
|
+
actionSubject: 'button',
|
|
41
|
+
actionSubjectId: 'selectManualTriggerAutomation',
|
|
42
|
+
source: analyticsSource,
|
|
43
|
+
attributes: {
|
|
44
|
+
ruleId: rule.id.toString()
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}).fire();
|
|
48
|
+
setSelectedRule(rule);
|
|
49
|
+
};
|
|
50
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
51
|
+
xcss: isSelectedRule ? selectedRuleButtonStyle : ruleButtonStyle
|
|
52
|
+
}, /*#__PURE__*/React.createElement(ButtonItem, {
|
|
53
|
+
isDisabled: !!invokingRuleId,
|
|
54
|
+
iconBefore: isExecuting ? /*#__PURE__*/React.createElement(Spinner, {
|
|
55
|
+
size: "small"
|
|
56
|
+
}) : null,
|
|
57
|
+
onClick: ruleOnClick
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
59
|
+
xcss: ruleNameStyle,
|
|
60
|
+
alignBlock: "center"
|
|
61
|
+
}, rule.name)));
|
|
62
|
+
};
|