@atlaskit/media-card 79.0.0 → 79.0.1
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 +9 -0
- 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 +9 -2
|
@@ -1,36 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { jsx } from '@emotion/react';
|
|
8
|
-
import { inlinePlayerWrapperStyles, inlinePlayerClassName } from './inlinePlayerWrapperStyles';
|
|
9
|
-
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InlinePlayerWrapper as CompiledInlinePlayerWrapper } from './inlinePlayerWrapper-compiled';
|
|
3
|
+
import { InlinePlayerWrapper as EmotionInlinePlayerWrapper } from './inlinePlayerWrapper-emotion';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
5
|
export const InlinePlayerWrapper = props => {
|
|
11
|
-
|
|
12
|
-
testId,
|
|
13
|
-
selected,
|
|
14
|
-
dimensions,
|
|
15
|
-
onClick,
|
|
16
|
-
innerRef
|
|
17
|
-
} = props;
|
|
18
|
-
return (
|
|
19
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
20
|
-
jsx("div", _extends({
|
|
21
|
-
id: "inlinePlayerWrapper",
|
|
22
|
-
"data-testid": testId
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
|
-
,
|
|
25
|
-
className: inlinePlayerClassName
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
27
|
-
,
|
|
28
|
-
css: inlinePlayerWrapperStyles({
|
|
29
|
-
selected,
|
|
30
|
-
dimensions
|
|
31
|
-
}),
|
|
32
|
-
onClick: onClick,
|
|
33
|
-
ref: innerRef
|
|
34
|
-
}, VcMediaWrapperProps), props.children)
|
|
35
|
-
);
|
|
6
|
+
return fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledInlinePlayerWrapper, props) : /*#__PURE__*/React.createElement(EmotionInlinePlayerWrapper, props);
|
|
36
7
|
};
|
|
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
|
|
|
66
66
|
}
|
|
67
67
|
_defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
68
68
|
const packageName = "@atlaskit/media-card";
|
|
69
|
-
const packageVersion = "79.0.
|
|
69
|
+
const packageVersion = "79.0.1";
|
|
70
70
|
|
|
71
71
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
72
72
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* svgImage-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./svgImage-compiled.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
5
|
+
import { MediaCardError } from '../../errors';
|
|
6
|
+
import { calculateSvgDimensions } from './helpers';
|
|
7
|
+
import { useResolveSvg, MediaSVGError } from '@atlaskit/media-svg';
|
|
8
|
+
export const getErrorReason = svgReason => {
|
|
9
|
+
switch (svgReason) {
|
|
10
|
+
case 'img-error':
|
|
11
|
+
return 'svg-img-error';
|
|
12
|
+
case 'binary-fetch':
|
|
13
|
+
return 'svg-binary-fetch';
|
|
14
|
+
case 'blob-to-datauri':
|
|
15
|
+
return 'svg-blob-to-datauri';
|
|
16
|
+
default:
|
|
17
|
+
return 'svg-unknown-error';
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const svgRendererStyles = null;
|
|
21
|
+
const svgRendererMaxDimensionStyles = null;
|
|
22
|
+
export const SvgView = ({
|
|
23
|
+
identifier,
|
|
24
|
+
resizeMode,
|
|
25
|
+
onLoad,
|
|
26
|
+
onError,
|
|
27
|
+
wrapperRef,
|
|
28
|
+
alt
|
|
29
|
+
}) => {
|
|
30
|
+
const [didSvgRender, setDidSvgRender] = useState(false);
|
|
31
|
+
const [svgDimensions, setSvgDimensions] = useState({});
|
|
32
|
+
const imgRef = useRef(null);
|
|
33
|
+
const calculateDimensions = useCallback(targetImgElem => {
|
|
34
|
+
if (!wrapperRef.current || !targetImgElem) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
setSvgDimensions(calculateSvgDimensions(targetImgElem, wrapperRef.current, resizeMode));
|
|
38
|
+
}, [resizeMode, wrapperRef]);
|
|
39
|
+
const onSvgLoad = evt => {
|
|
40
|
+
calculateDimensions(evt.currentTarget);
|
|
41
|
+
setDidSvgRender(true);
|
|
42
|
+
onLoad === null || onLoad === void 0 ? void 0 : onLoad();
|
|
43
|
+
};
|
|
44
|
+
const onSvgError = err => {
|
|
45
|
+
const error = new MediaCardError(getErrorReason(err.primaryReason), err.secondaryError);
|
|
46
|
+
onError === null || onError === void 0 ? void 0 : onError(error);
|
|
47
|
+
};
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (imgRef.current) {
|
|
50
|
+
calculateDimensions(imgRef.current);
|
|
51
|
+
}
|
|
52
|
+
}, [imgRef, calculateDimensions]);
|
|
53
|
+
const {
|
|
54
|
+
svgUrl,
|
|
55
|
+
source
|
|
56
|
+
} = useResolveSvg(identifier, onSvgError);
|
|
57
|
+
const {
|
|
58
|
+
width,
|
|
59
|
+
height
|
|
60
|
+
} = svgDimensions;
|
|
61
|
+
return svgUrl && source ? /*#__PURE__*/React.createElement("img", {
|
|
62
|
+
"data-testid": 'media-card-svg',
|
|
63
|
+
"data-fileid": identifier.id,
|
|
64
|
+
"data-filecollection": identifier.collectionName,
|
|
65
|
+
"data-source": source,
|
|
66
|
+
src: svgUrl,
|
|
67
|
+
alt: alt,
|
|
68
|
+
style: {
|
|
69
|
+
visibility: didSvgRender ? 'visible' : 'hidden',
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
71
|
+
...svgDimensions
|
|
72
|
+
},
|
|
73
|
+
onLoad: onSvgLoad,
|
|
74
|
+
onError: () => {
|
|
75
|
+
onSvgError(new MediaSVGError('img-error'));
|
|
76
|
+
},
|
|
77
|
+
ref: imgRef,
|
|
78
|
+
className: ax(["_5ral1f51 _bfhku67f", !width && !height && "_p12f1osq _c71l1osq"])
|
|
79
|
+
}) : null;
|
|
80
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
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 React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
8
|
+
import { MediaCardError } from '../../errors';
|
|
9
|
+
import { calculateSvgDimensions } from './helpers';
|
|
10
|
+
import { useResolveSvg, MediaSVGError } from '@atlaskit/media-svg';
|
|
11
|
+
export const getErrorReason = svgReason => {
|
|
12
|
+
switch (svgReason) {
|
|
13
|
+
case 'img-error':
|
|
14
|
+
return 'svg-img-error';
|
|
15
|
+
case 'binary-fetch':
|
|
16
|
+
return 'svg-binary-fetch';
|
|
17
|
+
case 'blob-to-datauri':
|
|
18
|
+
return 'svg-blob-to-datauri';
|
|
19
|
+
default:
|
|
20
|
+
return 'svg-unknown-error';
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const svgRendererStyles = css({
|
|
24
|
+
objectFit: 'contain',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
26
|
+
backgroundColor: 'white' // This background color is for transparency
|
|
27
|
+
});
|
|
28
|
+
const svgRendererMaxDimensionStyles = css({
|
|
29
|
+
maxWidth: '100%',
|
|
30
|
+
maxHeight: '100%'
|
|
31
|
+
});
|
|
32
|
+
export const SvgView = ({
|
|
33
|
+
identifier,
|
|
34
|
+
resizeMode,
|
|
35
|
+
onLoad,
|
|
36
|
+
onError,
|
|
37
|
+
wrapperRef,
|
|
38
|
+
alt
|
|
39
|
+
}) => {
|
|
40
|
+
const [didSvgRender, setDidSvgRender] = useState(false);
|
|
41
|
+
const [svgDimensions, setSvgDimensions] = useState({});
|
|
42
|
+
const imgRef = useRef(null);
|
|
43
|
+
const calculateDimensions = useCallback(targetImgElem => {
|
|
44
|
+
if (!wrapperRef.current || !targetImgElem) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
setSvgDimensions(calculateSvgDimensions(targetImgElem, wrapperRef.current, resizeMode));
|
|
48
|
+
}, [resizeMode, wrapperRef]);
|
|
49
|
+
const onSvgLoad = evt => {
|
|
50
|
+
calculateDimensions(evt.currentTarget);
|
|
51
|
+
setDidSvgRender(true);
|
|
52
|
+
onLoad === null || onLoad === void 0 ? void 0 : onLoad();
|
|
53
|
+
};
|
|
54
|
+
const onSvgError = err => {
|
|
55
|
+
const error = new MediaCardError(getErrorReason(err.primaryReason), err.secondaryError);
|
|
56
|
+
onError === null || onError === void 0 ? void 0 : onError(error);
|
|
57
|
+
};
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (imgRef.current) {
|
|
60
|
+
calculateDimensions(imgRef.current);
|
|
61
|
+
}
|
|
62
|
+
}, [imgRef, calculateDimensions]);
|
|
63
|
+
const {
|
|
64
|
+
svgUrl,
|
|
65
|
+
source
|
|
66
|
+
} = useResolveSvg(identifier, onSvgError);
|
|
67
|
+
const {
|
|
68
|
+
width,
|
|
69
|
+
height
|
|
70
|
+
} = svgDimensions;
|
|
71
|
+
return svgUrl && source ? jsx("img", {
|
|
72
|
+
"data-testid": 'media-card-svg',
|
|
73
|
+
"data-fileid": identifier.id,
|
|
74
|
+
"data-filecollection": identifier.collectionName,
|
|
75
|
+
"data-source": source,
|
|
76
|
+
src: svgUrl,
|
|
77
|
+
alt: alt,
|
|
78
|
+
css: [svgRendererStyles, !width && !height && svgRendererMaxDimensionStyles],
|
|
79
|
+
style: {
|
|
80
|
+
visibility: didSvgRender ? 'visible' : 'hidden',
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
82
|
+
...svgDimensions
|
|
83
|
+
},
|
|
84
|
+
onLoad: onSvgLoad,
|
|
85
|
+
onError: () => {
|
|
86
|
+
onSvgError(new MediaSVGError('img-error'));
|
|
87
|
+
},
|
|
88
|
+
ref: imgRef
|
|
89
|
+
}) : null;
|
|
90
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
._v564ybtr{transition:all .3s}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}._154iidpf{top:0}
|
|
4
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
5
|
+
._1bahusic{justify-content:right}
|
|
6
|
+
._1e0c1txw{display:flex}
|
|
7
|
+
._1n261q9c{flex-wrap:nowrap}
|
|
8
|
+
._1xi2idpf{right:0}
|
|
9
|
+
._2lx2vrvc{flex-direction:row}
|
|
10
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
11
|
+
._kqswstnw{position:absolute}
|
|
12
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
13
|
+
._tzy4idpf{opacity:0}
|
|
14
|
+
._tzy4kb7n{opacity:1}
|
|
15
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* actionsBarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./actionsBarWrapper-compiled.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { actionsBarClassName } from './styles';
|
|
6
|
+
const wrapperStyles = null;
|
|
7
|
+
const fixedActionBarStyle = null;
|
|
8
|
+
export const ActionsBarWrapper = props => {
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
id: "actionsBarWrapper",
|
|
11
|
+
"data-testId": "actionsBarWrapper",
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
13
|
+
className: ax(["_v564ybtr _2lx2vrvc _1n261q9c _zulpu2gc _kqswstnw _154iidpf _1xi2idpf _1e0c1txw _1bahusic _ca0qu2gc _n3tdu2gc _u5f3u2gc _19bvu2gc _tzy4idpf", props.isFixed && "_tzy4kb7n", actionsBarClassName]),
|
|
14
|
+
onClick: event => {
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
event.preventDefault();
|
|
17
|
+
}
|
|
18
|
+
}, props.children);
|
|
19
|
+
};
|
|
20
|
+
ActionsBarWrapper.displayName = 'ActionsBarWrapper';
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { wrapperStyles, actionsBarClassName } from './styles';
|
|
8
|
+
export const ActionsBarWrapper = props => {
|
|
9
|
+
return (
|
|
10
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
11
|
+
jsx("div", {
|
|
12
|
+
id: "actionsBarWrapper",
|
|
13
|
+
"data-testId": "actionsBarWrapper"
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
+
,
|
|
16
|
+
css: wrapperStyles(props.isFixed)
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
18
|
+
,
|
|
19
|
+
className: actionsBarClassName,
|
|
20
|
+
onClick: event => {
|
|
21
|
+
event.stopPropagation();
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
}
|
|
24
|
+
}, props.children)
|
|
25
|
+
);
|
|
26
|
+
};
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { wrapperStyles, actionsBarClassName } from './styles';
|
|
8
|
-
export const ActionsBarWrapper = props => {
|
|
9
|
-
return (
|
|
10
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
11
|
-
jsx("div", {
|
|
12
|
-
id: "actionsBarWrapper",
|
|
13
|
-
"data-testId": "actionsBarWrapper"
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
-
,
|
|
16
|
-
css: wrapperStyles(props.isFixed)
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
18
|
-
,
|
|
19
|
-
className: actionsBarClassName,
|
|
20
|
-
onClick: event => {
|
|
21
|
-
event.stopPropagation();
|
|
22
|
-
event.preventDefault();
|
|
23
|
-
}
|
|
24
|
-
}, props.children)
|
|
25
|
-
);
|
|
26
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { ActionsBarWrapper as CompiledActionsBarWrapper } from './actionsBarWrapper-compiled';
|
|
4
|
+
import { ActionsBarWrapper as EmotionActionsBarWrapper } from './actionsBarWrapper-emotion';
|
|
5
|
+
export const ActionsBarWrapper = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledActionsBarWrapper, props) : /*#__PURE__*/React.createElement(EmotionActionsBarWrapper, props);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
._19itglyw{border:none}
|
|
2
|
+
._2rko1sit{border-radius:var(--ds-border-radius,3px)}
|
|
3
|
+
._1bah1h6o{justify-content:center}
|
|
4
|
+
._1bsb1ou6{width:26px}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
6
|
+
._4cvr1h6o{align-items:center}
|
|
7
|
+
._4t3i1ou6{height:26px}
|
|
8
|
+
._bfhk1pja{background-color:var(--ds-surface-overlay,hsla(0,0%,100%,.8))}
|
|
9
|
+
._r06hglyw{-webkit-appearance:none;appearance:none}
|
|
10
|
+
._syazilmm{color:var(--ds-icon,#42526e)}
|
|
11
|
+
._d0altlke:hover{cursor:pointer}
|
|
12
|
+
._irr3tl7t:hover{background-color:var(--ds-surface-overlay-hovered,hsla(0,0%,100%,.6))}
|
|
13
|
+
._irr3x5l4:hover{background-color:var(--ds-background-neutral-subtle-hovered,rgba(9,30,66,.06))}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* cardActionButton-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./cardActionButton-compiled.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
|
|
9
|
+
import { N500 } from '@atlaskit/theme/colors';
|
|
10
|
+
const variantStyleMap = {
|
|
11
|
+
filled: "_bfhk1pja _irr3tl7t",
|
|
12
|
+
default: "_irr3x5l4"
|
|
13
|
+
};
|
|
14
|
+
const cardActionButtonStyles = null;
|
|
15
|
+
export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
16
|
+
var _props$variant;
|
|
17
|
+
return /*#__PURE__*/React.createElement("button", _extends({}, props, {
|
|
18
|
+
id: "cardActionButton",
|
|
19
|
+
"data-testid": "media-card-primary-action",
|
|
20
|
+
"aria-label": props.label,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
22
|
+
style: {
|
|
23
|
+
...props.style,
|
|
24
|
+
cursor: props.disabled ? 'not-allowed' : 'default'
|
|
25
|
+
},
|
|
26
|
+
onClick: props.onClick,
|
|
27
|
+
onMouseDown: props.onMouseDown,
|
|
28
|
+
ref: ref,
|
|
29
|
+
className: ax(["_19itglyw _2rko1sit _r06hglyw _1e0c1txw _4cvr1h6o _1bah1h6o _1bsb1ou6 _4t3i1ou6 _syazilmm _d0altlke", variantStyleMap[(_props$variant = props.variant) !== null && _props$variant !== void 0 ? _props$variant : 'default']])
|
|
30
|
+
}), props.children);
|
|
31
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
9
|
+
import { cardActionButtonStyles } from './styles';
|
|
10
|
+
export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11
|
+
return jsx("button", _extends({}, props, {
|
|
12
|
+
id: "cardActionButton",
|
|
13
|
+
"data-testid": "media-card-primary-action",
|
|
14
|
+
"aria-label": props.label
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
+
,
|
|
17
|
+
css: cardActionButtonStyles(props)
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
20
|
+
style: {
|
|
21
|
+
...props.style,
|
|
22
|
+
cursor: props.disabled ? 'not-allowed' : 'default'
|
|
23
|
+
},
|
|
24
|
+
onClick: props.onClick,
|
|
25
|
+
onMouseDown: props.onMouseDown,
|
|
26
|
+
ref: ref
|
|
27
|
+
}), props.children);
|
|
28
|
+
});
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return jsx("button", _extends({}, props, {
|
|
12
|
-
id: "cardActionButton",
|
|
13
|
-
"data-testid": "media-card-primary-action",
|
|
14
|
-
"aria-label": props.label
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
-
,
|
|
17
|
-
css: cardActionButtonStyles(props)
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
19
|
-
,
|
|
20
|
-
style: {
|
|
21
|
-
...props.style,
|
|
22
|
-
cursor: props.disabled ? 'not-allowed' : 'default'
|
|
23
|
-
},
|
|
24
|
-
onClick: props.onClick,
|
|
25
|
-
onMouseDown: props.onMouseDown,
|
|
26
|
-
ref: ref
|
|
27
|
-
}), props.children);
|
|
28
|
-
});
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { CardActionButton as CompiledCardActionButton } from './cardActionButton-compiled';
|
|
5
|
+
import { CardActionButton as EmotionCardActionButton } from './cardActionButton-compiled';
|
|
6
|
+
export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledCardActionButton, _extends({}, props, {
|
|
7
|
+
ref: ref
|
|
8
|
+
})) : /*#__PURE__*/React.createElement(EmotionCardActionButton, _extends({}, props, {
|
|
9
|
+
ref: ref
|
|
10
|
+
})));
|
|
@@ -1,10 +1,4 @@
|
|
|
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 { Component, Fragment } from 'react';
|
|
1
|
+
import React, { Component, Fragment } from 'react';
|
|
8
2
|
import { CardActionIconButton } from './cardActionIconButton';
|
|
9
3
|
import { CardActionsDropdownMenu } from './cardActionsDropdownMenu';
|
|
10
4
|
export class CardActionsView extends Component {
|
|
@@ -17,7 +11,7 @@ export class CardActionsView extends Component {
|
|
|
17
11
|
}
|
|
18
12
|
const primaryAction = actions.find(actionWithIcon);
|
|
19
13
|
const otherActions = actions.filter(actionNotEqualTo(primaryAction));
|
|
20
|
-
return
|
|
14
|
+
return /*#__PURE__*/React.createElement(Fragment, null, primaryAction ? this.renderActionIconButton(primaryAction, true) : null, this.renderOtherActionButtons(otherActions));
|
|
21
15
|
}
|
|
22
16
|
renderActionIconButton(action, isPrimary) {
|
|
23
17
|
const {
|
|
@@ -32,7 +26,7 @@ export class CardActionsView extends Component {
|
|
|
32
26
|
isDisabled,
|
|
33
27
|
tooltip
|
|
34
28
|
} = action;
|
|
35
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement(CardActionIconButton, {
|
|
36
30
|
icon: icon,
|
|
37
31
|
label: label,
|
|
38
32
|
filename: filename,
|
|
@@ -58,7 +52,7 @@ export class CardActionsView extends Component {
|
|
|
58
52
|
if (firstActionWithIcon && otherActions.length === 0) {
|
|
59
53
|
return this.renderActionIconButton(firstActionWithIcon, false);
|
|
60
54
|
} else {
|
|
61
|
-
return
|
|
55
|
+
return /*#__PURE__*/React.createElement(CardActionsDropdownMenu, {
|
|
62
56
|
actions: actions,
|
|
63
57
|
triggerColor: triggerColor,
|
|
64
58
|
onOpenChange: onToggle,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
._v564ybtr{transition:all .3s}._154iidpf{top:0}
|
|
3
|
+
._1bsb1osq{width:100%}
|
|
4
|
+
._1ltvidpf{left:0}
|
|
5
|
+
._4t3i1osq{height:100%}
|
|
6
|
+
._bfhkrvv2{background-color:var(--ds-blanket,rgba(9,30,66,.48))}
|
|
7
|
+
._c71l1osq{max-height:100%}
|
|
8
|
+
._kqswstnw{position:absolute}
|
|
9
|
+
._p12f1osq{max-width:100%}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* blanket-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./blanket-compiled.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { N90A } from '@atlaskit/theme/colors';
|
|
6
|
+
export const blanketClassName = 'media-card-blanket';
|
|
7
|
+
export const fixedBlanketStyles = `background-color: ${`var(--ds-blanket, ${N90A})`};`;
|
|
8
|
+
const blanketStyles = null;
|
|
9
|
+
const fixedBlanketStyle = null;
|
|
10
|
+
export const Blanket = props => {
|
|
11
|
+
const {
|
|
12
|
+
isFixed
|
|
13
|
+
} = props;
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
+
className: ax(["_v564ybtr _kqswstnw _1bsb1osq _4t3i1osq _c71l1osq _p12f1osq _1ltvidpf _154iidpf", isFixed && "_bfhkrvv2", blanketClassName]),
|
|
17
|
+
"data-testid": "media-card-blanket"
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Blanket.displayName = 'Blanket';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { blanketStyles, blanketClassName } from './styles';
|
|
8
|
+
export const Blanket = props => {
|
|
9
|
+
const {
|
|
10
|
+
isFixed
|
|
11
|
+
} = props;
|
|
12
|
+
return jsx("div", {
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
+
css: blanketStyles(isFixed)
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
+
,
|
|
17
|
+
className: blanketClassName,
|
|
18
|
+
"data-testid": "media-card-blanket"
|
|
19
|
+
});
|
|
20
|
+
};
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { blanketStyles, blanketClassName } from './styles';
|
|
8
|
-
export const Blanket = props => {
|
|
9
|
-
const {
|
|
10
|
-
isFixed
|
|
11
|
-
} = props;
|
|
12
|
-
return jsx("div", {
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
-
css: blanketStyles(isFixed)
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
-
,
|
|
17
|
-
className: blanketClassName,
|
|
18
|
-
"data-testid": "media-card-blanket"
|
|
19
|
-
});
|
|
20
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { Blanket as CompiledBlanket } from './blanket-compiled';
|
|
4
|
+
import { Blanket as EmotionBlanket } from './blanket-emotion';
|
|
5
|
+
export const Blanket = props => fg('platform_media_compiled') ? /*#__PURE__*/React.createElement(CompiledBlanket, props) : /*#__PURE__*/React.createElement(EmotionBlanket, props);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
._18zru2gc{padding-inline:var(--ds-space-100,8px)}
|
|
3
|
+
._1rjc1b66{padding-block:var(--ds-space-050,4px)}._18m915vq{overflow-y:hidden}
|
|
4
|
+
._1pgl1ytf{animation-timing-function:ease-in-out}
|
|
5
|
+
._1reo15vq{overflow-x:hidden}
|
|
6
|
+
._5sag1nwe{animation-duration:3.5s}
|
|
7
|
+
._j7hqq7op{animation-name:k1o0pcpo}
|
|
8
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
9
|
+
._otyr1d21{margin-bottom:-1em}
|
|
10
|
+
._syaz1e9r{color:var(--ds-text-subtlest,#7a869a)}
|
|
11
|
+
._tip812c5{animation-iteration-count:infinite}
|
|
12
|
+
._tzy4kb7n{opacity:1}
|
|
13
|
+
._y3gn1h6o{text-align:center}
|
|
14
|
+
@keyframes k1o0pcpo{0%{opacity:1}50%{opacity:.3}to{opacity:1}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* iconMessageWrapper-compiled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./iconMessageWrapper-compiled.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const breatheAnimation = null;
|
|
6
|
+
const animatedStyles = null;
|
|
7
|
+
const baseStyles = null;
|
|
8
|
+
export const IconMessageWrapper = props => {
|
|
9
|
+
const {
|
|
10
|
+
animated
|
|
11
|
+
} = props;
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
id: "iconMessageWrapper",
|
|
14
|
+
className: ax(["_1reo15vq _18m915vq _1rjc1b66 _18zru2gc _tzy4kb7n _k48p1wq8 _syaz1e9r _y3gn1h6o _otyr1d21", animated && "", animated && "_j7hqq7op _5sag1nwe _1pgl1ytf _tip812c5"])
|
|
15
|
+
}, props.children);
|
|
16
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
import { keyframes } from '@emotion/react';
|
|
9
|
+
const breatheAnimation = keyframes({
|
|
10
|
+
'0%': {
|
|
11
|
+
opacity: 1
|
|
12
|
+
},
|
|
13
|
+
'50%': {
|
|
14
|
+
opacity: 0.3
|
|
15
|
+
},
|
|
16
|
+
'100%': {
|
|
17
|
+
opacity: 1
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const animatedStyles = css({
|
|
21
|
+
animationName: breatheAnimation,
|
|
22
|
+
animationDuration: '3.5s',
|
|
23
|
+
animationTimingFunction: 'ease-in-out',
|
|
24
|
+
animationIterationCount: 'infinite'
|
|
25
|
+
});
|
|
26
|
+
const baseStyles = css({
|
|
27
|
+
overflow: 'hidden',
|
|
28
|
+
opacity: 1,
|
|
29
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
30
|
+
color: "var(--ds-text-subtlest, #7A869A)",
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
33
|
+
marginBottom: '-1em',
|
|
34
|
+
// Needs pixel precision to align the icon at the center of the box
|
|
35
|
+
paddingBlock: "var(--ds-space-050, 4px)",
|
|
36
|
+
paddingInline: "var(--ds-space-100, 8px)"
|
|
37
|
+
});
|
|
38
|
+
export const IconMessageWrapper = props => {
|
|
39
|
+
const {
|
|
40
|
+
animated
|
|
41
|
+
} = props;
|
|
42
|
+
return jsx("div", {
|
|
43
|
+
id: "iconMessageWrapper",
|
|
44
|
+
css: [baseStyles, animated && animatedStyles]
|
|
45
|
+
}, props.children);
|
|
46
|
+
};
|