gabriele-cusato_HandTranscr.../HandTranscriptMd/package.json
gabriele-cusato 791e5870c9 fix: apply all required Obsidian community plugin bot fixes
Required fixes:
  - recognizer.ts: fetch() → requestUrl() (Obsidian API)
  - settings.ts: createEl('h2') → Setting.setHeading()
  - parser.test.ts: console.log → console.debug (4 occurrences)
  - md-parser.ts: remove unnecessary escape in char class [^\s\-] → [^\s-]
  - main.ts: async callbacks → void (async()=>{})() pattern; menu as any → as unknown as
  - embed.ts / editor-view.ts: innerHTML → setIcon(); key: string → I18nKey; async handlers wrapped in void
  - editor-view.ts: setState(state: any) → (state: unknown, result: ViewStateResult); querySelector generic
  - i18n.ts: window as any → typed cast; export type I18nKey
  - styles.css: CSS utility classes and CSS vars replace inline styles

  Bug fixes found during testing:
  - setCssProps is a method (el.setCssProps), not a standalone export — caused white modal
  - collapse animation broken after expand: replaced rAF with forced reflow (void wrapper.offsetHeight)
  - md-parser: // LIST with space not recognized — added \s* after // in both regexes
2026-03-28 00:54:31 +01:00

29 lines
762 B
JSON

{
"name": "handwriting-to-markdown",
"version": "1.0.0",
"description": "Inline handwriting canvas with conversion to structured markdown",
"main": "main.js",
"type": "module",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"lint": "eslint src/"
},
"keywords": [],
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
"esbuild": "0.25.5",
"eslint": "^9.39.4",
"eslint-plugin-obsidianmd": "^0.1.9",
"globals": "^17.4.0",
"jiti": "^2.6.1",
"tslib": "2.4.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.57.2"
},
"dependencies": {
"obsidian": "latest"
}
}