@vue/devtools-kit 7.0.3 → 7.0.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.
- package/dist/index.cjs +11 -4
- package/dist/index.mjs +11 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3048,6 +3048,7 @@ init_cjs_shims();
|
|
|
3048
3048
|
|
|
3049
3049
|
// src/core/plugins/components.ts
|
|
3050
3050
|
init_cjs_shims();
|
|
3051
|
+
var import_perfect_debounce3 = require("perfect-debounce");
|
|
3051
3052
|
|
|
3052
3053
|
// src/api/plugin.ts
|
|
3053
3054
|
init_cjs_shims();
|
|
@@ -3551,6 +3552,12 @@ function registerComponentsDevTools(app) {
|
|
|
3551
3552
|
await api.sendInspectorState("components");
|
|
3552
3553
|
}
|
|
3553
3554
|
});
|
|
3555
|
+
const debounceSendInspectorTree = (0, import_perfect_debounce3.debounce)(() => {
|
|
3556
|
+
api.sendInspectorTree(INSPECTOR_ID);
|
|
3557
|
+
}, 120);
|
|
3558
|
+
const debounceSendInspectorState = (0, import_perfect_debounce3.debounce)(() => {
|
|
3559
|
+
api.sendInspectorState(INSPECTOR_ID);
|
|
3560
|
+
}, 120);
|
|
3554
3561
|
const componentAddedCleanup = hook.on.componentAdded(async (app2, uid, parentUid, component) => {
|
|
3555
3562
|
var _a8, _b8, _c;
|
|
3556
3563
|
if ((_c = (_b8 = (_a8 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a8.type) == null ? void 0 : _b8.devtools) == null ? void 0 : _c.hide)
|
|
@@ -3571,7 +3578,7 @@ function registerComponentsDevTools(app) {
|
|
|
3571
3578
|
}
|
|
3572
3579
|
if (!appRecord)
|
|
3573
3580
|
return;
|
|
3574
|
-
|
|
3581
|
+
debounceSendInspectorTree();
|
|
3575
3582
|
});
|
|
3576
3583
|
const componentUpdatedCleanup = hook.on.componentUpdated(async (app2, uid, parentUid, component) => {
|
|
3577
3584
|
var _a8, _b8, _c;
|
|
@@ -3593,8 +3600,8 @@ function registerComponentsDevTools(app) {
|
|
|
3593
3600
|
}
|
|
3594
3601
|
if (!appRecord)
|
|
3595
3602
|
return;
|
|
3596
|
-
|
|
3597
|
-
|
|
3603
|
+
debounceSendInspectorTree();
|
|
3604
|
+
debounceSendInspectorState();
|
|
3598
3605
|
});
|
|
3599
3606
|
const componentRemovedCleanup = hook.on.componentRemoved(async (app2, uid, parentUid, component) => {
|
|
3600
3607
|
var _a8, _b8, _c;
|
|
@@ -3611,7 +3618,7 @@ function registerComponentsDevTools(app) {
|
|
|
3611
3618
|
instance: component
|
|
3612
3619
|
});
|
|
3613
3620
|
appRecord == null ? void 0 : appRecord.instanceMap.delete(id);
|
|
3614
|
-
|
|
3621
|
+
debounceSendInspectorTree();
|
|
3615
3622
|
});
|
|
3616
3623
|
devtoolsContext.componentPluginHookBuffer = [
|
|
3617
3624
|
componentAddedCleanup,
|
package/dist/index.mjs
CHANGED
|
@@ -3014,6 +3014,7 @@ init_esm_shims();
|
|
|
3014
3014
|
|
|
3015
3015
|
// src/core/plugins/components.ts
|
|
3016
3016
|
init_esm_shims();
|
|
3017
|
+
import { debounce as debounce3 } from "perfect-debounce";
|
|
3017
3018
|
|
|
3018
3019
|
// src/api/plugin.ts
|
|
3019
3020
|
init_esm_shims();
|
|
@@ -3517,6 +3518,12 @@ function registerComponentsDevTools(app) {
|
|
|
3517
3518
|
await api.sendInspectorState("components");
|
|
3518
3519
|
}
|
|
3519
3520
|
});
|
|
3521
|
+
const debounceSendInspectorTree = debounce3(() => {
|
|
3522
|
+
api.sendInspectorTree(INSPECTOR_ID);
|
|
3523
|
+
}, 120);
|
|
3524
|
+
const debounceSendInspectorState = debounce3(() => {
|
|
3525
|
+
api.sendInspectorState(INSPECTOR_ID);
|
|
3526
|
+
}, 120);
|
|
3520
3527
|
const componentAddedCleanup = hook.on.componentAdded(async (app2, uid, parentUid, component) => {
|
|
3521
3528
|
var _a8, _b8, _c;
|
|
3522
3529
|
if ((_c = (_b8 = (_a8 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a8.type) == null ? void 0 : _b8.devtools) == null ? void 0 : _c.hide)
|
|
@@ -3537,7 +3544,7 @@ function registerComponentsDevTools(app) {
|
|
|
3537
3544
|
}
|
|
3538
3545
|
if (!appRecord)
|
|
3539
3546
|
return;
|
|
3540
|
-
|
|
3547
|
+
debounceSendInspectorTree();
|
|
3541
3548
|
});
|
|
3542
3549
|
const componentUpdatedCleanup = hook.on.componentUpdated(async (app2, uid, parentUid, component) => {
|
|
3543
3550
|
var _a8, _b8, _c;
|
|
@@ -3559,8 +3566,8 @@ function registerComponentsDevTools(app) {
|
|
|
3559
3566
|
}
|
|
3560
3567
|
if (!appRecord)
|
|
3561
3568
|
return;
|
|
3562
|
-
|
|
3563
|
-
|
|
3569
|
+
debounceSendInspectorTree();
|
|
3570
|
+
debounceSendInspectorState();
|
|
3564
3571
|
});
|
|
3565
3572
|
const componentRemovedCleanup = hook.on.componentRemoved(async (app2, uid, parentUid, component) => {
|
|
3566
3573
|
var _a8, _b8, _c;
|
|
@@ -3577,7 +3584,7 @@ function registerComponentsDevTools(app) {
|
|
|
3577
3584
|
instance: component
|
|
3578
3585
|
});
|
|
3579
3586
|
appRecord == null ? void 0 : appRecord.instanceMap.delete(id);
|
|
3580
|
-
|
|
3587
|
+
debounceSendInspectorTree();
|
|
3581
3588
|
});
|
|
3582
3589
|
devtoolsContext.componentPluginHookBuffer = [
|
|
3583
3590
|
componentAddedCleanup,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.4",
|
|
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.
|
|
25
|
-
"@vue/devtools-shared": "^7.0.
|
|
24
|
+
"@vue/devtools-schema": "^7.0.4",
|
|
25
|
+
"@vue/devtools-shared": "^7.0.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"vue": "^3.4.0",
|