@divkitframework/visual-editor 0.4.5 → 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 +16 -1
- package/dist/divkit-editor.js +6 -1
- package/dist/editor.js +1 -1
- package/package.json +4 -4
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,8 +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[];
|
|
132
|
+
directionSelector?: boolean;
|
|
133
|
+
direction?: 'ltr' | 'rtl';
|
|
134
|
+
perThemeProps?: boolean;
|
|
120
135
|
}
|
|
121
136
|
interface DivProEditorInstance {
|
|
122
137
|
getValue(): string;
|
|
@@ -133,4 +148,4 @@ declare const DivProEditor: {
|
|
|
133
148
|
init(opts: DivProEditorOptions): DivProEditorInstance;
|
|
134
149
|
};
|
|
135
150
|
|
|
136
|
-
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 };
|