vite-plugin-ai-annotator 1.2.2 → 1.2.4

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.
@@ -7758,7 +7758,17 @@
7758
7758
  quality,
7759
7759
  type: "image/webp",
7760
7760
  cacheBust: true,
7761
- skipFonts: true
7761
+ pixelRatio: 1,
7762
+ includeQueryParams: true,
7763
+ // Filter out elements that cause issues
7764
+ filter: (node) => {
7765
+ if (node instanceof Element) {
7766
+ if (node.classList?.contains("annotator-badge") || node.classList?.contains("annotator-highlight-overlay") || node.tagName?.toLowerCase() === "annotator-toolbar") {
7767
+ return false;
7768
+ }
7769
+ }
7770
+ return true;
7771
+ }
7762
7772
  });
7763
7773
  const timeoutPromise = new Promise(
7764
7774
  (_2, reject) => setTimeout(() => reject(new Error("Screenshot timeout")), SCREENSHOT_TIMEOUT_MS)
@@ -7896,7 +7906,7 @@
7896
7906
  placement: "bottom-start",
7897
7907
  middleware: [
7898
7908
  offset2(6),
7899
- flip2({ fallbackPlacements: ["bottom-end", "top-start", "top-end"] }),
7909
+ flip2({ fallbackPlacements: ["top-start", "bottom-end", "top-end"] }),
7900
7910
  shift2({ padding: 8 })
7901
7911
  ]
7902
7912
  }).then(({ x: x2, y: y3 }) => {
@@ -8343,19 +8353,6 @@
8343
8353
  animation: popover-in 0.15s ease-out;
8344
8354
  }
8345
8355
 
8346
- .popover::before {
8347
- content: '// COMMENT_INPUT';
8348
- position: absolute;
8349
- top: -20px;
8350
- left: -2px;
8351
- padding: 2px 6px;
8352
- font-size: 9px;
8353
- color: var(--cyber-cyan);
8354
- background: var(--cyber-black);
8355
- border: 1px solid var(--cyber-cyan);
8356
- text-transform: uppercase;
8357
- letter-spacing: 1px;
8358
- }
8359
8356
 
8360
8357
  @keyframes popover-in {
8361
8358
  from {
@@ -3,4 +3,9 @@ export interface AutoSetupMcpOptions {
3
3
  serverUrl: string;
4
4
  verbose?: boolean;
5
5
  }
6
- export declare function autoSetupMcp(options: AutoSetupMcpOptions): void;
6
+ export interface AutoSetupResult {
7
+ updated: string[];
8
+ alreadyConfigured: string[];
9
+ noConfigsFound: boolean;
10
+ }
11
+ export declare function autoSetupMcp(options: AutoSetupMcpOptions): AutoSetupResult;