@kaitify/react 0.0.1-beta.6 → 0.0.1-beta.7

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/docs/changelog.md CHANGED
@@ -5,6 +5,14 @@ title: 更新日志
5
5
 
6
6
  # 更新日志
7
7
 
8
+ ## v0.0.1-beta.7 <Badge type="tip" text='2026.03.04' />
9
+
10
+ - 更新 `@kaitify/core` 的依赖版本,修复一些问题
11
+
12
+ ## v0.0.1-beta.6 <Badge type="tip" text='2026.03.03' />
13
+
14
+ - 更新 `@kaitify/core` 的依赖版本,修复一些问题
15
+
8
16
  ## v0.0.1-beta.5 <Badge type="tip" text='2026.02.09' />
9
17
 
10
18
  - 更新 `@kaitify/core` 的依赖版本
@@ -6,7 +6,7 @@ title: 安装
6
6
 
7
7
  ## 下载 kaitify-react 本地到使用
8
8
 
9
- - 下载地址:[kaitify-react](https://registry.npmmirror.com/@kaitify/react/download/@kaitify/react-0.0.1-beta.5.tgz)
9
+ - 下载地址:[kaitify-react](https://registry.npmmirror.com/@kaitify/react/download/@kaitify/react-0.0.1-beta.7.tgz)
10
10
  - 下载完成后最终解压得到一个 package 文件夹,进入 package 文件夹后,将 package 目录下的整个 lib 目录拷贝到你的项目下
11
11
  - 在 html 页面中引入 js
12
12
 
@@ -28,7 +28,7 @@ title: 安装
28
28
 
29
29
  ```html
30
30
  <!-- 引入固定版本的kaitify -->
31
- <script src="https://unpkg.com/@kaitify/react@0.0.1-beta.5/lib/kaitify-react.umd.js"></script>
31
+ <script src="https://unpkg.com/@kaitify/react@0.0.1-beta.7/lib/kaitify-react.umd.js"></script>
32
32
  <!-- 始终引入最新的kaitify -->
33
33
  <script src="https://unpkg.com/@kaitify/react/lib/kaitify-react.umd.js"></script>
34
34
  ```
@@ -50,21 +50,21 @@ title: 安装
50
50
  npm install @kaitify/react
51
51
 
52
52
  # 安装指定版本
53
- npm install @kaitify/react@0.0.1-beta.5
53
+ npm install @kaitify/react@0.0.1-beta.7
54
54
  ```
55
55
 
56
56
  ```bash [yarn]
57
57
  yarn install @kaitify/react
58
58
 
59
59
  # 安装指定版本
60
- yarn install @kaitify/react@0.0.1-beta.5
60
+ yarn install @kaitify/react@0.0.1-beta.7
61
61
  ```
62
62
 
63
63
  ```bash [pnpm]
64
64
  pnpm install @kaitify/react
65
65
 
66
66
  # 安装指定版本
67
- pnpm install @kaitify/react@0.0.1-beta.5
67
+ pnpm install @kaitify/react@0.0.1-beta.7
68
68
  ```
69
69
 
70
70
  :::
@@ -35928,6 +35928,11 @@ const TableExtension = () => Extension.create({
35928
35928
  if (isHideCell(node)) {
35929
35929
  node.void = true;
35930
35930
  }
35931
+ if (!node.hasChildren()) {
35932
+ const placeholderNode = KNode.createPlaceholder();
35933
+ node.children = [placeholderNode];
35934
+ placeholderNode.parent = node;
35935
+ }
35931
35936
  }
35932
35937
  if (node.isMatch({ tag: "colgroup" })) {
35933
35938
  node.type = "block";
@@ -37078,9 +37083,7 @@ class Editor {
37078
37083
  const tag = dom.nodeName.toLocaleLowerCase();
37079
37084
  const namespace = dom.namespaceURI;
37080
37085
  if (this.emptyRenderTags.includes(tag)) {
37081
- return KNode.create({
37082
- type: "text"
37083
- });
37086
+ return KNode.createZeroWidthText();
37084
37087
  }
37085
37088
  if (tag == this.textRenderTag && dom.childNodes.length && Array.from(dom.childNodes).every((childNode) => childNode.nodeType == 3)) {
37086
37089
  return KNode.create({
@@ -37766,7 +37769,7 @@ class Editor {
37766
37769
  } else {
37767
37770
  this.delete();
37768
37771
  }
37769
- this.insertNode(node);
37772
+ this.insertNode(node, cover);
37770
37773
  return;
37771
37774
  }
37772
37775
  const offset2 = this.selection.start.offset;