@simon_he/vue-tui 0.0.6 → 0.0.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/package.json CHANGED
@@ -1,29 +1,38 @@
1
1
  {
2
2
  "name": "@simon_he/vue-tui",
3
- "type": "module",
4
- "version": "0.0.6",
5
- "description": "A Vue 3 terminal UI component library",
6
- "author": "Simon He",
7
- "license": "MIT",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "funding": "https://github.com/sponsors/Simon-He95",
3
+ "version": "0.0.8",
4
+ "description": "Vue 3 terminal UI toolkit for browser DOM and CLI stdout renderers",
5
+ "keywords": [
6
+ "ansi",
7
+ "cli",
8
+ "component-library",
9
+ "dom-renderer",
10
+ "log-viewer",
11
+ "markdown",
12
+ "stdout",
13
+ "terminal",
14
+ "terminal-ui",
15
+ "tui",
16
+ "virtual-list",
17
+ "vue",
18
+ "vue3"
19
+ ],
12
20
  "homepage": "https://github.com/Simon-He95/vue-tui#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/Simon-He95/vue-tui/issues"
23
+ },
24
+ "license": "MIT",
25
+ "author": "Simon He",
13
26
  "repository": {
14
27
  "type": "git",
15
28
  "url": "git+https://github.com/Simon-He95/vue-tui.git"
16
29
  },
17
- "bugs": "https://github.com/Simon-He95/vue-tui/issues",
18
- "keywords": [],
30
+ "funding": "https://github.com/sponsors/Simon-He95",
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "type": "module",
19
35
  "sideEffects": false,
20
- "exports": {
21
- ".": {
22
- "bun": "./src/index.ts",
23
- "import": "./dist/index.js",
24
- "require": "./dist/index.cjs"
25
- }
26
- },
27
36
  "main": "./dist/index.js",
28
37
  "module": "./dist/index.js",
29
38
  "types": "./dist/index.d.ts",
@@ -35,64 +44,93 @@
35
44
  ]
36
45
  }
37
46
  },
