UNPKG

@sanity/asset-utils

Version:

<!-- This file is AUTO-GENERATED, edit _README.template.md or tweak scripts/generateDocs.ts -->

113 lines (112 loc) 2.28 kB
export { isAssetId, isAssetIdStub, isAssetObjectStub, isAssetPathStub, isAssetUrlStub, isFileAssetId, isImageAssetId, isInProgressUpload, isReference, isSanityFileAsset, isSanityImageAsset, } from './asserters.js' export {isUnresolvableError, UnresolvableError} from './errors.js' export { DEFAULT_CROP, DEFAULT_HOTSPOT, getDefaultCrop, getDefaultHotspot, isDefaultCrop, isDefaultHotspot, } from './hotspotCrop.js' export { getAssetUrlType, parseAssetFilename, parseAssetId, parseAssetUrl, parseFileAssetId, parseFileAssetUrl, parseImageAssetId, parseImageAssetUrl, } from './parse.js' export { buildFilePath, buildFileUrl, buildImagePath, buildImageUrl, getUrlFilename, getUrlPath, getVanityStub, isValidFilename, tryGetAssetPath, tryGetUrlFilename, tryGetUrlPath, } from './paths.js' export { getAssetDocumentId, getExtension, getFile, getFileAsset, getIdFromString, getImage, getImageAsset, getImageDimensions, getProject, isAssetFilename, isFileAssetFilename, isFileSource, isImageAssetFilename, isImageSource, tryGetAssetDocumentId, tryGetExtension, tryGetFile, tryGetFileAsset, tryGetIdFromString, tryGetImage, tryGetImageAsset, tryGetImageDimensions, tryGetProject, } from './resolve.js' export type { AbsoluteRectangle, FileUrlBuilderOptions, ImageUrlBuilderOptions, PathBuilderOptions, Rectangle, ResolvedSanityFile, ResolvedSanityImage, SafeFunction, SanityAsset, SanityAssetIdParts, SanityAssetIdStub, SanityAssetObjectStub, SanityAssetPathStub, SanityAssetSource, SanityAssetUrlParts, SanityAssetUrlStub, SanityFileAsset, SanityFileAssetIdParts, SanityFileObjectStub, SanityFileSource, SanityFileUploadStub, SanityFileUrlParts, SanityImageAsset, SanityImageAssetIdParts, SanityImageCrop, SanityImageDimensions, SanityImageFitResult, SanityImageHotspot, SanityImageMetadata, SanityImageObjectStub, SanityImagePalette, SanityImageSize, SanityImageSource, SanityImageSwatch, SanityImageUploadStub, SanityImageUrlParts, SanityProjectDetails, SanityReference, SanitySwatchName, } from './types.js' export {isSanityAssetUrl, isSanityFileUrl, isSanityImageUrl} from './urls.js'