@vue/devtools-kit 7.0.1 → 7.0.3

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
@@ -3834,8 +3834,8 @@ function inspectFn(e) {
3834
3834
  if (instance) {
3835
3835
  inspectInstance = instance;
3836
3836
  const el = instance.vnode.el;
3837
- if (el && el.nodeType === Node.ELEMENT_NODE) {
3838
- const bounds = el.getBoundingClientRect();
3837
+ if (el) {
3838
+ const bounds = getComponentBoundingRect(instance);
3839
3839
  const name = getInstanceName(instance);
3840
3840
  const container = getCotainerElement();
3841
3841
  container ? update({ bounds, name }) : create({ bounds, name });
package/dist/index.mjs CHANGED
@@ -3800,8 +3800,8 @@ function inspectFn(e) {
3800
3800
  if (instance) {
3801
3801
  inspectInstance = instance;
3802
3802
  const el = instance.vnode.el;
3803
- if (el && el.nodeType === Node.ELEMENT_NODE) {
3804
- const bounds = el.getBoundingClientRect();
3803
+ if (el) {
3804
+ const bounds = getComponentBoundingRect(instance);
3805
3805
  const name = getInstanceName(instance);
3806
3806
  const container = getCotainerElement();
3807
3807
  container ? update({ bounds, name }) : create({ bounds, name });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue/devtools-kit",
3
3
  "type": "module",
4
- "version": "7.0.1",
4
+ "version": "7.0.3",
5
5
  "author": "webfansplz",
6
6
  "license": "MIT",
7
7
  "exports": {
@@ -21,8 +21,8 @@
21
21
  "mitt": "^3.0.1",
22
22
  "perfect-debounce": "^1.0.0",
23
23
  "speakingurl": "^14.0.1",
24
- "@vue/devtools-schema": "^7.0.1",
25
- "@vue/devtools-shared": "^7.0.1"
24
+ "@vue/devtools-schema": "^7.0.3",
25
+ "@vue/devtools-shared": "^7.0.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "vue": "^3.4.0",