feat: enhance ExportDialog with customizable import/export code and localStorage support

- Added textarea inputs for customizable 'before' and 'after' code snippets.
- Introduced a checkbox to toggle the removal of view items in the export.
- Implemented localStorage functionality to persist user preferences for 'before', 'after', and 'removeViewItem'.
- Updated the code generation logic to incorporate new options.
This commit is contained in:
2026-02-24 22:05:52 +08:00
parent a281a0e6e2
commit 91f5f17028
3 changed files with 396 additions and 135 deletions

View File

@@ -14,9 +14,10 @@
],
"dependencies": {
"@base-ui/react": "^1.2.0",
"@kevisual/router": "0.0.83",
"@tanstack/react-router": "^1.161.4",
"@kevisual/router": "0.0.84",
"@tanstack/react-router": "^1.162.9",
"@tanstack/react-table": "^8.21.3",
"@uiw/react-codemirror": "^4.25.5",
"@uiw/react-md-editor": "^4.0.11",
"antd": "^6.3.0",
"class-variance-authority": "^0.7.1",
@@ -40,21 +41,21 @@
"zustand": "^5.0.11"
},
"devDependencies": {
"@kevisual/api": "^0.0.59",
"@kevisual/api": "^0.0.60",
"@kevisual/context": "^0.0.8",
"@kevisual/js-filter": "^0.0.5",
"@kevisual/query": "^0.0.49",
"@kevisual/query": "^0.0.52",
"@kevisual/types": "^0.0.12",
"@tailwindcss/vite": "^4.2.0",
"@tanstack/react-router-devtools": "^1.161.4",
"@tanstack/router-plugin": "^1.161.4",
"@tailwindcss/vite": "^4.2.1",
"@tanstack/react-router-devtools": "^1.162.9",
"@tanstack/router-plugin": "^1.162.9",
"@types/node": "^25.3.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"dotenv": "^17.3.1",
"tailwind-merge": "^3.5.0",
"tailwindcss": "^4.2.0",
"tailwindcss": "^4.2.1",
"tw-animate-css": "^1.4.0",
"typescript": "^5.9.3",
"vite": "v8.0.0-beta.15"