nex_shift/tsconfig.json

27 lines
736 B
JSON
Raw Normal View History

{
"compilerOptions": {
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
feat(ui): drop onto a button, and read the panels again Three changes to the main window, requested together. A file drop is now aimed. The three buttons are the only drop targets and the button you release on is the action it runs; a release anywhere else on the panel runs nothing and says so, instead of opening an action ring nobody asked for. This replaces the old fallback in both delivery paths - the DOM handler and the native webview drop - because two routes to the same gesture must not have two different rules. dropFiles therefore takes a required action rather than an optional one, and the actions ring is still reachable from the Shift-drag gesture and from a file type with no convertible formats. Recent rows can be dragged back onto those buttons. A row leaves Shift as a real file drag, so one gesture can be reported twice, once by the DOM and once by the native events, and which arrives first depends on the engine; recentDrag.landed lets only the first through. The hint under the buttons names the affordance, which is otherwise invisible, and all three buttons light up as candidates for as long as any drag is in flight - a native one via dragging, an internal one via rowDragging, since a row drag inside the webview does not raise native events. Type sizes are on one ladder now (--text-3xs to --text-hero) instead of being invented per rule, which is how the settings drawer drifted down to 7-8px. 92 declarations under 12px became one. The drawer is wider, its tabs are pills, and the runtime, share, setup and radial surfaces moved onto the same scale. The capture-behaviour setting is removed: the CaptureAfter enum, its field, its command and its UI. A finished capture always shows the result card, falling back to the editor when a card window cannot be created. Stored settings that still carry captureAfter load unchanged, because the struct does not deny unknown fields. Also dropped 23 i18n keys no surface used, one dead re-export in history.ts, and a stale .home-drop p rule that was outranking the new hint and sizing it as body copy. tsconfig now turns on noUnusedLocals, noUnusedParameters and noFallthroughCasesInSwitch, which is what keeps the dead imports from coming back; the tree already passes all three.
2026-11-01 04:02:24 +00:00
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"],
2026-10-25 04:24:05 +00:00
"exclude": ["src/**/*.test.ts"],
"references": [{ "path": "./tsconfig.node.json" }]
}