@lark-apaas/coding-template-vite-react 0.1.4 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-template-vite-react",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Vite + React client template for miaoda coding",
5
5
  "type": "module",
6
6
  "files": ["template", "hooks"],
@@ -11,7 +11,7 @@
11
11
  "@formkit/auto-animate": "^0.9.0",
12
12
  "@gsap/react": "^2.1.2",
13
13
  "@hookform/resolvers": "^5.2.2",
14
- "@lark-apaas/client-toolkit-lite": "1.1.7-alpha.21",
14
+ "@lark-apaas/client-toolkit-lite": "1.1.7-alpha.23",
15
15
  "@radix-ui/react-accordion": "^1.2.11",
16
16
  "@radix-ui/react-alert-dialog": "^1.1.14",
17
17
  "@radix-ui/react-aspect-ratio": "^1.1.7",
@@ -68,7 +68,7 @@
68
68
  "devDependencies": {
69
69
  "@eslint/js": "^9",
70
70
  "@lark-apaas/coding-presets": "^1.0.0",
71
- "@lark-apaas/coding-vite-preset": "1.0.7-alpha.19",
71
+ "@lark-apaas/coding-vite-preset": "1.0.7-alpha.21",
72
72
  "@types/node": "^24",
73
73
  "@types/react": "^19",
74
74
  "@types/react-dom": "^19",
@@ -964,9 +964,9 @@
964
964
  }
965
965
  },
966
966
  "node_modules/@lark-apaas/client-toolkit-lite": {
967
- "version": "1.1.7-alpha.21",
968
- "resolved": "https://bnpm.byted.org/@lark-apaas/client-toolkit-lite/-/client-toolkit-lite-1.1.7-alpha.21.tgz",
969
- "integrity": "sha512-uYFbKOQ9BxN/jxmwkVFgWda1fVGuIf+CWUrqpixH/Bgt/uPvGalNUgxMPvOPspxeHqYt1zkMv9sN6QE3tOSebQ==",
967
+ "version": "1.1.7-alpha.23",
968
+ "resolved": "https://bnpm.byted.org/@lark-apaas/client-toolkit-lite/-/client-toolkit-lite-1.1.7-alpha.23.tgz",
969
+ "integrity": "sha512-TSyKQ7SJ5Dk3uTZo6D0GMzTEJWl8CeAcS9lJC5BaQqVg+psPteRM0hHAA+kXmnS43hsVTzMy0Nl3hAe8opo8EA==",
970
970
  "license": "MIT",
971
971
  "dependencies": {
972
972
  "@lark-apaas/client-capability": "0.1.7-alpha.2",
@@ -1066,13 +1066,13 @@
1066
1066
  }
1067
1067
  },
1068
1068
  "node_modules/@lark-apaas/coding-vite-preset": {
1069
- "version": "1.0.7-alpha.19",
1070
- "resolved": "https://bnpm.byted.org/@lark-apaas/coding-vite-preset/-/coding-vite-preset-1.0.7-alpha.19.tgz",
1071
- "integrity": "sha512-5puk5wTEX8SRW7qIaPH5IY4MZYmECdWUzsP+TxS+keP7tn42Wsgizqjtu+rD3HvNX9KgP64cycl+M0HrP7peog==",
1069
+ "version": "1.0.7-alpha.21",
1070
+ "resolved": "https://bnpm.byted.org/@lark-apaas/coding-vite-preset/-/coding-vite-preset-1.0.7-alpha.21.tgz",
1071
+ "integrity": "sha512-M+ZApzcyAkEer258DmBQRjJGqqIU0dZTNe4r6+1GCywrrQM3Gryfbzdk+tvyOwBsSVd7FYJ/Jae3Td1J0HP9Uw==",
1072
1072
  "dev": true,
1073
1073
  "license": "MIT",
1074
1074
  "dependencies": {
1075
- "@lark-apaas/devtool-kits": "1.2.24-alpha.10",
1075
+ "@lark-apaas/devtool-kits": "1.2.24-alpha.12",
1076
1076
  "@lark-apaas/vite-inspector-plugin": "^1.0.3",
1077
1077
  "@tailwindcss/vite": "^4.0.0",
1078
1078
  "@vitejs/plugin-react": "^6.0.0",
@@ -1142,9 +1142,9 @@
1142
1142
  }
1143
1143
  },
