unlayer-types 1.213.0 → 1.216.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.
- package/embed.d.ts +9 -7
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -31,7 +31,8 @@ declare module "editor/components/editors/types" {
|
|
31
31
|
/** @deprecated Use widgetParams instead */
|
32
32
|
data?: WidgetParams;
|
33
33
|
disabled?: boolean;
|
34
|
-
|
34
|
+
isLocked?: boolean;
|
35
|
+
lockReason?: 'styleguide' | 'admin' | undefined;
|
35
36
|
widgetParams?: WidgetParams;
|
36
37
|
deviceName: Device;
|
37
38
|
displayMode: DisplayMode;
|
@@ -1351,9 +1352,9 @@ declare module "state/types/types" {
|
|
1351
1352
|
columns: Array<{
|
1352
1353
|
id: string;
|
1353
1354
|
contents: Array<Design['contents']['0']>;
|
1354
|
-
values:
|
1355
|
+
values: Record<string, any>;
|
1355
1356
|
}>;
|
1356
|
-
values:
|
1357
|
+
values: Record<string, any>;
|
1357
1358
|
}>;
|
1358
1359
|
export type JSONTemplate = {
|
1359
1360
|
counters: Record<string, number>;
|
@@ -2503,7 +2504,8 @@ declare module "editor/components/editors/common/WidgetLabel" {
|
|
2503
2504
|
disabled?: boolean;
|
2504
2505
|
getValue?: (deviceName?: Device | undefined) => any;
|
2505
2506
|
infoTooltip?: string;
|
2506
|
-
|
2507
|
+
isLocked?: boolean;
|
2508
|
+
lockReason?: 'styleguide' | 'admin' | undefined;
|
2507
2509
|
location?: Location;
|
2508
2510
|
name?: string;
|
2509
2511
|
onReset?: (data: {
|
@@ -2550,7 +2552,7 @@ declare module "editor/components/editors/AutoWidthEditor" {
|
|
2550
2552
|
widgetParams: any;
|
2551
2553
|
};
|
2552
2554
|
export type AutoWidthEditorProps = EditorPropsFromZodSchemas<typeof zodSchemas>;
|
2553
|
-
export interface AutoWidthEditorBaseProps extends Pick<AutoWidthEditorProps, 'value' | 'defaultValue' | 'disabled' | '
|
2555
|
+
export interface AutoWidthEditorBaseProps extends Pick<AutoWidthEditorProps, 'value' | 'defaultValue' | 'disabled' | 'isLocked' | 'lockReason'> {
|
2554
2556
|
defaultWidthIsCalculated?: boolean;
|
2555
2557
|
deviceName?: Device;
|
2556
2558
|
widgetLabelProps: Omit<WidgetLabelProps, 'defaultValue' | 'onReset'>;
|
@@ -2897,7 +2899,7 @@ declare module "embed/helpers" {
|
|
2897
2899
|
declare module "embed/Editor" {
|
2898
2900
|
import { Frame } from "embed/Frame";
|
2899
2901
|
import { Config, ExportFromApiResult, ExportHtmlOptions, ExportHtmlResult, ExportPlainTextResult, ExportImageFromApiOptions, ExportLiveHtmlOptions, ExportPdfFromApiOptions, ExportPlainTextOptions, ExportZipFromApiOptions, SaveDesignOptions, ExportLiveHtmlResult } from "embed/Config";
|
2900
|
-
import { AppearanceConfig, Audit, DesignTagsConfig, Device, DisplayConditions, DisplayMode, JSONTemplate, Language, LinkTypes, LinkTypesSharedConfig, MergeTags, MergeTagsConfig, SpecialLink, StyleGuideConfig, Tabs, Translations, User, Validator } from "state/types/types";
|
2902
|
+
import { AppearanceConfig, Audit, DesignMode, DesignTagsConfig, Device, DisplayConditions, DisplayMode, JSONTemplate, Language, LinkTypes, LinkTypesSharedConfig, MergeTags, MergeTagsConfig, SpecialLink, StyleGuideConfig, Tabs, Translations, User, Validator } from "state/types/types";
|
2901
2903
|
import { BodyValues } from "engine/options/bodies";
|
2902
2904
|
import { Locale, TextDirection } from "engine/config/intl";
|
2903
2905
|
import { DeepPartial } from "editor/components/editors/types";
|
@@ -2929,7 +2931,7 @@ declare module "embed/Editor" {
|
|
2929
2931
|
addEventListener(type: string, callback: Function): void;
|
2930
2932
|
removeEventListener(type: string): void;
|
2931
2933
|
setDesignId(id: string | null): void;
|
2932
|
-
setDesignMode(designMode:
|
2934
|
+
setDesignMode(designMode: DesignMode | null): void;
|
2933
2935
|
setDisplayMode(displayMode: DisplayMode): void;
|
2934
2936
|
loadProject(projectId: number): void;
|
2935
2937
|
loadUser(user: User): void;
|
package/package.json
CHANGED