@kaitify/react 0.0.1-beta.5 → 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.
@@ -1,43 +1,43 @@
1
1
  {
2
- "hash": "3ddfcfdc",
2
+ "hash": "c3f8d881",
3
3
  "configHash": "1bbdb887",
4
- "lockfileHash": "8c1197f1",
5
- "browserHash": "f5dca06a",
4
+ "lockfileHash": "5d16e3cf",
5
+ "browserHash": "366a552c",
6
6
  "optimized": {
7
7
  "vue": {
8
8
  "src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
9
9
  "file": "vue.js",
10
- "fileHash": "ee6ed004",
10
+ "fileHash": "c84281de",
11
11
  "needsInterop": false
12
12
  },
13
13
  "vitepress > @vue/devtools-api": {
14
14
  "src": "../../../../node_modules/@vue/devtools-api/dist/index.js",
15
15
  "file": "vitepress___@vue_devtools-api.js",
16
- "fileHash": "19eaa9e7",
16
+ "fileHash": "8f151567",
17
17
  "needsInterop": false
18
18
  },
19
19
  "vitepress > @vueuse/core": {
20
20
  "src": "../../../../node_modules/@vueuse/core/index.mjs",
21
21
  "file": "vitepress___@vueuse_core.js",
22
- "fileHash": "5f7f7f92",
22
+ "fileHash": "552f5a37",
23
23
  "needsInterop": false
24
24
  },
25
25
  "vitepress > @vueuse/integrations/useFocusTrap": {
26
26
  "src": "../../../../node_modules/@vueuse/integrations/useFocusTrap.mjs",
27
27
  "file": "vitepress___@vueuse_integrations_useFocusTrap.js",
28
- "fileHash": "775dbe6c",
28
+ "fileHash": "8fa0439b",
29
29
  "needsInterop": false
30
30
  },
31
31
  "vitepress > mark.js/src/vanilla.js": {
32
32
  "src": "../../../../node_modules/mark.js/src/vanilla.js",
33
33
  "file": "vitepress___mark__js_src_vanilla__js.js",
34
- "fileHash": "c58f96eb",
34
+ "fileHash": "d9232ccd",
35
35
  "needsInterop": false
36
36
  },
37
37
  "vitepress > minisearch": {
38
38
  "src": "../../../../node_modules/minisearch/dist/es/index.js",
39
39
  "file": "vitepress___minisearch.js",
40
- "fileHash": "c41fbbc8",
40
+ "fileHash": "0b198074",
41
41
  "needsInterop": false
42
42
  }
43
43
  },
@@ -53,12 +53,17 @@ export default defineConfig({
53
53
  nav: [
54
54
  { text: '指南', link: '/guide/introduction', activeMatch: '/guide' },
55
55
  { text: '内置菜单', link: '/menus/introduction', activeMatch: '/menus' },
56
+ { text: '更新日志', link: '/changelog' },
56
57
  {
57
58
  text: '在线体验',
58
59
  link: 'https://www.so-better.cn/run?lib=kaitify-react',
59
60
  target: '_blank'
60
61
  },
61
- { text: '更新日志', link: '/changelog' }
62
+ {
63
+ text: '联系作者',
64
+ link: 'https://www.so-better.cn/author',
65
+ target: '_blank'
66
+ }
62
67
  ],
63
68
  sidebar: {
64
69
  '/guide': [
@@ -179,7 +184,7 @@ export default defineConfig({
179
184
  },
180
185
  vite: {
181
186
  server: {
182
- port: 5401
187
+ port: 5406
183
188
  }
184
189
  }
185
190
  })
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";
@@ -36003,7 +36008,12 @@ const TableExtension = () => Extension.create({
36003
36008
  const rows = nodes.filter((item) => item.isMatch({ tag: "tr" })).map((item) => {
36004
36009
  item.parent = tbody;
36005
36010
  if (item.hasChildren()) {
36006
- item.children = item.children.filter((it) => it.isMatch({ tag: "td" }) || it.isMatch({ tag: "th" }));
36011
+ item.children = item.children.map((it) => {
36012
+ if (!it.isMatch({ tag: "td" }) && !it.isMatch({ tag: "th" })) {
36013
+ it.toEmpty();
36014
+ }
36015
+ return it;
36016
+ });
36007
36017
  }
36008
36018
  return item;
36009
36019
  });
@@ -37073,9 +37083,7 @@ class Editor {
37073
37083
  const tag = dom.nodeName.toLocaleLowerCase();
37074
37084
  const namespace = dom.namespaceURI;
37075
37085
  if (this.emptyRenderTags.includes(tag)) {
37076
- return KNode.create({
37077
- type: "text"
37078
- });
37086
+ return KNode.createZeroWidthText();
37079
37087
  }
37080
37088
  if (tag == this.textRenderTag && dom.childNodes.length && Array.from(dom.childNodes).every((childNode) => childNode.nodeType == 3)) {
37081
37089
  return KNode.create({
@@ -37761,7 +37769,7 @@ class Editor {
37761
37769
  } else {
37762
37770
  this.delete();
37763
37771
  }
37764
- this.insertNode(node);
37772
+ this.insertNode(node, cover);
37765
37773
  return;
37766
37774
  }
37767
37775
  const offset2 = this.selection.start.offset;