@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
|
@@ -1,14 +1,27 @@
|
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.AutomationModalErrorState = void 0;
|
|
8
|
-
|
|
10
|
+
require("./main.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
13
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
|
+
var _AutomationModalErrorStateOld = require("./AutomationModalErrorStateOld");
|
|
11
17
|
var _errorIcon = _interopRequireDefault(require("./error-icon"));
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
var styles = {
|
|
21
|
+
errorState: "_y3gn1h6o _19pk1jfw",
|
|
22
|
+
imageContainer: "_1e0c1ule _p12f7iqz _c71lplmo _otyr1ejb _19pk1b66",
|
|
23
|
+
description: "_p12f1gwv"
|
|
24
|
+
};
|
|
12
25
|
var i18n = (0, _reactIntlNext.defineMessages)({
|
|
13
26
|
errorDescription: {
|
|
14
27
|
id: 'automation-menu.modal.error.description',
|
|
@@ -21,30 +34,22 @@ var i18n = (0, _reactIntlNext.defineMessages)({
|
|
|
21
34
|
description: 'Alternative text for the image that renders when there is an error.'
|
|
22
35
|
}
|
|
23
36
|
});
|
|
24
|
-
var
|
|
25
|
-
textAlign: 'center',
|
|
26
|
-
marginTop: 'space.500'
|
|
27
|
-
});
|
|
28
|
-
var imageContainerStyles = (0, _primitives.xcss)({
|
|
29
|
-
display: 'block',
|
|
30
|
-
maxWidth: '116px',
|
|
31
|
-
maxHeight: '156px',
|
|
32
|
-
marginBottom: 'space.300',
|
|
33
|
-
marginTop: 'space.050'
|
|
34
|
-
});
|
|
35
|
-
var descriptionStyles = (0, _primitives.xcss)({
|
|
36
|
-
maxWidth: '360px'
|
|
37
|
-
});
|
|
38
|
-
var AutomationModalErrorState = exports.AutomationModalErrorState = function AutomationModalErrorState() {
|
|
37
|
+
var AutomationModalErrorStateNew = function AutomationModalErrorStateNew() {
|
|
39
38
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
40
39
|
formatMessage = _useIntl.formatMessage;
|
|
41
|
-
return /*#__PURE__*/
|
|
42
|
-
xcss:
|
|
40
|
+
return /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
41
|
+
xcss: styles.errorState,
|
|
43
42
|
alignInline: "center",
|
|
44
43
|
alignBlock: "center"
|
|
45
|
-
}, /*#__PURE__*/
|
|
46
|
-
xcss:
|
|
47
|
-
}, /*#__PURE__*/
|
|
48
|
-
xcss:
|
|
44
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
45
|
+
xcss: styles.imageContainer
|
|
46
|
+
}, /*#__PURE__*/React.createElement(_errorIcon.default, null)), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
47
|
+
xcss: styles.description
|
|
49
48
|
}, formatMessage(i18n.errorDescription)));
|
|
49
|
+
};
|
|
50
|
+
var AutomationModalErrorState = exports.AutomationModalErrorState = function AutomationModalErrorState() {
|
|
51
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
52
|
+
return /*#__PURE__*/React.createElement(AutomationModalErrorStateNew, null);
|
|
53
|
+
}
|
|
54
|
+
return /*#__PURE__*/React.createElement(_AutomationModalErrorStateOld.AutomationModalErrorStateOld, null);
|
|
50
55
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AutomationModalExecutionStateOld = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactIntlNext = require("react-intl-next");
|
|
10
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
|
+
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
12
|
+
var _menuContext = require("../../menu-context");
|
|
13
|
+
var i18n = (0, _reactIntlNext.defineMessages)({
|
|
14
|
+
ruleExecutionSuccessMessage: {
|
|
15
|
+
id: 'automation-menu.success-state.message',
|
|
16
|
+
defaultMessage: 'Your automation is in progress',
|
|
17
|
+
description: 'Message that is displayed when a users automation rule has been successfully queued.'
|
|
18
|
+
},
|
|
19
|
+
ruleExecutionErrorMessage: {
|
|
20
|
+
id: 'automation-menu.modal.error.description',
|
|
21
|
+
defaultMessage: 'Oops we ran into a problem',
|
|
22
|
+
description: "Description for the error section shown when rules can't be executed"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
var messageStyling = (0, _primitives.xcss)({
|
|
26
|
+
marginInline: 'space.300',
|
|
27
|
+
marginTop: 'space.100',
|
|
28
|
+
// The ModalFooter comes with a lot of built in margin, want to nudge the error message in to the footer a bit
|
|
29
|
+
marginBottom: 'space.negative.100'
|
|
30
|
+
});
|
|
31
|
+
var AutomationModalExecutionStateOld = exports.AutomationModalExecutionStateOld = function AutomationModalExecutionStateOld() {
|
|
32
|
+
var _useAutomationMenu = (0, _menuContext.useAutomationMenu)(),
|
|
33
|
+
ruleExecutionState = _useAutomationMenu.ruleExecutionState;
|
|
34
|
+
if (ruleExecutionState === 'FAILURE') {
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
36
|
+
xcss: messageStyling
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement(_sectionMessage.default, {
|
|
38
|
+
appearance: "error"
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, i18n.ruleExecutionErrorMessage)));
|
|
40
|
+
} else {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
@@ -1,15 +1,26 @@
|
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.AutomationModalExecutionState = void 0;
|
|
8
|
-
|
|
10
|
+
require("./main.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
13
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
11
16
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
12
17
|
var _menuContext = require("../../menu-context");
|
|
18
|
+
var _AutomationModalExecutionStateOld = require("./AutomationModalExecutionStateOld");
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
+
var styles = {
|
|
22
|
+
messageStyling: "_195g1ejb _19pku2gc _otyrx0bf"
|
|
23
|
+
};
|
|
13
24
|
var i18n = (0, _reactIntlNext.defineMessages)({
|
|
14
25
|
ruleExecutionSuccessMessage: {
|
|
15
26
|
id: 'automation-menu.success-state.message',
|
|
@@ -22,22 +33,22 @@ var i18n = (0, _reactIntlNext.defineMessages)({
|
|
|
22
33
|
description: "Description for the error section shown when rules can't be executed"
|
|
23
34
|
}
|
|
24
35
|
});
|
|
25
|
-
var
|
|
26
|
-
marginInline: 'space.300',
|
|
27
|
-
marginTop: 'space.100',
|
|
28
|
-
// The ModalFooter comes with a lot of built in margin, want to nudge the error message in to the footer a bit
|
|
29
|
-
marginBottom: 'space.negative.100'
|
|
30
|
-
});
|
|
31
|
-
var AutomationModalExecutionState = exports.AutomationModalExecutionState = function AutomationModalExecutionState() {
|
|
36
|
+
var AutomationModalExecutionStateNew = function AutomationModalExecutionStateNew() {
|
|
32
37
|
var _useAutomationMenu = (0, _menuContext.useAutomationMenu)(),
|
|
33
38
|
ruleExecutionState = _useAutomationMenu.ruleExecutionState;
|
|
34
39
|
if (ruleExecutionState === 'FAILURE') {
|
|
35
|
-
return /*#__PURE__*/
|
|
36
|
-
xcss: messageStyling
|
|
37
|
-
}, /*#__PURE__*/
|
|
40
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
41
|
+
xcss: styles.messageStyling
|
|
42
|
+
}, /*#__PURE__*/React.createElement(_sectionMessage.default, {
|
|
38
43
|
appearance: "error"
|
|
39
|
-
}, /*#__PURE__*/
|
|
44
|
+
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, i18n.ruleExecutionErrorMessage)));
|
|
40
45
|
} else {
|
|
41
46
|
return null;
|
|
42
47
|
}
|
|
48
|
+
};
|
|
49
|
+
var AutomationModalExecutionState = exports.AutomationModalExecutionState = function AutomationModalExecutionState() {
|
|
50
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
51
|
+
return /*#__PURE__*/React.createElement(AutomationModalExecutionStateNew, null);
|
|
52
|
+
}
|
|
53
|
+
return /*#__PURE__*/React.createElement(_AutomationModalExecutionStateOld.AutomationModalExecutionStateOld, null);
|
|
43
54
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AutomationModalHeaderOld = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactIntlNext = require("react-intl-next");
|
|
10
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
11
|
+
var _manualTriggerIcon = _interopRequireDefault(require("@atlaskit/legacy-custom-icons/manual-trigger-icon"));
|
|
12
|
+
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
13
|
+
var _primitives = require("@atlaskit/primitives");
|
|
14
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
15
|
+
var _menuContext = require("../../menu-context");
|
|
16
|
+
var i18n = (0, _reactIntlNext.defineMessages)({
|
|
17
|
+
modalHeaderIconLabel: {
|
|
18
|
+
id: 'automation-menu.modal.header.icon.label',
|
|
19
|
+
defaultMessage: 'Automation modal header icon',
|
|
20
|
+
description: 'A label for the icon in the header of the automation modal.'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
var iconStyle = (0, _primitives.xcss)({
|
|
24
|
+
marginRight: 'space.150',
|
|
25
|
+
backgroundColor: 'color.background.accent.green.subtlest',
|
|
26
|
+
borderRadius: 'border.radius'
|
|
27
|
+
});
|
|
28
|
+
var modalDescriptionStyle = (0, _primitives.xcss)({
|
|
29
|
+
marginTop: 'space.150'
|
|
30
|
+
});
|
|
31
|
+
var AutomationModalHeaderOld = exports.AutomationModalHeaderOld = function AutomationModalHeaderOld(_ref) {
|
|
32
|
+
var modalTitle = _ref.modalTitle,
|
|
33
|
+
modalDescription = _ref.modalDescription;
|
|
34
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
35
|
+
formatMessage = _useIntl.formatMessage;
|
|
36
|
+
var _useAutomationMenu = (0, _menuContext.useAutomationMenu)(),
|
|
37
|
+
initialised = _useAutomationMenu.initialised,
|
|
38
|
+
rules = _useAutomationMenu.rules;
|
|
39
|
+
var _useModal = (0, _modalDialog.useModal)(),
|
|
40
|
+
titleId = _useModal.titleId;
|
|
41
|
+
var showDescription = initialised && rules.length > 0 && !!modalDescription;
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_primitives.Stack, null, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
43
|
+
alignBlock: "center"
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
45
|
+
xcss: iconStyle,
|
|
46
|
+
paddingInline: "space.050",
|
|
47
|
+
paddingBlock: "space.025"
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_manualTriggerIcon.default, {
|
|
49
|
+
size: "small",
|
|
50
|
+
label: formatMessage(i18n.modalHeaderIconLabel),
|
|
51
|
+
primaryColor: "var(--ds-icon-accent-green, ".concat(_colors.G50, ")")
|
|
52
|
+
})), /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
53
|
+
size: "medium",
|
|
54
|
+
id: titleId
|
|
55
|
+
}, modalTitle)), showDescription && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
56
|
+
xcss: modalDescriptionStyle
|
|
57
|
+
}, modalDescription)));
|
|
58
|
+
};
|
|
@@ -1,18 +1,30 @@
|
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.AutomationModalHeader = void 0;
|
|
8
|
-
|
|
10
|
+
require("./main.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
13
|
var _reactIntlNext = require("react-intl-next");
|
|
10
14
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
11
15
|
var _manualTriggerIcon = _interopRequireDefault(require("@atlaskit/legacy-custom-icons/manual-trigger-icon"));
|
|
12
16
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
13
|
-
var
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
20
|
var _menuContext = require("../../menu-context");
|
|
21
|
+
var _AutomationModalHeaderOld = require("./AutomationModalHeaderOld");
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var styles = {
|
|
25
|
+
iconStyle: "_2rkoglpi _18zr1b66 _1rjcv77o _2hwxutpp",
|
|
26
|
+
modalDescriptionStyle: "_19pkutpp"
|
|
27
|
+
};
|
|
16
28
|
var i18n = (0, _reactIntlNext.defineMessages)({
|
|
17
29
|
modalHeaderIconLabel: {
|
|
18
30
|
id: 'automation-menu.modal.header.icon.label',
|
|
@@ -20,15 +32,7 @@ var i18n = (0, _reactIntlNext.defineMessages)({
|
|
|
20
32
|
description: 'A label for the icon in the header of the automation modal.'
|
|
21
33
|
}
|
|
22
34
|
});
|
|
23
|
-
var
|
|
24
|
-
marginRight: 'space.150',
|
|
25
|
-
backgroundColor: 'color.background.accent.green.subtlest',
|
|
26
|
-
borderRadius: 'border.radius'
|
|
27
|
-
});
|
|
28
|
-
var modalDescriptionStyle = (0, _primitives.xcss)({
|
|
29
|
-
marginTop: 'space.150'
|
|
30
|
-
});
|
|
31
|
-
var AutomationModalHeader = exports.AutomationModalHeader = function AutomationModalHeader(_ref) {
|
|
35
|
+
var AutomationModalHeaderNew = function AutomationModalHeaderNew(_ref) {
|
|
32
36
|
var modalTitle = _ref.modalTitle,
|
|
33
37
|
modalDescription = _ref.modalDescription;
|
|
34
38
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
@@ -39,20 +43,27 @@ var AutomationModalHeader = exports.AutomationModalHeader = function AutomationM
|
|
|
39
43
|
var _useModal = (0, _modalDialog.useModal)(),
|
|
40
44
|
titleId = _useModal.titleId;
|
|
41
45
|
var showDescription = initialised && rules.length > 0 && !!modalDescription;
|
|
42
|
-
return /*#__PURE__*/
|
|
46
|
+
return /*#__PURE__*/React.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/React.createElement(_compiled.Stack, null, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
43
47
|
alignBlock: "center"
|
|
44
|
-
}, /*#__PURE__*/
|
|
45
|
-
xcss: iconStyle
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
49
|
+
xcss: styles.iconStyle
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
51
|
+
,
|
|
52
|
+
backgroundColor: "color.background.accent.green.subtlest"
|
|
53
|
+
}, /*#__PURE__*/React.createElement(_manualTriggerIcon.default, {
|
|
49
54
|
size: "small",
|
|
50
55
|
label: formatMessage(i18n.modalHeaderIconLabel),
|
|
51
56
|
primaryColor: "var(--ds-icon-accent-green, ".concat(_colors.G50, ")")
|
|
52
|
-
})), /*#__PURE__*/
|
|
57
|
+
})), /*#__PURE__*/React.createElement(_heading.default, {
|
|
53
58
|
size: "medium",
|
|
54
59
|
id: titleId
|
|
55
|
-
}, modalTitle)), showDescription && /*#__PURE__*/
|
|
56
|
-
xcss: modalDescriptionStyle
|
|
60
|
+
}, modalTitle)), showDescription && /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
61
|
+
xcss: styles.modalDescriptionStyle
|
|
57
62
|
}, modalDescription)));
|
|
63
|
+
};
|
|
64
|
+
var AutomationModalHeader = exports.AutomationModalHeader = function AutomationModalHeader(props) {
|
|
65
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
66
|
+
return /*#__PURE__*/React.createElement(AutomationModalHeaderNew, props);
|
|
67
|
+
}
|
|
68
|
+
return /*#__PURE__*/React.createElement(_AutomationModalHeaderOld.AutomationModalHeaderOld, props);
|
|
58
69
|
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AutomationModalRuleOld = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
|
+
var _menu = require("@atlaskit/menu");
|
|
11
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
|
+
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
|
+
var _menuContext = require("../../menu-context");
|
|
14
|
+
var ruleButtonStyle = (0, _primitives.xcss)({
|
|
15
|
+
borderColor: 'color.border',
|
|
16
|
+
borderStyle: 'solid',
|
|
17
|
+
borderWidth: 'border.width',
|
|
18
|
+
borderRadius: 'border.radius'
|
|
19
|
+
});
|
|
20
|
+
var selectedRuleButtonStyle = (0, _primitives.xcss)({
|
|
21
|
+
backgroundColor: 'color.background.accent.blue.subtlest',
|
|
22
|
+
borderColor: 'color.border.accent.blue',
|
|
23
|
+
borderStyle: 'solid',
|
|
24
|
+
borderWidth: 'border.width.outline',
|
|
25
|
+
borderRadius: 'border.radius'
|
|
26
|
+
});
|
|
27
|
+
var ruleNameStyle = (0, _primitives.xcss)({
|
|
28
|
+
// Using this to increase the height of the button itself.
|
|
29
|
+
height: '28px'
|
|
30
|
+
});
|
|
31
|
+
var AutomationModalRuleOld = exports.AutomationModalRuleOld = function AutomationModalRuleOld(_ref) {
|
|
32
|
+
var rule = _ref.rule,
|
|
33
|
+
selectedRule = _ref.selectedRule,
|
|
34
|
+
setSelectedRule = _ref.setSelectedRule;
|
|
35
|
+
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
36
|
+
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
37
|
+
var _useAutomationMenu = (0, _menuContext.useAutomationMenu)(),
|
|
38
|
+
analyticsSource = _useAutomationMenu.analyticsSource,
|
|
39
|
+
invokingRuleId = _useAutomationMenu.invokingRuleId;
|
|
40
|
+
var isSelectedRule = (selectedRule === null || selectedRule === void 0 ? void 0 : selectedRule.id) === rule.id;
|
|
41
|
+
var isExecuting = rule.id === invokingRuleId;
|
|
42
|
+
var ruleOnClick = function ruleOnClick() {
|
|
43
|
+
createAnalyticsEvent({
|
|
44
|
+
type: 'sendUIEvent',
|
|
45
|
+
data: {
|
|
46
|
+
action: 'clicked',
|
|
47
|
+
actionSubject: 'button',
|
|
48
|
+
actionSubjectId: 'selectManualTriggerAutomation',
|
|
49
|
+
source: analyticsSource,
|
|
50
|
+
attributes: {
|
|
51
|
+
ruleId: rule.id.toString()
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}).fire();
|
|
55
|
+
setSelectedRule(rule);
|
|
56
|
+
};
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
58
|
+
xcss: isSelectedRule ? selectedRuleButtonStyle : ruleButtonStyle
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_menu.ButtonItem, {
|
|
60
|
+
isDisabled: !!invokingRuleId,
|
|
61
|
+
iconBefore: isExecuting ? /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
62
|
+
size: "small"
|
|
63
|
+
}) : null,
|
|
64
|
+
onClick: ruleOnClick
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
|
|
66
|
+
xcss: ruleNameStyle,
|
|
67
|
+
alignBlock: "center"
|
|
68
|
+
}, rule.name)));
|
|
69
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoglpi{border-radius:var(--ds-border-radius,4px)}._189e1bk5{border-width:var(--ds-border-width-outline,2px)}
|
|
3
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
|
+
._1dqonqa1{border-style:solid}
|
|
5
|
+
._1h6d15qp{border-color:var(--ds-border-accent-blue,#1d7afc)}
|
|
6
|
+
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
7
|
+
._4t3i1f4h{height:28px}
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.AutomationModalRule = void 0;
|
|
8
|
-
|
|
10
|
+
require("./main.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
14
|
var _menu = require("@atlaskit/menu");
|
|
11
|
-
var
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
17
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
18
|
var _menuContext = require("../../menu-context");
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
borderStyle: 'solid',
|
|
24
|
-
borderWidth: 'border.width.outline',
|
|
25
|
-
borderRadius: 'border.radius'
|
|
26
|
-
});
|
|
27
|
-
var ruleNameStyle = (0, _primitives.xcss)({
|
|
28
|
-
// Using this to increase the height of the button itself.
|
|
29
|
-
height: '28px'
|
|
30
|
-
});
|
|
31
|
-
var AutomationModalRule = exports.AutomationModalRule = function AutomationModalRule(_ref) {
|
|
19
|
+
var _AutomationModalRuleOld = require("./AutomationModalRuleOld");
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
var styles = {
|
|
23
|
+
ruleButtonStyle: "_2rkoglpi _1h6dmuej _1dqonqa1 _189ee4h9",
|
|
24
|
+
selectedRuleButtonStyle: "_2rkoglpi _1h6d15qp _1dqonqa1 _189e1bk5",
|
|
25
|
+
ruleNameStyle: "_4t3i1f4h"
|
|
26
|
+
};
|
|
27
|
+
var AutomationModalRuleNew = function AutomationModalRuleNew(_ref) {
|
|
32
28
|
var rule = _ref.rule,
|
|
33
29
|
selectedRule = _ref.selectedRule,
|
|
34
30
|
setSelectedRule = _ref.setSelectedRule;
|
|
@@ -54,16 +50,23 @@ var AutomationModalRule = exports.AutomationModalRule = function AutomationModal
|
|
|
54
50
|
}).fire();
|
|
55
51
|
setSelectedRule(rule);
|
|
56
52
|
};
|
|
57
|
-
return /*#__PURE__*/
|
|
58
|
-
xcss: isSelectedRule ? selectedRuleButtonStyle : ruleButtonStyle
|
|
59
|
-
|
|
53
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
54
|
+
xcss: isSelectedRule ? styles.selectedRuleButtonStyle : styles.ruleButtonStyle,
|
|
55
|
+
backgroundColor: isSelectedRule ? 'color.background.accent.blue.subtlest' : undefined
|
|
56
|
+
}, /*#__PURE__*/React.createElement(_menu.ButtonItem, {
|
|
60
57
|
isDisabled: !!invokingRuleId,
|
|
61
|
-
iconBefore: isExecuting ? /*#__PURE__*/
|
|
58
|
+
iconBefore: isExecuting ? /*#__PURE__*/React.createElement(_spinner.default, {
|
|
62
59
|
size: "small"
|
|
63
60
|
}) : null,
|
|
64
61
|
onClick: ruleOnClick
|
|
65
|
-
}, /*#__PURE__*/
|
|
66
|
-
xcss: ruleNameStyle,
|
|
62
|
+
}, /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
63
|
+
xcss: styles.ruleNameStyle,
|
|
67
64
|
alignBlock: "center"
|
|
68
65
|
}, rule.name)));
|
|
66
|
+
};
|
|
67
|
+
var AutomationModalRule = exports.AutomationModalRule = function AutomationModalRule(props) {
|
|
68
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
69
|
+
return /*#__PURE__*/React.createElement(AutomationModalRuleNew, props);
|
|
70
|
+
}
|
|
71
|
+
return /*#__PURE__*/React.createElement(_AutomationModalRuleOld.AutomationModalRuleOld, props);
|
|
69
72
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AutomationModalRuleListOld = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _menu = require("@atlaskit/menu");
|
|
10
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
|
+
var _menuContext = require("../../menu-context");
|
|
12
|
+
var _emptyState = require("../empty-state");
|
|
13
|
+
var _rule = require("../rule");
|
|
14
|
+
var AutomationModalRuleListOld = exports.AutomationModalRuleListOld = function AutomationModalRuleListOld(_ref) {
|
|
15
|
+
var selectedRule = _ref.selectedRule,
|
|
16
|
+
setSelectedRule = _ref.setSelectedRule;
|
|
17
|
+
var _useAutomationMenu = (0, _menuContext.useAutomationMenu)(),
|
|
18
|
+
rules = _useAutomationMenu.rules;
|
|
19
|
+
if (rules.length === 0) {
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_emptyState.AutomationModalEmptyState, null);
|
|
21
|
+
}
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_menu.MenuGroup, null, /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
|
|
23
|
+
space: "space.050"
|
|
24
|
+
}, rules.map(function (rule) {
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_rule.AutomationModalRule, {
|
|
26
|
+
key: "manual-rule-".concat(rule.id),
|
|
27
|
+
rule: rule,
|
|
28
|
+
selectedRule: selectedRule,
|
|
29
|
+
setSelectedRule: setSelectedRule
|
|
30
|
+
});
|
|
31
|
+
})));
|
|
32
|
+
};
|
|
@@ -7,11 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.AutomationModalRuleList = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _menu = require("@atlaskit/menu");
|
|
10
|
-
var
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
11
12
|
var _menuContext = require("../../menu-context");
|
|
12
13
|
var _emptyState = require("../empty-state");
|
|
13
14
|
var _rule = require("../rule");
|
|
14
|
-
var
|
|
15
|
+
var _AutomationModalRuleListOld = require("./AutomationModalRuleListOld");
|
|
16
|
+
var AutomationModalRuleListNew = function AutomationModalRuleListNew(_ref) {
|
|
15
17
|
var selectedRule = _ref.selectedRule,
|
|
16
18
|
setSelectedRule = _ref.setSelectedRule;
|
|
17
19
|
var _useAutomationMenu = (0, _menuContext.useAutomationMenu)(),
|
|
@@ -19,7 +21,7 @@ var AutomationModalRuleList = exports.AutomationModalRuleList = function Automat
|
|
|
19
21
|
if (rules.length === 0) {
|
|
20
22
|
return /*#__PURE__*/_react.default.createElement(_emptyState.AutomationModalEmptyState, null);
|
|
21
23
|
}
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_menu.MenuGroup, null, /*#__PURE__*/_react.default.createElement(
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_menu.MenuGroup, null, /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
23
25
|
space: "space.050"
|
|
24
26
|
}, rules.map(function (rule) {
|
|
25
27
|
return /*#__PURE__*/_react.default.createElement(_rule.AutomationModalRule, {
|
|
@@ -29,4 +31,10 @@ var AutomationModalRuleList = exports.AutomationModalRuleList = function Automat
|
|
|
29
31
|
setSelectedRule: setSelectedRule
|
|
30
32
|
});
|
|
31
33
|
})));
|
|
34
|
+
};
|
|
35
|
+
var AutomationModalRuleList = exports.AutomationModalRuleList = function AutomationModalRuleList(props) {
|
|
36
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(AutomationModalRuleListNew, props);
|
|
38
|
+
}
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_AutomationModalRuleListOld.AutomationModalRuleListOld, props);
|
|
32
40
|
};
|
|
@@ -10,13 +10,15 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _automation = _interopRequireDefault(require("@atlaskit/icon/core/automation"));
|
|
13
|
-
var
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
15
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
15
16
|
var _constants = require("../../../../../constants");
|
|
16
17
|
var _messages = require("../../../../../messages");
|
|
17
18
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
18
19
|
var _modal = require("../../../../../state/modal");
|
|
19
20
|
var _action = _interopRequireDefault(require("../action"));
|
|
21
|
+
var _AutomationActionOld = _interopRequireDefault(require("./AutomationActionOld"));
|
|
20
22
|
var _manualTriggersIcon = _interopRequireDefault(require("./manual-triggers-icon"));
|
|
21
23
|
var _utils = require("./utils");
|
|
22
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -26,7 +28,7 @@ var AutomationModal = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
|
26
28
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_smart-card-automation-modal" */'./automation-manual-triggers/manual-triggers-modal'));
|
|
27
29
|
});
|
|
28
30
|
});
|
|
29
|
-
var
|
|
31
|
+
var AutomationActionNew = function AutomationActionNew(props) {
|
|
30
32
|
var _context$actions;
|
|
31
33
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
32
34
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -54,7 +56,7 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
54
56
|
values: {
|
|
55
57
|
name: objectName,
|
|
56
58
|
b: function b(chunks) {
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
58
60
|
as: "strong"
|
|
59
61
|
}, chunks);
|
|
60
62
|
},
|
|
@@ -97,4 +99,10 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
97
99
|
}
|
|
98
100
|
})));
|
|
99
101
|
};
|
|
102
|
+
var AutomationAction = function AutomationAction(props) {
|
|
103
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
104
|
+
return /*#__PURE__*/_react.default.createElement(AutomationActionNew, props);
|
|
105
|
+
}
|
|
106
|
+
return /*#__PURE__*/_react.default.createElement(_AutomationActionOld.default, props);
|
|
107
|
+
};
|
|
100
108
|
var _default = exports.default = AutomationAction;
|