listpage_cli 0.0.306 → 0.0.308
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.
|
@@ -20,7 +20,7 @@ async function handleReadCommand(input, client, fs) {
|
|
|
20
20
|
return (0, command_result_1.commandError)(`读取飞书文档失败,错误码: ${response.code}, 错误信息: ${response.msg}`, "read_doc_failed", 1);
|
|
21
21
|
}
|
|
22
22
|
const docContent = response.data?.content || "";
|
|
23
|
-
const relativePath = `.listpage/lark/${docToken}.md`;
|
|
23
|
+
const relativePath = `.listpage/lark/${docToken}/prd.md`;
|
|
24
24
|
const absolutePath = fs.resolve(fs.cwd(), relativePath);
|
|
25
25
|
const outputDir = fs.dirname(absolutePath);
|
|
26
26
|
if (!fs.exists(outputDir)) {
|
|
@@ -68,13 +68,14 @@ async function handleUpdateBlockCommand(input, client, fs) {
|
|
|
68
68
|
// 6. 添加新内容
|
|
69
69
|
if (newBlocks.length > 0) {
|
|
70
70
|
console.log("插入新的内容到高亮块...");
|
|
71
|
-
await client.docx.
|
|
71
|
+
await client.docx.documentBlockDescendant.create({
|
|
72
72
|
path: {
|
|
73
73
|
document_id: docToken,
|
|
74
74
|
block_id: targetBlock.block_id,
|
|
75
75
|
},
|
|
76
76
|
data: {
|
|
77
|
-
|
|
77
|
+
children_id: convertRes.data?.first_level_block_ids || [],
|
|
78
|
+
descendants: newBlocks,
|
|
78
79
|
index: -1,
|
|
79
80
|
},
|
|
80
81
|
});
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"react": "^19.2.0",
|
|
14
14
|
"react-dom": "^19.2.0",
|
|
15
|
-
"listpage-next": "~0.0.
|
|
15
|
+
"listpage-next": "~0.0.308",
|
|
16
16
|
"react-router-dom": ">=6.0.0",
|
|
17
17
|
"@ant-design/v5-patch-for-react-19": "~1.0.3",
|
|
18
18
|
"ahooks": "^3.9.5",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"styled-components": "^6.1.19",
|
|
24
24
|
"mobx": "~6.15.0",
|
|
25
25
|
"@ant-design/icons": "~6.0.2",
|
|
26
|
-
"listpage-components": "~0.0.
|
|
26
|
+
"listpage-components": "~0.0.308",
|
|
27
27
|
"lucide-react": "~0.575.0"
|
|
28
28
|
"mobx-react-lite": "~4.1.1"
|
|
29
29
|
},
|