@a3s-lab/office 0.31.0 → 0.32.0
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/README.md +6 -3
- package/dist/0~4808.js +1 -1
- package/dist/0~4980.js +1 -1
- package/dist/0~7240.js +1 -1
- package/dist/0~7614.js +1 -1
- package/dist/0~document-editor.js +1085 -4
- package/dist/0~spreadsheet-editor.js +2 -1
- package/dist/0~work-docx-export.js +1 -1
- package/dist/0~work-docx-import.js +10 -27
- package/dist/0~work-docx-large-document-import.js +1 -1
- package/dist/0~work-office-diagnostics.js +3 -3
- package/dist/0~work-pptx-import.js +1 -1
- package/dist/{1544.js → 3266.js} +17 -1862
- package/dist/4121.js +13 -0
- package/dist/4166.js +3848 -0
- package/dist/{6282.js → 4174.js} +383 -10
- package/dist/9333.js +1849 -0
- package/dist/core.js +5259 -4
- package/dist/index.js +3 -3
- package/dist/internal/features/work/editors/document-compare-dialog.d.ts +14 -0
- package/dist/internal/features/work/editors/document-toolbar.d.ts +3 -1
- package/dist/internal/features/work/editors/use-document-comparison.d.ts +9 -0
- package/dist/internal/features/work/work-document-changes.d.ts +5 -0
- package/dist/internal/features/work/work-document-compare-diff.d.ts +38 -0
- package/dist/internal/features/work/work-document-compare-stability.d.ts +5 -0
- package/dist/internal/features/work/work-document-compare.d.ts +27 -0
- package/dist/office-kernel.wasm +0 -0
- package/dist/styles.css +194 -0
- package/docs/latest/en/browser-editor-architecture.md +23 -0
- package/package.json +6 -3
- package/dist/4104.js +0 -9336
package/dist/4121.js
CHANGED
|
@@ -2828,6 +2828,13 @@ const WORK_TEMPLATES = [
|
|
|
2828
2828
|
description: '目标、范围、里程碑与风险',
|
|
2829
2829
|
accent: '#536de2'
|
|
2830
2830
|
},
|
|
2831
|
+
{
|
|
2832
|
+
id: 'document-comparison',
|
|
2833
|
+
kind: 'document',
|
|
2834
|
+
name: '文档比较',
|
|
2835
|
+
description: '导入版本并生成可接受或拒绝的确定性修订',
|
|
2836
|
+
accent: '#6a54b8'
|
|
2837
|
+
},
|
|
2831
2838
|
{
|
|
2832
2839
|
id: 'table-of-contents',
|
|
2833
2840
|
kind: 'document',
|
|
@@ -2935,6 +2942,7 @@ function createWorkId(prefix) {
|
|
|
2935
2942
|
function initialTitle(templateId, kind) {
|
|
2936
2943
|
const titles = {
|
|
2937
2944
|
'project-brief': '新项目方案',
|
|
2945
|
+
'document-comparison': '文档比较示例',
|
|
2938
2946
|
'table-of-contents': '可更新目录示例',
|
|
2939
2947
|
'document-index': '原生索引示例',
|
|
2940
2948
|
'text-effects': '文字效果示例',
|
|
@@ -2957,6 +2965,11 @@ function contentForTemplate(templateId) {
|
|
|
2957
2965
|
pageSize: 'a4',
|
|
2958
2966
|
html: "<h1>新项目方案</h1><p><strong>负责人:</strong>项目团队 <strong>更新日期:</strong>今天</p><blockquote><p>用一句话说明这项工作的目标,以及完成后会带来什么变化。</p></blockquote><h2>背景与目标</h2><p>描述当前情况、核心问题和可衡量的成功标准。</p><h2>工作范围</h2><ul><li><p>需要完成的关键交付物</p></li><li><p>明确不在本期范围内的事项</p></li></ul><h2>里程碑</h2><ol><li><p>方案确认</p></li><li><p>执行与评审</p></li><li><p>交付与复盘</p></li></ol><h2>风险与决策</h2><p>记录尚未解决的问题、依赖和决策负责人。</p>"
|
|
2959
2967
|
};
|
|
2968
|
+
if ('document-comparison' === templateId) return {
|
|
2969
|
+
type: 'document',
|
|
2970
|
+
pageSize: 'a4',
|
|
2971
|
+
html: "<h1>发布审阅基线</h1><p><strong>基线版本:</strong>1.0</p><h2>比较步骤</h2><p>打开“审阅”,选择“比较文档”,再导入 DOCX、HTML 或 TXT 修订版本。</p><h2>审阅范围</h2><p>当前基线包含架构说明与发布说明。</p><h2>决策要求</h2><p>发布前必须逐项接受或拒绝所有生成的修订。</p>"
|
|
2972
|
+
};
|
|
2960
2973
|
if ('table-of-contents' === templateId) return {
|
|
2961
2974
|
type: 'document',
|
|
2962
2975
|
pageSize: 'a4',
|