vite-plugin-ai-annotator 1.1.21 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6442,30 +6442,29 @@
6442
6442
  .badge-container {
6443
6443
  display: flex;
6444
6444
  align-items: center;
6445
- border: 2px solid ${color};
6445
+ border: 1px solid ${color};
6446
6446
  background: #050505;
6447
- box-shadow: 2px 2px 0px ${color}44, 0 0 10px ${glowColor}60;
6447
+ box-shadow: 1px 1px 0px ${color}44, 0 0 6px ${glowColor}60;
6448
6448
  animation: badge-glow 2s ease-in-out infinite;
6449
6449
  }
6450
6450
  .badge {
6451
- height: 20px;
6452
- padding: 0 8px;
6451
+ height: 14px;
6452
+ padding: 0 4px;
6453
6453
  background-color: ${color};
6454
6454
  color: ${textColor};
6455
6455
  display: flex;
6456
6456
  align-items: center;
6457
6457
  justify-content: center;
6458
- font-size: 10px;
6458
+ font-size: 9px;
6459
6459
  font-weight: 700;
6460
6460
  font-family: 'JetBrains Mono', monospace;
6461
6461
  pointer-events: none;
6462
6462
  white-space: nowrap;
6463
6463
  text-transform: uppercase;
6464
- letter-spacing: 0.5px;
6465
6464
  }
6466
6465
  .edit-btn {
6467
- height: 20px;
6468
- width: 24px;
6466
+ height: 14px;
6467
+ width: 18px;
6469
6468
  background-color: transparent;
6470
6469
  border: none;
6471
6470
  border-left: 1px solid ${color}44;
@@ -6480,8 +6479,8 @@
6480
6479
  background-color: ${color};
6481
6480
  }
6482
6481
  .edit-btn svg {
6483
- width: 12px;
6484
- height: 12px;
6482
+ width: 10px;
6483
+ height: 10px;
6485
6484
  color: ${color};
6486
6485
  opacity: 0.8;
6487
6486
  }
@@ -6501,9 +6500,9 @@
6501
6500
  if (component && component.componentLocation) {
6502
6501
  const componentPath = component.componentLocation.split("@")[0];
6503
6502
  const fileName = componentPath.split("/").pop();
6504
- badgeContent.textContent = `(${index}) [${fileName}]`;
6503
+ badgeContent.textContent = `#${index} ${fileName}`;
6505
6504
  } else {
6506
- badgeContent.textContent = `(${index}) ${element.tagName}`;
6505
+ badgeContent.textContent = `#${index} ${element.tagName}`;
6507
6506
  }
6508
6507
  const editBtn = document.createElement("button");
6509
6508
  editBtn.classList.add("edit-btn", "annotator-ignore");
@@ -6552,7 +6551,7 @@
6552
6551
  if (badge) {
6553
6552
  const badgeContent = badge.shadowRoot?.querySelector(".badge");
6554
6553
  if (badgeContent) {
6555
- badgeContent.textContent = `(${index}) ${element.tagName}`;
6554
+ badgeContent.textContent = `#${index} ${element.tagName}`;
6556
6555
  }
6557
6556
  }
6558
6557
  index++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-ai-annotator",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "AI-powered element annotator for Vite - Pick elements and get instant AI code modifications",
5
5
  "type": "module",
6
6
  "main": "dist/vite-plugin.js",