@joplo-app/server 0.2.7 → 0.2.8

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/dist/dev.js CHANGED
@@ -522,7 +522,7 @@ export async function createHub(opts = {}) {
522
522
  optimizeDeps: web.mode === 'dist'
523
523
  ? { noDiscovery: true, include: [] }
524
524
  : {
525
- include: ['react', 'react-dom', 'react-dom/client', 'react/jsx-dev-runtime', 'react/jsx-runtime', 'motion', 'motion/react', 'roughjs', 'lucide-react', 'clsx', 'tailwind-merge', '@dagrejs/dagre', 'modern-screenshot', '@joplo-app/core > zod'],
525
+ include: ['react', 'react-dom', 'react-dom/client', 'react/jsx-dev-runtime', 'react/jsx-runtime', 'motion', 'motion/react', 'roughjs', 'lucide-react', 'clsx', 'tailwind-merge', 'modern-screenshot', '@joplo-app/core > zod'],
526
526
  },
527
527
  server: {
528
528
  host: '127.0.0.1',
package/dist/project.js CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import path from 'node:path';
6
6
  import { compile } from '@joplo-app/core';
7
- import { discoverFiles, loadAuthoring } from '@joplo-app/core/node';
7
+ import { discoverFiles, elkLayout, loadAuthoring } from '@joplo-app/core/node';
8
8
  import { isProjectSource } from "./vite-shared.js";
9
9
  const LOC_IN_MESSAGE = /((?:[\w@.-]+\/)*[\w@.-]+\.(?:tsx|ts|jsx|js|mts)):(\d+):(\d+)/;
10
10
  /** 运行时错误(模块求值时抛出):从调用栈里找第一处项目文件位置。 */
@@ -64,7 +64,8 @@ export async function compileProject(server, projectDir, mode) {
64
64
  const home = loaded.authoring.config.home ?? null;
65
65
  if (diagnostics.some((d) => d.severity === 'error'))
66
66
  return { project: null, diagnostics, home };
67
- const r = compile(loaded.authoring, mode);
67
+ // 图表布局在编译期由 ELK 算好写进 IR(D69):看板与发布站只渲染
68
+ const r = compile(loaded.authoring, mode, { layout: elkLayout });
68
69
  return { project: r.project, diagnostics: [...diagnostics, ...r.diagnostics], home };
69
70
  }
70
71
  /** 让项目源文件在下次载入时重新转译、重新求值。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joplo-app/server",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Joplo 本地服务:dev 看板、build 发布站、render 截图",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -15,9 +15,9 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@joplo-app/core": "0.2.7",
19
- "@joplo-app/kit": "0.2.7",
20
- "@joplo-app/web": "0.2.7",
18
+ "@joplo-app/core": "0.2.8",
19
+ "@joplo-app/kit": "0.2.8",
20
+ "@joplo-app/web": "0.2.8",
21
21
  "@tailwindcss/vite": "4.3.4",
22
22
  "tailwindcss": "4.3.4",
23
23
  "vite": "8.3.5",