@kaitify/react 0.0.1-beta.4 → 0.0.1-beta.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaitify/react",
3
- "version": "0.0.1-beta.4",
3
+ "version": "0.0.1-beta.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": "so-better",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@iconify/react": "^6.0.2",
20
- "@kaitify/core": "0.0.2-beta.9",
20
+ "@kaitify/core": "0.0.2-beta.10",
21
21
  "@popperjs/core": "^2.11.8",
22
22
  "classnames": "^2.5.1",
23
23
  "dap-util": "^1.6.0",
@@ -150,6 +150,10 @@ export type WrapperPropsType = {
150
150
  * 编辑器updateView执行时,通过比对新旧节点数组获取需要格式化的节点,在这些节点被格式化前,触发此方法,回调参数即当前需要被格式化的节点,该方法返回一个节点,返回的节点将会被格式化,如果你不需要任何特殊处理,返回入参提供的节点即可
151
151
  */
152
152
  onBeforePatchNodeToFormat?: EditorConfigureOptionType['onBeforePatchNodeToFormat']
153
+ /**
154
+ * 编辑器进行光标纠正时触发,在这里可以修改虚拟光标的位置
155
+ */
156
+ onRedressSelection?: EditorConfigureOptionType['onRedressSelection']
153
157
  /**
154
158
  * 编辑器光标发生变化触发的事件
155
159
  */
@@ -99,6 +99,7 @@ const Wrapper = forwardRef<WrapperRefType, WrapperPropsType>((props, ref) => {
99
99
  onPasteFile: props.onPasteFile,
100
100
  onDetachMentBlockFromParent: props.onDetachMentBlockFromParent,
101
101
  onBeforePatchNodeToFormat: props.onBeforePatchNodeToFormat,
102
+ onRedressSelection: props.onRedressSelection,
102
103
  onInsertParagraph: props.onInsertParagraph,
103
104
  onDeleteComplete: props.onDeleteComplete,
104
105
  onKeydown: props.onKeydown,