@prismicio/editor-fields 0.4.53 → 0.4.56

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.
@@ -1,7 +1,7 @@
1
1
  import type { OnboardingFramework, OnboardingStep } from "../service/onboarding";
2
2
  type Context = {
3
3
  framework?: OnboardingFramework;
4
- starter?: string | null;
4
+ starterId?: string | null;
5
5
  repositoryName?: string;
6
6
  projectName?: string;
7
7
  };
@@ -34,8 +34,12 @@ export declare function buildImageUrl(originUrl: string, rect: {
34
34
  width: number;
35
35
  height: number;
36
36
  }, outputWidth: number, outputHeight: number, hasConstraints: boolean): string;
37
- export declare function getPreviewImage(fromUrl: string): string;
37
+ export declare function getPreviewImage(fromUrl: string, options?: {
38
+ width?: number;
39
+ height?: number;
40
+ }): string;
38
41
  export declare function getSearchTileImage(fromUrl: string): string;
42
+ export declare function getCarouselImage(fromUrl: string): string;
39
43
  export declare function getCarouselItemSource(view: ImageContentView | undefined): string | undefined;
40
44
  export declare function replaceImage(thumbnailName: string, field: Image, content: ImageContent | undefined, extImage: MediaAssetOrExternalImage): ImageContent;
41
45
  export declare function isMediaAsset(image: MediaAssetOrExternalImage): image is MediaAsset;