@alxgrn/prose-editor 0.0.43 → 0.0.45

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.
@@ -3,6 +3,7 @@ import { default as Editor } from './prose/ProseEditor';
3
3
  import { default as Viewer } from './prose/ProseViewer';
4
4
  import { default as DOM } from './prose/ProseViewerDom';
5
5
  import { htmlToProse } from './utils/convert';
6
+ import { setConfig, TConfig } from './utils/config';
6
7
  import { TEditorSaver, TImageUploader, TNotesSaver, TPublication, TPublicationFormat } from './types';
7
- export { Notes, Editor, Viewer, DOM, htmlToProse, };
8
- export type { TEditorSaver, TImageUploader, TNotesSaver, TPublication, TPublicationFormat, };
8
+ export { Notes, Editor, Viewer, DOM, htmlToProse, setConfig, };
9
+ export type { TEditorSaver, TImageUploader, TNotesSaver, TPublication, TPublicationFormat, TConfig, };
@@ -0,0 +1,13 @@
1
+ export declare let API_URL: string;
2
+ export declare let VIDEO_IMAGE: string;
3
+ export declare let EMPTY_IMAGE: string;
4
+ export declare let ERROR_IMAGE: string;
5
+ export declare let ERROR_EMBED: string;
6
+ export type TConfig = {
7
+ api_url?: string;
8
+ video_image?: string;
9
+ empty_image?: string;
10
+ error_image?: string;
11
+ error_embed?: string;
12
+ };
13
+ export declare const setConfig: (config: TConfig) => void;
@@ -2,5 +2,6 @@
2
2
  * Конвертация документа в формате HTML в формат Prose
3
3
  * @param html строка с документом в формате HTML
4
4
  * @param simple флаг того что надо использовать упрощенную схему документа
5
+ * @param fidattr название атрибута, в котором хранится идентификатор картинки на сервере
5
6
  */
6
- export declare const htmlToProse: (html?: string, simple?: boolean) => string;
7
+ export declare const htmlToProse: (html?: string, simple?: boolean, fidattr?: string) => string;