1144
1144
  "node_modules/@lark-apaas/devtool-kits": {
1145
- "version": "1.2.24-alpha.10",
1146
- "resolved": "https://bnpm.byted.org/@lark-apaas/devtool-kits/-/devtool-kits-1.2.24-alpha.10.tgz",
1147
- "integrity": "sha512-1WqQn4Qs0LCG45RX1Y3D/O5KUPi2q0vg8slcy2vCN+gTv1W4CPvZvbtr3NbVpRq1vTSagR7RvsUPVQwT0eGQgA==",
1145
+ "version": "1.2.24-alpha.12",
1146
+ "resolved": "https://bnpm.byted.org/@lark-apaas/devtool-kits/-/devtool-kits-1.2.24-alpha.12.tgz",
1147
+ "integrity": "sha512-MO/G5tKA0MiSoqHa4es5NFa/hqMDCQKrm2w3U3Q91xl79KaBUNhYOWAzMVZCgc/C0/RGkx2hju8rMiV9+GO1rQ==",
1148
1148
  "dev": true,
1149
1149
  "license": "MIT",
1150
1150
  "dependencies": {
@@ -37,7 +37,7 @@
37
37
  "@radix-ui/react-toggle": "^1.1.9",
38
38
  "@radix-ui/react-toggle-group": "^1.1.10",
39
39
  "@radix-ui/react-tooltip": "^1.1.18",
40
- "@lark-apaas/client-toolkit-lite": "1.1.7-alpha.21",
40
+ "@lark-apaas/client-toolkit-lite": "1.1.7-alpha.23",
41
41
  "@formkit/auto-animate": "^0.9.0",
42
42
  "@gsap/react": "^2.1.2",
43
43
  "framer-motion": "^12.38.0",
@@ -73,7 +73,7 @@
73
73
  "@types/react": "^19",
74
74
  "@types/react-dom": "^19",
75
75
  "@lark-apaas/coding-presets": "^1.0.0",
76
- "@lark-apaas/coding-vite-preset": "1.0.7-alpha.19",
76
+ "@lark-apaas/coding-vite-preset": "1.0.7-alpha.21",
77
77
  "concurrently": "^9",
78
78
  "eslint": "^9",
79
79
  "eslint-plugin-react-hooks": "^7",
@@ -39,10 +39,17 @@ if [ -d "$ROOT/shared/static" ]; then
39
39
  rsync -a --exclude='*.ts' --exclude='*.tsx' --exclude='*.js' --exclude='*.jsx' "$ROOT/shared/static/" "$OUTPUT_STATIC/"
40
40
  fi
41
41
 
42
+ # 5. capability 配置 → dist/output_capabilities/
43
+ if [ -d "$ROOT/shared/capabilities" ]; then
44
+ mkdir -p "$ROOT/dist/output_capabilities"
45
+ cp -r "$ROOT/shared/capabilities/." "$ROOT/dist/output_capabilities/"
46
+ fi
47
+
42
48
  # 清理中间产物
43
49
  rm -rf "$ROOT/dist/client"
44
50
 
45
51
  echo "Build complete"
46
- echo " HTML → dist/output/"
47
- [ -d "$OUTPUT_RESOURCE" ] && echo " Resource → dist/output_resource/" || true
48
- [ -d "$OUTPUT_STATIC" ] && echo " Static → dist/output_static/" || true
52
+ echo " HTML → dist/output/"
53
+ [ -d "$OUTPUT_RESOURCE" ] && echo " Resource → dist/output_resource/" || true
54
+ [ -d "$OUTPUT_STATIC" ] && echo " Static → dist/output_static/" || true
55
+ [ -d "$ROOT/dist/output_capabilities" ] && echo " Capabilities → dist/output_capabilities/" || true
@@ -0,0 +1,6 @@
1
+ import { clsx, type ClassValue } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs));
6
+ }