@divkitframework/visual-editor 0.4.7 → 0.4.9
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 +6 -1
- package/dist/divkit-editor.js +1 -6
- package/dist/editor.js +1 -1
- package/dist/lib.js +73282 -0
- package/package.json +14 -6
package/dist/divkit-editor.d.ts
CHANGED
|
@@ -133,9 +133,14 @@ interface DivProEditorOptions {
|
|
|
133
133
|
direction?: 'ltr' | 'rtl';
|
|
134
134
|
perThemeProps?: boolean;
|
|
135
135
|
}
|
|
136
|
+
interface EditorError {
|
|
137
|
+
message: string;
|
|
138
|
+
level: 'error' | 'warn';
|
|
139
|
+
}
|
|
136
140
|
interface DivProEditorInstance {
|
|
137
141
|
getValue(): string;
|
|
138
142
|
getCard(): Card;
|
|
143
|
+
getErrors(): EditorError[];
|
|
139
144
|
setTheme(theme: Theme): void;
|
|
140
145
|
setLayout(layout: Layout): void;
|
|
141
146
|
setLocale(locale: Locale): void;
|
|
@@ -148,4 +153,4 @@ declare const DivProEditor: {
|
|
|
148
153
|
init(opts: DivProEditorOptions): DivProEditorInstance;
|
|
149
154
|
};
|
|
150
155
|
|
|
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 };
|
|
156
|
+
export { type ActionArg, type ActionArgBase, type ActionArgString, type ActionDesc, type Card, type CardLocale, DivProEditor, type DivProEditorApi, type DivProEditorInstance, type DivProEditorOptions, type EditorError, 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 };
|