@atlaskit/media-card 74.1.6 → 74.1.8
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 +29 -0
- package/classnames/package.json +8 -1
- package/dist/cjs/{actions.js → card/actions.js} +0 -0
- package/dist/cjs/{root/card/index.js → card/card.js} +14 -14
- package/dist/cjs/{root/card → card}/cardAnalytics.js +2 -2
- package/dist/cjs/{root/card → card}/cardConstants.js +0 -0
- package/dist/cjs/{files → card}/cardImageView/cardImageViewWrapper.js +0 -0
- package/dist/cjs/{files → card}/cardImageView/cardOverlay/cardOverlayComponents.js +0 -0
- package/dist/cjs/{files → card}/cardImageView/cardOverlay/index.js +0 -0
- package/dist/cjs/{files → card}/cardImageView/cardOverlay/styles.js +1 -1
- package/dist/cjs/{root → card/cardImageView}/cardViewWrapper.js +1 -1
- package/dist/cjs/{files → card}/cardImageView/classnames.js +0 -0
- package/dist/cjs/{files/cardImageView/index.js → card/cardImageView/fileCardImageView.js} +0 -0
- package/dist/cjs/{files → card/cardImageView}/index.js +2 -2
- package/dist/cjs/{files → card}/cardImageView/styles.js +2 -2
- package/dist/cjs/{root/card → card}/cardLoader.js +4 -4
- package/dist/cjs/{root/card → card}/cardState.js +1 -1
- package/dist/cjs/{root → card}/cardView.js +4 -4
- package/dist/cjs/{root/card → card}/getCardPreview/cache.js +1 -1
- package/dist/cjs/{root/card → card}/getCardPreview/filePreviewStatus.js +0 -0
- package/dist/cjs/{root/card → card}/getCardPreview/helpers.js +6 -6
- package/dist/cjs/{root/card → card/getCardPreview}/imageRefetchingAnalytics.js +0 -0
- package/dist/cjs/{root/card → card}/getCardPreview/index.js +4 -4
- package/dist/cjs/{root/card → card}/getCardStatus.js +0 -0
- package/dist/cjs/card/index.js +15 -0
- package/dist/cjs/{root → card}/inlinePlayer.js +5 -5
- package/dist/cjs/{root → card}/inlinePlayerLazy.js +0 -0
- package/dist/cjs/{root → card}/inlinePlayerWrapper.js +1 -1
- package/dist/cjs/{styles → card/styles}/animations.js +0 -0
- package/dist/cjs/{styles → card/styles}/config.js +0 -0
- package/dist/cjs/{styles → card/styles}/easing.js +0 -0
- package/dist/cjs/{styles → card/styles}/getSelectedBorderStyle.js +0 -0
- package/dist/cjs/{styles → card/styles}/index.js +0 -0
- package/dist/cjs/{styles → card/styles}/mixins.js +0 -0
- package/dist/cjs/{root → card/styles}/styles.js +4 -4
- package/dist/cjs/{root → card}/types.js +0 -0
- package/dist/cjs/{root → card}/ui/actionsBar/actionsBar.js +0 -0
- package/dist/cjs/{root → card}/ui/actionsBar/actionsBarWrapper.js +0 -0
- package/dist/cjs/{root → card}/ui/actionsBar/styles.js +1 -1
- package/dist/cjs/{root → card}/ui/actionsBar/types.js +0 -0
- package/dist/cjs/{root → card}/ui/blanket/blanket.js +0 -0
- package/dist/cjs/{root → card}/ui/blanket/styles.js +1 -1
- package/dist/cjs/{root → card}/ui/common.js +0 -0
- package/dist/cjs/{root → card}/ui/iconMessage/iconMessageWrapper.js +0 -0
- package/dist/cjs/{root → card}/ui/iconMessage/index.js +0 -0
- package/dist/cjs/{root → card}/ui/iconMessage/styles.js +0 -0
- package/dist/cjs/{root → card}/ui/iconMessage/types.js +0 -0
- package/dist/cjs/{root → card}/ui/iconWrapper/iconWrapper.js +0 -0
- package/dist/cjs/{root → card}/ui/iconWrapper/styles.js +0 -0
- package/dist/cjs/{root → card}/ui/iconWrapper/types.js +0 -0
- package/dist/cjs/{root → card}/ui/imageRenderer/imageRenderer.js +0 -0
- package/dist/cjs/{root → card}/ui/loadingRateLimited/styles.js +0 -0
- package/dist/cjs/{root → card}/ui/newFileExperience/newFileExperienceWrapper.js +1 -1
- package/dist/cjs/{root → card}/ui/newFileExperience/styles.js +3 -3
- package/dist/cjs/{root → card}/ui/newFileExperience/types.js +0 -0
- package/dist/cjs/{root → card}/ui/playButton/playButton.js +0 -0
- package/dist/cjs/{root → card}/ui/playButton/playButtonBackground.js +0 -0
- package/dist/cjs/{root → card}/ui/playButton/playButtonWrapper.js +0 -0
- package/dist/cjs/{root → card}/ui/playButton/styles.js +0 -0
- package/dist/cjs/{root → card}/ui/progressBar/progressBar.js +0 -0
- package/dist/cjs/{root → card}/ui/progressBar/styledBar.js +0 -0
- package/dist/cjs/{root → card}/ui/progressBar/styles.js +1 -1
- package/dist/cjs/{root → card}/ui/progressBar/types.js +0 -0
- package/dist/cjs/{root → card}/ui/styles.js +0 -0
- package/dist/cjs/{root → card}/ui/tickBox/styles.js +1 -1
- package/dist/cjs/{root → card}/ui/tickBox/tickBox.js +0 -0
- package/dist/cjs/{root → card}/ui/tickBox/tickBoxWrapper.js +0 -0
- package/dist/cjs/{root → card}/ui/tickBox/types.js +0 -0
- package/dist/cjs/{root → card}/ui/titleBox/failedTitleBox.js +0 -0
- package/dist/cjs/{root → card}/ui/titleBox/styles.js +1 -1
- package/dist/cjs/{root → card}/ui/titleBox/titleBox.js +0 -0
- package/dist/cjs/{root → card}/ui/titleBox/titleBoxComponents.js +0 -0
- package/dist/cjs/{root → card}/ui/titleBox/types.js +0 -0
- package/dist/cjs/classnames.js +1 -1
- package/dist/cjs/index.js +8 -6
- package/dist/cjs/{root → inline}/index.js +1 -9
- package/dist/cjs/{root/inline → inline}/loader.js +1 -1
- package/dist/cjs/{root/inline → inline}/mediaInlineCard.js +0 -0
- package/dist/cjs/types.js +5 -0
- package/dist/cjs/utils/cardActions/cardActionButton.js +8 -6
- package/dist/cjs/utils/cardActions/cardActionsDropdownMenu.js +2 -6
- package/dist/cjs/utils/cardActions/styles.js +1 -1
- package/dist/cjs/{root → utils}/media-card-analytics-error-boundary.js +0 -0
- package/dist/cjs/utils/objectURLCache.js +7 -7
- package/dist/cjs/utils/preventClickThrough.js +2 -1
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/cjs/utils/viewportDetector.js +22 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/{actions.js → card/actions.js} +0 -0
- package/dist/es2019/{root/card/index.js → card/card.js} +14 -14
- package/dist/es2019/{root/card → card}/cardAnalytics.js +2 -2
- package/dist/es2019/{root/card → card}/cardConstants.js +0 -0
- package/dist/es2019/{files → card}/cardImageView/cardImageViewWrapper.js +0 -0
- package/dist/es2019/{files → card}/cardImageView/cardOverlay/cardOverlayComponents.js +0 -0
- package/dist/es2019/{files → card}/cardImageView/cardOverlay/index.js +0 -0
- package/dist/es2019/{files → card}/cardImageView/cardOverlay/styles.js +1 -1
- package/dist/es2019/{root → card/cardImageView}/cardViewWrapper.js +1 -1
- package/dist/es2019/{files → card}/cardImageView/classnames.js +0 -0
- package/dist/es2019/{files/cardImageView/index.js → card/cardImageView/fileCardImageView.js} +0 -0
- package/dist/es2019/card/cardImageView/index.js +1 -0
- package/dist/es2019/{files → card}/cardImageView/styles.js +2 -2
- package/dist/es2019/{root/card → card}/cardLoader.js +3 -3
- package/dist/es2019/{root/card → card}/cardState.js +1 -1
- package/dist/es2019/{root → card}/cardView.js +3 -3
- package/dist/es2019/{root/card → card}/getCardPreview/cache.js +1 -1
- package/dist/es2019/{root/card → card}/getCardPreview/filePreviewStatus.js +0 -0
- package/dist/es2019/{root/card → card}/getCardPreview/helpers.js +6 -6
- package/dist/es2019/{root/card → card/getCardPreview}/imageRefetchingAnalytics.js +0 -0
- package/dist/es2019/{root/card → card}/getCardPreview/index.js +4 -4
- package/dist/es2019/{root/card → card}/getCardStatus.js +0 -0
- package/dist/es2019/card/index.js +1 -0
- package/dist/es2019/{root → card}/inlinePlayer.js +3 -3
- package/dist/es2019/{root → card}/inlinePlayerLazy.js +0 -0
- package/dist/es2019/{root → card}/inlinePlayerWrapper.js +1 -1
- package/dist/es2019/{styles → card/styles}/animations.js +0 -0
- package/dist/es2019/{styles → card/styles}/config.js +0 -0
- package/dist/es2019/{styles → card/styles}/easing.js +0 -0
- package/dist/es2019/{styles → card/styles}/getSelectedBorderStyle.js +0 -0
- package/dist/es2019/{styles → card/styles}/index.js +0 -0
- package/dist/es2019/{styles → card/styles}/mixins.js +0 -0
- package/dist/es2019/{root → card/styles}/styles.js +4 -4
- package/dist/es2019/{root → card}/types.js +0 -0
- package/dist/es2019/{root → card}/ui/actionsBar/actionsBar.js +0 -0
- package/dist/es2019/{root → card}/ui/actionsBar/actionsBarWrapper.js +0 -0
- package/dist/es2019/{root → card}/ui/actionsBar/styles.js +1 -1
- package/dist/es2019/{root → card}/ui/actionsBar/types.js +0 -0
- package/dist/es2019/{root → card}/ui/blanket/blanket.js +0 -0
- package/dist/es2019/{root → card}/ui/blanket/styles.js +1 -1
- package/dist/es2019/{root → card}/ui/common.js +0 -0
- package/dist/es2019/{root → card}/ui/iconMessage/iconMessageWrapper.js +0 -0
- package/dist/es2019/{root → card}/ui/iconMessage/index.js +0 -0
- package/dist/es2019/{root → card}/ui/iconMessage/styles.js +0 -0
- package/dist/es2019/{root → card}/ui/iconMessage/types.js +0 -0
- package/dist/es2019/{root → card}/ui/iconWrapper/iconWrapper.js +0 -0
- package/dist/es2019/{root → card}/ui/iconWrapper/styles.js +0 -0
- package/dist/es2019/{root → card}/ui/iconWrapper/types.js +0 -0
- package/dist/es2019/{root → card}/ui/imageRenderer/imageRenderer.js +0 -0
- package/dist/es2019/{root → card}/ui/loadingRateLimited/styles.js +0 -0
- package/dist/es2019/{root → card}/ui/newFileExperience/newFileExperienceWrapper.js +1 -1
- package/dist/es2019/{root → card}/ui/newFileExperience/styles.js +3 -3
- package/dist/es2019/{root → card}/ui/newFileExperience/types.js +0 -0
- package/dist/es2019/{root → card}/ui/playButton/playButton.js +0 -0
- package/dist/es2019/{root → card}/ui/playButton/playButtonBackground.js +0 -0
- package/dist/es2019/{root → card}/ui/playButton/playButtonWrapper.js +0 -0
- package/dist/es2019/{root → card}/ui/playButton/styles.js +0 -0
- package/dist/es2019/{root → card}/ui/progressBar/progressBar.js +0 -0
- package/dist/es2019/{root → card}/ui/progressBar/styledBar.js +0 -0
- package/dist/es2019/{root → card}/ui/progressBar/styles.js +1 -1
- package/dist/es2019/{root → card}/ui/progressBar/types.js +0 -0
- package/dist/es2019/{root → card}/ui/styles.js +0 -0
- package/dist/es2019/{root → card}/ui/tickBox/styles.js +1 -1
- package/dist/es2019/{root → card}/ui/tickBox/tickBox.js +0 -0
- package/dist/es2019/{root → card}/ui/tickBox/tickBoxWrapper.js +0 -0
- package/dist/es2019/{root → card}/ui/tickBox/types.js +0 -0
- package/dist/es2019/{root → card}/ui/titleBox/failedTitleBox.js +0 -0
- package/dist/es2019/{root → card}/ui/titleBox/styles.js +1 -1
- package/dist/es2019/{root → card}/ui/titleBox/titleBox.js +0 -0
- package/dist/es2019/{root → card}/ui/titleBox/titleBoxComponents.js +0 -0
- package/dist/es2019/{root → card}/ui/titleBox/types.js +0 -0
- package/dist/es2019/classnames.js +5 -1
- package/dist/es2019/in-product.js +4 -0
- package/dist/es2019/index.js +9 -4
- package/dist/es2019/inline/index.js +1 -0
- package/dist/es2019/{root/inline → inline}/loader.js +1 -1
- package/dist/es2019/{root/inline → inline}/mediaInlineCard.js +0 -0
- package/dist/es2019/types.js +4 -0
- package/dist/es2019/utils/cardActions/cardActionButton.js +5 -3
- package/dist/es2019/utils/cardActions/cardActionsDropdownMenu.js +2 -5
- package/dist/es2019/utils/cardActions/styles.js +1 -1
- package/dist/es2019/{root → utils}/media-card-analytics-error-boundary.js +0 -0
- package/dist/es2019/utils/objectURLCache.js +5 -5
- package/dist/es2019/utils/preventClickThrough.js +2 -1
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/es2019/utils/viewportDetector.js +22 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/{actions.js → card/actions.js} +0 -0
- package/dist/esm/{root/card/index.js → card/card.js} +14 -14
- package/dist/esm/{root/card → card}/cardAnalytics.js +2 -2
- package/dist/esm/{root/card → card}/cardConstants.js +0 -0
- package/dist/esm/{files → card}/cardImageView/cardImageViewWrapper.js +0 -0
- package/dist/esm/{files → card}/cardImageView/cardOverlay/cardOverlayComponents.js +0 -0
- package/dist/esm/{files → card}/cardImageView/cardOverlay/index.js +0 -0
- package/dist/esm/{files → card}/cardImageView/cardOverlay/styles.js +1 -1
- package/dist/esm/{root → card/cardImageView}/cardViewWrapper.js +1 -1
- package/dist/esm/{files → card}/cardImageView/classnames.js +0 -0
- package/dist/esm/{files/cardImageView/index.js → card/cardImageView/fileCardImageView.js} +0 -0
- package/dist/esm/card/cardImageView/index.js +1 -0
- package/dist/esm/{files → card}/cardImageView/styles.js +2 -2
- package/dist/esm/{root/card → card}/cardLoader.js +3 -3
- package/dist/esm/{root/card → card}/cardState.js +1 -1
- package/dist/esm/{root → card}/cardView.js +3 -3
- package/dist/esm/{root/card → card}/getCardPreview/cache.js +1 -1
- package/dist/esm/{root/card → card}/getCardPreview/filePreviewStatus.js +0 -0
- package/dist/esm/{root/card → card}/getCardPreview/helpers.js +6 -6
- package/dist/esm/{root/card → card/getCardPreview}/imageRefetchingAnalytics.js +0 -0
- package/dist/esm/{root/card → card}/getCardPreview/index.js +4 -4
- package/dist/esm/{root/card → card}/getCardStatus.js +0 -0
- package/dist/esm/card/index.js +1 -0
- package/dist/esm/{root → card}/inlinePlayer.js +3 -3
- package/dist/esm/{root → card}/inlinePlayerLazy.js +0 -0
- package/dist/esm/{root → card}/inlinePlayerWrapper.js +1 -1
- package/dist/esm/{styles → card/styles}/animations.js +0 -0
- package/dist/esm/{styles → card/styles}/config.js +0 -0
- package/dist/esm/{styles → card/styles}/easing.js +0 -0
- package/dist/esm/{styles → card/styles}/getSelectedBorderStyle.js +0 -0
- package/dist/esm/{styles → card/styles}/index.js +0 -0
- package/dist/esm/{styles → card/styles}/mixins.js +0 -0
- package/dist/esm/{root → card/styles}/styles.js +4 -4
- package/dist/esm/{root → card}/types.js +0 -0
- package/dist/esm/{root → card}/ui/actionsBar/actionsBar.js +0 -0
- package/dist/esm/{root → card}/ui/actionsBar/actionsBarWrapper.js +0 -0
- package/dist/esm/{root → card}/ui/actionsBar/styles.js +1 -1
- package/dist/esm/{root → card}/ui/actionsBar/types.js +0 -0
- package/dist/esm/{root → card}/ui/blanket/blanket.js +0 -0
- package/dist/esm/{root → card}/ui/blanket/styles.js +1 -1
- package/dist/esm/{root → card}/ui/common.js +0 -0
- package/dist/esm/{root → card}/ui/iconMessage/iconMessageWrapper.js +0 -0
- package/dist/esm/{root → card}/ui/iconMessage/index.js +0 -0
- package/dist/esm/{root → card}/ui/iconMessage/styles.js +0 -0
- package/dist/esm/{root → card}/ui/iconMessage/types.js +0 -0
- package/dist/esm/{root → card}/ui/iconWrapper/iconWrapper.js +0 -0
- package/dist/esm/{root → card}/ui/iconWrapper/styles.js +0 -0
- package/dist/esm/{root → card}/ui/iconWrapper/types.js +0 -0
- package/dist/esm/{root → card}/ui/imageRenderer/imageRenderer.js +0 -0
- package/dist/esm/{root → card}/ui/loadingRateLimited/styles.js +0 -0
- package/dist/esm/{root → card}/ui/newFileExperience/newFileExperienceWrapper.js +1 -1
- package/dist/esm/{root → card}/ui/newFileExperience/styles.js +3 -3
- package/dist/esm/{root → card}/ui/newFileExperience/types.js +0 -0
- package/dist/esm/{root → card}/ui/playButton/playButton.js +0 -0
- package/dist/esm/{root → card}/ui/playButton/playButtonBackground.js +0 -0
- package/dist/esm/{root → card}/ui/playButton/playButtonWrapper.js +0 -0
- package/dist/esm/{root → card}/ui/playButton/styles.js +0 -0
- package/dist/esm/{root → card}/ui/progressBar/progressBar.js +0 -0
- package/dist/esm/{root → card}/ui/progressBar/styledBar.js +0 -0
- package/dist/esm/{root → card}/ui/progressBar/styles.js +1 -1
- package/dist/esm/{root → card}/ui/progressBar/types.js +0 -0
- package/dist/esm/{root → card}/ui/styles.js +0 -0
- package/dist/esm/{root → card}/ui/tickBox/styles.js +1 -1
- package/dist/esm/{root → card}/ui/tickBox/tickBox.js +0 -0
- package/dist/esm/{root → card}/ui/tickBox/tickBoxWrapper.js +0 -0
- package/dist/esm/{root → card}/ui/tickBox/types.js +0 -0
- package/dist/esm/{root → card}/ui/titleBox/failedTitleBox.js +0 -0
- package/dist/esm/{root → card}/ui/titleBox/styles.js +1 -1
- package/dist/esm/{root → card}/ui/titleBox/titleBox.js +0 -0
- package/dist/esm/{root → card}/ui/titleBox/titleBoxComponents.js +0 -0
- package/dist/esm/{root → card}/ui/titleBox/types.js +0 -0
- package/dist/esm/classnames.js +5 -1
- package/dist/esm/in-product.js +4 -0
- package/dist/esm/index.js +9 -4
- package/dist/esm/inline/index.js +1 -0
- package/dist/esm/{root/inline → inline}/loader.js +1 -1
- package/dist/esm/{root/inline → inline}/mediaInlineCard.js +0 -0
- package/dist/esm/types.js +4 -0
- package/dist/esm/utils/cardActions/cardActionButton.js +5 -3
- package/dist/esm/utils/cardActions/cardActionsDropdownMenu.js +2 -7
- package/dist/esm/utils/cardActions/styles.js +1 -1
- package/dist/esm/{root → utils}/media-card-analytics-error-boundary.js +0 -0
- package/dist/esm/utils/objectURLCache.js +7 -7
- package/dist/esm/utils/preventClickThrough.js +2 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/esm/utils/viewportDetector.js +22 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/card/actions.d.ts +9 -0
- package/dist/types/card/card.d.ts +59 -0
- package/dist/types/card/cardAnalytics.d.ts +9 -0
- package/dist/types/card/cardConstants.d.ts +1 -0
- package/dist/types/card/cardImageView/cardImageViewWrapper.d.ts +6 -0
- package/dist/types/card/cardImageView/cardOverlay/cardOverlayComponents.d.ts +8 -0
- package/dist/types/card/cardImageView/cardOverlay/index.d.ts +39 -0
- package/dist/types/{files → card}/cardImageView/cardOverlay/styles.d.ts +0 -0
- package/dist/types/card/cardImageView/cardViewWrapper.d.ts +4 -0
- package/dist/types/card/cardImageView/classnames.d.ts +2 -0
- package/dist/types/card/cardImageView/fileCardImageView.d.ts +49 -0
- package/dist/types/card/cardImageView/index.d.ts +2 -0
- package/dist/types/card/cardImageView/styles.d.ts +24 -0
- package/dist/types/card/cardLoader.d.ts +6 -0
- package/dist/types/card/cardState.d.ts +5 -0
- package/dist/types/card/cardView.d.ts +80 -0
- package/dist/types/card/getCardPreview/cache.d.ts +19 -0
- package/dist/types/card/getCardPreview/filePreviewStatus.d.ts +5 -0
- package/dist/types/card/getCardPreview/helpers.d.ts +9 -0
- package/dist/types/card/getCardPreview/imageRefetchingAnalytics.d.ts +10 -0
- package/dist/types/card/getCardPreview/index.d.ts +57 -0
- package/dist/types/card/getCardStatus.d.ts +4 -0
- package/dist/types/card/index.d.ts +1 -0
- package/dist/types/card/inlinePlayer.d.ts +52 -0
- package/dist/types/card/inlinePlayerLazy.d.ts +2 -0
- package/dist/types/card/inlinePlayerWrapper.d.ts +4 -0
- package/dist/types/card/styles/animations.d.ts +1 -0
- package/dist/types/card/styles/config.d.ts +1 -0
- package/dist/types/card/styles/easing.d.ts +2 -0
- package/dist/types/card/styles/getSelectedBorderStyle.d.ts +3 -0
- package/dist/types/card/styles/index.d.ts +9 -0
- package/dist/types/card/styles/mixins.d.ts +21 -0
- package/dist/types/card/styles/styles.d.ts +10 -0
- package/dist/types/card/types.d.ts +24 -0
- package/dist/types/card/ui/actionsBar/actionsBar.d.ts +5 -0
- package/dist/types/card/ui/actionsBar/actionsBarWrapper.d.ts +4 -0
- package/dist/types/card/ui/actionsBar/styles.d.ts +6 -0
- package/dist/types/card/ui/actionsBar/types.d.ts +10 -0
- package/dist/types/card/ui/blanket/blanket.d.ts +6 -0
- package/dist/types/card/ui/blanket/styles.d.ts +6 -0
- package/dist/types/card/ui/common.d.ts +23 -0
- package/dist/types/card/ui/iconMessage/iconMessageWrapper.d.ts +4 -0
- package/dist/types/card/ui/iconMessage/index.d.ts +8 -0
- package/dist/types/card/ui/iconMessage/styles.d.ts +5 -0
- package/dist/types/card/ui/iconMessage/types.d.ts +19 -0
- package/dist/types/card/ui/iconWrapper/iconWrapper.d.ts +4 -0
- package/dist/types/card/ui/iconWrapper/styles.d.ts +7 -0
- package/dist/types/card/ui/iconWrapper/types.d.ts +6 -0
- package/dist/types/card/ui/imageRenderer/imageRenderer.d.ts +15 -0
- package/dist/types/card/ui/loadingRateLimited/styles.d.ts +13 -0
- package/dist/types/card/ui/newFileExperience/newFileExperienceWrapper.d.ts +4 -0
- package/dist/types/card/ui/newFileExperience/styles.d.ts +5 -0
- package/dist/types/card/ui/newFileExperience/types.d.ts +23 -0
- package/dist/types/card/ui/playButton/playButton.d.ts +2 -0
- package/dist/types/card/ui/playButton/playButtonBackground.d.ts +3 -0
- package/dist/types/card/ui/playButton/playButtonWrapper.d.ts +3 -0
- package/dist/types/card/ui/playButton/styles.d.ts +5 -0
- package/dist/types/card/ui/progressBar/progressBar.d.ts +10 -0
- package/dist/types/card/ui/progressBar/styledBar.d.ts +4 -0
- package/dist/types/card/ui/progressBar/styles.d.ts +7 -0
- package/dist/types/card/ui/progressBar/types.d.ts +7 -0
- package/dist/types/card/ui/styles.d.ts +11 -0
- package/dist/types/card/ui/tickBox/styles.d.ts +7 -0
- package/dist/types/card/ui/tickBox/tickBox.d.ts +3 -0
- package/dist/types/card/ui/tickBox/tickBoxWrapper.d.ts +4 -0
- package/dist/types/card/ui/tickBox/types.d.ts +4 -0
- package/dist/types/card/ui/titleBox/failedTitleBox.d.ts +3 -0
- package/dist/types/card/ui/titleBox/styles.d.ts +15 -0
- package/dist/types/card/ui/titleBox/titleBox.d.ts +4 -0
- package/dist/types/card/ui/titleBox/titleBoxComponents.d.ts +8 -0
- package/dist/types/card/ui/titleBox/types.d.ts +32 -0
- package/dist/types/classnames.d.ts +5 -1
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/in-product.d.ts +4 -0
- package/dist/types/index.d.ts +11 -73
- package/dist/types/inline/index.d.ts +1 -0
- package/dist/types/inline/loader.d.ts +25 -0
- package/dist/types/inline/mediaInlineCard.d.ts +14 -0
- package/dist/types/types.d.ts +72 -1
- package/dist/types/utils/analytics.d.ts +1 -2
- package/dist/types/utils/breakpoint.d.ts +1 -1
- package/dist/types/utils/cardActions/cardActionButton.d.ts +2 -3
- package/dist/types/utils/cardActions/cardActionsDropdownMenu.d.ts +1 -1
- package/dist/types/utils/cardActions/cardActionsView.d.ts +1 -1
- package/dist/types/utils/cardDimensions.d.ts +1 -5
- package/dist/types/utils/dimensionComparer.d.ts +1 -1
- package/dist/types/utils/getDataURIDimension.d.ts +1 -1
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/lightCards/getDimensionsWithDefault.d.ts +1 -1
- package/dist/types/utils/lightCards/styles.d.ts +1 -1
- package/dist/types/utils/lightCards/types.d.ts +1 -1
- package/dist/types/utils/media-card-analytics-error-boundary.d.ts +10 -0
- package/dist/types/utils/objectURLCache.d.ts +1 -1
- package/dist/types/utils/shouldDisplayImageThumbnail.d.ts +1 -1
- package/dist/types/utils/ufoExperiences.d.ts +1 -1
- package/dist/types-ts4.0/__tests_external__/index.d.ts +1 -0
- package/dist/types-ts4.0/__tests_external__/page-objects/MediaCard.d.ts +8 -0
- package/dist/{types → types-ts4.0/card}/actions.d.ts +0 -0
- package/dist/{types/root/card/index.d.ts → types-ts4.0/card/card.d.ts} +2 -1
- package/dist/{types/root → types-ts4.0}/card/cardAnalytics.d.ts +3 -3
- package/dist/{types/root → types-ts4.0}/card/cardConstants.d.ts +0 -0
- package/dist/{types/files → types-ts4.0/card}/cardImageView/cardImageViewWrapper.d.ts +0 -0
- package/dist/{types/files → types-ts4.0/card}/cardImageView/cardOverlay/cardOverlayComponents.d.ts +0 -0
- package/dist/{types/files → types-ts4.0/card}/cardImageView/cardOverlay/index.d.ts +2 -2
- package/dist/types-ts4.0/card/cardImageView/cardOverlay/styles.d.ts +26 -0
- package/dist/{types/root → types-ts4.0/card/cardImageView}/cardViewWrapper.d.ts +1 -1
- package/dist/{types/files → types-ts4.0/card}/cardImageView/classnames.d.ts +0 -0
- package/dist/{types/files/cardImageView/index.d.ts → types-ts4.0/card/cardImageView/fileCardImageView.d.ts} +2 -3
- package/dist/types-ts4.0/card/cardImageView/index.d.ts +2 -0
- package/dist/{types/files → types-ts4.0/card}/cardImageView/styles.d.ts +1 -1
- package/dist/{types/root → types-ts4.0}/card/cardLoader.d.ts +1 -1
- package/dist/{types/root → types-ts4.0}/card/cardState.d.ts +1 -1
- package/dist/{types/root → types-ts4.0/card}/cardView.d.ts +2 -2
- package/dist/{types/root → types-ts4.0}/card/getCardPreview/cache.d.ts +2 -2
- package/dist/{types/root → types-ts4.0}/card/getCardPreview/filePreviewStatus.d.ts +1 -1
- package/dist/{types/root → types-ts4.0}/card/getCardPreview/helpers.d.ts +1 -1
- package/dist/{types/root/card → types-ts4.0/card/getCardPreview}/imageRefetchingAnalytics.d.ts +1 -1
- package/dist/{types/root → types-ts4.0}/card/getCardPreview/index.d.ts +3 -3
- package/dist/{types/root → types-ts4.0}/card/getCardStatus.d.ts +1 -1
- package/dist/types-ts4.0/card/index.d.ts +1 -0
- package/dist/{types/root → types-ts4.0/card}/inlinePlayer.d.ts +3 -2
- package/dist/{types/root → types-ts4.0/card}/inlinePlayerLazy.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/inlinePlayerWrapper.d.ts +0 -0
- package/dist/types-ts4.0/card/styles/animations.d.ts +1 -0
- package/dist/{types → types-ts4.0/card}/styles/config.d.ts +0 -0
- package/dist/{types → types-ts4.0/card}/styles/easing.d.ts +0 -0
- package/dist/{types → types-ts4.0/card}/styles/getSelectedBorderStyle.d.ts +0 -0
- package/dist/{types → types-ts4.0/card}/styles/index.d.ts +0 -0
- package/dist/{types → types-ts4.0/card}/styles/mixins.d.ts +3 -3
- package/dist/{types/root → types-ts4.0/card/styles}/styles.d.ts +1 -1
- package/dist/{types/root → types-ts4.0/card}/types.d.ts +1 -1
- package/dist/{types/root → types-ts4.0/card}/ui/actionsBar/actionsBar.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/actionsBar/actionsBarWrapper.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/actionsBar/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/actionsBar/types.d.ts +1 -1
- package/dist/{types/root → types-ts4.0/card}/ui/blanket/blanket.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/blanket/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/common.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/iconMessage/iconMessageWrapper.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/iconMessage/index.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/iconMessage/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/iconMessage/types.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/iconWrapper/iconWrapper.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/iconWrapper/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/iconWrapper/types.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/imageRenderer/imageRenderer.d.ts +1 -1
- package/dist/{types/root → types-ts4.0/card}/ui/loadingRateLimited/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/newFileExperience/newFileExperienceWrapper.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/newFileExperience/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/newFileExperience/types.d.ts +2 -2
- package/dist/{types/root → types-ts4.0/card}/ui/playButton/playButton.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/playButton/playButtonBackground.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/playButton/playButtonWrapper.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/playButton/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/progressBar/progressBar.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/progressBar/styledBar.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/progressBar/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/progressBar/types.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/styles.d.ts +1 -1
- package/dist/{types/root → types-ts4.0/card}/ui/tickBox/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/tickBox/tickBox.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/tickBox/tickBoxWrapper.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/tickBox/types.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/titleBox/failedTitleBox.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/titleBox/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/titleBox/titleBox.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/titleBox/titleBoxComponents.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card}/ui/titleBox/types.d.ts +1 -1
- package/dist/types-ts4.0/classnames.d.ts +5 -0
- package/dist/types-ts4.0/errors.d.ts +41 -0
- package/dist/types-ts4.0/in-product.d.ts +5 -0
- package/dist/types-ts4.0/index.d.ts +15 -0
- package/dist/types-ts4.0/inline/index.d.ts +1 -0
- package/dist/{types/root → types-ts4.0}/inline/loader.d.ts +0 -0
- package/dist/{types/root → types-ts4.0}/inline/mediaInlineCard.d.ts +0 -0
- package/dist/types-ts4.0/types.d.ts +96 -0
- package/dist/types-ts4.0/utils/analytics.d.ts +77 -0
- package/dist/types-ts4.0/utils/breakpoint.d.ts +11 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionButton.d.ts +3 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionIconButton.d.ts +12 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionsDropdownMenu.d.ts +14 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionsView.d.ts +16 -0
- package/dist/types-ts4.0/utils/cardActions/index.d.ts +7 -0
- package/dist/types-ts4.0/utils/cardActions/styles.d.ts +18 -0
- package/dist/types-ts4.0/utils/cardDimensions.d.ts +49 -0
- package/dist/types-ts4.0/utils/containsPixelUnit.d.ts +1 -0
- package/dist/types-ts4.0/utils/dimensionComparer.d.ts +3 -0
- package/dist/types-ts4.0/utils/document.d.ts +2 -0
- package/dist/types-ts4.0/utils/errorIcon/index.d.ts +12 -0
- package/dist/types-ts4.0/utils/errorIcon/styles.d.ts +1 -0
- package/dist/types-ts4.0/utils/fileIcon/index.d.ts +12 -0
- package/dist/types-ts4.0/utils/fileIcon/styles.d.ts +1 -0
- package/dist/types-ts4.0/utils/generateUniqueId.d.ts +1 -0
- package/dist/types-ts4.0/utils/getCSSUnitValue.d.ts +1 -0
- package/dist/types-ts4.0/utils/getDataURIDimension.d.ts +9 -0
- package/dist/types-ts4.0/utils/getElementDimension.d.ts +2 -0
- package/dist/types-ts4.0/utils/getErrorMessage.d.ts +2 -0
- package/dist/types-ts4.0/utils/getMediaCardCursor.d.ts +6 -0
- package/dist/types-ts4.0/utils/globalScope/getSSRData.d.ts +3 -0
- package/dist/types-ts4.0/utils/globalScope/globalScope.d.ts +21 -0
- package/dist/types-ts4.0/utils/globalScope/index.d.ts +4 -0
- package/dist/types-ts4.0/utils/globalScope/types.d.ts +8 -0
- package/dist/types-ts4.0/utils/index.d.ts +14 -0
- package/dist/types-ts4.0/utils/isRetina.d.ts +1 -0
- package/dist/types-ts4.0/utils/isValidPercentageUnit.d.ts +1 -0
- package/dist/types-ts4.0/utils/lightCards/cardError.d.ts +12 -0
- package/dist/types-ts4.0/utils/lightCards/cardLoading.d.ts +5 -0
- package/dist/types-ts4.0/utils/lightCards/getDimensionsWithDefault.d.ts +2 -0
- package/dist/types-ts4.0/utils/lightCards/lightCardWrappers.d.ts +5 -0
- package/dist/types-ts4.0/utils/lightCards/styles.d.ts +4 -0
- package/dist/types-ts4.0/utils/lightCards/types.d.ts +15 -0
- package/dist/{types/root → types-ts4.0/utils}/media-card-analytics-error-boundary.d.ts +0 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/iconWrapper.d.ts +4 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/index.d.ts +10 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/styles.d.ts +2 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/types.d.ts +6 -0
- package/dist/types-ts4.0/utils/metadata.d.ts +2 -0
- package/dist/types-ts4.0/utils/objectURLCache.d.ts +11 -0
- package/dist/types-ts4.0/utils/preventClickThrough.d.ts +8 -0
- package/dist/types-ts4.0/utils/printScript.d.ts +2 -0
- package/dist/types-ts4.0/utils/progressBar/index.d.ts +9 -0
- package/dist/types-ts4.0/utils/progressBar/styles.d.ts +1 -0
- package/dist/types-ts4.0/utils/resizeModeToMediaImageProps.d.ts +5 -0
- package/dist/types-ts4.0/utils/shouldDisplayImageThumbnail.d.ts +3 -0
- package/dist/types-ts4.0/utils/ufoExperiences.d.ts +7 -0
- package/dist/types-ts4.0/utils/videoSnapshot.d.ts +1 -0
- package/dist/types-ts4.0/utils/viewportDetector.d.ts +6 -0
- package/in-product/package.json +8 -1
- package/package.json +19 -11
- package/report.api.md +13 -3
- package/types/package.json +8 -1
- package/dist/es2019/files/index.js +0 -1
- package/dist/es2019/root/index.js +0 -2
- package/dist/esm/files/index.js +0 -1
- package/dist/esm/root/index.js +0 -2
- package/dist/types/files/index.d.ts +0 -2
- package/dist/types/root/index.d.ts +0 -2
- package/dist/types/styles/animations.d.ts +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { newFileExperienceClassName } from '
|
|
3
|
+
import { newFileExperienceClassName } from '../../cardConstants';
|
|
4
4
|
import { newFileExperienceWrapperStyles } from './styles';
|
|
5
5
|
export const NewFileExperienceWrapper = props => {
|
|
6
6
|
const {
|
|
@@ -3,9 +3,9 @@ import { fontFamily } from '@atlaskit/theme/constants';
|
|
|
3
3
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
4
4
|
import { N20 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
6
|
-
import { transition } from '
|
|
7
|
-
import { fixedBlanketStyles, blanketClassName } from '
|
|
8
|
-
import { fixedActionBarStyles, actionsBarClassName } from '
|
|
6
|
+
import { transition } from '../../styles';
|
|
7
|
+
import { fixedBlanketStyles, blanketClassName } from '../blanket/styles';
|
|
8
|
+
import { fixedActionBarStyles, actionsBarClassName } from '../actionsBar/styles';
|
|
9
9
|
import { generateResponsiveStyles, getClickablePlayButtonStyles, getCursorStyle, getSelectableTickBoxStyles, getWrapperDimensions, getWrapperShadow } from '../styles';
|
|
10
10
|
export const newFileExperienceWrapperStyles = ({
|
|
11
11
|
breakpoint,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
3
|
-
import { rgba } from '
|
|
3
|
+
import { rgba } from '../../styles/mixins';
|
|
4
4
|
import { N0, N400 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { Breakpoint, getTitleBoxHeight, responsiveSettings } from '../common';
|
|
6
6
|
const height = 3;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
import { transition } from '
|
|
2
|
+
import { transition } from '../../styles';
|
|
3
3
|
import { B200, N0, N100 } from '@atlaskit/theme/colors';
|
|
4
4
|
export const tickBoxClassName = 'media-card-tickbox';
|
|
5
5
|
export const tickboxFixedStyles = `
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
3
3
|
import { N0 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { rgba } from '
|
|
4
|
+
import { rgba } from '../../styles/mixins';
|
|
5
5
|
|
|
6
6
|
const generateResponsiveStyles = (breakpoint = Breakpoint.SMALL) => {
|
|
7
7
|
const setting = responsiveSettings[breakpoint];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Entry Point: @atlaskit/media-card/classnames
|
|
3
|
+
* tsconfig.entry-points.json
|
|
4
|
+
*/
|
|
5
|
+
export { fileCardImageViewSelector, fileCardImageViewSelectedSelector } from './card/cardImageView/classnames';
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Entry Point: @atlaskit/media-card
|
|
3
|
+
* tsconfig.entry-points.json
|
|
4
|
+
*/
|
|
5
|
+
export { Card } from './card';
|
|
6
|
+
export { MediaInlineCard } from './inline';
|
|
2
7
|
export { CardLoading } from './utils/lightCards/cardLoading';
|
|
3
8
|
export { CardError } from './utils/lightCards/cardError';
|
|
4
9
|
export { defaultImageCardDimensions } from './utils/cardDimensions';
|
|
5
|
-
export { fileCardImageViewSelector, fileCardImageViewSelectedSelector } from './
|
|
6
|
-
export { inlinePlayerClassName } from './
|
|
7
|
-
export { newFileExperienceClassName } from './
|
|
10
|
+
export { fileCardImageViewSelector, fileCardImageViewSelectedSelector } from './card/cardImageView/classnames';
|
|
11
|
+
export { inlinePlayerClassName } from './card/styles/styles';
|
|
12
|
+
export { newFileExperienceClassName } from './card/cardConstants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MediaInlineCard } from './loader';
|
|
@@ -24,7 +24,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
|
|
|
24
24
|
/* webpackChunkName: "@atlaskit-internal_inline-media-card" */
|
|
25
25
|
'./mediaInlineCard'), import(
|
|
26
26
|
/* webpackChunkName: "@atlaskit-internal_media-card-error-boundary" */
|
|
27
|
-
'../media-card-analytics-error-boundary')]);
|
|
27
|
+
'../utils/media-card-analytics-error-boundary')]);
|
|
28
28
|
MediaInlineCardLoader.MediaInlineCard = mediaClient.withMediaClient(cardModule.MediaInlineCard);
|
|
29
29
|
MediaInlineCardLoader.ErrorBoundary = mediaCardErrorBoundaryModule.default;
|
|
30
30
|
|
|
File without changes
|
package/dist/es2019/types.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
import { forwardRef } from 'react';
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { cardActionButtonStyles } from './styles';
|
|
4
|
-
export const CardActionButton = props => {
|
|
5
|
+
export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5
6
|
return jsx("div", {
|
|
6
7
|
id: "cardActionButton",
|
|
7
8
|
"data-testid": "media-card-primary-action",
|
|
8
9
|
css: cardActionButtonStyles(props),
|
|
9
10
|
style: props.style,
|
|
10
11
|
onClick: props.onClick,
|
|
11
|
-
onMouseDown: props.onMouseDown
|
|
12
|
+
onMouseDown: props.onMouseDown,
|
|
13
|
+
ref: ref
|
|
12
14
|
}, props.children);
|
|
13
|
-
};
|
|
15
|
+
});
|
|
@@ -6,9 +6,6 @@ import DropdownMenu, { DropdownItemGroup, DropdownItem } from '@atlaskit/dropdow
|
|
|
6
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
7
|
import { createAndFireMediaCardEvent } from '../analytics';
|
|
8
8
|
import { CardActionButton } from './cardActionButton';
|
|
9
|
-
|
|
10
|
-
const CardActionButtonWithProps = props => /*#__PURE__*/React.createElement(CardActionButton, props);
|
|
11
|
-
|
|
12
9
|
const CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
13
10
|
onClick: createAndFireMediaCardEvent({
|
|
14
11
|
eventType: 'ui',
|
|
@@ -17,11 +14,11 @@ const CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
|
17
14
|
actionSubjectId: 'mediaCardDropDownMenu',
|
|
18
15
|
attributes: {}
|
|
19
16
|
})
|
|
20
|
-
})(
|
|
17
|
+
})(CardActionButton);
|
|
21
18
|
|
|
22
19
|
// Trick applied due to the lack of props type of DropdownItem
|
|
23
20
|
const DropdownItemWithProps = props => /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
24
|
-
|
|
21
|
+
testId: "media-card-actions-menu-item"
|
|
25
22
|
}, props));
|
|
26
23
|
|
|
27
24
|
const createDropdownItemWithAnalytics = (action, index) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N500, N0 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
4
|
-
import { rootStyles } from '../../styles';
|
|
4
|
+
import { rootStyles } from '../../card/styles';
|
|
5
5
|
export const wrapperStyles = css`
|
|
6
6
|
${rootStyles()}
|
|
7
7
|
display: flex;
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LRUMap } from 'lru_map';
|
|
2
2
|
import { EventEmitter2 } from 'eventemitter2';
|
|
3
3
|
export const PREVIEW_CACHE_LRU_SIZE = 50;
|
|
4
4
|
|
|
5
|
-
class ExtendedLRUCache extends
|
|
5
|
+
class ExtendedLRUCache extends LRUMap {
|
|
6
6
|
constructor(limit) {
|
|
7
7
|
super(limit);
|
|
8
8
|
this.eventEmitter = new EventEmitter2();
|
|
@@ -24,8 +24,8 @@ export class ObjectURLCache {
|
|
|
24
24
|
constructor(size) {
|
|
25
25
|
this.cache = new ExtendedLRUCache(size);
|
|
26
26
|
this.cache.on('shift', entry => {
|
|
27
|
-
if (entry && entry.
|
|
28
|
-
URL.revokeObjectURL(entry.
|
|
27
|
+
if (entry && entry[1].dataURI) {
|
|
28
|
+
URL.revokeObjectURL(entry[1].dataURI);
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -43,7 +43,7 @@ export class ObjectURLCache {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
remove(key) {
|
|
46
|
-
const removed = this.cache.
|
|
46
|
+
const removed = this.cache.delete(key);
|
|
47
47
|
removed && URL.revokeObjectURL(removed.dataURI);
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -3,7 +3,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata, LOGGED_FEATURE_FLAG_KE
|
|
|
3
3
|
import { MediaCardError } from '../errors';
|
|
4
4
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
5
5
|
const packageName = "@atlaskit/media-card";
|
|
6
|
-
const packageVersion = "74.1.
|
|
6
|
+
const packageVersion = "74.1.8";
|
|
7
7
|
let concurrentExperience;
|
|
8
8
|
|
|
9
9
|
const getExperience = id => {
|
|
@@ -18,10 +18,28 @@ const ViewportObserver = ({
|
|
|
18
18
|
children
|
|
19
19
|
}) => {
|
|
20
20
|
useEffect(() => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
let intersectionObserver;
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
intersectionObserver = new IntersectionObserver(createIntersectionObserverCallback(onVisible), {
|
|
25
|
+
root: getDocument(),
|
|
26
|
+
rootMargin: `${ABS_VIEWPORT_ANCHOR_OFFSET_TOP}px`
|
|
27
|
+
});
|
|
28
|
+
} catch (error) {
|
|
29
|
+
var _error$message;
|
|
30
|
+
|
|
31
|
+
const errorMessage = "Failed to construct 'IntersectionObserver': member root is not of type Element";
|
|
32
|
+
|
|
33
|
+
if ((_error$message = error.message) !== null && _error$message !== void 0 && _error$message.includes(errorMessage)) {
|
|
34
|
+
intersectionObserver = new IntersectionObserver(createIntersectionObserverCallback(onVisible), {
|
|
35
|
+
root: null,
|
|
36
|
+
rootMargin: `${ABS_VIEWPORT_ANCHOR_OFFSET_TOP}px`
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
throw error;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
25
43
|
cardEl && intersectionObserver.observe(cardEl);
|
|
26
44
|
return () => {
|
|
27
45
|
intersectionObserver.disconnect();
|
package/dist/es2019/version.json
CHANGED
|
File without changes
|
|
@@ -25,25 +25,25 @@ import DownloadIcon from '@atlaskit/icon/glyph/download';
|
|
|
25
25
|
import { globalMediaEventEmitter, isDifferentIdentifier, isFileIdentifier, RECENTS_COLLECTION, isImageRepresentationReady, isExternalImageIdentifier, isProcessedFileState, imageResizeModeToFileImageMode } from '@atlaskit/media-client';
|
|
26
26
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
27
27
|
import { injectIntl, IntlProvider } from 'react-intl-next';
|
|
28
|
-
import { CardView } from '
|
|
29
|
-
import { ViewportDetector } from '
|
|
30
|
-
import { getRequestedDimensions } from '
|
|
28
|
+
import { CardView } from './cardView';
|
|
29
|
+
import { ViewportDetector } from '../utils/viewportDetector';
|
|
30
|
+
import { getRequestedDimensions } from '../utils/getDataURIDimension';
|
|
31
31
|
import { getCardPreview, getCardPreviewFromCache, removeCardPreviewFromCache, getFilePreviewFromFileState, shouldResolvePreview, getSSRCardPreview, isLocalPreview, isSSRPreview, isSSRClientPreview, isSSRDataPreview, fetchAndCacheRemotePreview } from './getCardPreview';
|
|
32
|
-
import { getFileDetails } from '
|
|
33
|
-
import { InlinePlayerLazy } from '
|
|
34
|
-
import { getFileAttributes, extractErrorInfo, LOGGED_FEATURE_FLAGS } from '
|
|
35
|
-
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '
|
|
32
|
+
import { getFileDetails } from '../utils/metadata';
|
|
33
|
+
import { InlinePlayerLazy } from './inlinePlayerLazy';
|
|
34
|
+
import { getFileAttributes, extractErrorInfo, LOGGED_FEATURE_FLAGS } from '../utils/analytics';
|
|
35
|
+
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '../errors';
|
|
36
36
|
import { fireOperationalEvent as _fireOperationalEvent, fireCommencedEvent as _fireCommencedEvent, fireCopiedEvent, fireScreenEvent } from './cardAnalytics';
|
|
37
|
-
import getDocument from '
|
|
38
|
-
import { StoreSSRDataScript, getSSRData } from '
|
|
37
|
+
import getDocument from '../utils/document';
|
|
38
|
+
import { StoreSSRDataScript, getSSRData } from '../utils/globalScope';
|
|
39
39
|
import { getCardStateFromFileState, createStateUpdater } from './cardState';
|
|
40
40
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
41
|
-
import { isBigger } from '
|
|
42
|
-
import { getMediaCardCursor } from '
|
|
43
|
-
import { completeUfoExperience, startUfoExperience } from '
|
|
44
|
-
import { generateUniqueId } from '
|
|
41
|
+
import { isBigger } from '../utils/dimensionComparer';
|
|
42
|
+
import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
43
|
+
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
44
|
+
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
45
45
|
var packageName = "@atlaskit/media-card";
|
|
46
|
-
var packageVersion = "74.1.
|
|
46
|
+
var packageVersion = "74.1.8";
|
|
47
47
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
48
48
|
_inherits(CardBase, _Component);
|
|
49
49
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fireMediaCardEvent, getRenderSucceededEventPayload, getRenderErrorEventPayload, getRenderFailedFileStatusPayload, getCopiedFilePayload, getRenderCommencedEventPayload, getRenderPreviewableCardPayload } from '
|
|
2
|
-
import { MediaCardError } from '
|
|
1
|
+
import { fireMediaCardEvent, getRenderSucceededEventPayload, getRenderErrorEventPayload, getRenderFailedFileStatusPayload, getCopiedFilePayload, getRenderCommencedEventPayload, getRenderPreviewableCardPayload } from '../utils/analytics';
|
|
2
|
+
import { MediaCardError } from '../errors';
|
|
3
3
|
export var fireOperationalEvent = function fireOperationalEvent(createAnalyticsEvent, status, fileAttributes, performanceAttributes, ssrReliability) {
|
|
4
4
|
var error = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : new MediaCardError('missing-error-data');
|
|
5
5
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ import { css } from '@emotion/react';
|
|
|
12
12
|
import { borderRadius, size, ellipsis, absolute } from '@atlaskit/media-ui';
|
|
13
13
|
import { themed } from '@atlaskit/theme/components';
|
|
14
14
|
import * as colors from '@atlaskit/theme/colors';
|
|
15
|
-
import { rgba, centerX, easeOutCubic, transition, antialiased } from '
|
|
15
|
+
import { rgba, centerX, easeOutCubic, transition, antialiased } from '../../styles';
|
|
16
16
|
export var tickBoxStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n top: 8px;\n right: 8px;\n border-radius: 20px;\n color: #798599; /* TODO FIL-3884: Align color with new design */\n display: flex;\n opacity: 0;\n\n &.selected {\n opacity: 1;\n color: white;\n background-color: #0052cc; /* TODO FIL-3884: Align with tickbox icons */\n }\n\n /* Enforce dimensions of \"tick\" icon */\n svg {\n position: absolute;\n width: 14px;\n }\n"])), size(14), transition(), rgba('#ffffff', 0.5));
|
|
17
17
|
|
|
18
18
|
var getOverlayStyles = function getOverlayStyles(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { wrapperStyles } from '
|
|
3
|
+
import { wrapperStyles } from '../styles/styles';
|
|
4
4
|
export var Wrapper = function Wrapper(props) {
|
|
5
5
|
var testId = props.testId,
|
|
6
6
|
shouldUsePointerCursor = props.shouldUsePointerCursor,
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileCardImageView } from './fileCardImageView';
|
|
@@ -6,8 +6,8 @@ import { css } from '@emotion/react';
|
|
|
6
6
|
import { absolute, borderRadius, size } from '@atlaskit/media-ui';
|
|
7
7
|
import { themed } from '@atlaskit/theme/components';
|
|
8
8
|
import { N20, DN50, N0 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { rootStyles, cardShadow } from '
|
|
10
|
-
import { getSelectedBorderStyle } from '
|
|
9
|
+
import { rootStyles, cardShadow } from '../styles';
|
|
10
|
+
import { getSelectedBorderStyle } from '../styles/getSelectedBorderStyle';
|
|
11
11
|
|
|
12
12
|
var getShadowAttribute = function getShadowAttribute(props) {
|
|
13
13
|
var disableOverlay = props.disableOverlay;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import { useMemoizeFeatureFlags } from '@atlaskit/media-common';
|
|
4
4
|
import Loadable from 'react-loadable';
|
|
5
|
-
import { CardLoading } from '
|
|
5
|
+
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
6
6
|
var MediaCardContext = /*#__PURE__*/React.createContext({});
|
|
7
7
|
|
|
8
8
|
var CardLoadingWithContext = function CardLoadingWithContext() {
|
|
@@ -14,7 +14,7 @@ var MediaCard = Loadable({
|
|
|
14
14
|
loader: function loader() {
|
|
15
15
|
return import(
|
|
16
16
|
/* webpackChunkName: "@atlaskit-internal_media-card" */
|
|
17
|
-
'./
|
|
17
|
+
'./card').then(function (mod) {
|
|
18
18
|
return mod.Card;
|
|
19
19
|
});
|
|
20
20
|
},
|
|
@@ -26,7 +26,7 @@ var MediaCardErrorBoundary = Loadable({
|
|
|
26
26
|
loader: function loader() {
|
|
27
27
|
return import(
|
|
28
28
|
/* webpackChunkName: "@atlaskit-internal_media-card-error-boundary" */
|
|
29
|
-
'../media-card-analytics-error-boundary').then(function (mod) {
|
|
29
|
+
'../utils/media-card-analytics-error-boundary').then(function (mod) {
|
|
30
30
|
return mod.default;
|
|
31
31
|
});
|
|
32
32
|
},
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { isErrorFileState } from '@atlaskit/media-client';
|
|
8
|
-
import { MediaCardError } from '
|
|
8
|
+
import { MediaCardError } from '../errors';
|
|
9
9
|
import { getCardStatus, isFinalCardStatus } from './getCardStatus';
|
|
10
10
|
import { extractFilePreviewStatus } from './getCardPreview';
|
|
11
11
|
export var createStateUpdater = function createStateUpdater(newState) {
|
|
@@ -24,14 +24,14 @@ import SpinnerIcon from '@atlaskit/spinner';
|
|
|
24
24
|
import Tooltip from '@atlaskit/tooltip';
|
|
25
25
|
import { toHumanReadableMediaSize, messages } from '@atlaskit/media-ui';
|
|
26
26
|
import { isRateLimitedError, isPollingError } from '@atlaskit/media-client';
|
|
27
|
-
import { FileCardImageView } from '
|
|
27
|
+
import { FileCardImageView } from './cardImageView';
|
|
28
28
|
import { breakpointSize } from '../utils/breakpoint';
|
|
29
29
|
import { defaultImageCardDimensions, getDefaultCardDimensions } from '../utils/cardDimensions';
|
|
30
30
|
import { isValidPercentageUnit } from '../utils/isValidPercentageUnit';
|
|
31
31
|
import { getCSSUnitValue } from '../utils/getCSSUnitValue';
|
|
32
32
|
import { getElementDimension } from '../utils/getElementDimension';
|
|
33
33
|
import { createAndFireMediaCardEvent } from '../utils/analytics';
|
|
34
|
-
import { attachDetailsToActions } from '
|
|
34
|
+
import { attachDetailsToActions } from './actions';
|
|
35
35
|
import { getErrorMessage } from '../utils/getErrorMessage';
|
|
36
36
|
import { cardImageContainerStyles, calcBreakpointSize } from './ui/styles';
|
|
37
37
|
import { ImageRenderer } from './ui/imageRenderer/imageRenderer';
|
|
@@ -46,7 +46,7 @@ import { IconWrapper } from './ui/iconWrapper/iconWrapper';
|
|
|
46
46
|
import { PreviewUnavailable, CreatingPreview, FailedToUpload, PreviewCurrentlyUnavailable, FailedToLoad } from './ui/iconMessage';
|
|
47
47
|
import { isUploadError } from '../errors';
|
|
48
48
|
import { NewFileExperienceWrapper } from './ui/newFileExperience/newFileExperienceWrapper';
|
|
49
|
-
import { Wrapper } from './cardViewWrapper';
|
|
49
|
+
import { Wrapper } from './cardImageView/cardViewWrapper';
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* This is classic vanilla CardView class. To create an instance of class one would need to supply
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import { createObjectURLCache } from '
|
|
4
|
+
import { createObjectURLCache } from '../../utils/objectURLCache';
|
|
5
5
|
export var getCacheKey = function getCacheKey(id, mode) {
|
|
6
6
|
var resizeMode = mode || 'crop';
|
|
7
7
|
return [id, resizeMode].join('-');
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { takeSnapshot } from '
|
|
3
|
+
import { takeSnapshot } from '../../utils/videoSnapshot';
|
|
4
4
|
import { getMediaTypeFromMimeType } from '@atlaskit/media-common';
|
|
5
5
|
import { getOrientation } from '@atlaskit/media-ui';
|
|
6
|
-
import { LocalPreviewError, RemotePreviewError } from '
|
|
6
|
+
import { LocalPreviewError, RemotePreviewError } from '../../errors';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* This method tells the support for the media
|
|
@@ -36,7 +36,7 @@ var getImageLocalPreview = /*#__PURE__*/function () {
|
|
|
36
36
|
case 8:
|
|
37
37
|
_context.prev = 8;
|
|
38
38
|
_context.t0 = _context["catch"](0);
|
|
39
|
-
throw new LocalPreviewError('local-preview-image', _context.t0);
|
|
39
|
+
throw new LocalPreviewError('local-preview-image', _context.t0 instanceof Error ? _context.t0 : undefined);
|
|
40
40
|
|
|
41
41
|
case 11:
|
|
42
42
|
case "end":
|
|
@@ -73,7 +73,7 @@ var getVideoLocalPreview = /*#__PURE__*/function () {
|
|
|
73
73
|
case 7:
|
|
74
74
|
_context2.prev = 7;
|
|
75
75
|
_context2.t0 = _context2["catch"](0);
|
|
76
|
-
throw new LocalPreviewError('local-preview-video', _context2.t0);
|
|
76
|
+
throw new LocalPreviewError('local-preview-video', _context2.t0 instanceof Error ? _context2.t0 : undefined);
|
|
77
77
|
|
|
78
78
|
case 10:
|
|
79
79
|
case "end":
|
|
@@ -109,7 +109,7 @@ export var getCardPreviewFromFilePreview = /*#__PURE__*/function () {
|
|
|
109
109
|
case 7:
|
|
110
110
|
_context3.prev = 7;
|
|
111
111
|
_context3.t0 = _context3["catch"](0);
|
|
112
|
-
throw new LocalPreviewError('local-preview-rejected', _context3.t0);
|
|
112
|
+
throw new LocalPreviewError('local-preview-rejected', _context3.t0 instanceof Error ? _context3.t0 : undefined);
|
|
113
113
|
|
|
114
114
|
case 10:
|
|
115
115
|
if (!(typeof value === 'string')) {
|
|
@@ -178,7 +178,7 @@ export var getCardPreviewFromBackend = /*#__PURE__*/function () {
|
|
|
178
178
|
case 7:
|
|
179
179
|
_context4.prev = 7;
|
|
180
180
|
_context4.t0 = _context4["catch"](0);
|
|
181
|
-
throw new RemotePreviewError('remote-preview-fetch', _context4.t0);
|
|
181
|
+
throw new RemotePreviewError('remote-preview-fetch', _context4.t0 instanceof Error ? _context4.t0 : undefined);
|
|
182
182
|
|
|
183
183
|
case 10:
|
|
184
184
|
case "end":
|
|
File without changes
|
|
@@ -10,10 +10,10 @@ import { isPreviewableFileState, addFileAttrsToUrl } from '@atlaskit/media-clien
|
|
|
10
10
|
import { isMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
11
11
|
import cardPreviewCache from './cache';
|
|
12
12
|
import { getCardPreviewFromFilePreview, getCardPreviewFromBackend } from './helpers';
|
|
13
|
-
import { MediaCardError, SsrPreviewError, isUnsupportedLocalPreviewError } from '
|
|
14
|
-
import { isBigger } from '
|
|
13
|
+
import { MediaCardError, SsrPreviewError, isUnsupportedLocalPreviewError } from '../../errors';
|
|
14
|
+
import { isBigger } from '../../utils/dimensionComparer';
|
|
15
15
|
import { extractFilePreviewStatus, isPreviewableStatus } from './filePreviewStatus';
|
|
16
|
-
import { fireImageFetchingOperationalEvent, calculatePercentageDifference } from '
|
|
16
|
+
import { fireImageFetchingOperationalEvent, calculatePercentageDifference } from './imageRefetchingAnalytics';
|
|
17
17
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
18
18
|
export { getCardPreviewFromFilePreview, getCardPreviewFromBackend, isSupportedLocalPreview } from './helpers';
|
|
19
19
|
export { extractFilePreviewStatus } from './filePreviewStatus';
|
|
@@ -223,7 +223,7 @@ export var getSSRCardPreview = function getSSRCardPreview(ssr, mediaClient, id,
|
|
|
223
223
|
};
|
|
224
224
|
} catch (e) {
|
|
225
225
|
var reason = ssr === 'server' ? 'ssr-server-uri' : 'ssr-client-uri';
|
|
226
|
-
throw new SsrPreviewError(reason, e);
|
|
226
|
+
throw new SsrPreviewError(reason, e instanceof Error ? e : undefined);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
export var isLocalPreview = function isLocalPreview(preview) {
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './cardLoader';
|