@divkitframework/visual-editor 0.4.6 → 0.4.8

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.
@@ -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,14 +126,21 @@ 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;
135
+ }
136
+ interface EditorError {
137
+ message: string;
138
+ level: 'error' | 'warn';
122
139
  }
123
140
  interface DivProEditorInstance {
124
141
  getValue(): string;
125
142
  getCard(): Card;
143
+ getErrors(): EditorError[];
126
144
  setTheme(theme: Theme): void;
127
145
  setLayout(layout: Layout): void;
128
146
  setLocale(locale: Locale): void;
@@ -135,4 +153,4 @@ declare const DivProEditor: {
135
153
  init(opts: DivProEditorOptions): DivProEditorInstance;
136
154
  };
137
155
 
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 };
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 };