@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
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
8
|
-
import { popupContainerStyles } from '../../HoverCard/styled';
|
|
9
7
|
import AIGlowingBorder from './ai-glowing-border';
|
|
8
|
+
import AIPrismOld from './AIPrismOld';
|
|
10
9
|
import { AI_BORDER_PALETTE } from './constants';
|
|
11
|
-
const contentStyles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
const AIPrism = ({
|
|
10
|
+
const contentStyles = null;
|
|
11
|
+
const contentStylesPrismVisible = null;
|
|
12
|
+
const animatedSvgContainerStyles = {
|
|
13
|
+
true: "_v564fs5d _tzy4kb7n",
|
|
14
|
+
false: "_v564fs5d _tzy4idpf"
|
|
15
|
+
};
|
|
16
|
+
const popupContainerStyles = null;
|
|
17
|
+
const AIPrismNew = ({
|
|
21
18
|
children,
|
|
22
19
|
isGlowing = true,
|
|
23
20
|
isMoving = true,
|
|
@@ -28,22 +25,20 @@ const AIPrism = ({
|
|
|
28
25
|
const {
|
|
29
26
|
colorMode = 'light'
|
|
30
27
|
} = useThemeObserver();
|
|
31
|
-
return
|
|
32
|
-
additionalCss: {
|
|
33
|
-
animatedSvgContainer: css({
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
|
-
opacity: isVisible ? 1 : 0,
|
|
36
|
-
transition: 'opacity 0.5s ease'
|
|
37
|
-
})
|
|
38
|
-
},
|
|
28
|
+
return /*#__PURE__*/React.createElement(AIGlowingBorder, {
|
|
39
29
|
palette: (_AI_BORDER_PALETTE$co = AI_BORDER_PALETTE[colorMode]) !== null && _AI_BORDER_PALETTE$co !== void 0 ? _AI_BORDER_PALETTE$co : AI_BORDER_PALETTE.light,
|
|
40
30
|
isGlowing: isGlowing,
|
|
41
31
|
isMoving: isMoving,
|
|
42
|
-
testId: testId
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
popupContainerStyles, contentStyles, isVisible ? contentStylesPrismVisible : undefined]
|
|
32
|
+
testId: testId,
|
|
33
|
+
className: ax([animatedSvgContainerStyles[isVisible ? 'true' : 'false']])
|
|
34
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: ax(["_2rkopd34 _bfhk1bhr _16qsie2t", "_v5649spz", isVisible && "_16qs1aef"])
|
|
47
36
|
}, children));
|
|
48
37
|
};
|
|
38
|
+
const AIPrism = props => {
|
|
39
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
40
|
+
return /*#__PURE__*/React.createElement(AIPrismNew, props);
|
|
41
|
+
}
|
|
42
|
+
return /*#__PURE__*/React.createElement(AIPrismOld, props);
|
|
43
|
+
};
|
|
49
44
|
export default AIPrism;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
|
+
import Markdown from 'markdown-to-jsx';
|
|
8
|
+
import UList from './ulist';
|
|
9
|
+
const AISummaryCSSStyles = css({
|
|
10
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
11
|
+
wordWrap: 'break-word',
|
|
12
|
+
wordBreak: 'break-word',
|
|
13
|
+
whiteSpace: 'normal',
|
|
14
|
+
WebkitUserSelect: 'text',
|
|
15
|
+
MozUserSelect: 'text',
|
|
16
|
+
MsUserSelect: 'text',
|
|
17
|
+
userSelect: 'text'
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Move this type to the index file upon FF cleanup. bandicoots-compiled-migration-smartcard
|
|
22
|
+
* Remove the export as well.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A component to render a response from AI in markdown text.
|
|
27
|
+
* @internal
|
|
28
|
+
* @param {AISummaryProps} AISummaryProps
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
const AISummaryOld = ({
|
|
32
|
+
content = '',
|
|
33
|
+
overrideCss,
|
|
34
|
+
testId = 'ai-summary',
|
|
35
|
+
minHeight = 0
|
|
36
|
+
}) => {
|
|
37
|
+
if (!content && minHeight === 0) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return jsx(Markdown, {
|
|
41
|
+
"data-testid": testId,
|
|
42
|
+
css: [AISummaryCSSStyles, overrideCss],
|
|
43
|
+
children: content,
|
|
44
|
+
options: {
|
|
45
|
+
forceWrapper: true,
|
|
46
|
+
overrides: {
|
|
47
|
+
ul: UList
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
style: {
|
|
51
|
+
minHeight: minHeight
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
export default AISummaryOld;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._181u1kdv{-webkit-user-select:text}
|
|
3
|
+
._1nmz1hna{word-break:break-word}
|
|
4
|
+
._1rkw1kdv{-moz-user-select:text}
|
|
5
|
+
._o5724jg8{white-space:normal}
|
|
6
|
+
._slp31hna{word-wrap:break-word}
|
|
7
|
+
._te171kdv{-ms-user-select:text}
|
|
8
|
+
._uizt1kdv{-webkit-user-select:text;-ms-user-select:text;user-select:text}
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import Markdown from 'markdown-to-jsx';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
7
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
8
|
+
* Move this import into this file when cleaning up FF bandicoots-compiled-migration-smartcard
|
|
9
|
+
* Remove the export as well
|
|
4
10
|
*/
|
|
5
|
-
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import Markdown from 'markdown-to-jsx';
|
|
11
|
+
import AISummaryOld from './AISummaryOld';
|
|
8
12
|
import UList from './ulist';
|
|
9
|
-
const AISummaryCSSStyles =
|
|
10
|
-
|
|
11
|
-
wordWrap: 'break-word',
|
|
12
|
-
wordBreak: 'break-word',
|
|
13
|
-
whiteSpace: 'normal',
|
|
14
|
-
WebkitUserSelect: 'text',
|
|
15
|
-
MozUserSelect: 'text',
|
|
16
|
-
MsUserSelect: 'text',
|
|
17
|
-
userSelect: 'text'
|
|
18
|
-
});
|
|
13
|
+
const AISummaryCSSStyles = null;
|
|
14
|
+
|
|
19
15
|
/**
|
|
20
16
|
* A component to render a response from AI in markdown text.
|
|
21
17
|
* @internal
|
|
22
18
|
* @param {AISummaryProps} AISummaryProps
|
|
23
19
|
*/
|
|
24
|
-
|
|
25
|
-
const AISummary = ({
|
|
20
|
+
const AISummaryNew = ({
|
|
26
21
|
content = '',
|
|
27
|
-
|
|
22
|
+
className,
|
|
28
23
|
testId = 'ai-summary',
|
|
29
24
|
minHeight = 0
|
|
30
25
|
}) => {
|
|
31
26
|
if (!content && minHeight === 0) {
|
|
32
27
|
return null;
|
|
33
28
|
}
|
|
34
|
-
return
|
|
35
|
-
"data-testid": testId
|
|
36
|
-
|
|
29
|
+
return /*#__PURE__*/React.createElement(Markdown, {
|
|
30
|
+
"data-testid": testId
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
32
|
+
,
|
|
33
|
+
className: ax(["_11c8qk37 _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className]),
|
|
37
34
|
children: content,
|
|
38
35
|
options: {
|
|
39
36
|
forceWrapper: true,
|
|
@@ -46,4 +43,10 @@ const AISummary = ({
|
|
|
46
43
|
}
|
|
47
44
|
});
|
|
48
45
|
};
|
|
46
|
+
const AISummary = props => {
|
|
47
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
48
|
+
return /*#__PURE__*/React.createElement(AISummaryNew, props);
|
|
49
|
+
}
|
|
50
|
+
return /*#__PURE__*/React.createElement(AISummaryOld, props);
|
|
51
|
+
};
|
|
49
52
|
export default AISummary;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
/* ulist.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
3
|
+
import "./ulist.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
5
|
import React from 'react';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
paddingLeft: "var(--ds-space-250, 20px)",
|
|
12
|
-
paddingInlineStart: "var(--ds-space-250, 20px)"
|
|
13
|
-
});
|
|
14
|
-
const UList = ({
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import UListOld from './ulistOld';
|
|
8
|
+
const listStyles = null;
|
|
9
|
+
const UListNew = ({
|
|
15
10
|
children,
|
|
16
11
|
...props
|
|
17
|
-
}) =>
|
|
18
|
-
|
|
19
|
-
}
|
|
12
|
+
}) => /*#__PURE__*/React.createElement("ul", _extends({}, props, {
|
|
13
|
+
className: ax(["_19bvv47k _bozgv47k"])
|
|
14
|
+
}), children);
|
|
15
|
+
const UList = props => {
|
|
16
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(UListNew, props);
|
|
18
|
+
}
|
|
19
|
+
return /*#__PURE__*/React.createElement(UListOld, props);
|
|
20
|
+
};
|
|
20
21
|
export default UList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
10
|
+
const listStyles = css({
|
|
11
|
+
paddingLeft: "var(--ds-space-250, 20px)",
|
|
12
|
+
paddingInlineStart: "var(--ds-space-250, 20px)"
|
|
13
|
+
});
|
|
14
|
+
const UListOld = ({
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}) => jsx("ul", _extends({
|
|
18
|
+
css: listStyles
|
|
19
|
+
}, props), children);
|
|
20
|
+
export default UListOld;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React, { useCallback } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
|
+
const styles = css({
|
|
10
|
+
maxHeight: 0,
|
|
11
|
+
maxWidth: 0,
|
|
12
|
+
position: 'absolute'
|
|
13
|
+
});
|
|
14
|
+
export const StopPropagationOld = ({
|
|
15
|
+
children
|
|
16
|
+
}) => {
|
|
17
|
+
const onClick = useCallback(e => {
|
|
18
|
+
// Prevent click event inside modal from bubble up
|
|
19
|
+
e.stopPropagation();
|
|
20
|
+
}, []);
|
|
21
|
+
return (
|
|
22
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
23
|
+
jsx("span", {
|
|
24
|
+
css: styles,
|
|
25
|
+
onClick: onClick
|
|
26
|
+
}, children)
|
|
27
|
+
);
|
|
28
|
+
};
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
4
|
import React, { useCallback } from 'react';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
maxHeight: 0,
|
|
11
|
-
maxWidth: 0,
|
|
12
|
-
position: 'absolute'
|
|
13
|
-
});
|
|
14
|
-
export const StopPropagation = ({
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { StopPropagationOld } from './StopPropagationOld';
|
|
7
|
+
const styles = null;
|
|
8
|
+
const StopPropagationNew = ({
|
|
15
9
|
children
|
|
16
10
|
}) => {
|
|
17
11
|
const onClick = useCallback(e => {
|
|
18
12
|
// Prevent click event inside modal from bubble up
|
|
19
13
|
e.stopPropagation();
|
|
20
14
|
}, []);
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
15
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
16
|
+
onClick: onClick,
|
|
17
|
+
className: ax(["_c71lidpf _p12fidpf _kqswstnw"])
|
|
18
|
+
}, children);
|
|
19
|
+
};
|
|
20
|
+
export const StopPropagation = props => {
|
|
21
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
22
|
+
return /*#__PURE__*/React.createElement(StopPropagationNew, props);
|
|
23
|
+
}
|
|
24
|
+
return /*#__PURE__*/React.createElement(StopPropagationOld, props);
|
|
28
25
|
};
|
|
@@ -3,8 +3,17 @@ import facepaint from 'facepaint';
|
|
|
3
3
|
// this function is used for spacing, fontsize and line height,
|
|
4
4
|
// once design tokens have been established for the all of these categories
|
|
5
5
|
// then this function can be replaced with the tokens
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated, these can be replaced with constants
|
|
8
|
+
*/
|
|
6
9
|
const gs = times => `${8 * times}px`;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated, these can be replaced with constants
|
|
12
|
+
*/
|
|
7
13
|
const br = (times = 1) => `${3 * times}px`;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated, these can be replaced with constants
|
|
16
|
+
*/
|
|
8
17
|
const mq = facepaint(['@media(min-width: 576px)']);
|
|
9
18
|
export { gs, br, mq };
|
|
10
19
|
export const handleClickCommon = (event, onClick) => {
|
package/dist/esm/constants.js
CHANGED
|
@@ -203,6 +203,7 @@ export var IconType = /*#__PURE__*/function (IconType) {
|
|
|
203
203
|
IconType["Story"] = "Jira:Story";
|
|
204
204
|
IconType["SubTask"] = "Jira:SubTask";
|
|
205
205
|
IconType["Task"] = "Jira:Task";
|
|
206
|
+
IconType["LiveDocument"] = "Confluence:LiveDocument";
|
|
206
207
|
IconType["Confluence"] = "Provider:Confluence";
|
|
207
208
|
IconType["Jira"] = "Provider:Jira";
|
|
208
209
|
IconType["Default"] = "Default";
|
|
@@ -3,8 +3,10 @@ import DocumentIcon from '@atlaskit/icon-file-type/glyph/document/16';
|
|
|
3
3
|
import FileIcon from '@atlaskit/icon-file-type/glyph/generic/16';
|
|
4
4
|
import PresentationIcon from '@atlaskit/icon-file-type/glyph/presentation/16';
|
|
5
5
|
import SpreadsheetIcon from '@atlaskit/icon-file-type/glyph/spreadsheet/16';
|
|
6
|
+
import LiveDocumentIcon from '@atlaskit/icon-lab/core/page-live-doc';
|
|
6
7
|
import BlogIcon from '@atlaskit/icon-object/glyph/blog/16';
|
|
7
8
|
import DocumentFilledIcon from '@atlaskit/icon/core/migration/page--document-filled';
|
|
9
|
+
import { isConfluenceGenerator } from '@atlaskit/link-extractors';
|
|
8
10
|
import { getIconForFileType } from '../../../utils';
|
|
9
11
|
import { prioritiseIcon } from './prioritiseIcon';
|
|
10
12
|
/**
|
|
@@ -38,10 +40,7 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
38
40
|
testId: "blog-icon"
|
|
39
41
|
});
|
|
40
42
|
case 'schema:DigitalDocument':
|
|
41
|
-
return
|
|
42
|
-
label: opts.title || 'file',
|
|
43
|
-
testId: "file-icon"
|
|
44
|
-
});
|
|
43
|
+
return digitalDocumentToIcon(opts);
|
|
45
44
|
case 'schema:TextDigitalDocument':
|
|
46
45
|
return /*#__PURE__*/React.createElement(DocumentIcon, {
|
|
47
46
|
label: opts.title || 'document',
|
|
@@ -69,4 +68,27 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
69
68
|
testId: "document-icon"
|
|
70
69
|
});
|
|
71
70
|
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Enables providers to represent `schema:DigitalDocument` in a manner which
|
|
75
|
+
* aligns with their customers when representing provider-specific types, which
|
|
76
|
+
* do not apply across multiple providers.
|
|
77
|
+
* @example Confluence digital documents represent 'live documents', specific to Confluence.
|
|
78
|
+
* @remark This mechanism will be superseded by backend-driven icon URLs as part
|
|
79
|
+
* of go/j/MODES-5864. Do not add more!
|
|
80
|
+
*/
|
|
81
|
+
var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
|
|
82
|
+
var _opts$provider;
|
|
83
|
+
if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && isConfluenceGenerator(opts.provider.id)) {
|
|
84
|
+
return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
|
|
85
|
+
label: "live-doc",
|
|
86
|
+
testId: "live-doc-icon"
|
|
87
|
+
});
|
|
88
|
+
} else {
|
|
89
|
+
return /*#__PURE__*/React.createElement(FileIcon, {
|
|
90
|
+
label: opts.title || 'file',
|
|
91
|
+
testId: "file-icon"
|
|
92
|
+
});
|
|
93
|
+
}
|
|
72
94
|
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
import { isConfluenceGenerator } from '@atlaskit/link-extractors';
|
|
1
2
|
import { IconType } from '../../../constants';
|
|
2
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Computes the relevant icon for a document type.
|
|
5
|
+
*
|
|
6
|
+
* @remark Note that document icons can vary based on the provider. E.g., a
|
|
7
|
+
* provider may choose to re-use one of these document types in their domain,
|
|
8
|
+
* but offer a different SVG icon on the frontend (to map to this type in their
|
|
9
|
+
* domain). See `schema:digitalDocument` for an example of this behaviour. This
|
|
10
|
+
* mechanism will be superseded by backend-driven icon URLs as part of
|
|
11
|
+
* go/j/MODES-5864. Do not add more!
|
|
12
|
+
*
|
|
13
|
+
* @param documentType JSON-LD document type
|
|
14
|
+
* @param label human-readable label to be displayed on the icon
|
|
15
|
+
* @param providerId JSON-LD provider (generator ID)
|
|
16
|
+
* @returns an icon descriptor representing the document type
|
|
17
|
+
*/
|
|
18
|
+
var extractDocumentTypeIcon = function extractDocumentTypeIcon(documentType, label, providerId) {
|
|
3
19
|
switch (documentType) {
|
|
4
20
|
case 'schema:BlogPosting':
|
|
5
21
|
return {
|
|
@@ -7,10 +23,17 @@ var extractDocumentTypeIcon = function extractDocumentTypeIcon(documentType, lab
|
|
|
7
23
|
label: label || 'Blog'
|
|
8
24
|
};
|
|
9
25
|
case 'schema:DigitalDocument':
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
26
|
+
if (providerId && isConfluenceGenerator(providerId)) {
|
|
27
|
+
return {
|
|
28
|
+
icon: IconType.LiveDocument,
|
|
29
|
+
label: label || 'Live Document'
|
|
30
|
+
};
|
|
31
|
+
} else {
|
|
32
|
+
return {
|
|
33
|
+
icon: IconType.File,
|
|
34
|
+
label: label || 'File'
|
|
35
|
+
};
|
|
36
|
+
}
|
|
14
37
|
case 'schema:TextDigitalDocument':
|
|
15
38
|
return {
|
|
16
39
|
icon: IconType.Document,
|
|
@@ -47,7 +47,7 @@ function chooseIcon(_ref2) {
|
|
|
47
47
|
label: label,
|
|
48
48
|
providerId: providerId,
|
|
49
49
|
data: data
|
|
50
|
-
}) || extractDocumentTypeIcon(type, label);
|
|
50
|
+
}) || extractDocumentTypeIcon(type, label, providerId);
|
|
51
51
|
return prioritiseIcon({
|
|
52
52
|
fileFormatIcon: fileFormatIcon,
|
|
53
53
|
documentTypeIcon: documentTypeIcon,
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "34.
|
|
7
|
+
packageVersion: "34.9.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -5,13 +5,13 @@ import { FooterBlock, PreviewBlock, TitleBlock } from '../view/FlexibleCard/comp
|
|
|
5
5
|
import * as Elements from '../view/FlexibleCard/components/elements';
|
|
6
6
|
export var isFlexibleUiCard = function isFlexibleUiCard(children) {
|
|
7
7
|
if (children && React.Children.toArray(children).some(function (child) {
|
|
8
|
-
return
|
|
8
|
+
return _isFlexibleUiTitleBlock(child);
|
|
9
9
|
})) {
|
|
10
10
|
return true;
|
|
11
11
|
}
|
|
12
12
|
return false;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
var _isFlexibleUiBlock = function isFlexibleUiBlock(node) {
|
|
15
15
|
var _node$type;
|
|
16
16
|
if (!fg('bandicoots-compiled-migration-smartcard')) {
|
|
17
17
|
return /*#__PURE__*/React.isValidElement(node) && Object.values(Blocks).some(function (type) {
|
|
@@ -34,7 +34,7 @@ export var isFlexibleUiBlock = function isFlexibleUiBlock(node) {
|
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
if (typeof child.type !== 'string' && ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) !== 'Style') {
|
|
37
|
-
isChildrenValid =
|
|
37
|
+
isChildrenValid = _isFlexibleUiBlock(child);
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
return isChildrenValid;
|
|
@@ -46,7 +46,8 @@ export var isFlexibleUiBlock = function isFlexibleUiBlock(node) {
|
|
|
46
46
|
}
|
|
47
47
|
return false;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export { _isFlexibleUiBlock as isFlexibleUiBlock };
|
|
50
|
+
var _isFlexibleUiElement = function isFlexibleUiElement(node) {
|
|
50
51
|
var _node$type2;
|
|
51
52
|
if (!fg('bandicoots-compiled-migration-smartcard')) {
|
|
52
53
|
return /*#__PURE__*/React.isValidElement(node) && Object.values(Elements).some(function (type) {
|
|
@@ -74,14 +75,15 @@ export var isFlexibleUiElement = function isFlexibleUiElement(node) {
|
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
77
|
if (typeof child.type !== 'string' && ((_child$type2 = child.type) === null || _child$type2 === void 0 ? void 0 : _child$type2.name) !== 'Style') {
|
|
77
|
-
isChildrenValid =
|
|
78
|
+
isChildrenValid = _isFlexibleUiElement(child);
|
|
78
79
|
}
|
|
79
80
|
});
|
|
80
81
|
return isChildrenValid;
|
|
81
82
|
}
|
|
82
83
|
return false;
|
|
83
84
|
};
|
|
84
|
-
export
|
|
85
|
+
export { _isFlexibleUiElement as isFlexibleUiElement };
|
|
86
|
+
var _isFlexibleUiTitleBlock = function isFlexibleUiTitleBlock(node) {
|
|
85
87
|
var _node$type3;
|
|
86
88
|
if (!fg('bandicoots-compiled-migration-smartcard')) {
|
|
87
89
|
return /*#__PURE__*/React.isValidElement(node) && node.type === TitleBlock;
|
|
@@ -105,14 +107,15 @@ export var isFlexibleUiTitleBlock = function isFlexibleUiTitleBlock(node) {
|
|
|
105
107
|
return;
|
|
106
108
|
}
|
|
107
109
|
if (typeof child.type !== 'string' && ((_child$type3 = child.type) === null || _child$type3 === void 0 ? void 0 : _child$type3.name) !== 'Style') {
|
|
108
|
-
isChildrenValid =
|
|
110
|
+
isChildrenValid = _isFlexibleUiTitleBlock(child);
|
|
109
111
|
}
|
|
110
112
|
});
|
|
111
113
|
return isChildrenValid;
|
|
112
114
|
}
|
|
113
115
|
return false;
|
|
114
116
|
};
|
|
115
|
-
export
|
|
117
|
+
export { _isFlexibleUiTitleBlock as isFlexibleUiTitleBlock };
|
|
118
|
+
var _isFlexibleUiPreviewBlock = function isFlexibleUiPreviewBlock(node) {
|
|
116
119
|
var _node$type4;
|
|
117
120
|
if (!fg('bandicoots-compiled-migration-smartcard')) {
|
|
118
121
|
return /*#__PURE__*/React.isValidElement(node) && node.type === PreviewBlock;
|
|
@@ -136,13 +139,14 @@ export var isFlexibleUiPreviewBlock = function isFlexibleUiPreviewBlock(node) {
|
|
|
136
139
|
return;
|
|
137
140
|
}
|
|
138
141
|
if (typeof child.type !== 'string' && ((_child$type4 = child.type) === null || _child$type4 === void 0 ? void 0 : _child$type4.name) !== 'Style') {
|
|
139
|
-
isChildrenValid =
|
|
142
|
+
isChildrenValid = _isFlexibleUiPreviewBlock(child);
|
|
140
143
|
}
|
|
141
144
|
});
|
|
142
145
|
return isChildrenValid;
|
|
143
146
|
}
|
|
144
147
|
return false;
|
|
145
148
|
};
|
|
149
|
+
export { _isFlexibleUiPreviewBlock as isFlexibleUiPreviewBlock };
|
|
146
150
|
export var isFlexibleUiFooterBlock = function isFlexibleUiFooterBlock(node) {
|
|
147
151
|
return /*#__PURE__*/React.isValidElement(node) && node.type === FooterBlock;
|
|
148
152
|
};
|