@divkitframework/visual-editor 0.4.6 → 0.4.7
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/dist/divkit-editor.css +1 -1
- package/dist/divkit-editor.d.ts +14 -1
- package/dist/divkit-editor.js +2 -2
- package/package.json +1 -1
package/dist/divkit-editor.d.ts
CHANGED
|
@@ -96,6 +96,17 @@ interface Source {
|
|
|
96
96
|
url: string;
|
|
97
97
|
example: object;
|
|
98
98
|
}
|
|
99
|
+
interface FileLimit {
|
|
100
|
+
warn?: number;
|
|
101
|
+
error?: number;
|
|
102
|
+
}
|
|
103
|
+
interface FileLimits {
|
|
104
|
+
preview?: FileLimit;
|
|
105
|
+
image?: FileLimit;
|
|
106
|
+
lottie?: FileLimit;
|
|
107
|
+
video?: FileLimit;
|
|
108
|
+
upload?: FileLimit;
|
|
109
|
+
}
|
|
99
110
|
interface DivProEditorOptions {
|
|
100
111
|
renderTo: HTMLElement;
|
|
101
112
|
shadowRoot?: ShadowRoot;
|
|
@@ -115,10 +126,12 @@ interface DivProEditorOptions {
|
|
|
115
126
|
previewErrorFileLimit?: number;
|
|
116
127
|
warnFileLimit?: number;
|
|
117
128
|
errorFileLimit?: number;
|
|
129
|
+
fileLimits?: FileLimits;
|
|
118
130
|
rootConfigurable?: boolean;
|
|
119
131
|
customFontFaces?: FontFaceDesc[];
|
|
120
132
|
directionSelector?: boolean;
|
|
121
133
|
direction?: 'ltr' | 'rtl';
|
|
134
|
+
perThemeProps?: boolean;
|
|
122
135
|
}
|
|
123
136
|
interface DivProEditorInstance {
|
|
124
137
|
getValue(): string;
|
|
@@ -135,4 +148,4 @@ declare const DivProEditor: {
|
|
|
135
148
|
init(opts: DivProEditorOptions): DivProEditorInstance;
|
|
136
149
|
};
|
|
137
150
|
|
|
138
|
-
export { type ActionArg, type ActionArgBase, type ActionArgString, type ActionDesc, type Card, type CardLocale, DivProEditor, type DivProEditorApi, type DivProEditorInstance, type DivProEditorOptions, type EditorInstance, type EditorOptions, type FontFaceDesc, type GetTranslationKey, type GetTranslationSuggest, type Layout, type LayoutColumn, type LayoutItem, type Locale, type Meta, type Source, type TankerMeta, type Theme, type TranslationVariant, addTemplatesSuffix, convertDictToPalette, convertPaletteToDict, removeTemplatesSuffix };
|
|
151
|
+
export { type ActionArg, type ActionArgBase, type ActionArgString, type ActionDesc, type Card, type CardLocale, DivProEditor, type DivProEditorApi, type DivProEditorInstance, type DivProEditorOptions, type EditorInstance, type EditorOptions, type FileLimit, type FileLimits, type FontFaceDesc, type GetTranslationKey, type GetTranslationSuggest, type Layout, type LayoutColumn, type LayoutItem, type Locale, type Meta, type Source, type TankerMeta, type Theme, type TranslationVariant, addTemplatesSuffix, convertDictToPalette, convertPaletteToDict, removeTemplatesSuffix };
|