@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Everything about this file change is just wrong.
|
|
4
|
+
* Mostly because we do bad things with classes.
|
|
5
|
+
* This is all wrong and hopefully will be removed from existence with card v3,
|
|
6
|
+
* so please don’t be too sad about all this!
|
|
7
|
+
*/
|
|
8
|
+
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
9
|
+
export interface OverlayProps {
|
|
10
|
+
hasError?: boolean;
|
|
11
|
+
noHover?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: JSX.Element[];
|
|
14
|
+
}
|
|
15
|
+
export declare const tickBoxStyles: import("@emotion/react").SerializedStyles;
|
|
16
|
+
export declare const overlayStyles: (props: OverlayProps) => import("@emotion/react").SerializedStyles;
|
|
17
|
+
export declare const errorLineStyles: import("@emotion/react").SerializedStyles;
|
|
18
|
+
export declare const leftColumnStyles: import("@emotion/react").SerializedStyles;
|
|
19
|
+
export declare const topRowStyles: import("@emotion/react").SerializedStyles;
|
|
20
|
+
export declare const bottomRowStyles: import("@emotion/react").SerializedStyles;
|
|
21
|
+
export declare const rightColumnStyles: import("@emotion/react").SerializedStyles;
|
|
22
|
+
export declare const errorMessageStyles: import("@emotion/react").SerializedStyles;
|
|
23
|
+
export declare const altWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
24
|
+
export declare const titleWrapperStyles: (theme: GlobalThemeTokens) => import("@emotion/react").SerializedStyles;
|
|
25
|
+
export declare const subtitleStyles: import("@emotion/react").SerializedStyles;
|
|
26
|
+
export declare const metadataStyles: import("@emotion/react").SerializedStyles;
|
|
File without changes
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { Component, ReactNode } from 'react';
|
|
4
4
|
import { MediaItemType, MediaType, ImageResizeMode } from '@atlaskit/media-client';
|
|
5
|
-
import {
|
|
6
|
-
import { CardAction } from '
|
|
7
|
-
import { CardPreview } from '../..';
|
|
5
|
+
import { CardStatus, CardPreview, CardDimensions } from '../../types';
|
|
6
|
+
import { CardAction } from '../actions';
|
|
8
7
|
export interface FileCardImageViewProps {
|
|
9
8
|
readonly mediaName?: string;
|
|
10
9
|
readonly mediaType?: MediaType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
3
|
-
import { CardStatus } from '../../
|
|
3
|
+
import { CardStatus } from '../../types';
|
|
4
4
|
export interface WrapperProps {
|
|
5
5
|
disableOverlay?: boolean;
|
|
6
6
|
selectable?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
3
|
-
import type { CardBaseProps } from '
|
|
3
|
+
import type { CardBaseProps } from './card';
|
|
4
4
|
export declare type CardWithMediaClientConfigProps = WithMediaClientConfigProps<CardBaseProps>;
|
|
5
5
|
declare const CardLoader: React.FC<CardWithMediaClientConfigProps>;
|
|
6
6
|
export default CardLoader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileState } from '@atlaskit/media-client';
|
|
2
2
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
3
|
-
import { CardState } from '
|
|
3
|
+
import { CardState } from '../types';
|
|
4
4
|
export declare const createStateUpdater: (newState: Partial<CardState>) => (prevState: CardState) => Pick<CardState, keyof CardState>;
|
|
5
5
|
export declare const getCardStateFromFileState: (fileState: FileState, isBannedLocalPreview: boolean, featureFlags?: MediaFeatureFlags | undefined) => Partial<CardState>;
|
|
@@ -4,9 +4,9 @@ import React, { MouseEvent } from 'react';
|
|
|
4
4
|
import { MessageDescriptor } from 'react-intl-next';
|
|
5
5
|
import { MediaItemType, FileDetails } from '@atlaskit/media-client';
|
|
6
6
|
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { SharedCardProps, CardStatus } from '../
|
|
7
|
+
import { SharedCardProps, CardStatus } from '../types';
|
|
8
8
|
import { MediaCardError } from '../errors';
|
|
9
|
-
import { CardPreview } from '
|
|
9
|
+
import { CardPreview } from '../types';
|
|
10
10
|
import { MediaCardCursor } from '../types';
|
|
11
11
|
export interface CardViewOwnProps extends SharedCardProps {
|
|
12
12
|
readonly status: CardStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
2
|
-
import { ObjectURLCache } from '
|
|
3
|
-
import { CardPreview } from '
|
|
2
|
+
import { ObjectURLCache } from '../../utils/objectURLCache';
|
|
3
|
+
import { CardPreview } from '../../types';
|
|
4
4
|
declare type Mode = ImageResizeMode | undefined;
|
|
5
5
|
export declare const getCacheKey: (id: string, mode: Mode) => string;
|
|
6
6
|
export interface CardPreviewCache {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
2
|
-
import { CardStatus, FilePreviewStatus } from '
|
|
2
|
+
import { CardStatus, FilePreviewStatus } from '../../types';
|
|
3
3
|
import { FileState } from '@atlaskit/media-client';
|
|
4
4
|
export declare const extractFilePreviewStatus: (fileState: FileState, isBannedLocalPreview: boolean, featureFlags?: MediaFeatureFlags | undefined) => FilePreviewStatus;
|
|
5
5
|
export declare const isPreviewableStatus: (cardStatus: CardStatus, { isPreviewable, hasPreview, isSupportedByBrowser }: FilePreviewStatus) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaClient, FilePreview, MediaStoreGetFileImageParams, MediaType } from '@atlaskit/media-client';
|
|
2
|
-
import { CardPreview } from '
|
|
2
|
+
import { CardPreview } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* This method tells the support for the media
|
|
5
5
|
* types covered in getCardPreviewFromFilePreview
|
package/dist/{types/root/card → types-ts4.0/card/getCardPreview}/imageRefetchingAnalytics.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { CardDimensions } from '../../
|
|
2
|
+
import { CardDimensions } from '../../types';
|
|
3
3
|
import { CardPreviewAttributes } from '../../utils/analytics';
|
|
4
4
|
declare type cardAction = 'cache-hit' | 'remote-success';
|
|
5
5
|
export declare const fireImageFetchingOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, action: cardAction, cardPreviewAttributes: CardPreviewAttributes) => void;
|
|
@@ -2,9 +2,9 @@ import { MediaClient, FilePreview, FileState, MediaStoreGetFileImageParams, Medi
|
|
|
2
2
|
import { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
3
|
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
4
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
import { CardDimensions } from '
|
|
6
|
-
import { MediaCardError } from '
|
|
7
|
-
import { CardStatus, CardPreview } from '
|
|
5
|
+
import { CardDimensions } from '../../types';
|
|
6
|
+
import { MediaCardError } from '../../errors';
|
|
7
|
+
import { CardStatus, CardPreview } from '../../types';
|
|
8
8
|
export { getCardPreviewFromFilePreview, getCardPreviewFromBackend, isSupportedLocalPreview, } from './helpers';
|
|
9
9
|
export { extractFilePreviewStatus } from './filePreviewStatus';
|
|
10
10
|
export declare const getCardPreviewFromCache: (id: string, mode: ImageResizeMode | undefined) => CardPreview | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FileStatus } from '@atlaskit/media-client';
|
|
2
|
-
import { CardStatus, FilePreviewStatus } from '
|
|
2
|
+
import { CardStatus, FilePreviewStatus } from '../types';
|
|
3
3
|
export declare const isFinalCardStatus: (status: CardStatus) => boolean;
|
|
4
4
|
export declare const getCardStatus: (fileStatus: FileStatus, { hasFilesize, isPreviewable, hasPreview }: FilePreviewStatus) => CardStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './cardLoader';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { MediaClient, FileIdentifier, FileState, MediaFileArtifacts, MediaSubscription } from '@atlaskit/media-client';
|
|
4
|
-
import {
|
|
4
|
+
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
5
|
+
import { CardDimensions } from '../types';
|
|
5
6
|
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
-
import type { CardPreview } from '
|
|
7
|
+
import type { CardPreview } from '../types';
|
|
7
8
|
export interface InlinePlayerOwnProps {
|
|
8
9
|
identifier: FileIdentifier;
|
|
9
10
|
mediaClient: MediaClient;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const spin: import("@emotion/serialize").Keyframes;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardAppearance } from '
|
|
1
|
+
import { CardAppearance } from '../../types';
|
|
2
2
|
export declare const centerX = "\n display: flex;\n justify-content: center;\n";
|
|
3
3
|
export declare const antialiased = "\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n";
|
|
4
4
|
export declare const centerSelfY = "\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n";
|
|
@@ -14,8 +14,8 @@ export interface WithAppearanceProps {
|
|
|
14
14
|
appearance?: CardAppearance;
|
|
15
15
|
}
|
|
16
16
|
export declare const withAppearance: (styleMap: {
|
|
17
|
-
image?: string | undefined;
|
|
18
17
|
auto?: string | undefined;
|
|
19
|
-
|
|
18
|
+
image?: string | undefined;
|
|
20
19
|
square?: string | undefined;
|
|
20
|
+
horizontal?: string | undefined;
|
|
21
21
|
}) => ({ appearance }: WithAppearanceProps) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InlinePlayerWrapperProps, WrapperProps } from '
|
|
1
|
+
import { InlinePlayerWrapperProps, WrapperProps } from '../types';
|
|
2
2
|
export declare const inlinePlayerClassName = "media-card-inline-player";
|
|
3
3
|
export declare const wrapperStyles: {
|
|
4
4
|
({ dimensions, breakpointSize, shouldUsePointerCursor, }: WrapperProps): import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { MouseEvent, ReactElement, RefObject } from 'react';
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { CardDimensions } from '../';
|
|
3
|
+
import { CardDimensions } from '../types';
|
|
4
4
|
import { BreakpointSizeValue } from '../utils/breakpoint';
|
|
5
5
|
export interface WrapperProps {
|
|
6
6
|
testId?: string;
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MediaType, ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
-
import { CardPreview } from '
|
|
3
|
+
import { CardPreview } from '../../../types';
|
|
4
4
|
export declare type ImageRendererProps = {
|
|
5
5
|
readonly cardPreview: CardPreview;
|
|
6
6
|
readonly mediaType: MediaType;
|
|
File without changes
|
package/dist/{types/root → types-ts4.0/card}/ui/newFileExperience/newFileExperienceWrapper.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { MouseEvent, RefObject } from 'react';
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { CardDimensions, CardAppearance } from '
|
|
4
|
-
import { Breakpoint } from '
|
|
3
|
+
import { CardDimensions, CardAppearance } from '../../../types';
|
|
4
|
+
import { Breakpoint } from '../common';
|
|
5
5
|
import { MediaCardCursor } from '../../../types';
|
|
6
6
|
export interface NewFileExperienceWrapperProps {
|
|
7
7
|
testId?: string;
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { CardDimensions, CardAppearance } from '
|
|
1
|
+
import { CardDimensions, CardAppearance } from '../../types';
|
|
2
2
|
import { Breakpoint } from './common';
|
|
3
3
|
import { MediaCardCursor } from '../../types';
|
|
4
4
|
export declare const calcBreakpointSize: (wrapperWidth?: number) => Breakpoint;
|
|
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,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import { Breakpoint } from '../common';
|
|
4
|
-
import { TitleBoxIcon as TitleBoxIconType } from '../../../
|
|
4
|
+
import { TitleBoxIcon as TitleBoxIconType } from '../../../types';
|
|
5
5
|
export declare type TitleBoxProps = {
|
|
6
6
|
name: string;
|
|
7
7
|
breakpoint: Breakpoint;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CardPreview } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Primary reason is logged through Data Portal.
|
|
4
|
+
* Make sure all the values are whitelisted in Measure -> Event Regitry -> "mediaCardRender failed" event
|
|
5
|
+
*/
|
|
6
|
+
export declare type MediaCardErrorPrimaryReason = 'upload' | 'metadata-fetch' | 'error-file-state' | RemotePreviewPrimaryReason | LocalPreviewPrimaryReason | ImageLoadPrimaryReason | SsrPreviewPrimaryReason | 'missing-error-data' | 'preview-fetch';
|
|
7
|
+
export declare type ImageLoadPrimaryReason = 'cache-remote-uri' | 'cache-local-uri' | 'local-uri' | 'remote-uri' | 'external-uri' | 'unknown-uri';
|
|
8
|
+
export declare type RemotePreviewPrimaryReason = 'remote-preview-fetch' | 'remote-preview-not-ready';
|
|
9
|
+
export declare type LocalPreviewPrimaryReason = 'local-preview-get' | 'local-preview-unsupported' | 'local-preview-rejected' | 'local-preview-image' | 'local-preview-video';
|
|
10
|
+
export declare type SsrPreviewPrimaryReason = 'ssr-client-uri' | 'ssr-client-load' | 'ssr-server-uri' | 'ssr-server-load';
|
|
11
|
+
export declare class MediaCardError extends Error {
|
|
12
|
+
readonly primaryReason: MediaCardErrorPrimaryReason;
|
|
13
|
+
readonly secondaryError?: Error | undefined;
|
|
14
|
+
constructor(primaryReason: MediaCardErrorPrimaryReason, secondaryError?: Error | undefined);
|
|
15
|
+
}
|
|
16
|
+
export declare class LocalPreviewError extends MediaCardError {
|
|
17
|
+
readonly primaryReason: LocalPreviewPrimaryReason;
|
|
18
|
+
readonly secondaryError?: Error | undefined;
|
|
19
|
+
constructor(primaryReason: LocalPreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
20
|
+
}
|
|
21
|
+
export declare class RemotePreviewError extends MediaCardError {
|
|
22
|
+
readonly primaryReason: RemotePreviewPrimaryReason;
|
|
23
|
+
readonly secondaryError?: Error | undefined;
|
|
24
|
+
constructor(primaryReason: RemotePreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
25
|
+
}
|
|
26
|
+
export declare class SsrPreviewError extends MediaCardError {
|
|
27
|
+
readonly primaryReason: SsrPreviewPrimaryReason;
|
|
28
|
+
readonly secondaryError?: Error | undefined;
|
|
29
|
+
constructor(primaryReason: SsrPreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
30
|
+
}
|
|
31
|
+
export declare const getImageLoadPrimaryReason: (source?: import("./types").CardPreviewSource | undefined) => ImageLoadPrimaryReason;
|
|
32
|
+
export declare class ImageLoadError extends MediaCardError {
|
|
33
|
+
constructor(source?: CardPreview['source']);
|
|
34
|
+
}
|
|
35
|
+
export declare function isMediaCardError(err: Error): err is MediaCardError;
|
|
36
|
+
export declare const isLocalPreviewError: (err: Error) => err is LocalPreviewError;
|
|
37
|
+
export declare const isRemotePreviewError: (err: Error) => err is LocalPreviewError;
|
|
38
|
+
export declare const isUnsupportedLocalPreviewError: (err: Error) => boolean;
|
|
39
|
+
export declare function isImageLoadError(err: Error): err is ImageLoadError;
|
|
40
|
+
export declare const ensureMediaCardError: (primaryReason: MediaCardErrorPrimaryReason, error: Error) => MediaCardError;
|
|
41
|
+
export declare const isUploadError: (error?: MediaCardError | undefined) => boolean | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry Point: @atlaskit/media-card
|
|
3
|
+
* tsconfig.entry-points.json
|
|
4
|
+
*/
|
|
5
|
+
export type { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
|
+
export type { CardAction, CardEventHandler } from './card/actions';
|
|
7
|
+
export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, SharedCardProps, CardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
|
|
8
|
+
export { Card } from './card';
|
|
9
|
+
export { MediaInlineCard } from './inline';
|
|
10
|
+
export { CardLoading } from './utils/lightCards/cardLoading';
|
|
11
|
+
export { CardError } from './utils/lightCards/cardError';
|
|
12
|
+
export { defaultImageCardDimensions } from './utils/cardDimensions';
|
|
13
|
+
export { fileCardImageViewSelector, fileCardImageViewSelectedSelector, } from './card/cardImageView/classnames';
|
|
14
|
+
export { inlinePlayerClassName } from './card/styles/styles';
|
|
15
|
+
export { newFileExperienceClassName } from './card/cardConstants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MediaInlineCard } from './loader';
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry Point: @atlaskit/media-card/types
|
|
3
|
+
* tsconfig.entry-points.json
|
|
4
|
+
*/
|
|
5
|
+
import { MouseEvent } from 'react';
|
|
6
|
+
import { FileDetails, MediaClient, Identifier, ImageResizeMode, FileState } from '@atlaskit/media-client';
|
|
7
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
|
+
import { MediaFeatureFlags, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
|
|
9
|
+
import { CardAction } from './card/actions';
|
|
10
|
+
import { MediaViewerDataSource } from '@atlaskit/media-viewer';
|
|
11
|
+
import { MediaCardError } from './errors';
|
|
12
|
+
export declare type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
|
|
13
|
+
export declare type FilePreviewStatus = {
|
|
14
|
+
hasFilesize: boolean;
|
|
15
|
+
isPreviewable: boolean;
|
|
16
|
+
hasPreview: boolean;
|
|
17
|
+
isSupportedByBrowser: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare type FileStateFlags = {
|
|
20
|
+
wasStatusProcessing: boolean;
|
|
21
|
+
wasStatusUploading: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare type CardAppearance = 'auto' | 'image' | 'square' | 'horizontal';
|
|
24
|
+
export declare type CardDimensionValue = number | string;
|
|
25
|
+
export declare type CardPreviewSource = 'local' | 'remote' | 'ssr-server' | 'ssr-client' | 'ssr-data' | 'cache-local' | 'cache-remote' | 'cache-ssr-client' | 'cache-ssr-server' | 'external';
|
|
26
|
+
export interface CardPreview {
|
|
27
|
+
dataURI: string;
|
|
28
|
+
orientation?: number;
|
|
29
|
+
dimensions?: CardDimensions;
|
|
30
|
+
source: CardPreviewSource;
|
|
31
|
+
}
|
|
32
|
+
export declare enum MediaCardCursor {
|
|
33
|
+
Action = "pointer",
|
|
34
|
+
NotReady = "wait"
|
|
35
|
+
}
|
|
36
|
+
export interface CardDimensions {
|
|
37
|
+
width?: CardDimensionValue;
|
|
38
|
+
height?: CardDimensionValue;
|
|
39
|
+
}
|
|
40
|
+
export declare type TitleBoxIcon = 'LockFilledIcon';
|
|
41
|
+
export interface CardEvent {
|
|
42
|
+
event: MouseEvent<HTMLElement>;
|
|
43
|
+
mediaItemDetails?: FileDetails;
|
|
44
|
+
}
|
|
45
|
+
export interface SharedCardProps {
|
|
46
|
+
readonly disableOverlay?: boolean;
|
|
47
|
+
readonly resizeMode?: ImageResizeMode;
|
|
48
|
+
readonly featureFlags?: MediaFeatureFlags;
|
|
49
|
+
readonly appearance?: CardAppearance;
|
|
50
|
+
readonly dimensions?: CardDimensions;
|
|
51
|
+
readonly originalDimensions?: NumericalCardDimensions;
|
|
52
|
+
readonly actions?: Array<CardAction>;
|
|
53
|
+
readonly selectable?: boolean;
|
|
54
|
+
readonly selected?: boolean;
|
|
55
|
+
readonly alt?: string;
|
|
56
|
+
readonly testId?: string;
|
|
57
|
+
readonly titleBoxBgColor?: string;
|
|
58
|
+
readonly titleBoxIcon?: TitleBoxIcon;
|
|
59
|
+
}
|
|
60
|
+
export interface CardOnClickCallback {
|
|
61
|
+
(result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
62
|
+
}
|
|
63
|
+
export interface CardEventProps {
|
|
64
|
+
readonly onClick?: CardOnClickCallback;
|
|
65
|
+
readonly onMouseEnter?: (result: CardEvent) => void;
|
|
66
|
+
/** Callback function to be called when video enters and exit fullscreen.
|
|
67
|
+
* `fullscreen = true` indicates video enters fullscreen
|
|
68
|
+
* `fullscreen = false` indicates video exits fullscreen
|
|
69
|
+
*/
|
|
70
|
+
readonly onFullscreenChange?: (fullscreen: boolean) => void;
|
|
71
|
+
}
|
|
72
|
+
export interface CardProps extends SharedCardProps, CardEventProps {
|
|
73
|
+
readonly mediaClient: MediaClient;
|
|
74
|
+
readonly identifier: Identifier;
|
|
75
|
+
readonly isLazy?: boolean;
|
|
76
|
+
readonly useInlinePlayer?: boolean;
|
|
77
|
+
readonly shouldOpenMediaViewer?: boolean;
|
|
78
|
+
readonly mediaViewerDataSource?: MediaViewerDataSource;
|
|
79
|
+
readonly contextId?: string;
|
|
80
|
+
readonly shouldEnableDownloadButton?: boolean;
|
|
81
|
+
readonly ssr?: SSR;
|
|
82
|
+
}
|
|
83
|
+
export interface CardState {
|
|
84
|
+
status: CardStatus;
|
|
85
|
+
isCardVisible: boolean;
|
|
86
|
+
shouldAutoplay?: boolean;
|
|
87
|
+
isPlayingFile: boolean;
|
|
88
|
+
mediaViewerSelectedItem?: Identifier;
|
|
89
|
+
fileState?: FileState;
|
|
90
|
+
progress?: number;
|
|
91
|
+
cardPreview?: CardPreview;
|
|
92
|
+
error?: MediaCardError;
|
|
93
|
+
cardRef: HTMLDivElement | null;
|
|
94
|
+
isBannedLocalPreview: boolean;
|
|
95
|
+
previewDidRender: boolean;
|
|
96
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { FileDetails, MediaClientErrorReason, RequestMetadata } from '@atlaskit/media-client';
|
|
2
|
+
import { FileAttributes, PerformanceAttributes, OperationalEventPayload, UIEventPayload, WithFileAttributes, WithPerformanceAttributes, SuccessAttributes, FailureAttributes, ScreenEventPayload, ScreenAttributes } from '@atlaskit/media-common';
|
|
3
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import { MediaCardError, MediaCardErrorPrimaryReason } from '../errors';
|
|
5
|
+
import { CardPreviewSource, CardDimensions } from '../types';
|
|
6
|
+
export declare type CardPreviewAttributes = {
|
|
7
|
+
fileId: string;
|
|
8
|
+
prevDimensions: CardDimensions | undefined;
|
|
9
|
+
currentDimensions: CardDimensions | undefined;
|
|
10
|
+
dimensionsPercentageDiff?: CardDimensions | undefined;
|
|
11
|
+
source: CardPreviewSource;
|
|
12
|
+
};
|
|
13
|
+
declare type WithCardPreviewCacheAttributes = {
|
|
14
|
+
cardPreviewAttributes: CardPreviewAttributes;
|
|
15
|
+
};
|
|
16
|
+
export declare const LOGGED_FEATURE_FLAGS: (keyof import("@atlaskit/media-common").MediaFeatureFlags)[];
|
|
17
|
+
export declare const LOGGED_FEATURE_FLAG_KEYS: string[];
|
|
18
|
+
export declare type FileUriFailReason = 'local-uri' | 'remote-uri' | `unknown-uri`;
|
|
19
|
+
export declare type FailedErrorFailReason = MediaCardErrorPrimaryReason | 'nativeError';
|
|
20
|
+
export declare type MediaCardErrorInfo = {
|
|
21
|
+
failReason: FailedErrorFailReason;
|
|
22
|
+
error: MediaClientErrorReason | 'nativeError';
|
|
23
|
+
errorDetail: string;
|
|
24
|
+
};
|
|
25
|
+
export declare type SSRStatusFail = MediaCardErrorInfo & {
|
|
26
|
+
status: 'fail';
|
|
27
|
+
};
|
|
28
|
+
declare type SSRStatusSuccess = SuccessAttributes;
|
|
29
|
+
declare type SSRStatusUnknown = {
|
|
30
|
+
status: 'unknown';
|
|
31
|
+
};
|
|
32
|
+
declare type SSRStatusAttributes = SSRStatusSuccess | SSRStatusFail | SSRStatusUnknown;
|
|
33
|
+
export declare type SSRStatus = {
|
|
34
|
+
server: SSRStatusAttributes;
|
|
35
|
+
client: SSRStatusAttributes;
|
|
36
|
+
};
|
|
37
|
+
export declare type WithSSRReliability = {
|
|
38
|
+
ssrReliability?: SSRStatus;
|
|
39
|
+
};
|
|
40
|
+
export declare type RenderFailedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & FailureAttributes & {
|
|
41
|
+
failReason: FailedErrorFailReason | 'failed-processing';
|
|
42
|
+
error?: MediaClientErrorReason | 'nativeError';
|
|
43
|
+
request?: RequestMetadata;
|
|
44
|
+
}, 'failed', 'mediaCardRender'>;
|
|
45
|
+
export declare type RenderSucceededEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & SuccessAttributes, 'succeeded', 'mediaCardRender'>;
|
|
46
|
+
export declare type RenderCommencedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes, 'commenced', 'mediaCardRender'>;
|
|
47
|
+
export declare type CacheHitEventPayload = OperationalEventPayload<WithCardPreviewCacheAttributes, 'cache-hit', 'mediaCardCache'>;
|
|
48
|
+
export declare type RemoteSuccessEventPayload = OperationalEventPayload<WithCardPreviewCacheAttributes, 'Remote-success', 'mediaCardCache'>;
|
|
49
|
+
export declare type CopiedFileEventPayload = UIEventPayload<{}, 'copied', string>;
|
|
50
|
+
export declare type ClickedEventPayload = UIEventPayload<{
|
|
51
|
+
label?: string;
|
|
52
|
+
}, 'clicked', string>;
|
|
53
|
+
export declare type RenderScreenEventPayload = Omit<ScreenEventPayload<ScreenAttributes, 'mediaCardRenderScreen'>, 'attributes'> & {
|
|
54
|
+
attributes: {
|
|
55
|
+
type: string | undefined;
|
|
56
|
+
fileAttributes: FileAttributes;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare type MediaCardAnalyticsEventPayload = RenderCommencedEventPayload | RenderSucceededEventPayload | RenderFailedEventPayload | CopiedFileEventPayload | ClickedEventPayload | RenderScreenEventPayload | CacheHitEventPayload | RemoteSuccessEventPayload;
|
|
60
|
+
export declare const getFileAttributes: (metadata: FileDetails, fileStatus?: import("@atlaskit/media-common").FileStatus | undefined) => FileAttributes;
|
|
61
|
+
export declare const getRenderPreviewableCardPayload: (fileAttributes: FileAttributes) => RenderScreenEventPayload;
|
|
62
|
+
export declare const getRenderCommencedEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => RenderCommencedEventPayload;
|
|
63
|
+
export declare const getRenderSucceededEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus) => RenderSucceededEventPayload;
|
|
64
|
+
export declare const getCacheHitEventPayload: (cardPreviewAttributes: CardPreviewAttributes) => CacheHitEventPayload;
|
|
65
|
+
export declare const getRemoteSuccessEventPayload: (cardPreviewAttributes: CardPreviewAttributes) => RemoteSuccessEventPayload;
|
|
66
|
+
export declare const getRenderFailedExternalUriPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => RenderFailedEventPayload;
|
|
67
|
+
export declare const getRenderErrorFailReason: (error: MediaCardError) => FailedErrorFailReason;
|
|
68
|
+
export declare const getRenderErrorErrorReason: (error: MediaCardError) => MediaClientErrorReason | 'nativeError';
|
|
69
|
+
export declare const getRenderErrorErrorDetail: (error: MediaCardError) => string;
|
|
70
|
+
export declare const getRenderErrorRequestMetadata: (error: MediaCardError) => RequestMetadata | undefined;
|
|
71
|
+
export declare const extractErrorInfo: (error: MediaCardError) => MediaCardErrorInfo;
|
|
72
|
+
export declare const getRenderErrorEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, error: MediaCardError, ssrReliability: SSRStatus) => RenderFailedEventPayload;
|
|
73
|
+
export declare const getRenderFailedFileStatusPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus) => RenderFailedEventPayload;
|
|
74
|
+
export declare const getCopiedFilePayload: (fileId: string) => CopiedFileEventPayload;
|
|
75
|
+
export declare function fireMediaCardEvent(payload: MediaCardAnalyticsEventPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
76
|
+
export declare const createAndFireMediaCardEvent: (payload: MediaCardAnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
|
|
77
|
+
export {};
|