@atlaskit/media-card 74.1.7 → 74.1.9
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 +17 -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/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/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/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/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 +12 -12
- package/report.api.md +13 -3
- package/dist/cjs/__tests_external__/index.js +0 -13
- package/dist/cjs/__tests_external__/page-objects/MediaCard.js +0 -67
- package/dist/cjs/in-product.js +0 -13
- package/dist/es2019/__tests_external__/index.js +0 -1
- package/dist/es2019/__tests_external__/page-objects/MediaCard.js +0 -23
- package/dist/es2019/files/index.js +0 -1
- package/dist/es2019/in-product.js +0 -1
- package/dist/es2019/root/index.js +0 -2
- package/dist/esm/__tests_external__/index.js +0 -1
- package/dist/esm/__tests_external__/page-objects/MediaCard.js +0 -53
- package/dist/esm/files/index.js +0 -1
- package/dist/esm/in-product.js +0 -1
- package/dist/esm/root/index.js +0 -2
- package/dist/types/__tests_external__/index.d.ts +0 -1
- package/dist/types/__tests_external__/page-objects/MediaCard.d.ts +0 -8
- package/dist/types/files/index.d.ts +0 -2
- package/dist/types/in-product.d.ts +0 -1
- package/dist/types/root/index.d.ts +0 -2
- package/dist/types/styles/animations.d.ts +0 -1
- package/dist/types-ts4.0/__tests_external__/index.d.ts +0 -1
- package/dist/types-ts4.0/__tests_external__/page-objects/MediaCard.d.ts +0 -8
- package/dist/types-ts4.0/files/index.d.ts +0 -2
- package/dist/types-ts4.0/in-product.d.ts +0 -1
- package/dist/types-ts4.0/root/index.d.ts +0 -2
- package/dist/types-ts4.0/styles/animations.d.ts +0 -1
- package/in-product/package.json +0 -15
|
@@ -24,7 +24,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
|
|
|
24
24
|
/* webpackChunkName: "@atlaskit-internal_inline-media-card" */
|
|
25
25
|
'./mediaInlineCard'), import(
|
|
26
26
|
/* webpackChunkName: "@atlaskit-internal_media-card-error-boundary" */
|
|
27
|
-
'../media-card-analytics-error-boundary')]);
|
|
27
|
+
'../utils/media-card-analytics-error-boundary')]);
|
|
28
28
|
MediaInlineCardLoader.MediaInlineCard = mediaClient.withMediaClient(cardModule.MediaInlineCard);
|
|
29
29
|
MediaInlineCardLoader.ErrorBoundary = mediaCardErrorBoundaryModule.default;
|
|
30
30
|
|
|
File without changes
|
package/dist/es2019/types.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
import { forwardRef } from 'react';
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { cardActionButtonStyles } from './styles';
|
|
4
|
-
export const CardActionButton = props => {
|
|
5
|
+
export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5
6
|
return jsx("div", {
|
|
6
7
|
id: "cardActionButton",
|
|
7
8
|
"data-testid": "media-card-primary-action",
|
|
8
9
|
css: cardActionButtonStyles(props),
|
|
9
10
|
style: props.style,
|
|
10
11
|
onClick: props.onClick,
|
|
11
|
-
onMouseDown: props.onMouseDown
|
|
12
|
+
onMouseDown: props.onMouseDown,
|
|
13
|
+
ref: ref
|
|
12
14
|
}, props.children);
|
|
13
|
-
};
|
|
15
|
+
});
|
|
@@ -6,9 +6,6 @@ import DropdownMenu, { DropdownItemGroup, DropdownItem } from '@atlaskit/dropdow
|
|
|
6
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
7
|
import { createAndFireMediaCardEvent } from '../analytics';
|
|
8
8
|
import { CardActionButton } from './cardActionButton';
|
|
9
|
-
|
|
10
|
-
const CardActionButtonWithProps = props => /*#__PURE__*/React.createElement(CardActionButton, props);
|
|
11
|
-
|
|
12
9
|
const CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
13
10
|
onClick: createAndFireMediaCardEvent({
|
|
14
11
|
eventType: 'ui',
|
|
@@ -17,11 +14,11 @@ const CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
|
17
14
|
actionSubjectId: 'mediaCardDropDownMenu',
|
|
18
15
|
attributes: {}
|
|
19
16
|
})
|
|
20
|
-
})(
|
|
17
|
+
})(CardActionButton);
|
|
21
18
|
|
|
22
19
|
// Trick applied due to the lack of props type of DropdownItem
|
|
23
20
|
const DropdownItemWithProps = props => /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
24
|
-
|
|
21
|
+
testId: "media-card-actions-menu-item"
|
|
25
22
|
}, props));
|
|
26
23
|
|
|
27
24
|
const createDropdownItemWithAnalytics = (action, index) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N500, N0 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
4
|
-
import { rootStyles } from '../../styles';
|
|
4
|
+
import { rootStyles } from '../../card/styles';
|
|
5
5
|
export const wrapperStyles = css`
|
|
6
6
|
${rootStyles()}
|
|
7
7
|
display: flex;
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LRUMap } from 'lru_map';
|
|
2
2
|
import { EventEmitter2 } from 'eventemitter2';
|
|
3
3
|
export const PREVIEW_CACHE_LRU_SIZE = 50;
|
|
4
4
|
|
|
5
|
-
class ExtendedLRUCache extends
|
|
5
|
+
class ExtendedLRUCache extends LRUMap {
|
|
6
6
|
constructor(limit) {
|
|
7
7
|
super(limit);
|
|
8
8
|
this.eventEmitter = new EventEmitter2();
|
|
@@ -24,8 +24,8 @@ export class ObjectURLCache {
|
|
|
24
24
|
constructor(size) {
|
|
25
25
|
this.cache = new ExtendedLRUCache(size);
|
|
26
26
|
this.cache.on('shift', entry => {
|
|
27
|
-
if (entry && entry.
|
|
28
|
-
URL.revokeObjectURL(entry.
|
|
27
|
+
if (entry && entry[1].dataURI) {
|
|
28
|
+
URL.revokeObjectURL(entry[1].dataURI);
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -43,7 +43,7 @@ export class ObjectURLCache {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
remove(key) {
|
|
46
|
-
const removed = this.cache.
|
|
46
|
+
const removed = this.cache.delete(key);
|
|
47
47
|
removed && URL.revokeObjectURL(removed.dataURI);
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -3,7 +3,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata, LOGGED_FEATURE_FLAG_KE
|
|
|
3
3
|
import { MediaCardError } from '../errors';
|
|
4
4
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
5
5
|
const packageName = "@atlaskit/media-card";
|
|
6
|
-
const packageVersion = "74.1.
|
|
6
|
+
const packageVersion = "74.1.9";
|
|
7
7
|
let concurrentExperience;
|
|
8
8
|
|
|
9
9
|
const getExperience = id => {
|
package/dist/es2019/version.json
CHANGED
|
File without changes
|
|
@@ -25,25 +25,25 @@ import DownloadIcon from '@atlaskit/icon/glyph/download';
|
|
|
25
25
|
import { globalMediaEventEmitter, isDifferentIdentifier, isFileIdentifier, RECENTS_COLLECTION, isImageRepresentationReady, isExternalImageIdentifier, isProcessedFileState, imageResizeModeToFileImageMode } from '@atlaskit/media-client';
|
|
26
26
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
27
27
|
import { injectIntl, IntlProvider } from 'react-intl-next';
|
|
28
|
-
import { CardView } from '
|
|
29
|
-
import { ViewportDetector } from '
|
|
30
|
-
import { getRequestedDimensions } from '
|
|
28
|
+
import { CardView } from './cardView';
|
|
29
|
+
import { ViewportDetector } from '../utils/viewportDetector';
|
|
30
|
+
import { getRequestedDimensions } from '../utils/getDataURIDimension';
|
|
31
31
|
import { getCardPreview, getCardPreviewFromCache, removeCardPreviewFromCache, getFilePreviewFromFileState, shouldResolvePreview, getSSRCardPreview, isLocalPreview, isSSRPreview, isSSRClientPreview, isSSRDataPreview, fetchAndCacheRemotePreview } from './getCardPreview';
|
|
32
|
-
import { getFileDetails } from '
|
|
33
|
-
import { InlinePlayerLazy } from '
|
|
34
|
-
import { getFileAttributes, extractErrorInfo, LOGGED_FEATURE_FLAGS } from '
|
|
35
|
-
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '
|
|
32
|
+
import { getFileDetails } from '../utils/metadata';
|
|
33
|
+
import { InlinePlayerLazy } from './inlinePlayerLazy';
|
|
34
|
+
import { getFileAttributes, extractErrorInfo, LOGGED_FEATURE_FLAGS } from '../utils/analytics';
|
|
35
|
+
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '../errors';
|
|
36
36
|
import { fireOperationalEvent as _fireOperationalEvent, fireCommencedEvent as _fireCommencedEvent, fireCopiedEvent, fireScreenEvent } from './cardAnalytics';
|
|
37
|
-
import getDocument from '
|
|
38
|
-
import { StoreSSRDataScript, getSSRData } from '
|
|
37
|
+
import getDocument from '../utils/document';
|
|
38
|
+
import { StoreSSRDataScript, getSSRData } from '../utils/globalScope';
|
|
39
39
|
import { getCardStateFromFileState, createStateUpdater } from './cardState';
|
|
40
40
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
41
|
-
import { isBigger } from '
|
|
42
|
-
import { getMediaCardCursor } from '
|
|
43
|
-
import { completeUfoExperience, startUfoExperience } from '
|
|
44
|
-
import { generateUniqueId } from '
|
|
41
|
+
import { isBigger } from '../utils/dimensionComparer';
|
|
42
|
+
import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
43
|
+
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
44
|
+
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
45
45
|
var packageName = "@atlaskit/media-card";
|
|
46
|
-
var packageVersion = "74.1.
|
|
46
|
+
var packageVersion = "74.1.9";
|
|
47
47
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
48
48
|
_inherits(CardBase, _Component);
|
|
49
49
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fireMediaCardEvent, getRenderSucceededEventPayload, getRenderErrorEventPayload, getRenderFailedFileStatusPayload, getCopiedFilePayload, getRenderCommencedEventPayload, getRenderPreviewableCardPayload } from '
|
|
2
|
-
import { MediaCardError } from '
|
|
1
|
+
import { fireMediaCardEvent, getRenderSucceededEventPayload, getRenderErrorEventPayload, getRenderFailedFileStatusPayload, getCopiedFilePayload, getRenderCommencedEventPayload, getRenderPreviewableCardPayload } from '../utils/analytics';
|
|
2
|
+
import { MediaCardError } from '../errors';
|
|
3
3
|
export var fireOperationalEvent = function fireOperationalEvent(createAnalyticsEvent, status, fileAttributes, performanceAttributes, ssrReliability) {
|
|
4
4
|
var error = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : new MediaCardError('missing-error-data');
|
|
5
5
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ import { css } from '@emotion/react';
|
|
|
12
12
|
import { borderRadius, size, ellipsis, absolute } from '@atlaskit/media-ui';
|
|
13
13
|
import { themed } from '@atlaskit/theme/components';
|
|
14
14
|
import * as colors from '@atlaskit/theme/colors';
|
|
15
|
-
import { rgba, centerX, easeOutCubic, transition, antialiased } from '
|
|
15
|
+
import { rgba, centerX, easeOutCubic, transition, antialiased } from '../../styles';
|
|
16
16
|
export var tickBoxStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n top: 8px;\n right: 8px;\n border-radius: 20px;\n color: #798599; /* TODO FIL-3884: Align color with new design */\n display: flex;\n opacity: 0;\n\n &.selected {\n opacity: 1;\n color: white;\n background-color: #0052cc; /* TODO FIL-3884: Align with tickbox icons */\n }\n\n /* Enforce dimensions of \"tick\" icon */\n svg {\n position: absolute;\n width: 14px;\n }\n"])), size(14), transition(), rgba('#ffffff', 0.5));
|
|
17
17
|
|
|
18
18
|
var getOverlayStyles = function getOverlayStyles(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { wrapperStyles } from '
|
|
3
|
+
import { wrapperStyles } from '../styles/styles';
|
|
4
4
|
export var Wrapper = function Wrapper(props) {
|
|
5
5
|
var testId = props.testId,
|
|
6
6
|
shouldUsePointerCursor = props.shouldUsePointerCursor,
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileCardImageView } from './fileCardImageView';
|
|
@@ -6,8 +6,8 @@ import { css } from '@emotion/react';
|
|
|
6
6
|
import { absolute, borderRadius, size } from '@atlaskit/media-ui';
|
|
7
7
|
import { themed } from '@atlaskit/theme/components';
|
|
8
8
|
import { N20, DN50, N0 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { rootStyles, cardShadow } from '
|
|
10
|
-
import { getSelectedBorderStyle } from '
|
|
9
|
+
import { rootStyles, cardShadow } from '../styles';
|
|
10
|
+
import { getSelectedBorderStyle } from '../styles/getSelectedBorderStyle';
|
|
11
11
|
|
|
12
12
|
var getShadowAttribute = function getShadowAttribute(props) {
|
|
13
13
|
var disableOverlay = props.disableOverlay;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import { useMemoizeFeatureFlags } from '@atlaskit/media-common';
|
|
4
4
|
import Loadable from 'react-loadable';
|
|
5
|
-
import { CardLoading } from '
|
|
5
|
+
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
6
6
|
var MediaCardContext = /*#__PURE__*/React.createContext({});
|
|
7
7
|
|
|
8
8
|
var CardLoadingWithContext = function CardLoadingWithContext() {
|
|
@@ -14,7 +14,7 @@ var MediaCard = Loadable({
|
|
|
14
14
|
loader: function loader() {
|
|
15
15
|
return import(
|
|
16
16
|
/* webpackChunkName: "@atlaskit-internal_media-card" */
|
|
17
|
-
'./
|
|
17
|
+
'./card').then(function (mod) {
|
|
18
18
|
return mod.Card;
|
|
19
19
|
});
|
|
20
20
|
},
|
|
@@ -26,7 +26,7 @@ var MediaCardErrorBoundary = Loadable({
|
|
|
26
26
|
loader: function loader() {
|
|
27
27
|
return import(
|
|
28
28
|
/* webpackChunkName: "@atlaskit-internal_media-card-error-boundary" */
|
|
29
|
-
'../media-card-analytics-error-boundary').then(function (mod) {
|
|
29
|
+
'../utils/media-card-analytics-error-boundary').then(function (mod) {
|
|
30
30
|
return mod.default;
|
|
31
31
|
});
|
|
32
32
|
},
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { isErrorFileState } from '@atlaskit/media-client';
|
|
8
|
-
import { MediaCardError } from '
|
|
8
|
+
import { MediaCardError } from '../errors';
|
|
9
9
|
import { getCardStatus, isFinalCardStatus } from './getCardStatus';
|
|
10
10
|
import { extractFilePreviewStatus } from './getCardPreview';
|
|
11
11
|
export var createStateUpdater = function createStateUpdater(newState) {
|
|
@@ -24,14 +24,14 @@ import SpinnerIcon from '@atlaskit/spinner';
|
|
|
24
24
|
import Tooltip from '@atlaskit/tooltip';
|
|
25
25
|
import { toHumanReadableMediaSize, messages } from '@atlaskit/media-ui';
|
|
26
26
|
import { isRateLimitedError, isPollingError } from '@atlaskit/media-client';
|
|
27
|
-
import { FileCardImageView } from '
|
|
27
|
+
import { FileCardImageView } from './cardImageView';
|
|
28
28
|
import { breakpointSize } from '../utils/breakpoint';
|
|
29
29
|
import { defaultImageCardDimensions, getDefaultCardDimensions } from '../utils/cardDimensions';
|
|
30
30
|
import { isValidPercentageUnit } from '../utils/isValidPercentageUnit';
|
|
31
31
|
import { getCSSUnitValue } from '../utils/getCSSUnitValue';
|
|
32
32
|
import { getElementDimension } from '../utils/getElementDimension';
|
|
33
33
|
import { createAndFireMediaCardEvent } from '../utils/analytics';
|
|
34
|
-
import { attachDetailsToActions } from '
|
|
34
|
+
import { attachDetailsToActions } from './actions';
|
|
35
35
|
import { getErrorMessage } from '../utils/getErrorMessage';
|
|
36
36
|
import { cardImageContainerStyles, calcBreakpointSize } from './ui/styles';
|
|
37
37
|
import { ImageRenderer } from './ui/imageRenderer/imageRenderer';
|
|
@@ -46,7 +46,7 @@ import { IconWrapper } from './ui/iconWrapper/iconWrapper';
|
|
|
46
46
|
import { PreviewUnavailable, CreatingPreview, FailedToUpload, PreviewCurrentlyUnavailable, FailedToLoad } from './ui/iconMessage';
|
|
47
47
|
import { isUploadError } from '../errors';
|
|
48
48
|
import { NewFileExperienceWrapper } from './ui/newFileExperience/newFileExperienceWrapper';
|
|
49
|
-
import { Wrapper } from './cardViewWrapper';
|
|
49
|
+
import { Wrapper } from './cardImageView/cardViewWrapper';
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* This is classic vanilla CardView class. To create an instance of class one would need to supply
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import { createObjectURLCache } from '
|
|
4
|
+
import { createObjectURLCache } from '../../utils/objectURLCache';
|
|
5
5
|
export var getCacheKey = function getCacheKey(id, mode) {
|
|
6
6
|
var resizeMode = mode || 'crop';
|
|
7
7
|
return [id, resizeMode].join('-');
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { takeSnapshot } from '
|
|
3
|
+
import { takeSnapshot } from '../../utils/videoSnapshot';
|
|
4
4
|
import { getMediaTypeFromMimeType } from '@atlaskit/media-common';
|
|
5
5
|
import { getOrientation } from '@atlaskit/media-ui';
|
|
6
|
-
import { LocalPreviewError, RemotePreviewError } from '
|
|
6
|
+
import { LocalPreviewError, RemotePreviewError } from '../../errors';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* This method tells the support for the media
|
|
File without changes
|
|
@@ -10,10 +10,10 @@ import { isPreviewableFileState, addFileAttrsToUrl } from '@atlaskit/media-clien
|
|
|
10
10
|
import { isMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
11
11
|
import cardPreviewCache from './cache';
|
|
12
12
|
import { getCardPreviewFromFilePreview, getCardPreviewFromBackend } from './helpers';
|
|
13
|
-
import { MediaCardError, SsrPreviewError, isUnsupportedLocalPreviewError } from '
|
|
14
|
-
import { isBigger } from '
|
|
13
|
+
import { MediaCardError, SsrPreviewError, isUnsupportedLocalPreviewError } from '../../errors';
|
|
14
|
+
import { isBigger } from '../../utils/dimensionComparer';
|
|
15
15
|
import { extractFilePreviewStatus, isPreviewableStatus } from './filePreviewStatus';
|
|
16
|
-
import { fireImageFetchingOperationalEvent, calculatePercentageDifference } from '
|
|
16
|
+
import { fireImageFetchingOperationalEvent, calculatePercentageDifference } from './imageRefetchingAnalytics';
|
|
17
17
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
18
18
|
export { getCardPreviewFromFilePreview, getCardPreviewFromBackend, isSupportedLocalPreview } from './helpers';
|
|
19
19
|
export { extractFilePreviewStatus } from './filePreviewStatus';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './cardLoader';
|
|
@@ -17,7 +17,7 @@ import React from 'react';
|
|
|
17
17
|
import { Component } from 'react';
|
|
18
18
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
19
19
|
import { CustomMediaPlayer, InactivityDetector } from '@atlaskit/media-ui';
|
|
20
|
-
import { defaultImageCardDimensions } from '
|
|
20
|
+
import { defaultImageCardDimensions } from '../utils';
|
|
21
21
|
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
22
22
|
import { ProgressBar } from './ui/progressBar/progressBar';
|
|
23
23
|
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 var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
|
|
5
5
|
var testId = props.testId,
|
|
6
6
|
selected = props.selected,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,10 +4,10 @@ var _templateObject, _templateObject2;
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
|
-
import { getCSSUnitValue } from '
|
|
8
|
-
import { breakpointStyles } from '
|
|
9
|
-
import { getSelectedBorderStyle } from '
|
|
10
|
-
import { getDimensionsWithDefault } from '
|
|
7
|
+
import { getCSSUnitValue } from '../../utils/getCSSUnitValue';
|
|
8
|
+
import { breakpointStyles } from '../../utils/breakpoint';
|
|
9
|
+
import { getSelectedBorderStyle } from './getSelectedBorderStyle';
|
|
10
|
+
import { getDimensionsWithDefault } from '../../utils/lightCards/getDimensionsWithDefault';
|
|
11
11
|
export var inlinePlayerClassName = 'media-card-inline-player';
|
|
12
12
|
|
|
13
13
|
var getWrapperHeight = function getWrapperHeight(dimensions) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
|
-
import { transition } from '
|
|
6
|
+
import { transition } from '../../styles';
|
|
7
7
|
export var actionsBarClassName = 'media-card-actions-bar';
|
|
8
8
|
export var fixedActionBarStyles = "opacity: 1;";
|
|
9
9
|
export var wrapperStyles = function wrapperStyles(isFixed) {
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
|
-
import { transition } from '
|
|
6
|
+
import { transition } from '../../styles';
|
|
7
7
|
import { N90A } from '@atlaskit/theme/colors';
|
|
8
8
|
export var blanketClassName = 'media-card-blanket';
|
|
9
9
|
export var fixedBlanketStyles = "background-color: ".concat(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 var NewFileExperienceWrapper = function NewFileExperienceWrapper(props) {
|
|
6
6
|
var testId = props.testId,
|
|
@@ -7,9 +7,9 @@ import { fontFamily } from '@atlaskit/theme/constants';
|
|
|
7
7
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
8
8
|
import { N20 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
10
|
-
import { transition } from '
|
|
11
|
-
import { fixedBlanketStyles, blanketClassName } from '
|
|
12
|
-
import { fixedActionBarStyles, actionsBarClassName } from '
|
|
10
|
+
import { transition } from '../../styles';
|
|
11
|
+
import { fixedBlanketStyles, blanketClassName } from '../blanket/styles';
|
|
12
|
+
import { fixedActionBarStyles, actionsBarClassName } from '../actionsBar/styles';
|
|
13
13
|
import { generateResponsiveStyles, getClickablePlayButtonStyles, getCursorStyle, getSelectableTickBoxStyles, getWrapperDimensions, getWrapperShadow } from '../styles';
|
|
14
14
|
export var newFileExperienceWrapperStyles = function newFileExperienceWrapperStyles(_ref) {
|
|
15
15
|
var breakpoint = _ref.breakpoint,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
7
|
-
import { rgba } from '
|
|
7
|
+
import { rgba } from '../../styles/mixins';
|
|
8
8
|
import { N0, N400 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { Breakpoint, getTitleBoxHeight, responsiveSettings } from '../common';
|
|
10
10
|
var height = 3;
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
|
-
import { transition } from '
|
|
6
|
+
import { transition } from '../../styles';
|
|
7
7
|
import { B200, N0, N100 } from '@atlaskit/theme/colors';
|
|
8
8
|
export var tickBoxClassName = 'media-card-tickbox';
|
|
9
9
|
export var tickboxFixedStyles = "\n background-color: ".concat(N0, ";\n color: ").concat(N100, ";\n");
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
7
7
|
import { N0 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { rgba } from '
|
|
8
|
+
import { rgba } from '../../styles/mixins';
|
|
9
9
|
|
|
10
10
|
var generateResponsiveStyles = function generateResponsiveStyles() {
|
|
11
11
|
var breakpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Breakpoint.SMALL;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/esm/classnames.js
CHANGED
|
@@ -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/esm/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';
|