unlayer-types 1.327.0 → 1.330.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 +38 -0
  2. package/package.json +1 -1
package/embed.d.ts CHANGED
@@ -88,6 +88,8 @@ declare module "editor/components/editors/types" {
88
88
  isViewer: boolean;
89
89
  variant: Variant;
90
90
  type?: string;
91
+ columnIndex?: number;
92
+ rowCells?: number[];
91
93
  }
92
94
  ];
93
95
  export interface Head {
@@ -1764,6 +1766,7 @@ declare module "engine/config/features" {
1764
1766
  collaboration?: boolean;
1765
1767
  preview?: boolean | {
1766
1768
  enabled?: boolean;
1769
+ cleanup?: boolean;
1767
1770
  deviceResolutions?: {
1768
1771
  showDefaultResolutions?: boolean;
1769
1772
  customResolutions?: {
@@ -2360,6 +2363,7 @@ declare module "editor/design-system/components/Dropdown" {
2360
2363
  icon?: IconDefinition;
2361
2364
  label: string;
2362
2365
  value: any;
2366
+ key?: string;
2363
2367
  tooltip?: string;
2364
2368
  tooltipPlacement?: TooltipProps['placement'];
2365
2369
  meta?: Record<string, unknown>;
@@ -2875,6 +2879,40 @@ declare module "editor/helpers/placeholders" {
2875
2879
  type ToolType = 'image' | 'carousel';
2876
2880
  export function getPlaceholderUrl(type: ToolType): string;
2877
2881
  }
2882
+ declare module "engine/utils/imageRendering" {
2883
+ export function isFixedContentWidth(bodyValues: any): boolean;
2884
+ export function getAvailableWidth(values: any, { columnIndex, rowCells, bodyValues }: {
2885
+ columnIndex: any;
2886
+ rowCells: any;
2887
+ bodyValues: any;
2888
+ }): number;
2889
+ export function getImageWidthAndMaxWidth(widthValue: {
2890
+ autoWidth?: boolean;
2891
+ maxWidth?: number | string;
2892
+ width?: number;
2893
+ }, availableWidth?: number): {
2894
+ width: string;
2895
+ maxWidth: string;
2896
+ };
2897
+ export function getImageProperties(widthValue: {
2898
+ autoWidth?: boolean;
2899
+ maxWidth?: number | string;
2900
+ width?: number;
2901
+ }, availableWidth?: number, optionName?: string): {
2902
+ imageCSSClassName: string;
2903
+ imageStyleObj: {
2904
+ width: string;
2905
+ maxWidth: string;
2906
+ };
2907
+ imageCSSStyle: string;
2908
+ };
2909
+ export function getDynamicImageUrl(src: string | undefined, params: {
2910
+ allowUpscale?: boolean;
2911
+ dynamic?: boolean;
2912
+ resizeWidth: number | string | undefined;
2913
+ originalWidth: number | string | undefined;
2914
+ }): string;
2915
+ }
2878
2916
  declare module "editor/components/editors/pixie/pixie.umd" {
2879
2917
  const _exports: {
2880
2918
  new (t: any): {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.327.0",
3
+ "version": "1.330.0",
4
4
  "license": "MIT"
5
5
  }