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

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.
@@ -0,0 +1 @@
1
+ export declare const ATTACHMENT_NODE_TAG = "kaitify-attachment";
@@ -1,22 +1,31 @@
1
1
  import { KNode } from '../../model';
2
2
  import { Extension } from '../Extension';
3
+ /**
4
+ * 设置附件的参数类型
5
+ */
3
6
  export type SetAttachmentOptionType = {
4
7
  url: string;
5
8
  text: string;
6
9
  icon?: string;
7
10
  };
11
+ /**
12
+ * 更新附件的参数类型
13
+ */
8
14
  export type UpdateAttachmentOptionType = {
9
15
  url?: string;
10
16
  text?: string;
11
17
  icon?: string;
12
18
  };
19
+ /**
20
+ * 附件扩展入参类型
21
+ */
13
22
  export type AttachmentExtensionPropsType = {
14
23
  icon: string;
15
24
  };
16
25
  declare module '../../model' {
17
26
  interface EditorCommandsType {
18
27
  /**
19
- * 获取光标所在的附件节点,如果光标不在一个附件节点内,返回null
28
+ * 获取光标所在的附件节点
20
29
  */
21
30
  getAttachment?: () => KNode | null;
22
31
  /**
@@ -0,0 +1 @@
1
+ export declare const HORIZONTAL_NODE_TAG = "kaitify-horizontal";
@@ -1,8 +1,17 @@
1
+ import { KNode } from '../../model';
1
2
  import { Extension } from '../Extension';
2
3
  declare module '../../model' {
3
4
  interface EditorCommandsType {
4
5
  /**
5
- * 设置分隔线
6
+ * 获取光标所在的水平线节点
7
+ */
8
+ getHorizontal?: () => KNode | null;
9
+ /**
10
+ * 判断光标范围内是否有水平线节点
11
+ */
12
+ hasHorizontal?: () => boolean;
13
+ /**
14
+ * 设置水平线
6
15
  */
7
16
  setHorizontal?: () => Promise<void>;
8
17
  }
@@ -0,0 +1 @@
1
+ export declare const IMAGE_NODE_TAG = "kaitify-image";
@@ -0,0 +1 @@
1
+ export declare const MATH_NODE_TAG = "kaitify-math";
@@ -0,0 +1 @@
1
+ export declare const TASK_CHECKBOX_NODE_TAG = "kaitify-task-checkbox";
@@ -0,0 +1 @@
1
+ export declare const VIDEO_NODE_TAG = "kaitify-video";