@kaitify/core 0.0.2-beta.17 → 0.0.2-beta.18

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.
@@ -32,7 +32,7 @@ export type ExtensionCreateOptionType = {
32
32
  */
33
33
  onInsertParagraph?: (this: Editor, node: KNode) => void;
34
34
  /**
35
- * 完成删除回调
35
+ * 完成删除回调,此时还没有对起点和终点进行合并操作,也没有进行判空操作
36
36
  */
37
37
  onDeleteComplete?: (this: Editor) => void;
38
38
  /**
@@ -121,7 +121,7 @@ export declare class Extension {
121
121
  */
122
122
  onInsertParagraph?: (this: Editor, node: KNode) => void;
123
123
  /**
124
- * 完成删除回调
124
+ * 完成删除回调,此时还没有对起点和终点进行合并操作,也没有进行判空操作
125
125
  */
126
126
  onDeleteComplete?: (this: Editor) => void;
127
127
  /**
@@ -29,5 +29,11 @@ declare module '../../model' {
29
29
  updateCodeBlockLanguage?: (language: HljsLanguageType) => Promise<void>;
30
30
  }
31
31
  }
32
- export declare const CodeBlockExtension: () => Extension;
32
+ export type CodeBlockExtensionPropsType = {
33
+ /**
34
+ * 复制代码的具体实现
35
+ */
36
+ handleCopy?: (code: string) => void;
37
+ };
38
+ export declare const CodeBlockExtension: (props?: CodeBlockExtensionPropsType) => Extension;
33
39
  export * from './hljs';