unlayer-types 1.231.0 → 1.233.0

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.
Files changed (2) hide show
  1. package/embed.d.ts +7 -4
  2. package/package.json +1 -1
package/embed.d.ts CHANGED
@@ -2696,11 +2696,14 @@ declare module "editor/components/editors/AutoWidthEditor" {
2696
2696
  }
2697
2697
  export const AutoWidthEditorBase: (props: AutoWidthEditorBaseProps) => React.JSX.Element;
2698
2698
  }
2699
- declare module "engine/tools/content/carousel" {
2700
- export const DEFAULT_CAROUSEL_PLACEHOLDER = "https://cdn.tools.unlayer.com/carousel/placeholder.png";
2699
+ declare module "engine/utils/isUrl" {
2700
+ export function isUrl(value: any): boolean;
2701
2701
  }
2702
- declare module "engine/tools/content/image" {
2702
+ declare module "editor/helpers/placeholders" {
2703
2703
  export const DEFAULT_IMAGE_PLACEHOLDER = "https://cdn.tools.unlayer.com/image/placeholder.png";
2704
+ export const DEFAULT_CAROUSEL_PLACEHOLDER = "https://cdn.tools.unlayer.com/carousel/placeholder.png";
2705
+ type ToolType = 'image' | 'carousel';
2706
+ export function getPlaceholderUrl(type: ToolType): string;
2704
2707
  }
2705
2708
  declare module "editor/components/editors/pixie/pixie.umd" {
2706
2709
  const _exports: {
@@ -2893,7 +2896,7 @@ declare module "editor/components/editors/ImageEditor" {
2893
2896
  widgetParams: any;
2894
2897
  };
2895
2898
  export type ImageEditorProps = EditorPropsFromZodSchemas<typeof zodSchemas>;
2896
- export function isDefaultImage(imageUrl: string | undefined): boolean;
2899
+ export function isDefaultImage(imageUrl: string | undefined, widgetParamsUrl?: string): boolean;
2897
2900
  }
2898
2901
  declare module "editor/components/common/Dropzone" {
2899
2902
  import React from 'react';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.231.0",
3
+ "version": "1.233.0",
4
4
  "license": "MIT"
5
5
  }