@lark-apaas/coding-template-nestjs-react-fullstack 0.1.57-alpha.20261102143457 → 0.1.57-alpha.20261103143319

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/template/client/src/components/business-ui/README.md +2 -0
  3. package/template/client/src/components/business-ui/record-comments/README.md +141 -0
  4. package/template/client/src/components/business-ui/record-comments/app-source.ts +93 -0
  5. package/template/client/src/components/business-ui/record-comments/assets/reaction-sprite.png +0 -0
  6. package/template/client/src/components/business-ui/record-comments/comment-panel.contract.ts +240 -0
  7. package/template/client/src/components/business-ui/record-comments/comment-panel.tsx +231 -0
  8. package/template/client/src/components/business-ui/record-comments/extensions.ts +129 -0
  9. package/template/client/src/components/business-ui/record-comments/index.ts +9 -0
  10. package/template/client/src/components/business-ui/record-comments/internal/composer.tsx +529 -0
  11. package/template/client/src/components/business-ui/record-comments/internal/content.tsx +213 -0
  12. package/template/client/src/components/business-ui/record-comments/internal/discussion.tsx +517 -0
  13. package/template/client/src/components/business-ui/record-comments/internal/editor.tsx +675 -0
  14. package/template/client/src/components/business-ui/record-comments/internal/icons.tsx +148 -0
  15. package/template/client/src/components/business-ui/record-comments/internal/images.tsx +155 -0
  16. package/template/client/src/components/business-ui/record-comments/internal/mentions.tsx +163 -0
  17. package/template/client/src/components/business-ui/record-comments/internal/model.ts +581 -0
  18. package/template/client/src/components/business-ui/record-comments/internal/mutations.ts +170 -0
  19. package/template/client/src/components/business-ui/record-comments/internal/reaction-catalog.ts +196 -0
  20. package/template/client/src/components/business-ui/record-comments/internal/reactions.tsx +681 -0
  21. package/template/client/src/components/business-ui/record-comments/internal/styles.css +1109 -0
  22. package/template/client/src/components/business-ui/record-comments/internal/suggestions.tsx +456 -0
  23. package/template/client/src/components/business-ui/record-comments/internal/view-types.ts +84 -0
  24. package/template/client/src/components/business-ui/record-comments/types.ts +118 -0
  25. package/template/package-lock.json +529 -13
  26. package/template/package.json +15 -4
  27. package/template/scripts/build.sh +37 -2
@@ -52,8 +52,8 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@hookform/resolvers": "^5.2.2",
55
- "@lark-apaas/client-toolkit": "^1.2.78",
56
- "@lark-apaas/coding-preset-vite-react": "^1.0.27",
55
+ "@lark-apaas/client-toolkit": "^1.2.76",
56
+ "@lark-apaas/coding-preset-vite-react": "^1.0.26",
57
57
  "@lark-apaas/fullstack-presets": "^1.1.25",
58
58
  "@nestjs/cli": "^10.4.9",
59
59
  "@radix-ui/react-accordion": "^1.2.12",
@@ -133,7 +133,16 @@
133
133
  "uuid": "11.0.5",
134
134
  "vaul": "^1.1.2",
135
135
  "vite": "^8",
136
- "zod": "^4.3.6"
136
+ "zod": "^4.3.6",
137
+ "@floating-ui/dom": "1.7.4",
138
+ "@tiptap/core": "3.20.0",
139
+ "@tiptap/extension-document": "3.20.0",
140
+ "@tiptap/extension-hard-break": "3.20.0",
141
+ "@tiptap/extension-paragraph": "3.20.0",
142
+ "@tiptap/extension-text": "3.20.0",
143
+ "@tiptap/pm": "3.20.0",
144
+ "@tiptap/react": "3.20.0",
145
+ "@tiptap/suggestion": "3.20.0"
137
146
  },
138
147
  "overrides": {
139
148
  "dayjs": "^1.11.15",
@@ -141,7 +150,9 @@
141
150
  "tailwind-merge": "^3.5.0",
142
151
  "zod": "^4.3.6",
143
152
  "echarts": "^6.1.0",
144
- "stylelint": "^17.3.0"
153
+ "stylelint": "^17.3.0",
154
+ "@tiptap/extension-bubble-menu": "3.20.0",
155
+ "@tiptap/extension-floating-menu": "3.20.0"
145
156
  },
146
157
  "engines": {
147
158
  "node": ">=22.0.0",
@@ -26,7 +26,10 @@ print_time $STEP_START
26
26
  echo ""
27
27
 
28
28
  # ==================== 步骤 1 ====================
29
- echo "⏭️ [1/6] 已停用 OpenAPI/客户端 SDK 生成"
29
+ echo "📝 [1/6] 更新 openapi 代码"
30
+ STEP_START=$(node -e "console.log(Date.now())")
31
+ npm run gen:openapi
32
+ print_time $STEP_START
30
33
  echo ""
31
34
 
32
35
  # ==================== 步骤 2 ====================
@@ -37,7 +40,39 @@ print_time $STEP_START
37
40
  echo ""
38
41
 
39
42
  # ==================== 步骤 3 ====================
40
- echo "⏭️ [3/6] 已跳过 API/页面路由生成"
43
+ echo "🗺️ [3/6] 生成路由定义"
44
+ STEP_START=$(node -e "console.log(Date.now())")
45
+
46
+ # 在 client/server 构建之前生成到 dist/,供 DefinePlugin 注入前端 bundle
47
+ # 注意:nest-cli.json 中 deleteOutDir 必须为 false(模板默认值),否则 nest build 会清掉 dist/
48
+ echo " ├─ 生成 API 路由定义..."
49
+ npx generate-api-routes --server-dir ./server --out-dir ./dist > /tmp/gen-api-routes.log 2>&1 &
50
+ API_ROUTES_PID=$!
51
+
52
+ echo " ├─ 生成页面路由定义..."
53
+ npx generate-page-routes --app-path ./client/src/app.tsx --out-dir ./dist > /tmp/gen-page-routes.log 2>&1 &
54
+ PAGE_ROUTES_PID=$!
55
+
56
+ API_ROUTES_EXIT=0
57
+ PAGE_ROUTES_EXIT=0
58
+
59
+ wait $API_ROUTES_PID || API_ROUTES_EXIT=$?
60
+ wait $PAGE_ROUTES_PID || PAGE_ROUTES_EXIT=$?
61
+
62
+ if [ $API_ROUTES_EXIT -ne 0 ]; then
63
+ echo " ⚠️ API 路由生成失败(不影响构建)"
64
+ cat /tmp/gen-api-routes.log
65
+ else
66
+ echo " ✅ API 路由生成完成"
67
+ fi
68
+
69
+ if [ $PAGE_ROUTES_EXIT -ne 0 ]; then
70
+ echo " ⚠️ 页面路由生成失败(不影响构建)"
71
+ cat /tmp/gen-page-routes.log
72
+ else
73
+ echo " ✅ 页面路由生成完成"
74
+ fi
75
+ print_time $STEP_START
41
76
  echo ""
42
77
 
43
78
  # ==================== 步骤 4 ====================