unlayer-types 1.5.38 → 1.5.40

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 +6 -2
  2. package/package.json +1 -1
package/embed.d.ts CHANGED
@@ -518,7 +518,7 @@ declare module "embed/Config" {
518
518
  html: ExportHtmlResult;
519
519
  design: JSONTemplate;
520
520
  defaultErrors: Audit[];
521
- }) => Audit[];
521
+ }) => Audit[] | Promise<Audit[]>;
522
522
  tabs?: Tabs;
523
523
  }
524
524
  export interface SaveDesignOptions {
@@ -596,8 +596,9 @@ declare module "embed/Config" {
596
596
  }
597
597
  }
598
598
  declare module "engine/utils/findDeep" {
599
- export function findDeep<T = any>(item: Record<string, T> | Array<T> | T, eq: ((item: T) => boolean) | unknown, { _path }?: {
599
+ export function findDeep<T = any>(item: Record<string, T> | Array<T> | T, eq: ((item: T) => boolean) | unknown, { _path, _visited }?: {
600
600
  _path?: string[];
601
+ _visited?: WeakMap<object, any>;
601
602
  }): string[][];
602
603
  }
603
604
  declare module "embed/Frame" {
@@ -1388,6 +1389,9 @@ declare module "engine/utils/normalizeLinkTypes" {
1388
1389
  declare module "engine/utils/makeClassMethodsEnumerable" {
1389
1390
  export function makeClassMethodsEnumerable(instance: InstanceType<any>, ignoreList?: string[]): void;
1390
1391
  }
1392
+ declare module "embed/helpers" {
1393
+ export function convertReturnFunctionToDoneCallback<Fn extends (...args: [any]) => any>(fn: Fn): (info: Parameters<Fn>[0], done: Function) => void;
1394
+ }
1391
1395
  declare module "embed/Editor" {
1392
1396
  import { Frame } from "embed/Frame";
1393
1397
  import { Config, ExportFromApiResult, ExportHtmlOptions, ExportHtmlResult, ExportPlainTextResult, ExportImageFromApiOptions, ExportLiveHtmlOptions, ExportPdfFromApiOptions, ExportPlainTextOptions, ExportZipFromApiOptions, SaveDesignOptions, ExportLiveHtmlResult } from "embed/Config";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.5.38",
3
+ "version": "1.5.40",
4
4
  "license": "MIT"
5
5
  }