unlayer-types 1.367.0 → 1.372.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 +13 -4
  2. package/package.json +1 -1
package/embed.d.ts CHANGED
@@ -1219,9 +1219,13 @@ declare module "packages/editor/src/editor/themes/types" {
1219
1219
  };
1220
1220
  /** @deprecated */
1221
1221
  canvas: {
1222
- backgroundColor: string;
1222
+ backgroundColor: ColorValue;
1223
1223
  borderColor: string;
1224
1224
  backgroundCheckerColor: string;
1225
+ ':hover'?: {
1226
+ backgroundColor?: ColorValue;
1227
+ aiBackgroundColor?: ColorValue;
1228
+ };
1225
1229
  };
1226
1230
  /** @deprecated */
1227
1231
  preview: {
@@ -1343,6 +1347,7 @@ declare module "packages/editor/src/state/types/types" {
1343
1347
  import { z } from 'zod';
1344
1348
  import type { AICopilotDataType } from '@libs/ai/types/types';
1345
1349
  import { DisplayConditionZodSchema } from '@libs/schemas/common/schemas';
1350
+ import { ContentValues } from '@libs/schemas/options/containers/contents';
1346
1351
  import { State as Design } from '../reducer/design';
1347
1352
  import { CollaborationThread } from "packages/editor/src/editor/components/editors/types";
1348
1353
  import { RootState } from "packages/editor/src/state/types/RootState";
@@ -1770,7 +1775,7 @@ declare module "packages/editor/src/state/types/types" {
1770
1775
  };
1771
1776
  }) => string;
1772
1777
  export type ContentContainerExporters = Partial<Record<ExporterName, ContentContainerExporter>>;
1773
- export type ItemExporter = (renderValues: Record<string, unknown>, index: number, // @deprecated use last param instead
1778
+ export type ItemExporter<TValues extends Record<string, unknown>> = (renderValues: TValues, index: number, // @deprecated use last param instead
1774
1779
  columnIndex: number, // @deprecated use last param instead
1775
1780
  rowCells: number[], // @deprecated use last param instead
1776
1781
  bodyValues: RootState['design']['bodies'][string]['values'], // @deprecated use last param instead
@@ -1791,7 +1796,11 @@ declare module "packages/editor/src/state/types/types" {
1791
1796
  mergeTags: MergeTagsValues;
1792
1797
  };
1793
1798
  }) => string;
1794
- export type ItemExporters = Partial<Record<ExporterName, ItemExporter>>;
1799
+ export type ItemExporters<TValues extends Record<string, unknown>> = Partial<Record<ExporterName, ItemExporter<TValues>>>;
1800
+ export type ContentViewerProps<TValues extends Record<string, unknown>> = {
1801
+ [key: string]: any;
1802
+ values: ContentValues & TValues;
1803
+ };
1795
1804
  }
1796
1805
  declare module "packages/editor/src/engine/config/features" {
1797
1806
  import { Resolution, Language } from "packages/editor/src/state/types/types";
@@ -1988,7 +1997,7 @@ declare module "packages/editor/src/engine/config/safeHtml" {
1988
1997
  force?: boolean;
1989
1998
  }): string;
1990
1999
  export const toSafeHtmlInternal: typeof _toSafeHtmlInternal & import("lodash").MemoizedFunction;
1991
- function _toSafeHtml(html: string, { allowOnClick, force, domPurifyOptions, }?: {
2000
+ function _toSafeHtml(html: string | undefined, { allowOnClick, force, domPurifyOptions, }?: {
1992
2001
  allowOnClick?: boolean;
1993
2002
  force?: boolean;
1994
2003
  domPurifyOptions?: SafeHtmlOptions['domPurifyOptions'];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.367.0",
3
+ "version": "1.372.0",
4
4
  "license": "MIT"
5
5
  }