@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
package/dist/types/index.d.ts
CHANGED
|
@@ -1,77 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { CardAction } from './actions';
|
|
6
|
-
import { MediaViewerDataSource } from '@atlaskit/media-viewer';
|
|
7
|
-
import { CardPreview, CardStatus, CardAppearance } from './types';
|
|
8
|
-
import { MediaCardError } from './errors';
|
|
9
|
-
import { CardDimensions } from './utils';
|
|
10
|
-
export type { CardDimensions } from './utils';
|
|
1
|
+
/**
|
|
2
|
+
* Entry Point: @atlaskit/media-card
|
|
3
|
+
* tsconfig.entry-points.json
|
|
4
|
+
*/
|
|
11
5
|
export type { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
12
|
-
export {
|
|
13
|
-
export type {
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export interface CardEvent {
|
|
17
|
-
event: MouseEvent<HTMLElement>;
|
|
18
|
-
mediaItemDetails?: FileDetails;
|
|
19
|
-
}
|
|
20
|
-
export interface SharedCardProps {
|
|
21
|
-
readonly disableOverlay?: boolean;
|
|
22
|
-
readonly resizeMode?: ImageResizeMode;
|
|
23
|
-
readonly featureFlags?: MediaFeatureFlags;
|
|
24
|
-
readonly appearance?: CardAppearance;
|
|
25
|
-
readonly dimensions?: CardDimensions;
|
|
26
|
-
readonly originalDimensions?: NumericalCardDimensions;
|
|
27
|
-
readonly actions?: Array<CardAction>;
|
|
28
|
-
readonly selectable?: boolean;
|
|
29
|
-
readonly selected?: boolean;
|
|
30
|
-
readonly alt?: string;
|
|
31
|
-
readonly testId?: string;
|
|
32
|
-
readonly titleBoxBgColor?: string;
|
|
33
|
-
readonly titleBoxIcon?: TitleBoxIcon;
|
|
34
|
-
}
|
|
35
|
-
export interface CardOnClickCallback {
|
|
36
|
-
(result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
37
|
-
}
|
|
38
|
-
export interface CardEventProps {
|
|
39
|
-
readonly onClick?: CardOnClickCallback;
|
|
40
|
-
readonly onMouseEnter?: (result: CardEvent) => void;
|
|
41
|
-
/** Callback function to be called when video enters and exit fullscreen.
|
|
42
|
-
* `fullscreen = true` indicates video enters fullscreen
|
|
43
|
-
* `fullscreen = false` indicates video exits fullscreen
|
|
44
|
-
*/
|
|
45
|
-
readonly onFullscreenChange?: (fullscreen: boolean) => void;
|
|
46
|
-
}
|
|
47
|
-
export interface CardProps extends SharedCardProps, CardEventProps {
|
|
48
|
-
readonly mediaClient: MediaClient;
|
|
49
|
-
readonly identifier: Identifier;
|
|
50
|
-
readonly isLazy?: boolean;
|
|
51
|
-
readonly useInlinePlayer?: boolean;
|
|
52
|
-
readonly shouldOpenMediaViewer?: boolean;
|
|
53
|
-
readonly mediaViewerDataSource?: MediaViewerDataSource;
|
|
54
|
-
readonly contextId?: string;
|
|
55
|
-
readonly shouldEnableDownloadButton?: boolean;
|
|
56
|
-
readonly ssr?: SSR;
|
|
57
|
-
}
|
|
58
|
-
export interface CardState {
|
|
59
|
-
status: CardStatus;
|
|
60
|
-
isCardVisible: boolean;
|
|
61
|
-
shouldAutoplay?: boolean;
|
|
62
|
-
isPlayingFile: boolean;
|
|
63
|
-
mediaViewerSelectedItem?: Identifier;
|
|
64
|
-
fileState?: FileState;
|
|
65
|
-
progress?: number;
|
|
66
|
-
cardPreview?: CardPreview;
|
|
67
|
-
error?: MediaCardError;
|
|
68
|
-
cardRef: HTMLDivElement | null;
|
|
69
|
-
isBannedLocalPreview: boolean;
|
|
70
|
-
previewDidRender: boolean;
|
|
71
|
-
}
|
|
6
|
+
export type { CardAction, CardEventHandler } from './card/actions';
|
|
7
|
+
export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, SharedCardProps, CardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
|
|
8
|
+
export { Card } from './card';
|
|
9
|
+
export { MediaInlineCard } from './inline';
|
|
72
10
|
export { CardLoading } from './utils/lightCards/cardLoading';
|
|
73
11
|
export { CardError } from './utils/lightCards/cardError';
|
|
74
12
|
export { defaultImageCardDimensions } from './utils/cardDimensions';
|
|
75
|
-
export { fileCardImageViewSelector, fileCardImageViewSelectedSelector, } from './
|
|
76
|
-
export { inlinePlayerClassName } from './
|
|
77
|
-
export { newFileExperienceClassName } from './
|
|
13
|
+
export { fileCardImageViewSelector, fileCardImageViewSelectedSelector, } from './card/cardImageView/classnames';
|
|
14
|
+
export { inlinePlayerClassName } from './card/styles/styles';
|
|
15
|
+
export { newFileExperienceClassName } from './card/cardConstants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MediaInlineCard } from './loader';
|
|
File without changes
|
|
File without changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Entry Point: @atlaskit/media-card/types
|
|
3
|
+
* tsconfig.entry-points.json
|
|
4
|
+
*/
|
|
5
|
+
import { MouseEvent } from 'react';
|
|
6
|
+
import { FileDetails, MediaClient, Identifier, ImageResizeMode, FileState } from '@atlaskit/media-client';
|
|
7
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
|
+
import { MediaFeatureFlags, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
|
|
9
|
+
import { CardAction } from './card/actions';
|
|
10
|
+
import { MediaViewerDataSource } from '@atlaskit/media-viewer';
|
|
11
|
+
import { MediaCardError } from './errors';
|
|
2
12
|
export declare type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
|
|
3
13
|
export declare type FilePreviewStatus = {
|
|
4
14
|
hasFilesize: boolean;
|
|
@@ -23,3 +33,64 @@ export declare enum MediaCardCursor {
|
|
|
23
33
|
Action = "pointer",
|
|
24
34
|
NotReady = "wait"
|
|
25
35
|
}
|
|
36
|
+
export interface CardDimensions {
|
|
37
|
+
width?: CardDimensionValue;
|
|
38
|
+
height?: CardDimensionValue;
|
|
39
|
+
}
|
|
40
|
+
export declare type TitleBoxIcon = 'LockFilledIcon';
|
|
41
|
+
export interface CardEvent {
|
|
42
|
+
event: MouseEvent<HTMLElement>;
|
|
43
|
+
mediaItemDetails?: FileDetails;
|
|
44
|
+
}
|
|
45
|
+
export interface SharedCardProps {
|
|
46
|
+
readonly disableOverlay?: boolean;
|
|
47
|
+
readonly resizeMode?: ImageResizeMode;
|
|
48
|
+
readonly featureFlags?: MediaFeatureFlags;
|
|
49
|
+
readonly appearance?: CardAppearance;
|
|
50
|
+
readonly dimensions?: CardDimensions;
|
|
51
|
+
readonly originalDimensions?: NumericalCardDimensions;
|
|
52
|
+
readonly actions?: Array<CardAction>;
|
|
53
|
+
readonly selectable?: boolean;
|
|
54
|
+
readonly selected?: boolean;
|
|
55
|
+
readonly alt?: string;
|
|
56
|
+
readonly testId?: string;
|
|
57
|
+
readonly titleBoxBgColor?: string;
|
|
58
|
+
readonly titleBoxIcon?: TitleBoxIcon;
|
|
59
|
+
}
|
|
60
|
+
export interface CardOnClickCallback {
|
|
61
|
+
(result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
62
|
+
}
|
|
63
|
+
export interface CardEventProps {
|
|
64
|
+
readonly onClick?: CardOnClickCallback;
|
|
65
|
+
readonly onMouseEnter?: (result: CardEvent) => void;
|
|
66
|
+
/** Callback function to be called when video enters and exit fullscreen.
|
|
67
|
+
* `fullscreen = true` indicates video enters fullscreen
|
|
68
|
+
* `fullscreen = false` indicates video exits fullscreen
|
|
69
|
+
*/
|
|
70
|
+
readonly onFullscreenChange?: (fullscreen: boolean) => void;
|
|
71
|
+
}
|
|
72
|
+
export interface CardProps extends SharedCardProps, CardEventProps {
|
|
73
|
+
readonly mediaClient: MediaClient;
|
|
74
|
+
readonly identifier: Identifier;
|
|
75
|
+
readonly isLazy?: boolean;
|
|
76
|
+
readonly useInlinePlayer?: boolean;
|
|
77
|
+
readonly shouldOpenMediaViewer?: boolean;
|
|
78
|
+
readonly mediaViewerDataSource?: MediaViewerDataSource;
|
|
79
|
+
readonly contextId?: string;
|
|
80
|
+
readonly shouldEnableDownloadButton?: boolean;
|
|
81
|
+
readonly ssr?: SSR;
|
|
82
|
+
}
|
|
83
|
+
export interface CardState {
|
|
84
|
+
status: CardStatus;
|
|
85
|
+
isCardVisible: boolean;
|
|
86
|
+
shouldAutoplay?: boolean;
|
|
87
|
+
isPlayingFile: boolean;
|
|
88
|
+
mediaViewerSelectedItem?: Identifier;
|
|
89
|
+
fileState?: FileState;
|
|
90
|
+
progress?: number;
|
|
91
|
+
cardPreview?: CardPreview;
|
|
92
|
+
error?: MediaCardError;
|
|
93
|
+
cardRef: HTMLDivElement | null;
|
|
94
|
+
isBannedLocalPreview: boolean;
|
|
95
|
+
previewDidRender: boolean;
|
|
96
|
+
}
|
|
@@ -2,8 +2,7 @@ import { FileDetails, MediaClientErrorReason, RequestMetadata } from '@atlaskit/
|
|
|
2
2
|
import { FileAttributes, PerformanceAttributes, OperationalEventPayload, UIEventPayload, WithFileAttributes, WithPerformanceAttributes, SuccessAttributes, FailureAttributes, ScreenEventPayload, ScreenAttributes } from '@atlaskit/media-common';
|
|
3
3
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
import { MediaCardError, MediaCardErrorPrimaryReason } from '../errors';
|
|
5
|
-
import { CardDimensions } from '
|
|
6
|
-
import { CardPreviewSource } from '../types';
|
|
5
|
+
import { CardPreviewSource, CardDimensions } from '../types';
|
|
7
6
|
export declare type CardPreviewAttributes = {
|
|
8
7
|
fileId: string;
|
|
9
8
|
prevDimensions: CardDimensions | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardDimensionValue } from '../';
|
|
1
|
+
import { CardDimensionValue } from '../types';
|
|
2
2
|
export declare type BreakpointSizeValue = 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
3
|
export declare const breakpointSize: (width: CardDimensionValue, sizes?: any) => BreakpointSizeValue;
|
|
4
4
|
export interface BreakpointProps {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import { CardActionButtonOwnProps } from './styles';
|
|
4
|
-
export declare const CardActionButton: (
|
|
3
|
+
export declare const CardActionButton: import("react").ForwardRefExoticComponent<CardActionButtonOwnProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { CardAction } from '../../actions';
|
|
2
|
+
import { CardAction } from '../../card/actions';
|
|
3
3
|
import { CardActionIconButtonVariant } from './styles';
|
|
4
4
|
export declare type CardActionsDropdownMenuProps = {
|
|
5
5
|
readonly actions: CardAction[];
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { CardAppearance,
|
|
2
|
-
export interface CardDimensions {
|
|
3
|
-
width?: CardDimensionValue;
|
|
4
|
-
height?: CardDimensionValue;
|
|
5
|
-
}
|
|
1
|
+
import { CardAppearance, CardDimensions } from '../types';
|
|
6
2
|
export declare const defaultSmallCardDimensions: {
|
|
7
3
|
width: string;
|
|
8
4
|
height: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CardDimensionValue, CardDimensions } from '../';
|
|
1
|
+
import { CardDimensionValue, CardDimensions } from '../types';
|
|
2
2
|
export declare const canCompareDimension: (current?: CardDimensionValue | undefined, next?: CardDimensionValue | undefined) => boolean;
|
|
3
3
|
export declare const isBigger: (current?: CardDimensions | undefined, next?: CardDimensions | undefined) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardDimensions } from '
|
|
1
|
+
import { CardDimensions } from '../types';
|
|
2
2
|
import { ElementDimension } from './getElementDimension';
|
|
3
3
|
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
4
4
|
export declare type getDataURIDimensionOptions = {
|
|
@@ -12,4 +12,3 @@ export { isValidPercentageUnit } from './isValidPercentageUnit';
|
|
|
12
12
|
export { getElementDimension } from './getElementDimension';
|
|
13
13
|
export type { ElementDimension } from './getElementDimension';
|
|
14
14
|
export { containsPixelUnit } from './containsPixelUnit';
|
|
15
|
-
export type { CardDimensions } from './cardDimensions';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CardDimensions } from '
|
|
1
|
+
import { CardDimensions } from '../../types';
|
|
2
2
|
export declare const getDimensionsWithDefault: (dimensions?: CardDimensions) => CardDimensions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WrapperProps } from './types';
|
|
2
|
-
export declare const blinkLoadingAnimation: import("@emotion/
|
|
2
|
+
export declare const blinkLoadingAnimation: import("@emotion/serialize").Keyframes;
|
|
3
3
|
export declare const wrapperStyles: ({ dimensions, theme }: WrapperProps) => import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const animatedWrapperStyles: (props: WrapperProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CardDimensions } from '../../
|
|
2
|
+
import { CardDimensions } from '../../types';
|
|
3
3
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
4
4
|
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
5
5
|
export interface StaticCardProps {
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MediaItemType, MediaType } from '@atlaskit/media-client';
|
|
2
|
-
import { CardStatus } from '
|
|
2
|
+
import { CardStatus } from '../types';
|
|
3
3
|
export declare const shouldDisplayImageThumbnail: (cardStatus: CardStatus, mediaItemType: MediaItemType, dataURI?: string | undefined, mediaType?: MediaType | undefined, mimeType?: string | undefined) => boolean;
|
|
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
|
package/dist/types-ts4.0/{files → card}/cardImageView/cardOverlay/cardOverlayComponents.d.ts
RENAMED
|
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;
|