Skip to content

Releases: nguyenvanduocit/vite-plugin-ai-annotator

v3.0.2

Choose a tag to compare

@github-actions github-actions released this 10 May 09:26

3.0.2 (2026-05-10)

Bug Fixes

  • ci: publish to npm in workflow shell, not via subprocess (0121c50)

v1.16.2

Choose a tag to compare

@github-actions github-actions released this 10 May 04:11

Full Changelog: v1.16.1...v1.16.2

v1.16.1

Choose a tag to compare

@github-actions github-actions released this 10 May 03:51

Full Changelog: v1.16.0...v1.16.1

v1.16.0

Choose a tag to compare

@github-actions github-actions released this 10 May 03:46

Full Changelog: v1.15.0...v1.16.0

v1.15.0

Choose a tag to compare

@github-actions github-actions released this 10 May 03:34

Full Changelog: v1.14.16...v1.15.0

v1.14.16

Choose a tag to compare

@github-actions github-actions released this 10 May 03:31

Full Changelog: v1.14.15...v1.14.16

v1.1.0 - Source Location for Vanilla HTML

Choose a tag to compare

@nguyenvanduocit nguyenvanduocit released this 23 Jan 09:21

What's New

Source Location Injection for Vanilla HTML 🎯

Now supports precise line number detection for vanilla HTML/JS projects - no framework required!

How it works:

  1. Vite plugin transforms HTML files during dev
  2. Injects data-source-loc attributes with file:line:column info
  3. Annotator reads these attributes to show exact source location
<!-- Before -->
<div class="container">
  <button>Click me</button>
</div>

<!-- After (dev mode) -->
<div class="container" data-source-loc="src/index.html:5:1">
  <button data-source-loc="src/index.html:6:3">Click me</button>
</div>

Configuration

// vite.config.ts
aiAnnotator({
  injectSourceLoc: true  // default: true
})

Improved Keyboard Handling

  • Follows industry standard patterns (LocatorJS, click-to-component)
  • No longer blocks all keyboard events during inspection
  • Allows typing in comment forms and page shortcuts to work

Dependencies

  • Added magic-string for efficient source transformation

Full Changelog: v1.0.2...v1.1.0