38
- "files": [
39
- "dist"
40
- ],
41
- "peerDependencies": {
42
- "vue": "^3.5.27"
47
+ "exports": {
48
+ ".": {
49
+ "types": "./dist/index.d.ts",
50
+ "import": "./dist/index.js",
51
+ "require": "./dist/index.cjs"
52
+ },
53
+ "./markdown": {
54
+ "types": "./dist/markdown.d.ts",
55
+ "import": "./dist/markdown.js",
56
+ "require": "./dist/markdown.cjs"
57
+ },
58
+ "./experimental": {
59
+ "types": "./dist/experimental.d.ts",
60
+ "import": "./dist/experimental.js",
61
+ "require": "./dist/experimental.cjs"
62
+ }
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "dependencies": {
68
+ "stream-markdown-parser": "^0.0.90"
43
69
  },
44
- "dependencies": {},
45
70
  "devDependencies": {
46
- "@antfu/eslint-config": "^4.19.0",
47
- "@playwright/test": "^1.58.2",
48
- "@sxzz/prettier-config": "^2.3.1",
71
+ "@playwright/test": "^1.59.1",
49
72
  "@types/node": "^18.19.130",
50
73
  "bumpp": "^8.2.1",
51
74
  "esbuild": "^0.20.2",
52
- "eslint": "^9.39.4",
53
75
  "happy-dom": "^17.6.3",
54
76
  "lint-staged": "^13.3.0",
77
+ "oxfmt": "^0.47.0",
78
+ "oxlint": "^1.62.0",
55
79
  "picocolors": "^1.1.1",
56
80
  "pinia": "^3.0.4",
57
- "prettier": "^3.8.1",
58
81
  "rimraf": "^3.0.2",
59
82
  "tsdown": "^0.9.9",
60
83
  "tsx": "^3.14.0",
61
84
  "typescript": "^5.9.3",
62
85
  "vitepress": "^1.6.4",
63
- "vitest": "^4.1.0",
64
- "vue": "^3.5.30"
86
+ "vitest": "^4.1.5",
87
+ "vue": "^3.5.33"
88
+ },
89
+ "peerDependencies": {
90
+ "vue": ">=3.3.0 <4"
65
91
  },
66
92
  "lint-staged": {
67
- "*": [
68
- "prettier --write --cache --ignore-unknown"
69
- ],
70
- "*.{vue,js,ts,jsx,tsx,md,json}": "eslint --fix"
93
+ "*": "oxfmt --write",
94
+ "*.{vue,js,ts,jsx,tsx}": "oxlint --fix"
71
95
  },
72
- "prettier": "@sxzz/prettier-config",
73
96
  "scripts": {
74
97
  "build": "tsdown --clean --format esm --dts && node scripts/build-cjs.mjs",
75
98
  "dev": "tsdown --format esm --dts --watch src",
76
- "build:goatchain": "pnpm run build && pnpm -C apps/goatchain build",
77
- "build:examples": "pnpm run build:goatchain && pnpm -C examples/basic build && pnpm -C examples/goatchain build",
78
- "build:examples:terminal": "pnpm run build:goatchain && pnpm -C examples/basic build:terminal && pnpm -C examples/goatchain build:terminal",
99
+ "build:examples": "pnpm run build && pnpm -C examples/basic build",
100
+ "build:examples:terminal": "pnpm run build && pnpm -C examples/basic build:terminal",
101
+ "example:agent-console": "pnpm run build && pnpm -C examples/agent-console dev",
102
+ "example:agent-console:smoke": "pnpm run build && pnpm -C examples/agent-console smoke",
103
+ "example:agent-console:terminal": "pnpm run build && pnpm -C examples/agent-console terminal",
104
+ "example:agent-console:terminal:smoke": "pnpm run build && pnpm -C examples/agent-console terminal:smoke",
105
+ "example:tlog-view-lab": "pnpm run build && VT_SMOKE=1 tsx examples/tlog-view-lab.ts",
79
106
  "run:basic:terminal": "pnpm run build && pnpm -C examples/basic terminal",
80
107
  "run:basic:multi-select:terminal": "pnpm run build && pnpm -C examples/basic build:terminal:multi-select && pnpm -C examples/basic terminal:multi-select",
81
- "run:goatchain:terminal": "pnpm run build:goatchain && pnpm -C examples/goatchain terminal",
108
+ "run:tlog-view-lab": "pnpm run build && VT_INTERACTIVE=1 tsx examples/tlog-view-lab.ts",
82
109
  "docs:gen": "bunx tsx scripts/generate-component-api-docs.ts",
83
110
  "docs:dev": "bun run docs:gen && vitepress dev docs",
84
111
  "docs:build": "bun run docs:gen && vitepress build docs",
85
112
  "docs:preview": "vitepress preview docs",
86
- "format": "bunx --bun prettier --cache --write .",
87
- "format:check": "bunx --bun prettier --check .",
88
- "lint": "bunx --bun eslint . --cache",
89
- "lint:fix": "pnpm run lint --fix",
113
+ "format": "oxfmt --write .",
114
+ "format:check": "oxfmt --check .",
115
+ "lint": "oxlint .",
116
+ "lint:fix": "oxlint . --fix",
117
+ "check:hidden-unicode": "node scripts/check-hidden-unicode.cjs",
90
118
  "release": "bumpp && pnpm publish --no-git-checks --access public",
119
+ "release:bench": "pnpm run bench:scroll-mailbox && pnpm run bench:dom-renderer && pnpm run bench:phase2",
120
+ "release:check": "pnpm run check:hidden-unicode && pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run test:package-exports && pnpm run docs:build",
121
+ "release:dry-run": "pnpm run release:check && pnpm run release:bench && pnpm run release:smoke && pnpm run release:pack-smoke",
122
+ "release:pack": "pnpm run build && pnpm pack --pack-destination .release",
123
+ "release:pack-smoke": "node scripts/smoke-packed-package.mjs",
124
+ "release:smoke": "pnpm run example:tlog-view-lab && pnpm run example:agent-console:smoke && pnpm run example:agent-console:terminal:smoke",
91
125
  "start": "esno src/index.ts",
92
126
  "test": "vitest run",
127
+ "test:unit": "vitest run --exclude test/package-exports.test.ts",
128
+ "test:package-exports": "pnpm run build && VUE_TUI_REQUIRE_DIST_EXPORTS=1 vitest run test/package-exports.test.ts",
93
129
  "typecheck": "tsc --noEmit",
94
130
  "e2e": "playwright test",
95
131
  "bench:vfor": "tsx scripts/bench-vfor.ts",
96
- "test:goatchain": "pnpm -C apps/goatchain test"
132
+ "bench:dom-renderer": "tsx scripts/bench-dom-renderer.ts",
133
+ "bench:phase2": "tsx scripts/bench-phase2.ts",
134
+ "bench:scroll-mailbox": "tsx scripts/bench-scroll-mailbox.ts"
97
135
  }
98
136
  }
@@ -1,3 +0,0 @@
1
- import { parsePathQuery, resolveUserPath, suggestPaths } from "./path-suggest-CZQYJIIg.js";
2
-
3
- export { resolveUserPath, suggestPaths };