@atlaskit/media-card 79.0.0 → 79.0.2
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 +21 -0
- package/classnames/package.json +3 -1
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +29 -33
- package/dist/cjs/card/inlinePlayerWrapper-compiled.compiled.css +19 -0
- package/dist/cjs/card/inlinePlayerWrapper-compiled.js +52 -0
- package/dist/cjs/card/inlinePlayerWrapper-emotion.js +42 -0
- package/dist/cjs/card/inlinePlayerWrapper.js +5 -33
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/svgView/svgImage-compiled.compiled.css +4 -0
- package/dist/cjs/card/svgView/svgImage-compiled.js +94 -0
- package/dist/cjs/card/svgView/svgImage-emotion.js +102 -0
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper-compiled.compiled.css +15 -0
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper-compiled.js +29 -0
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper-emotion.js +33 -0
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +6 -25
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton-compiled.compiled.css +13 -0
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +41 -0
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton-emotion.js +35 -0
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +10 -24
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsView.js +9 -10
- package/dist/cjs/card/ui/blanket/blanket-compiled.compiled.css +9 -0
- package/dist/cjs/card/ui/blanket/blanket-compiled.js +30 -0
- package/dist/cjs/card/ui/blanket/blanket-emotion.js +25 -0
- package/dist/cjs/card/ui/blanket/blanket.js +6 -17
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper-compiled.compiled.css +14 -0
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper-compiled.js +23 -0
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper-emotion.js +51 -0
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper.js +6 -43
- package/dist/cjs/card/ui/iconWrapper/iconWrapper-compiled.compiled.css +6 -0
- package/dist/cjs/card/ui/iconWrapper/iconWrapper-compiled.js +38 -0
- package/dist/cjs/card/ui/iconWrapper/iconWrapper-emotion.js +27 -0
- package/dist/cjs/card/ui/iconWrapper/iconWrapper.js +6 -19
- package/dist/cjs/card/ui/playButton/playButtonBackground-compiled.compiled.css +7 -0
- package/dist/cjs/card/ui/playButton/playButtonBackground-compiled.js +27 -0
- package/dist/cjs/card/ui/playButton/playButtonBackground-emotion.js +21 -0
- package/dist/cjs/card/ui/playButton/playButtonWrapper-compiled.compiled.css +10 -0
- package/dist/cjs/card/ui/playButton/playButtonWrapper-compiled.js +24 -0
- package/dist/cjs/card/ui/playButton/playButtonWrapper-emotion.js +23 -0
- package/dist/cjs/card/ui/playButton/playButtonWrapper.js +6 -15
- package/dist/cjs/card/ui/progressBar/styledBar-compiled.compiled.css +13 -0
- package/dist/cjs/card/ui/progressBar/styledBar-compiled.js +66 -0
- package/dist/cjs/card/ui/progressBar/styledBar-emotion.js +33 -0
- package/dist/cjs/card/ui/progressBar/styledBar.js +6 -25
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper-compiled.compiled.css +18 -0
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper-compiled.js +30 -0
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper-emotion.js +67 -0
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +7 -59
- package/dist/cjs/card/ui/titleBox/titleBoxComponents-compiled.compiled.css +35 -0
- package/dist/cjs/card/ui/titleBox/titleBoxComponents-compiled.js +88 -0
- package/dist/cjs/card/ui/titleBox/titleBoxComponents-emotion.js +72 -0
- package/dist/cjs/card/ui/titleBox/titleBoxComponents.js +9 -55
- package/dist/cjs/card/ui/unhandledErrorCard/contentLoadingErrorMessage.js +20 -0
- package/dist/cjs/card/ui/unhandledErrorCard/index.js +7 -97
- package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.compiled.css +11 -0
- package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +88 -0
- package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +106 -0
- package/dist/cjs/card/ui/wrapper/imageContainer-compiled.compiled.css +12 -0
- package/dist/cjs/card/ui/wrapper/imageContainer-compiled.js +41 -0
- package/dist/cjs/card/ui/wrapper/imageContainer-emotion.js +55 -0
- package/dist/cjs/card/ui/wrapper/imageContainer.js +6 -48
- package/dist/cjs/card/ui/wrapper/wrapper-compiled.compiled.css +24 -0
- package/dist/cjs/card/ui/wrapper/wrapper-compiled.js +96 -0
- package/dist/cjs/card/ui/wrapper/wrapper-emotion.js +61 -0
- package/dist/cjs/card/ui/wrapper/wrapper.js +5 -52
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardView.js +21 -27
- package/dist/es2019/card/inlinePlayerWrapper-compiled.compiled.css +19 -0
- package/dist/es2019/card/inlinePlayerWrapper-compiled.js +45 -0
- package/dist/es2019/card/inlinePlayerWrapper-emotion.js +36 -0
- package/dist/es2019/card/inlinePlayerWrapper.js +5 -34
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/svgView/svgImage-compiled.compiled.css +4 -0
- package/dist/es2019/card/svgView/svgImage-compiled.js +80 -0
- package/dist/es2019/card/svgView/svgImage-emotion.js +90 -0
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper-compiled.compiled.css +15 -0
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper-compiled.js +20 -0
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper-emotion.js +26 -0
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +5 -26
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton-compiled.compiled.css +13 -0
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +31 -0
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton-emotion.js +28 -0
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +9 -27
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsView.js +4 -10
- package/dist/es2019/card/ui/blanket/blanket-compiled.compiled.css +9 -0
- package/dist/es2019/card/ui/blanket/blanket-compiled.js +20 -0
- package/dist/es2019/card/ui/blanket/blanket-emotion.js +20 -0
- package/dist/es2019/card/ui/blanket/blanket.js +5 -20
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper-compiled.compiled.css +14 -0
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper-compiled.js +16 -0
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper-emotion.js +46 -0
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper.js +5 -46
- package/dist/es2019/card/ui/iconWrapper/iconWrapper-compiled.compiled.css +6 -0
- package/dist/es2019/card/ui/iconWrapper/iconWrapper-compiled.js +30 -0
- package/dist/es2019/card/ui/iconWrapper/iconWrapper-emotion.js +22 -0
- package/dist/es2019/card/ui/iconWrapper/iconWrapper.js +5 -22
- package/dist/es2019/card/ui/playButton/playButtonBackground-compiled.compiled.css +7 -0
- package/dist/es2019/card/ui/playButton/playButtonBackground-compiled.js +14 -0
- package/dist/es2019/card/ui/playButton/playButtonBackground-emotion.js +14 -0
- package/dist/es2019/card/ui/playButton/playButtonWrapper-compiled.compiled.css +10 -0
- package/dist/es2019/card/ui/playButton/playButtonWrapper-compiled.js +12 -0
- package/dist/es2019/card/ui/playButton/playButtonWrapper-emotion.js +16 -0
- package/dist/es2019/card/ui/playButton/playButtonWrapper.js +5 -16
- package/dist/es2019/card/ui/progressBar/styledBar-compiled.compiled.css +16 -0
- package/dist/es2019/card/ui/progressBar/styledBar-compiled.js +52 -0
- package/dist/es2019/card/ui/progressBar/styledBar-emotion.js +28 -0
- package/dist/es2019/card/ui/progressBar/styledBar.js +5 -28
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper-compiled.compiled.css +18 -0
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper-compiled.js +18 -0
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper-emotion.js +57 -0
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +5 -56
- package/dist/es2019/card/ui/titleBox/titleBoxComponents-compiled.compiled.css +35 -0
- package/dist/es2019/card/ui/titleBox/titleBoxComponents-compiled.js +86 -0
- package/dist/es2019/card/ui/titleBox/titleBoxComponents-emotion.js +71 -0
- package/dist/es2019/card/ui/titleBox/titleBoxComponents.js +8 -70
- package/dist/es2019/card/ui/unhandledErrorCard/contentLoadingErrorMessage.js +11 -0
- package/dist/es2019/card/ui/unhandledErrorCard/index.js +5 -83
- package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.compiled.css +11 -0
- package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +56 -0
- package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +85 -0
- package/dist/es2019/card/ui/wrapper/imageContainer-compiled.compiled.css +12 -0
- package/dist/es2019/card/ui/wrapper/imageContainer-compiled.js +31 -0
- package/dist/es2019/card/ui/wrapper/imageContainer-emotion.js +47 -0
- package/dist/es2019/card/ui/wrapper/imageContainer.js +5 -47
- package/dist/es2019/card/ui/wrapper/wrapper-compiled.compiled.css +24 -0
- package/dist/es2019/card/ui/wrapper/wrapper-compiled.js +86 -0
- package/dist/es2019/card/ui/wrapper/wrapper-emotion.js +55 -0
- package/dist/es2019/card/ui/wrapper/wrapper.js +5 -55
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardView.js +21 -27
- package/dist/esm/card/inlinePlayerWrapper-compiled.compiled.css +19 -0
- package/dist/esm/card/inlinePlayerWrapper-compiled.js +42 -0
- package/dist/esm/card/inlinePlayerWrapper-emotion.js +34 -0
- package/dist/esm/card/inlinePlayerWrapper.js +5 -32
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/svgView/svgImage-compiled.compiled.css +4 -0
- package/dist/esm/card/svgView/svgImage-compiled.js +84 -0
- package/dist/esm/card/svgView/svgImage-emotion.js +94 -0
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper-compiled.compiled.css +15 -0
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper-compiled.js +20 -0
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper-emotion.js +26 -0
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +5 -24
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton-compiled.compiled.css +13 -0
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +33 -0
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton-emotion.js +30 -0
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +8 -26
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsView.js +4 -10
- package/dist/esm/card/ui/blanket/blanket-compiled.compiled.css +9 -0
- package/dist/esm/card/ui/blanket/blanket-compiled.js +21 -0
- package/dist/esm/card/ui/blanket/blanket-emotion.js +18 -0
- package/dist/esm/card/ui/blanket/blanket.js +5 -16
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper-compiled.compiled.css +14 -0
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper-compiled.js +14 -0
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper-emotion.js +44 -0
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper.js +5 -42
- package/dist/esm/card/ui/iconWrapper/iconWrapper-compiled.compiled.css +6 -0
- package/dist/esm/card/ui/iconWrapper/iconWrapper-compiled.js +28 -0
- package/dist/esm/card/ui/iconWrapper/iconWrapper-emotion.js +20 -0
- package/dist/esm/card/ui/iconWrapper/iconWrapper.js +5 -18
- package/dist/esm/card/ui/playButton/playButtonBackground-compiled.compiled.css +7 -0
- package/dist/esm/card/ui/playButton/playButtonBackground-compiled.js +18 -0
- package/dist/esm/card/ui/playButton/playButtonBackground-emotion.js +14 -0
- package/dist/esm/card/ui/playButton/playButtonWrapper-compiled.compiled.css +10 -0
- package/dist/esm/card/ui/playButton/playButtonWrapper-compiled.js +15 -0
- package/dist/esm/card/ui/playButton/playButtonWrapper-emotion.js +16 -0
- package/dist/esm/card/ui/playButton/playButtonWrapper.js +5 -14
- package/dist/esm/card/ui/progressBar/styledBar-compiled.compiled.css +13 -0
- package/dist/esm/card/ui/progressBar/styledBar-compiled.js +55 -0
- package/dist/esm/card/ui/progressBar/styledBar-emotion.js +26 -0
- package/dist/esm/card/ui/progressBar/styledBar.js +5 -24
- package/dist/esm/card/ui/tickBox/tickBoxWrapper-compiled.compiled.css +18 -0
- package/dist/esm/card/ui/tickBox/tickBoxWrapper-compiled.js +21 -0
- package/dist/esm/card/ui/tickBox/tickBoxWrapper-emotion.js +60 -0
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +6 -58
- package/dist/esm/card/ui/titleBox/titleBoxComponents-compiled.compiled.css +35 -0
- package/dist/esm/card/ui/titleBox/titleBoxComponents-compiled.js +79 -0
- package/dist/esm/card/ui/titleBox/titleBoxComponents-emotion.js +65 -0
- package/dist/esm/card/ui/titleBox/titleBoxComponents.js +8 -54
- package/dist/esm/card/ui/unhandledErrorCard/contentLoadingErrorMessage.js +13 -0
- package/dist/esm/card/ui/unhandledErrorCard/index.js +7 -99
- package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.compiled.css +11 -0
- package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +78 -0
- package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +101 -0
- package/dist/esm/card/ui/wrapper/imageContainer-compiled.compiled.css +12 -0
- package/dist/esm/card/ui/wrapper/imageContainer-compiled.js +32 -0
- package/dist/esm/card/ui/wrapper/imageContainer-emotion.js +48 -0
- package/dist/esm/card/ui/wrapper/imageContainer.js +6 -47
- package/dist/esm/card/ui/wrapper/wrapper-compiled.compiled.css +24 -0
- package/dist/esm/card/ui/wrapper/wrapper-compiled.js +86 -0
- package/dist/esm/card/ui/wrapper/wrapper-emotion.js +53 -0
- package/dist/esm/card/ui/wrapper/wrapper.js +5 -51
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/cardView.d.ts +1 -6
- package/dist/types/card/inlinePlayerWrapper-compiled.d.ts +4 -0
- package/dist/types/card/inlinePlayerWrapper-emotion.d.ts +7 -0
- package/dist/types/card/inlinePlayerWrapper.d.ts +2 -6
- package/dist/types/card/svgView/svgImage-compiled.d.ts +17 -0
- package/dist/types/card/svgView/svgImage-emotion.d.ts +22 -0
- package/dist/types/card/ui/actionsBar/actionsBarWrapper-compiled.d.ts +6 -0
- package/dist/types/card/ui/actionsBar/actionsBarWrapper-emotion.d.ts +7 -0
- package/dist/types/card/ui/actionsBar/actionsBarWrapper.d.ts +2 -6
- package/dist/types/card/ui/actionsBar/cardActions/cardActionButton-compiled.d.ts +3 -0
- package/dist/types/card/ui/actionsBar/cardActions/cardActionButton-emotion.d.ts +3 -0
- package/dist/types/card/ui/actionsBar/cardActions/cardActionButton.d.ts +2 -2
- package/dist/types/card/ui/blanket/blanket-compiled.d.ts +10 -0
- package/dist/types/card/ui/blanket/blanket-emotion.d.ts +9 -0
- package/dist/types/card/ui/blanket/blanket.d.ts +2 -6
- package/dist/types/card/ui/iconMessage/iconMessageWrapper-compiled.d.ts +3 -0
- package/dist/types/card/ui/iconMessage/iconMessageWrapper-emotion.d.ts +7 -0
- package/dist/types/card/ui/iconMessage/iconMessageWrapper.d.ts +2 -6
- package/dist/types/card/ui/iconWrapper/iconWrapper-compiled.d.ts +8 -0
- package/dist/types/card/ui/iconWrapper/iconWrapper-emotion.d.ts +7 -0
- package/dist/types/card/ui/iconWrapper/iconWrapper.d.ts +2 -6
- package/dist/types/card/ui/playButton/playButtonBackground-compiled.d.ts +2 -0
- package/dist/types/card/ui/playButton/playButtonBackground-emotion.d.ts +6 -0
- package/dist/types/card/ui/playButton/playButtonWrapper-compiled.d.ts +2 -0
- package/dist/types/card/ui/playButton/playButtonWrapper-emotion.d.ts +6 -0
- package/dist/types/card/ui/playButton/playButtonWrapper.d.ts +2 -6
- package/dist/types/card/ui/progressBar/styledBar-compiled.d.ts +14 -0
- package/dist/types/card/ui/progressBar/styledBar-emotion.d.ts +7 -0
- package/dist/types/card/ui/progressBar/styledBar.d.ts +2 -6
- package/dist/types/card/ui/tickBox/tickBoxWrapper-compiled.d.ts +6 -0
- package/dist/types/card/ui/tickBox/tickBoxWrapper-emotion.d.ts +7 -0
- package/dist/types/card/ui/tickBox/tickBoxWrapper.d.ts +5 -6
- package/dist/types/card/ui/titleBox/titleBoxComponents-compiled.d.ts +16 -0
- package/dist/types/card/ui/titleBox/titleBoxComponents-emotion.d.ts +11 -0
- package/dist/types/card/ui/titleBox/titleBoxComponents.d.ts +6 -10
- package/dist/types/card/ui/unhandledErrorCard/contentLoadingErrorMessage.d.ts +6 -0
- package/dist/types/card/ui/unhandledErrorCard/index.d.ts +2 -9
- package/dist/types/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.d.ts +9 -0
- package/dist/types/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.d.ts +10 -0
- package/dist/types/card/ui/wrapper/imageContainer-compiled.d.ts +13 -0
- package/dist/types/card/ui/wrapper/imageContainer-emotion.d.ts +18 -0
- package/dist/types/card/ui/wrapper/imageContainer.d.ts +2 -7
- package/dist/types/card/ui/wrapper/wrapper-compiled.d.ts +6 -0
- package/dist/types/card/ui/wrapper/wrapper-emotion.d.ts +7 -0
- package/dist/types/card/ui/wrapper/wrapper.d.ts +2 -6
- package/dist/types-ts4.5/card/cardView.d.ts +1 -6
- package/dist/types-ts4.5/card/inlinePlayerWrapper-compiled.d.ts +4 -0
- package/dist/types-ts4.5/card/inlinePlayerWrapper-emotion.d.ts +7 -0
- package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +2 -6
- package/dist/types-ts4.5/card/svgView/svgImage-compiled.d.ts +17 -0
- package/dist/types-ts4.5/card/svgView/svgImage-emotion.d.ts +22 -0
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper-compiled.d.ts +6 -0
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper-emotion.d.ts +7 -0
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +2 -6
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton-compiled.d.ts +3 -0
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton-emotion.d.ts +3 -0
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/blanket/blanket-compiled.d.ts +10 -0
- package/dist/types-ts4.5/card/ui/blanket/blanket-emotion.d.ts +9 -0
- package/dist/types-ts4.5/card/ui/blanket/blanket.d.ts +2 -6
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper-compiled.d.ts +3 -0
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper-emotion.d.ts +7 -0
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +2 -6
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper-compiled.d.ts +8 -0
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper-emotion.d.ts +7 -0
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +2 -6
- package/dist/types-ts4.5/card/ui/playButton/playButtonBackground-compiled.d.ts +2 -0
- package/dist/types-ts4.5/card/ui/playButton/playButtonBackground-emotion.d.ts +6 -0
- package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper-compiled.d.ts +2 -0
- package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper-emotion.d.ts +6 -0
- package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper.d.ts +2 -6
- package/dist/types-ts4.5/card/ui/progressBar/styledBar-compiled.d.ts +14 -0
- package/dist/types-ts4.5/card/ui/progressBar/styledBar-emotion.d.ts +7 -0
- package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +2 -6
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper-compiled.d.ts +6 -0
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper-emotion.d.ts +7 -0
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +5 -6
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents-compiled.d.ts +16 -0
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents-emotion.d.ts +11 -0
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +6 -10
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/contentLoadingErrorMessage.d.ts +6 -0
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +2 -9
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.d.ts +9 -0
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.d.ts +10 -0
- package/dist/types-ts4.5/card/ui/wrapper/imageContainer-compiled.d.ts +13 -0
- package/dist/types-ts4.5/card/ui/wrapper/imageContainer-emotion.d.ts +18 -0
- package/dist/types-ts4.5/card/ui/wrapper/imageContainer.d.ts +2 -7
- package/dist/types-ts4.5/card/ui/wrapper/wrapper-compiled.d.ts +6 -0
- package/dist/types-ts4.5/card/ui/wrapper/wrapper-emotion.d.ts +7 -0
- package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +2 -6
- package/package.json +16 -7
- package/types/package.json +3 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* titleBoxComponents-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./titleBoxComponents-compiled.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { N0, N800 } from '@atlaskit/theme/colors';
|
|
7
|
+
import { rgba } from '../styles';
|
|
8
|
+
const smallLineHeight = 14;
|
|
9
|
+
const smallVerticalPadding = 4;
|
|
10
|
+
const smallHorizontalPadding = 8;
|
|
11
|
+
const largeLineHeight = 22;
|
|
12
|
+
const largeVerticalPadding = 8;
|
|
13
|
+
const largeHorizontalPadding = 12;
|
|
14
|
+
const responsiveStyleMap = {
|
|
15
|
+
small: "_ca0q1y44 _u5f3ftgi _n3td1y44 _19bvftgi _4t3i14no",
|
|
16
|
+
large: "_ca0qftgi _u5f31crf _n3tdftgi _19bv1crf _4t3i1wqb"
|
|
17
|
+
};
|
|
18
|
+
const HEX_REGEX = /^#[0-9A-F]{6}$/i;
|
|
19
|
+
const titleBoxWrapperStyles = null;
|
|
20
|
+
export const TitleBoxWrapper = props => {
|
|
21
|
+
const {
|
|
22
|
+
breakpoint,
|
|
23
|
+
titleBoxBgColor,
|
|
24
|
+
hidden
|
|
25
|
+
} = props;
|
|
26
|
+
const color = titleBoxBgColor && rgba(HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1);
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
id: "titleBoxWrapper",
|
|
29
|
+
"data-testid": "media-title-box",
|
|
30
|
+
style: {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
32
|
+
backgroundColor: color,
|
|
33
|
+
display: hidden ? 'none' : undefined
|
|
34
|
+
}
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
36
|
+
,
|
|
37
|
+
className: ax(["_kqswstnw _94n5idpf _1bsb1osq _bfhkvuon _syaz1fxt _80om1kw7 _lcxvglyw _1e0c1txw _2lx21bp4 _1bah1h6o", responsiveStyleMap[breakpoint]])
|
|
38
|
+
}, props.children);
|
|
39
|
+
};
|
|
40
|
+
TitleBoxWrapper.displayName = 'TitleBoxWrapper';
|
|
41
|
+
const infoStyles = null;
|
|
42
|
+
const iconOverlapStyle = null;
|
|
43
|
+
const titleBoxHeaderStyles = null;
|
|
44
|
+
export const TitleBoxHeader = props => {
|
|
45
|
+
const {
|
|
46
|
+
hasIconOverlap
|
|
47
|
+
} = props;
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
id: "titleBoxHeader",
|
|
50
|
+
"data-testid": "title-box-header"
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
|
+
,
|
|
53
|
+
className: ax(["_k48p1pd9", "_1reo15vq _18m915vq _o5721q9c", hasIconOverlap && "_u5f319bv"])
|
|
54
|
+
}, props.children);
|
|
55
|
+
};
|
|
56
|
+
TitleBoxHeader.displayName = 'FailedTitleBoxHeader';
|
|
57
|
+
const titleBoxFooterStyles = null;
|
|
58
|
+
export const TitleBoxFooter = props => {
|
|
59
|
+
const {
|
|
60
|
+
hasIconOverlap
|
|
61
|
+
} = props;
|
|
62
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
id: "titleBoxFooter",
|
|
64
|
+
"data-testid": "title-box-footer"
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
66
|
+
,
|
|
67
|
+
className: ax(["_1bto1l2s", "_1reo15vq _18m915vq _o5721q9c", hasIconOverlap && "_u5f319bv"])
|
|
68
|
+
}, props.children);
|
|
69
|
+
};
|
|
70
|
+
TitleBoxFooter.displayName = 'TitleBoxFooter';
|
|
71
|
+
const titleBoxIconStyles = null;
|
|
72
|
+
const newTitleBoxIconStyles = null;
|
|
73
|
+
export const TitleBoxIcon = props => {
|
|
74
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
id: "titleBoxIcon",
|
|
76
|
+
"data-testid": "title-box-icon",
|
|
77
|
+
className: ax([fg('platform-visual-refresh-icons') && "_kqswstnw _1xi21b66 _94n51b66", !fg('platform-visual-refresh-icons') && "_kqswstnw _1xi21b66 _94n5idpf"])
|
|
78
|
+
}, props.children);
|
|
79
|
+
};
|
|
80
|
+
const errorMessageWrapperStyles = null;
|
|
81
|
+
export const ErrorMessageWrapper = props => {
|
|
82
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
83
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
className: ax(["_zulpv77o _1e0c1txw _4cvr1h6o _1bah1y6m _bozgv77o _e4kmnkob _1nm41b66 _184u1b66"])
|
|
85
|
+
}, props.children);
|
|
86
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { jsx } from '@emotion/react';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { errorMessageWrapperStyles, newTitleBoxIconStyles, titleBoxFooterStyles, titleBoxHeaderStyles, titleBoxIconStyles, titleBoxWrapperStyles } from './styles';
|
|
9
|
+
export const TitleBoxWrapper = props => {
|
|
10
|
+
const {
|
|
11
|
+
breakpoint,
|
|
12
|
+
titleBoxBgColor,
|
|
13
|
+
hidden
|
|
14
|
+
} = props;
|
|
15
|
+
return jsx("div", {
|
|
16
|
+
id: "titleBoxWrapper",
|
|
17
|
+
"data-testid": "media-title-box"
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
20
|
+
css: titleBoxWrapperStyles({
|
|
21
|
+
breakpoint: breakpoint,
|
|
22
|
+
display: hidden ? 'none' : 'flex',
|
|
23
|
+
titleBoxBgColor: titleBoxBgColor
|
|
24
|
+
})
|
|
25
|
+
}, props.children);
|
|
26
|
+
};
|
|
27
|
+
export const TitleBoxHeader = props => {
|
|
28
|
+
const {
|
|
29
|
+
hasIconOverlap
|
|
30
|
+
} = props;
|
|
31
|
+
return jsx("div", {
|
|
32
|
+
id: "titleBoxHeader",
|
|
33
|
+
"data-testid": "title-box-header"
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
|
+
,
|
|
36
|
+
css: titleBoxHeaderStyles({
|
|
37
|
+
hasIconOverlap
|
|
38
|
+
})
|
|
39
|
+
}, props.children);
|
|
40
|
+
};
|
|
41
|
+
export const TitleBoxFooter = props => {
|
|
42
|
+
const {
|
|
43
|
+
hasIconOverlap
|
|
44
|
+
} = props;
|
|
45
|
+
return jsx("div", {
|
|
46
|
+
id: "titleBoxFooter",
|
|
47
|
+
"data-testid": "title-box-footer"
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
|
+
,
|
|
50
|
+
css: titleBoxFooterStyles({
|
|
51
|
+
hasIconOverlap
|
|
52
|
+
})
|
|
53
|
+
}, props.children);
|
|
54
|
+
};
|
|
55
|
+
export const TitleBoxIcon = props => {
|
|
56
|
+
return jsx("div", {
|
|
57
|
+
id: "titleBoxIcon",
|
|
58
|
+
"data-testid": "title-box-icon",
|
|
59
|
+
css: fg('platform-visual-refresh-icons') ?
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
|
+
newTitleBoxIconStyles :
|
|
62
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
63
|
+
titleBoxIconStyles
|
|
64
|
+
}, props.children);
|
|
65
|
+
};
|
|
66
|
+
export const ErrorMessageWrapper = props => {
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
68
|
+
return jsx("div", {
|
|
69
|
+
css: errorMessageWrapperStyles
|
|
70
|
+
}, props.children);
|
|
71
|
+
};
|
|
@@ -1,71 +1,9 @@
|
|
|
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 { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
7
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return jsx("div", {
|
|
16
|
-
id: "titleBoxWrapper",
|
|
17
|
-
"data-testid": "media-title-box"
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
|
-
,
|
|
20
|
-
css: titleBoxWrapperStyles({
|
|
21
|
-
breakpoint: breakpoint,
|
|
22
|
-
display: hidden ? 'none' : 'flex',
|
|
23
|
-
titleBoxBgColor: titleBoxBgColor
|
|
24
|
-
})
|
|
25
|
-
}, props.children);
|
|
26
|
-
};
|
|
27
|
-
export const TitleBoxHeader = props => {
|
|
28
|
-
const {
|
|
29
|
-
hasIconOverlap
|
|
30
|
-
} = props;
|
|
31
|
-
return jsx("div", {
|
|
32
|
-
id: "titleBoxHeader",
|
|
33
|
-
"data-testid": "title-box-header"
|
|
34
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
|
-
,
|
|
36
|
-
css: titleBoxHeaderStyles({
|
|
37
|
-
hasIconOverlap
|
|
38
|
-
})
|
|
39
|
-
}, props.children);
|
|
40
|
-
};
|
|
41
|
-
export const TitleBoxFooter = props => {
|
|
42
|
-
const {
|
|
43
|
-
hasIconOverlap
|
|
44
|
-
} = props;
|
|
45
|
-
return jsx("div", {
|
|
46
|
-
id: "titleBoxFooter",
|
|
47
|
-
"data-testid": "title-box-footer"
|
|
48
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
|
-
,
|
|
50
|
-
css: titleBoxFooterStyles({
|
|
51
|
-
hasIconOverlap
|
|
52
|
-
})
|
|
53
|
-
}, props.children);
|
|
54
|
-
};
|
|
55
|
-
export const TitleBoxIcon = props => {
|
|
56
|
-
return jsx("div", {
|
|
57
|
-
id: "titleBoxIcon",
|
|
58
|
-
"data-testid": "title-box-icon",
|
|
59
|
-
css: fg('platform-visual-refresh-icons') ?
|
|
60
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
|
-
newTitleBoxIconStyles :
|
|
62
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
63
|
-
titleBoxIconStyles
|
|
64
|
-
}, props.children);
|
|
65
|
-
};
|
|
66
|
-
export const ErrorMessageWrapper = props => {
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
68
|
-
return jsx("div", {
|
|
69
|
-
css: errorMessageWrapperStyles
|
|
70
|
-
}, props.children);
|
|
71
|
-
};
|
|
3
|
+
import { TitleBoxWrapper as CompiledTitleBoxWrapper, TitleBoxHeader as CompiledTitleBoxHeader, TitleBoxFooter as CompiledTitleBoxFooter, TitleBoxIcon as CompiledTitleBoxIcon, ErrorMessageWrapper as CompiledErrorMessageWrapper } from './titleBoxComponents-compiled';
|
|
4
|
+
import { TitleBoxWrapper as EmotionTitleBoxWrapper, TitleBoxHeader as EmotionTitleBoxHeader, TitleBoxFooter as EmotionTitleBoxFooter, TitleBoxIcon as EmotionTitleBoxIcon, ErrorMessageWrapper as EmotionErrorMessageWrapper } from './titleBoxComponents-emotion';
|
|
5
|
+
export const TitleBoxWrapper = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledTitleBoxWrapper, props) : /*#__PURE__*/React.createElement(EmotionTitleBoxWrapper, props);
|
|
6
|
+
export const TitleBoxHeader = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledTitleBoxHeader, props) : /*#__PURE__*/React.createElement(EmotionTitleBoxHeader, props);
|
|
7
|
+
export const TitleBoxFooter = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledTitleBoxFooter, props) : /*#__PURE__*/React.createElement(EmotionTitleBoxFooter, props);
|
|
8
|
+
export const TitleBoxIcon = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledTitleBoxIcon, props) : /*#__PURE__*/React.createElement(EmotionTitleBoxIcon, props);
|
|
9
|
+
export const ErrorMessageWrapper = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledErrorMessageWrapper, props) : /*#__PURE__*/React.createElement(EmotionErrorMessageWrapper, props);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const ContentLoadingErrorMessage = ({
|
|
3
|
+
isHidden
|
|
4
|
+
}) =>
|
|
5
|
+
/*#__PURE__*/
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
7
|
+
React.createElement("p", {
|
|
8
|
+
style: {
|
|
9
|
+
display: isHidden ? 'none' : 'block'
|
|
10
|
+
}
|
|
11
|
+
}, "We couldn't load this content");
|
|
@@ -1,83 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
|
|
9
|
-
import { N20, N800, Y500 } from '@atlaskit/theme/colors';
|
|
10
|
-
import { center, borderRadius } from '@atlaskit/media-ui';
|
|
11
|
-
import { defaultImageCardDimensions } from '../../../utils';
|
|
12
|
-
const isPercentage = value => /^\d+(\.\d+)?%$/.test(value);
|
|
13
|
-
const shouldShowText = ({
|
|
14
|
-
width,
|
|
15
|
-
height
|
|
16
|
-
}) => {
|
|
17
|
-
if (isPercentage(width) || isPercentage(height)) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
return parseInt(width, 10) >= 240 && parseInt(height, 10) >= 90;
|
|
21
|
-
};
|
|
22
|
-
const normalizeDimension = (value, defaultValue) => {
|
|
23
|
-
const sValue = value.toString();
|
|
24
|
-
return isPercentage(sValue) ? sValue : isNaN(parseInt(sValue, 10)) ? defaultValue + 'px' : parseInt(sValue, 10) + 'px';
|
|
25
|
-
};
|
|
26
|
-
const getConvertedDimension = dimensions => {
|
|
27
|
-
const {
|
|
28
|
-
width = defaultImageCardDimensions.width,
|
|
29
|
-
height = defaultImageCardDimensions.height
|
|
30
|
-
} = dimensions;
|
|
31
|
-
return {
|
|
32
|
-
width: normalizeDimension(width, defaultImageCardDimensions.width),
|
|
33
|
-
height: normalizeDimension(height, defaultImageCardDimensions.height)
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
const wrapperStyles = (dimensions = defaultImageCardDimensions) => {
|
|
37
|
-
try {
|
|
38
|
-
return css(
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
-
center,
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
|
-
borderRadius, {
|
|
43
|
-
background: `var(--ds-background-neutral, ${N20})`,
|
|
44
|
-
color: `var(--ds-text-subtle, ${N800})`,
|
|
45
|
-
maxHeight: '100%',
|
|
46
|
-
maxWidth: '100%'
|
|
47
|
-
},
|
|
48
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
|
-
getConvertedDimension(dimensions), {
|
|
50
|
-
display: 'flex',
|
|
51
|
-
flexDirection: 'column',
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
|
-
p: {
|
|
54
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
55
|
-
textAlign: 'center',
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
57
|
-
display: shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
} catch (e) {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
export class UnhandledErrorCard extends Component {
|
|
65
|
-
render() {
|
|
66
|
-
const {
|
|
67
|
-
dimensions,
|
|
68
|
-
onClick
|
|
69
|
-
} = this.props;
|
|
70
|
-
return (
|
|
71
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
72
|
-
jsx("div", {
|
|
73
|
-
css: wrapperStyles(dimensions),
|
|
74
|
-
onClick: onClick
|
|
75
|
-
}, jsx(WarningIcon, {
|
|
76
|
-
label: "Error",
|
|
77
|
-
color: `var(--ds-icon-warning, ${Y500})`,
|
|
78
|
-
LEGACY_size: "medium",
|
|
79
|
-
spacing: "spacious"
|
|
80
|
-
}), jsx("p", null, "We couldn't load this content"))
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { UnhandledErrorCard as CompiledUnhanldedErrorCard } from './unhandledErrorCard-compiled';
|
|
4
|
+
import { UnhandledErrorCard as EmotionUnhanldedErrorCard } from './unhandledErrorCard-emotion';
|
|
5
|
+
export const UnhandledErrorCard = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledUnhanldedErrorCard, props) : /*#__PURE__*/React.createElement(EmotionUnhanldedErrorCard, props);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
._1i7v1oud p{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
|
+
._2rko1l7b{border-radius:3px}._1bah1h6o{justify-content:center}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._2lx21bp4{flex-direction:column}
|
|
6
|
+
._31ku1h6o p{text-align:center}
|
|
7
|
+
._4cvr1h6o{align-items:center}
|
|
8
|
+
._bfhk1s4m{background-color:var(--ds-background-neutral,#f4f5f7)}
|
|
9
|
+
._c71l1osq{max-height:100%}
|
|
10
|
+
._p12f1osq{max-width:100%}
|
|
11
|
+
._syaz1aqp{color:var(--ds-text-subtle,#172b4d)}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* unhandledErrorCard-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./unhandledErrorCard-compiled.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { Component } from 'react';
|
|
6
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
|
|
7
|
+
import { N20, N800, Y500 } from '@atlaskit/theme/colors';
|
|
8
|
+
import { defaultImageCardDimensions } from '../../../utils';
|
|
9
|
+
import { ContentLoadingErrorMessage } from './contentLoadingErrorMessage';
|
|
10
|
+
const isPercentage = value => /^\d+(\.\d+)?%$/.test(value);
|
|
11
|
+
const shouldShowText = ({
|
|
12
|
+
width,
|
|
13
|
+
height
|
|
14
|
+
}) => {
|
|
15
|
+
if (isPercentage(width) || isPercentage(height)) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return parseInt(width, 10) >= 240 && parseInt(height, 10) >= 90;
|
|
19
|
+
};
|
|
20
|
+
const normalizeDimension = (value, defaultValue) => {
|
|
21
|
+
const sValue = value.toString();
|
|
22
|
+
return isPercentage(sValue) ? sValue : isNaN(parseInt(sValue, 10)) ? defaultValue + 'px' : parseInt(sValue, 10) + 'px';
|
|
23
|
+
};
|
|
24
|
+
const getConvertedDimension = dimensions => {
|
|
25
|
+
const {
|
|
26
|
+
width = defaultImageCardDimensions.width,
|
|
27
|
+
height = defaultImageCardDimensions.height
|
|
28
|
+
} = dimensions;
|
|
29
|
+
return {
|
|
30
|
+
width: normalizeDimension(width, defaultImageCardDimensions.width),
|
|
31
|
+
height: normalizeDimension(height, defaultImageCardDimensions.height)
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const wrapperStyle = null;
|
|
35
|
+
export class UnhandledErrorCard extends Component {
|
|
36
|
+
render() {
|
|
37
|
+
const {
|
|
38
|
+
dimensions = defaultImageCardDimensions,
|
|
39
|
+
onClick
|
|
40
|
+
} = this.props;
|
|
41
|
+
const convertedDimensions = getConvertedDimension(dimensions);
|
|
42
|
+
const hideText = !shouldShowText(getConvertedDimension(dimensions));
|
|
43
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
style: convertedDimensions,
|
|
45
|
+
onClick: onClick,
|
|
46
|
+
className: ax(["_2rko1l7b _1e0c1txw _4cvr1h6o _1bah1h6o _bfhk1s4m _syaz1aqp _c71l1osq _p12f1osq _2lx21bp4 _1i7v1oud _31ku1h6o"])
|
|
47
|
+
}, /*#__PURE__*/React.createElement(WarningIcon, {
|
|
48
|
+
label: "Error",
|
|
49
|
+
color: `var(--ds-icon-warning, ${Y500})`,
|
|
50
|
+
LEGACY_size: "medium",
|
|
51
|
+
spacing: "spacious"
|
|
52
|
+
}), /*#__PURE__*/React.createElement(ContentLoadingErrorMessage, {
|
|
53
|
+
isHidden: hideText
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { Component } from 'react';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
|
|
9
|
+
import { N20, N800, Y500 } from '@atlaskit/theme/colors';
|
|
10
|
+
import { center, borderRadius } from '@atlaskit/media-ui';
|
|
11
|
+
import { defaultImageCardDimensions } from '../../../utils';
|
|
12
|
+
import { ContentLoadingErrorMessage } from './contentLoadingErrorMessage';
|
|
13
|
+
const isPercentage = value => /^\d+(\.\d+)?%$/.test(value);
|
|
14
|
+
const shouldShowText = ({
|
|
15
|
+
width,
|
|
16
|
+
height
|
|
17
|
+
}) => {
|
|
18
|
+
if (isPercentage(width) || isPercentage(height)) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return parseInt(width, 10) >= 240 && parseInt(height, 10) >= 90;
|
|
22
|
+
};
|
|
23
|
+
const normalizeDimension = (value, defaultValue) => {
|
|
24
|
+
const sValue = value.toString();
|
|
25
|
+
return isPercentage(sValue) ? sValue : isNaN(parseInt(sValue, 10)) ? defaultValue + 'px' : parseInt(sValue, 10) + 'px';
|
|
26
|
+
};
|
|
27
|
+
const getConvertedDimension = dimensions => {
|
|
28
|
+
const {
|
|
29
|
+
width = defaultImageCardDimensions.width,
|
|
30
|
+
height = defaultImageCardDimensions.height
|
|
31
|
+
} = dimensions;
|
|
32
|
+
return {
|
|
33
|
+
width: normalizeDimension(width, defaultImageCardDimensions.width),
|
|
34
|
+
height: normalizeDimension(height, defaultImageCardDimensions.height)
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const wrapperStyles = (dimensions = defaultImageCardDimensions) => {
|
|
38
|
+
try {
|
|
39
|
+
return css(
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
+
center,
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
|
+
borderRadius, {
|
|
44
|
+
background: `var(--ds-background-neutral, ${N20})`,
|
|
45
|
+
color: `var(--ds-text-subtle, ${N800})`,
|
|
46
|
+
maxHeight: '100%',
|
|
47
|
+
maxWidth: '100%'
|
|
48
|
+
},
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
|
+
getConvertedDimension(dimensions), {
|
|
51
|
+
display: 'flex',
|
|
52
|
+
flexDirection: 'column',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
54
|
+
p: {
|
|
55
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
56
|
+
textAlign: 'center'
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
} catch (e) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
export class UnhandledErrorCard extends Component {
|
|
64
|
+
render() {
|
|
65
|
+
const {
|
|
66
|
+
dimensions,
|
|
67
|
+
onClick
|
|
68
|
+
} = this.props;
|
|
69
|
+
const isErrorHidden = !shouldShowText(getConvertedDimension(dimensions !== null && dimensions !== void 0 ? dimensions : defaultImageCardDimensions));
|
|
70
|
+
return (
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
72
|
+
jsx("div", {
|
|
73
|
+
css: wrapperStyles(dimensions),
|
|
74
|
+
onClick: onClick
|
|
75
|
+
}, jsx(WarningIcon, {
|
|
76
|
+
label: "Error",
|
|
77
|
+
color: `var(--ds-icon-warning, ${Y500})`,
|
|
78
|
+
LEGACY_size: "medium",
|
|
79
|
+
spacing: "spacious"
|
|
80
|
+
}), jsx(ContentLoadingErrorMessage, {
|
|
81
|
+
isHidden: isErrorHidden
|
|
82
|
+
}))
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko1sit{border-radius:var(--ds-border-radius,3px)}._18m915vq{overflow-y:hidden}
|
|
3
|
+
._1bah1h6o{justify-content:center}
|
|
4
|
+
._1bsb1osq{width:100%}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
6
|
+
._1reo15vq{overflow-x:hidden}
|
|
7
|
+
._2lx21bp4{flex-direction:column}
|
|
8
|
+
._4cvr1h6o{align-items:center}
|
|
9
|
+
._4t3i1osq{height:100%}
|
|
10
|
+
._c71l1osq{max-height:100%}
|
|
11
|
+
._kqswh2mm{position:relative}
|
|
12
|
+
._p12f1osq{max-width:100%}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* imageContainer-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./imageContainer-compiled.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fileCardImageViewSelector } from '../../classnames';
|
|
6
|
+
const imageContainerStyles = null;
|
|
7
|
+
const imageContainerCenterStyles = null;
|
|
8
|
+
export const ImageContainer = ({
|
|
9
|
+
children,
|
|
10
|
+
mediaName,
|
|
11
|
+
status,
|
|
12
|
+
progress,
|
|
13
|
+
selected,
|
|
14
|
+
source,
|
|
15
|
+
centerElements
|
|
16
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
"data-testid": fileCardImageViewSelector
|
|
18
|
+
/**
|
|
19
|
+
* This wrapper MUST add the classname in order to allow the editor to prevent bubbling up the click event.
|
|
20
|
+
* See the method isInteractiveElement in source platform/packages/editor/renderer/src/ui/Renderer/click-to-edit.ts
|
|
21
|
+
* Also, many other consumer tests rely on this selector.
|
|
22
|
+
*/
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
|
+
,
|
|
25
|
+
className: ax(["_1reo15vq _18m915vq _2rko1sit _1e0c1txw _kqswh2mm _p12f1osq _1bsb1osq _4t3i1osq _c71l1osq", centerElements && "_2lx21bp4 _1bah1h6o _4cvr1h6o", fileCardImageViewSelector]),
|
|
26
|
+
"data-test-media-name": mediaName,
|
|
27
|
+
"data-test-status": status,
|
|
28
|
+
"data-test-progress": progress,
|
|
29
|
+
"data-test-selected": selected,
|
|
30
|
+
"data-test-source": source
|
|
31
|
+
}, children);
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { jsx, css } from '@emotion/react';
|
|
7
|
+
import { fileCardImageViewSelector } from '../../classnames';
|
|
8
|
+
const imageContainerStyles = css({
|
|
9
|
+
display: 'flex',
|
|
10
|
+
position: 'relative',
|
|
11
|
+
maxWidth: '100%',
|
|
12
|
+
width: '100%',
|
|
13
|
+
height: '100%',
|
|
14
|
+
maxHeight: '100%',
|
|
15
|
+
overflow: 'hidden',
|
|
16
|
+
borderRadius: "var(--ds-border-radius, 3px)"
|
|
17
|
+
});
|
|
18
|
+
const imageContainerCenterStyles = css({
|
|
19
|
+
flexDirection: 'column',
|
|
20
|
+
justifyContent: 'center',
|
|
21
|
+
alignItems: 'center'
|
|
22
|
+
});
|
|
23
|
+
export const ImageContainer = ({
|
|
24
|
+
children,
|
|
25
|
+
mediaName,
|
|
26
|
+
status,
|
|
27
|
+
progress,
|
|
28
|
+
selected,
|
|
29
|
+
source,
|
|
30
|
+
centerElements
|
|
31
|
+
}) => jsx("div", {
|
|
32
|
+
css: [imageContainerStyles, centerElements && imageContainerCenterStyles],
|
|
33
|
+
"data-testid": fileCardImageViewSelector
|
|
34
|
+
/**
|
|
35
|
+
* This wrapper MUST add the classname in order to allow the editor to prevent bubbling up the click event.
|
|
36
|
+
* See the method isInteractiveElement in source platform/packages/editor/renderer/src/ui/Renderer/click-to-edit.ts
|
|
37
|
+
* Also, many other consumer tests rely on this selector.
|
|
38
|
+
*/
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
40
|
+
,
|
|
41
|
+
className: fileCardImageViewSelector,
|
|
42
|
+
"data-test-media-name": mediaName,
|
|
43
|
+
"data-test-status": status,
|
|
44
|
+
"data-test-progress": progress,
|
|
45
|
+
"data-test-selected": selected,
|
|
46
|
+
"data-test-source": source
|
|
47
|
+
}, children);
|
|
@@ -1,47 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { jsx, css } from '@emotion/react';
|
|
7
|
-
import { fileCardImageViewSelector } from '../../classnames';
|
|
8
|
-
const imageContainerStyles = css({
|
|
9
|
-
display: 'flex',
|
|
10
|
-
position: 'relative',
|
|
11
|
-
maxWidth: '100%',
|
|
12
|
-
width: '100%',
|
|
13
|
-
height: '100%',
|
|
14
|
-
maxHeight: '100%',
|
|
15
|
-
overflow: 'hidden',
|
|
16
|
-
borderRadius: "var(--ds-border-radius, 3px)"
|
|
17
|
-
});
|
|
18
|
-
const imageContainerCenterStyles = css({
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
justifyContent: 'center',
|
|
21
|
-
alignItems: 'center'
|
|
22
|
-
});
|
|
23
|
-
export const ImageContainer = ({
|
|
24
|
-
children,
|
|
25
|
-
mediaName,
|
|
26
|
-
status,
|
|
27
|
-
progress,
|
|
28
|
-
selected,
|
|
29
|
-
source,
|
|
30
|
-
centerElements
|
|
31
|
-
}) => jsx("div", {
|
|
32
|
-
css: [imageContainerStyles, centerElements && imageContainerCenterStyles],
|
|
33
|
-
"data-testid": fileCardImageViewSelector
|
|
34
|
-
/**
|
|
35
|
-
* This wrapper MUST add the classname in order to allow the editor to prevent bubbling up the click event.
|
|
36
|
-
* See the method isInteractiveElement in source platform/packages/editor/renderer/src/ui/Renderer/click-to-edit.ts
|
|
37
|
-
* Also, many other consumer tests rely on this selector.
|
|
38
|
-
*/
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
40
|
-
,
|
|
41
|
-
className: fileCardImageViewSelector,
|
|
42
|
-
"data-test-media-name": mediaName,
|
|
43
|
-
"data-test-status": status,
|
|
44
|
-
"data-test-progress": progress,
|
|
45
|
-
"data-test-selected": selected,
|
|
46
|
-
"data-test-source": source
|
|
47
|
-
}, children);
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { ImageContainer as CompiledImageContainer } from './imageContainer-compiled';
|
|
4
|
+
import { ImageContainer as EmotionImageContainer } from './imageContainer-compiled';
|
|
5
|
+
export const ImageContainer = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledImageContainer, props) : /*#__PURE__*/React.createElement(EmotionImageContainer, props);
|