@atlaskit/media-card 74.1.7 → 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 +11 -0
- 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 +2 -2
- package/dist/cjs/{root/card → card/getCardPreview}/imageRefetchingAnalytics.js +0 -0
- package/dist/cjs/{root/card → card}/getCardPreview/index.js +3 -3
- 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 +3 -3
- 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/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 +2 -2
- package/dist/es2019/{root/card → card/getCardPreview}/imageRefetchingAnalytics.js +0 -0
- package/dist/es2019/{root/card → card}/getCardPreview/index.js +3 -3
- 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 +1 -1
- 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/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 +2 -2
- package/dist/esm/{root/card → card/getCardPreview}/imageRefetchingAnalytics.js +0 -0
- package/dist/esm/{root/card → card}/getCardPreview/index.js +3 -3
- 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 +1 -1
- 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/version.json +1 -1
- package/dist/types/{actions.d.ts → card/actions.d.ts} +0 -0
- package/dist/{types-ts4.0/root/card/index.d.ts → types/card/card.d.ts} +2 -1
- package/dist/types/{root/card → card}/cardAnalytics.d.ts +3 -3
- package/dist/types/{root/card → card}/cardConstants.d.ts +0 -0
- package/dist/types/{files → card}/cardImageView/cardImageViewWrapper.d.ts +0 -0
- package/dist/types/{files → card}/cardImageView/cardOverlay/cardOverlayComponents.d.ts +0 -0
- package/dist/types/{files → card}/cardImageView/cardOverlay/index.d.ts +2 -2
- package/dist/types/{files → card}/cardImageView/cardOverlay/styles.d.ts +0 -0
- package/dist/{types-ts4.0/root → types/card/cardImageView}/cardViewWrapper.d.ts +1 -1
- package/dist/types/{files → card}/cardImageView/classnames.d.ts +0 -0
- package/dist/{types-ts4.0/files/cardImageView/index.d.ts → types/card/cardImageView/fileCardImageView.d.ts} +2 -3
- package/dist/types/card/cardImageView/index.d.ts +2 -0
- package/dist/types/{files → card}/cardImageView/styles.d.ts +1 -1
- package/dist/{types-ts4.0/root → types}/card/cardLoader.d.ts +1 -1
- package/dist/types/{root/card → card}/cardState.d.ts +1 -1
- package/dist/types/{root → card}/cardView.d.ts +2 -2
- package/dist/types/{root/card → card}/getCardPreview/cache.d.ts +2 -2
- package/dist/types/{root/card → card}/getCardPreview/filePreviewStatus.d.ts +1 -1
- package/dist/types/{root/card → card}/getCardPreview/helpers.d.ts +1 -1
- package/dist/types/{root/card → card/getCardPreview}/imageRefetchingAnalytics.d.ts +1 -1
- package/dist/{types-ts4.0/root → types}/card/getCardPreview/index.d.ts +3 -3
- package/dist/types/{root/card → card}/getCardStatus.d.ts +1 -1
- package/dist/types/card/index.d.ts +1 -0
- package/dist/types/{root → card}/inlinePlayer.d.ts +3 -2
- package/dist/types/{root → card}/inlinePlayerLazy.d.ts +0 -0
- package/dist/types/{root → card}/inlinePlayerWrapper.d.ts +0 -0
- package/dist/types/card/styles/animations.d.ts +1 -0
- package/dist/types/{styles → card/styles}/config.d.ts +0 -0
- package/dist/types/{styles → card/styles}/easing.d.ts +0 -0
- package/dist/types/{styles → card/styles}/getSelectedBorderStyle.d.ts +0 -0
- package/dist/types/{styles → card/styles}/index.d.ts +0 -0
- package/dist/types/{styles → card/styles}/mixins.d.ts +3 -3
- package/dist/types/{root → card/styles}/styles.d.ts +1 -1
- package/dist/{types-ts4.0/root → types/card}/types.d.ts +1 -1
- package/dist/types/{root → card}/ui/actionsBar/actionsBar.d.ts +0 -0
- package/dist/types/{root → card}/ui/actionsBar/actionsBarWrapper.d.ts +0 -0
- package/dist/types/{root → card}/ui/actionsBar/styles.d.ts +0 -0
- package/dist/{types-ts4.0/root → types/card}/ui/actionsBar/types.d.ts +1 -1
- package/dist/types/{root → card}/ui/blanket/blanket.d.ts +0 -0
- package/dist/types/{root → card}/ui/blanket/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/common.d.ts +0 -0
- package/dist/types/{root → card}/ui/iconMessage/iconMessageWrapper.d.ts +0 -0
- package/dist/types/{root → card}/ui/iconMessage/index.d.ts +0 -0
- package/dist/types/{root → card}/ui/iconMessage/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/iconMessage/types.d.ts +0 -0
- package/dist/types/{root → card}/ui/iconWrapper/iconWrapper.d.ts +0 -0
- package/dist/types/{root → card}/ui/iconWrapper/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/iconWrapper/types.d.ts +0 -0
- package/dist/types/{root → card}/ui/imageRenderer/imageRenderer.d.ts +1 -1
- package/dist/types/{root → card}/ui/loadingRateLimited/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/newFileExperience/newFileExperienceWrapper.d.ts +0 -0
- package/dist/types/{root → card}/ui/newFileExperience/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/newFileExperience/types.d.ts +2 -2
- package/dist/types/{root → card}/ui/playButton/playButton.d.ts +0 -0
- package/dist/types/{root → card}/ui/playButton/playButtonBackground.d.ts +0 -0
- package/dist/types/{root → card}/ui/playButton/playButtonWrapper.d.ts +0 -0
- package/dist/types/{root → card}/ui/playButton/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/progressBar/progressBar.d.ts +0 -0
- package/dist/types/{root → card}/ui/progressBar/styledBar.d.ts +0 -0
- package/dist/types/{root → card}/ui/progressBar/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/progressBar/types.d.ts +0 -0
- package/dist/types/{root → card}/ui/styles.d.ts +1 -1
- package/dist/types/{root → card}/ui/tickBox/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/tickBox/tickBox.d.ts +0 -0
- package/dist/types/{root → card}/ui/tickBox/tickBoxWrapper.d.ts +0 -0
- package/dist/types/{root → card}/ui/tickBox/types.d.ts +0 -0
- package/dist/types/{root → card}/ui/titleBox/failedTitleBox.d.ts +0 -0
- package/dist/types/{root → card}/ui/titleBox/styles.d.ts +0 -0
- package/dist/types/{root → card}/ui/titleBox/titleBox.d.ts +0 -0
- package/dist/types/{root → card}/ui/titleBox/titleBoxComponents.d.ts +0 -0
- package/dist/{types-ts4.0/root → types/card}/ui/titleBox/types.d.ts +1 -1
- 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/{root/inline → inline}/loader.d.ts +0 -0
- package/dist/types/{root/inline → inline}/mediaInlineCard.d.ts +0 -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/{root → utils}/media-card-analytics-error-boundary.d.ts +0 -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/{actions.d.ts → 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-ts4.0/{root/card → card}/cardAnalytics.d.ts +3 -3
- package/dist/types-ts4.0/{root/card → card}/cardConstants.d.ts +0 -0
- package/dist/types-ts4.0/{files → card}/cardImageView/cardImageViewWrapper.d.ts +0 -0
- package/dist/types-ts4.0/{files → card}/cardImageView/cardOverlay/cardOverlayComponents.d.ts +0 -0
- package/dist/types-ts4.0/{files → card}/cardImageView/cardOverlay/index.d.ts +2 -2
- package/dist/types-ts4.0/{files → card}/cardImageView/cardOverlay/styles.d.ts +0 -0
- package/dist/{types/root → types-ts4.0/card/cardImageView}/cardViewWrapper.d.ts +1 -1
- package/dist/types-ts4.0/{files → 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-ts4.0/{files → card}/cardImageView/styles.d.ts +1 -1
- package/dist/{types/root → types-ts4.0}/card/cardLoader.d.ts +1 -1
- package/dist/types-ts4.0/{root/card → card}/cardState.d.ts +1 -1
- package/dist/types-ts4.0/{root → card}/cardView.d.ts +2 -2
- package/dist/types-ts4.0/{root/card → card}/getCardPreview/cache.d.ts +2 -2
- package/dist/types-ts4.0/{root/card → card}/getCardPreview/filePreviewStatus.d.ts +1 -1
- package/dist/types-ts4.0/{root/card → card}/getCardPreview/helpers.d.ts +1 -1
- package/dist/types-ts4.0/{root/card → card/getCardPreview}/imageRefetchingAnalytics.d.ts +1 -1
- package/dist/{types/root → types-ts4.0}/card/getCardPreview/index.d.ts +3 -3
- package/dist/types-ts4.0/{root/card → card}/getCardStatus.d.ts +1 -1
- package/dist/types-ts4.0/card/index.d.ts +1 -0
- package/dist/types-ts4.0/{root → card}/inlinePlayer.d.ts +3 -2
- package/dist/types-ts4.0/{root → card}/inlinePlayerLazy.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/inlinePlayerWrapper.d.ts +0 -0
- package/dist/types-ts4.0/card/styles/animations.d.ts +1 -0
- package/dist/types-ts4.0/{styles → card/styles}/config.d.ts +0 -0
- package/dist/types-ts4.0/{styles → card/styles}/easing.d.ts +0 -0
- package/dist/types-ts4.0/{styles → card/styles}/getSelectedBorderStyle.d.ts +0 -0
- package/dist/types-ts4.0/{styles → card/styles}/index.d.ts +0 -0
- package/dist/types-ts4.0/{styles → card/styles}/mixins.d.ts +3 -3
- package/dist/types-ts4.0/{root → card/styles}/styles.d.ts +1 -1
- package/dist/{types/root → types-ts4.0/card}/types.d.ts +1 -1
- package/dist/types-ts4.0/{root → card}/ui/actionsBar/actionsBar.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/actionsBar/actionsBarWrapper.d.ts +0 -0
- package/dist/types-ts4.0/{root → 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-ts4.0/{root → card}/ui/blanket/blanket.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/blanket/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/common.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/iconMessage/iconMessageWrapper.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/iconMessage/index.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/iconMessage/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/iconMessage/types.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/iconWrapper/iconWrapper.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/iconWrapper/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/iconWrapper/types.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/imageRenderer/imageRenderer.d.ts +1 -1
- package/dist/types-ts4.0/{root → card}/ui/loadingRateLimited/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/newFileExperience/newFileExperienceWrapper.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/newFileExperience/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/newFileExperience/types.d.ts +2 -2
- package/dist/types-ts4.0/{root → card}/ui/playButton/playButton.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/playButton/playButtonBackground.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/playButton/playButtonWrapper.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/playButton/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/progressBar/progressBar.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/progressBar/styledBar.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/progressBar/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/progressBar/types.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/styles.d.ts +1 -1
- package/dist/types-ts4.0/{root → card}/ui/tickBox/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/tickBox/tickBox.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/tickBox/tickBoxWrapper.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/tickBox/types.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/titleBox/failedTitleBox.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/titleBox/styles.d.ts +0 -0
- package/dist/types-ts4.0/{root → card}/ui/titleBox/titleBox.d.ts +0 -0
- package/dist/types-ts4.0/{root → 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 -1
- package/dist/types-ts4.0/errors.d.ts +1 -1
- package/dist/types-ts4.0/in-product.d.ts +4 -0
- package/dist/types-ts4.0/index.d.ts +11 -73
- package/dist/types-ts4.0/inline/index.d.ts +1 -0
- package/dist/types-ts4.0/{root/inline → inline}/loader.d.ts +0 -0
- package/dist/types-ts4.0/{root/inline → inline}/mediaInlineCard.d.ts +0 -0
- package/dist/types-ts4.0/types.d.ts +72 -1
- package/dist/types-ts4.0/utils/analytics.d.ts +1 -2
- package/dist/types-ts4.0/utils/breakpoint.d.ts +1 -1
- package/dist/types-ts4.0/utils/cardActions/cardActionButton.d.ts +2 -3
- package/dist/types-ts4.0/utils/cardActions/cardActionsDropdownMenu.d.ts +1 -1
- package/dist/types-ts4.0/utils/cardActions/cardActionsView.d.ts +1 -1
- package/dist/types-ts4.0/utils/cardDimensions.d.ts +1 -5
- package/dist/types-ts4.0/utils/dimensionComparer.d.ts +1 -1
- package/dist/types-ts4.0/utils/getDataURIDimension.d.ts +1 -1
- package/dist/types-ts4.0/utils/index.d.ts +0 -1
- package/dist/types-ts4.0/utils/lightCards/getDimensionsWithDefault.d.ts +1 -1
- package/dist/types-ts4.0/utils/lightCards/styles.d.ts +1 -1
- package/dist/types-ts4.0/utils/lightCards/types.d.ts +1 -1
- package/dist/types-ts4.0/{root → utils}/media-card-analytics-error-boundary.d.ts +0 -0
- package/dist/types-ts4.0/utils/objectURLCache.d.ts +1 -1
- package/dist/types-ts4.0/utils/shouldDisplayImageThumbnail.d.ts +1 -1
- package/dist/types-ts4.0/utils/ufoExperiences.d.ts +1 -1
- package/package.json +10 -9
- package/report.api.md +13 -3
- 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
- package/dist/types-ts4.0/files/index.d.ts +0 -2
- package/dist/types-ts4.0/root/index.d.ts +0 -2
- package/dist/types-ts4.0/styles/animations.d.ts +0 -1
package/dist/cjs/types.js
CHANGED
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MediaCardCursor = void 0;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Entry Point: @atlaskit/media-card/types
|
|
10
|
+
* tsconfig.entry-points.json
|
|
11
|
+
*/
|
|
7
12
|
var MediaCardCursor;
|
|
8
13
|
exports.MediaCardCursor = MediaCardCursor;
|
|
9
14
|
|
|
@@ -5,20 +5,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.CardActionButton = void 0;
|
|
7
7
|
|
|
8
|
-
var _react = require("
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
9
11
|
|
|
10
12
|
var _styles = require("./styles");
|
|
11
13
|
|
|
12
14
|
/**@jsx jsx */
|
|
13
|
-
var CardActionButton = function
|
|
14
|
-
return (0,
|
|
15
|
+
var CardActionButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
16
|
+
return (0, _react2.jsx)("div", {
|
|
15
17
|
id: "cardActionButton",
|
|
16
18
|
"data-testid": "media-card-primary-action",
|
|
17
19
|
css: (0, _styles.cardActionButtonStyles)(props),
|
|
18
20
|
style: props.style,
|
|
19
21
|
onClick: props.onClick,
|
|
20
|
-
onMouseDown: props.onMouseDown
|
|
22
|
+
onMouseDown: props.onMouseDown,
|
|
23
|
+
ref: ref
|
|
21
24
|
}, props.children);
|
|
22
|
-
};
|
|
23
|
-
|
|
25
|
+
});
|
|
24
26
|
exports.CardActionButton = CardActionButton;
|
|
@@ -45,10 +45,6 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
45
45
|
|
|
46
46
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
47
|
|
|
48
|
-
var CardActionButtonWithProps = function CardActionButtonWithProps(props) {
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(_cardActionButton.CardActionButton, props);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
48
|
var CardActionButtonWithAnalytics = (0, _analyticsNext.withAnalyticsEvents)({
|
|
53
49
|
onClick: (0, _analytics.createAndFireMediaCardEvent)({
|
|
54
50
|
eventType: 'ui',
|
|
@@ -57,12 +53,12 @@ var CardActionButtonWithAnalytics = (0, _analyticsNext.withAnalyticsEvents)({
|
|
|
57
53
|
actionSubjectId: 'mediaCardDropDownMenu',
|
|
58
54
|
attributes: {}
|
|
59
55
|
})
|
|
60
|
-
})(
|
|
56
|
+
})(_cardActionButton.CardActionButton);
|
|
61
57
|
|
|
62
58
|
// Trick applied due to the lack of props type of DropdownItem
|
|
63
59
|
var DropdownItemWithProps = function DropdownItemWithProps(props) {
|
|
64
60
|
return /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, (0, _extends2.default)({
|
|
65
|
-
|
|
61
|
+
testId: "media-card-actions-menu-item"
|
|
66
62
|
}, props));
|
|
67
63
|
};
|
|
68
64
|
|
|
File without changes
|
|
@@ -19,7 +19,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
19
19
|
|
|
20
20
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _lru_map = require("lru_map");
|
|
23
23
|
|
|
24
24
|
var _eventemitter = require("eventemitter2");
|
|
25
25
|
|
|
@@ -30,8 +30,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
30
30
|
var PREVIEW_CACHE_LRU_SIZE = 50;
|
|
31
31
|
exports.PREVIEW_CACHE_LRU_SIZE = PREVIEW_CACHE_LRU_SIZE;
|
|
32
32
|
|
|
33
|
-
var ExtendedLRUCache = /*#__PURE__*/function (
|
|
34
|
-
(0, _inherits2.default)(ExtendedLRUCache,
|
|
33
|
+
var ExtendedLRUCache = /*#__PURE__*/function (_LRUMap) {
|
|
34
|
+
(0, _inherits2.default)(ExtendedLRUCache, _LRUMap);
|
|
35
35
|
|
|
36
36
|
var _super = _createSuper(ExtendedLRUCache);
|
|
37
37
|
|
|
@@ -58,15 +58,15 @@ var ExtendedLRUCache = /*#__PURE__*/function (_LRUCache) {
|
|
|
58
58
|
}
|
|
59
59
|
}]);
|
|
60
60
|
return ExtendedLRUCache;
|
|
61
|
-
}(
|
|
61
|
+
}(_lru_map.LRUMap);
|
|
62
62
|
|
|
63
63
|
var ObjectURLCache = /*#__PURE__*/function () {
|
|
64
64
|
function ObjectURLCache(size) {
|
|
65
65
|
(0, _classCallCheck2.default)(this, ObjectURLCache);
|
|
66
66
|
this.cache = new ExtendedLRUCache(size);
|
|
67
67
|
this.cache.on('shift', function (entry) {
|
|
68
|
-
if (entry && entry.
|
|
69
|
-
URL.revokeObjectURL(entry.
|
|
68
|
+
if (entry && entry[1].dataURI) {
|
|
69
|
+
URL.revokeObjectURL(entry[1].dataURI);
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -89,7 +89,7 @@ var ObjectURLCache = /*#__PURE__*/function () {
|
|
|
89
89
|
}, {
|
|
90
90
|
key: "remove",
|
|
91
91
|
value: function remove(key) {
|
|
92
|
-
var removed = this.cache.
|
|
92
|
+
var removed = this.cache.delete(key);
|
|
93
93
|
removed && URL.revokeObjectURL(removed.dataURI);
|
|
94
94
|
}
|
|
95
95
|
}]);
|
|
@@ -22,7 +22,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
22
22
|
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) { (0, _defineProperty2.default)(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; }
|
|
23
23
|
|
|
24
24
|
var packageName = "@atlaskit/media-card";
|
|
25
|
-
var packageVersion = "74.1.
|
|
25
|
+
var packageVersion = "74.1.8";
|
|
26
26
|
var concurrentExperience;
|
|
27
27
|
|
|
28
28
|
var getExperience = function getExperience(id) {
|
package/dist/cjs/version.json
CHANGED
|
File without changes
|
|
@@ -7,25 +7,25 @@ import DownloadIcon from '@atlaskit/icon/glyph/download';
|
|
|
7
7
|
import { globalMediaEventEmitter, isDifferentIdentifier, isFileIdentifier, RECENTS_COLLECTION, isImageRepresentationReady, isExternalImageIdentifier, isProcessedFileState, imageResizeModeToFileImageMode } from '@atlaskit/media-client';
|
|
8
8
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
9
9
|
import { injectIntl, IntlProvider } from 'react-intl-next';
|
|
10
|
-
import { CardView } from '
|
|
11
|
-
import { ViewportDetector } from '
|
|
12
|
-
import { getRequestedDimensions } from '
|
|
10
|
+
import { CardView } from './cardView';
|
|
11
|
+
import { ViewportDetector } from '../utils/viewportDetector';
|
|
12
|
+
import { getRequestedDimensions } from '../utils/getDataURIDimension';
|
|
13
13
|
import { getCardPreview, getCardPreviewFromCache, removeCardPreviewFromCache, getFilePreviewFromFileState, shouldResolvePreview, getSSRCardPreview, isLocalPreview, isSSRPreview, isSSRClientPreview, isSSRDataPreview, fetchAndCacheRemotePreview } from './getCardPreview';
|
|
14
|
-
import { getFileDetails } from '
|
|
15
|
-
import { InlinePlayerLazy } from '
|
|
16
|
-
import { getFileAttributes, extractErrorInfo, LOGGED_FEATURE_FLAGS } from '
|
|
17
|
-
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '
|
|
14
|
+
import { getFileDetails } from '../utils/metadata';
|
|
15
|
+
import { InlinePlayerLazy } from './inlinePlayerLazy';
|
|
16
|
+
import { getFileAttributes, extractErrorInfo, LOGGED_FEATURE_FLAGS } from '../utils/analytics';
|
|
17
|
+
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '../errors';
|
|
18
18
|
import { fireOperationalEvent, fireCommencedEvent, fireCopiedEvent, fireScreenEvent } from './cardAnalytics';
|
|
19
|
-
import getDocument from '
|
|
20
|
-
import { StoreSSRDataScript, getSSRData } from '
|
|
19
|
+
import getDocument from '../utils/document';
|
|
20
|
+
import { StoreSSRDataScript, getSSRData } from '../utils/globalScope';
|
|
21
21
|
import { getCardStateFromFileState, createStateUpdater } from './cardState';
|
|
22
22
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
23
|
-
import { isBigger } from '
|
|
24
|
-
import { getMediaCardCursor } from '
|
|
25
|
-
import { completeUfoExperience, startUfoExperience } from '
|
|
26
|
-
import { generateUniqueId } from '
|
|
23
|
+
import { isBigger } from '../utils/dimensionComparer';
|
|
24
|
+
import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
25
|
+
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
26
|
+
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
27
27
|
const packageName = "@atlaskit/media-card";
|
|
28
|
-
const packageVersion = "74.1.
|
|
28
|
+
const packageVersion = "74.1.8";
|
|
29
29
|
export class CardBase extends Component {
|
|
30
30
|
// An internalOccurrenceKey is a randomly generated value to differentiate various instances
|
|
31
31
|
// of Cards regardless of whether it shares the same file (either internal or external)
|
|
@@ -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 const fireOperationalEvent = (createAnalyticsEvent, status, fileAttributes, performanceAttributes, ssrReliability, error = new MediaCardError('missing-error-data')) => {
|
|
4
4
|
const fireEvent = payload => fireMediaCardEvent(payload, createAnalyticsEvent);
|
|
5
5
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ import { css } from '@emotion/react';
|
|
|
8
8
|
import { borderRadius, size, ellipsis, absolute } from '@atlaskit/media-ui';
|
|
9
9
|
import { themed } from '@atlaskit/theme/components';
|
|
10
10
|
import * as colors from '@atlaskit/theme/colors';
|
|
11
|
-
import { rgba, centerX, easeOutCubic, transition, antialiased } from '
|
|
11
|
+
import { rgba, centerX, easeOutCubic, transition, antialiased } from '../../styles';
|
|
12
12
|
export const tickBoxStyles = css`
|
|
13
13
|
${size(14)}
|
|
14
14
|
${transition()}
|
|
File without changes
|
package/dist/es2019/{files/cardImageView/index.js → card/cardImageView/fileCardImageView.js}
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileCardImageView } from './fileCardImageView';
|
|
@@ -2,8 +2,8 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { absolute, borderRadius, size } from '@atlaskit/media-ui';
|
|
3
3
|
import { themed } from '@atlaskit/theme/components';
|
|
4
4
|
import { N20, DN50, N0 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { rootStyles, cardShadow } from '
|
|
6
|
-
import { getSelectedBorderStyle } from '
|
|
5
|
+
import { rootStyles, cardShadow } from '../styles';
|
|
6
|
+
import { getSelectedBorderStyle } from '../styles/getSelectedBorderStyle';
|
|
7
7
|
|
|
8
8
|
const getShadowAttribute = props => {
|
|
9
9
|
const {
|
|
@@ -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
|
const MediaCardContext = /*#__PURE__*/React.createContext({});
|
|
7
7
|
|
|
8
8
|
const CardLoadingWithContext = () => {
|
|
@@ -13,13 +13,13 @@ const CardLoadingWithContext = () => {
|
|
|
13
13
|
const MediaCard = Loadable({
|
|
14
14
|
loader: () => import(
|
|
15
15
|
/* webpackChunkName: "@atlaskit-internal_media-card" */
|
|
16
|
-
'./
|
|
16
|
+
'./card').then(mod => mod.Card),
|
|
17
17
|
loading: () => /*#__PURE__*/React.createElement(CardLoadingWithContext, null)
|
|
18
18
|
});
|
|
19
19
|
const MediaCardErrorBoundary = Loadable({
|
|
20
20
|
loader: () => import(
|
|
21
21
|
/* webpackChunkName: "@atlaskit-internal_media-card-error-boundary" */
|
|
22
|
-
'../media-card-analytics-error-boundary').then(mod => mod.default),
|
|
22
|
+
'../utils/media-card-analytics-error-boundary').then(mod => mod.default),
|
|
23
23
|
loading: () => /*#__PURE__*/React.createElement(CardLoadingWithContext, null)
|
|
24
24
|
});
|
|
25
25
|
const MediaCardWithMediaClient = Loadable({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isErrorFileState } from '@atlaskit/media-client';
|
|
2
|
-
import { MediaCardError } from '
|
|
2
|
+
import { MediaCardError } from '../errors';
|
|
3
3
|
import { getCardStatus, isFinalCardStatus } from './getCardStatus';
|
|
4
4
|
import { extractFilePreviewStatus } from './getCardPreview';
|
|
5
5
|
export const createStateUpdater = newState => prevState => {
|
|
@@ -10,14 +10,14 @@ import SpinnerIcon from '@atlaskit/spinner';
|
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import { toHumanReadableMediaSize, messages } from '@atlaskit/media-ui';
|
|
12
12
|
import { isRateLimitedError, isPollingError } from '@atlaskit/media-client';
|
|
13
|
-
import { FileCardImageView } from '
|
|
13
|
+
import { FileCardImageView } from './cardImageView';
|
|
14
14
|
import { breakpointSize } from '../utils/breakpoint';
|
|
15
15
|
import { defaultImageCardDimensions, getDefaultCardDimensions } from '../utils/cardDimensions';
|
|
16
16
|
import { isValidPercentageUnit } from '../utils/isValidPercentageUnit';
|
|
17
17
|
import { getCSSUnitValue } from '../utils/getCSSUnitValue';
|
|
18
18
|
import { getElementDimension } from '../utils/getElementDimension';
|
|
19
19
|
import { createAndFireMediaCardEvent } from '../utils/analytics';
|
|
20
|
-
import { attachDetailsToActions } from '
|
|
20
|
+
import { attachDetailsToActions } from './actions';
|
|
21
21
|
import { getErrorMessage } from '../utils/getErrorMessage';
|
|
22
22
|
import { cardImageContainerStyles, calcBreakpointSize } from './ui/styles';
|
|
23
23
|
import { ImageRenderer } from './ui/imageRenderer/imageRenderer';
|
|
@@ -32,7 +32,7 @@ import { IconWrapper } from './ui/iconWrapper/iconWrapper';
|
|
|
32
32
|
import { PreviewUnavailable, CreatingPreview, FailedToUpload, PreviewCurrentlyUnavailable, FailedToLoad } from './ui/iconMessage';
|
|
33
33
|
import { isUploadError } from '../errors';
|
|
34
34
|
import { NewFileExperienceWrapper } from './ui/newFileExperience/newFileExperienceWrapper';
|
|
35
|
-
import { Wrapper } from './cardViewWrapper';
|
|
35
|
+
import { Wrapper } from './cardImageView/cardViewWrapper';
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* This is classic vanilla CardView class. To create an instance of class one would need to supply
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { createObjectURLCache } from '
|
|
2
|
+
import { createObjectURLCache } from '../../utils/objectURLCache';
|
|
3
3
|
export const getCacheKey = (id, mode) => {
|
|
4
4
|
const resizeMode = mode || 'crop';
|
|
5
5
|
return [id, resizeMode].join('-');
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { takeSnapshot } from '
|
|
1
|
+
import { takeSnapshot } from '../../utils/videoSnapshot';
|
|
2
2
|
import { getMediaTypeFromMimeType } from '@atlaskit/media-common';
|
|
3
3
|
import { getOrientation } from '@atlaskit/media-ui';
|
|
4
|
-
import { LocalPreviewError, RemotePreviewError } from '
|
|
4
|
+
import { LocalPreviewError, RemotePreviewError } from '../../errors';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This method tells the support for the media
|
|
File without changes
|
|
@@ -2,10 +2,10 @@ import { isPreviewableFileState, addFileAttrsToUrl } from '@atlaskit/media-clien
|
|
|
2
2
|
import { isMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
3
3
|
import cardPreviewCache from './cache';
|
|
4
4
|
import { getCardPreviewFromFilePreview, getCardPreviewFromBackend } from './helpers';
|
|
5
|
-
import { MediaCardError, SsrPreviewError, isUnsupportedLocalPreviewError } from '
|
|
6
|
-
import { isBigger } from '
|
|
5
|
+
import { MediaCardError, SsrPreviewError, isUnsupportedLocalPreviewError } from '../../errors';
|
|
6
|
+
import { isBigger } from '../../utils/dimensionComparer';
|
|
7
7
|
import { extractFilePreviewStatus, isPreviewableStatus } from './filePreviewStatus';
|
|
8
|
-
import { fireImageFetchingOperationalEvent, calculatePercentageDifference } from '
|
|
8
|
+
import { fireImageFetchingOperationalEvent, calculatePercentageDifference } from './imageRefetchingAnalytics';
|
|
9
9
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
10
10
|
export { getCardPreviewFromFilePreview, getCardPreviewFromBackend, isSupportedLocalPreview } from './helpers';
|
|
11
11
|
export { extractFilePreviewStatus } from './filePreviewStatus';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './cardLoader';
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
6
6
|
import { CustomMediaPlayer, InactivityDetector } from '@atlaskit/media-ui';
|
|
7
|
-
import { defaultImageCardDimensions } from '
|
|
7
|
+
import { defaultImageCardDimensions } from '../utils';
|
|
8
8
|
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
9
9
|
import { ProgressBar } from './ui/progressBar/progressBar';
|
|
10
10
|
import { calcBreakpointSize } from './ui/styles';
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { inlinePlayerWrapperStyles, inlinePlayerClassName } from './styles';
|
|
3
|
+
import { inlinePlayerWrapperStyles, inlinePlayerClassName } from './styles/styles';
|
|
4
4
|
export const InlinePlayerWrapper = props => {
|
|
5
5
|
const {
|
|
6
6
|
testId,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
|
-
import { getCSSUnitValue } from '
|
|
4
|
-
import { breakpointStyles } from '
|
|
5
|
-
import { getSelectedBorderStyle } from '
|
|
6
|
-
import { getDimensionsWithDefault } from '
|
|
3
|
+
import { getCSSUnitValue } from '../../utils/getCSSUnitValue';
|
|
4
|
+
import { breakpointStyles } from '../../utils/breakpoint';
|
|
5
|
+
import { getSelectedBorderStyle } from './getSelectedBorderStyle';
|
|
6
|
+
import { getDimensionsWithDefault } from '../../utils/lightCards/getDimensionsWithDefault';
|
|
7
7
|
export const inlinePlayerClassName = 'media-card-inline-player';
|
|
8
8
|
|
|
9
9
|
const getWrapperHeight = dimensions => dimensions && dimensions.height ? `height: ${getCSSUnitValue(dimensions.height)}; max-height: 100%;` : '';
|
|
File without changes
|
|
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
|
export const actionsBarClassName = 'media-card-actions-bar';
|
|
4
4
|
export const fixedActionBarStyles = `opacity: 1;`;
|
|
5
5
|
export const wrapperStyles = isFixed => css`
|
|
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 { N90A } from '@atlaskit/theme/colors';
|
|
4
4
|
export const blanketClassName = 'media-card-blanket';
|
|
5
5
|
export const fixedBlanketStyles = `background-color: ${N90A};`;
|
|
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';
|