Skip to content

Commit

Permalink
fix(common): export the IMAGE_CONFIG token (#48051)
Browse files Browse the repository at this point in the history
The token introduced in 4fde292 was not exported publicly.

PR Close #48051
  • Loading branch information
cexbrayat authored and thePunderWoman committed Nov 14, 2022
1 parent a1b6610 commit edea15f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions goldens/public-api/common/index.md
Expand Up @@ -269,9 +269,17 @@ export class I18nSelectPipe implements PipeTransform {
static ɵpipe: i0.ɵɵPipeDeclaration<I18nSelectPipe, "i18nSelect", true>;
}

// @public
export const IMAGE_CONFIG: InjectionToken<ImageConfig>;

// @public
export const IMAGE_LOADER: InjectionToken<ImageLoader>;

// @public
export type ImageConfig = {
breakpoints?: number[];
};

// @public
export type ImageLoader = (config: ImageLoaderConfig) => string;

Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/common.ts
Expand Up @@ -27,4 +27,4 @@ export {PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPL
export {VERSION} from './version';
export {ViewportScroller, NullViewportScroller as ɵNullViewportScroller} from './viewport_scroller';
export {XhrFactory} from './xhr';
export {IMAGE_LOADER, ImageLoader, ImageLoaderConfig, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader} from './directives/ng_optimized_image';
export {IMAGE_CONFIG, ImageConfig, IMAGE_LOADER, ImageLoader, ImageLoaderConfig, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader} from './directives/ng_optimized_image';
2 changes: 1 addition & 1 deletion packages/common/src/directives/ng_optimized_image/index.ts
Expand Up @@ -12,5 +12,5 @@ export {provideCloudinaryLoader} from './image_loaders/cloudinary_loader';
export {IMAGE_LOADER, ImageLoader, ImageLoaderConfig} from './image_loaders/image_loader';
export {provideImageKitLoader} from './image_loaders/imagekit_loader';
export {provideImgixLoader} from './image_loaders/imgix_loader';
export {NgOptimizedImage} from './ng_optimized_image';
export {IMAGE_CONFIG, ImageConfig, NgOptimizedImage} from './ng_optimized_image';
export {PRECONNECT_CHECK_BLOCKLIST} from './preconnect_link_checker';

0 comments on commit edea15f

Please sign in to comment.