md-editor-v3 4.3.0-beta.4 → 4.3.0-beta.6

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.
@@ -1,6 +1,6 @@
1
1
  import { Extension } from '@codemirror/state';
2
2
  import { EditorView } from '@codemirror/view';
3
- import { FocusOption } from '../../../../MdEditor/type';
3
+ import { FocusOption } from '../../../type';
4
4
  export default class CodeMirrorUt {
5
5
  view: EditorView;
6
6
  private toggleTabSize;
@@ -31,12 +31,12 @@ export default class CodeMirrorUt {
31
31
  * @param text 待替换内容
32
32
  * @param options 替换后是否选中
33
33
  */
34
- replaceSelectedText(text: string, options?: {
34
+ replaceSelectedText(text: string, options: {
35
35
  select: boolean;
36
36
  deviationStart: number;
37
37
  deviationEnd: number;
38
38
  replaceAll: boolean;
39
- }): void;
39
+ } | undefined, editorId: string): void;
40
40
  constructor(view: EditorView);
41
41
  /**
42
42
  * 设置tabSize
@@ -249,8 +249,9 @@ export type Config = (options: ConfigOption) => void;
249
249
  * 编辑器操作潜在的错误
250
250
  */
251
251
  export interface InnerError {
252
- name: string;
252
+ name: 'Cropper' | 'fullscreen' | 'prettier' | 'overlength';
253
253
  message: string;
254
+ data: any;
254
255
  }
255
256
  export interface CodeCss {
256
257
  [key: string]: {