mirror of
https://github.com/onlyworlds/obsidian-plugin.git
synced 2026-07-22 11:00:31 +00:00
Major rebuild. Plugin now uses @onlyworlds/sdk for API calls via Obsidian's requestUrl, native PluginSettingTab for configuration, and a debounced auto-sync engine that pushes element edits to onlyworlds.com after idle. Changes - Drop handrolled API code; route all writes through @onlyworlds/sdk subclass - Native settings tab: API key, PIN, default world, sync mode, debounce - PIN handling: persist in settings or cache per session; no per-save prompts - Auto-sync toggle with configurable debounce (default 3s) - Status bar + ribbon icon reflect sync state (idle/dirty/syncing/synced/error) - Ribbon click opens menu (Sync / Settings / About) instead of firing sync - Settings API key wins over per-world World.md (legacy fallback preserved) - Add Map, Pin, Marker to element category enum (now 22) - ESLint config (eslint-plugin-obsidianmd) scoped to new code - Modernize build: TS 5.8, esbuild 0.25, stricter tsconfig - Drop dead code: GraphViewExtensions, dead command imports, handleApiError Compatibility - Existing v1 vaults work unchanged. Span-tag format preserved. - OnlyWorlds/Settings.md still readable; new settings tab takes precedence. - isDesktopOnly: true. Mobile pending verification.
36 lines
932 B
JSON
36 lines
932 B
JSON
{
|
|
"name": "onlyworlds-obsidian-plugin",
|
|
"version": "2.0.0",
|
|
"description": "Obsidian plugin for the OnlyWorlds worldbuilding framework",
|
|
"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 ."
|
|
},
|
|
"keywords": [],
|
|
"author": "Titus",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@eslint/js": "9.30.1",
|
|
"@eslint/json": "0.14.0",
|
|
"@types/node": "^16.11.6",
|
|
"@types/uuid": "^10.0.0",
|
|
"esbuild": "0.25.5",
|
|
"eslint": "^9.30.1",
|
|
"eslint-plugin-obsidianmd": "0.1.9",
|
|
"globals": "14.0.0",
|
|
"jiti": "2.6.1",
|
|
"tslib": "2.4.0",
|
|
"typescript": "^5.8.3",
|
|
"typescript-eslint": "8.35.1"
|
|
},
|
|
"dependencies": {
|
|
"@onlyworlds/sdk": "^2.2.2",
|
|
"handlebars": "^4.7.8",
|
|
"obsidian": "latest",
|
|
"uuid": "^10.0.0"
|
|
}
|
|
}
|