john-okeefe
149d14f5eb
refactor(ts): Add ES module exports to core utilities
Phase 0/1 of ESBuild migration: Add ES exports to all utility modules
while maintaining Alpine.js registration for template compatibility.
Core utility modules now support both:
- ES module imports for TypeScript→TypeScript dependencies
- Alpine.js global namespace for template onclick handlers
Modules updated:
- api.ts: Export apiGet, apiPost, apiPut, apiDelete, apiPatch, and handlers
- toast.ts: Export showToast function (Alpine namespace already present)
- storage.ts: Export localStorage helpers (already had exports)
- dom.ts: Export DOM manipulation helpers (already had exports)
- events.ts: Export event delegation helpers
- theme.ts: Export theme management functions
- woodPaneling.ts: Export wood paneling functions
Pattern: Each module now has dual exports
- ES module exports for internal TS dependencies
- Alpine.global() registration for template access
- Removed direct window exports where Alpine registration exists
This enables Phase 1 (converting internal window reads to imports) while
maintaining template functionality through Alpine.
Migration progress: Phase 0 complete, Phase 1 in progress
Next: Convert 193+ internal window reads across consumer modules
2026-03-08 01:14:20 -05:00
..
2026-02-27 17:06:48 -05:00
2026-03-05 17:13:23 -05:00
2026-03-06 22:27:18 -05:00
2026-02-27 17:06:48 -05:00
2026-02-27 17:06:48 -05:00
2026-03-08 01:14:20 -05:00
2026-02-27 16:55:26 -05:00
2026-03-04 22:37:47 -05:00
2026-02-27 17:06:48 -05:00
2026-02-27 17:06:48 -05:00
2026-03-01 12:22:36 -05:00
2026-02-16 09:18:02 -05:00
2026-02-27 17:06:48 -05:00
2026-03-08 01:14:20 -05:00
2026-03-08 01:14:20 -05:00
2026-02-27 17:06:48 -05:00
2026-02-27 17:06:48 -05:00
2026-02-27 17:06:48 -05:00
2026-03-06 22:27:18 -05:00
2026-02-27 17:06:48 -05:00
2026-02-27 17:06:48 -05:00
2026-02-27 17:06:48 -05:00
2026-03-08 01:14:20 -05:00
2026-03-08 01:14:20 -05:00
2026-02-27 17:06:48 -05:00
2026-03-08 01:14:20 -05:00
2026-03-08 01:14:20 -05:00
2026-03-01 00:29:11 -05:00