create-yoya-ui 0.3.3 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-yoya-ui",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Scaffold a new yoya-ui project with Vite: basic template (SPA) or SSR template (renderPage + hydrateOrMount).",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,8 +1,8 @@
1
1
  {
2
- "hash": "854f049f",
2
+ "hash": "1aef1ac7",
3
3
  "configHash": "1cca6c4d",
4
- "lockfileHash": "7fb7e123",
5
- "browserHash": "3ebf44f7",
4
+ "lockfileHash": "0d4729f6",
5
+ "browserHash": "cc1937a8",
6
6
  "optimized": {},
7
7
  "chunks": {}
8
8
  }
@@ -10,7 +10,7 @@
10
10
  "typecheck": "tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@yoyaflow/yoya-ui": "^0.3.3"
13
+ "@yoyaflow/yoya-ui": "^0.4.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "typescript": "^7.0.2",
@@ -9,7 +9,7 @@
9
9
  "preview": "vite preview"
10
10
  },
11
11
  "dependencies": {
12
- "@yoyaflow/yoya-ui": "^0.3.3"
12
+ "@yoyaflow/yoya-ui": "^0.4.0"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vite": "^8.2.0"
@@ -9,7 +9,7 @@
9
9
  "preview": "npm run build && npm start"
10
10
  },
11
11
  "dependencies": {
12
- "@yoyaflow/yoya-ui": "^0.3.3"
12
+ "@yoyaflow/yoya-ui": "^0.4.0"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vite": "^8.2.0"
@@ -1,5 +1,5 @@
1
1
  import '@yoyaflow/yoya-ui/ui.css';
2
- import { hydrateOrMount } from '@yoyaflow/yoya-ui/ssr';
2
+ import { hydrateOrMount } from '@yoyaflow/yoya-ui/router';
3
3
  import { HomePage, messages } from './home-page.js';
4
4
 
5
5
  // 自动读 __YOYA_DATA__ → #app 有服务端 HTML 走 hydrate,否则 mount
@@ -1,4 +1,5 @@
1
- import { createRouter, div } from '@yoyaflow/yoya-ui/ssr';
1
+ import { div } from '@yoyaflow/yoya-ui/core';
2
+ import { createRouter } from '@yoyaflow/yoya-ui/router';
2
3
 
3
4
  export const messages = {
4
5
  'zh-CN': { title: 'SSR 示例', home: '首页' },
@@ -1,7 +1,7 @@
1
1
  import { createServer } from 'node:http';
2
2
  import { existsSync, readFileSync } from 'node:fs';
3
3
  import { extname, join } from 'node:path';
4
- import { renderPage } from '@yoyaflow/yoya-ui/ssr';
4
+ import { renderPage } from '@yoyaflow/yoya-ui/router';
5
5
  import { HomePage, messages } from './home-page.js';
6
6
 
7
7
  const DIST = join(import.meta.dirname, '..', 'dist');