Introduces createAutoSaveStore() using $state() for automatic reactivity. New store provides cleaner API while maintaining backward compatibility. Changes: - New: src/lib/admin/autoSave.svelte.ts with createAutoSaveStore() - Uses $state() for status and lastError (reactive getters) - Export AutoSaveStore and AutoSaveStoreOptions types - Add JSDoc with usage examples - Update autoSaveLifecycle.ts to accept both old and new types - Export AutoSaveController type from old file for compatibility Old createAutoSaveController() remains unchanged for gradual migration. Type checking passes with no new errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api.ts | ||
| autoSave.svelte.ts | ||
| autoSave.ts | ||
| autoSaveLifecycle.ts | ||
| draftStore.ts | ||
| listFilters.svelte.ts | ||