vite-plugin-ai-annotator 1.2.3 → 1.3.2

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.
@@ -7239,6 +7239,12 @@
7239
7239
  let codeLocation = el.__vnode?.props?.__v_inspector;
7240
7240
  let vueInstance = null;
7241
7241
  let vnode = null;
7242
+ if (!codeLocation) {
7243
+ const ctxVNode = el.__vnode?.ctx?.vnode;
7244
+ if (ctxVNode?.el === el) {
7245
+ codeLocation = ctxVNode?.props?.__v_inspector;
7246
+ }
7247
+ }
7242
7248
  if (!codeLocation) {
7243
7249
  codeLocation = el.__vueParentComponent?.vnode?.props?.__v_inspector;
7244
7250
  vueInstance = el.__vueParentComponent ?? null;
@@ -7259,6 +7265,9 @@
7259
7265
  codeLocation = vnode.__v_inspector || vnode.props?.__v_inspector || vnode.componentOptions?.__v_inspector;
7260
7266
  }
7261
7267
  }
7268
+ if (!codeLocation) {
7269
+ codeLocation = element.getAttribute("data-v-inspector") ?? void 0;
7270
+ }
7262
7271
  if (!codeLocation) {
7263
7272
  return null;
7264
7273
  }
@@ -7758,7 +7767,17 @@
7758
7767
  quality,
7759
7768
  type: "image/webp",
7760
7769
  cacheBust: true,
7761
- skipFonts: true
7770
+ pixelRatio: 1,
7771
+ includeQueryParams: true,
7772
+ // Filter out elements that cause issues
7773
+ filter: (node) => {
7774
+ if (node instanceof Element) {
7775
+ if (node.classList?.contains("annotator-badge") || node.classList?.contains("annotator-highlight-overlay") || node.tagName?.toLowerCase() === "annotator-toolbar") {
7776
+ return false;
7777
+ }
7778
+ }
7779
+ return true;
7780
+ }
7762
7781
  });
7763
7782
  const timeoutPromise = new Promise(
7764
7783
  (_2, reject) => setTimeout(() => reject(new Error("Screenshot timeout")), SCREENSHOT_TIMEOUT_MS)
@@ -3,4 +3,8 @@ 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
+ }
10
+ export declare function autoSetupMcp(options: AutoSetupMcpOptions): AutoSetupResult;