@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
|
@@ -67,7 +67,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
67
67
|
/* webpackChunkName: "@atlaskit-internal_inline-media-card" */
|
|
68
68
|
'./mediaInlineCard'), import(
|
|
69
69
|
/* webpackChunkName: "@atlaskit-internal_media-card-error-boundary" */
|
|
70
|
-
'../media-card-analytics-error-boundary')]);
|
|
70
|
+
'../utils/media-card-analytics-error-boundary')]);
|
|
71
71
|
|
|
72
72
|
case 5:
|
|
73
73
|
_yield$Promise$all = _context.sent;
|
|
File without changes
|
package/dist/esm/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 var CardActionButton = function
|
|
5
|
+
export var CardActionButton = /*#__PURE__*/forwardRef(function (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
|
+
});
|
|
@@ -18,11 +18,6 @@ import DropdownMenu, { DropdownItemGroup, DropdownItem } from '@atlaskit/dropdow
|
|
|
18
18
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
19
19
|
import { createAndFireMediaCardEvent } from '../analytics';
|
|
20
20
|
import { CardActionButton } from './cardActionButton';
|
|
21
|
-
|
|
22
|
-
var CardActionButtonWithProps = function CardActionButtonWithProps(props) {
|
|
23
|
-
return /*#__PURE__*/React.createElement(CardActionButton, props);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
21
|
var CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
27
22
|
onClick: createAndFireMediaCardEvent({
|
|
28
23
|
eventType: 'ui',
|
|
@@ -31,12 +26,12 @@ var CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
|
31
26
|
actionSubjectId: 'mediaCardDropDownMenu',
|
|
32
27
|
attributes: {}
|
|
33
28
|
})
|
|
34
|
-
})(
|
|
29
|
+
})(CardActionButton);
|
|
35
30
|
|
|
36
31
|
// Trick applied due to the lack of props type of DropdownItem
|
|
37
32
|
var DropdownItemWithProps = function DropdownItemWithProps(props) {
|
|
38
33
|
return /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
39
|
-
|
|
34
|
+
testId: "media-card-actions-menu-item"
|
|
40
35
|
}, props));
|
|
41
36
|
};
|
|
42
37
|
|
|
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2;
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { N500, N0 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
8
|
-
import { rootStyles } from '../../styles';
|
|
8
|
+
import { rootStyles } from '../../card/styles';
|
|
9
9
|
export var wrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n display: flex;\n position: relative;\n line-height: 0;\n"])), rootStyles());
|
|
10
10
|
export var CardActionIconButtonVariant;
|
|
11
11
|
|
|
File without changes
|
|
@@ -9,12 +9,12 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
|
|
10
10
|
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; } }
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { LRUMap } from 'lru_map';
|
|
13
13
|
import { EventEmitter2 } from 'eventemitter2';
|
|
14
14
|
export var PREVIEW_CACHE_LRU_SIZE = 50;
|
|
15
15
|
|
|
16
|
-
var ExtendedLRUCache = /*#__PURE__*/function (
|
|
17
|
-
_inherits(ExtendedLRUCache,
|
|
16
|
+
var ExtendedLRUCache = /*#__PURE__*/function (_LRUMap) {
|
|
17
|
+
_inherits(ExtendedLRUCache, _LRUMap);
|
|
18
18
|
|
|
19
19
|
var _super = _createSuper(ExtendedLRUCache);
|
|
20
20
|
|
|
@@ -44,7 +44,7 @@ var ExtendedLRUCache = /*#__PURE__*/function (_LRUCache) {
|
|
|
44
44
|
}]);
|
|
45
45
|
|
|
46
46
|
return ExtendedLRUCache;
|
|
47
|
-
}(
|
|
47
|
+
}(LRUMap);
|
|
48
48
|
|
|
49
49
|
export var ObjectURLCache = /*#__PURE__*/function () {
|
|
50
50
|
function ObjectURLCache(size) {
|
|
@@ -52,8 +52,8 @@ export var ObjectURLCache = /*#__PURE__*/function () {
|
|
|
52
52
|
|
|
53
53
|
this.cache = new ExtendedLRUCache(size);
|
|
54
54
|
this.cache.on('shift', function (entry) {
|
|
55
|
-
if (entry && entry.
|
|
56
|
-
URL.revokeObjectURL(entry.
|
|
55
|
+
if (entry && entry[1].dataURI) {
|
|
56
|
+
URL.revokeObjectURL(entry[1].dataURI);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -76,7 +76,7 @@ export var ObjectURLCache = /*#__PURE__*/function () {
|
|
|
76
76
|
}, {
|
|
77
77
|
key: "remove",
|
|
78
78
|
value: function remove(key) {
|
|
79
|
-
var removed = this.cache.
|
|
79
|
+
var removed = this.cache.delete(key);
|
|
80
80
|
removed && URL.revokeObjectURL(removed.dataURI);
|
|
81
81
|
}
|
|
82
82
|
}]);
|
|
@@ -5,7 +5,8 @@ export function PreventClickThrough(_ref) {
|
|
|
5
5
|
onClick: function onClick(event) {
|
|
6
6
|
event.stopPropagation();
|
|
7
7
|
event.preventDefault();
|
|
8
|
-
}
|
|
8
|
+
},
|
|
9
|
+
"data-testid": "prevent-click-through"
|
|
9
10
|
}, children);
|
|
10
11
|
}
|
|
11
12
|
export var createPreventClickThrough = function createPreventClickThrough(onClick) {
|
|
@@ -9,7 +9,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata, LOGGED_FEATURE_FLAG_KE
|
|
|
9
9
|
import { MediaCardError } from '../errors';
|
|
10
10
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
11
11
|
var packageName = "@atlaskit/media-card";
|
|
12
|
-
var packageVersion = "74.1.
|
|
12
|
+
var packageVersion = "74.1.9";
|
|
13
13
|
var concurrentExperience;
|
|
14
14
|
|
|
15
15
|
var getExperience = function getExperience(id) {
|
package/dist/esm/version.json
CHANGED
|
File without changes
|
|
@@ -2,7 +2,8 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
3
|
import { FileIdentifier, FileState, MediaSubscription } from '@atlaskit/media-client';
|
|
4
4
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { CardAction
|
|
5
|
+
import { CardAction } from './actions';
|
|
6
|
+
import { CardProps, CardState, CardStatus } from '../types';
|
|
6
7
|
export declare type CardBaseProps = CardProps & WithAnalyticsEventsProps & Partial<WrappedComponentProps>;
|
|
7
8
|
export declare class CardBase extends Component<CardBaseProps, CardState> {
|
|
8
9
|
private internalOccurrenceKey;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FileAttributes, PerformanceAttributes } from '@atlaskit/media-common';
|
|
2
2
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { SSRStatus } from '
|
|
4
|
-
import { CardStatus } from '
|
|
5
|
-
import { MediaCardError } from '
|
|
3
|
+
import { SSRStatus } from '../utils/analytics';
|
|
4
|
+
import { CardStatus } from '../types';
|
|
5
|
+
import { MediaCardError } from '../errors';
|
|
6
6
|
export declare const fireOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, status: CardStatus, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, error?: MediaCardError) => void;
|
|
7
7
|
export declare const fireCommencedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => void;
|
|
8
8
|
export declare const fireCopiedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileId: string, cardRef: HTMLDivElement) => void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { MouseEvent, Component, ReactNode } from 'react';
|
|
4
4
|
import { MediaType } from '@atlaskit/media-client';
|
|
5
|
-
import { CardAction, CardEventHandler } from '
|
|
6
|
-
import { CardStatus } from '../../../
|
|
5
|
+
import { CardAction, CardEventHandler } from '../../actions';
|
|
6
|
+
import { CardStatus } from '../../../types';
|
|
7
7
|
export interface CardOverlayProps {
|
|
8
8
|
readonly cardStatus: CardStatus;
|
|
9
9
|
mediaType?: MediaType;
|
|
File without changes
|
|
File without changes
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { Component, ReactNode } from 'react';
|
|
4
4
|
import { MediaItemType, MediaType, ImageResizeMode } from '@atlaskit/media-client';
|
|
5
|
-
import {
|
|
6
|
-
import { CardAction } from '
|
|
7
|
-
import { CardPreview } from '../..';
|
|
5
|
+
import { CardStatus, CardPreview, CardDimensions } from '../../types';
|
|
6
|
+
import { CardAction } from '../actions';
|
|
8
7
|
export interface FileCardImageViewProps {
|
|
9
8
|
readonly mediaName?: string;
|
|
10
9
|
readonly mediaType?: MediaType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
3
|
-
import { CardStatus } from '../../
|
|
3
|
+
import { CardStatus } from '../../types';
|
|
4
4
|
export interface WrapperProps {
|
|
5
5
|
disableOverlay?: boolean;
|
|
6
6
|
selectable?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
3
|
-
import type { CardBaseProps } from '
|
|
3
|
+
import type { CardBaseProps } from './card';
|
|
4
4
|
export declare type CardWithMediaClientConfigProps = WithMediaClientConfigProps<CardBaseProps>;
|
|
5
5
|
declare const CardLoader: React.FC<CardWithMediaClientConfigProps>;
|
|
6
6
|
export default CardLoader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileState } from '@atlaskit/media-client';
|
|
2
2
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
3
|
-
import { CardState } from '
|
|
3
|
+
import { CardState } from '../types';
|
|
4
4
|
export declare const createStateUpdater: (newState: Partial<CardState>) => (prevState: CardState) => Pick<CardState, keyof CardState>;
|
|
5
5
|
export declare const getCardStateFromFileState: (fileState: FileState, isBannedLocalPreview: boolean, featureFlags?: MediaFeatureFlags | undefined) => Partial<CardState>;
|
|
@@ -4,9 +4,9 @@ import React, { MouseEvent } from 'react';
|
|
|
4
4
|
import { MessageDescriptor } from 'react-intl-next';
|
|
5
5
|
import { MediaItemType, FileDetails } from '@atlaskit/media-client';
|
|
6
6
|
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { SharedCardProps, CardStatus } from '../
|
|
7
|
+
import { SharedCardProps, CardStatus } from '../types';
|
|
8
8
|
import { MediaCardError } from '../errors';
|
|
9
|
-
import { CardPreview } from '
|
|
9
|
+
import { CardPreview } from '../types';
|
|
10
10
|
import { MediaCardCursor } from '../types';
|
|
11
11
|
export interface CardViewOwnProps extends SharedCardProps {
|
|
12
12
|
readonly status: CardStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
2
|
-
import { ObjectURLCache } from '
|
|
3
|
-
import { CardPreview } from '
|
|
2
|
+
import { ObjectURLCache } from '../../utils/objectURLCache';
|
|
3
|
+
import { CardPreview } from '../../types';
|
|
4
4
|
declare type Mode = ImageResizeMode | undefined;
|
|
5
5
|
export declare const getCacheKey: (id: string, mode: Mode) => string;
|
|
6
6
|
export interface CardPreviewCache {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
2
|
-
import { CardStatus, FilePreviewStatus } from '
|
|
2
|
+
import { CardStatus, FilePreviewStatus } from '../../types';
|
|
3
3
|
import { FileState } from '@atlaskit/media-client';
|
|
4
4
|
export declare const extractFilePreviewStatus: (fileState: FileState, isBannedLocalPreview: boolean, featureFlags?: MediaFeatureFlags | undefined) => FilePreviewStatus;
|
|
5
5
|
export declare const isPreviewableStatus: (cardStatus: CardStatus, { isPreviewable, hasPreview, isSupportedByBrowser }: FilePreviewStatus) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaClient, FilePreview, MediaStoreGetFileImageParams, MediaType } from '@atlaskit/media-client';
|
|
2
|
-
import { CardPreview } from '
|
|
2
|
+
import { CardPreview } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* This method tells the support for the media
|
|
5
5
|
* types covered in getCardPreviewFromFilePreview
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { CardDimensions } from '../../
|
|
2
|
+
import { CardDimensions } from '../../types';
|
|
3
3
|
import { CardPreviewAttributes } from '../../utils/analytics';
|
|
4
4
|
declare type cardAction = 'cache-hit' | 'remote-success';
|
|
5
5
|
export declare const fireImageFetchingOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, action: cardAction, cardPreviewAttributes: CardPreviewAttributes) => void;
|
|
@@ -2,9 +2,9 @@ import { MediaClient, FilePreview, FileState, MediaStoreGetFileImageParams, Medi
|
|
|
2
2
|
import { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
3
|
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
4
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
import { CardDimensions } from '
|
|
6
|
-
import { MediaCardError } from '
|
|
7
|
-
import { CardStatus, CardPreview } from '
|
|
5
|
+
import { CardDimensions } from '../../types';
|
|
6
|
+
import { MediaCardError } from '../../errors';
|
|
7
|
+
import { CardStatus, CardPreview } from '../../types';
|
|
8
8
|
export { getCardPreviewFromFilePreview, getCardPreviewFromBackend, isSupportedLocalPreview, } from './helpers';
|
|
9
9
|
export { extractFilePreviewStatus } from './filePreviewStatus';
|
|
10
10
|
export declare const getCardPreviewFromCache: (id: string, mode: ImageResizeMode | undefined) => CardPreview | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FileStatus } from '@atlaskit/media-client';
|
|
2
|
-
import { CardStatus, FilePreviewStatus } from '
|
|
2
|
+
import { CardStatus, FilePreviewStatus } from '../types';
|
|
3
3
|
export declare const isFinalCardStatus: (status: CardStatus) => boolean;
|
|
4
4
|
export declare const getCardStatus: (fileStatus: FileStatus, { hasFilesize, isPreviewable, hasPreview }: FilePreviewStatus) => CardStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './cardLoader';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { MediaClient, FileIdentifier, FileState, MediaFileArtifacts, MediaSubscription } from '@atlaskit/media-client';
|
|
4
|
-
import {
|
|
4
|
+
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
5
|
+
import { CardDimensions } from '../types';
|
|
5
6
|
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
-
import type { CardPreview } from '
|
|
7
|
+
import type { CardPreview } from '../types';
|
|
7
8
|
export interface InlinePlayerOwnProps {
|
|
8
9
|
identifier: FileIdentifier;
|
|
9
10
|
mediaClient: MediaClient;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const spin: import("@emotion/serialize").Keyframes;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardAppearance } from '
|
|
1
|
+
import { CardAppearance } from '../../types';
|
|
2
2
|
export declare const centerX = "\n display: flex;\n justify-content: center;\n";
|
|
3
3
|
export declare const antialiased = "\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n";
|
|
4
4
|
export declare const centerSelfY = "\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n";
|
|
@@ -14,8 +14,8 @@ export interface WithAppearanceProps {
|
|
|
14
14
|
appearance?: CardAppearance;
|
|
15
15
|
}
|
|
16
16
|
export declare const withAppearance: (styleMap: {
|
|
17
|
-
image?: string | undefined;
|
|
18
17
|
auto?: string | undefined;
|
|
19
|
-
|
|
18
|
+
image?: string | undefined;
|
|
20
19
|
square?: string | undefined;
|
|
20
|
+
horizontal?: string | undefined;
|
|
21
21
|
}) => ({ appearance }: WithAppearanceProps) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InlinePlayerWrapperProps, WrapperProps } from '
|
|
1
|
+
import { InlinePlayerWrapperProps, WrapperProps } from '../types';
|
|
2
2
|
export declare const inlinePlayerClassName = "media-card-inline-player";
|
|
3
3
|
export declare const wrapperStyles: {
|
|
4
4
|
({ dimensions, breakpointSize, shouldUsePointerCursor, }: WrapperProps): import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { MouseEvent, ReactElement, RefObject } from 'react';
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { CardDimensions } from '../';
|
|
3
|
+
import { CardDimensions } from '../types';
|
|
4
4
|
import { BreakpointSizeValue } from '../utils/breakpoint';
|
|
5
5
|
export interface WrapperProps {
|
|
6
6
|
testId?: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MediaType, ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
-
import { CardPreview } from '
|
|
3
|
+
import { CardPreview } from '../../../types';
|
|
4
4
|
export declare type ImageRendererProps = {
|
|
5
5
|
readonly cardPreview: CardPreview;
|
|
6
6
|
readonly mediaType: MediaType;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { MouseEvent, RefObject } from 'react';
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { CardDimensions, CardAppearance } from '
|
|
4
|
-
import { Breakpoint } from '
|
|
3
|
+
import { CardDimensions, CardAppearance } from '../../../types';
|
|
4
|
+
import { Breakpoint } from '../common';
|
|
5
5
|
import { MediaCardCursor } from '../../../types';
|
|
6
6
|
export interface NewFileExperienceWrapperProps {
|
|
7
7
|
testId?: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardDimensions, CardAppearance } from '
|
|
1
|
+
import { CardDimensions, CardAppearance } from '../../types';
|
|
2
2
|
import { Breakpoint } from './common';
|
|
3
3
|
import { MediaCardCursor } from '../../types';
|
|
4
4
|
export declare const calcBreakpointSize: (wrapperWidth?: number) => Breakpoint;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import { Breakpoint } from '../common';
|
|
4
|
-
import { TitleBoxIcon as TitleBoxIconType } from '../../../
|
|
4
|
+
import { TitleBoxIcon as TitleBoxIconType } from '../../../types';
|
|
5
5
|
export declare type TitleBoxProps = {
|
|
6
6
|
name: string;
|
|
7
7
|
breakpoint: Breakpoint;
|
|
@@ -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/types/errors.d.ts
CHANGED