@vue/devtools-kit 7.0.25 → 7.0.26

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.
package/dist/index.cjs CHANGED
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target10) => (target10 = mod != null ? __create(
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.4/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.4/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
@@ -2966,7 +2966,8 @@ function registerComponentDevToolsPlugin(app) {
2966
2966
  component.__VUE_DEVTOOLS_NEXT_UID__ = id;
2967
2967
  if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id))) {
2968
2968
  appRecord == null ? void 0 : appRecord.instanceMap.set(id, component);
2969
- devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
2969
+ if (devtoolsAppRecords.active.id === (appRecord == null ? void 0 : appRecord.id))
2970
+ devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
2970
2971
  }
2971
2972
  }
2972
2973
  if (!appRecord)
@@ -2992,7 +2993,8 @@ function registerComponentDevToolsPlugin(app) {
2992
2993
  component.__VUE_DEVTOOLS_NEXT_UID__ = id;
2993
2994
  if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id))) {
2994
2995
  appRecord == null ? void 0 : appRecord.instanceMap.set(id, component);
2995
- devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
2996
+ if (devtoolsAppRecords.active.id === (appRecord == null ? void 0 : appRecord.id))
2997
+ devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
2996
2998
  }
2997
2999
  }
2998
3000
  if (!appRecord)
@@ -3017,7 +3019,8 @@ function registerComponentDevToolsPlugin(app) {
3017
3019
  instance: component
3018
3020
  });
3019
3021
  appRecord == null ? void 0 : appRecord.instanceMap.delete(id);
3020
- devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
3022
+ if (devtoolsAppRecords.active.id === (appRecord == null ? void 0 : appRecord.id))
3023
+ devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
3021
3024
  debounceSendInspectorTree();
3022
3025
  });
3023
3026
  devtoolsContext.componentPluginHookBuffer = [
@@ -3260,7 +3263,7 @@ function inspectComponentHighLighter() {
3260
3263
  e.preventDefault();
3261
3264
  e.stopPropagation();
3262
3265
  selectComponentFn(e, (id) => {
3263
- window.removeEventListener("click", onSelect);
3266
+ window.removeEventListener("click", onSelect, true);
3264
3267
  window.removeEventListener("mouseover", inspectFn);
3265
3268
  const el = getContainerElement();
3266
3269
  if (el)
@@ -3268,7 +3271,7 @@ function inspectComponentHighLighter() {
3268
3271
  resolve(JSON.stringify({ id }));
3269
3272
  });
3270
3273
  }
3271
- window.addEventListener("click", onSelect);
3274
+ window.addEventListener("click", onSelect, true);
3272
3275
  });
3273
3276
  }
3274
3277
  function scrollToComponent(options) {