9fe6d7cc44
Rewrites Box/Text/Spacer/Static/Newline from h()/render functions to Vue <script setup> template SFCs (Transform stays a render fn — it inspects its own child vnodes), with vue-tsc-verified consumer types (template + JSX fixtures), provide/inject text context, the always-validate Text divergence (color + backgroundColor), and three renderer fixes the SFCs surfaced (static anchor skip, transform line-index Ink-parity, useBoxMetrics subtree drill). Integrates the five main commits landed after the branch point: #163 public-API audit, generic Static scoped-slot typing, foreground color validation, useWindowSize/divergence docs. Squashed from the SFC sub-commits + the two main-integration merges to keep a linear, rebaseable history. See PR #165 for the full breakdown. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
60 lines
1.4 KiB
JSON
60 lines
1.4 KiB
JSON
{
|
|
"name": "@vue-tui/runtime",
|
|
"version": "0.0.3",
|
|
"description": "Vue 3 terminal renderer with Yoga flexbox layout, inspired by React Ink.",
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./dist/index.mjs",
|
|
"./internal": "./dist/internal.mjs",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "vp pack",
|
|
"dev": "vp pack --watch",
|
|
"test": "vp test",
|
|
"check:type": "vue-tsc --noEmit",
|
|
"prepublishOnly": "vp run build"
|
|
},
|
|
"dependencies": {
|
|
"@alcalzone/ansi-tokenize": "catalog:",
|
|
"@vue/runtime-core": "^3.4.0",
|
|
"ansi-escapes": "catalog:",
|
|
"chalk": "^5.3.0",
|
|
"cli-boxes": "^3.0.0",
|
|
"cli-truncate": "^6.0.0",
|
|
"code-excerpt": "^4.0.0",
|
|
"is-in-ci": "catalog:",
|
|
"patch-console": "catalog:",
|
|
"signal-exit": "^4.1.0",
|
|
"slice-ansi": "^9.0.0",
|
|
"stack-utils": "^2.0.6",
|
|
"string-width": "^8.0.0",
|
|
"terminal-size": "catalog:",
|
|
"wrap-ansi": "^10.0.0",
|
|
"yoga-layout": "^3.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.6.2",
|
|
"@types/stack-utils": "^2.0.3",
|
|
"@vitejs/plugin-vue-jsx": "catalog:",
|
|
"typescript": "^6.0.3",
|
|
"unplugin-vue": "catalog:",
|
|
"vite-plus": "^0.1.20",
|
|
"vue": "^3.4.0",
|
|
"vue-tsc": "catalog:"
|
|
},
|
|
"peerDependencies": {
|
|
"vue": "^3.4.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|