@atlaskit/smart-card 34.7.0 → 34.9.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 +27 -0
- package/dist/cjs/constants.js +1 -0
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +26 -4
- package/dist/cjs/extractors/flexible/icon/extract-document-type-icon.js +28 -5
- package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/flexible.js +9 -9
- package/dist/cjs/utils/index.js +33 -22
- package/dist/cjs/view/BlockCard/views/styledOld.js +1 -0
- package/dist/cjs/view/EmbedCard/components/styled.compiled.css +4 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +1 -1
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.compiled.css +4 -1
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +10 -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 +15 -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/atlaskit-icon/index.js +25 -16
- 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 +6 -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 +10 -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/constants.js +1 -0
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +26 -4
- package/dist/es2019/extractors/flexible/icon/extract-document-type-icon.js +28 -5
- package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +8 -0
- package/dist/es2019/view/BlockCard/views/styledOld.js +1 -0
- package/dist/es2019/view/EmbedCard/components/styled.compiled.css +4 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +1 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.compiled.css +4 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +10 -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 +15 -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/atlaskit-icon/index.js +6 -0
- 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 +6 -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 +10 -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/constants.js +1 -0
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +26 -4
- package/dist/esm/extractors/flexible/icon/extract-document-type-icon.js +28 -5
- package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/flexible.js +13 -9
- package/dist/esm/utils/index.js +32 -22
- package/dist/esm/view/BlockCard/views/styledOld.js +1 -0
- package/dist/esm/view/EmbedCard/components/styled.compiled.css +4 -1
- package/dist/esm/view/EmbedCard/components/styled.js +1 -1
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.compiled.css +4 -1
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +10 -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 +15 -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/atlaskit-icon/index.js +23 -16
- 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 +6 -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 +10 -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/constants.d.ts +1 -0
- package/dist/types/extractors/common/icon/prioritiseIcon.d.ts +5 -0
- package/dist/types/extractors/flexible/icon/extract-document-type-icon.d.ts +16 -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/constants.d.ts +1 -0
- package/dist/types-ts4.5/extractors/common/icon/prioritiseIcon.d.ts +5 -0
- package/dist/types-ts4.5/extractors/flexible/icon/extract-document-type-icon.d.ts +16 -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 +48 -47
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import Spinner from '@atlaskit/spinner';
|
|
11
|
+
import { Frame } from '../Frame';
|
|
12
|
+
import { IconAndTitleLayout, IconTitleWrapper } from '../IconAndTitleLayout';
|
|
13
|
+
import { RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
14
|
+
import { IconTitleWrapper as IconTitleWrapperOld, RightIconPositionWrapper as RightIconPositionWrapperOld } from '../IconAndTitleLayout/styled-emotion';
|
|
15
|
+
import { SpinnerWrapperOldVisualRefresh } from './styled';
|
|
16
|
+
import { SpinnerWrapper as SpinnerWrapperOld } from './styled-emotion';
|
|
17
|
+
export var InlineCardResolvingViewOld = /*#__PURE__*/function (_React$Component) {
|
|
18
|
+
function InlineCardResolvingViewOld() {
|
|
19
|
+
_classCallCheck(this, InlineCardResolvingViewOld);
|
|
20
|
+
return _callSuper(this, InlineCardResolvingViewOld, arguments);
|
|
21
|
+
}
|
|
22
|
+
_inherits(InlineCardResolvingViewOld, _React$Component);
|
|
23
|
+
return _createClass(InlineCardResolvingViewOld, [{
|
|
24
|
+
key: "render",
|
|
25
|
+
value: function render() {
|
|
26
|
+
var _this$props = this.props,
|
|
27
|
+
url = _this$props.url,
|
|
28
|
+
onClick = _this$props.onClick,
|
|
29
|
+
isSelected = _this$props.isSelected,
|
|
30
|
+
inlinePreloaderStyle = _this$props.inlinePreloaderStyle,
|
|
31
|
+
_this$props$testId = _this$props.testId,
|
|
32
|
+
testId = _this$props$testId === void 0 ? 'inline-card-resolving-view' : _this$props$testId,
|
|
33
|
+
titleTextColor = _this$props.titleTextColor,
|
|
34
|
+
resolvingPlaceholder = _this$props.resolvingPlaceholder,
|
|
35
|
+
truncateInline = _this$props.truncateInline;
|
|
36
|
+
var SpinnerWrapperComponent = fg('bandicoots-compiled-migration-smartcard') ? SpinnerWrapperOldVisualRefresh : SpinnerWrapperOld;
|
|
37
|
+
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
38
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
39
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
40
|
+
withoutBackground: true,
|
|
41
|
+
testId: testId,
|
|
42
|
+
onClick: onClick,
|
|
43
|
+
isSelected: isSelected,
|
|
44
|
+
truncateInline: truncateInline
|
|
45
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
|
|
46
|
+
size: 14
|
|
47
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
48
|
+
className: "inline-resolving-spinner"
|
|
49
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
50
|
+
size: 14
|
|
51
|
+
}))))));
|
|
52
|
+
} else {
|
|
53
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
54
|
+
withoutBackground: true,
|
|
55
|
+
testId: testId,
|
|
56
|
+
onClick: onClick,
|
|
57
|
+
isSelected: isSelected,
|
|
58
|
+
truncateInline: truncateInline
|
|
59
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapperOld, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapperOld, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
60
|
+
className: "inline-resolving-spinner"
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
62
|
+
size: 14
|
|
63
|
+
})))));
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
67
|
+
testId: testId,
|
|
68
|
+
onClick: onClick,
|
|
69
|
+
isSelected: isSelected,
|
|
70
|
+
link: url,
|
|
71
|
+
truncateInline: truncateInline
|
|
72
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
73
|
+
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
74
|
+
titleTextColor: titleTextColor
|
|
75
|
+
}, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
|
|
76
|
+
size: 14
|
|
77
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
78
|
+
className: "inline-resolving-spinner"
|
|
79
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
80
|
+
size: 14
|
|
81
|
+
})))));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}]);
|
|
85
|
+
}(React.Component);
|
|
@@ -1,86 +1,56 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
1
|
import React from 'react';
|
|
9
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
3
|
import Spinner from '@atlaskit/spinner';
|
|
11
4
|
import { Frame } from '../Frame';
|
|
12
5
|
import { IconAndTitleLayout, IconTitleWrapper } from '../IconAndTitleLayout';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
6
|
+
import { RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
7
|
+
import { InlineCardResolvingViewOld } from './InlineCardResolvingViewOld';
|
|
15
8
|
import { SpinnerWrapperOldVisualRefresh } from './styled';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
var InlineCardResolvingViewNew = function InlineCardResolvingViewNew(_ref) {
|
|
10
|
+
var url = _ref.url,
|
|
11
|
+
onClick = _ref.onClick,
|
|
12
|
+
isSelected = _ref.isSelected,
|
|
13
|
+
inlinePreloaderStyle = _ref.inlinePreloaderStyle,
|
|
14
|
+
_ref$testId = _ref.testId,
|
|
15
|
+
testId = _ref$testId === void 0 ? 'inline-card-resolving-view' : _ref$testId,
|
|
16
|
+
titleTextColor = _ref.titleTextColor,
|
|
17
|
+
resolvingPlaceholder = _ref.resolvingPlaceholder,
|
|
18
|
+
truncateInline = _ref.truncateInline;
|
|
19
|
+
var renderSpinner = React.useCallback(function () {
|
|
20
|
+
return fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
|
|
21
|
+
size: 14
|
|
22
|
+
}) :
|
|
23
|
+
/*#__PURE__*/
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
25
|
+
React.createElement(SpinnerWrapperOldVisualRefresh, {
|
|
26
|
+
className: "inline-resolving-spinner"
|
|
27
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
28
|
+
size: 14
|
|
29
|
+
}));
|
|
30
|
+
}, []);
|
|
31
|
+
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
32
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
33
|
+
withoutBackground: true,
|
|
34
|
+
testId: testId,
|
|
35
|
+
onClick: onClick,
|
|
36
|
+
isSelected: isSelected,
|
|
37
|
+
truncateInline: truncateInline
|
|
38
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, renderSpinner())));
|
|
21
39
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
40
|
-
return /*#__PURE__*/React.createElement(Frame, {
|
|
41
|
-
withoutBackground: true,
|
|
42
|
-
testId: testId,
|
|
43
|
-
onClick: onClick,
|
|
44
|
-
isSelected: isSelected,
|
|
45
|
-
truncateInline: truncateInline
|
|
46
|
-
}, /*#__PURE__*/React.createElement(IconTitleWrapperFFed, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
|
|
47
|
-
size: 14
|
|
48
|
-
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
49
|
-
className: "inline-resolving-spinner"
|
|
50
|
-
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
51
|
-
size: 14
|
|
52
|
-
}))))));
|
|
53
|
-
} else {
|
|
54
|
-
return /*#__PURE__*/React.createElement(Frame, {
|
|
55
|
-
withoutBackground: true,
|
|
56
|
-
testId: testId,
|
|
57
|
-
onClick: onClick,
|
|
58
|
-
isSelected: isSelected,
|
|
59
|
-
truncateInline: truncateInline
|
|
60
|
-
}, /*#__PURE__*/React.createElement(IconTitleWrapperOld, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapperOld, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
61
|
-
className: "inline-resolving-spinner"
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
63
|
-
size: 14
|
|
64
|
-
})))));
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
return /*#__PURE__*/React.createElement(Frame, {
|
|
68
|
-
testId: testId,
|
|
69
|
-
onClick: onClick,
|
|
70
|
-
isSelected: isSelected,
|
|
71
|
-
link: url,
|
|
72
|
-
truncateInline: truncateInline
|
|
73
|
-
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
74
|
-
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
75
|
-
titleTextColor: titleTextColor
|
|
76
|
-
}, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
|
|
77
|
-
size: 14
|
|
78
|
-
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
79
|
-
className: "inline-resolving-spinner"
|
|
80
|
-
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
81
|
-
size: 14
|
|
82
|
-
})))));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}]);
|
|
86
|
-
}(React.Component);
|
|
40
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
41
|
+
testId: testId,
|
|
42
|
+
onClick: onClick,
|
|
43
|
+
isSelected: isSelected,
|
|
44
|
+
link: url,
|
|
45
|
+
truncateInline: truncateInline
|
|
46
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
47
|
+
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
48
|
+
titleTextColor: titleTextColor
|
|
49
|
+
}, renderSpinner()));
|
|
50
|
+
};
|
|
51
|
+
export var InlineCardResolvingView = function InlineCardResolvingView(props) {
|
|
52
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
53
|
+
return /*#__PURE__*/React.createElement(InlineCardResolvingViewNew, props);
|
|
54
|
+
}
|
|
55
|
+
return /*#__PURE__*/React.createElement(InlineCardResolvingViewOld, props);
|
|
56
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
+
import ButtonOld from '@atlaskit/button';
|
|
5
|
+
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
6
|
+
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
9
|
+
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
10
|
+
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
|
+
import { HoverCard } from '../../HoverCard';
|
|
13
|
+
import { ActionButton } from '../common/action-button';
|
|
14
|
+
import { Frame } from '../Frame';
|
|
15
|
+
import { AKIconWrapper } from '../Icon';
|
|
16
|
+
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
17
|
+
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
18
|
+
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
19
|
+
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
20
|
+
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
21
|
+
var iconWrapperStyles = xcss({
|
|
22
|
+
marginRight: 'space.negative.025'
|
|
23
|
+
});
|
|
24
|
+
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
25
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
26
|
+
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
27
|
+
as: "span",
|
|
28
|
+
xcss: iconWrapperStyles
|
|
29
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
30
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
31
|
+
label: "error",
|
|
32
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
33
|
+
LEGACY_size: "small"
|
|
34
|
+
})) : /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
35
|
+
label: "error",
|
|
36
|
+
size: "small",
|
|
37
|
+
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
38
|
+
}));
|
|
39
|
+
} else {
|
|
40
|
+
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
as: "span",
|
|
42
|
+
xcss: iconWrapperStyles
|
|
43
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
+
label: "error",
|
|
46
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
+
LEGACY_size: "small"
|
|
48
|
+
})) : /*#__PURE__*/React.createElement(AKIconWrapperOld, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
49
|
+
label: "error",
|
|
50
|
+
size: "small",
|
|
51
|
+
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export var InlineCardUnauthorizedViewOld = function InlineCardUnauthorizedViewOld(_ref) {
|
|
56
|
+
var url = _ref.url,
|
|
57
|
+
id = _ref.id,
|
|
58
|
+
icon = _ref.icon,
|
|
59
|
+
onAuthorise = _ref.onAuthorise,
|
|
60
|
+
onClick = _ref.onClick,
|
|
61
|
+
isSelected = _ref.isSelected,
|
|
62
|
+
_ref$testId = _ref.testId,
|
|
63
|
+
testId = _ref$testId === void 0 ? 'inline-card-unauthorized-view' : _ref$testId,
|
|
64
|
+
_ref$showHoverPreview = _ref.showHoverPreview,
|
|
65
|
+
showHoverPreview = _ref$showHoverPreview === void 0 ? false : _ref$showHoverPreview,
|
|
66
|
+
truncateInline = _ref.truncateInline,
|
|
67
|
+
context = _ref.context;
|
|
68
|
+
var frameRef = React.useRef(null);
|
|
69
|
+
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
70
|
+
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
71
|
+
var handleConnectAccount = React.useCallback(function (event) {
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
event.stopPropagation();
|
|
74
|
+
if (onAuthorise) {
|
|
75
|
+
fireEvent('track.applicationAccount.authStarted', {});
|
|
76
|
+
onAuthorise();
|
|
77
|
+
}
|
|
78
|
+
}, [fireEvent, onAuthorise]);
|
|
79
|
+
var renderActionButton = React.useCallback(function () {
|
|
80
|
+
var Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
81
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
82
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
83
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
84
|
+
component: ActionButton,
|
|
85
|
+
onClick: handleConnectAccount,
|
|
86
|
+
testId: "button-connect-account"
|
|
87
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
88
|
+
values: {
|
|
89
|
+
context: context
|
|
90
|
+
}
|
|
91
|
+
})));
|
|
92
|
+
}
|
|
93
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
94
|
+
spacing: "none",
|
|
95
|
+
component: IconStyledButtonOldVisualRefresh,
|
|
96
|
+
onClick: handleConnectAccount,
|
|
97
|
+
testId: "button-connect-account"
|
|
98
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
99
|
+
values: {
|
|
100
|
+
context: context
|
|
101
|
+
}
|
|
102
|
+
}))) : undefined;
|
|
103
|
+
} else {
|
|
104
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
105
|
+
spacing: "none",
|
|
106
|
+
component: IconStyledButtonOld,
|
|
107
|
+
onClick: handleConnectAccount,
|
|
108
|
+
testId: "button-connect-account"
|
|
109
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
110
|
+
values: {
|
|
111
|
+
context: context
|
|
112
|
+
}
|
|
113
|
+
}))) : undefined;
|
|
114
|
+
}
|
|
115
|
+
}, [handleConnectAccount, onAuthorise, context]);
|
|
116
|
+
var inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
117
|
+
testId: testId,
|
|
118
|
+
isSelected: isSelected,
|
|
119
|
+
ref: frameRef,
|
|
120
|
+
truncateInline: truncateInline
|
|
121
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
122
|
+
icon: icon ? icon : fallbackUnauthorizedIcon(),
|
|
123
|
+
title: url,
|
|
124
|
+
link: url,
|
|
125
|
+
onClick: onClick,
|
|
126
|
+
titleColor: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
127
|
+
}), renderActionButton());
|
|
128
|
+
if (onAuthorise && showHoverPreview) {
|
|
129
|
+
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
130
|
+
url: url,
|
|
131
|
+
id: id
|
|
132
|
+
}, inlineCardUnauthenticatedView);
|
|
133
|
+
}
|
|
134
|
+
return inlineCardUnauthenticatedView;
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
7
|
import ButtonOld from '@atlaskit/button';
|
|
5
8
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
6
9
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
7
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import { Box
|
|
11
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
12
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
10
13
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
11
14
|
import { messages } from '../../../messages';
|
|
@@ -13,46 +16,29 @@ import { HoverCard } from '../../HoverCard';
|
|
|
13
16
|
import { ActionButton } from '../common/action-button';
|
|
14
17
|
import { Frame } from '../Frame';
|
|
15
18
|
import { AKIconWrapper } from '../Icon';
|
|
16
|
-
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
17
19
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
18
20
|
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
19
|
-
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
20
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { InlineCardUnauthorizedViewOld } from './InlineCardUnauthorizedViewOld';
|
|
23
|
+
var styles = {
|
|
24
|
+
iconWrapper: "_2hwx1i6y"
|
|
25
|
+
};
|
|
24
26
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}));
|
|
39
|
-
} else {
|
|
40
|
-
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
41
|
-
as: "span",
|
|
42
|
-
xcss: iconWrapperStyles
|
|
43
|
-
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
-
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
-
label: "error",
|
|
46
|
-
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
-
LEGACY_size: "small"
|
|
48
|
-
})) : /*#__PURE__*/React.createElement(AKIconWrapperOld, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
49
|
-
label: "error",
|
|
50
|
-
size: "small",
|
|
51
|
-
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
27
|
+
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
as: "span",
|
|
29
|
+
xcss: styles.iconWrapper
|
|
30
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
31
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
32
|
+
label: "error",
|
|
33
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
34
|
+
LEGACY_size: "small"
|
|
35
|
+
})) : /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
36
|
+
label: "error",
|
|
37
|
+
size: "small",
|
|
38
|
+
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
39
|
+
}));
|
|
54
40
|
};
|
|
55
|
-
|
|
41
|
+
var InlineCardUnauthorizedViewNew = function InlineCardUnauthorizedViewNew(_ref) {
|
|
56
42
|
var url = _ref.url,
|
|
57
43
|
id = _ref.id,
|
|
58
44
|
icon = _ref.icon,
|
|
@@ -78,40 +64,27 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
78
64
|
}, [fireEvent, onAuthorise]);
|
|
79
65
|
var renderActionButton = React.useCallback(function () {
|
|
80
66
|
var Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
81
|
-
if (fg('
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
component: ActionButton,
|
|
85
|
-
onClick: handleConnectAccount,
|
|
86
|
-
testId: "button-connect-account"
|
|
87
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
88
|
-
values: {
|
|
89
|
-
context: context
|
|
90
|
-
}
|
|
91
|
-
})));
|
|
92
|
-
}
|
|
93
|
-
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
94
|
-
spacing: "none",
|
|
95
|
-
component: IconStyledButtonOldVisualRefresh,
|
|
96
|
-
onClick: handleConnectAccount,
|
|
97
|
-
testId: "button-connect-account"
|
|
98
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
99
|
-
values: {
|
|
100
|
-
context: context
|
|
101
|
-
}
|
|
102
|
-
}))) : undefined;
|
|
103
|
-
} else {
|
|
104
|
-
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
105
|
-
spacing: "none",
|
|
106
|
-
component: IconStyledButtonOld,
|
|
67
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
68
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
69
|
+
component: ActionButton,
|
|
107
70
|
onClick: handleConnectAccount,
|
|
108
71
|
testId: "button-connect-account"
|
|
109
72
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
110
73
|
values: {
|
|
111
74
|
context: context
|
|
112
75
|
}
|
|
113
|
-
})))
|
|
76
|
+
})));
|
|
114
77
|
}
|
|
78
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
79
|
+
spacing: "none",
|
|
80
|
+
component: IconStyledButtonOldVisualRefresh,
|
|
81
|
+
onClick: handleConnectAccount,
|
|
82
|
+
testId: "button-connect-account"
|
|
83
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
84
|
+
values: {
|
|
85
|
+
context: context
|
|
86
|
+
}
|
|
87
|
+
}))) : undefined;
|
|
115
88
|
}, [handleConnectAccount, onAuthorise, context]);
|
|
116
89
|
var inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
117
90
|
testId: testId,
|
|
@@ -132,4 +105,10 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
132
105
|
}, inlineCardUnauthenticatedView);
|
|
133
106
|
}
|
|
134
107
|
return inlineCardUnauthenticatedView;
|
|
108
|
+
};
|
|
109
|
+
export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(props) {
|
|
110
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
111
|
+
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedViewNew, props);
|
|
112
|
+
}
|
|
113
|
+
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedViewOld, props);
|
|
135
114
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
|
+
import { FormattedMessage, IntlProvider } from 'react-intl-next';
|
|
9
|
+
import Button from '@atlaskit/button/standard-button';
|
|
10
|
+
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
|
+
import { breakWordsCss } from './styled';
|
|
13
|
+
var WarningModalOld = function WarningModalOld(props) {
|
|
14
|
+
var isOpen = props.isOpen,
|
|
15
|
+
unsafeLinkText = props.unsafeLinkText,
|
|
16
|
+
url = props.url,
|
|
17
|
+
onClose = props.onClose,
|
|
18
|
+
onContinue = props.onContinue,
|
|
19
|
+
intl = props.intl;
|
|
20
|
+
var content = jsx(ModalTransition, null, isOpen && jsx(Modal, {
|
|
21
|
+
onClose: onClose,
|
|
22
|
+
testId: "link-with-safety-warning"
|
|
23
|
+
}, jsx(ModalHeader, null, jsx(ModalTitle, {
|
|
24
|
+
appearance: "warning"
|
|
25
|
+
}, jsx(FormattedMessage, messages.check_this_link))), jsx(ModalBody, null, jsx("div", {
|
|
26
|
+
css: breakWordsCss
|
|
27
|
+
}, url && unsafeLinkText && jsx(FormattedMessage, _extends({}, messages.link_safety_warning_message, {
|
|
28
|
+
values: {
|
|
29
|
+
unsafeLinkText: unsafeLinkText,
|
|
30
|
+
a: function a() {
|
|
31
|
+
return jsx("a", {
|
|
32
|
+
href: url,
|
|
33
|
+
target: "_blank",
|
|
34
|
+
rel: "noopener noreferrer"
|
|
35
|
+
}, url);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
})))), jsx(ModalFooter, null, jsx(Button, {
|
|
39
|
+
appearance: "subtle",
|
|
40
|
+
onClick: onClose
|
|
41
|
+
}, jsx(FormattedMessage, messages.go_back)), jsx(Button, {
|
|
42
|
+
appearance: "warning",
|
|
43
|
+
onClick: onContinue,
|
|
44
|
+
autoFocus: true
|
|
45
|
+
}, jsx(FormattedMessage, messages.continue)))));
|
|
46
|
+
return intl ? content : jsx(IntlProvider, {
|
|
47
|
+
locale: "en"
|
|
48
|
+
}, content);
|
|
49
|
+
};
|
|
50
|
+
export default WarningModalOld;
|
|
@@ -1,52 +1,58 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { jsx } from '@emotion/react';
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
6
|
import { FormattedMessage, injectIntl, IntlProvider } from 'react-intl-next';
|
|
9
7
|
import Button from '@atlaskit/button/standard-button';
|
|
10
8
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { messages } from '../../../messages';
|
|
12
|
-
import
|
|
13
|
-
var
|
|
11
|
+
import WarningModalOld from './WarningModalOld';
|
|
12
|
+
var breakWordsCss = null;
|
|
13
|
+
var WarningModalNew = function WarningModalNew(props) {
|
|
14
14
|
var isOpen = props.isOpen,
|
|
15
15
|
unsafeLinkText = props.unsafeLinkText,
|
|
16
16
|
url = props.url,
|
|
17
17
|
onClose = props.onClose,
|
|
18
18
|
onContinue = props.onContinue,
|
|
19
19
|
intl = props.intl;
|
|
20
|
-
var content =
|
|
20
|
+
var content = /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(Modal, {
|
|
21
21
|
onClose: onClose,
|
|
22
22
|
testId: "link-with-safety-warning"
|
|
23
|
-
},
|
|
23
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
24
24
|
appearance: "warning"
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
}, url && unsafeLinkText &&
|
|
25
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.check_this_link))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: ax(["_o5726vc6 _1nmz9jpi"])
|
|
27
|
+
}, url && unsafeLinkText && /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.link_safety_warning_message, {
|
|
28
28
|
values: {
|
|
29
29
|
unsafeLinkText: unsafeLinkText,
|
|
30
30
|
a: function a() {
|
|
31
|
-
return
|
|
31
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
32
32
|
href: url,
|
|
33
33
|
target: "_blank",
|
|
34
34
|
rel: "noopener noreferrer"
|
|
35
35
|
}, url);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
})))),
|
|
38
|
+
})))), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
|
|
39
39
|
appearance: "subtle",
|
|
40
40
|
onClick: onClose
|
|
41
|
-
},
|
|
41
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.go_back)), /*#__PURE__*/React.createElement(Button, {
|
|
42
42
|
appearance: "warning",
|
|
43
43
|
onClick: onContinue,
|
|
44
44
|
autoFocus: true
|
|
45
|
-
},
|
|
46
|
-
return intl ? content :
|
|
45
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.continue)))));
|
|
46
|
+
return intl ? content : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
47
47
|
locale: "en"
|
|
48
48
|
}, content);
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
var Component = function Component(props) {
|
|
51
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
52
|
+
return /*#__PURE__*/React.createElement(WarningModalNew, props);
|
|
53
|
+
}
|
|
54
|
+
return /*#__PURE__*/React.createElement(WarningModalOld, props);
|
|
55
|
+
};
|
|
56
|
+
export default injectIntl(Component, {
|
|
51
57
|
enforceContext: false
|
|
52
58
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated remove on FF clean up bandicoots-compiled-migration-smartcard
|
|
6
|
+
*/
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
8
|
export var breakWordsCss = css({
|
|
6
9
|
whiteSpace: 'pre-line',
|